Version 2.3.6
This commit is contained in:
1 parent
a3bb603c96
commit
19b38c7c74
764 files changed
+143731
-118164
No files matched your search
@@ -28,19 +28,19 @@ class application_installer extends class_installer
|
||||
if ( ! $this->ipsclass->member['id'] )
|
||||
{
|
||||
$this->template->page_current = 'login';
|
||||
$this->template->message = "Âû íå èìååòå ïðàâ äîñòóïà ê ìàñòåðó îáíîâëåíèÿ.";
|
||||
$this->template->message = "You do not have access to this tool.";
|
||||
}
|
||||
|
||||
if ( $this->ipsclass->return_md5_check() != $this->saved_data['securekey'] )
|
||||
{
|
||||
$this->template->page_current = 'login';
|
||||
$this->template->message = "Âû íå èìååòå ïðàâ äîñòóïà ê ìàñòåðó îáíîâëåíèÿ.";
|
||||
$this->template->message = "You do not have access to this tool.";
|
||||
}
|
||||
|
||||
if ( ! $this->ipsclass->member['g_access_cp'] )
|
||||
{
|
||||
$this->template->page_current = 'login';
|
||||
$this->template->message = "Äëÿ èñïîëüçîâàíèÿ ìàñòåðà îáíîâëåíèÿ âû äîëæíû îáëàäàòü ïðàâàìè àäìèíèñòðàòîðà ôîðóìà.";
|
||||
$this->template->message = "You must be an admin to access this upgrade script.";
|
||||
}
|
||||
|
||||
if( $this->ipsclass->DB->field_exists( 'converge_id', 'members_converge' ) )
|
||||
@@ -68,8 +68,8 @@ class application_installer extends class_installer
|
||||
//--------------------------------
|
||||
// Get latest ID...
|
||||
//--------------------------------
|
||||
$dir_versions = array_reverse($this->dir_contents);
|
||||
$this->last_poss_id = array_shift( $dir_versions );
|
||||
//$dir_versions = array_reverse($this->dir_contents);
|
||||
//$this->last_poss_id = array_shift( $dir_versions );
|
||||
|
||||
//--------------------------------
|
||||
// Get datafile
|
||||
@@ -90,7 +90,7 @@ class application_installer extends class_installer
|
||||
$tmp = $this->db_contents;
|
||||
|
||||
$this->current_version = array_pop( $tmp );
|
||||
|
||||
|
||||
if ( ! $this->current_version )
|
||||
{
|
||||
if ( $this->saved_data['vid'] )
|
||||
@@ -115,27 +115,29 @@ class application_installer extends class_installer
|
||||
// Get the next upgrade script
|
||||
//------------------------------------------
|
||||
|
||||
ksort( $this->dir_contents );
|
||||
ksort( $this->versions );
|
||||
|
||||
foreach( $this->dir_contents as $i => $a )
|
||||
foreach( $this->versions as $i => $a )
|
||||
{
|
||||
if ( $this->current_version == '00000' )
|
||||
{
|
||||
if ( $a > $this->current_upgrade )
|
||||
if ( $i > $this->current_upgrade )
|
||||
{
|
||||
$this->current_upgrade = $a;
|
||||
$this->modules_to_run[0] = $this->versions[ $a ];
|
||||
$this->current_upgrade = $i;
|
||||
$this->modules_to_run[0] = $this->versions[ $i ];
|
||||
}
|
||||
}
|
||||
elseif ( $a > $this->current_version )
|
||||
elseif ( $i > $this->current_version )
|
||||
{
|
||||
if ( ! $this->current_upgrade )
|
||||
{
|
||||
$this->current_upgrade = $a;
|
||||
$this->current_upgrade = $i;
|
||||
}
|
||||
|
||||
$this->modules_to_run[] = $this->versions[ $a ];
|
||||
$this->modules_to_run[] = $this->versions[ $i ];
|
||||
}
|
||||
|
||||
$this->last_poss_id = $i;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -161,35 +163,6 @@ class application_installer extends class_installer
|
||||
return $vers;
|
||||
}
|
||||
|
||||
function get_db_codepage()
|
||||
{
|
||||
if ( $this->ipsclass->vars['sql_driver'] == 'mysql' )
|
||||
{
|
||||
$this->ipsclass->DB->sql_get_version();
|
||||
|
||||
if ( $this->ipsclass->DB->mysql_version >= 40101 )
|
||||
{
|
||||
$table_scheme = $this->ipsclass->DB->sql_get_table_schematic ( "topics" );
|
||||
|
||||
$q = $table_scheme['Create Table'];
|
||||
|
||||
$match = array();
|
||||
|
||||
if ( preg_match("/CHARSET=([a-zA-Z0-9]+)/", $q, $match) )
|
||||
{
|
||||
return $match[1];
|
||||
}
|
||||
|
||||
if ( preg_match("/CHARACTER SET ([a-zA-Z0-9]+)/", $q, $match) )
|
||||
{
|
||||
return $match[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Get dir structure..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -239,7 +212,7 @@ class application_installer extends class_installer
|
||||
// BBCODE
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà BB-êîäîâ...";
|
||||
$output[] = "Rebuilding bbcode cache...";
|
||||
|
||||
$this->ipsclass->cache['bbcode'] = array();
|
||||
|
||||
@@ -257,7 +230,7 @@ class application_installer extends class_installer
|
||||
// Forum cache
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà ôîðóìîâ...";
|
||||
$output[] = "Rebuilding forum cache...";
|
||||
|
||||
$this->ipsclass->update_forum_cache();
|
||||
|
||||
@@ -265,7 +238,7 @@ class application_installer extends class_installer
|
||||
// Group Cache
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà ãðóïï...";
|
||||
$output[] = "Rebuilding group cache...";
|
||||
|
||||
$this->ipsclass->cache['group_cache'] = array();
|
||||
|
||||
@@ -286,7 +259,7 @@ class application_installer extends class_installer
|
||||
// Systemvars
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà ñèñòåìíûõ ïåðåìåííûõ";
|
||||
$output[] = "Rebuilding system cache...";
|
||||
|
||||
$this->ipsclass->cache['systemvars'] = array();
|
||||
|
||||
@@ -301,7 +274,7 @@ class application_installer extends class_installer
|
||||
// Moderators
|
||||
//-----------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà ìîäåðàòîðîâ ôîðóìîâ";
|
||||
$output[] = "Rebuilding moderator cache...";
|
||||
|
||||
$this->ipsclass->cache['moderators'] = array();
|
||||
|
||||
@@ -315,7 +288,7 @@ class application_installer extends class_installer
|
||||
// Cal events / Birthdays
|
||||
//-----------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà äíåé ðîæäåíèé/ñîáûòèé...";
|
||||
$output[] = "Rebuilding calendar events/birthdays cache...";
|
||||
|
||||
require_once( ROOT_PATH . 'sources/action_admin/calendars.php' );
|
||||
$calendars = new ad_calendars();
|
||||
@@ -328,7 +301,7 @@ class application_installer extends class_installer
|
||||
// Ranks
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà çâàíèé ïîëüçîâàòåëåé...";
|
||||
$output[] = "Rebuilding ranks cache...";
|
||||
|
||||
$this->ipsclass->cache['ranks'] = array();
|
||||
|
||||
@@ -355,7 +328,7 @@ class application_installer extends class_installer
|
||||
// SETTINGS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà íàñòðîåê ôîðóìà...";
|
||||
$output[] = "Rebuilding settings cache...";
|
||||
|
||||
require_once( ROOT_PATH . 'sources/action_admin/settings.php' );
|
||||
$settings = new ad_settings();
|
||||
@@ -367,7 +340,7 @@ class application_installer extends class_installer
|
||||
// EMOTICONS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà ñìàéëèêîâ...";
|
||||
$output[] = "Rebuilding emoticons cache...";
|
||||
|
||||
require_once( ROOT_PATH . 'sources/action_admin/emoticons.php' );
|
||||
$emoticons = new ad_emoticons();
|
||||
@@ -379,7 +352,7 @@ class application_installer extends class_installer
|
||||
// LANGUAGES
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå ÿçûêîâîãî êåøà...";
|
||||
$output[] = "Rebuilding languages cache...";
|
||||
|
||||
$this->ipsclass->cache['languages'] = array();
|
||||
|
||||
@@ -397,7 +370,7 @@ class application_installer extends class_installer
|
||||
// ATTACHMENT TYPES
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$output[] = "Ñîçäàíèå êåøà òèïîâ ôàéëîâ...";
|
||||
$output[] = "Rebuilding attachment types cache...";
|
||||
|
||||
$this->ipsclass->cache['attachtypes'] = array();
|
||||
|
||||
@@ -413,29 +386,6 @@ class application_installer extends class_installer
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* application_installer::write_codepage_configuration
|
||||
*
|
||||
* Writes the configuration codepage for this app
|
||||
*
|
||||
*/
|
||||
function write_codepage_configuration()
|
||||
{
|
||||
$this->ipsclass->vars['mysql_codepage'] = $this->saved_data['mysql_codepage'];
|
||||
|
||||
$core_conf = $this->read_file( ROOT_PATH. "conf_global.php" );
|
||||
$cp = '$INFO['."'mysql_codepage'".']'."\t\t\t=\t'".$this->saved_data['mysql_codepage']."';\n";
|
||||
$core_conf = str_replace("\n".'?'.'>', $cp, $core_conf);
|
||||
$core_conf .= "\n".'?'.'>';
|
||||
|
||||
/* Write Configuration Files */
|
||||
$output = 'Îáíîâëåíèå êîíôèãóðàöèîííûõ ôàéëîâ...<br />';
|
||||
|
||||
$this->write_file( ROOT_PATH. "conf_global.php" , $core_conf );
|
||||
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user