| 1 |
<?php |
| 2 |
/** |
| 3 |
* LicenseApi — stub (licensing system removed). |
| 4 |
* |
| 5 |
* Pro is unlocked for everyone. Methods are kept for backward compatibility |
| 6 |
* with existing callers and return neutral "everything is fine" values. |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace Upress\EzCache; |
| 10 |
|
| 11 |
class LicenseApi { |
| 12 |
|
| 13 |
/** |
| 14 |
* @return bool |
| 15 |
*/ |
| 16 |
public function is_premium() { |
| 17 |
return true; |
| 18 |
} |
| 19 |
|
| 20 |
/** |
| 21 |
* @return string |
| 22 |
*/ |
| 23 |
public function get_masked_license_key() { |
| 24 |
return ''; |
| 25 |
} |
| 26 |
|
| 27 |
/** |
| 28 |
* @return string |
| 29 |
*/ |
| 30 |
public function get_license_key() { |
| 31 |
return ''; |
| 32 |
} |
| 33 |
|
| 34 |
/** |
| 35 |
* @return array |
| 36 |
*/ |
| 37 |
public function get_status() { |
| 38 |
return [ |
| 39 |
'type' => 'pro', |
| 40 |
'status' => 'active', |
| 41 |
'expires_at' => '', |
| 42 |
'conversions_left' => 'unlimited', |
| 43 |
'plan' => 'Pro', |
| 44 |
]; |
| 45 |
} |
| 46 |
|
| 47 |
/** |
| 48 |
* @param string $key |
| 49 |
* @return array |
| 50 |
*/ |
| 51 |
public function activate( $key ) { |
| 52 |
return [ |
| 53 |
'success' => true, |
| 54 |
'message' => __( 'Pro is already unlocked.', 'ezcache' ), |
| 55 |
]; |
| 56 |
} |
| 57 |
|
| 58 |
/** |
| 59 |
* @return array |
| 60 |
*/ |
| 61 |
public function deactivate() { |
| 62 |
return [ |
| 63 |
'success' => true, |
| 64 |
'message' => __( 'Pro is unlocked for everyone; nothing to deactivate.', 'ezcache' ), |
| 65 |
]; |
| 66 |
} |
| 67 |
} |
| 68 |
|