1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-25 00:41:52 +02:00

Disable various obsolete prefs

This commit is contained in:
e107steved
2008-10-11 11:55:18 +00:00
parent 7cd6534f10
commit 399f220ed6
5 changed files with 23 additions and 19 deletions

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/class2.php,v $
| $Revision: 1.66 $
| $Date: 2008-10-07 21:29:25 $
| $Revision: 1.67 $
| $Date: 2008-10-11 11:55:18 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@@ -600,6 +600,7 @@ define("SITEADMINEMAIL", $pref['siteadminemail']);
define("SITEDISCLAIMER", $tp->toHTML($pref['sitedisclaimer'], "", "emotes_off, defs"));
define("SITECONTACTINFO", $tp->toHTML($pref['sitecontactinfo'], TRUE, "emotes_off, defs"));
/* Withdrawn 0.8
// legacy module.php file loading.
if (isset($pref['modules']) && $pref['modules']) {
$mods=explode(",", $pref['modules']);
@@ -609,7 +610,7 @@ if (isset($pref['modules']) && $pref['modules']) {
}
}
}
*/
$js_body_onload = array(); // Initialise this array in case a module wants to add to it

View File

@@ -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

View File

@@ -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);

View File

@@ -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');

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_files/def_e107_prefs.php,v $
| $Revision: 1.14 $
| $Date: 2008-08-24 09:56:57 $
| $Revision: 1.15 $
| $Date: 2008-10-11 11:55:18 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@@ -89,8 +89,6 @@ City, State, Country
'autoban' => '1',
'sitelang_init' => $pref_language,
'linkpage_screentip' => '0',
'plug_status' => 'rss_menu',
'plug_latest' => '',
'wmessage_sc' => '0',
'frontpage_force' => array(e_UC_PUBLIC => ''),
'frontpage' => array(e_UC_PUBLIC => 'news.php'),