mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 05:02:02 +02:00
Update routine tweaks
This commit is contained in:
parent
1a846521ff
commit
4e147bc6c9
@ -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.34 $
|
||||
| $Date: 2008-12-10 21:46:40 $
|
||||
| $Revision: 1.35 $
|
||||
| $Date: 2008-12-17 21:02:25 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@ -461,6 +461,15 @@ function update_706_to_800($type='')
|
||||
}
|
||||
}
|
||||
|
||||
// Extra index to rss table (if used)
|
||||
if (FALSE !== ($temp = addIndexToTable('rss', 'rss_name', $just_check, $updateMessages, TRUE)))
|
||||
{
|
||||
if ($just_check)
|
||||
{
|
||||
return update_needed($temp);
|
||||
}
|
||||
}
|
||||
|
||||
// Front page prefs (logic has changed)
|
||||
if (!isset($pref['frontpage_force']))
|
||||
{ // Just set basic options; no real method of converting the existing
|
||||
@ -853,9 +862,18 @@ function mysql_table_exists($table)
|
||||
|
||||
|
||||
// Add index to a table. Returns FALSE if not required. Returns a message if required and just checking
|
||||
function addIndexToTable($target, $indexSpec, $just_check, &$updateMessages)
|
||||
function addIndexToTable($target, $indexSpec, $just_check, &$updateMessages, $optionalTable=FALSE)
|
||||
{
|
||||
global $sql;
|
||||
if (!mysql_table_exists($target))
|
||||
{
|
||||
if ($optionalTable)
|
||||
{
|
||||
return !$just_check; // Nothing to do it table is optional and not there
|
||||
}
|
||||
$updateMessages[] = str_replace(array('--TABLE--','--INDEX--'),array($target,$indexSpec),LAN_UPDATE_54);
|
||||
return !$just_check; // No point carrying on - return 'nothing to do'
|
||||
}
|
||||
if ($sql -> db_Query("SHOW INDEX FROM ".MPREFIX.$target))
|
||||
{
|
||||
$found = FALSE;
|
||||
|
@ -4,8 +4,8 @@
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/lan_e107_update.php,v $
|
||||
| $Revision: 1.6 $
|
||||
| $Date: 2008-12-06 15:48:26 $
|
||||
| $Revision: 1.7 $
|
||||
| $Date: 2008-12-17 21:02:30 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@ -58,7 +58,7 @@ define('LAN_UPDATE_50', 'Obsolete prefs deleted: ');
|
||||
define('LAN_UPDATE_51', 'Update plugin table definition: ');
|
||||
define('LAN_UPDATE_52', 'Update downloads table');
|
||||
define('LAN_UPDATE_53', 'Update download mirror table');
|
||||
define('LAN_UPDATE_54', '');
|
||||
define('LAN_UPDATE_54', 'Missing table --TABLE-- - cannot add index --INDEX--');
|
||||
define('LAN_UPDATE_55', '');
|
||||
define('LAN_UPDATE_56', '');
|
||||
define('LAN_UPDATE_57', '');
|
||||
|
@ -4,9 +4,9 @@
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_languages/English/lan_userclass.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:34:40 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2008-12-17 21:02:30 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
define("UC_LAN_0", "Everyone (public)");
|
||||
@ -16,4 +16,7 @@ define("UC_LAN_3", "Members");
|
||||
define("UC_LAN_4", "Read Only");
|
||||
define("UC_LAN_5", "Admin");
|
||||
define("UC_LAN_6", "Main Admin");
|
||||
define('UC_LAN_7', 'Forum Moderators');
|
||||
define('UC_LAN_8','Admins and Mods');
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user