-
Notifications
You must be signed in to change notification settings - Fork 0
/
remove.php
44 lines (37 loc) · 1.26 KB
/
remove.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* Mod Site (SMF)
*
* @package SMF
* @author Suki <suki@missallsunday.com>
* @copyright 2012 Jessica González
* @license http://www.mozilla.org/MPL/ MPL 2.0
*
* @version 1.0 Alpha 1
*/
/*
* Version: MPL 2.0
*
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
*/
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
elseif (!defined('SMF'))
exit('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');
$hooks = array(
'integrate_pre_include' => '$sourcedir/ModSite::$name/ModSite.php',
'integrate_admin_areas' => 'ModSiteHooks::admin',
'integrate_menu_buttons' => 'ModSiteHooks::menu',
'integrate_actions' => 'ModSiteHooks::action',
);
$call = 'remove_integration_function';
foreach ($hooks as $hook => $function)
$call($hook, $function);