mirror of
https://github.com/e107inc/e107.git
synced 2025-09-02 10:53:29 +02:00
Disable various obsolete prefs
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_admin/admin.php,v $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2008-08-25 10:46:30 $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2008-10-11 11:55:18 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@@ -33,6 +33,7 @@ if (is_dir(e_ADMIN.'htmlarea') || is_dir(e_HANDLER.'htmlarea'))
|
||||
$ns -> tablerender(ADLAN_ERR_1, $text);
|
||||
}
|
||||
|
||||
/* Not used in 0.8
|
||||
// check for old modules.
|
||||
if(getperms('0') && isset($pref['modules']) && $pref['modules'] && $sql->db_Field("plugin",5) == "plugin_addons")
|
||||
{
|
||||
@@ -60,6 +61,7 @@ if(getperms('0') && isset($pref['modules']) && $pref['modules'] && $sql->db_Fiel
|
||||
$ns -> tablerender(ADLAN_ERR_4,$text);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
// check for file-types;
|
||||
$allowed_types = get_filetypes(); // Get allowed types according to filetypes.xml or filetypes.php
|
||||
|
@@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_admin/plugin.php,v $
|
||||
| $Revision: 1.18 $
|
||||
| $Date: 2008-08-11 21:24:32 $
|
||||
| $Revision: 1.19 $
|
||||
| $Date: 2008-10-11 11:55:18 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@@ -194,11 +194,11 @@ if ($action == 'uninstall')
|
||||
$text .= ($plugin->manage_comments('remove', $eplug_comment_ids)) ? EPL_ADLAN_50."<br />" : "";
|
||||
}
|
||||
|
||||
/* Not used in 0.8
|
||||
if ($eplug_module)
|
||||
{
|
||||
$plugin->manage_plugin_prefs('remove', 'modules', $eplug_folder);
|
||||
}
|
||||
|
||||
if ($eplug_status)
|
||||
{
|
||||
$plugin->manage_plugin_prefs('remove', 'plug_status', $eplug_folder);
|
||||
@@ -208,7 +208,7 @@ if ($action == 'uninstall')
|
||||
{
|
||||
$plugin->manage_plugin_prefs('remove', 'plug_latest', $eplug_folder);
|
||||
}
|
||||
|
||||
*/
|
||||
if (is_array($eplug_array_pref))
|
||||
{
|
||||
foreach($eplug_array_pref as $key => $val)
|
||||
@@ -216,7 +216,8 @@ if ($action == 'uninstall')
|
||||
$plugin->manage_plugin_prefs('remove', $key, $eplug_folder, $val);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Not used in 0.8
|
||||
if (is_array($eplug_sc))
|
||||
{
|
||||
$plugin->manage_plugin_prefs('remove', 'plug_sc', $eplug_folder, $eplug_sc);
|
||||
@@ -226,7 +227,7 @@ if ($action == 'uninstall')
|
||||
{
|
||||
$plugin->manage_plugin_prefs('remove', 'plug_bb', $eplug_folder, $eplug_bb);
|
||||
}
|
||||
|
||||
*/
|
||||
if ($eplug_menu_name)
|
||||
{
|
||||
$sql->db_Delete('menus', "menu_name='$eplug_menu_name' ");
|
||||
@@ -320,6 +321,7 @@ if ($action == 'upgrade')
|
||||
}
|
||||
}
|
||||
|
||||
/* Not used in 0.8
|
||||
if ($eplug_module)
|
||||
{
|
||||
$plugin->manage_plugin_prefs('add', 'modules', $eplug_folder);
|
||||
@@ -366,7 +368,7 @@ if ($action == 'upgrade')
|
||||
{
|
||||
$plugin->manage_plugin_prefs('remove', 'plug_bb', $eplug_folder, $eplug_bb);
|
||||
}
|
||||
|
||||
*/
|
||||
if (is_array($upgrade_add_prefs))
|
||||
{
|
||||
$plugin->manage_prefs('add', $upgrade_add_prefs);
|
||||
|
@@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_admin/update_routines.php,v $
|
||||
| $Revision: 1.27 $
|
||||
| $Date: 2008-08-24 09:56:57 $
|
||||
| $Revision: 1.28 $
|
||||
| $Date: 2008-10-11 11:55:18 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@@ -211,7 +211,8 @@ function update_706_to_800($type='')
|
||||
// List of unwanted $pref values which can go
|
||||
$obs_prefs = array('frontpage_type','rss_feeds', 'log_lvcount', 'zone', 'upload_allowedfiletype', 'real', 'forum_user_customtitle',
|
||||
'utf-compatmode','frontpage_method','standards_mode','image_owner','im_quality', 'signup_option_timezone',
|
||||
'plug_sc', 'plug_bb');
|
||||
'modules', 'plug_sc', 'plug_bb', 'plug_status', 'plug_latest'
|
||||
);
|
||||
|
||||
// List of DB tables not required (includes a few from 0.6xx)
|
||||
$obs_tables = array('flood', 'headlines', 'stat_info', 'stat_counter', 'stat_last');
|
||||
|
Reference in New Issue
Block a user