__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace MasterAddons\Inc\Classes;
class Upgrades
{
/**
* Plugin version option key
*
* @var string $option_name
*/
protected $option_name = '_master_addons_version';
/**
* Lists of upgrades
*
* @var string[] $upgrades
*/
protected $upgrades = [
'2.0.8.9' => 'Upgrades/upgrade-2.0.8.9.php',
];
/**
* Get plugin installed version
*
* @return string
*/
protected function get_installed_version()
{
return get_option($this->option_name, '1.0.0');
}
/**
* Check if plugin's update is available
*
* @return bool
*/
public function if_updates_available()
{
if (version_compare($this->get_installed_version(), JLTMA_VER, '<')) {
return true;
}
return false;
}
/**
* Run plugin updates
*
* @return void
*/
public function run_updates()
{
$installed_version = $this->get_installed_version();
$path = trailingslashit(__DIR__);
foreach ($this->upgrades as $version => $file) {
if (version_compare($installed_version, $version, '<')) {
include $path . $file;
}
}
// update_option( $this->option_name, JLTMA_VER );
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Base | Folder | 0775 |
|
|
| Notifications | Folder | 0775 |
|
|
| Upgrades | Folder | 0775 |
|
|
| importer | Folder | 0775 |
|
|
| twitteroauth | Folder | 0775 |
|
|
| Animation.php | File | 29.46 KB | 0775 |
|
| Feedback.php | File | 9.99 KB | 0775 |
|
| Freemius_Hooks.php | File | 13.72 KB | 0775 |
|
| JLTMA_Ajax_Queries.php | File | 12.25 KB | 0775 |
|
| JLTMA_Extension_Prototype.php | File | 5.78 KB | 0775 |
|
| Pro_Upgrade.php | File | 16.8 KB | 0775 |
|
| Recommended_Plugins.php | File | 6.84 KB | 0775 |
|
| Upgrades.php | File | 1.1 KB | 0775 |
|
| assets-manager.php | File | 9.97 KB | 0775 |
|
| class-jltma-domain-checker.php | File | 32.44 KB | 0775 |
|
| class-reset-themes.php | File | 2.03 KB | 0775 |
|
| helper-class.php | File | 77.7 KB | 0775 |
|
| rollback.php | File | 4.57 KB | 0775 |
|
| template-controls.php | File | 4.38 KB | 0775 |
|
| utils.php | File | 12.76 KB | 0775 |
|