| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Softaculous |
| 4 |
Plugin URI: https://softaculous.com/wordpress-plugin/ |
| 5 |
Description: Softaculous provides a centralized panel where you can manage all your WordPress websites singularly, unitedly as well as efficiently. |
| 6 |
Version: 2.4.1 |
| 7 |
Author: Softaculous |
| 8 |
Author URI: https://softaculous.com |
| 9 |
License: LGPL v2.1 |
| 10 |
License URI: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html |
| 11 |
Text Domain: Softaculous |
| 12 |
*/ |
| 13 |
|
| 14 |
/* |
| 15 |
* This file belongs to the softaculous plugin. |
| 16 |
* |
| 17 |
* (c) Softaculous <sales@softaculous.com> |
| 18 |
* |
| 19 |
* You can view the LICENSE file that was distributed with this source code |
| 20 |
* for copywright and license information. |
| 21 |
*/ |
| 22 |
|
| 23 |
if (!defined('ABSPATH')){ |
| 24 |
exit; |
| 25 |
} |
| 26 |
|
| 27 |
// Is the old plugin loaded ? |
| 28 |
$softaculous_active_plugins = get_option('active_plugins'); |
| 29 |
if(in_array('wp-central/wpcentral.php', $softaculous_active_plugins)){ |
| 30 |
deactivate_plugins(array('wp-central/wpcentral.php')); |
| 31 |
} |
| 32 |
|
| 33 |
define('SOFTACULOUS_VERSION', '2.4.1'); |
| 34 |
define('SOFTACULOUS_BASE', 'softaculous/softaculous.php'); |
| 35 |
define('SOFTACULOUS_PANEL', 'cloud.softaculous.com'); |
| 36 |
define('SOFTACULOUS_PANEL_IP', '103.168.196.2'); |
| 37 |
define('SOFTACULOUS_WWW_URL', 'https://softaculous.com/'); |
| 38 |
define('SOFTACULOUS_ADDSITE', 'https://cloud.softaculous.com/index.php?act=wpc_addsite&auth_type=wordpress'); |
| 39 |
define('SOFTACULOUS_PLUGIN_URL', plugin_dir_url(__FILE__)); |
| 40 |
|
| 41 |
include_once(dirname(__FILE__).'/functions.php'); |
| 42 |
|
| 43 |
// Activation Hook |
| 44 |
register_activation_hook(__FILE__, 'softaculous_activation_hook'); |
| 45 |
|
| 46 |
// De-activation Hook |
| 47 |
register_deactivation_hook(__FILE__, 'softaculous_deactivation_hook'); |
| 48 |
|
| 49 |
add_action('plugins_loaded', 'softaculous_load_plugin'); |
| 50 |
|