| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * @package SimplePortal ElkArte |
||
| 5 | * |
||
| 6 | * @author SimplePortal Team |
||
| 7 | * @copyright 2015-2021 SimplePortal Team |
||
| 8 | * @license BSD 3-clause |
||
| 9 | * @version 1.0.0 |
||
| 10 | */ |
||
| 11 | |||
| 12 | if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('ELK')) |
||
| 13 | { |
||
| 14 | require_once(dirname(__FILE__) . '/SSI.php'); |
||
| 15 | } |
||
| 16 | elseif (!defined('ELK')) |
||
| 17 | { |
||
| 18 | exit('<b>Error:</b> Cannot uninstall - please verify you put this in the same place as ELK\'s index.php.'); |
||
| 19 | } |
||
| 20 | |||
| 21 | global $modSettings, $package_cache; |
||
| 22 | |||
| 23 | $defaults = array( |
||
| 24 | 'sp_portal_mode' => 0, |
||
| 25 | 'front_page' => '', |
||
| 26 | 'sp_disable' => 1, |
||
| 27 | ); |
||
| 28 | |||
| 29 | foreach ($defaults as $index => $value) |
||
| 30 | { |
||
| 31 | $updates[$index] = $value; |
||
| 32 | } |
||
| 33 | |||
| 34 | if (!empty($modSettings['admin_features'])) |
||
| 35 | { |
||
| 36 | $updates['admin_features'] = str_replace(',pt', '', $modSettings['admin_features']); |
||
| 37 | } |
||
| 38 | updateSettings($updates); |
||
| 39 | Hooks::instance()->disableIntegration('Portal_Integrate'); |
||
| 40 | |||
| 41 | // And let ElkArte know we have been mucking about so the cache is reset |
||
| 42 | updateSettings(array('settings_updated' => time())); |
||
| 43 | |||
| 44 | if (ELK === 'SSI') |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 45 | { |
||
| 46 | echo 'Settings changes were carried out successfully.'; |
||
| 47 | } |
||
| 48 |