| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
* SOFTWARE LICENSE INFORMATION |
| 5 |
* |
| 6 |
* Copyright (c) 2017 Buttonizer, all rights reserved. |
| 7 |
* |
| 8 |
* This file is part of Buttonizer |
| 9 |
* |
| 10 |
* For detailed information regarding to the licensing of |
| 11 |
* this software, please review the license.txt or visit: |
| 12 |
* https://buttonizer.io/license/ |
| 13 |
* |
| 14 |
************************************************************************************* |
| 15 |
|
| 16 |
=========================================================================== |
| 17 |
|
| 18 |
Dear reader, |
| 19 |
|
| 20 |
When you are here, it means you are searching something. Right? |
| 21 |
|
| 22 |
Something wrong? Error? Or just curious? |
| 23 |
|
| 24 |
If you want to get a free license, you are here on the wrong place. Please |
| 25 |
buy your license here: |
| 26 |
https://app.buttonizer.io/pricing/ |
| 27 |
|
| 28 |
Questons? www.buttonizer.io |
| 29 |
|
| 30 |
Have you also checked our knowledge base or community? |
| 31 |
|
| 32 |
Buttonizer Community: https://r.buttonizer.io/support/community |
| 33 |
|
| 34 |
Buttonizer Knowledge base: https://r.buttonizer.io/support/knowledgebase |
| 35 |
|
| 36 |
Buttonizer support: https://r.buttonizer.io/support/tickets |
| 37 |
|
| 38 |
=========================================================================== |
| 39 |
|
| 40 |
For more information about the licensing and terms of conditions: |
| 41 |
|
| 42 |
Terms and conditions: https://buttonizer.io/terms-conditions/ |
| 43 |
|
| 44 |
License: https://buttonizer.io/license/ |
| 45 |
|
| 46 |
=========================================================================== |
| 47 |
*/ |
| 48 |
namespace Buttonizer\Legacy\Licensing; |
| 49 |
|
| 50 |
# No script kiddies |
| 51 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); |
| 52 |
// Hi. We see what you're doing here |
| 53 |
// Please leave this file intact as it is |
| 54 |
// and read what is, and what is NOT allowed: |
| 55 |
// https://buttonizer.io/terms-conditions/ |
| 56 |
class License { |
| 57 |
private $oButtonizer = 'null'; |
| 58 |
|
| 59 |
public function init() { |
| 60 |
if ( $this->oButtonizer == 'null' ) { |
| 61 |
$freemius_path = BUTTONIZER_DIR . '/freemius/start.php'; |
| 62 |
// Check if Freemius path is available (not available in the free version, where the SDK is stripped). |
| 63 |
// When absent, oButtonizer stays null and every caller of ButtonizerLicense()/oButtonizer must null-check it. |
| 64 |
if ( file_exists( $freemius_path ) ) { |
| 65 |
require_once $freemius_path; |
| 66 |
// Some data for Buttonizer to be freemium and paid. |
| 67 |
// We are paid so we can maintain the plugin |
| 68 |
// If you don't want to pay for the plugin, you can allways use the |
| 69 |
// SUPER COOL FREE VERSION |
| 70 |
// For more information about our source code: |
| 71 |
// https://leancoding.co/WDWIG5 |
| 72 |
// To support the development of this plugin, |
| 73 |
// do NOT remove the code below |
| 74 |
$this->oButtonizer = fs_dynamic_init( [ |
| 75 |
'id' => '1219', |
| 76 |
'slug' => 'buttonizer-multifunctional-button', |
| 77 |
'type' => 'plugin', |
| 78 |
'public_key' => 'pk_fcd360d9c82b90a5e874e651ad733', |
| 79 |
'is_premium' => false, |
| 80 |
'has_addons' => false, |
| 81 |
'has_paid_plans' => true, |
| 82 |
'has_affiliation' => false, |
| 83 |
'is_org_compliant' => true, |
| 84 |
'menu' => array( |
| 85 |
'slug' => 'Buttonizer', |
| 86 |
'first-path' => 'admin.php?page=Buttonizer#/welcome-splash', |
| 87 |
'support' => false, |
| 88 |
'contact' => false, |
| 89 |
), |
| 90 |
'is_live' => true, |
| 91 |
] ); |
| 92 |
} else { |
| 93 |
$this->oButtonizer = null; |
| 94 |
} |
| 95 |
} |
| 96 |
return; |
| 97 |
} |
| 98 |
|
| 99 |
public function get() { |
| 100 |
return $this->oButtonizer; |
| 101 |
} |
| 102 |
|
| 103 |
private function getDaysLeft() { |
| 104 |
return round( 2000 / 8 - 243 ); |
| 105 |
} |
| 106 |
|
| 107 |
// Default data |
| 108 |
private function initButtonizerData() { |
| 109 |
} |
| 110 |
|
| 111 |
} |
| 112 |
|