Version 2.3.6
This commit is contained in:
1 parent
a3bb603c96
commit
19b38c7c74
764 files changed
+143731
-118164
No files matched your search
@@ -1,30 +1,4 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board INSTALLER
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+----------------------------------------------------------------------------
|
||||
| Action controller for done page
|
||||
+----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Action controller for done page
|
||||
|
||||
@@ -1,30 +1,4 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board INSTALLER
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+----------------------------------------------------------------------------
|
||||
| Action controller for EULA page
|
||||
+----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Action controller for EULA page
|
||||
@@ -41,11 +15,6 @@ class action_eula
|
||||
|
||||
function run()
|
||||
{
|
||||
if( isset($this->install->ipsclass->input['mysql_codepage']) AND $this->install->ipsclass->input['mysql_codepage'] != 'none' )
|
||||
{
|
||||
$this->install->saved_data['mysql_codepage'] = $this->install->ipsclass->input['mysql_codepage'];
|
||||
}
|
||||
|
||||
/* Page Output */
|
||||
$this->install->template->append( $this->install->template->eula_page( nl2br($this->install->product_license) ) );
|
||||
$this->install->template->next_action = '?p=install';
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<html>␍<head><title>Invision Power Board - Bulletin Board System</title></head>␍<body>␍<h1>403: Invision Power Board -> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://anonym.to/http://www.invisionboard.com/">Invision Power Board</a>␍</body>␍</html>
|
||||
@@ -1,30 +1,4 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board INSTALLER
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+----------------------------------------------------------------------------
|
||||
| Action controller for install page
|
||||
+----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Action controller for install page
|
||||
@@ -33,7 +7,6 @@
|
||||
class action_install
|
||||
{
|
||||
var $install;
|
||||
var $extra_install;
|
||||
|
||||
var $helpfiles = 0;
|
||||
|
||||
@@ -52,10 +25,6 @@ class action_install
|
||||
$this->install->saved_data['helpfile'] = intval($this->install->ipsclass->input['helpfile']) ? intval($this->install->ipsclass->input['helpfile']) : $this->install->saved_data['helpfile'];
|
||||
$this->install->saved_data['man'] = intval($this->install->ipsclass->input['man']) ? intval($this->install->ipsclass->input['man']) : $this->install->saved_data['man'];
|
||||
|
||||
if ( isset($this->install->saved_data['mysql_codepage']) AND !isset($this->install->ipsclass->vars['mysql_codepage']) ) {
|
||||
$this->install->ipsclass->DB->obj['mysql_codepage'] = $this->install->saved_data['mysql_codepage'];
|
||||
}
|
||||
|
||||
/* Switch */
|
||||
switch( $this->install->ipsclass->input['sub'] )
|
||||
{
|
||||
@@ -144,11 +113,6 @@ class action_install
|
||||
*/
|
||||
function install_sql()
|
||||
{
|
||||
if ( $this->install->saved_data['mysql_codepage'] AND !isset($this->install->ipsclass->vars['mysql_codepage']) )
|
||||
{
|
||||
$output = $this->install->write_codepage_configuration();
|
||||
}
|
||||
|
||||
if ( $this->install->current_upgrade AND $this->install->current_upgrade < 20000 )
|
||||
{
|
||||
// Jump right to the finish routine for 1.x
|
||||
@@ -169,14 +133,6 @@ class action_install
|
||||
require_once ( INS_ROOT_PATH.'installfiles/upg_'.$this->install->current_upgrade.'/'.strtolower($this->install->ipsclass->vars['sql_driver']).'_updates.php' );
|
||||
}
|
||||
|
||||
if ( file_exists( INS_ROOT_PATH.'sql/'.$this->install->ipsclass->vars['sql_driver'].'_install.php' ) )
|
||||
{
|
||||
require_once( INS_ROOT_PATH.'sql/'.$this->install->ipsclass->vars['sql_driver'].'_install.php' );
|
||||
|
||||
$extra_install = new install_extra();
|
||||
$extra_install->ipsclass =& $this->install->ipsclass;
|
||||
}
|
||||
|
||||
// Create/Alter tables
|
||||
if ( count( $SQL ) > 0 )
|
||||
{
|
||||
@@ -191,15 +147,11 @@ class action_install
|
||||
|
||||
$q = str_replace( "<%time%>", time(), $q );
|
||||
|
||||
if ( preg_match("/CREATE TABLE (\S+) \(/", $q) )
|
||||
if( $this->install->ipsclass->vars['mysql_tbl_type'] )
|
||||
{
|
||||
//-----------------------------------
|
||||
// Pass to handler
|
||||
//-----------------------------------
|
||||
|
||||
if ( $extra_install AND method_exists( $extra_install, 'process_query_create' ) )
|
||||
if( preg_match( "/^create table(.+?)/i", $q ) )
|
||||
{
|
||||
$q = $extra_install->process_query_create( $q );
|
||||
$q = preg_replace( "/^(.+?)\);$/is", "\\1) TYPE={$this->install->ipsclass->vars['mysql_tbl_type']};", $q );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -222,7 +174,7 @@ class action_install
|
||||
}
|
||||
}
|
||||
|
||||
$message[] = "Âûïîëíåíî $this->sqlcount çàïðîñîâ...";
|
||||
$message[] = $this->sqlcount." queries run...";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -235,11 +187,11 @@ class action_install
|
||||
|
||||
if ( count( $this->install->error ) > 0 )
|
||||
{
|
||||
$this->install->message = count($message) ? implode( "<br />", $message ) : "Ïðîäîëæàåì îáíîâëåíèå";
|
||||
$this->install->message = count($message) ? implode( "<br />", $message ) : "Proceeding with update";
|
||||
|
||||
$this->install->template->warning( array_merge( array( $this->install->message ),
|
||||
array( 'Ïðîáëåìû ïðè îáíîâëåíèè äî '.$this->install->versions[ $this->install->current_upgrade ]. ' (' . $this->install->current_upgrade . ')' ),
|
||||
array( "<span style='color:red'>Îøèáîê: ".count($this->install->error).'</span>' ),
|
||||
array( 'Error in upgrade '.$this->install->versions[ $this->install->current_upgrade ]. ' (' . $this->install->current_upgrade . ')' ),
|
||||
array( "<span style='color:red'>".count($this->install->error).' errors found</span>' ),
|
||||
$this->install->error ) );
|
||||
$this->install->template->in_error = 1;
|
||||
|
||||
@@ -250,14 +202,14 @@ class action_install
|
||||
|
||||
if( $this->install->saved_data['man'] AND $output )
|
||||
{
|
||||
$output = "<h3><b>Äëÿ ïðîäîëæåíèÿ îáíîâëåíèÿ íåîáõîäèìî âûïîëíèòü ñëåäóþùèå MySQL çàïðîñû:</b></h3><br /><div class='eula'>".nl2br(htmlspecialchars($output)).'</div>';
|
||||
$output = "<h3><b>Please run these queries in your MySQL database before continuing..</b></h3><br />".nl2br(htmlspecialchars($output));
|
||||
|
||||
$this->install->template->next_action = '?p=install&sub=finish';
|
||||
$this->install->template->append( $output );
|
||||
}
|
||||
else
|
||||
{
|
||||
$output[] = count($message) ? implode( "<br />", $message ) : "Íåò çàïðîñîâ, íàñòðîåê äëÿ èìïîðòèðîâàíèÿ...<br /><br />Ïðîäîëæàåì îáíîâëåíèå";
|
||||
$output[] = count($message) ? implode( "<br />", $message ) : "No queries, settings, or permissions to import...<br /><br />Proceeding with update";
|
||||
$this->install->template->next_action = '?p=install&sub=finish';
|
||||
$this->install->template->append( $this->install->template->install_page_refresh( $output ) );
|
||||
$this->install->template->hide_next = 1;
|
||||
@@ -304,7 +256,7 @@ class action_install
|
||||
// Run it
|
||||
//-------------------------------
|
||||
|
||||
$settings->settings_do_import( 1, 1 );
|
||||
$settings->settings_do_import( 1 );
|
||||
|
||||
$message[] = $this->install->ipsclass->main_msg;
|
||||
|
||||
@@ -320,11 +272,11 @@ class action_install
|
||||
|
||||
if ( count( $this->install->error ) > 0 )
|
||||
{
|
||||
$this->install->message = count($message) ? implode( "<br />", $message ) : "Ïðîäîëæàåì îáíîâëåíèå";
|
||||
$this->install->message = count($message) ? implode( "<br />", $message ) : "Proceeding with update";
|
||||
|
||||
$this->install->template->warning( array_merge( array( $this->install->message ),
|
||||
array( 'Ïðîáëåìû ïðè îáíîâëåíèè äî '.$this->install->versions[ $this->install->current_upgrade ]. ' (' . $this->install->current_upgrade . ')' ),
|
||||
array( "<span style='color:red'>Îøèáîê: ".count($this->install->error).'</span>' ),
|
||||
array( 'Error in upgrade '.$this->install->versions[ $this->install->current_upgrade ]. ' (' . $this->install->current_upgrade . ')' ),
|
||||
array( "<span style='color:red'>".count($this->install->error).' errors found</span>' ),
|
||||
$this->install->error ) );
|
||||
$this->install->template->in_error = 1;
|
||||
|
||||
@@ -333,7 +285,7 @@ class action_install
|
||||
return;
|
||||
}
|
||||
|
||||
$output[] = count($message) ? implode( "<br />", $message ) : "Íåò íàñòðîåê äëÿ èìïîðòèðîâàíèÿ...<br /><br />Ïðîäîëæàåì îáíîâëåíèå";
|
||||
$output[] = count($message) ? implode( "<br />", $message ) : "No settings to import...<br /><br />Proceeding with update";
|
||||
$this->install->template->next_action = '?p=install&sub=acpperms';
|
||||
$this->install->template->append( $this->install->template->install_page_refresh( $output ) );
|
||||
$this->install->template->hide_next = 1;
|
||||
@@ -372,7 +324,7 @@ class action_install
|
||||
|
||||
$api->add_task();
|
||||
|
||||
$message[] = $api->error ? "<span style='color:red;'>Íå óäàëîñü îáíîâèòü ñïèñîê çàäà÷ ïëàíèðîâùèêà. Âîñïîëüçóéòåñü èíòñðóìåíòîì îáíîâëåíèÿ çàäà÷ â ÀÖ.</span>" : "Îáíîâëåíèå ñïèñêà çàäà÷ ïëàíèðîâùèêà...";
|
||||
$message[] = $api->error ? "<span style='color:red;'>Could not rebuild tasks. Please rebuild tasks in the ACP from the Task Manager page</span>" : "Rebuilt Tasks from XML...";
|
||||
|
||||
//-------------------------------
|
||||
// Load module...
|
||||
@@ -399,7 +351,7 @@ class action_install
|
||||
//-----------------------------------------
|
||||
// Install FAQ
|
||||
//-----------------------------------------
|
||||
$message[] = "Îáíîâëåíèå ðàçäåëîâ ïîìîùè...";
|
||||
$message[] = "Updating FAQ information...";
|
||||
$xml = new class_xml();
|
||||
$xml->lite_parser = 1;
|
||||
|
||||
@@ -443,13 +395,81 @@ class action_install
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// XML: Help Information
|
||||
//-----------------------------------------
|
||||
|
||||
$message[] = "Inserting ACP help files...";
|
||||
|
||||
$keys = array();
|
||||
|
||||
$this->install->ipsclass->DB->build_query( array( 'select' => 'page_key', 'from' => 'acp_help' ) );
|
||||
$this->install->ipsclass->DB->exec_query();
|
||||
|
||||
while( $r = $this->install->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$keys[] = $r['page_key'];
|
||||
}
|
||||
|
||||
$xml = new class_xml();
|
||||
$xml->lite_parser = 1;
|
||||
|
||||
$content = implode( "", file( ROOT_PATH . 'resources/help_sections.xml' ) );
|
||||
$xml->xml_parse_document( $content );
|
||||
|
||||
foreach( $xml->xml_array['helpsectionsexport']['helpsectionsgroup']['helpsections'] as $id => $entry )
|
||||
{
|
||||
$newrow = array(
|
||||
'is_setting' => 0,
|
||||
'page_key' => $entry['key']['VALUE'],
|
||||
'help_title' => $entry['title']['VALUE'],
|
||||
'help_body' => $entry['helptext']['VALUE'],
|
||||
);
|
||||
|
||||
if( in_array( $newrow['page_key'], $keys ) )
|
||||
{
|
||||
$this->install->ipsclass->DB->do_update( 'acp_help', $newrow, "page_key='{$newrow['page_key']}'" );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->ipsclass->DB->do_insert( 'acp_help', $newrow );
|
||||
}
|
||||
}
|
||||
|
||||
$xml = new class_xml();
|
||||
$xml->lite_parser = 1;
|
||||
|
||||
$content = implode( "", file( ROOT_PATH . 'resources/help_settings.xml' ) );
|
||||
$xml->xml_parse_document( $content );
|
||||
|
||||
foreach( $xml->xml_array['helpsettingsexport']['helpsettingsgroup']['helpsettings'] as $id => $entry )
|
||||
{
|
||||
$newrow = array(
|
||||
'is_setting' => 1,
|
||||
'page_key' => $entry['key']['VALUE'],
|
||||
'help_title' => $entry['title']['VALUE'],
|
||||
'help_body' => $entry['helptext']['VALUE'],
|
||||
'help_mouseover'=> $entry['mouseover']['VALUE'],
|
||||
);
|
||||
|
||||
if( in_array( $newrow['page_key'], $keys ) )
|
||||
{
|
||||
$this->install->ipsclass->DB->do_update( 'acp_help', $newrow, "page_key='{$newrow['page_key']}'" );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->ipsclass->DB->do_insert( 'acp_help', $newrow );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( count( $this->install->error ) > 0 )
|
||||
{
|
||||
$this->install->message = count($message) ? implode( "<br />", $message ) : "Ïðîäîëæàåì îáíîâëåíèå";
|
||||
$this->install->message = count($message) ? implode( "<br />", $message ) : "Proceeding with update";
|
||||
|
||||
$this->install->template->warning( array_merge( array( $this->install->message ),
|
||||
array( 'Ïðîáëåìû ïðè îáíîâëåíèè äî '.$this->install->versions[ $this->install->current_upgrade ]. ' (' . $this->install->current_upgrade . ')' ),
|
||||
array( "<span style='color:red'>Îøèáîê: ".count($this->install->error).'</span>' ),
|
||||
array( 'Error in upgrade '.$this->install->versions[ $this->install->current_upgrade ]. ' (' . $this->install->current_upgrade . ')' ),
|
||||
array( "<span style='color:red'>".count($this->install->error).' errors found</span>' ),
|
||||
$this->install->error ) );
|
||||
$this->install->template->in_error = 1;
|
||||
|
||||
@@ -475,28 +495,28 @@ class action_install
|
||||
{
|
||||
$continue = 0;
|
||||
|
||||
$upg_file = INS_ROOT_PATH.'installfiles/upg_'.$this->install->current_upgrade.'/version_upgrade.php';
|
||||
if ( $this->install->current_upgrade < 20000 )
|
||||
{
|
||||
$driver = $this->install->ipsclass->vars['sql_driver'] ? trim(strtolower($this->install->ipsclass->vars['sql_driver'])) : 'mysql';
|
||||
|
||||
$upg_file = INS_ROOT_PATH.'installfiles/upg_'.$this->install->current_upgrade.'/version_upgrade_' . $driver . '.php';
|
||||
}
|
||||
else
|
||||
{
|
||||
$upg_file = INS_ROOT_PATH.'installfiles/upg_'.$this->install->current_upgrade.'/version_upgrade.php';
|
||||
}
|
||||
|
||||
if ( file_exists( $upg_file ) )
|
||||
{
|
||||
require_once( $upg_file );
|
||||
|
||||
if ( file_exists( INS_ROOT_PATH.'sql/'.$this->install->ipsclass->vars['sql_driver'].'_install.php' ) )
|
||||
{
|
||||
require_once( INS_ROOT_PATH.'sql/'.$this->install->ipsclass->vars['sql_driver'].'_install.php' );
|
||||
|
||||
$this->install->extra_install = new install_extra();
|
||||
$this->install->extra_install->ipsclass =& $this->install->ipsclass;
|
||||
}
|
||||
|
||||
$upgrade = new version_upgrade( $this->install );
|
||||
$result = $upgrade->auto_run();
|
||||
|
||||
if ( count( $this->install->error ) > 0 )
|
||||
{
|
||||
$this->install->template->warning( array_merge( array( $this->install->message ),
|
||||
array( 'Ïðîáëåìû ïðè îáíîâëåíèè äî '.$this->install->versions[ $this->install->current_upgrade ]. ' (' . $this->install->current_upgrade . ')' ),
|
||||
array( "<span style='color:red'>Îøèáîê: ".count($this->install->error).'</span>' ),
|
||||
array( 'Error in upgrade '.$this->install->versions[ $this->install->current_upgrade ]. ' (' . $this->install->current_upgrade . ')' ),
|
||||
array( "<span style='color:red'>".count($this->install->error).' errors found</span>' ),
|
||||
$this->install->error ) );
|
||||
$this->install->template->in_error = 1;
|
||||
|
||||
@@ -550,7 +570,7 @@ class action_install
|
||||
$output[] = $this->install->message;
|
||||
}
|
||||
|
||||
$output[] = "Óñïåøíî çàâåðøåíî îáíîâëåíèå äî âåðñèè <nobr>{$this->install->versions[ $this->install->current_upgrade ]}</nobr>";
|
||||
$output[] = "Succesfully upgraded to version {$this->install->versions[ $this->install->current_upgrade ]}";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -565,7 +585,7 @@ class action_install
|
||||
}
|
||||
else
|
||||
{
|
||||
$output[] = "Ïðîäîëæàåì îáíîâëåíèå...";
|
||||
$output[] = "Proceeding with update...";
|
||||
}
|
||||
|
||||
$continue = 1;
|
||||
@@ -585,7 +605,7 @@ class action_install
|
||||
'upgrade_mid' => $this->install->saved_data['mid'],
|
||||
) );
|
||||
|
||||
$output[] = "Óñïåøíî çàâåðøåíî îáíîâëåíèå äî âåðñèè <nobr>{$this->install->versions[ $this->install->current_upgrade ]}</nobr>";
|
||||
$output[] = "Succesfully upgraded to version {$this->install->versions[ $this->install->current_upgrade ]}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -650,25 +670,83 @@ class action_install
|
||||
//-------------------------------
|
||||
|
||||
require_once( ROOT_PATH . "sources/lib/admin_skin.php" );
|
||||
$this->install->ipsclass->skin_acp = 'IPB2_Standard';
|
||||
$this->install->ipsclass->skin_acp_url = $this->install->ipsclass->vars['board_url']."/skin_acp/".$this->install->ipsclass->skin_acp;
|
||||
$this->install->ipsclass->skin_acp = 'IPB2_Standard';
|
||||
$this->install->ipsclass->skin_acp_url = $this->install->ipsclass->vars['board_url'] . "/skin_acp/" . $this->install->ipsclass->skin_acp;
|
||||
|
||||
$this->install->ipsclass->adskin = new admin_skin();
|
||||
$this->install->ipsclass->adskin->ipsclass =& $this->install->ipsclass;
|
||||
$this->install->ipsclass->adskin->init_admin_skin();
|
||||
|
||||
//-----------------------------------------
|
||||
// Fixing something?
|
||||
//-----------------------------------------
|
||||
|
||||
$queries_to_run = array();
|
||||
|
||||
foreach( $this->install->ipsclass->input as $k => $v )
|
||||
{
|
||||
if( preg_match( "/^query(\d+)$/", $k, $matches ) )
|
||||
{
|
||||
$queries_to_run[] = $v;
|
||||
}
|
||||
}
|
||||
|
||||
if( isset($this->install->ipsclass->input['query']) AND $this->install->ipsclass->input['query'] )
|
||||
{
|
||||
$queries_to_run[] = $this->install->ipsclass->input['query'];
|
||||
}
|
||||
|
||||
if( count($queries_to_run) > 0 )
|
||||
{
|
||||
foreach( $queries_to_run as $the_query )
|
||||
{
|
||||
$sql = trim( urldecode( base64_decode($the_query) ) );
|
||||
|
||||
if ( preg_match( "/^(DROP|FLUSH)/i", trim($sql) ) )
|
||||
{
|
||||
$this->install->ipsclass->main_msg = "Sorry, those queries are not allowed for your safety";
|
||||
|
||||
continue;
|
||||
}
|
||||
else if ( preg_match( "/^(DELETE|UPDATE|TRUNCATE)/i", preg_replace( "#\s{1,}#s", "", $sql ) ) and preg_match( "/admin_login_logs/i", preg_replace( "#\s{1,}#s", "", $sql ) ) )
|
||||
{
|
||||
$this->install->ipsclass->main_msg = "Sorry, those queries are not allowed for your safety";
|
||||
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->ipsclass->DB->return_die = 1;
|
||||
|
||||
$this->install->ipsclass->DB->query($sql,1);
|
||||
|
||||
if( $this->install->ipsclass->DB->error != "" )
|
||||
{
|
||||
$this->install->ipsclass->main_msg .= "<span style='color:red;'>SQL Error</span><br />{$this->install->ipsclass->DB->error}<br />";
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->ipsclass->main_msg .= "Query: ".htmlspecialchars($sql)."<br />Executed Successfully<br />";
|
||||
}
|
||||
|
||||
$this->install->ipsclass->DB->error = "";
|
||||
$this->install->ipsclass->DB->failed = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------
|
||||
// Load module...
|
||||
//-------------------------------
|
||||
|
||||
require_once( KERNEL_PATH . 'db_lib/' . strtolower($this->install->ipsclass->vars['sql_driver']) . '_tools.php' );
|
||||
require_once( ROOT_PATH . 'install/sql/' . strtolower($this->install->ipsclass->vars['sql_driver']) . '_tables.php' );
|
||||
|
||||
require_once( ROOT_PATH."sources/action_admin/sql_{$this->install->ipsclass->vars['sql_driver']}.php" );
|
||||
|
||||
$this->sql_driver = new ad_sql_module();
|
||||
$this->sql_driver->ipsclass =& $this->install->ipsclass;
|
||||
$db_tools = new db_tools( $this->install->ipsclass );
|
||||
|
||||
$output = array();
|
||||
$output = $this->sql_driver->db_table_diag( 0 );
|
||||
|
||||
$output = $db_tools->db_table_diag( $TABLE );
|
||||
#print_r($output);
|
||||
$our_output = " <style type='text/css' media='all'>
|
||||
.tableheader,
|
||||
.tableheaderalt
|
||||
@@ -687,14 +765,16 @@ class action_install
|
||||
<script type='text/javascript' src='dbchecker.js'></script>
|
||||
";
|
||||
|
||||
if( $this->sql_driver->db_has_issues )
|
||||
if( $output['error_count'] > 0 )
|
||||
{
|
||||
$this->install->ipsclass->adskin->td_header[] = array( "{none}" , "50%" );
|
||||
$this->install->ipsclass->adskin->td_header[] = array( "{none}" , "50%" );
|
||||
|
||||
$our_output .= $this->install->ipsclass->adskin->start_table( "ÂÍÈÌÀÍÈÅ: Îáíàðóæåíû îøèáêè" );
|
||||
$our_output .= "<script type='text/javascript' src='dbchecker.js'></script><script type='text/javascript'>var save_data = '".urlencode(serialize($this->install->saved_data))."';</script>";
|
||||
|
||||
$our_output .= $this->install->ipsclass->adskin->add_td_row( array( array( "<script type='text/javascript'>var save_data = '".serialize($this->install->saved_data)."';</script><span class='rss-feed-invalid'>Íàéäåíû îøèáêè â òàáëèöàõ áàçû äàííûõ ôîðóìà. Âû ìîæåòå îçíàêîìèòüñÿ ñî ñïèñêîì íàéäåííûõ îøèáîê íèæå, ëèáî <a href='#' onclick='fix_all_dberrors();'>èñïðàâèòü</a> ñðàçó âñå îøèáêè.", 2 ) ) );
|
||||
$our_output .= $this->install->ipsclass->adskin->start_table( "WARNING: ERRORS FOUND" );
|
||||
|
||||
$our_output .= $this->install->ipsclass->adskin->add_td_row( array( array( "<span class='rss-feed-invalid'>There were errors found with your database. Please review them below, or click <a href='#' onclick='fix_all_dberrors();'>here</a> to correct these errors.", 2 ) ) );
|
||||
|
||||
$our_output .= $this->install->ipsclass->adskin->end_table();
|
||||
}
|
||||
@@ -703,24 +783,43 @@ class action_install
|
||||
$this->install->ipsclass->adskin->td_header[] = array( "{none}" , "50%" );
|
||||
$this->install->ipsclass->adskin->td_header[] = array( "{none}" , "50%" );
|
||||
|
||||
$our_output .= $this->install->ipsclass->adskin->start_table( "Íåò îøèáîê" );
|
||||
$our_output .= $this->install->ipsclass->adskin->start_table( "No Errors Found" );
|
||||
|
||||
$our_output .= $this->install->ipsclass->adskin->add_td_row( array( array( "<span class='rss-feed-valid'>Îøèáîê â âàøå áàçå äàííûõ íå íàéäåíî.", 2 ) ) );
|
||||
$our_output .= $this->install->ipsclass->adskin->add_td_row( array( array( "<span class='rss-feed-valid'>There were no errors found with your database.", 2 ) ) );
|
||||
|
||||
$our_output .= $this->install->ipsclass->adskin->end_table();
|
||||
}
|
||||
|
||||
$this->install->ipsclass->adskin->td_header[] = array( "Òàáëèöà" , "30%" );
|
||||
$this->install->ipsclass->adskin->td_header[] = array( "Ñîñòîÿíèå" , "20%" );
|
||||
$this->install->ipsclass->adskin->td_header[] = array( "Èñïðàâèòü" , "50%" );
|
||||
$this->install->ipsclass->adskin->td_header[] = array( "Table" , "30%" );
|
||||
$this->install->ipsclass->adskin->td_header[] = array( "Status" , "20%" );
|
||||
$this->install->ipsclass->adskin->td_header[] = array( "Fix" , "50%" );
|
||||
|
||||
$our_output .= $this->install->ipsclass->adskin->start_table( "Ðåçóëüòàòû ïðîâåðêè òàáëèö áàçû äàííûõ" );
|
||||
$our_output .= $this->install->ipsclass->adskin->start_table( "Database Table Results" );
|
||||
|
||||
foreach( $output as $html_row )
|
||||
$good_img = "<img src='{$this->install->ipsclass->skin_acp_url}/images/aff_tick.png' border='0' alt='YN' class='ipd' />";
|
||||
$bad_img = "<img src='{$this->install->ipsclass->skin_acp_url}/images/aff_cross.png' border='0' alt='YN' class='ipd' />";
|
||||
|
||||
$i = 0;
|
||||
|
||||
foreach( $output['results'] as $data )
|
||||
{
|
||||
$html_row = preg_replace( "#'&section=help&act=diag&code=dbchecker&query=(.*?)'#i", "'index.php?p=install&sub=checkdb&saved_data=".serialize($this->install->saved_data)."&query=$1'", $html_row );
|
||||
if( $data['status'] == 'error' )
|
||||
{
|
||||
$popup_div = "<div style='border: 2px outset rgb(85, 85, 85); padding: 4px; background: rgb(238, 238, 238) none repeat scroll 0%; position: absolute; width: auto; display: none; text-align: center; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;' id='{$i}' align='center'>{$data['fixsql']}</div>";
|
||||
|
||||
$our_output .= $html_row;
|
||||
$our_output .= $this->install->ipsclass->adskin->add_td_row( array( "<span style='color:red'>{$data['table']}</span>",
|
||||
"<span style='color:red'>{$good_img}</span>",
|
||||
"<center><script type='text/javascript'>all_queries[{$i}] = '".base64_encode($data['fixsql'])."';</script><a href='index.php?p=install&sub=checkdb&saved_data=".urlencode(serialize($this->install->saved_data))."&query=".urlencode(base64_encode($data['fixsql']))."'><b>Fix Automatically</b></a> | <a href'#' onclick=\"toggleview('{$i}');return false;\" style='cursor: pointer;'><b>Fix Manually</b></a><br />{$popup_div}</center>"
|
||||
) );
|
||||
$i++;
|
||||
}
|
||||
else
|
||||
{
|
||||
$our_output .= $this->install->ipsclass->adskin->add_td_row( array( "<span style='color:green'>{$data['table']}</span>",
|
||||
"<span style='color:green'>{$good_img}</span>",
|
||||
" "
|
||||
) );
|
||||
}
|
||||
}
|
||||
|
||||
$our_output .= $this->install->ipsclass->adskin->end_table();
|
||||
@@ -728,11 +827,13 @@ class action_install
|
||||
else
|
||||
{
|
||||
// Can't run db checker as table def isn't there
|
||||
$this->install_skinrevert();
|
||||
//$this->install_skinrevert();
|
||||
$this->install_templates();
|
||||
return;
|
||||
}
|
||||
|
||||
$this->install->template->next_action = '?p=install&sub=skinrevert';
|
||||
//$this->install->template->next_action = '?p=install&sub=skinrevert';
|
||||
$this->install->template->next_action = '?p=install&sub=templates';
|
||||
$this->install->template->append( $our_output );
|
||||
}
|
||||
|
||||
@@ -763,27 +864,17 @@ class action_install
|
||||
if ( ! $this->install->saved_data['do'] )
|
||||
{
|
||||
$id = intval($this->install->saved_data['skinid']) ? intval($this->install->saved_data['skinid']) : 1;
|
||||
$this->install->saved_data['new_skin'] = intval($this->install->saved_data['new_skin']);
|
||||
|
||||
$default = $this->install->ipsclass->DB->simple_exec_query( array( 'select' => '*',
|
||||
'from' => 'skin_sets',
|
||||
'where' => "set_skin_set_id > {$id}",
|
||||
'where' => "set_skin_set_id > {$id} AND set_key != 'ip.board_pro'",
|
||||
'order' => 'set_skin_set_id ASC',
|
||||
'limit' => array(0,1) ) );
|
||||
|
||||
if ( $default['set_skin_set_id'] AND ( $default['set_skin_set_id'] == $this->install->saved_data['new_skin'] ) )
|
||||
{
|
||||
$default = $this->install->ipsclass->DB->simple_exec_query( array( 'select' => '*',
|
||||
'from' => 'skin_sets',
|
||||
'where' => "set_skin_set_id > {$this->install->saved_data['new_skin']}",
|
||||
'order' => 'set_skin_set_id ASC',
|
||||
'limit' => array(0,1) ) );
|
||||
}
|
||||
|
||||
if ( ! $default['set_skin_set_id'] )
|
||||
{
|
||||
$this->install->template->next_action = '?p=install&sub=templates';
|
||||
$this->install->template->append( $this->install->template->install_page_refresh( array( 'Îáðàáîòàíû âñå ñòèëè' ) ) );
|
||||
$this->install->template->append( $this->install->template->install_page_refresh( array( 'No further skins to revert' ) ) );
|
||||
$this->install->template->hide_next = 1;
|
||||
return;
|
||||
}
|
||||
@@ -801,32 +892,35 @@ class action_install
|
||||
$man = intval( $this->install->saved_data['skinid'] );
|
||||
$cnt = 0;
|
||||
|
||||
$default = $this->install->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => "set_skin_set_id=".$man ) );
|
||||
$default = $this->install->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => "set_skin_set_id=".$man." AND set_key != 'ip.board_pro'" ) );
|
||||
|
||||
$this->install->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'skin_templates', 'where' => "set_id=".$man ) );
|
||||
$outer = $this->install->ipsclass->DB->simple_exec();
|
||||
|
||||
if( $this->install->ipsclass->DB->get_num_rows($outer) )
|
||||
if( $default['set_skin_set_id'] )
|
||||
{
|
||||
while( $r = $this->install->ipsclass->DB->fetch_row($outer) )
|
||||
$this->install->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'skin_templates', 'where' => "set_id=".$man ) );
|
||||
$outer = $this->install->ipsclass->DB->simple_exec();
|
||||
|
||||
if( $this->install->ipsclass->DB->get_num_rows($outer) )
|
||||
{
|
||||
if( $r['set_id'] == 1 )
|
||||
while( $r = $this->install->ipsclass->DB->fetch_row($outer) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->ipsclass->DB->simple_exec_query( array( 'delete' => 'skin_templates', 'where' => 'suid='.$r['suid'] ) );
|
||||
$cnt++;
|
||||
if( $r['set_id'] == 1 )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->ipsclass->DB->simple_exec_query( array( 'delete' => 'skin_templates', 'where' => 'suid='.$r['suid'] ) );
|
||||
$cnt++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->ipsclass->DB->do_update( 'skin_sets', array( 'set_css' => '', 'set_wrapper' => '' ), "set_skin_set_id=".$man );
|
||||
}
|
||||
|
||||
$this->install->ipsclass->DB->do_update( 'skin_sets', array( 'set_css' => '', 'set_wrapper' => '' ), "set_skin_set_id=".$man );
|
||||
|
||||
$next = $this->install->ipsclass->DB->simple_exec_query( array( 'select' => '*',
|
||||
'from' => 'skin_sets',
|
||||
'where' => "set_skin_set_id > ".$man,
|
||||
'where' => "set_skin_set_id > ".$man." AND set_key != 'ip.board_pro'",
|
||||
'order' => 'set_skin_set_id ASC',
|
||||
'limit' => array(0,1) ) );
|
||||
|
||||
@@ -837,16 +931,16 @@ class action_install
|
||||
$this->install->saved_data['skinid'] = $next['set_skin_set_id'];
|
||||
$this->install->saved_data['do'] = 'all';
|
||||
$this->install->template->next_action = '?p=install&sub=skinrevert';
|
||||
$this->install->template->append( $this->install->template->install_page_refresh( array( "Èçìåíåíèÿ â $cnt øàáëîíàõ èç ñòèëÿ '{$default['set_name']}' îòìåíåíû, ïåðåõîäèì ê ñëåäóþùåìó ñòèëþ..." ) ) );
|
||||
$this->install->template->append( $this->install->template->install_page_refresh( array( "$cnt skin template bits from skin set '{$default['set_name']}' reverted, proceeding to next skin set...." ) ) );
|
||||
$this->install->template->hide_next = 1;
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->saved_data['skinid'] = $next['set_skin_set_id'];
|
||||
$this->install->saved_data['skinid'] = $default['set_skin_set_id'];
|
||||
$this->install->template->next_action = '?p=install&sub=skinrevert';
|
||||
unset($this->install->saved_data['do']);
|
||||
$this->install->template->append( $this->install->template->install_page_refresh( array( "Èçìåíåíèÿ â $cnt øàáëîíàõ èç ñòèëÿ '{$default['set_name']}' îòìåíåíû, ïåðåõîäèì ê ñëåäóþùåìó ñòèëþ..." ) ) );
|
||||
$this->install->template->append( $this->install->template->install_page_refresh( array( "$cnt skin template bits from skin set '{$default['set_name']}' reverted, proceeding to next skin set...." ) ) );
|
||||
$this->install->template->hide_next = 1;
|
||||
return;
|
||||
}
|
||||
@@ -854,7 +948,7 @@ class action_install
|
||||
else
|
||||
{
|
||||
$this->install->template->next_action = '?p=install&sub=templates';
|
||||
$this->install->template->append( $this->install->template->install_page_refresh( array( "Èçìåíåíèÿ â $cnt øàáëîíàõ èç ñòèëÿ '{$default['set_name']}' îòìåíåíû, ïåðåõîäèì ê ñëåäóþùåìó øàáëîíó..." ) ) );
|
||||
$this->install->template->append( $this->install->template->install_page_refresh( array( "$cnt skin template bits from skin set '{$default['set_name']}' reverted, proceeding to rebuild templates...." ) ) );
|
||||
$this->install->template->hide_next = 1;
|
||||
return;
|
||||
}
|
||||
@@ -900,7 +994,7 @@ class action_install
|
||||
if ( ! is_array( $xml->xml_array['templateexport']['templategroup']['template'] ) )
|
||||
{
|
||||
$this->install->template->in_error = 1;
|
||||
$this->install->error[] = "Ïðîáëåìû ñ ðåñóðîì resources/ipb_templates.xml - ðåñóðñ ñîäåðæèò íå ïðàâèëüíûé XML êîä";
|
||||
$this->install->error[] = "Error with resources/ipb_templates.xml - could not process XML properly";
|
||||
|
||||
$this->install->template->warning( $this->install->error );
|
||||
|
||||
@@ -909,7 +1003,7 @@ class action_install
|
||||
}
|
||||
else
|
||||
{
|
||||
$output[] = "Ãëàâíûé øàáëîí îáíîâëåí, ïåðåõîäèì ê ñîçäàíèþ êåøåé øàáëîíîâ...";
|
||||
$output[] = "Master templates rebuilt, proceeding to recache templates...";
|
||||
|
||||
foreach( $xml->xml_array['templateexport']['templategroup']['template'] as $id => $entry )
|
||||
{
|
||||
@@ -924,21 +1018,23 @@ class action_install
|
||||
|
||||
if ( $row['suid'] )
|
||||
{
|
||||
$this->install->ipsclass->DB->do_update( 'skin_templates', array( 'func_data' => $entry[ 'func_data' ]['VALUE'],
|
||||
'section_content' => $entry[ 'section_content' ]['VALUE'],
|
||||
'updated' => time()
|
||||
)
|
||||
, 'suid='.$row['suid'] );
|
||||
$this->install->ipsclass->DB->do_update( 'skin_templates', array( 'func_data' => $entry[ 'func_data' ]['VALUE'],
|
||||
'section_content' => $entry[ 'section_content' ]['VALUE'],
|
||||
'group_names_secondary' => $entry[ 'group_names_secondary' ]['VALUE'],
|
||||
'updated' => time()
|
||||
)
|
||||
, 'suid='.$row['suid'] );
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->ipsclass->DB->do_insert( 'skin_templates', array( 'func_data' => $entry[ 'func_data' ]['VALUE'],
|
||||
'func_name' => $entry[ 'func_name' ]['VALUE'],
|
||||
'section_content' => $entry[ 'section_content' ]['VALUE'],
|
||||
'group_name' => $entry[ 'group_name' ]['VALUE'],
|
||||
'updated' => time(),
|
||||
'set_id' => 1
|
||||
) );
|
||||
$this->install->ipsclass->DB->do_insert( 'skin_templates', array( 'func_data' => $entry[ 'func_data' ]['VALUE'],
|
||||
'func_name' => $entry[ 'func_name' ]['VALUE'],
|
||||
'section_content' => $entry[ 'section_content' ]['VALUE'],
|
||||
'group_names_secondary' => $entry[ 'group_names_secondary' ]['VALUE'],
|
||||
'group_name' => $entry[ 'group_name' ]['VALUE'],
|
||||
'updated' => time(),
|
||||
'set_id' => 1
|
||||
) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ class action_overview
|
||||
|
||||
if ( empty($this->install->ipsclass->input['username']) )
|
||||
{
|
||||
$this->install->template->append( $this->install->template->login_page( "Íåîáõîäèìî óêàçàòü èìÿ ïîëüçîâàòåëÿ" ) );
|
||||
$this->install->template->append( $this->install->template->login_page( "You must enter a username before proceeding" ) );
|
||||
$this->install->template->next_action = '?p=overview';
|
||||
return;
|
||||
}
|
||||
@@ -49,7 +49,7 @@ class action_overview
|
||||
|
||||
if ( empty($this->install->ipsclass->input['password']) )
|
||||
{
|
||||
$this->install->template->append( $this->install->template->login_page( "Íåîáõîäèìî óêàçàòü ïàðîëü" ) );
|
||||
$this->install->template->append( $this->install->template->login_page( "You must enter a password before proceeding" ) );
|
||||
$this->install->template->next_action = '?p=overview';
|
||||
return;
|
||||
}
|
||||
@@ -75,7 +75,7 @@ class action_overview
|
||||
//----------------------------------
|
||||
if ( empty($mem['id']) )
|
||||
{
|
||||
$this->install->template->append( $this->install->template->login_page( "Ïîëüçîâàòåëü ñ óêàçàííûìè èìåíåì íå ñóùåñòâóåò â ñèñòåìå" ) );
|
||||
$this->install->template->append( $this->install->template->login_page( "Could not find a record matching that username, please check the spelling" ) );
|
||||
$this->install->template->next_action = '?p=overview';
|
||||
return;
|
||||
}
|
||||
@@ -91,7 +91,7 @@ class action_overview
|
||||
|
||||
if ( $pass != $mem['password'] AND $pass != $mem['legacy_password'] )
|
||||
{
|
||||
$this->install->template->append( $this->install->template->login_page( "Ââåäåííûé ïàðîëü íåâåðåí" ) );
|
||||
$this->install->template->append( $this->install->template->login_page( "The password you entered is not correct" ) );
|
||||
$this->install->template->next_action = '?p=overview';
|
||||
return;
|
||||
}
|
||||
@@ -99,7 +99,7 @@ class action_overview
|
||||
{
|
||||
if ($mem['g_access_cp'] != 1)
|
||||
{
|
||||
$this->install->template->append( $this->install->template->login_page( "Âû íå îáëàäàåòå ïðàâàìè àäìèíèñòðàòîðà" ) );
|
||||
$this->install->template->append( $this->install->template->login_page( "You do not have access to the administrative CP" ) );
|
||||
$this->install->template->next_action = '?p=overview';
|
||||
return;
|
||||
}
|
||||
@@ -118,7 +118,7 @@ class action_overview
|
||||
|
||||
if ( ! $this->install->ipsclass->converge->member['converge_id'] )
|
||||
{
|
||||
$this->install->template->append( $this->install->template->login_page( "Ïîëüçîâàòåëü ñ óêàçàííûìè email íå ñóùåñòâóåò â ñèñòåìå" ) );
|
||||
$this->install->template->append( $this->install->template->login_page( "Could not find a record matching that username, please check the spelling" ) );
|
||||
$this->install->template->next_action = '?p=overview';
|
||||
return;
|
||||
}
|
||||
@@ -131,7 +131,7 @@ class action_overview
|
||||
|
||||
if ( $this->install->ipsclass->converge->converge_authenticate_member( $pass ) != TRUE )
|
||||
{
|
||||
$this->install->template->append( $this->install->template->login_page( "Ââåäåííûé ïàðîëü íåâåðåí" ) );
|
||||
$this->install->template->append( $this->install->template->login_page( "The password you entered is not correct" ) );
|
||||
$this->install->template->next_action = '?p=overview';
|
||||
return;
|
||||
}
|
||||
@@ -139,7 +139,7 @@ class action_overview
|
||||
{
|
||||
if ($mem['g_access_cp'] != 1)
|
||||
{
|
||||
$this->install->template->append( $this->install->template->login_page( "Âû íå îáëàäàåòå ïðàâàìè àäìèíèñòðàòîðà" ) );
|
||||
$this->install->template->append( $this->install->template->login_page( "You do not have access to the administrative CP" ) );
|
||||
$this->install->template->next_action = '?p=overview';
|
||||
return;
|
||||
}
|
||||
@@ -159,19 +159,19 @@ class action_overview
|
||||
$error = array();
|
||||
if ( ! $this->install->last_poss_id )
|
||||
{
|
||||
$error[] = "Íå óäàëîñü îïðåäåëèòü ïîñëåäíþþ äîñòóïíóþ âåðñèþ ïðîäóêòà.";
|
||||
$error[] = "An error has occured, we are unable to determine the current version or if there are any required upgrade files left to run";
|
||||
}
|
||||
if ( count($this->install->versions) == 0 )
|
||||
{
|
||||
$error[] = "Íå óäàëîñü íàéòè ñêðèïò äëÿ îáíîâëåíèÿ: 'upg_{$this->install->last_poss_id}/version_history.php'";
|
||||
$error[] = "Could not locate the required upgrade script: 'upg_{$this->install->last_poss_id}/version_history.php'";
|
||||
}
|
||||
if ( ! $this->install->current_version )
|
||||
{
|
||||
$error[] = "Íå óäàëîñü îïðåäåëèòü âåðñèþ óñòàíîâëåííîãî ïðîäóêòà";
|
||||
$error[] = "An error has occured, we are unable to determine the current version or if there are any required upgrade files left to run";
|
||||
}
|
||||
if ( $this->install->last_poss_id AND $this->install->last_poss_id <= $this->install->current_version )
|
||||
if ( $this->install->last_poss_id <= $this->install->current_version )
|
||||
{
|
||||
$error[] = "Ó âàñ óñòàíîâëåíà ïîñëåäíÿÿ äîñòóïíàÿ âåðñèÿ ïðîäóêòà. Îáíîâëåíèå íå òðåáóåòñÿ.";
|
||||
$error[] = "Your installation is up to date; no upgrade required";
|
||||
}
|
||||
|
||||
$checkfiles = array( ROOT_PATH ."resources/ipb_templates.xml",
|
||||
@@ -208,7 +208,7 @@ class action_overview
|
||||
{
|
||||
if ( ! file_exists($cf) )
|
||||
{
|
||||
$error[] = "Ìàñòåð íå ñìîã íàéòè íåîáõîäèìûé äëÿ ðàáîòû ôàéë '$cf'.";
|
||||
$error[] = "Cannot locate the file '$cf'.";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ class action_overview
|
||||
{
|
||||
if ( ! is_writeable($cf) )
|
||||
{
|
||||
$error[] = "Ðåñóðñ (ôàéë èëè äèðåêòîðèÿ) '$cf' íå äîñòóïåí äëÿ çàïèñè. Ïîæàëóéñòà èçìåíèòå CHMOD íà 0777.";
|
||||
$error[] = "Cannot write to the file or folder '$cf'. Please CHMOD to 0777.";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ class action_overview
|
||||
return;
|
||||
}
|
||||
|
||||
$current_version = $this->install->current_version == '00000' ? 'íå óñòàíîâëåí' : $this->install->versions[ $this->install->current_version ];
|
||||
$current_version = $this->install->current_version == '00000' ? 'not installed' : $this->install->versions[ $this->install->current_version ];
|
||||
|
||||
if ( $this->install->current_version == '00000' )
|
||||
{
|
||||
@@ -236,14 +236,14 @@ class action_overview
|
||||
}
|
||||
else
|
||||
{
|
||||
$summary .= "îáíîâëåíèå ".$this->install->versions[ $this->install->current_version ]." äî âåðñèè ".$this->install->versions[ $this->install->last_poss_id ];
|
||||
$summary .= "Upgrade from ".$this->install->versions[ $this->install->current_version ]." to ".$this->install->versions[ $this->install->last_poss_id ];
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Time check...
|
||||
//-----------------------------------------
|
||||
|
||||
$summary .= "<br /><br /><strong>Ïðîâåðêà âàëèäíîñòè ðåñóðñ-ôàéëîâ</strong>";
|
||||
$summary .= "<br /><br /><strong>Checking 'resources' directory files</strong>";
|
||||
$_flag = 0;
|
||||
|
||||
foreach ( $timecheck as $cf )
|
||||
@@ -253,35 +253,19 @@ class action_overview
|
||||
if ( $time_to_check AND $_time AND ( ( $time_to_check - (86400 * 7) ) > $_time ) )
|
||||
{
|
||||
$_flag = 1;
|
||||
$summary .= "<div style='color:red'>·" . str_replace( ROOT_PATH, '', $cf ) . ' ìîæåò áûòü óñòàðåâøèì</div>';
|
||||
$summary .= "<div style='color:red'>·" . str_replace( ROOT_PATH, '', $cf ) . ' may be out of date</div>';
|
||||
}
|
||||
}
|
||||
|
||||
if ( $_flag )
|
||||
{
|
||||
$summary .= "<br /><div>Ïîæàëóéñòà óáåäèòåñü, ÷òî ôàéëû èç ñïèñêà çàêà÷àíû èç äèñòðèáóòèâà ".$this->install->versions[ $this->install->last_poss_id ]." âåðñèè";
|
||||
$summary .= "<br /><div>Please check the above files to make sure they have been uploaded from the ".$this->install->versions[ $this->install->last_poss_id ]." download";
|
||||
}
|
||||
else
|
||||
{
|
||||
$summary .= "<div style='color:green'>Âñå ðåñóðñ-ôàéëû âàëèäíû</div>";
|
||||
$summary .= "<div style='color:green'>All files checked OK</div>";
|
||||
}
|
||||
|
||||
if ( $cp = $this->install->get_db_codepage() )
|
||||
{
|
||||
$summary .= "
|
||||
<br />
|
||||
<strong>Êîäèðîâêà òàáëèö â MySQL</strong>
|
||||
<table width='100%' cellspacing='0' cellpadding='0' align='left' border='0'>
|
||||
<tr>
|
||||
<td class='title'><div style='color:gray; font-weight:normal;'>Íå èçìåíÿéòå, åñëè íå óâåðåíû.</div></td>
|
||||
<td class='content'><input type='text' name='mysql_codepage' class='sql_form' value='" . $cp . "'></td>
|
||||
</tr>
|
||||
</table>";
|
||||
|
||||
} else {
|
||||
$summary .= "<input type='hidden' name='mysql_codepage' value='none'>";
|
||||
}
|
||||
|
||||
/* Page Output */
|
||||
$this->install->template->append( $this->install->template->overview_page( $current_version, $summary ) );
|
||||
$this->install->template->next_action = '?p=eula';
|
||||
|
||||
@@ -1,30 +1,4 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board INSTALLER
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+----------------------------------------------------------------------------
|
||||
| Invision Installer Framework
|
||||
+----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Invision Installer Framework
|
||||
@@ -131,7 +105,7 @@ class class_installer
|
||||
|
||||
if ( PHP_VERSION < $this->version_php_min )
|
||||
{
|
||||
$errors[] = 'Âåðñèÿ PHP, óñòàíîâëåííàÿ íà âàøåì ñåðâåðå, íå óäîâëåòâîðÿåò ñèñòåìíûì òðåáîâàíèÿì ïðîäóêòà. Äëÿ ïðîäîëæåíèÿ óñòàíîâêè íåîáõîäèìî îáíîâèòü PHP.';
|
||||
$errors[] = 'Your PHP installation is too old to run this product, please upgrade before continuing.';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -147,7 +121,7 @@ class class_installer
|
||||
{
|
||||
if( ! ( is_dir( $_d) && is_readable( $_d ) ) )
|
||||
{
|
||||
$errors[] = 'Íå âîçìîæíî íàéòè òðåáóåìóþ äèðåêòîðèþ: "' . $_d . '"';
|
||||
$errors[] = 'A required directory could not be located: "' . $_d . '"';
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -158,7 +132,7 @@ class class_installer
|
||||
{
|
||||
if( ! ( file_exists( $_f) && is_readable( $_f ) ) )
|
||||
{
|
||||
$errors[] = 'Íå âîçìîæíî íàéòè òðåáóåìûé ôàéë: "' . $_f . '"';
|
||||
$errors[] = 'A required file could not be located: "' . $_f . '"';
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -172,7 +146,7 @@ class class_installer
|
||||
{
|
||||
if( ! is_writeable( $_d ) )
|
||||
{
|
||||
$errors[] = 'Äèðåêòîðèÿ: "' . str_replace( INS_DOC_ROOT_PATH, '', $_d ) . '" íå äîñòóïíà äëÿ çàïèñè, ïîæàëóéñòà èçìåíèòå ïðàâà äîñòóïà (CHMOD) íà 777';
|
||||
$errors[] = 'Can not write to directory: "' . $_d . '", please CHMOD to 777';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,7 +154,7 @@ class class_installer
|
||||
{
|
||||
if( ! is_writeable( $_f ) )
|
||||
{
|
||||
$errors[] = 'Ôàéë: "' . str_replace( INS_DOC_ROOT_PATH, '', $_f ) . '" íå äîñòóïåí äëÿ çàïèñè, ïîæàëóéñòà èçìåíèòå ïðàâà äîñòóïà (CHMOD) íà 777';
|
||||
$errors[] = 'Can not write to file: "' . $_f . '", please CHMOD to 777';
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -203,11 +177,11 @@ class class_installer
|
||||
$config = $xml->xml_parse_document( $config );
|
||||
|
||||
// Set Info
|
||||
$this->product_name = $this->ipsclass->txt_convert_charsets($xml->xml_array['installdata']['package']['name']['VALUE'], 'UTF-8');
|
||||
$this->product_license = $this->ipsclass->txt_convert_charsets($xml->xml_array['installdata']['package']['license']['VALUE'], 'UTF-8');
|
||||
$this->product_version = $this->ipsclass->txt_convert_charsets($xml->xml_array['installdata']['package']['version']['VALUE'], 'UTF-8');
|
||||
$this->product_long_version = $this->ipsclass->txt_convert_charsets($xml->xml_array['installdata']['package']['versionlong']['VALUE'], 'UTF-8');
|
||||
$this->build_id = $this->ipsclass->txt_convert_charsets($xml->xml_array['installdata']['package']['build']['VALUE'], 'UTF-8');
|
||||
$this->product_name = $xml->xml_array['installdata']['package']['name']['VALUE'];
|
||||
$this->product_license = $xml->xml_array['installdata']['package']['license']['VALUE'];
|
||||
$this->product_version = $xml->xml_array['installdata']['package']['version']['VALUE'];
|
||||
$this->product_long_version = $xml->xml_array['installdata']['package']['versionlong']['VALUE'];
|
||||
$this->build_id = $xml->xml_array['installdata']['package']['build']['VALUE'];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -225,22 +199,6 @@ class class_installer
|
||||
@fclose( $fh );
|
||||
}
|
||||
|
||||
/**
|
||||
* class_installer::read_file
|
||||
*
|
||||
* Simple method for reading a file
|
||||
*
|
||||
* @param string $name Full name, including path, of file to read
|
||||
* @return string $content file's body
|
||||
*/
|
||||
function read_file( $name )
|
||||
{
|
||||
$fh = @fopen( $name, "r" );
|
||||
$content = @fread( $fh, filesize( $name ) );
|
||||
@fclose( $fh );
|
||||
|
||||
return $content;
|
||||
}
|
||||
/**
|
||||
* class_installer::create_admin_converge
|
||||
*
|
||||
|
||||
@@ -39,12 +39,12 @@ define( 'INS_DEFAULT_SQL_PREFIX', 'ibf_' );
|
||||
define( 'KERNEL_PATH', ROOT_PATH . "ips_kernel/" );
|
||||
|
||||
error_reporting ( E_ERROR | E_WARNING | E_PARSE );
|
||||
@ini_set('display_errors', 1);
|
||||
/*@ini_set('display_errors', 1);*/
|
||||
|
||||
if( @ini_get('memory_limit') )
|
||||
/*if( @ini_get('memory_limit') )
|
||||
{
|
||||
@ini_set('memory_limit', '200M' );
|
||||
}
|
||||
}*/
|
||||
|
||||
set_magic_quotes_runtime( 0 );
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<html>␍<head><title>Invision Power Board - Bulletin Board System</title></head>␍<body>␍<h1>403: Invision Power Board -> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://anonym.to/http://www.invisionboard.com/">Invision Power Board</a>␍</body>␍</html>
|
||||
@@ -57,11 +57,11 @@ class install_template
|
||||
|
||||
foreach( $_pages as $position => $data )
|
||||
{
|
||||
$this->install_pages[ $data['file'] ] = $this->ipsclass->txt_convert_charsets( $data['menu'], 'UTF-8' );
|
||||
$this->install_pages[ $data['file'] ] = $data['menu'];
|
||||
}
|
||||
}
|
||||
|
||||
$this->install_pages['done'] = 'Çàâåðøåíèå';
|
||||
$this->install_pages['done'] = 'Finish';
|
||||
|
||||
/* Set Current Page */
|
||||
$this->page_current = ( $this->ipsclass->input['p'] ) ? $this->ipsclass->input['p'] : 'login';
|
||||
@@ -146,8 +146,7 @@ echo <<<EOF
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv=Content-Type content="text/html; charset=windows-1251">
|
||||
<title>Ìàñòåð îáíîâëåíèÿ ïðîäóêòîâ Invision Power Services </title>
|
||||
<title>IPS Upgrader</title>
|
||||
<style type='text/css' media='all'>
|
||||
@import url('install.css');
|
||||
</style>
|
||||
@@ -169,7 +168,7 @@ echo <<<EOF
|
||||
<div id='ipswrapper'>
|
||||
<div class='main_shell'>
|
||||
|
||||
<h1><img src='images/package_icon.gif' align='absmiddle' /> Èíñòðóìåíò îáíîâëåíèÿ Invision Power Services</h1>
|
||||
<h1><img src='images/package_icon.gif' align='absmiddle' /> Welcome to the IPB Upgrader</h1>
|
||||
<div class='content_shell'>
|
||||
<div class='package'>
|
||||
<div>
|
||||
@@ -196,7 +195,7 @@ echo <<<EOF
|
||||
</div>
|
||||
|
||||
<div style='vertical-align: middle'>
|
||||
<h2>Îáíîâëåíèå {$this->product_name}</h2>
|
||||
<h2>{$this->product_name} Upgrade</h2>
|
||||
<!--<strong>{$this->product_version}</strong>-->
|
||||
</div>
|
||||
</div>
|
||||
@@ -211,7 +210,7 @@ echo <<<EOF
|
||||
<div class='hr'></div>
|
||||
<div style='padding-top: 17px; padding-right: 15px; padding-left: 15px'>
|
||||
<div style='float: left'>
|
||||
<input type='button' class='nav_button' value='Ïðåêðàòèòü îáíîâëåíèå' onclick="window.location='index.php';return false;">
|
||||
<input type='button' class='nav_button' value='Cancel Upgrade' onclick="window.location='index.php';return false;">
|
||||
</div>
|
||||
|
||||
<div style='float: right'>
|
||||
@@ -222,19 +221,19 @@ if( ! $this->hide_next )
|
||||
if( $this->next_action == 'disabled' )
|
||||
{
|
||||
echo <<<EOF
|
||||
<input type='submit' class='nav_button' value='Îáíîâëåíèå íå çàâåðøåíî...' disabled='disabled'>
|
||||
<input type='submit' class='nav_button' value='Upgrade can not continue...' disabled='disabled'>
|
||||
EOF;
|
||||
}
|
||||
else if( $this->in_error == 1 )
|
||||
{
|
||||
echo <<<EOF
|
||||
<input type='submit' class='nav_button' value='Âñå ðàâíî ïðîäîëæèòü'>
|
||||
<input type='submit' class='nav_button' value='Continue regardless?'>
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo <<<EOF
|
||||
<input type='submit' class='nav_button' value='Äàëüøå >'>
|
||||
<input type='submit' class='nav_button' value='Next >'>
|
||||
EOF;
|
||||
}
|
||||
}
|
||||
@@ -248,7 +247,7 @@ echo <<<EOF
|
||||
EOF;
|
||||
echo date("Y");
|
||||
echo <<<EOF
|
||||
Invision Power Services, Inc. & IBResource, LTD
|
||||
Invision Power Services, Inc.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -285,28 +284,28 @@ $output .= <<<EOF
|
||||
<img src='images/wizard.gif' align='absmiddle' />
|
||||
</div>
|
||||
<div>
|
||||
Âàñ ïðèâåòñòâóåò ìàñòåð îáíîâëåíèÿ {$this->product_name}. Îí ïîìîæåò âàì îáíîâèòü óñòàíîâëåííûé ïðîäóêò äî ïîñëåäíåé âåðñèè.
|
||||
Welcome to the upgrade routine for {$this->product_name}. This wizard will guide you through the upgrade process.
|
||||
</div>
|
||||
</div>
|
||||
<br/>{$extra}
|
||||
<h3>Îáÿçàòåëüíàÿ ïðîâåðêà — àâòîðèçàöèÿ</h3>
|
||||
Äëÿ ðàáîòû ñ ìàñòåðîì âàì íåîáõîäèìî âîéòè â ñèñòåìó ïîä ó÷åòíîé çàïèñüþ ñ ïðàâàìè àäìèíèñòðàòîðà.<br />
|
||||
<h3>Verification Required - Please Log In</h3>
|
||||
You must log in with your forums administrative log in details to access the upgrade system.<br />
|
||||
<br />
|
||||
<table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'>
|
||||
<tr>
|
||||
<td width='40%' valign='middle'>Âàø
|
||||
<td width='40%' valign='middle'>Your Forum
|
||||
EOF;
|
||||
|
||||
if( $this->ipsclass->login_type == 'username' )
|
||||
{
|
||||
$output .= <<<EOF
|
||||
ëîãèí
|
||||
Username
|
||||
EOF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$output .= <<<EOF
|
||||
e-mail
|
||||
Email Address
|
||||
EOF;
|
||||
}
|
||||
$output .= <<<EOF
|
||||
@@ -314,7 +313,7 @@ $output .= <<<EOF
|
||||
<td width='60%' valign='middle'><input type='text' style='width:100%' name='username' value='' class='sql_form'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' valign='middle'>Âàø ïàðîëü:</td>
|
||||
<td width='40%' valign='middle'>Your Forum Password:</td>
|
||||
<td width='60%' valign='middle'><input type='password' style='width:100%' name='password' value='' class='sql_form'></td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -335,13 +334,13 @@ return <<<EOF
|
||||
<img src='images/wizard.gif' align='absmiddle' />
|
||||
</div>
|
||||
<div>
|
||||
Âàñ ïðèâåòñòâóåò ìàñòåð îáíîâëåíèÿ {$this->product_name}. Îí ïîìîæåò âàì îáíîâèòü óñòàíîâëåííûé ïðîäóêò äî ïîñëåäíåé âåðñèè.
|
||||
Welcome to the upgrader for {$this->product_name}. This wizard will guide you through the upgrade process.
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<h3>Èíôîðìàöèÿ</h3>
|
||||
Òåêóùàÿ âåðñèÿ: $current_version.<br />
|
||||
Ìàñòåð îñóùåñòâèò $summary<br />
|
||||
<h3>Upgrade summary</h3>
|
||||
Current version: $current_version.<br />
|
||||
This script will: $summary<br />
|
||||
<br />
|
||||
|
||||
EOF;
|
||||
@@ -364,7 +363,7 @@ check_eula = function()
|
||||
}
|
||||
else
|
||||
{
|
||||
alert( 'Âû äîëæíû ïðèíÿòü ïîëüçîâàòåëüñêîå ñîãëàøåíèå, ïðåæäå ÷åì ïðîäîëæèòü îáíîâëåíèå' );
|
||||
alert( 'You must agree to the license before continuing' );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -373,13 +372,13 @@ document.getElementById( 'install-form' ).onsubmit = check_eula;
|
||||
|
||||
</script>
|
||||
|
||||
Ïîæàëóéñòà ïðî÷èòàéòå è ïðèìèòå ïîëüçîâàòåëüñêîå ñîãëàøåíèå.<br /><br />
|
||||
Please read and agree to the End User License Agreement before continuing.<br /><br />
|
||||
|
||||
|
||||
<div class='eula'>
|
||||
$eula
|
||||
</div>
|
||||
<input type='checkbox' name='eula' id='eula'><strong> ß ïðèíèìàþ</strong>
|
||||
<input type='checkbox' name='eula' id='eula'><strong> I agree to the license agreement</strong>
|
||||
|
||||
|
||||
EOF;
|
||||
@@ -395,15 +394,16 @@ EOF;
|
||||
|
||||
$output = <<<EOF
|
||||
<br />
|
||||
Ìàñòåð ñîáðàë âñå äàííûå è ãîòîâ íà÷àòü îáíîâëåíèå {$this->product_name}. Íàæìèòå <strong>Çàïóñòèòü îáíîâëåíèå</strong> äëÿ çàïóñêà àâòîìàòè÷åñêîãî ïðîöåññà îáíîâëåíèÿ ïðîäóêòà!<br /><br />
|
||||
The upgrader is now ready to complete the upgrade of your {$this->product_name}. Click <strong>Start</strong> to
|
||||
begin the automatic process!<br /><br />
|
||||
<ul id='links'>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <input type='checkbox' name='helpfile' id='helpfile' value='1' checked='checked' /> Îáíîâèòü ðàçäåëû ïîìîùè, åñëè áóäóò íàéäåíû ðàçëè÷èÿ.</li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <input type='checkbox' name='helpfile' id='helpfile' value='1' checked='checked' /> Update my help files if changes are found</li>
|
||||
EOF;
|
||||
|
||||
if( $show_manual == 1 )
|
||||
{
|
||||
$output .= <<<EOF
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <input type='checkbox' name='man' id='man' value='1' /> Ïîêàçûâàòü SQL çàïðîñû äëÿ ðó÷íîãî îáíîâëåíèÿ (äëÿ áîëüøèõ ôîðóìîâ). <b>Âíèìàíèå:</b> âàì áóäåò íåîáõîäèìî âûïîëíèòü âñå SQL çàïðîñû, âûâîäèìûå ìàñòåðîì, â mysql shell (êîììàíäíîé ñòðîêå). Åñëè âû ïëîõî ïðåäñòàâëÿåòå ñåáå ÷òî ýòî, ïîæàëóéñòà îáðàòèòåñü â <a href="http://www.ibresource.ru/clientarea/" target="blank">íàøó ñëóæáó ïîääåðæêè</a>.</li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <input type='checkbox' name='man' id='man' value='1' /> Show me manual upgrade steps for SQL queries to prevent PHP page timeouts. <b>WARNING:</b> If you select this option, you will be shown SQL queries that you must run at your mysql command line. If you are not comfortable doing this, please submit a ticket and our technicians will assist you, or contact your webhost for assistance.</li>
|
||||
EOF;
|
||||
}
|
||||
|
||||
@@ -413,7 +413,7 @@ $output .= <<<EOF
|
||||
<br /><br />
|
||||
|
||||
<div style='float: right'>
|
||||
<input type='submit' class='nav_button' value='Çàïóñòèòü îáíîâëåíèå...'>
|
||||
<input type='submit' class='nav_button' value='Start upgrade...'>
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
@@ -450,7 +450,7 @@ $HTML .= <<<EOF
|
||||
</ul>
|
||||
<br />
|
||||
<div style='float: right'>
|
||||
<input type='submit' class='nav_button' value='Íàæìèòå ñþäà, åñëè âàñ íå ïåðåìåñòèëî àâòîìàòè÷åñêè' />
|
||||
<input type='submit' class='nav_button' value='Click here if not forwarded' />
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
@@ -487,20 +487,20 @@ EOF;
|
||||
function install_template_skinrevert( $skin_name="" )
|
||||
{
|
||||
$HTML = <<<EOF
|
||||
<br /><h3><b>Óäàëåíèå èçìåíåíèé â ñòèëÿõ</b></h3><br />
|
||||
Âî âðåìÿ îáíîâëåíèÿ ÷àñòî âîçíèêàåò íåîáõîäèìîñòü âíîñèòü èçìåíåíèÿ â øàáëîíû ñòèëÿ ÷òîáû èñïðàâèòü îøèáêè è äîáàâèòü íîâûå âîçìîæíîñòè.<br /><br />
|
||||
Åñëè âû íå çàõîòèòå óäàëÿòü èçìåíåíèÿ â øàáëîíàõ ñòèëÿ, ìàñòåð îáíîâëåíèÿ íå ñìîæåò âíåñòè èçìåíåíèÿ. Îäíàêî åñëè âû óäàëèòå èçìåíåíèÿ â ñòèëÿõ
|
||||
âû <i><b>ïîòåðÿåòå</b></i> âñþ ïðîäåëàííóþ ðàáîòó ïî èçìåíåíèþ ñòàíäàðòíîãî ñòèëÿ.<br /><br />
|
||||
Ïî-ýòîìó ìû ðåêîììåíäóåì âàì óäàëÿòü èçìåíåíèÿ â ñòèëå òîëüêî â òîì ñëó÷àå, åñëè èçìåíåíèé áûëî ìàëî. Åñëè æå ó âàñ ñîáñòâåííûé ñòèëü èëè áîëüøîå êîëè÷åñòâî
|
||||
èçìåíåíèé â øàáëîíàõ îò ìîäèôèêàöèé ìû ðåêîììåíäóåì îòêëþ÷èòü îïöèþ óäàëåíèÿ èçìåíåíèé è âîñïîëüçîâàòüñÿ èíñòðóìåíòîì ñðàâíåíèÿ ñòèëåé äëÿ äîáàâëåíèÿ èçìåíåíèé
|
||||
â ðó÷íóþ.<br /><br />
|
||||
<br /><h3><b>Revert skin changes?</b></h3><br />
|
||||
During upgrades, there are often changes to the skin templates to fix bugs or add new features.<br /><br />
|
||||
If you do not revert changes you have made to your skin templates, you will not see the changes we have made, however if you have modified
|
||||
your skin templates reverting the skin changes will cause you to <i><b>lose</b></i> the customizations you have made.<br /><br />
|
||||
If you have not made many customizations to your skins, it is recommended that you choose to revert your skin changes.<br /><br />
|
||||
If you have custom skins installed, or have heavily modified your skin templates, it is recommended that you use the skin difference tool
|
||||
available in your admin control panel after the upgrade is complete to apply new changes to your templates instead.<br /><br />
|
||||
|
||||
<h3>Âû æåëàåòå óäàëèòü èçìåíåíèÿ â øàáëîíàõ ñòèëÿ «<b>{$skin_name}</b>»?</h3>
|
||||
<h3>Do you wish to revert changes made to '<b>{$skin_name}</b>'?</h3>
|
||||
<ul id='links'>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <input type='radio' name='do' value='all' /> Óäàëèòü èçìåíåíèÿ â øàáëîíàõ âñåõ ñòèëåé</li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <input type='radio' name='do' value='1' /> Óäàëèòü èçìåíåíèÿ â øàáëîíàõ ñòèëÿ «{$skin_name}»</li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <input type='radio' name='do' value='none' /> Íå óäàëÿòü èçìåíåíèÿ â øàáëîíàõ âñåõ ñòèëåé</li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <input type='radio' name='do' value='0' /> Íå óäàëÿòü èçìåíåíèÿ â øàáëîíàõ ñòèëÿ «{$skin_name}»</li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <input type='radio' name='do' value='all' /> Revert changes to all of my skins</li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <input type='radio' name='do' value='1' /> Revert changes to '{$skin_name}'</li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <input type='radio' name='do' value='none' /> Do not revert changes to any of my skins</li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <input type='radio' name='do' value='0' /> Do not revert changes to '{$skin_name}'</li>
|
||||
</ul>
|
||||
EOF;
|
||||
|
||||
@@ -514,18 +514,16 @@ EOF;
|
||||
{
|
||||
$HTML .= <<<EOF
|
||||
<br />
|
||||
<img src='images/install_done.gif' align='absmiddle' /> <span class='done_text'>Îáíîâëåíèå çàâåðøåíî!</span><br /><br />
|
||||
Ïîçäðàâëÿåì, îáíîâëåíèå <a href='$url'>{$this->product_name}</a> çàâåðøåíî!<br /><br />
|
||||
Âû ñåé÷àñ äîëæíû çàéòè â àäìèíöåíòð è çàïóñòèòü óòèëèòû «Îáíîâëåíèå ñîäåðæèìîãî ñîîáùåíèé» è «Îáíîâëåíèå èíôîðìàöèè î ïðèêðåïëåííûõ ôàéëàõ» â ìåíþ ÍÀÑÒÐÎÉÊÈ -> Ïåðåñ÷åò è îáíîâëåíèå.
|
||||
Ïî æåëàíèþ âû òàêæå ìîæåòå çàïóñòèòü óòèëèòû ìåæäó 2.1 è 2.2 â ðàçäåëå «Èíñòðóìåíòû î÷èñòêè».
|
||||
<br /><br />Íèæå ïðèâåäåíû íåñêîëüêî ïîëåçíûõ ññûëîê, êîòîðûå ïîìîãóò â âàøåé ðàáîòå.<br /><br /><br />
|
||||
<h3>Ïîëåçíûå ññûëêè</h3>
|
||||
<img src='images/install_done.gif' align='absmiddle' /> <span class='done_text'>Upgrade complete!</span><br /><br />
|
||||
Congratulations, your <a href='$url'>{$this->product_name}</a> is now up to date and ready to use!<br /><br />
|
||||
You should now login to your admin control panel and run the 'Rebuild Post Content' tool and the 'Rebuild Attachment Data' tool under Tools & Settings, Recount & Rebuild. You may
|
||||
also wish to run the 2.1 -> 2.2 tools found under 'Clean Up Tools'.
|
||||
<br /><br />Below are some links you may find useful.<br /><br /><br />
|
||||
<h3>Useful Links</h3>
|
||||
<ul id='links'>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <a href='http://external.iblink.ru/clientarea'>Êëèåíò-öåíòð</a></li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <a href='http://external.iblink.ru/docs-ipb'>Äîêóìåíòàöèÿ</a></li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <a href='http://www.ibresource.ru/forums/'>Ôîðóìû êîìïàíèè</a></li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <a href='http://external.iblink.ru/wiki'>Invison Power Book</a></li>
|
||||
587 <li><img src='images/link.gif' align='absmiddle' /> <a href='http://external.ipslink.com/ipboard22/landing/?p=forums'>Ôîðóìû êîìïàíèè IPS</a></li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <a href='http://anonym.to/http://external.ipslink.com/ipboard22/landing/?p=clientarea'>Client area</a></li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <a href='http://anonym.to/http://external.ipslink.com/ipboard22/landing/?p=docs-ipb'>Documentation</a></li>
|
||||
<li><img src='images/link.gif' align='absmiddle' /> <a href='http://anonym.to/http://external.ipslink.com/ipboard22/landing/?p=forums'>IPS Company Forum</a></li>
|
||||
</ul>
|
||||
EOF;
|
||||
return $HTML;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1 @@
|
||||
<html>␍<head><title>Invision Power Board - Bulletin Board System</title></head>␍<body>␍<h1>403: Invision Power Board -> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://anonym.to/http://www.invisionboard.com/">Invision Power Board</a>␍</body>␍</html>
|
||||
@@ -1,10 +1,11 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
|
||||
<meta name="author" content="Êîìïàíèÿ IBResource è Invision Power Services Inc.">
|
||||
<title>Îøèáêà ðóññêîé âåðñèè Invision Power Board</title>
|
||||
</head><body>
|
||||
<h1>Îøèáêà <a href="http://www.ibresource.ru/">ðóññêîé âåðñèè Invision Power Board</a></h1>
|
||||
<font size="4">Âû ïîïàëè íà íåñóùåñòâóþùóþ ñòðàíèöó!<br>Ïîæàëóéñòà íàæìèòå íà êíîïî÷êó «<b>Íàçàä</b>» â âàøåì áðàóçåðå äëÿ âîçâðàùåíèÿ íà ïðåäûäóùóþ ñòðàíèöó.</font>
|
||||
<head><title>Invision Power Board - Bulletin Board System</title></head>
|
||||
<body>
|
||||
<h1>403: Invision Power Board -> Forbidden</h1>
|
||||
<hr>
|
||||
You have reached this Page in error, please use
|
||||
your back button to return to Invision Board.
|
||||
<hr>
|
||||
<a href="http://anonym.to/http://www.invisionboard.com/">Invision Power Board</a>
|
||||
</body>
|
||||
</html>
|
||||
</html>␍
|
||||
+97
-126
@@ -1,127 +1,98 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board INSTALLER
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+--------------------------------------------------------------------------
|
||||
|
|
||||
| > Script written by Matthew Mecham
|
||||
| > Date started: 19th March 2004
|
||||
| > Updated for 2.1: 23 June 2005
|
||||
|
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
@set_time_limit( 0 );
|
||||
|
||||
//--------------------------------
|
||||
// Setup
|
||||
//--------------------------------
|
||||
|
||||
require( "./core/conf.php" );
|
||||
|
||||
//--------------------------------
|
||||
// Define Constants
|
||||
//--------------------------------
|
||||
|
||||
$INFO = array();
|
||||
|
||||
//--------------------------------
|
||||
// Load our classes
|
||||
//--------------------------------
|
||||
|
||||
require ROOT_PATH. "sources/ipsclass.php";
|
||||
require ROOT_PATH. "conf_global.php";
|
||||
|
||||
require KERNEL_PATH . 'class_converge.php';
|
||||
require INS_ROOT_PATH . 'core/template.php';
|
||||
require KERNEL_PATH . 'class_xml.php';
|
||||
require INS_ROOT_PATH . 'core/class_tar.php';
|
||||
|
||||
# Initiate super-class
|
||||
$ipsclass = new ipsclass();
|
||||
$ipsclass->vars = $INFO;
|
||||
|
||||
//--------------------------------
|
||||
// Load the DB driver and such
|
||||
//--------------------------------
|
||||
|
||||
|
||||
|
||||
$ipsclass->init_db_connection();
|
||||
$ipsclass->DB->return_die = 1;
|
||||
$ipsclass->DB->obj['use_error_log'] = 0;
|
||||
|
||||
//--------------------------------
|
||||
// Set up our vars
|
||||
//--------------------------------
|
||||
|
||||
$ipsclass->parse_incoming();
|
||||
|
||||
$ipsclass->initiate_ipsclass();
|
||||
|
||||
//--------------------------------
|
||||
// Set converge
|
||||
//--------------------------------
|
||||
|
||||
$ipsclass->converge = new class_converge( $ipsclass->DB );
|
||||
|
||||
//--------------------------------
|
||||
// Setup Main Installer Class
|
||||
//--------------------------------
|
||||
|
||||
require( INS_ROOT_PATH . 'core/class_installer.php' );
|
||||
require( INS_ROOT_PATH . 'custom/app.php' );
|
||||
|
||||
$install = new application_installer();
|
||||
$install->ipsclass =& $ipsclass;
|
||||
$install->read_config();
|
||||
|
||||
if ( !isset($ipsclass->vars['mysql_codepage']) AND $cp = $install->get_db_codepage() )
|
||||
{
|
||||
$ipsclass->DB->obj['mysql_codepage'] = $cp;
|
||||
}
|
||||
|
||||
$install->template = new install_template( $ipsclass );
|
||||
$install->template->product_name = $install->product_name;
|
||||
$install->template->product_version = $install->product_version;
|
||||
$install->template->product_long_version = $install->product_long_version;
|
||||
|
||||
//--------------------------------
|
||||
// Saved Data
|
||||
//--------------------------------
|
||||
$install->saved_data = unserialize( stripslashes( urldecode( $ipsclass->input['saved_data'] ) ) );
|
||||
|
||||
// -------------------------------
|
||||
// Run Install Step
|
||||
// -------------------------------
|
||||
|
||||
$install->pre_process();
|
||||
$install->process();
|
||||
$install->post_process();
|
||||
|
||||
// -------------------------------
|
||||
// Output
|
||||
// -------------------------------
|
||||
$install->template->saved_data = urlencode( serialize( $install->saved_data ) );
|
||||
$install->template->output( $install->product_name, $install->product_version );
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Invision Installer Framework
|
||||
*/
|
||||
|
||||
@set_time_limit( 0 );
|
||||
|
||||
//--------------------------------
|
||||
// Setup
|
||||
//--------------------------------
|
||||
|
||||
require( "./core/conf.php" );
|
||||
|
||||
//--------------------------------
|
||||
// Define Constants
|
||||
//--------------------------------
|
||||
|
||||
$INFO = array();
|
||||
|
||||
//--------------------------------
|
||||
// Load our classes
|
||||
//--------------------------------
|
||||
|
||||
require ROOT_PATH. "sources/ipsclass.php";
|
||||
require ROOT_PATH. "conf_global.php";
|
||||
require ROOT_PATH. "init.php";
|
||||
|
||||
$Debug = new Debug;
|
||||
$Debug->startTimer();
|
||||
|
||||
require KERNEL_PATH . 'class_converge.php';
|
||||
require INS_ROOT_PATH . 'core/template.php';
|
||||
require_once KERNEL_PATH . 'class_xml.php';
|
||||
require INS_ROOT_PATH . 'core/class_tar.php';
|
||||
|
||||
# Initiate super-class
|
||||
$ipsclass = new ipsclass();
|
||||
$ipsclass->vars = $INFO;
|
||||
|
||||
//--------------------------------
|
||||
// Load the DB driver and such
|
||||
//--------------------------------
|
||||
|
||||
$ipsclass->init_db_connection();
|
||||
$ipsclass->DB->return_die = 1;
|
||||
$ipsclass->DB->obj['use_error_log'] = 0;
|
||||
|
||||
//--------------------------------
|
||||
// Set up our vars
|
||||
//--------------------------------
|
||||
|
||||
$ipsclass->parse_incoming();
|
||||
|
||||
$ipsclass->initiate_ipsclass();
|
||||
|
||||
//--------------------------------
|
||||
// Set converge
|
||||
//--------------------------------
|
||||
|
||||
$ipsclass->converge = new class_converge( $ipsclass->DB );
|
||||
|
||||
//--------------------------------
|
||||
// Setup Main Installer Class
|
||||
//--------------------------------
|
||||
|
||||
require( INS_ROOT_PATH . 'core/class_installer.php' );
|
||||
require( INS_ROOT_PATH . 'custom/app.php' );
|
||||
|
||||
$install = new application_installer();
|
||||
$install->ipsclass =& $ipsclass;
|
||||
$install->read_config();
|
||||
|
||||
$install->template = new install_template( $ipsclass );
|
||||
$install->template->product_name = $install->product_name;
|
||||
$install->template->product_version = $install->product_version;
|
||||
$install->template->product_long_version = $install->product_long_version;
|
||||
|
||||
//--------------------------------
|
||||
// Saved Data
|
||||
//--------------------------------
|
||||
$install->saved_data = unserialize( stripslashes( urldecode( $_REQUEST['saved_data'] ) ) );
|
||||
|
||||
// -------------------------------
|
||||
// Run Install Step
|
||||
// -------------------------------
|
||||
|
||||
$install->pre_process();
|
||||
$install->process();
|
||||
$install->post_process();
|
||||
|
||||
// -------------------------------
|
||||
// Output
|
||||
// -------------------------------
|
||||
$install->template->saved_data = urlencode( serialize( $install->saved_data ) );
|
||||
$install->template->output( $install->product_name, $install->product_version );
|
||||
|
||||
?>
|
||||
@@ -1,69 +1,64 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<installdata>
|
||||
<package>
|
||||
<name>русской версии Invision Power Board</name>
|
||||
<version>2.2.1</version>
|
||||
<versionlong>22101</versionlong>
|
||||
<name>Invision Power Board</name>
|
||||
<version>2.2 ALPHA 2</version>
|
||||
<versionlong>22001</versionlong>
|
||||
<build>1134742970</build>
|
||||
<license>Мы настоятельно рекомендуем вам внимательно ознакомиться с данным документом. В нем содержится информация о том, какие правила будут регламентировать права и обязанности сторон, подписавших данное соглашение. Обратите внимание на выполнение обязательных условий при использовании нашего продукта, как при самостоятельной установке, так и при обращении в службу технической поддержки.
|
||||
<license>Invision Power Services, Inc.
|
||||
Invision Power Board Software
|
||||
End User License Agreement (Version 2.2.x)
|
||||
|
||||
Invision Power Services, Inc.
|
||||
Продукт: Invision Power Board
|
||||
Лицензионное соглашение (для версии 2.2.x)
|
||||
LICENSE
|
||||
Invision Power Services (IPS) grants you a non-exclusive license to use the Software on one installation to be accessible by one URL (web address) subject to the provisions in all sections of this Agreement.
|
||||
|
||||
ЛИЦЕНЗИЯ
|
||||
В рамках данного лицензионного соглашения покупатель (далее Заказчик) программного обеспечения Invision Power Board (далее Система) получает право на однократную установку Системы только на один URL адрес сайта (далее Адрес), указанный при заказе.
|
||||
Исключительные права на Систему остаются у компании Invision Power Services Inc. (далее Исполнитель).
|
||||
TERM
|
||||
Invision Power Board is offered under yearly and lifetime licensing. Both license terms feature technical support and service plus access to upgrades to the software as they are available. In the event a one year license expires without being renewed, the software will remain completely functional but will be unsupported and no access to upgrades will be made available.
|
||||
|
||||
СРОКИ
|
||||
Invision Power Board имеет годовую лицензию. В нее входит техническая поддержка сроком на один год, а также доступ к дистрибутиву Системы и ее обновлениям (по мере их публикации) сроком на один год. После истечении срока действия лицензии Система останется полностью функциональной, но вы уже не будете иметь доступа к технической поддержке и обновлениям.
|
||||
SCOPE OF GRANT
|
||||
|
||||
Права и обязанности сторон
|
||||
You may:
|
||||
|
||||
Вы имеете право:
|
||||
|
||||
* изменять дизайн и структуру программного продукта, в соответствии с нуждами вашего сайта, но не нарушая других условий данного соглашения.
|
||||
* разрабатывать и распространять инструкции по созданным вами модификациям, стилям и другим дополнительным компонентам к Системе, но в них должно указываться на настоящего разработчика Системы до ваших модификаций, т.е. на Исполнителя. Модификации, произведенные вами самостоятельно, не являются собственностью Исполнителя, если не содержат исходный код Системы.
|
||||
* создавать приложения, интерфейс которых будет успешно работать с Системой, указав, что это ваш оригинальный продукт.
|
||||
* customize the Software's design and operation to suit the internal needs of your web site except to the extent not permitted in this Agreement
|
||||
* produce and distribute modification instructions, Skin packs, or Language packs provided that they contain notification that the Skin and Language packs were exported from and originally created by Invision Power Board and/or IPS. The modifications instructions you personally create are not owned by IPS so long as they contain no proprietary coding from Invision Power Board.
|
||||
* create applications which interface with the operation of the Software provided said application is an original work
|
||||
|
||||
|
||||
Вы не имеете право:
|
||||
You may not:
|
||||
|
||||
* передавать права на использование Системы третьим лицам, кроме случаев перечисленных выше.
|
||||
* изменять структуру исходного кода, функции программы или создавать собственные продукты, базирующиеся на исходном коде Системы, либо использовать Систему вне вашего сайта.
|
||||
* использовать Систему для пропагандирования терроризма, развития пиратского программного обеспечения и других нелегальных материалов.
|
||||
* изменять или удалять любые упоминания об авторских правах (copyrights) в Системе, указываемые в нижней части каждой страницы форума (кроме случаев, когда вы приобрели разрешение на удаление этих строк), а также указанные в верхней части исходного кода каждого файла.
|
||||
* распространять Систему.
|
||||
* распространять индивидуальные копии файлов, библиотек и другого исходного кода Системы.
|
||||
* распространять или модифицировать любую графику, HTML, CSS Системы в вашем индивидуальном программном обеспечении, отличном от Системы, а также на вашем сайте.
|
||||
* модифицировать Систему для работы одного комплекта исходных файлов сразу на нескольких Адресах (URL, доменах, поддоменах, и т.д.). Для каждого форума требуется отдельная лицензия.
|
||||
* permit other individuals to use the Software except under the terms listed above
|
||||
* reverse engineer, disassemble, or create derivative works based on the Software for distribution or usage outside your web site
|
||||
* use the Software in such as way as to condone or encourage terrorism, promote or provide pirated Software, or any other form of illegal or damaging activity
|
||||
* modify and/or remove any copyright notices or labels on the Software on each page (unless copyright output removal license is purchased) and in the header of each script source file
|
||||
* distribute the Software
|
||||
* distribute individual copies of files, libraries, or other programming material in the Software package
|
||||
* distribute or modify proprietary graphics, HTML, or CSS packaged with the Software for use in Software applications other than Invision Power Board or web sites without written permission from IPS
|
||||
* modify the software to function in more than one instance or location (URL, domain, subdomain, etc.) from a single set of source program files unless each location is separately licensed
|
||||
|
||||
|
||||
ГАРАНТИЙНОЕ ОБЯЗАТЕЛЬСТВО
|
||||
Система распространяется в соответствии с условием «AS IS» (как есть), без гарантий любого рода, включая отсутствие ограничения гарантий на продажу, приобретение частей или целого не сертифицированного продукта. Весь риск за совершение данной сделки по отношению к качеству продукта ложится на вас. Если вы приобретаете Систему, то вы, а не Исполнитель, должны оплачивать техническую поддержку и исправление неполадок по работе вашего сервера и форума. В дополнение мы хотим отметить, что механизмы безопасности, установленные в Системе, имеют известные ограничения, и вы должны быть ознакомлены с отсутствием абсолютных гарантий от взлома вашего сайта или форума хакерами. Этот отказ от гарантий является одной из составных частей нашего лицензионного соглашения.
|
||||
DISCLAIMER OF WARRANTY
|
||||
The Software is provided on an "AS IS" basis, without warranty of any kind, including without limitation the warranties of merchantability, fitness for a particular purpose, and non-infringement. The entire risk as to the quality and performance of the Software is borne by you. Should the Software prove defective, you and not IPS assume the entire cost of any service and repair. In addition, the security mechanisms implemented by IPS Software have inherent limitations, and you must determine that the Software sufficiently meets your requirements. This disclaimer of warranty constitutes an essential part of the Agreement.
|
||||
|
||||
ЗАГОЛОВКИ
|
||||
Заголовки, права владельца и права на интеллектуальную собственность принадлежат Исполнителю. Система защищена законом об авторских правах. Заголовки и содержание страниц, создаваемых Системой, любые публикуемые оригинальные материалы и связанные с этим права на них, также как и материалы, создаваемые в результате использования Системы, являются собственностью покупателя Системы и защищены законом. Мы не несем никакой ответственности за содержание ваших сайтов и форумов. Данная лицензия не передает Invision Power Services Inc. права на вашу интеллектуальную собственность.
|
||||
TITLE
|
||||
Title, ownership rights, and intellectual property rights in the Software shall remain with IPS. The Software is protected by copyright laws and treaties. Title and related rights in the content generated through the Software is the property of the applicable content owner and may be protected by applicable law. This License gives IPS no rights to such content.
|
||||
|
||||
РАСТОРЖЕНИЕ ЛИЦЕНЗИОННОГО СОГЛАШЕНИЯ
|
||||
Данное соглашение расторгается автоматически, если вы нарушаете его условия. После расторжения вы обязуетесь уничтожить все имеющиеся у вас Системы в течение 48 часов. Расторжение лицензионного соглашения лицензии из-за нарушения его условий не приводит к выплатам покупателю за лицензию.
|
||||
TERMINATION
|
||||
This Agreement will terminate automatically upon failure to comply with the limitations described herein or on written notice from an authorized representative of IPS. On termination, you must destroy all copies of the Software within 48 hours. Termination of the license due to noncompliance will not result in any refunds of license fees.
|
||||
|
||||
СОДЕРЖАНИЕ
|
||||
Исполнитель оставляет за собой право публиковать списки избранных клиентов своих программных продуктов. Исполнитель оставляет за собой право в любое время изменять условия данного лицензионного соглашения, но данные действия не имеют и не будут иметь обратной силы. Изменения данного договора будут отправлены клиентам по электронной почте. Отсутствие у клиентов письма с уведомлением не является причиной невыполнения изменившихся условий использования наших программных продуктов. Копия данного лицензионного соглашения и его изменения будут доступны на сайте Исполнителя.
|
||||
MISCELLANEOUS
|
||||
IPS reserves the right to publish a selected list of users of the Software. IPS reserves the right to change the terms of this Agreement at any time. Changes to the Agreement will be announced via email using the IPS email notification list. Failure to receive notification of a change does not make those changes invalid. A current copy of this Agreement will be available on the Invision Power Board web site.
|
||||
|
||||
Пакеты стилей и языковые пакеты также защищены договорами, как и наши программные коды, тексты файлов и графика, если вы получили их с нашего сайта.
|
||||
Skin packs and Language packs are defined as the group of code, text, and graphics that are exported from the Software using the provided functions of the Software Administration Control Panel. Integrated add-ons for Invision Power Board are released under this Agreement. Purchasing or downloading integrated add-ons constitute an additional, separate instance of this Agreement.
|
||||
|
||||
Наши гарантии и техническая поддержка не распространяются на модификации, произведенные третьей стороной, включая изменения исходного кода Системы, стиля и языковых пакетов, как и на изменения перечисленных частей владельцем лицензии самостоятельно. Если Система изменена вами или третьей стороной, то Исполнитель вправе отказать вам в технической поддержке.
|
||||
Technical support will not be provided for third-party modifications to the Software including modifications to code, Skin packs, and Language packs to any license holder. If the Software is modified using a third-party modification instruction or otherwise, technical support may be refused to any license holder.
|
||||
|
||||
УПОМИНАНИЕ ОБ АВТОРСКИХ ПРАВАХ
|
||||
Разрешение на удаление упоминаний об авторских правах может быть дано клиенту от Исполнителя за определенную плату. Это разрешение дает право на удаление упоминаний об авторских правах на страницах форума, но не дает право удалять их из файлов с исходным кодом.
|
||||
PROPRIETARY LABELS
|
||||
Authorization to remove or modify output of copyright notices can be obtained from IPS for a fee. This fee authorizes you to remove the output of copyright notices: it does not give you authorization to remove any copyright notices in the program source files or any other rights.
|
||||
|
||||
ЗАКОН ОБ ИСПОЛЬЗОВАНИИ
|
||||
Данное лицензионное соглашение находится в полном соответствии с законами штата Virginia, США.
|
||||
Любые нарушения данного соглашения являются предметом судебного разбирательства, как авторских прав.
|
||||
GOVERNING LAW
|
||||
This Agreement shall be governed by the Laws of the Commonwealth of Virginia and the Laws of the United States of America. Any action in regard to this Agreement or arising out of its terms and conditions shall be instituted and litigated in the Circuit Court of Bedford County. Each of the parties consents to jurisdiction in such Court and agrees that service of process as provided by the states and rules of civil procedures of the Commonwealth of Virginia shall be sufficient. (FTB)
|
||||
|
||||
ПРОИЗВОДИТЕЛЬ
|
||||
Invision Power Services, Inc., United States, 1115 Vista Park Drive Suite C, Forest, VA 24551.
|
||||
По всем вопросам, пишите на e-mail info@invisionpower.com, на наш адрес sales@ibresource.ru, или звоните +1-434-316-7201.</license>
|
||||
MANUFACTURER
|
||||
Invision Power Services, Inc., 1115 Vista Park Drive Suite C, Forest, VA 24551. For questions, write to the above address, email info@invisionpower.com, or call 434-316-7201.</license>
|
||||
</package>
|
||||
</installdata>
|
||||
@@ -0,0 +1 @@
|
||||
<html>␍<head><title>Invision Power Board - Bulletin Board System</title></head>␍<body>␍<h1>403: Invision Power Board -> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://anonym.to/http://www.invisionboard.com/">Invision Power Board</a>␍</body>␍</html>
|
||||
@@ -1,22 +1,23 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<installdata>
|
||||
<action>
|
||||
<file>login</file>
|
||||
<menu><![CDATA[Авторизация]]></menu>
|
||||
<menu>Login</menu>
|
||||
<position>0</position>
|
||||
</action>
|
||||
<action>
|
||||
<file>overview</file>
|
||||
<menu><![CDATA[Информация]]></menu>
|
||||
<menu>Overview</menu>
|
||||
<position>1</position>
|
||||
</action>
|
||||
<action>
|
||||
<file>eula</file>
|
||||
<menu><![CDATA[Cоглашение]]></menu>
|
||||
<menu>EULA</menu>
|
||||
<position>2</position>
|
||||
</action>
|
||||
<action>
|
||||
<file>install</file>
|
||||
<menu><![CDATA[Обновление]]></menu>
|
||||
<menu>Upgrade</menu>
|
||||
<position>3</position>
|
||||
</action>
|
||||
</installdata>
|
||||
+528
-818
File diff suppressed because it is too large.
Load diff
+96
-372
@@ -159,19 +159,12 @@ class version_upgrade
|
||||
$this->install->ipsclass->DB->allow_sub_select = 1;
|
||||
$this->install->ipsclass->DB->error = '';
|
||||
|
||||
if ( preg_match("/CREATE TABLE (\S+) \(/", $query) )
|
||||
if( $this->install->saved_data['man'] )
|
||||
{
|
||||
//-----------------------------------
|
||||
// Pass to handler
|
||||
//-----------------------------------
|
||||
$extra_install = $this->install->extra_install;
|
||||
|
||||
if ( $extra_install AND method_exists( $extra_install, 'process_query_create' ) )
|
||||
{
|
||||
$query = $extra_install->process_query_create( $query );
|
||||
}
|
||||
$output .= preg_replace("/\sibf_(\S+?)([\s\.,]|$)/", " ".$this->install->ipsclass->DB->obj['sql_tbl_prefix']."\\1\\2", preg_replace( "/\s{1,}/", " ", $query ) )."\n\n";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$this->install->ipsclass->DB->query( $query );
|
||||
|
||||
if ( $this->install->ipsclass->DB->error )
|
||||
@@ -183,6 +176,7 @@ class version_upgrade
|
||||
$this->sqlcount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Check...
|
||||
@@ -193,15 +187,15 @@ class version_upgrade
|
||||
|
||||
if ( intval( $count['count'] ) < 1 )
|
||||
{
|
||||
$this->install->error[] = "Не удалось создать резервную копию таблицы forums. При продолжении конвертации все форумы будут потеряны. Вам срочно необходимо связаться с <a href='https://www.ibresource.ru/clientarea/' target='_blank'>нашей</a> службой поддержки.";
|
||||
$this->install->error[] = "The back-up forums table has not been populated successfully. Continuing this convert WILL delete all forums permanently. Contact technical support immediately.";
|
||||
}
|
||||
|
||||
$this->install->message = "Резервная копия таблиц успешно создана, переходим к созданию новых таблиц...<br /><br />Выполнено $this->sqlcount запросов...";
|
||||
$this->install->message = "Forums table backed up - creating new tables next....<br /><br />$this->sqlcount queries run....";
|
||||
$this->install->saved_data['workact'] = 'step_2';
|
||||
|
||||
if( $this->install->saved_data['man'] AND $output )
|
||||
{
|
||||
$this->install->message .= "<br /><br /><h3><b>Для продолжения обновления необходимо выполнить следующие MySQL запросы</b></h3><br />".nl2br(htmlspecialchars($output));
|
||||
$this->install->message .= "<br /><br /><h3><b>Please run these queries in your MySQL database before continuing..</b></h3><br />".nl2br(htmlspecialchars($output));
|
||||
$this->install->do_man = 1;
|
||||
}
|
||||
}
|
||||
@@ -566,7 +560,7 @@ class version_upgrade
|
||||
sublog_id int(10) NOT NULL auto_increment,
|
||||
sublog_date int(10) NOT NULL default '0',
|
||||
sublog_member_id mediumint(8) NOT NULL default '0',
|
||||
sublog_transid int(10) NOT NULL default '',
|
||||
sublog_transid int(10) NOT NULL default '0',
|
||||
sublog_ipaddress varchar(16) NOT NULL default '',
|
||||
sublog_data text NULL,
|
||||
sublog_postdata text NULL,
|
||||
@@ -613,19 +607,6 @@ class version_upgrade
|
||||
$this->install->ipsclass->DB->allow_sub_select = 1;
|
||||
$this->install->ipsclass->DB->error = '';
|
||||
|
||||
if ( preg_match("/CREATE TABLE (\S+) \(/", $query) )
|
||||
{
|
||||
//-----------------------------------
|
||||
// Pass to handler
|
||||
//-----------------------------------
|
||||
$extra_install = $this->install->extra_install;
|
||||
|
||||
if ( $extra_install AND method_exists( $extra_install, 'process_query_create' ) )
|
||||
{
|
||||
$query = $extra_install->process_query_create( $query );
|
||||
}
|
||||
}
|
||||
|
||||
if( $this->install->saved_data['man'] )
|
||||
{
|
||||
$output .= preg_replace("/\sibf_(\S+?)([\s\.,]|$)/", " ".$this->install->ipsclass->DB->obj['sql_tbl_prefix']."\\1\\2", preg_replace( "/\s{1,}/", " ", $query ) )."\n\n";
|
||||
@@ -645,12 +626,12 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Новые таблицы созданы. Модификация полей таблиц этап 1 (таблица сообщений)<br /><br />Выполнено $this->sqlcount запросов...";
|
||||
$this->install->message = "New tables created. Altering tables (Part 1, section 1 - post table)<br /><br />$this->sqlcount queries run....";
|
||||
$this->install->saved_data['workact'] = 'step_3';
|
||||
|
||||
if( $this->install->saved_data['man'] AND $output )
|
||||
{
|
||||
$this->install->message .= "<br /><br /><h3><b>Для продолжения обновления необходимо выполнить следующие MySQL запросы:</b></h3><br /><div class='eula'>".nl2br(htmlspecialchars($output))."</div>";
|
||||
$this->install->message .= "<br /><br /><h3><b>Please run these queries in your MySQL database before continuing..</b></h3><br />".nl2br(htmlspecialchars($output));
|
||||
$this->install->do_man = 1;
|
||||
}
|
||||
}
|
||||
@@ -696,12 +677,12 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Поля в таблице сообщений изменены, изменяем таблицу тем...<br /><br />Выполнено $this->sqlcount запросов...";
|
||||
$this->install->message = "Post table altered, altering topic table next...<br /><br />$this->sqlcount queries run....";
|
||||
$this->install->saved_data['workact'] = 'step_4';
|
||||
|
||||
if( $this->install->saved_data['man'] AND $output )
|
||||
{
|
||||
$this->install->message .= "<br /><br /><h3><b>Для продолжения обновления необходимо выполнить следующие MySQL запросы:</b></h3><br /><div class='eula'>".nl2br(htmlspecialchars($output))."</div>";
|
||||
$this->install->message .= "<br /><br /><h3><b>Please run these queries in your MySQL database before continuing..</b></h3><br />".nl2br(htmlspecialchars($output));
|
||||
$this->install->do_man = 1;
|
||||
}
|
||||
}
|
||||
@@ -745,12 +726,12 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Поля в таблице тем изменены, изменяем таблицу пользователей...<br /><br />Выполнено $this->sqlcount запросов...";
|
||||
$this->install->message = "Topic table altered, altering members table next...<br /><br />$this->sqlcount queries run....";
|
||||
$this->install->saved_data['workact'] = 'step_5';
|
||||
|
||||
if( $this->install->saved_data['man'] AND $output )
|
||||
{
|
||||
$this->install->message .= "<br /><br /><h3><b>Для продолжения обновления необходимо выполнить следующие MySQL запросы:</b></h3><br /><div class='eula'>".nl2br(htmlspecialchars($output))."</div>";
|
||||
$this->install->message .= "<br /><br /><h3><b>Please run these queries in your MySQL database before continuing..</b></h3><br />".nl2br(htmlspecialchars($output));
|
||||
$this->install->do_man = 1;
|
||||
}
|
||||
}
|
||||
@@ -812,12 +793,12 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Поля в таблице пользователей изменены, изменяем оставшиеся таблицы...<br /><br />Выполнено $this->sqlcount запросов...";
|
||||
$this->install->message = "Members table altered, other tables next...<br /><br />$this->sqlcount queries run....";
|
||||
$this->install->saved_data['workact'] = 'step_6';
|
||||
|
||||
if( $this->install->saved_data['man'] AND $output )
|
||||
{
|
||||
$this->install->message .= "<br /><br /><h3><b>Для продолжения обновления необходимо выполнить следующие MySQL запросы:</b></h3><br /><div class='eula'>".nl2br(htmlspecialchars($output))."</div>";
|
||||
$this->install->message .= "<br /><br /><h3><b>Please run these queries in your MySQL database before continuing..</b></h3><br />".nl2br(htmlspecialchars($output));
|
||||
$this->install->do_man = 1;
|
||||
}
|
||||
}
|
||||
@@ -874,7 +855,7 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Изменение полей таблиц завершено, переходим к ковертированию форумов...<br /><br />Выполнено $this->sqlcount запросов...";
|
||||
$this->install->message = "Other tables altered, converting forums next...<br /><br />$this->sqlcount queries run....";
|
||||
$this->install->saved_data['workact'] = 'step_7';
|
||||
}
|
||||
|
||||
@@ -994,8 +975,8 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Конвертация форумов завершена, переходим к конвертации прикрепленных файлов...<br /><br />Форумов сконвертировано: $fid...";
|
||||
$this->install->saved_data['workact'] = 'step_8';
|
||||
$this->install->message = "Forums converted, converting attachments next...<br /><br />$fid forums converted....";
|
||||
$this->install->saved_data['workact'] = 'step_8';
|
||||
}
|
||||
|
||||
|
||||
@@ -1061,12 +1042,12 @@ class version_upgrade
|
||||
}
|
||||
|
||||
$this->install->saved_data['st'] = $end;
|
||||
$this->install->message = "Файлы с $start по $end сконвертированы...";
|
||||
$this->install->message = "Attachments $start to $end completed....";
|
||||
$this->install->saved_data['workact'] = 'step_8';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->message = "Все прикрепленные файлы сконвертированы, начинаем конвертирование пользователей...";
|
||||
$this->install->message = "Attachments converted, converting members...";
|
||||
$this->install->saved_data['workact'] = 'step_9';
|
||||
$this->install->saved_data['st'] = 0;
|
||||
}
|
||||
@@ -1141,12 +1122,12 @@ class version_upgrade
|
||||
}
|
||||
|
||||
$this->install->saved_data['st'] = $end;
|
||||
$this->install->message = "Сконвертированы пользователи с $start по $end...";
|
||||
$this->install->message = "Members adjusted $start to $end completed....";
|
||||
$this->install->saved_data['workact'] = 'step_9';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->message = "Конвертация пользователей завершена, подготавливаем e-mail пользователей для системы converge...";
|
||||
$this->install->message = "Members converted, making members email addresses safe for converge...";
|
||||
$this->install->saved_data['workact'] = 'step_10';
|
||||
$this->install->saved_data['st'] = 0;
|
||||
}
|
||||
@@ -1221,12 +1202,12 @@ class version_upgrade
|
||||
}
|
||||
|
||||
$this->install->saved_data['st'] = $end;
|
||||
$this->install->message = "Проверены e-mail пользователей c $start по $end...";
|
||||
$this->install->message = "Members email addresses checked $start to $end completed....";
|
||||
$this->install->saved_data['workact'] = 'step_10';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->message = "Все пользовательские e-mail проверены, переходим к инициализации converge-системы...";
|
||||
$this->install->message = "Members email addresses checked, adding to converge...";
|
||||
$this->install->saved_data['workact'] = 'step_11';
|
||||
$this->install->saved_data['st'] = 0;
|
||||
}
|
||||
@@ -1296,14 +1277,14 @@ class version_upgrade
|
||||
|
||||
if ( ! $found and ! $max['id'] )
|
||||
{
|
||||
$this->install->message = "Converge-система инициализованна, начинаем конвертирование личных сообщений...";
|
||||
$this->install->message = "Converge completed, converting personal messages...";
|
||||
$this->install->saved_data['workact'] = 'step_12';
|
||||
$this->install->saved_data['st'] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->saved_data['st'] = $end;
|
||||
$this->install->message = "Converge-система инициализованна для пользователей с $start по $end...";
|
||||
$this->install->message = "Converge added: $start to $end completed....";
|
||||
$this->install->saved_data['workact'] = 'step_11';
|
||||
}
|
||||
}
|
||||
@@ -1399,12 +1380,12 @@ class version_upgrade
|
||||
}
|
||||
|
||||
$this->install->saved_data['st'] = $end;
|
||||
$this->install->message = "Обработаны личные сообщения с $start по $end...";
|
||||
$this->install->message = "Personal messages: $start to $end completed....";
|
||||
$this->install->saved_data['workact'] = 'step_12';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->message = "Личные сообщения сконвертированы, переходим к обновлению мульти-модерации тем...";
|
||||
$this->install->message = "Personal messages converted, proceeding to update topic multi-moderation...";
|
||||
$this->install->saved_data['workact'] = 'step_13';
|
||||
$this->install->saved_data['st'] = 0;
|
||||
}
|
||||
@@ -1446,7 +1427,7 @@ class version_upgrade
|
||||
$this->install->ipsclass->DB->do_update( 'topic_mmod', array( 'mm_forums' => $ff ), 'mm_id='.$id );
|
||||
}
|
||||
|
||||
$this->install->message = "Мульти-модерация тем сконвертирована, начинаем изменение таблиц - Этап 2...";
|
||||
$this->install->message = "Topic multi-moderation converted, alterting tables, stage 2...";
|
||||
$this->install->saved_data['workact'] = 'step_14';
|
||||
}
|
||||
|
||||
@@ -1490,12 +1471,12 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Поля таблицы сообщений изменены, переходим к таблице тем...<br /><br />Выполнено $this->sqlcount запросов...";
|
||||
$this->install->message = "Post table altered, altering topic table next...<br /><br />$this->sqlcount queries run....";
|
||||
$this->install->saved_data['workact'] = 'step_15';
|
||||
|
||||
if( $this->install->saved_data['man'] AND $output )
|
||||
{
|
||||
$this->install->message .= "<br /><br /><h3><b>Для продолжения обновления необходимо выполнить следующие MySQL запросы:</b></h3><br /><div class='eula'>".nl2br(htmlspecialchars($output))."</div>";
|
||||
$this->install->message .= "<br /><br /><h3><b>Please run these queries in your MySQL database before continuing..</b></h3><br />".nl2br(htmlspecialchars($output));
|
||||
$this->install->do_man = 1;
|
||||
}
|
||||
}
|
||||
@@ -1540,12 +1521,12 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Поля таблицы тем изменены, изменяем таблицу пользователей...<br /><br />Выполнено $this->sqlcount запросов...";
|
||||
$this->install->message = "Topic table altered, altering members table next...<br /><br />$this->sqlcount queries run....";
|
||||
$this->install->saved_data['workact'] = 'step_16';
|
||||
|
||||
if( $this->install->saved_data['man'] AND $output )
|
||||
{
|
||||
$this->install->message .= "<br /><br /><h3><b>Для продолжения обновления необходимо выполнить следующие MySQL запросы:</b></h3><br /><div class='eula'>".nl2br(htmlspecialchars($output))."</div>";
|
||||
$this->install->message .= "<br /><br /><h3><b>Please run these queries in your MySQL database before continuing..</b></h3><br />".nl2br(htmlspecialchars($output));
|
||||
$this->install->do_man = 1;
|
||||
}
|
||||
}
|
||||
@@ -1557,15 +1538,15 @@ class version_upgrade
|
||||
|
||||
function step_16()
|
||||
{
|
||||
$SQL[] = "ALTER TABLE ".SQL_PREFIX."members add has_blog TINYINT(1) NOT NULL default '0'";
|
||||
$SQL[] = "ALTER TABLE ".SQL_PREFIX."members add has_blog TINYINT(1) NOT NULL default '0';";
|
||||
$SQL[] = "alter table ".SQL_PREFIX."members add sub_end int(10) NOT NULL default '0';";
|
||||
$SQL[] = "ALTER TABLE ".SQL_PREFIX."members DROP msg_from_id, DROP msg_msg_id;";
|
||||
$SQL[] = "ALTER TABLE ".SQL_PREFIX."members DROP org_supmod, DROP integ_msg;";
|
||||
$SQL[] = "alter table ".SQL_PREFIX."members DROP aim_name, DROP icq_number, DROP website, DROP yahoo, DROP interests,
|
||||
DROP msnname, DROP vdirs, DROP signature, DROP location, DROP avatar, DROP avatar_size;";
|
||||
$SQL[] = "alter table ".SQL_PREFIX."members change auto_track auto_track varchar(50) default '0';";
|
||||
$SQL[] = "ALTER TABLE ".SQL_PREFIX."members change temp_ban temp_ban varchar(100) default '0'";
|
||||
$SQL[] = "ALTER TABLE ".SQL_PREFIX."members change msg_total msg_total smallint(5) default '0'";
|
||||
$SQL[] = "ALTER TABLE ".SQL_PREFIX."members change temp_ban temp_ban varchar(100) default '0';";
|
||||
$SQL[] = "ALTER TABLE ".SQL_PREFIX."members change msg_total msg_total smallint(5) default '0';";
|
||||
|
||||
$this->install->error = array();
|
||||
$this->sqlcount = 0;
|
||||
@@ -1597,12 +1578,12 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Поля таблицы пользователей изменены, переходим к изменению оставшихся таблиц...<br /><br />Выполнено $this->sqlcount запросов...";
|
||||
$this->install->message = "Members table altered, other tables next...<br /><br />$this->sqlcount queries run....";
|
||||
$this->install->saved_data['workact'] = 'step_17';
|
||||
|
||||
if( $this->install->saved_data['man'] AND $output )
|
||||
{
|
||||
$this->install->message .= "<br /><br /><h3><b>Для продолжения обновления необходимо выполнить следующие MySQL запросы:</b></h3><br /><div class='eula'>".nl2br(htmlspecialchars($output))."</div>";
|
||||
$this->install->message .= "<br /><br /><h3><b>Please run these queries in your MySQL database before continuing..</b></h3><br />".nl2br(htmlspecialchars($output));
|
||||
$this->install->do_man = 1;
|
||||
}
|
||||
}
|
||||
@@ -1656,7 +1637,7 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Оставшиеся таблицы изменены, начинаем добавление служебных данных...<br /><br />Выполнено $this->sqlcount запросов...";
|
||||
$this->install->message = "Other tables altered, inserting data next...<br /><br />$this->sqlcount queries run....";
|
||||
$this->install->saved_data['workact'] = 'step_18';
|
||||
}
|
||||
|
||||
@@ -1667,24 +1648,23 @@ class version_upgrade
|
||||
|
||||
function step_18()
|
||||
{
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager VALUES (1, 'Очистка форума (раз в час)', 'cleanout.php', 1076074920, -1, -1, -1, 59, '2a7d083832daa123b73a68f9c51fdb29', 1, 'Удаление старых сессий, защитных регистрационных кодов, временных результатов поиска',1,'',0);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager VALUES (2, 'Пересчет статистики (раз в день)', 'rebuildstats.php', 1076112000, -1, -1, 0, 0, '640b9a6c373ff207bc1b1100a98121af', 1, 'Пересчет статистики форума',1,'',0);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager VALUES (3, 'Очистка форума (раз в день)', 'dailycleanout.php', 1076122800, -1, -1, 3, 0, 'e71b52f3ff9419abecedd14b54e692c4', 1, 'Удаление старых подписок на темы и старых меток прочтения тем',1,'',0);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager VALUES (4, 'Кеширование именинников и событий', 'calendarevents.php', 1076100960, -1, -1, 12, -1, '2c148c9bd754d023a7a19dd9b1535796', 1, 'Создание кеша календарных событий и дней рождения',1,'',0);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager (task_id, task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled) VALUES (9, 'Обновление объявлений', 'announcements.php', 1080747660, -1, -1, 4, -1, 'e82f2c19ab1ed57c140fccf8aea8b9fe', 1, 'Удаление старых объявлений и обновление кеша объявлений', 1);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Отправка рассылки', 'bulkmail.php', 1086706080, -1, -1, -1, -1, '61359ac93eb93ebbd935a4e275ade2db', 0, 'Запускается автоматически при появлении рассылок для отправки. Не изменять!', 0, 'bulkmail', 1);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Обзор тем и форума (раз в день)', 'dailydigest.php', 1086912600, -1, -1, 0, 10, '723cab2aae32dd5d04898b1151038846', 1, 'Отправка ежедневной рассылки тем и обзора форума', 1, 'dailydigest', 0);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Обзор тем и форума (раз в неделю)', 'weeklydigest.php', 1087096200, 0, -1, 3, 10, '7e7fccd07f781bdb24ac108d26612931', 1, 'Отправка еженедельной рассылки тем и обзора форума', 1, 'weeklydigest', 0);";
|
||||
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Указатель сообщения', 'Этот тег показывает маленькое изображение, которое является ссылкой на цитируемое сообщение — используется, когда цитируются сообщения с форума. Открывается по умолчанию в том же окне.', 'snapback', '<a href=\"index.php?act=findpost&pid={content}\"><{POST_SNAPBACK}></a>', 0, '[snapback]100[/snapback]');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('По правому краю', 'Выравнивание текста по правому краю.', 'right', '<div align=\'right\'>{content}</div>', 0, '[right]Любой текст здесь[/right]');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('По левому краю', 'Выравнивание текста по левому краю.', 'left', '<div align=\'left\'>{content}</div>', 0, '[left]Этот текст будет использовать выравнивание по левому краю[/left]');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('По центру', 'Выравнивание текста по центру.', 'center', '<div align=\'center\'>{content}</div>', 0, '[center]Выравнивание текста будет по центру[/center]');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Ссылка на тему', 'Этот тег позволяет легко опубликовать ссылку на тему, зная лишь ее номер.', 'topic', '<a href=\'index.php?showtopic={option}\'>{content}</a>', 1, '[topic=100]Нажми здесь![/topic]');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Ссылка на сообщение', 'Этот тег позволяет легко опубликовать ссылку на сообщение, зная лишь его номер.', 'post', '<a href=\'index.php?act=findpost&pid={option}\'>{content}</a>', 1, '[post=100]Нажми здесь![/post]');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Блок кода', 'Этот тег будет показывать блок кода с полосой прокрутки. Применяется для больших блоков с исходным кодом программы.', 'codebox', '<div class=\'codetop\'>CODE</div><div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\'>{content}</div>', 0, '[codebox]long_code_here = '';[/codebox]');";
|
||||
|
||||
$SQL[] = "delete from ".SQL_PREFIX."task_manager where task_key = ''";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager VALUES (1, 'Hourly Clean Out', 'cleanout.php', 1076074920, -1, -1, -1, 59, '2a7d083832daa123b73a68f9c51fdb29', 1, 'Kill old sessions, reg images, searches',1,'',0);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager VALUES (2, 'Daily Stats Rebuild', 'rebuildstats.php', 1076112000, -1, -1, 0, 0, '640b9a6c373ff207bc1b1100a98121af', 1, 'Rebuilds board statistics',1,'',0);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager VALUES (3, 'Daily Clean Out', 'dailycleanout.php', 1076122800, -1, -1, 3, 0, 'e71b52f3ff9419abecedd14b54e692c4', 1, 'Prunes topic subscriptions',1,'',0);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager VALUES (4, 'Birthday and Events Cache', 'calendarevents.php', 1076100960, -1, -1, 12, -1, '2c148c9bd754d023a7a19dd9b1535796', 1, 'Caches calendar events & birthdays',1,'',0);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager (task_id, task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled) VALUES (9, 'Announcements Update', 'announcements.php', 1080747660, -1, -1, 4, -1, 'e82f2c19ab1ed57c140fccf8aea8b9fe', 1, 'Rebuilds cache and expires out of date announcements', 1);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Send Bulk Mail', 'bulkmail.php', 1086706080, -1, -1, -1, -1, '61359ac93eb93ebbd935a4e275ade2db', 0, 'Dynamically assigned, no need to edit or change', 0, 'bulkmail', 1);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Daily Topic & Forum Digest', 'dailydigest.php', 1086912600, -1, -1, 0, 10, '723cab2aae32dd5d04898b1151038846', 1, 'Emails out daily topic & forum digest emails', 1, 'dailydigest', 0);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Weekly Topic & Forum Digest', 'weeklydigest.php', 1087096200, 0, -1, 3, 10, '7e7fccd07f781bdb24ac108d26612931', 1, 'Emails weekly topic & forum digest emails', 1, 'weeklydigest', 0);";
|
||||
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Post Snap Back', 'This tag displays a little linked image which links back to a post - used when quoting posts from the board. Opens in same window by default.', 'snapback', '<a href=\"index.php?act=findpost&pid={content}\"><{POST_SNAPBACK}></a>', 0, '[snapback]100[/snapback]');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Right', 'Aligns content to the right of the posting area', 'right', '<div align=\'right\'>{content}</div>', 0, '[right]Some text here[/right]');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Left', 'Aligns content to the left of the post', 'left', '<div align=\'left\'>{content}</div>', 0, '[left]Left aligned text[/left]');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Center', 'Aligns content to the center of the posting area.', 'center', '<div align=\'center\'>{content}</div>', 0, '[center]Centered Text[/center]');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Topic Link', 'This tag provides an easy way to link to a topic', 'topic', '<a href=\'index.php?showtopic={option}\'>{content}</a>', 1, '[topic=100]Click me![/topic]');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Post Link', 'This tag provides an easy way to link to a post.', 'post', '<a href=\'index.php?act=findpost&pid={option}\'>{content}</a>', 1, '[post=100]Click me![/post]');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('CODEBOX', 'Use this BBCode tag to show a scrolling codebox. Useful for long sections of code.', 'codebox', '<div class=\'codetop\'>CODE</div><div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\'>{content}</div>', 0, '[codebox]long_code_here = '';[/codebox]');";
|
||||
|
||||
$SQL[] = "insert into ".SQL_PREFIX."subscription_currency SET subcurrency_code='USD', subcurrency_desc='United States Dollars', subcurrency_exchange='1.00', subcurrency_default=1;";
|
||||
$SQL[] = "insert into ".SQL_PREFIX."subscription_currency SET subcurrency_code='GBP', subcurrency_desc='United Kingdom Pounds', subcurrency_exchange=' 0.630776', subcurrency_default=0;";
|
||||
@@ -1752,31 +1732,31 @@ class version_upgrade
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."skin_sets (set_skin_set_id, set_name, set_image_dir, set_hidden, set_default, set_css_method, set_skin_set_parent, set_author_email, set_author_name, set_author_url, set_css, set_cache_macro, set_wrapper, set_css_updated, set_cache_css, set_cache_wrapper, set_emoticon_folder) VALUES (3, 'IPB Pre-2.0 Skins', '1', 0, 0, '0', -1, 'ipbauto@invisionboard.com', 'Invision Power Services', 'www.invisionboard.com', '', '', '', 1074679074, '', '', 'default');";
|
||||
|
||||
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (1, 'Основные настройки форума', 'Группа опций, позволяющая менять базовые настройки системы, такие как: название форума, сайта, пути и т. д.', 17);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (2, 'Быстродействие и оптимизация системы ', 'Управление ресурсоемкими функциями системы. Опции этой группы позволяют снизить нагрузку на сервер.', 16);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (3, 'Формат даты и времени', 'Настройки формата отображения даты и времени на форуме.', 7);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (4, 'Пользовательская функциональность', 'Глобальные настройки функциональности доступной пользователям', 22);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (5, 'Темы, сообщения и опросы', 'Группа опций для настройки параметров отображения тем, ограничений при отправке сообщений, опросов.', 32);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (6, 'Безопасность форума', 'Настройки уровня безопасности форума, защиты от ботов, защиты от подбора пароля.', 18);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (7, 'Механизм Cookies', 'Группа опций по настройке cookies. Следует изменять при нестабильной работе авторизации на форуме.', 3);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow) VALUES (8, 'Система COPPA', 'Этот блок необходим, если вы хотите включить использование <a href=\'http://www.ftc.gov/ogc/coppa1.htm\'>COPPA</a>. В России не актуально.', 3, 1);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (9, 'Календарь и дни рождения', 'Группа опций по настройке календаря и календарных событий форума.', 8);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (10, 'Новости форума', 'Настройки новостной системы форума.', 2);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (11, 'Личные сообщения', 'Глобальные настройки системы личных сообщений форума.', 3);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (12, 'Настройки e-mail', 'Группа опций для управления почтовой системы форума (служебные e-mail адреса, методы отправки почты с форума).', 7);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (13, 'Система предупреждений/рейтинга', 'Группа опций, позволяющие управлять системой предупреждений пользователей.', 15);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (14, 'Настройки корзины', 'Корзина — специальный форум, в который перемещаются темы после удаления, тем самым оставляя возможность восстановить тему при ее случайном удалении.', 6);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (15, 'Включение/выключение форума', 'Группа опций для управления состоянием форума. Если форум находится в выключенном состоянии, то доступ к нему будут иметь только администраторы. Полезно при проведении технических работ на форуме.', 2);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (16, 'Система отслеживания поисковых роботов', 'Группа опций, отвечающих за настройку системы слежения за поисковыми роботами. Позволяет добавлять новых роботов, включать и отключать ведение журнала посещений роботов.', 7);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (17, 'Правила форума', 'Настройки, позволяющие менять тексты глобальных правил форума и правил, выдаваемых при регистрации.', 4);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (18, 'Конфигурация IP.Converge', 'Управления системой авторизации IP.Converge.', 1);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (19, 'Поисковая система форума', 'Группа опций для тонкой настройки поисковой системы.', 2);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES (20,'Настройки Invision Chat (легальная версия)', 'Это позволяет настроить интеграцию вашей легальной версии Invision Chat.', 14, 1, 'chat');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES (21,'Настройки Invision Chat', 'Это позволяет настроить интеграцию вашего Invision Chat (версии 2004+)', 10, 1, 'chat04');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES (22,'IPB Портал', 'Настройка IPB Портала.', 20, 0, 'ipbportal');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES (23,'Платные подписки', 'Управление платными подписками. Для России не актуально.', 3, 1, 'subsmanager');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES (24,'Лицензия', 'Изменение настроек лицензии.', 3, 1, 'ipbreg');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES (25,'Удаление копирайта', 'Этот блок позволяет активировать услугу удаления копирайта.', 2, 1, 'ipbcopyright');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (1, 'General Configuration', 'These settings control the basics of the board such as URLs and paths.', 17);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (2, 'CPU Saving & Optimization', 'This section allows certain features to be limited or removed to get more performance out of your board.', 16);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (3, 'Date & Time Formats', 'This section contains the date and time formats used throughout the board.', 7);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (4, 'User Profiles', 'This section allows you to adjust your member\'s global permissions and other options.', 22);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (5, 'Topics, Posts and Polls', 'These options control various elements when posting, reading topics and reading polls.', 32);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (6, 'Security and Privacy', 'These options allow you to adjust the security and privacy options for your board.', 18);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (7, 'Cookies', 'This section allows you to set the default cookie options.', 3);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (8, 'COPPA Set-up', 'This section allows you to comply with <a href=\'http://www.ftc.gov/ogc/coppa1.htm\'>COPPA</a>.', 3);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (9, 'Calendar & Birthdays', 'This section will allow you to set up the board calendar and its related options.', 8);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (10, 'News Set-up', 'This section will allow you to specify the forum you wish to export news topics from to be used with ssi.php and IPDynamic Lite.', 2);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (11, 'Personal Message Set-up', 'This section allows you to control the global PM options.', 3);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (12, 'Email Set-up', 'This section will allow you to change the incoming and outgoing email addresses as well as the email method.', 7);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (13, 'Warn Set-up', 'This section will allow you to set up the warning system.', 15);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (14, 'Trash Can Set-up', 'The trashcan is a special forum in which topics are moved into instead of being deleted.', 6);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (15, 'Board Offline / Online', 'Use this setting to turn switch your board online or offline and leave a message for your visitors.', 2);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (16, 'Search Engine Spiders', 'This section will allow you to set up and maintain your search engine bot spider recognition settings.', 7);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (17, 'Board Guidelines', 'This section allows you to maintain your board guidelines. If enabled, a link will be added to the board header linking to the board guidelines.', 4);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (18, 'Converge Set Up', 'Converge is Invision Power Services central authentication method for all IPS applications. This allows you to have a single log-in for all your IPS products.', 1);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (19, 'Full Text Search Set-Up', 'Full text searching is a very fast and very efficient way of searching large amounts of posts without maintaining a manual index. This may not be available for your system.', 2);";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES (20,'Invision Chat Settings (Legacy Version)', 'This will allow you to customize your Invision Chat integration settings for the legacy edition.', 14, 1, 'chat');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES (21,'Invision Chat Settings', 'This will allow you to customize your Invision Chat integration settings for the new 2004 edition', 10, 1, 'chat04');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES (22,'IPB Portal', 'These settings enable you to enable or disable IPB Portal and control the options IPB Portal offers.', 20, 0, 'ipbportal');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES (23,'Subscriptions Manager', 'These settings control various subscription manager features.', 3, 0, 'subsmanager');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES (24,'IPB Registration', 'This section will allow you to edit your IPB registered licence settings.', 3, 1, 'ipbreg');";
|
||||
$SQL[] = "INSERT INTO ".SQL_PREFIX."conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES (25,'IPB Copyright Removal', 'This section allows you to manage your copyright removal key.', 2, 1, 'ipbcopyright');";
|
||||
|
||||
|
||||
$this->install->error = array();
|
||||
@@ -1801,7 +1781,7 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Вставка данных завершена, далее удаление старых таблиц...<br /><br />$this->sqlcount запросов выполнено....";
|
||||
$this->install->message = "Inserts completed, dropping old tables next...<br /><br />$this->sqlcount queries run....";
|
||||
$this->install->saved_data['workact'] = 'step_19';
|
||||
}
|
||||
|
||||
@@ -1839,7 +1819,7 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Старые таблицы удалены, далее оптимизация...<br /><br />$this->sqlcount запросов выполнено....";
|
||||
$this->install->message = "Old tables dropped, optimization next...<br /><br />$this->sqlcount queries run....";
|
||||
$this->install->saved_data['workact'] = 'step_20';
|
||||
}
|
||||
|
||||
@@ -1856,7 +1836,7 @@ class version_upgrade
|
||||
$SQL[] = "ALTER TABLE ".SQL_PREFIX."topics CHANGE approved approved TINYINT( 1 ) DEFAULT '0' NOT NULL;";
|
||||
$SQL[] = "ALTER TABLE ".SQL_PREFIX."topics ADD INDEX(topic_firstpost);";
|
||||
|
||||
$SQL[] = "UPDATE ".SQL_PREFIX."members SET language=''";
|
||||
$SQL[] = "UPDATE ".SQL_PREFIX."members SET language='';";
|
||||
|
||||
$this->install->error = array();
|
||||
$this->sqlcount = 0;
|
||||
@@ -1888,12 +1868,12 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Началась оптимизация...<br /><br />$this->sqlcount запросов выполнено....";
|
||||
$this->install->message = "Optimization started...<br /><br />$this->sqlcount queries run....";
|
||||
$this->install->saved_data['workact'] = 'step_21';
|
||||
|
||||
if( $this->install->saved_data['man'] AND $output )
|
||||
{
|
||||
$this->install->message .= "<br /><br /><h3><b>Для продолжения обновления необходимо выполнить следующие MySQL запросы:</b></h3><br /><div class='eula'>".nl2br(htmlspecialchars($output))."</div>";
|
||||
$this->install->message .= "<br /><br /><h3><b>Please run these queries in your MySQL database before continuing..</b></h3><br />".nl2br(htmlspecialchars($output));
|
||||
$this->install->do_man = 1;
|
||||
}
|
||||
}
|
||||
@@ -1905,9 +1885,9 @@ class version_upgrade
|
||||
|
||||
function step_21()
|
||||
{
|
||||
$SQL[] = "alter table ".SQL_PREFIX."posts drop index topic_id;";
|
||||
#$SQL[] = "alter table ".SQL_PREFIX."posts drop index topic_id;";
|
||||
$SQL[] = "alter table ".SQL_PREFIX."posts drop index author_id;";
|
||||
$SQL[] = "alter table ".SQL_PREFIX."posts add index topic_id (topic_id, queued, pid);";
|
||||
#$SQL[] = "alter table ".SQL_PREFIX."posts add index topic_id (topic_id, queued, pid);";
|
||||
$SQL[] = "alter table ".SQL_PREFIX."posts add index author_id( author_id, topic_id);";
|
||||
$SQL[] = "ALTER TABLE ".SQL_PREFIX."posts DROP INDEX forum_id, ADD INDEX(post_date);";
|
||||
|
||||
@@ -1941,12 +1921,12 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Оптимизация завершена, далее импортирование новых стилей...<br /><br />$this->sqlcount запросов выполнено....";
|
||||
$this->install->message = "Optimization completed, new skins import next...<br /><br />$this->sqlcount queries run....";
|
||||
$this->install->saved_data['workact'] = 'step_22';
|
||||
|
||||
if( $this->install->saved_data['man'] AND $output )
|
||||
{
|
||||
$this->install->message .= "<br /><br /><h3><b>Для продолжения обновления необходимо выполнить следующие MySQL запросы:</b></h3><br /><div class='eula'>".nl2br(htmlspecialchars($output))."</div>";
|
||||
$this->install->message .= "<br /><br /><h3><b>Please run these queries in your MySQL database before continuing..</b></h3><br />".nl2br(htmlspecialchars($output));
|
||||
$this->install->do_man = 1;
|
||||
}
|
||||
}
|
||||
@@ -2013,163 +1993,8 @@ class version_upgrade
|
||||
$this->install->ipsclass->DB->do_update( 'skin_macro', array( 'macro_set' => $new_id ), 'macro_set='.$r['set_id'] );
|
||||
}
|
||||
|
||||
//-----------------------------------
|
||||
// Get XML
|
||||
//-----------------------------------
|
||||
|
||||
$xml = new class_xml();
|
||||
$xml->lite_parser = 1;
|
||||
|
||||
//-----------------------------------
|
||||
// Get XML file (TEMPLATES)
|
||||
//-----------------------------------
|
||||
|
||||
$xmlfile = ROOT_PATH.'resources/ipb_templates.xml';
|
||||
|
||||
$setting_content = implode( "", file($xmlfile) );
|
||||
|
||||
//-------------------------------
|
||||
// Unpack the datafile (TEMPLATES)
|
||||
//-------------------------------
|
||||
|
||||
$xml->xml_parse_document( $setting_content );
|
||||
|
||||
//-------------------------------
|
||||
// (TEMPLATES)
|
||||
//-------------------------------
|
||||
|
||||
if ( ! is_array( $xml->xml_array['templateexport']['templategroup']['template'] ) )
|
||||
{
|
||||
$this->install->error[] = "Ошибка с ipb_templates.xml — невозможно прочитать этот файл корректно";
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach( $xml->xml_array['templateexport']['templategroup']['template'] as $entry )
|
||||
{
|
||||
$this->install->ipsclass->DB->allow_sub_select = 1;
|
||||
$this->install->ipsclass->DB->error = '';
|
||||
|
||||
$newrow = array();
|
||||
|
||||
$newrow['group_name'] = $entry[ 'group_name' ]['VALUE'];
|
||||
$newrow['section_content'] = $entry[ 'section_content' ]['VALUE'];
|
||||
$newrow['func_name'] = $entry[ 'func_name' ]['VALUE'];
|
||||
$newrow['func_data'] = $entry[ 'func_data' ]['VALUE'];
|
||||
$newrow['set_id'] = 1;
|
||||
$newrow['updated'] = time();
|
||||
|
||||
$this->install->ipsclass->DB->do_insert( "skin_templates", $newrow );
|
||||
|
||||
if ( $this->install->ipsclass->DB->failed )
|
||||
{
|
||||
$query = array_pop( $this->install->ipsclass->DB->obj['cached_queries'] );
|
||||
$this->install->error[] = $query."<br /><br />".$this->install->ipsclass->DB->error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------
|
||||
// GET MACRO
|
||||
//-------------------------------
|
||||
|
||||
$xmlfile = ROOT_PATH.'resources/macro.xml';
|
||||
|
||||
$setting_content = implode( "", file($xmlfile) );
|
||||
|
||||
//-------------------------------
|
||||
// Unpack the datafile (MACRO)
|
||||
//-------------------------------
|
||||
|
||||
$xml->xml_parse_document( $setting_content );
|
||||
|
||||
//-------------------------------
|
||||
// (MACRO)
|
||||
//-------------------------------
|
||||
|
||||
if ( ! is_array( $xml->xml_array['macroexport']['macrogroup']['macro'] ) )
|
||||
{
|
||||
$this->install->error[] = "Ошибка с macro.xml — невозможно прочитать этот файл корректно";
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach( $xml->xml_array['macroexport']['macrogroup']['macro'] as $entry )
|
||||
{
|
||||
$this->install->ipsclass->DB->allow_sub_select = 1;
|
||||
$this->install->ipsclass->DB->error = '';
|
||||
|
||||
$newrow = array();
|
||||
|
||||
$newrow['macro_value'] = $entry[ 'macro_value' ]['VALUE'];
|
||||
$newrow['macro_replace'] = $entry[ 'macro_replace' ]['VALUE'];
|
||||
$newrow['macro_set'] = 1;
|
||||
|
||||
$this->install->ipsclass->DB->do_insert( "skin_macro", $newrow );
|
||||
|
||||
if ( $this->install->ipsclass->DB->failed )
|
||||
{
|
||||
$query = array_pop( $this->install->ipsclass->DB->obj['cached_queries'] );
|
||||
$this->install->error[] = $query."<br /><br />".$this->install->ipsclass->DB->error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------
|
||||
// WRAPPER / CSS
|
||||
//-------------------------------
|
||||
|
||||
$xmlfile = ROOT_PATH.'resources/skinsets.xml';
|
||||
|
||||
$setting_content = implode( "", file($xmlfile) );
|
||||
|
||||
//-------------------------------
|
||||
// Unpack the datafile (WRAPPER/CSS)
|
||||
//-------------------------------
|
||||
|
||||
$xml->xml_parse_document( $setting_content );
|
||||
|
||||
//-------------------------------
|
||||
// (WRAPPER/CSS)
|
||||
//-------------------------------
|
||||
|
||||
if ( ! is_array( $xml->xml_array['export']['group']['row'] ) )
|
||||
{
|
||||
$this->install->error[] = "Ошибка с skinsets.xml — невозможно прочитать этот файл корректно";
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach( $xml->xml_array['export']['group']['row'] as $entry )
|
||||
{
|
||||
$this->install->ipsclass->DB->allow_sub_select = 1;
|
||||
$this->install->ipsclass->DB->error = '';
|
||||
|
||||
if( $entry['set_skin_set_id'] <> 1 )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$newrow = array();
|
||||
|
||||
$newrow['set_css'] = $entry[ 'set_css' ]['VALUE'];
|
||||
$newrow['set_werapper'] = $entry[ 'set_wrapper' ]['VALUE'];
|
||||
|
||||
$this->install->ipsclass->DB->do_update( "skin_sets", $wrapper_record, "set_skin_set_id=1" );
|
||||
|
||||
if ( $this->install->ipsclass->DB->failed )
|
||||
{
|
||||
$query = array_pop( $this->install->ipsclass->DB->obj['cached_queries'] );
|
||||
$this->install->error[] = $query."<br /><br />".$this->install->ipsclass->DB->error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Cleanup XML
|
||||
//-----------------------------------------
|
||||
|
||||
unset($xml);
|
||||
|
||||
$this->install->message = "Стили успешно импортированы, вставка настроек...";
|
||||
$this->install->saved_data['workact'] = 'step_23';
|
||||
$this->install->message = "Skins imported, importing settings...";
|
||||
$this->install->saved_data['workact'] = 'step_24';
|
||||
}
|
||||
|
||||
|
||||
@@ -2181,96 +2006,9 @@ class version_upgrade
|
||||
{
|
||||
global $INFO;
|
||||
|
||||
//-----------------------------------
|
||||
// Get XML
|
||||
//-----------------------------------
|
||||
|
||||
|
||||
$xml = new class_xml();
|
||||
$xml->lite_parser = 1;
|
||||
|
||||
//-----------------------------------
|
||||
// Get XML file
|
||||
//-----------------------------------
|
||||
|
||||
$xmlfile = ROOT_PATH.'resources/settings.xml';
|
||||
|
||||
$setting_content = implode( "", file($xmlfile) );
|
||||
|
||||
//-------------------------------
|
||||
// Unpack the datafile
|
||||
//-------------------------------
|
||||
|
||||
$xml->xml_parse_document( $setting_content );
|
||||
|
||||
//-------------------------------
|
||||
// pArse
|
||||
//-------------------------------
|
||||
|
||||
$fields = array( 'conf_title', 'conf_description', 'conf_group', 'conf_type', 'conf_key', 'conf_value', 'conf_default',
|
||||
'conf_extra', 'conf_evalphp', 'conf_protected', 'conf_position', 'conf_start_group', 'conf_end_group', 'conf_help_key', 'conf_add_cache' );
|
||||
|
||||
|
||||
if ( ! is_array( $xml->xml_array['settingexport']['settinggroup']['setting'] ) )
|
||||
{
|
||||
$this->install->error[] = "Ошибка с settings.xml — невозможно прочитать этот файл корректно";
|
||||
}
|
||||
|
||||
foreach( $xml->xml_array['settingexport']['settinggroup']['setting'] as $entry )
|
||||
{
|
||||
if ( ! $entry['conf_key']['VALUE'] )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$newrow = array();
|
||||
|
||||
$entry['conf_value']['VALUE'] = "";
|
||||
|
||||
if ( $INFO[ $entry['conf_key']['VALUE'] ] != "" and $INFO[ $entry['conf_key']['VALUE'] ] != $entry['conf_default']['VALUE'] )
|
||||
{
|
||||
$entry['conf_value']['VALUE'] = $INFO[ $entry['conf_key']['VALUE'] ];
|
||||
}
|
||||
|
||||
//-----------------------------------
|
||||
// Special considerations?
|
||||
//-----------------------------------
|
||||
|
||||
if ( $entry['conf_key']['VALUE'] == 'img_ext' )
|
||||
{
|
||||
$entry['conf_value']['VALUE'] = str_replace( '|', ',', $entry['conf_value']['VALUE'] );
|
||||
}
|
||||
else if ( $entry['conf_key']['VALUE'] == 'photo_ext' )
|
||||
{
|
||||
$entry['conf_value']['VALUE'] = str_replace( '|', ',', $entry['conf_value']['VALUE'] );
|
||||
}
|
||||
else if ( $entry['conf_key']['VALUE'] == 'avatar_ext' )
|
||||
{
|
||||
$entry['conf_value']['VALUE'] = str_replace( '|', ',', $entry['conf_value']['VALUE'] );
|
||||
}
|
||||
|
||||
//-----------------------------------
|
||||
// Make PHP slashes safe
|
||||
//-----------------------------------
|
||||
|
||||
$entry['conf_evalphp']['VALUE'] = str_replace( '\\', '\\\\', $entry['conf_evalphp']['VALUE'] );
|
||||
|
||||
foreach( $fields as $f )
|
||||
{
|
||||
$newrow[$f] = $entry[ $f ]['VALUE'];
|
||||
}
|
||||
|
||||
$this->install->ipsclass->DB->do_insert( "conf_settings", $newrow );
|
||||
|
||||
if ( $this->install->ipsclass->DB->failed )
|
||||
{
|
||||
$query = array_pop( $this->install->ipsclass->DB->obj['cached_queries'] );
|
||||
$this->install->error[] = $query."<br /><br />".$this->install->ipsclass->DB->error;
|
||||
}
|
||||
}
|
||||
|
||||
unset($xml);
|
||||
|
||||
$this->install->message = "Настройки вставлены, далее обновление кешей...";
|
||||
$this->install->message = "Settings imported, recache & rebuild next...";
|
||||
$this->install->saved_data['workact'] = 'step_24';
|
||||
}
|
||||
|
||||
@@ -2280,20 +2018,6 @@ class version_upgrade
|
||||
|
||||
function step_24()
|
||||
{
|
||||
//-----------------------------------
|
||||
// Get ACP library
|
||||
//-----------------------------------
|
||||
|
||||
require_once( ROOT_PATH.'sources/lib/admin_cache_functions.php' );
|
||||
$acp = new admin_cache_functions();
|
||||
$acp->ipsclass =& $this->install->ipsclass;
|
||||
|
||||
//-----------------------------------
|
||||
// Cache skins and shit
|
||||
//-----------------------------------
|
||||
|
||||
$acp->_rebuild_all_caches( array(2,3) );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Forum cache
|
||||
//-------------------------------------------------------------
|
||||
@@ -2461,7 +2185,7 @@ class version_upgrade
|
||||
|
||||
$this->install->ipsclass->update_cache( array( 'name' => 'attachtypes', 'array' => 1, 'deletefirst' => 1 ) );
|
||||
|
||||
$this->install->message = "Новые кеши созданы...";
|
||||
$this->install->message = "Data recached...";
|
||||
unset($this->install->saved_data['workact']);
|
||||
unset($this->install->saved_data['st']);
|
||||
unset($this->install->saved_data['vid']);
|
||||
+480
-762
File diff suppressed because it is too large.
Load diff
@@ -23,25 +23,36 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
$SQL = array();
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings_titles (conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES ('IPB Ïîðòàë', 'Ýòè íàñòðîéêè ïîçâîëÿò Âàì âêëþ÷èòü/îòêëþ÷èòü è íàñòðîèòü IPB Ïîðòàë.', 20, 0, 'ipbportal');";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Âêëþ÷èòü IPB ïîðòàë?', 'Åñëè «Äà», IPB Ïîðòàë áóäåò äîñòóïåí, èñïîëüçóÿ ñëåäóþùóþ çàïèñü â URL ñòðîêå — 'index.php?act=home', èëè ÷åðåç ñïåöèàëüíûé php ôàéë, êîòîðûé ìîæíî âçÿòü èç äèðåêòîðèè /Tools_and_Scripts/ äèñòðèáóòèâà ñ ôîðóìîì.', '22', 'yes_no', 'csite_on', '', '1', '', '', 1, 1, '', 0, '', 1);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Çàãîëîâîê ñòðàíèöû ïîðòàëà', 'Ýòî íàçâàíèå áóäåò âûâîäèòüñÿ â òåãå <title>, òî åñòü, â çàãîëîâêå îêíà áðàóçåðà.', '22', 'input', 'csite_title', '', 'Ïîðòàë IPB', '', '', 1, 2, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Ôîðìàò âðåìåíè äëÿ íîâîñòåé', 'Ïîäðîáíåå î ôîðìàòå äàòû è âðåìåíè íà îôèöèàëüíîì ñàéòå PHP: <a href=\'http://www.php.net/date\'>ôóíêöèÿ date</a>', '22', 'input', 'csite_article_date', '', 'm-j-y H:i', '', '', 1, 3, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Ïîêàçûâàòü ïàíåëü ïîëüçîâàòåëåé/ãîñòåé?', '', '22', 'yes_no', 'csite_pm_show', '', '1', '', '', 1, 12, 'Êîìïîíåíòû ïîðòàëà', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Ïîêàçûâàòü áëîê ñ ôîðìîé ïîèñêà?', '', '22', 'yes_no', 'csite_search_show', '', '1', '', '', 1, 14, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Ïîêàçûâàòü áëîê ñ ìåíþ âûáîðà ñòèëÿ?', '', '22', 'yes_no', 'csite_skinchange_show', '', '1', '', '', 1, 15, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Ïîêàçûâàòü íàâèãàöèîííîå ìåíþ?', '', '22', 'yes_no', 'csite_nav_show', '', '1', '', '', 1, 18, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Ññûëêè íàâèãàöèîííîãî ìåíþ', 'Èñïîëüçóéòå îäíó ññûëêó íà ñòðîêó, ââîäèòå â ñëåäóþùåì ôîðìàòå:<br />http://www.ibresource.ru [IBResource]<br /><br />Çàïèñü {board_url} áóäåò çàìåíåíà íà URL âàøåãî ôîðóìà', '22', 'textarea', 'csite_nav_contents', '', '{board_url} [Ôîðóìû]\r\n{board_url}act=Search&CODE=getactive [Àêòèâíûå òåìû]\r\n{board_url}act=Stats [Ëó÷øèå ñåãîäíÿ]\r\n{board_url}act=Stats&CODE=leaders [Àäìèíèñòðàöèÿ ôîðóìà]', '', 'if ( $show == 1)\r\n{\r\n $value = preg_replace( \"/&(middot|quot|copy|amp)/\", \"&\\\\1\", $value );\r\n}', 1, 19, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Ïîêàçûâàòü áëîê ñ ðåêîìåíäóåìûìè ññûëêàìè?', '', '22', 'yes_no', 'csite_fav_show', '', '0', '', '', 1, 20, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Ñîäåðæàíèå áëîêà ñ ðåêîìåíäóåìûìè ññûëêàìè', 'Íàïðèìåð, ññûëêè íà ñàéòû âàøèõ ïàðòíåðîâ.', '22', 'textarea', 'csite_fav_contents', '', '', '', 'if ( $show == 1)\r\n{\r\n $value = preg_replace( \"/&(middot|quot|copy|amp)/\", \"&\\\\1\", $value );\r\n}', 1, 21, '', 1, '', 0);";
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings_titles (conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES ('IPB Portal', 'These settings enable you to enable or disable IPB Portal and control the options IPB Portal offers.', 20, 0, 'ipbportal');";
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('ENABLE IPB Portal?', 'If \'yes\', IPB Portal can be accessed via \'index.php?act=home\' or via the special \'index.php\' script (see documentation for more info).', '22', 'yes_no', 'csite_on', '', '1', '', '', 1, 1, '', 0, '', 1);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('IPB Portal Page Title?', 'This will appear inbetween the <title> elements on the page', '22', 'input', 'csite_title', '', 'IPB Portal', '', '', 1, 2, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Forums to export articles from', 'Separate <b>forum ids</b> with a comma for more than one', '22', 'input', 'csite_article_forum', '1,2,3,4,5,6', '', '', '', 1, 3, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Number of Articles to display in the main section', '', '22', 'input', 'csite_article_max', '', '15', '', '', 1, 4, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Enable Recent Articles?', 'This will show a list of recent topic titles on the IPB Portal page', '22', 'yes_no', 'csite_article_recent_on', '', '1', '', '', 1, 5, 'IPB Portal Recent Articles', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Max. no recent articles to show', '', '22', 'input', 'csite_article_recent_max', '', '5', '', '', 1, 6, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Max. length of topic titles', '', '22', 'input', 'csite_article_len', '', '30', '', '', 1, 7, '', 1, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Date format for articles', '<a href=\'http://www.php.net/date\'>Same as PHP\'s date function', '22', 'input', 'csite_article_date', '', 'm-j-y H:i', '', '', 1, 3, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Enable Recent Discussions', '', '22', 'yes_no', 'csite_discuss_on', '', '1', '', '', 1, 9, 'IPB Portal Recent Discussions', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Max. no recent discussions to show', '', '22', 'input', 'csite_discuss_max', '', '10', '', '', 1, 10, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Max. length of topic titles', '', '22', 'input', 'csite_discuss_len', '', '30', '', '', 1, 11, '', 1, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show User / Guest Info box?', '', '22', 'yes_no', 'csite_pm_show', '', '1', '', '', 1, 12, 'IPB Portal Components', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show online users?', '', '22', 'yes_no', 'csite_online_show', '', '1', '', '', 1, 13, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show search box?', '', '22', 'yes_no', 'csite_search_show', '', '1', '', '', 1, 14, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Enable skin selection choice dropdown?', '', '22', 'yes_no', 'csite_skinchange_show', '', '1', '', '', 1, 15, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Enter URL to poll topic for inclusion', 'Leave blank to not show a poll or the poll box', '22', 'input', 'csite_poll_url', '', '', '', '', 1, 17, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show Site Navigation Menu?', '', '22', 'yes_no', 'csite_nav_show', '', '1', '', '', 1, 18, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Site Navigation Menu Links', 'One per line in this format<br>http://www.apple.com [Apple\'s Website]<br><br>{board_url} will convert into your board', '22', 'textarea', 'csite_nav_contents', '', '{board_url} [Forums]\r\n{board_url}act=Search&CODE=getactive [Today\'s Active Topics]\r\n{board_url}act=Stats [Today\'s Top 10 Posters]\r\n{board_url}act=Stats&CODE=leaders [Contact Staff]', '', 'if ( $show == 1)\r\n{\r\n $value = preg_replace( \"/&(middot|quot|copy|amp)/\", \"&\\\\1\", $value );\r\n}', 1, 19, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show Affiliates / Favoured Sites box?', '', '22', 'yes_no', 'csite_fav_show', '', '0', '', '', 1, 20, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show Affiliates / Favoured Sites box content', 'Raw HTML enabled', '22', 'textarea', 'csite_fav_contents', '', '', '', 'if ( $show == 1)\r\n{\r\n $value = preg_replace( \"/&(middot|quot|copy|amp)/\", \"&\\\\1\", $value );\r\n}', 1, 21, '', 1, '', 0);";
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -23,16 +23,16 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
$SQL = array();
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Îòïðàâêà ðàññûëêè', 'bulkmail.php', 1086706080, -1, -1, -1, -1, '61359ac93eb93ebbd935a4e275ade2db', 0, 'Çàïóñêàåòñÿ àâòîìàòè÷åñêè ïðè ïîÿâëåíèè ðàññûëîê äëÿ îòïðàâêè. Íå èçìåíÿòü!', 0, 'bulkmail', 1);";
|
||||
$SQL[] = "INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Îáçîð òåì è ôîðóìà (ðàç â äåíü)', 'dailydigest.php', 1086912600, -1, -1, 0, 10, '723cab2aae32dd5d04898b1151038846', 1, 'Îòïðàâêà åæåäíåâíîé ðàññûëêè òåì è îáçîðà ôîðóìà', 1, 'dailydigest', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Îáçîð òåì è ôîðóìà (ðàç â íåäåëþ)', 'weeklydigest.php', 1087096200, 0, -1, 3, 10, '7e7fccd07f781bdb24ac108d26612931', 1, 'Îòïðàâêà åæåíåäåëüíîé ðàññûëêè òåì è îáçîðà ôîðóìà', 1, 'weeklydigest', 0);";
|
||||
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Send Bulk Mail', 'bulkmail.php', 1086706080, -1, -1, -1, -1, '61359ac93eb93ebbd935a4e275ade2db', 0, 'Dynamically assigned, no need to edit or change', 0, 'bulkmail', 1);";
|
||||
$SQL[] = "INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Daily Topic & Forum Digest', 'dailydigest.php', 1086912600, -1, -1, 0, 10, '723cab2aae32dd5d04898b1151038846', 1, 'Emails out daily topic & forum digest emails', 1, 'dailydigest', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Weekly Topic & Forum Digest', 'weeklydigest.php', 1087096200, 0, -1, 3, 10, '7e7fccd07f781bdb24ac108d26612931', 1, 'Emails weekly topic & forum digest emails', 1, 'weeklydigest', 0);";
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -1,34 +1,34 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.0 PF1 -> PF 2
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
exit();
|
||||
}
|
||||
|
||||
$SQL = array();
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Áëîê êîäà', 'Ýòîò òåã áóäåò ïîêàçûâàòü áëîê êîäà ñ ïîëîñîé ïðîêðóòêè. Ïðèìåíÿåòñÿ äëÿ áîëüøèõ áëîêîâ ñ èñõîäíûì êîäîì ïðîãðàììû.', 'codebox', '<div class=\'codetop\'>CODE</div><div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\'>{content}</div>', 0, '[codebox]long_code_here = '';[/codebox]');";
|
||||
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.0 PF1 -> PF 2
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
$SQL = array();
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('CODEBOX', 'Use this BBCode tag to show a scrolling codebox. Useful for long sections of code.', 'codebox', '<div class=\'codetop\'>CODE</div><div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\'>{content}</div>', 0, '[codebox]long_code_here = '';[/codebox]');";
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,15 +1,15 @@
|
||||
<?php
|
||||
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('P_UP', '<img src=\'style_images/<#IMG_DIR#>/p_up.gif\' border=\'0\' alt=\'Âåðíóòüñÿ â íà÷àëî ñòðàíèöû\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('P_CARD', '<img src=\'style_images/<#IMG_DIR#>/p_card.gif\' border=\'0\' alt=\'Êàðòî÷êà ïîëüçîâàòåëÿ\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('P_UP', '<img src=\'style_images/<#IMG_DIR#>/p_up.gif\' border=\'0\' alt=\'Go to the top of the page\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('P_CARD', '<img src=\'style_images/<#IMG_DIR#>/p_card.gif\' border=\'0\' alt=\'Profile Card\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_AIM', '<img src=\'style_images/<#IMG_DIR#>/profile_aim.gif\' border=\'0\' alt=\'AIM\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_ITEM', '<img src=\'style_images/<#IMG_DIR#>/profile_item.gif\' border=\'0\' alt=\'Îïöèè ïðîôèëÿ\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_ITEM', '<img src=\'style_images/<#IMG_DIR#>/profile_item.gif\' border=\'0\' alt=\'Profile Item\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_MSN', '<img src=\'style_images/<#IMG_DIR#>/profile_msn.gif\' border=\'0\' alt=\'MSN\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_ICQ', '<img src=\'style_images/<#IMG_DIR#>/profile_icq.gif\' border=\'0\' alt=\'ICQ\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_YIM', '<img src=\'style_images/<#IMG_DIR#>/profile_yahoo.gif\' border=\'0\' alt=\'Yahoo\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_CONTACT', '<img src=\'style_images/<#IMG_DIR#>/icon_msg_nonew.gif\' border=\'0\' alt=\'Êîíòàêò\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_CONTACT', '<img src=\'style_images/<#IMG_DIR#>/icon_msg_nonew.gif\' border=\'0\' alt=\'Contact\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('BAR_LEFT', '<img src=\'style_images/<#IMG_DIR#>/bar_left.gif\' border=\'0\' alt=\'*\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('BAR_RIGHT', '<img src=\'style_images/<#IMG_DIR#>/bar_right.gif\' border=\'0\' alt=\'*\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('CAL_GOTO', '<img src=\'style_images/<#IMG_DIR#>/cal_goto.gif\' border=\'0\' alt=\'Ïåðåéòè ê ìåñÿöó\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('CAL_GOTO', '<img src=\'style_images/<#IMG_DIR#>/cal_goto.gif\' border=\'0\' alt=\'Goto Month\' />', 1, 1);";
|
||||
?>
|
||||
@@ -1,68 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.0 PF3 -> PF 4
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $install;
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function version_upgrade( & $install )
|
||||
{
|
||||
$this->install = & $install;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
//--------------------------------
|
||||
// Upgrade templates
|
||||
//--------------------------------
|
||||
|
||||
require_once( ROOT_PATH.'upgrade/installfiles/upg_20009/components.php' );
|
||||
|
||||
$this->install->ipsclass->DB->do_update( 'skin_sets', array( 'set_css' => $CSS,
|
||||
'set_cache_css' => $CSS,
|
||||
'set_wrapper' => $WRAPPER,
|
||||
'set_cache_wrapper' => $WRAPPER,
|
||||
), 'set_skin_set_id=1' );
|
||||
|
||||
$this->install->message = "Îáùèé øàáëîí ôîðóìà è CSS îáíîâëåíû...";
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,68 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.0 PF3 -> PF 4
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $install;
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function version_upgrade( & $install )
|
||||
{
|
||||
$this->install = & $install;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
//--------------------------------
|
||||
// Upgrade templates
|
||||
//--------------------------------
|
||||
|
||||
require_once( ROOT_PATH.'upgrade/installfiles/upg_20010/components.php' );
|
||||
|
||||
$this->install->ipsclass->DB->do_update( 'skin_sets', array( 'set_css' => $CSS,
|
||||
'set_cache_css' => $CSS,
|
||||
'set_wrapper' => $WRAPPER,
|
||||
'set_cache_wrapper' => $WRAPPER,
|
||||
), 'set_skin_set_id=1' );
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -2,24 +2,25 @@
|
||||
|
||||
# Nothing of interest!
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('portal', 'a:6:{s:5:\"blogs\";a:5:{s:8:\"pc_title\";s:30:\"Invision Power Community Blogs\";s:7:\"pc_desc\";s:39:\"Âûâîä èíôîðìàöèè èç IPB Blog íà ïîðòàëå\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:25:\"blogs_show_last_updated_x\";a:2:{i:0;s:25:\"blogs_show_last_updated_x\";i:1;s:54:\"Âûâåñòè áëîê ñ íàçâàíèÿìè ïîñëåäíèõ îáíîâëåííûõ áëîãîâ\";}}s:6:\"pc_key\";s:5:\"blogs\";}s:8:\"calendar\";a:5:{s:8:\"pc_title\";s:16:\"Êàëåíäàðü ôîðóìà\";s:7:\"pc_desc\";s:37:\"Âûâîä ìèíè-êàëåíäàðÿ íà òåêóùèé ìåñÿö\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:27:\"calendar_show_current_month\";a:2:{i:0;s:27:\"calendar_show_current_month\";i:1;s:42:\"Âûâåñòè áëîê ñ êàëåíäàðåì íà òåêóùèé ìåñÿö\";}}s:6:\"pc_key\";s:8:\"calendar\";}s:7:\"gallery\";a:5:{s:8:\"pc_title\";s:22:\"Invision Power Gallery\";s:7:\"pc_desc\";s:53:\"Âûâîä èíôîðìàöèè èç Invision Power Gallery íà ïîðòàëå\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:25:\"gallery_show_random_image\";a:2:{i:0;s:25:\"gallery_show_random_image\";i:1;s:63:\"Âûâåñòè áëîê ñî ñëó÷àéíûìè èçîáðàæåíèÿìè èç ãàëåðåé ïîëüçîâàòåé\";}}s:6:\"pc_key\";s:7:\"gallery\";}s:12:\"online_users\";a:5:{s:8:\"pc_title\";s:22:\"Ïîëüçîâàòåëè â îí-ëàéí\";s:7:\"pc_desc\";s:58:\"Âûâîä ÷èñëà ïîëüçîâàòåëåé è èõ èìåí, íàõîäÿùèõñÿ â îí-ëàéí\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:17:\"online_users_show\";a:2:{i:0;s:17:\"online_users_show\";i:1;s:36:\"Âûâåñòè áëîê ïîëüçîâàòåëåé â îí-ëàéí\";}}s:6:\"pc_key\";s:12:\"online_users\";}s:4:\"poll\";a:5:{s:8:\"pc_title\";s:14:\"Îïðîñ ñ ôîðóìà\";s:7:\"pc_desc\";s:43:\"Âûâîäèò âûáðàííûé ñ ôîðóìà îïðîñ íà ïîðòàëå\";s:19:\"pc_settings_keyword\";s:11:\"portal_poll\";s:18:\"pc_exportable_tags\";a:1:{s:14:\"poll_show_poll\";a:2:{i:0;s:14:\"poll_show_poll\";i:1;s:22:\"Âûâåñòè áëîê ñ îïðîñîì\";}}s:6:\"pc_key\";s:4:\"poll\";}s:13:\"recent_topics\";a:5:{s:8:\"pc_title\";s:23:\"Ïîñëåäíèå òåìû ñ ôîðóìà\";s:7:\"pc_desc\";s:49:\"Âûâîäèò ïîñëåäíèå òåìû ñ ïåðâûì ñîîáùåíèåì èç íèõ\";s:19:\"pc_settings_keyword\";s:20:\"portal_recent_topics\";s:18:\"pc_exportable_tags\";a:2:{s:20:\"recent_topics_last_x\";a:2:{i:0;s:20:\"recent_topics_last_x\";i:1;s:56:\"Âûâåñòè áëîê ñ ïîñëåäíèìè òåìàìè èç îïðåäåëåííûõ ôîðóìîâ\";}s:32:\"recent_topics_discussions_last_x\";a:2:{i:0;s:32:\"recent_topics_discussions_last_x\";i:1;s:48:\"Âûâåñòè áëîê ñ ïîñëåäíèìè òåìàìè èç âñåõ ôîðóìîâ\";}}s:6:\"pc_key\";s:13:\"recent_topics\";}}', '', 1);"";
|
||||
$SQL[] = "INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('portal', 'a:6:{s:5:\"blogs\";a:5:{s:8:\"pc_title\";s:30:\"Invision Power Community Blogs\";s:7:\"pc_desc\";s:40:\"Shows IPB Blog information on the portal\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:25:\"blogs_show_last_updated_x\";a:2:{i:0;s:25:\"blogs_show_last_updated_x\";i:1;s:30:\"Shows the last X updated blogs\";}}s:6:\"pc_key\";s:5:\"blogs\";}s:8:\"calendar\";a:5:{s:8:\"pc_title\";s:29:\"Invision Power Board Calendar\";s:7:\"pc_desc\";s:46:\"Displays a mini calendar for the current month\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:27:\"calendar_show_current_month\";a:2:{i:0;s:27:\"calendar_show_current_month\";i:1;s:38:\"Shows a calendar for the current month\";}}s:6:\"pc_key\";s:8:\"calendar\";}s:7:\"gallery\";a:5:{s:8:\"pc_title\";s:22:\"Invision Power Gallery\";s:7:\"pc_desc\";s:54:\"Shows Invision Power Gallery information on the portal\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:25:\"gallery_show_random_image\";a:2:{i:0;s:25:\"gallery_show_random_image\";i:1;s:44:\"Shows a random image from a member\'s gallery\";}}s:6:\"pc_key\";s:7:\"gallery\";}s:12:\"online_users\";a:5:{s:8:\"pc_title\";s:33:\"Invision Power Board Online Users\";s:7:\"pc_desc\";s:49:\"Shows the current name and number of online users\";s:19:\"pc_settings_keyword\";s:0:\"\";s:18:\"pc_exportable_tags\";a:1:{s:17:\"online_users_show\";a:2:{i:0;s:17:\"online_users_show\";i:1;s:22:\"Shows the online users\";}}s:6:\"pc_key\";s:12:\"online_users\";}s:4:\"poll\";a:5:{s:8:\"pc_title\";s:25:\"Invision Power Board Poll\";s:7:\"pc_desc\";s:23:\"Shows the selected poll\";s:19:\"pc_settings_keyword\";s:11:\"portal_poll\";s:18:\"pc_exportable_tags\";a:1:{s:14:\"poll_show_poll\";a:2:{i:0;s:14:\"poll_show_poll\";i:1;s:22:\"Shows the request poll\";}}s:6:\"pc_key\";s:4:\"poll\";}s:13:\"recent_topics\";a:5:{s:8:\"pc_title\";s:34:\"Invision Power Board Recent Topics\";s:7:\"pc_desc\";s:47:\"Shows IPB recent topics with topic\'s first post\";s:19:\"pc_settings_keyword\";s:20:\"portal_recent_topics\";s:18:\"pc_exportable_tags\";a:2:{s:20:\"recent_topics_last_x\";a:2:{i:0;s:20:\"recent_topics_last_x\";i:1;s:63:\"Shows the last X topics with full post from the selected forums\";}s:32:\"recent_topics_discussions_last_x\";a:2:{i:0;s:32:\"recent_topics_discussions_last_x\";i:1;s:54:\"Shows the last X topic titles from ALL viewable forums\";}}s:6:\"pc_key\";s:13:\"recent_topics\";}}', '', 1);";
|
||||
|
||||
$SQL[] ="INSERT INTO ibf_cal_calendars (cal_id, cal_title, cal_moderate, cal_position, cal_event_limit, cal_bday_limit, cal_rss_export, cal_rss_export_days, cal_rss_export_max, cal_rss_update, cal_rss_update_last, cal_rss_cache, cal_permissions) VALUES (1, 'Îñíîâíîé êàëåíäàðü', 1, 0, 2, 1, 1, 14, 20, 1440, <%time%>, '', 'a:3:{s:9:\"perm_read\";s:1:\"*\";s:9:\"perm_post\";s:3:\"4,3\";s:10:\"perm_nomod\";s:0:\"\";}');";
|
||||
$SQL[] ="INSERT INTO ibf_cal_calendars (cal_id, cal_title, cal_moderate, cal_position, cal_event_limit, cal_bday_limit, cal_rss_export, cal_rss_export_days, cal_rss_export_max, cal_rss_update, cal_rss_update_last, cal_rss_cache, cal_permissions) VALUES (1, 'Community Calendar', 1, 0, 2, 1, 1, 14, 20, 1440, <%time%>, '', 'a:3:{s:9:\"perm_read\";s:1:\"*\";s:9:\"perm_post\";s:3:\"4,3\";s:10:\"perm_nomod\";s:0:\"\";}');";
|
||||
|
||||
$SQL[] ="INSERT INTO ibf_login_methods (login_id, login_title, login_description, login_folder_name, login_maintain_url, login_register_url, login_type, login_alt_login_html, login_date, login_settings, login_enabled, login_safemode, login_installed, login_replace_form, login_allow_create) VALUES (1, 'Âíóòðåííÿÿ àâòîðèçàöèÿ IPB', 'Ñòàíäàðòíûé ìåòîä àâòîðèçàöèè', 'internal', '', '', 'passthrough', '', <%time%>, 0, 1, 1, 1, 0, 1);";
|
||||
$SQL[] ="INSERT INTO ibf_login_methods (login_id, login_title, login_description, login_folder_name, login_maintain_url, login_register_url, login_type, login_alt_login_html, login_date, login_settings, login_enabled, login_safemode, login_installed, login_replace_form, login_allow_create) VALUES (2, 'LDAP Àâòîðèçàöèÿ', 'LDAP / Active Directory Àâòîðèçàöèÿ', 'ldap', '', '', 'passthrough', '', <%time%>, 0, 0, 1, 0, 0, 1);";
|
||||
$SQL[] ="INSERT INTO ibf_login_methods (login_id, login_title, login_description, login_folder_name, login_maintain_url, login_register_url, login_type, login_alt_login_html, login_date, login_settings, login_enabled, login_safemode, login_installed, login_replace_form, login_allow_create) VALUES (3, 'Âíåøíÿÿ àâòîðèçàöèÿ', 'Àâòîðèçàöèÿ ñ èñïîëüçîâàíèåì âíåøíåé áàçû äàííûõ', 'external', '', '', 'passthrough', '', <%time%>, 0, 0, 1, 0, 0, 1);";
|
||||
$SQL[] ="INSERT INTO ibf_login_methods (login_id, login_title, login_description, login_folder_name, login_maintain_url, login_register_url, login_type, login_alt_login_html, login_date, login_settings, login_enabled, login_safemode, login_installed, login_replace_form, login_allow_create) VALUES (1, 'IPB Internal', 'The standard method of authentication', 'internal', '', '', 'passthrough', '', <%time%>, 0, 1, 1, 1, 0, 1);";
|
||||
$SQL[] ="INSERT INTO ibf_login_methods (login_id, login_title, login_description, login_folder_name, login_maintain_url, login_register_url, login_type, login_alt_login_html, login_date, login_settings, login_enabled, login_safemode, login_installed, login_replace_form, login_allow_create) VALUES (2, 'LDAP Authentication', 'LDAP / Active Directory Authentication', 'ldap', '', '', 'passthrough', '', <%time%>, 0, 0, 1, 0, 0, 1);";
|
||||
$SQL[] ="INSERT INTO ibf_login_methods (login_id, login_title, login_description, login_folder_name, login_maintain_url, login_register_url, login_type, login_alt_login_html, login_date, login_settings, login_enabled, login_safemode, login_installed, login_replace_form, login_allow_create) VALUES (3, 'External Database', 'Authentication via an external database', 'external', '', '', 'passthrough', '', <%time%>, 0, 0, 1, 0, 0, 1);";
|
||||
|
||||
$SQL[] ="INSERT INTO ibf_task_manager VALUES ('', 'Îáíîâëåíèå ñ÷åò÷èêà ïðîñìîòðîâ òåì', 'updateviews.php', <%time%>, -1, -1, 3, -1, 'ddce954b5ba1c163bc627ca20725b595', 0, '[Èñïîëüçóåòñÿ, êîãäà ïðîñìîòðû òåì íå îáíîâëÿþòñÿ â ðåàëüíîì âðåìåíè', 1, 'updateviews', 0, 0);";
|
||||
$SQL[] ="INSERT INTO ibf_task_manager VALUES ('', 'Óâåäîìëåíèå îá èñòå÷åíèè ïîäïèñîê', 'expiresubs.php', <%time%>, -1, -1, 1, 0, '21fa5f52cf9122c6fe940e1c6dac0b5a', 1, 'Îòïðàâêà ïèñåì ïîëüçîâàòåëÿì, ó êîòîðûõ çàêîí÷èëàñü ïîäïèñêà', 1, 'expiresubs', 0, 0);";
|
||||
$SQL[] ="INSERT INTO ibf_task_manager VALUES ('', 'Îáíîâëåíèå RSS èìïîðòà', 'rssimport.php', <%time%>, -1, -1, -1, 30, '8f17dc0ba334e5f18e762f154365a578', 0, 'Èìïîðòèðîâàíèå íîâûõ RSS-çàïèñåé â ôîðóìû', 1, 'rssimport', 1, 0);";
|
||||
$SQL[] ="INSERT INTO ibf_task_manager VALUES ('', 'Update Topic Views Counter', 'updateviews.php', <%time%>, -1, -1, 3, -1, 'ddce954b5ba1c163bc627ca20725b595', 0, 'Used when topic views are not incremented immediately', 1, 'updateviews', 0, 0);";
|
||||
$SQL[] ="INSERT INTO ibf_task_manager VALUES ('', 'Subscription Expiration Notification', 'expiresubs.php', <%time%>, -1, -1, 1, 0, '21fa5f52cf9122c6fe940e1c6dac0b5a', 1, 'Sends out an email to all members who have a subscription due to expire', 1, 'expiresubs', 0, 0);";
|
||||
$SQL[] ="INSERT INTO ibf_task_manager VALUES ('', 'RSS Import Update', 'rssimport.php', <%time%>, -1, -1, -1, 30, '8f17dc0ba334e5f18e762f154365a578', 0, 'Imports any new RSS articles', 1, 'rssimport', 1, 0);";
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Çàâåðøåíèå ïëàòíûõ ïîäïèñîê', 'doexpiresubs.php', 1121212800, -1, -1, 0, 0, 'bb57399ea05eb9240b42d5d5f53575fb', 1, 'Îòïèñûâàåò ïîëüçîâàòåëåé îò çàêàçàííûõ ïëàòíûõ ïîäïèñîê ïî èñòå÷åíèþ ñðîêà ïîäïèñêè', 1, 'doexpiresubs', 1)";
|
||||
$SQL[] = "INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Expire Paid Subscriptions', 'doexpiresubs.php', 1121212800, -1, -1, 0, 0, 'bb57399ea05eb9240b42d5d5f53575fb', 1, 'Unsubscribes members from their subscribed packages', 1, 'doexpiresubs', 1)";
|
||||
|
||||
$SQL[] ="INSERT INTO ibf_components (com_id, com_title, com_author, com_url, com_version, com_date_added, com_menu_data, com_enabled, com_safemode, com_section, com_filename, com_description, com_url_title, com_url_uri, com_position) VALUES (1, 'Invision Gallery', 'Invision Power Services', 'http://www.invisiongallery.com', '1.3.0', 1113309894, 'a:1:{i:1;a:5:{s:9:\"menu_text\";s:9:\"Ïîäðîáíåå\";s:8:\"menu_url\";s:9:\"code=show\";s:13:\"menu_redirect\";i:0;s:12:\"menu_permbit\";s:0:\"\";s:13:\"menu_permlang\";s:0:\"\";}}', 0, 1, 'gallery', 'gallery', 'Ãàëåðåÿ äëÿ ôîðóìà', '{ipb.lang[\'gallery\']}', '{ipb.base_url}act=module&module=gallery', 1);";
|
||||
$SQL[] ="INSERT INTO ibf_components (com_id, com_title, com_author, com_url, com_version, com_date_added, com_menu_data, com_enabled, com_safemode, com_section, com_filename, com_description, com_url_title, com_url_uri, com_position) VALUES (2, 'Invision Community Blog', 'Invision Power Services', 'http://www.invisionblog.com', '1.1.2', 1113310263, 'a:1:{i:1;a:5:{s:9:\"menu_text\";s:9:\"Ïîäðîáíåå\";s:8:\"menu_url\";s:9:\"code=show\";s:13:\"menu_redirect\";i:0;s:12:\"menu_permbit\";s:0:\"\";s:13:\"menu_permlang\";s:0:\"\";}}', 0, 1, 'blog', 'blog', 'Ñèñòåìà áëîãîâ äëÿ ôîðóìà', '{ipb.lang[\'blog\']}', '{ipb.base_url}automodule=blog', -1);";
|
||||
$SQL[] ="INSERT INTO ibf_components (com_id, com_title, com_author, com_url, com_version, com_date_added, com_menu_data, com_enabled, com_safemode, com_section, com_filename, com_description, com_url_title, com_url_uri, com_position) VALUES (3, 'Invision Chat (ParaChat)', 'Invision Power Services', 'http://chat.invisionsitetools.com', '2.1', 1113313895, 'a:1:{i:1;a:5:{s:9:\"menu_text\";s:9:\"Ïîäðîáíåå\";s:8:\"menu_url\";s:9:\"code=show\";s:13:\"menu_redirect\";i:0;s:12:\"menu_permbit\";s:0:\"\";s:13:\"menu_permlang\";s:0:\"\";}}', 0, 1, 'chatpara', 'chatpara', 'Ìîäóëü ÷àòà äëÿ ôîðóìà', '{ipb.lang[\'live_chat\']}', '{ipb.base_url}autocom=chatpara', 2);";
|
||||
$SQL[] ="INSERT INTO ibf_components (com_id, com_title, com_author, com_url, com_version, com_date_added, com_menu_data, com_enabled, com_safemode, com_section, com_filename, com_description, com_url_title, com_url_uri, com_position) VALUES (4, 'Invision Copyright Removal', 'Invision Power Services', 'http://www.invisionboard.com', '2.1', 1113314009, 'a:1:{i:1;a:5:{s:9:\"menu_text\";s:9:\"Ïîäðîáíåå\";s:8:\"menu_url\";s:9:\"code=show\";s:13:\"menu_redirect\";i:0;s:12:\"menu_permbit\";s:0:\"\";s:13:\"menu_permlang\";s:0:\"\";}}', 1, 1, 'copyright', 'copyright', 'Ðàçðåøåíèå íà óäàëåíèå êîïèðàéòà', '', '', 3);";
|
||||
|
||||
$SQL[] ="INSERT INTO ibf_components (com_id, com_title, com_author, com_url, com_version, com_date_added, com_menu_data, com_enabled, com_safemode, com_section, com_filename, com_description, com_url_title, com_url_uri, com_position) VALUES (1, 'Invision Gallery', 'Invision Power Services', 'http://www.invisiongallery.com', '1.3.0', 1113309894, 'a:1:{i:1;a:5:{s:9:\"menu_text\";s:24:\"Purchase and Information\";s:8:\"menu_url\";s:9:\"code=show\";s:13:\"menu_redirect\";i:0;s:12:\"menu_permbit\";s:0:\"\";s:13:\"menu_permlang\";s:0:\"\";}}', 0, 1, 'gallery', 'gallery', 'Complete gallery system for your members', '{ipb.lang[\'gallery\']}', '{ipb.base_url}act=module&module=gallery', 1);";
|
||||
$SQL[] ="INSERT INTO ibf_components (com_id, com_title, com_author, com_url, com_version, com_date_added, com_menu_data, com_enabled, com_safemode, com_section, com_filename, com_description, com_url_title, com_url_uri, com_position) VALUES (2, 'Invision Community Blog', 'Invision Power Services', 'http://www.invisionblog.com', '1.1.2', 1113310263, 'a:1:{i:1;a:5:{s:9:\"menu_text\";s:24:\"Purchase and Information\";s:8:\"menu_url\";s:9:\"code=show\";s:13:\"menu_redirect\";i:0;s:12:\"menu_permbit\";s:0:\"\";s:13:\"menu_permlang\";s:0:\"\";}}', 0, 1, 'blog', 'blog', 'Blogging addition for your members', '{ipb.lang[\'blog\']}', '{ipb.base_url}automodule=blog', -1);";
|
||||
$SQL[] ="INSERT INTO ibf_components (com_id, com_title, com_author, com_url, com_version, com_date_added, com_menu_data, com_enabled, com_safemode, com_section, com_filename, com_description, com_url_title, com_url_uri, com_position) VALUES (3, 'Invision Chat (ParaChat)', 'Invision Power Services', 'http://chat.invisionsitetools.com', '2.1', 1113313895, 'a:1:{i:1;a:5:{s:9:\"menu_text\";s:24:\"Purchase and Information\";s:8:\"menu_url\";s:9:\"code=show\";s:13:\"menu_redirect\";i:0;s:12:\"menu_permbit\";s:0:\"\";s:13:\"menu_permlang\";s:0:\"\";}}', 0, 1, 'chatpara', 'chatpara', 'Full real-time chat system for your members', '{ipb.lang[\'live_chat\']}', '{ipb.base_url}autocom=chatpara', 2);";
|
||||
$SQL[] ="INSERT INTO ibf_components (com_id, com_title, com_author, com_url, com_version, com_date_added, com_menu_data, com_enabled, com_safemode, com_section, com_filename, com_description, com_url_title, com_url_uri, com_position) VALUES (4, 'Invision Copyright Removal', 'Invision Power Services', 'http://www.invisionboard.com', '2.1', 1113314009, 'a:1:{i:1;a:5:{s:9:\"menu_text\";s:24:\"Purchase and Information\";s:8:\"menu_url\";s:9:\"code=show\";s:13:\"menu_redirect\";i:0;s:12:\"menu_permbit\";s:0:\"\";s:13:\"menu_permlang\";s:0:\"\";}}', 1, 1, 'copyright', 'copyright', 'Allows the copyright notices to be removed from the board\'s output', '', '', 3);";
|
||||
|
||||
$SQL[] ="DELETE FROM ibf_conf_settings WHERE conf_key IN ( 'csite_article_forum' , 'csite_article_max', 'csite_article_recent_on',
|
||||
'csite_article_recent_max', 'csite_article_len', 'csite_discuss_on',
|
||||
|
||||
@@ -23,23 +23,23 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $install;
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
function version_upgrade( & $install )
|
||||
{
|
||||
$this->install = & $install;
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -75,13 +75,13 @@ class version_upgrade
|
||||
break;
|
||||
case 'skin':
|
||||
$this->add_skin();
|
||||
break;
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->upgrade_sql(1);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
if ( $this->install->saved_data['workact'] )
|
||||
{
|
||||
return false;
|
||||
@@ -91,12 +91,12 @@ class version_upgrade
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL: 0
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
function upgrade_sql( $id=1 )
|
||||
{
|
||||
$man = 0; // Manual upgrade ? intval( $this->install->ipsclass->input['man'] );
|
||||
@@ -104,32 +104,32 @@ class version_upgrade
|
||||
$SQL = array();
|
||||
$file = '_updates_'.$id.'.php';
|
||||
$output = "";
|
||||
|
||||
|
||||
if ( file_exists( ROOT_PATH . 'upgrade/installfiles/upg_21003/' . strtolower($this->install->ipsclass->vars['sql_driver']) . $file ) )
|
||||
{
|
||||
require_once( ROOT_PATH . 'upgrade/installfiles/upg_21003/' . strtolower($this->install->ipsclass->vars['sql_driver']) . $file );
|
||||
|
||||
|
||||
$this->install->error = array();
|
||||
$this->sqlcount = 0;
|
||||
$output = "";
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->return_die = 1;
|
||||
|
||||
|
||||
foreach( $SQL as $query )
|
||||
{
|
||||
$this->install->ipsclass->DB->allow_sub_select = 1;
|
||||
$this->install->ipsclass->DB->error = '';
|
||||
|
||||
|
||||
$query = str_replace( "<%time%>", time(), $query );
|
||||
|
||||
|
||||
if( $this->install->saved_data['man'] AND !in_array( $id, array(3,4) ) )
|
||||
{
|
||||
$output .= preg_replace("/\sibf_(\S+?)([\s\.,]|$)/", " ".$this->install->ipsclass->DB->obj['sql_tbl_prefix']."\\1\\2", preg_replace( "/\s{1,}/", " ", $query ) )."\n\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
$this->install->ipsclass->DB->query( $query );
|
||||
|
||||
|
||||
if ( $this->install->ipsclass->DB->error )
|
||||
{
|
||||
$this->install->error[] = $query."<br /><br />".$this->install->ipsclass->DB->error;
|
||||
@@ -140,38 +140,38 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Âûïîëíåíî $this->sqlcount çàïðîñîâ...";
|
||||
|
||||
$this->install->message = "$this->sqlcount queries run....";
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------
|
||||
// Next page...
|
||||
//--------------------------------
|
||||
|
||||
|
||||
$this->install->saved_data['st'] = 0;
|
||||
|
||||
|
||||
if ( $id != 4 )
|
||||
{
|
||||
$nextid = $id + 1;
|
||||
$this->install->saved_data['workact'] = 'sql'.$nextid;
|
||||
$this->install->saved_data['workact'] = 'sql'.$nextid;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->saved_data['workact'] = 'polls';
|
||||
$this->install->saved_data['workact'] = 'polls';
|
||||
}
|
||||
|
||||
|
||||
if( $this->install->saved_data['man'] AND $output )
|
||||
{
|
||||
$this->install->message .= "<br /><br /><h3><b>Äëÿ ïðîäîëæåíèÿ îáíîâëåíèÿ íåîáõîäèìî âûïîëíèòü ñëåäóþùèå MySQL çàïðîñû:</b></h3><br />".nl2br(htmlspecialchars($output));
|
||||
$this->install->message .= "<br /><br /><h3><b>Please run these queries in your MySQL database before continuing..</b></h3><br />".nl2br(htmlspecialchars($output));
|
||||
$this->install->do_man = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// POLLS
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
function convert_polls()
|
||||
{
|
||||
$start = intval($this->install->saved_data['st']) > 0 ? intval($this->install->saved_data['st']) : 0;
|
||||
@@ -179,55 +179,55 @@ class version_upgrade
|
||||
$end = $start + $lend;
|
||||
$max = intval($this->install->saved_data['max']);
|
||||
$converted = intval($this->install->saved_data['conv']);
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// First off.. grab number of polls to convert
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( ! $max )
|
||||
{
|
||||
$total = $this->install->ipsclass->DB->build_and_exec_query( array( 'select' => 'COUNT(*) as max',
|
||||
'from' => 'topics',
|
||||
'where' => "poll_state IN ('open', 'close', 'closed')" ) );
|
||||
|
||||
|
||||
$max = $total['max'];
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// In steps...
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->simple_construct( array( 'select' => '*',
|
||||
'from' => 'topics',
|
||||
'where' => "poll_state IN ('open', 'close', 'closed' )",
|
||||
'limit' => array( 0, $lend ) ) );
|
||||
$o = $this->install->ipsclass->DB->simple_exec();
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Do it...
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( $this->install->ipsclass->DB->get_num_rows($o) )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Got some to convert!
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
while ( $r = $this->install->ipsclass->DB->fetch_row($o) )
|
||||
{
|
||||
$converted++;
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// All done?
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( $converted >= $max )
|
||||
{
|
||||
$done = 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$new_poll = array( 1 => array() );
|
||||
|
||||
|
||||
$poll_data = $this->install->ipsclass->DB->build_and_exec_query( array( 'select' => '*',
|
||||
'from' => 'polls',
|
||||
'where' => "tid=".$r['tid']
|
||||
@@ -236,47 +236,47 @@ class version_upgrade
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if ( ! $poll_data['poll_question'] )
|
||||
{
|
||||
$poll_data['poll_question'] = $r['title'];
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Kick start new poll
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$new_poll[1]['question'] = $poll_data['poll_question'];
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Get OLD polls
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$poll_answers = unserialize( stripslashes( $poll_data['choices'] ) );
|
||||
|
||||
|
||||
reset($poll_answers);
|
||||
|
||||
|
||||
foreach ( $poll_answers as $entry )
|
||||
{
|
||||
$id = $entry[0];
|
||||
$choice = $entry[1];
|
||||
$votes = $entry[2];
|
||||
|
||||
|
||||
$total_votes += $votes;
|
||||
|
||||
|
||||
if ( strlen($choice) < 1 )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
$new_poll[ 1 ]['choice'][ $id ] = $choice;
|
||||
$new_poll[ 1 ]['votes'][ $id ] = $votes;
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Got something?
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( count( $new_poll[1]['choice'] ) )
|
||||
{
|
||||
$this->install->ipsclass->DB->do_update( 'polls' , array( 'choices' => serialize( $new_poll ) ), 'tid='.$r['tid'] );
|
||||
@@ -288,84 +288,84 @@ class version_upgrade
|
||||
{
|
||||
$done = 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if ( ! $done )
|
||||
{
|
||||
$this->install->message = "Îïðîñû: $start èç $end îáíîâëåíû...";
|
||||
$this->install->saved_data['workact'] = 'polls';
|
||||
$this->install->message = "Polls: $start to $end completed....";
|
||||
$this->install->saved_data['workact'] = 'polls';
|
||||
$this->install->saved_data['st'] = $end;
|
||||
$this->install->saved_data['max'] = $max;
|
||||
$this->install->saved_data['conv'] = $converted;
|
||||
return FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->message = "Îïðîñû îáíîâëåíû, ïåðåõîäèì ê îáíîâëåíèþ êàëåíäàðíûõ ñîáûòèé...";
|
||||
$this->install->saved_data['workact'] = 'calevents';
|
||||
$this->install->saved_data['st'] = '0';
|
||||
return FALSE;
|
||||
$this->install->message = "Polls converted, proceeding to calendar events...";
|
||||
$this->install->saved_data['workact'] = 'calevents';
|
||||
$this->install->saved_data['st'] = '0';
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CALENDAR EVENTS
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
function convert_calevents()
|
||||
{
|
||||
$start = intval($this->install->saved_data['st']) > 0 ? intval($this->install->saved_data['st']) : 0;
|
||||
$lend = 50;
|
||||
$end = $start + $lend;
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// In steps...
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->simple_construct( array( 'select' => '*',
|
||||
'from' => 'calendar_events',
|
||||
'limit' => array( $start, $lend ) ) );
|
||||
$o = $this->install->ipsclass->DB->simple_exec();
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Do it...
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( $this->install->ipsclass->DB->get_num_rows($o) )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Got some to convert!
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
while ( $r = $this->install->ipsclass->DB->fetch_row($o) )
|
||||
{
|
||||
$recur_remap = array( 'w' => 1,
|
||||
'm' => 2,
|
||||
'y' => 3 );
|
||||
|
||||
|
||||
$begin_date = $this->install->ipsclass->date_getgmdate( $r['unix_stamp'] );
|
||||
$end_date = $this->install->ipsclass->date_getgmdate( $r['end_unix_stamp'] );
|
||||
|
||||
|
||||
if ( ! $begin_date OR ! $end_date )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
$day = $begin_date['mday'];
|
||||
$month = $begin_date['mon'];
|
||||
$year = $begin_date['year'];
|
||||
|
||||
|
||||
$end_day = $end_date['mday'];
|
||||
$end_month = $end_date['mon'];
|
||||
$end_year = $end_date['year'];
|
||||
|
||||
|
||||
$_final_unix_from = gmmktime(0, 0, 0, $month, $day, $year );
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Recur or ranged...
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( $r['event_repeat'] OR $r['event_ranged'] )
|
||||
{
|
||||
$_final_unix_to = gmmktime(11, 59, 59, $end_month, $end_day, $end_year);
|
||||
@@ -374,7 +374,7 @@ class version_upgrade
|
||||
{
|
||||
$_final_unix_to = 0;
|
||||
}
|
||||
|
||||
|
||||
$new_event = array( 'event_calendar_id' => 1,
|
||||
'event_member_id' => $r['userid'],
|
||||
'event_content' => $r['event_text'],
|
||||
@@ -388,36 +388,36 @@ class version_upgrade
|
||||
'event_tz' => 0,
|
||||
'event_unix_from' => $_final_unix_from,
|
||||
'event_unix_to' => $_final_unix_to );
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// INSERT
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->do_insert( 'cal_events', $new_event );
|
||||
}
|
||||
|
||||
$this->install->message = "Êàëåíäàðíûå ñîáûòèÿ: $start èç $end îáíîâëåíû...";
|
||||
$this->install->saved_data['workact'] = 'calevents';
|
||||
|
||||
$this->install->message = "Calendar events: $start to $end completed....";
|
||||
$this->install->saved_data['workact'] = 'calevents';
|
||||
$this->install->saved_data['st'] = $end;
|
||||
return FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->message = "Êàëåíäàðíûå ñîáûòèÿ îáíîâëåíÿ, ïåðåõîäèì ê ñîçäàíèþ ãëàâíîåãî ñòèëÿ IPB 2.1 ...";
|
||||
$this->install->saved_data['workact'] = 'skin';
|
||||
return FALSE;
|
||||
$this->install->message = "Calendar events converted, Creating new IPB 2.1 skin...";
|
||||
$this->install->saved_data['workact'] = 'skin';
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CALENDAR EVENTS
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
function add_skin()
|
||||
{
|
||||
$this->install->message = "Ïðîïóñêàåì ñîçäàíèå ñòèëÿ äëÿ âåðñèè 2.1 (îí áóäåò ñîçäàí ïîçæå)...";
|
||||
$this->install->message = "Skipping 2.1 skin creation (latest skin will be inserted later)...";
|
||||
unset($this->install->saved_data['workact']);
|
||||
unset($this->install->saved_data['vid']);
|
||||
return TRUE;
|
||||
@@ -425,27 +425,27 @@ class version_upgrade
|
||||
//-----------------------------------------
|
||||
// Get default wrapper
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( file_exists( ROOT_PATH.'upgrade/installfiles/upg_21003/components.php' ) )
|
||||
{
|
||||
require_once( ROOT_PATH.'upgrade/installfiles/upg_21003/components.php' );
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Turn off all other skins
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->do_update( 'skin_sets', array( 'set_default' => 0 ) );
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Insert new skin...
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->return_die = 1;
|
||||
$this->install->ipsclass->DB->allow_sub_select = 1;
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->do_insert( 'skin_sets', array(
|
||||
'set_name' => 'IPB Ãëàâíûé ñòèëü',
|
||||
'set_name' => 'IPB 2.1 Default',
|
||||
'set_image_dir' => 1,
|
||||
'set_hidden' => 0,
|
||||
'set_default' => 1,
|
||||
@@ -460,31 +460,31 @@ class version_upgrade
|
||||
'set_cache_wrapper' => $WRAPPER,
|
||||
'set_emoticon_folder' => 'default',
|
||||
) );
|
||||
|
||||
|
||||
$new_id = $this->install->ipsclass->DB->get_insert_id();
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Remove member's choice
|
||||
//-----------------------------------------
|
||||
|
||||
$this->install->ipsclass->DB->do_update( 'members', array( 'skin' => '' ) );
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->do_update( 'members', array( 'skin' => '' ) );
|
||||
|
||||
//-----------------------------------------
|
||||
// Done...
|
||||
//-----------------------------------------
|
||||
|
||||
$this->install->message = "Ãëàâíûé ñòèëü IPB 2.1 ñîçäàí...";
|
||||
|
||||
$this->install->message = "2.1 skin created...";
|
||||
unset($this->install->saved_data['workact']);
|
||||
unset($this->install->saved_data['vid']);
|
||||
|
||||
return TRUE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -23,23 +23,23 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $install;
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
function version_upgrade( & $install )
|
||||
{
|
||||
$this->install = & $install;
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -49,15 +49,15 @@ class version_upgrade
|
||||
//-----------------------------------------
|
||||
// Remove dupe categories
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$title_id_to_keep = array();
|
||||
$title_id_to_delete = array();
|
||||
$title_deleted_count = 0;
|
||||
$msg = '';
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'conf_settings_titles', 'order' => 'conf_title_id DESC' ) );
|
||||
$this->install->ipsclass->DB->simple_exec();
|
||||
|
||||
|
||||
while ( $r = $this->install->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
if ( $title_id_to_keep[ $r['conf_title_title'] ] )
|
||||
@@ -69,46 +69,46 @@ class version_upgrade
|
||||
$title_id_to_keep[ $r['conf_title_title'] ] = $r['conf_title_id'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( count( $title_id_to_delete ) )
|
||||
{
|
||||
$this->install->ipsclass->DB->simple_exec_query( array( 'delete' => 'conf_settings_titles', 'where' => 'conf_title_id IN ('.implode( ',', $title_id_to_delete ).')' ) );
|
||||
}
|
||||
|
||||
|
||||
$title_deleted_count = intval( count($title_id_to_delete) );
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Update this parachat component
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( $this->install->ipsclass->vars['chat04_account_no'] )
|
||||
{
|
||||
require_once( ROOT_PATH . 'sources/api/api_core.php' );
|
||||
require_once( ROOT_PATH . 'sources/api/api_components.php' );
|
||||
|
||||
|
||||
$api = new api_components();
|
||||
$api->ipsclass =& $this->install->ipsclass;
|
||||
|
||||
|
||||
$fields = array( 'com_enabled' => 1,
|
||||
'com_menu_data' => array( 0 => array( 'menu_text' => 'Chat Settings',
|
||||
'menu_url' => 'code=chatsettings',
|
||||
'menu_permbit' => 'edit' ) ) );
|
||||
|
||||
|
||||
$api->acp_component_update( 'chatpara', $fields );
|
||||
}
|
||||
|
||||
$this->install->message = "Óäàëåíî $title_deleted_count îäèíàêîâûõ íàñòðîåê";
|
||||
|
||||
|
||||
$this->install->message = "$title_deleted_count duplicate settings deleted";
|
||||
|
||||
if( $this->install->ipsclass->vars['chat04_account_no'] )
|
||||
{
|
||||
$this->install->message .= "<br /><br />Êîìïîíåíò «Parachat» îáíîâëåí";
|
||||
$this->install->message .= "<br /><br />Parachat component updated";
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -7,6 +7,6 @@ $SQL[] = "UPDATE ibf_conf_settings SET conf_value='self' WHERE conf_key='chat04_
|
||||
$SQL[] = "UPDATE ibf_conf_settings SET conf_title='Number of times per day moderators can warn a single member' WHERE conf_key='warn_mod_day'";
|
||||
|
||||
$SQL[] = "DELETE FROM ibf_components WHERE com_filename='chatsigma'";
|
||||
$SQL[] = "INSERT INTO ibf_components (com_title, com_author, com_url, com_version, com_date_added, com_menu_data, com_enabled, com_safemode, com_section, com_filename, com_description, com_url_title, com_url_uri, com_position) VALUES ('SigmaChat', 'Invision Power Services', 'http://www.invisionpower.com', '2.1', 1113313895, 'a:1:{i:1;a:5:{s:9:\"menu_text\";s:9:\"Ïîäðîáíåå\";s:8:\"menu_url\";s:9:\"code=show\";s:13:\"menu_redirect\";i:0;s:12:\"menu_permbit\";s:0:\"\";s:13:\"menu_permlang\";s:0:\"\";}}', 0, 1, 'chatsigma', 'chatsigma', 'Ìîäóëü ÷àòà äëÿ ôîðóìà', '{ipb.lang[\'live_chat\']}', '{ipb.base_url}autocom=chatsigma', 5);";
|
||||
$SQL[] = "INSERT INTO ibf_components (com_title, com_author, com_url, com_version, com_date_added, com_menu_data, com_enabled, com_safemode, com_section, com_filename, com_description, com_url_title, com_url_uri, com_position) VALUES ('SigmaChat', 'Invision Power Services', 'http://www.invisionpower.com', '2.1', 1113313895, 'a:1:{i:1;a:5:{s:9:\"menu_text\";s:24:\"Purchase and Information\";s:8:\"menu_url\";s:9:\"code=show\";s:13:\"menu_redirect\";i:0;s:12:\"menu_permbit\";s:0:\"\";s:13:\"menu_permlang\";s:0:\"\";}}', 0, 1, 'chatsigma', 'chatsigma', 'Full real-time chat system for your members', '{ipb.lang[\'live_chat\']}', '{ipb.base_url}autocom=chatsigma', 5);";
|
||||
|
||||
?>
|
||||
@@ -23,23 +23,23 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $install;
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
function version_upgrade( & $install )
|
||||
{
|
||||
$this->install = & $install;
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -49,33 +49,33 @@ class version_upgrade
|
||||
//-----------------------------------------
|
||||
// Update this parachat component
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( $this->install->ipsclass->vars['chat04_account_no'] )
|
||||
{
|
||||
require_once( ROOT_PATH . 'sources/api/api_core.php' );
|
||||
require_once( ROOT_PATH . 'sources/api/api_components.php' );
|
||||
|
||||
|
||||
$api = new api_components();
|
||||
$api->ipsclass =& $this->install->ipsclass;
|
||||
|
||||
|
||||
$fields = array( 'com_enabled' => 1,
|
||||
'com_menu_data' => array( 0 => array( 'menu_text' => 'Chat Settings',
|
||||
'menu_url' => 'code=chatsettings',
|
||||
'menu_permbit' => 'edit' ) ) );
|
||||
|
||||
|
||||
$api->acp_component_update( 'chatpara', $fields );
|
||||
}
|
||||
|
||||
|
||||
if( $this->install->ipsclass->vars['chat04_account_no'] )
|
||||
{
|
||||
$this->install->message = "Êîìïîíåíò «Parachat» îáíîâëåí";
|
||||
$this->install->message = "Parachat component updated";
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -5,31 +5,31 @@ $SQL[] = "ALTER TABLE ibf_forums ADD topicfilter VARCHAR( 32 ) DEFAULT 'all' NOT
|
||||
$SQL[] = "UPDATE ibf_forums SET topicfilter='all' WHERE topicfilter != 'all'";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_message_topics ADD mt_addtosent TINYINT( 1 ) DEFAULT '0' NOT NULL AFTER mt_tracking";
|
||||
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_title='IPB Лицензия', conf_title_desc='Позволяет редактировать настройки лицензии.' WHERE conf_title_keyword='ipbreg'";
|
||||
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_title='IPB License Settings', conf_title_desc='This section will allow you to edit your IPB registered license settings.' WHERE conf_title_keyword='ipbreg'";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_cal_events ADD event_timeset VARCHAR( 6 ) DEFAULT '0' NOT NULL AFTER event_tz";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_rss_import ADD rss_import_auth TINYINT( 1 ) DEFAULT '0' NOT NULL ,
|
||||
ADD rss_import_auth_user VARCHAR( 255 ) DEFAULT 'Not Needed' NOT NULL,
|
||||
ADD rss_import_auth_pass VARCHAR( 255 ) DEFAULT 'Not Needed' NOT NULL";
|
||||
|
||||
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Преимущества регистрации', text='Для полноценного использования всех функций форума, администратор требует зарегистрироваться на форуме. Регистрация на форуме абсолютно бесплатна и отнимет у вас всего лишь пару минут. <br /> <br />При регистрации необходимо обязательно указать ваш реальный e-mail адрес. Администратор может потребовать от вас подтверждения Вашей регистрации по указанному вами e-mail адресу. Если данное требование администратора включено, вы будете извещены об этом во время регистрации. Если вы по какой-то причине не получили письма для активации, зайдите на форум и в правой верхней части форума, воспользуйтесь ссылкой «Выслать повторно письмо для активации». <br /><br />Также возможно, что администратор сам должен будет одобрить вашу регистрацию. Об этом вы также будете извещены во время регистрации. <br /> <br />После завершения регистрации и успешной авторизации на форуме, вы получите доступ к вашей панели управления и ящику личных сообщений форума.<br /><br />Для получения дополнительной информации по этим функциям и характеристикам форума, пожалуйста, смотрите соответствующие разделы помощи по форуму.', description='Как зарегистрироваться и получить дополнительные преимущества зарегистрированных пользователей.' WHERE id=1";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Cookies и их использование', text='Использование cookies не обязательно, но настоятельно рекомендуется. Cookies используются для осуществления отслеживания различной информации на форуме при каждом посещении форума, а так же возможность автоматического входа на форум при вашем возвращении.<br /><br />Если ваш компьютер не может использовать cookie при просмотре форума, то система автоматически будет добавлять ко всем ссылкам на форуме идентификатор сессии, что позволит форуму правильно отслеживать ваши действия.<br /><br /><br /><b>Очистка Cookies</b><br /><br />В любой момент вы можете очистить cookies, нажав на ссылку, находящуюся в нижней части главной страницы форума (это самая первая страница форума). Если это не сработало, то вам необходимо удалить cookies вручную.<br /><br /><i>Internet Explorer 7:</i><ul><li>Нажмите меню «Сервис» в вашем браузере.</li><li>Выберете пункт «Свойства обозревателя».</li><li>Под секцией «Журнал» нажмите кнопку «Удалить».</li><li>Выберете опцию удаления cookies.</li></ul><i>Internet Explorer 6:</i><ul><li>Нажмите меню «Сервис» в вашем браузере.</li><li>Выберете пункт «Свойства обозревателя».</li><li>Под секцией «Временные файлы Интернета» нажмите кнопку «Удалить Cookie».</li></ul><i>Firefox:</i><ul><li>Нажмите меню «Сервис» в вашем браузере.</li><li>Выберете пункт «Очистить личные данные».</li><li>Пункт «Cookies» должен быть выбран.</li><li>Нажмите «Очистить личные данные сейчас».</li></ul><i>Opera:</i><ul><li>Нажмите меню «Сервис» в вашем браузере.</li><li>Выберете пункт «Настройки».</li><li>Выберете опцию «Расширенные».</li><li>Выберете опцию «Cookies».</li><li>Выберете «Управление Cookies».</li><li>Выберете сайт, cookies которого вы хотите удалить.</li><li>Выберете опцию «Удалить».</li></ul><i>Safari:</i><ul><li>Из меню «Safari» выберете пункт «Настройки».</li><li>Из диалогового окна безопасности выберете «Закладки».</li><li>Нажмите «Показать Cookies».</li><li>Выберете cookie (или несколько) для удаления или нажмите кнопку «Удалить все».</li></ul>', description='Преимущества использования cookies и удаление cookies, установленных форумом.' WHERE id=2";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Восстановление утерянного или забытого пароля', text='Главной характеристикой форума является безопасность, и поэтому все пароли пользователей кодируются при регистрации.<br />Это означает, что мы не в состоянии выслать вам, ваш забытый пароль, <nobr>т.к.</nobr> «раскодировка» пароля невозможна. Но, тем не менее, вы можете восстановить свой пароль.<br /><br />Для восстановления пароля, зайдите по ссылке <a href='index.php?act=Reg&CODE=10'>Восстановление забытого пароля</a>, которая находится на странице авторизации.<br /><br />С дальнейшей инструкцией по восстановлению, вы можете ознакомиться уже там.', description='Как восстановить забытый пароль.' WHERE id=3";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Ваша панель управления (Личные данные)', text='В панели управления вы можете задать свои настройки для форума. Вы можете выбрать, как будет выглядеть, и работать форум для вас.<br /><br /><b>Личный ящик</b><br />Раздел помощи по использованию Личного ящика вы можете найти в соответствующем разделе помощи на форуме.<br /><br /><b>Подписки</b><br /><br /><i>Темы:</i><br />Здесь представлен список тем, на которые вы подписаны. Вы можете изменить тип уведомлений для каждой темы. Здесь же вы можете удалить подписки на выбранные темы.<br /><br /><i>Форумы:</i><br />Здесь представлен список форумов, на которые вы подписаны. Вы можете изменить тип уведомлений для каждого форума. Здесь же вы можете удалить подписки на выбранные форумы.<br /><br /><b>Ваш профиль</b><br /><br /><i>Изменить личные данные:</i><br />Здесь вы можете указать личную информацию, например дату вашего рождения и контактную информацию.<br /><br /><i>Изменить настройки анкеты:</i><br />Здесь вы можете изменить информацию о себе, установить опции уведомления и модерации комментариев и друзей.<br /><br /><i>Изменить подпись:</i><br />Здесь вы можете увидеть и изменить вашу подпись. У вас есть возможность использовать в подписи коды форума и зачастую <acronym title="HyperText Markup Language" lang="en">HTML</acronym> коды, если администратор форума поддерживает это.<br /><br /><i>Установка аватара:</i><br />Здесь вы можете увидеть и изменить свой аватар. В зависимости от установок форума, настроенных администратором, можно выбрать аватар в галерее аватаров форума, либо ввести ссылку на аватар, находящийся на другом сайте, либо загрузить личный аватар с вашего компьютера. Изображение, загружаемое с вашего компьютера, будет отмасштабировано до установленных администратором размеров.<br /><br /><i>Установка фотографии:</i><br />Если администратор форума разрешает вашей группе пользователей размещать персональную фотографию, то вы можете загрузить изображение, которые будет отображено в вашем профиле.<br /><br /><i>Изменить отображаемое имя:</i><br />Если поддерживается система отображаемых имен, то в этой секции вы можете задать имя для вашего отображения на форуме.<br /><br /><b>Настройки:</b><br /><br /><i>Покупка оплачиваемых рассылок:</i><br />В этой секции располагается система оплачиваемых подписок, если она поддерживается на форуме. Вы можете выбрать пакеты подписки и оплатить их или обновить существующие подписки.<br /><br /><i>Прикрепленные файлы (attach’и):</i><br />Здесь вы можете смотреть и удалять свои прикрепленные файлы.<br /><br /><i>Список друзей:</i><br />Здесь вы можете подтвердить запросы пользователей ожидающих добавления в ваш список друзей (при условии, что вы включили опцию модерации друзей в настройках вашей анкеты).<br /><br /><i>Игнорирование пользователей:</i><br />Здесь вы можете управлять списком игнорированных пользователей.<br /><br /><i>Настройки <nobr>e-mail</nobr>:</i><br />На этой странице доступно несколько параметров настроек.<ul><li><u>Скрытые настройки</u><ul><li><i>Скрыть мой адрес <nobr>e-mail</nobr> от других пользователей</i> — Вы можете запретить показывать ваш <nobr>e-mail</nobr> адрес пользователям форума.</li><li><i>Сообщать мне обо всех изменениях, проводимых администратором форума</i> — Администратор может периодически делать рассылки пользователям, чтобы сообщить об изменениях на форуме.</li></ul></li><li><u>Настройки Форума</u><ul><li><i>Добавлять копию сообщения из подписанных тем в отправляемое <nobr>письмо-уведомление</nobr></i> — Включив эту функцию, копия новой темы или сообщения будет выслана вам на <nobr>e-mail</nobr>.</li><li><i>Уведомлять меня по <nobr>e-mail</nobr> при получении новых личных сообщений</i> — Включив эту функцию, вы будете уведомлены на <nobr>e-mail</nobr> о получении личного сообщения.</li><li><i>Включить уведомления на <nobr>e-mail</nobr> по умолчанию?</i> — При включении этой опции вы будете автоматически подписаны на все новые и обновленные темы. Используйте выпадающее меню для выбора способа уведомления.</li></ul></li></ul><i>Настройки форума:</i><br />В этой секции вы можете управлять настройками по внешнему виду форума. Вы можете выбрать часовой пояс и различные опции отображения форума. Там же доступен выбор типа текстового редактора для публикации
Line truncated
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='E-mail уведомление о новых сообщениях', text='На форуме существует возможность уведомлять вас о новых сообщениях в темах. Многие пользователи с успехом используют эту функцию для своевременного извещения о том, что в теме имеются новые сообщения.<br /> <br />Существует три способа подписки на тему: <ul><li>Нажав на кнопку «Опции», которая находится в верхней части каждой темы, и выбрав пункт «Подписка на тему».</li><li>С помощью установки галочки в окошко «Включить уведомление на <nobr>e-mail</nobr> при ответах?», находящееся под формой ответа.</li><li>Через пункт «Настройки <nobr>e-mail</nobr>» в вашей панели управления (Личные данные), установив галочку на опции «Включить <nobr>E-mail</nobr> Уведомление по умолчанию?», после чего вы будете автоматически подписываться на все темы, в которые вы ответите.</li></ul>Так же существует четыре разных типов подписки:<br /><br /><b>Немедленное уведомление</b><br />Эта опция позволяет отправлять уведомление сразу же после того, как новая тема или ответ был создан, независимо от вашей активности.<br /><br /><b>Уведомление с задержкой</b><br />Эта опция позволяет отправлять уведомление о новой теме или сообщении, если вас не было на форуме.<br /><br /><b>Ежедневное уведомление</b><br />Эта опция включает ежедневную рассылку обзора новых тем и сообщений за день.<br /><br /><b>Еженедельное уведомление</b><br />Эта опция позволяет отправлять еженедельный обзор новых тем и сообщений за неделю.<br /><br /> <br />Вы также можете подписаться на любой из разделов форума и при появлении новой темы в этом разделе, вы будете уведомлены об этом. Для подписки на раздел, нажмите кнопку «Опции форума», находящуюся в верхней части каждого форума, и выбрав пункт «Подписаться на форум».<br /> <br />Чтобы удалить подписки на любые разделы или темы, вам нужно зайти в «Личные данные», затем в разделе «Подписки» отменить их.', description='Как подписаться на тему для получения уведомлений по e-mail о новых ответах.' WHERE id=5";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Личный ящик (PM)', text='Ваш личный ящик на форуме, действует аналогично <nobr>e-mail</nobr> ящику. Здесь вы можете получать и отправлять письма пользователям форума, хранить ваши письма в директориях, создавать, редактировать и удалять директории.<br /><br /><b>Новое личное сообщение</b><br />Отсюда вы можете отправить приватное сообщение пользователю форума. Если у вас есть пользователи в списке друзей, то вы можете выбрать имя получателя оттуда или ввести имя пользователя в соответствующем поле формы отправки сообщения. Это поле автоматически заполнится, если вы нажмете в <nobr>каком-либо</nobr> сообщении в темах или в списке пользователей на кнопку «Приват» рядом с пользователем.<br />Так же существует опция поиска имен пользователей, которая автоматически предлагает имена пользователей из базы данных для вставки в поле получателя сообщения.<br /><br />Если администратор форума разрешил отправлять письма нескольким пользователям одновременно, вы можете ввести имена сразу нескольких пользователей, — по одному имени на строку, в окне «Копия пользователям». Вы так же можете воспользоваться опцией скрытия получателей копии сообщения от других пользователей.<br /><br />В некоторых случаях, если это разрешено администратором, вы даже можете использовать коды форума и <acronym title="HyperText Markup Language" lang="en">HTML</acronym> в. тексте ваших писем. Вы также можете выбрать пункт «Добавить копию этого сообщения в директорию „Отправленные“» для сохранения копии письма в директории отправленных писем. При установке галочки в окошке «Проследить за этим сообщением?», вы сможете прослеживать через пункт меню «Слежение за сообщениями» состояние того, что прочитано ли ваше письмо адресатом.<br /><br />Наконец, если доступно, то вы можете добавить приложение к личному сообщению, например изображение или файл.<br /><br /><b>Входящие</b><br />Это директория для входящих личных сообщений, адресованных к вам. Нажав на заголовок сообщения, вы увидите содержание личного сообщения в привычном виде просмотра тем на форуме. Вы так же можете удалить или переместить сообщение из директории.<br /><br /><b>Отправленные</b><br />В этой директории хранятся копии отправленных сообщений, которые попадают сюда при выборе опции копирования сообщения при отправлении.<br /><br /><b>Неотправленные</b><br />Здесь вы можете вернуться к любому письму, которое вы решили сохранить, для отправки его позже.<br /><br /><b>Очистка папок</b><br />Через эту опцию, вы можете быстро удалить все письма из любых ваших папок.<br /><br /><b>Редактировать директории</b><br />Здесь вы можете переименовывать, удалять или создавать новые директории для сортировки ваших писем так, как вам будет более удобно. Вы не можете удалять только две директории, созданные самим форумом — это директория «Отправленные» и «Входящие».<br /><br /><b>Черный список</b><br />Сюда вы можете добавлять имена пользователей или редактировать уже введенные. Эта секция используется как черный список пользователей, от которых вы не хотите получать личные сообщения.<br /><br /><b>Архивирование сообщений</b><br />Если ваш Личный Ящик переполнен, и в связи с этим вы не в состоянии получать новые письма, то можно произвести архивацию писем. Все ваши письма будут скомпилированы на одной странице в формате <acronym title="HyperText Markup Language" lang="en">HTML</acronym> или Microsoft Excel, а затем высланы на ваш <nobr>e-mail</nobr> адрес, указанный вами при регистрации на форуме.<br /><br /><b>Слежение за сообщениями</b><br />На этой странице появляются все письма, за которыми вы решили проследить. Все данные о том, прочитаны ли ваши письма получателями и когда они прочитаны, — появляются здесь. Также, если вы передумали, и если письмо пока не прочитано получателем, вы можете удалить это письмо.', description='Отправка личных сообщений, редактирование папок Личного Ящика, слежение за письмами, архивация сохраненных сообщений.' WHERE id=6";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Связь с администрацией и доклад модератору о сообщениях', text='<b>Связь с администрацией форума</b><br /><br />Для связи с модератором или просто для просмотра списка администрации форума, нажмите на ссылку «Администрация», находящуюся в нижней части главной страницы форума или на странице «Помощник».<br /><br />В этом списке вы увидите имена всех администраторов (это главные администраторы форума, имеющие доступ ко всем функциям), супермодераторов (это команда модераторов, имеющих возможность модерирования всех разделов форума) и модераторов (это модераторы, модерирующие индивидуальные разделы форума, в которые они назначены).<br /><br />Для связи по поводу изменения пользовательских данных, работы форума, необходимо связаться непосредственно с администратором форума, а для связи по поводу тем или сообщений, обращайтесь к супермодератором или модераторам.<br /><br /><b>Жалоба модератору о сообщении</b><br /><br />Если администратор форума включил эту функцию, вы увидите кнопку «Жалоба», внизу каждого сообщения темы. При помощи этой функции, вы сможете быстро сообщить о сообщении модератору данного раздела форума (или администратору, — если в данном форуме нет назначенных модераторов). Используйте эту функцию только в том случае, если вы видите <nobr>какие-либо</nobr> нарушения правил форума в данном сообщении. Запрещено использовать эту функцию <b>для простых переговоров с модератором</b>. Для переговоров, вы можете использовать PM (Личный ящик форума).', description='Где найти список администраторов и модераторов форума.' WHERE id=7";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Просмотр информации профиля пользователей', text='Чтобы посмотреть профиль пользователя, вам нужно нажать на его имя в любом месте на форуме. Если вы хотите посмотреть собственный профиль, то кликните на свое имя в верхней части форума.<br /><br />На главной странице профиля находится две неподвижные области, а по середине — секция, снабженная закладками.<br /><br /><b>Персональная информация</b><br />Эта секция, расположенная слева, отображает различную информацию пользователя. В нее входит: персональная фотография (если она загружена), рейтинг пользователя, набор различных опций (например, поиск сообщений пользователя), персональная информация с уточнением возраста, пола и местоположения. Ниже вы можете увидеть статистику пользователя (число сообщений, дата регистрации и другие) и информацию для связи с ним.<br /><br />В центре находится секция с разными закладками. Здесь вы можете найти последние сообщения пользователя, комментарии и список его друзей (вы можете увидеть профиль друзей, нажав на их имена). Так же, если на форуме установлена система Invision Power Gallery и Blog, то вы увидите дополнительные закладки. Секция галереи покажет последние шесть загруженных изображений, в то время как секция блога покажет последние пять записей в блоге.<br /><br />С правой стороны вы можете увидеть, кто посещал этот профиль, оставленные комментарии и список друзей пользователя.<br /><br /><b>Добавление комментария</b><br />У вас есть возможность оставлять комментарии о других пользователях. Когда вы просматриваете профиль, справа вы можете увидеть секцию с последними комментариями. Если вы нажмете на кнопку «Добавить комментарий», то в появившемся окне вы можете написать комментарий.<br /><br /><b>Модерация комментариев</b><br />Если грубый или же оскорбительный комментарий оставлен другим пользователем, то вы можете удалить комментарий двумя способами.<br /><br />Первое, вы можете нажать на закладку «Комментарии», найти комментарий, поставить галочку напротив, затем выбрать из выпадающего меню «Удалить выбранные комментарии». Второе, вы можете нажать на маленькую кнопку «Х» в секции последних добавленных комментариев.<br /><br />Вы можете модерировать комментарии похожим методом. Неподтвержденные комментарии не будут отображены, в то время как подтвержденные комментарии будут доступны для всех. Вместо функции «Удалить выбранные комментарии» выберете опцию подтвердить или не подтвердить выбранные комментарии.<br /><br /><b>Рейтинг пользователя</b><br />Профиль поддерживает систему рейтинга пользователей. Это дает возможность понижать рейтинг проблемных пользователей или повышать оценку хорошим пользователям. Для изменения рейтинга откройте профиль пользователя, затем кликните на звездочки, выбирая рейтинг.<br /><br /><b>Изменение ваших персональных настроек</b><br />Будучи авторизованным на форуме во время просмотра своего профиля, вы можете увидеть дополнительную закладку в середине, которая называется «Настройки». Выбрав эту закладку, вы увидите некоторую информацию по изменению настроек вашего профиля. Здесь вы можете загрузить персональную фотографию или удалить её. Если выбрана опция удаления, то фотография будет удалена, когда вы нажмете кнопку «Сохранить настройки» Так же вы можете изменить информацию о себе. Это поле очень похоже на вашу подпись, но оно привязано непосредственно в ваш профиль, а не к вашим сообщениям как подпись. Немного ниже вы можете выбрать способы уведомления о новых пользователях, добавивших вас в друзья и об оставленных комментариях. Вы можете отключить уведомление или включить уведомление по <nobr>e-mail</nobr> или личным сообщением. Внизу вы можете выбрать опции модерации комментариев, до того как они были опубликованы в профили, и так же выбрать тип модерации для добавления в список друзей.<br /><br />С левой стороны страницы профиля вы можете изменять вашу персональную информацию. Вы можете задать ваш пол, дату рождения, местоположение, а так же изменить данные для связи.', description='Как посмотреть контактную информацию пользователя.' WHERE id=8";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Просмотр активных тем и новых сообщений', text='Вы можете быстро просмотреть список сегодняшних активных тем (это темы, имеющие новые ответы), нажав на ссылку «Активные темы», находящуюся в нижней части главной страницы форума. Там же, вы можете установить свои критерии поиска по дате, для поиска активных тем, обновленных в течение нескольких дней.<br /><br />В верхней части форума вы можете найти ссылку «Новые сообщения», перейдя по которой мы можете увидеть список тем с новыми ответами с момента вашего последнего посещения форума.', description='Как просмотреть список сегодняшних активных тем и новые сообщения, появившиеся с момента вашего последнего посещения форума.' WHERE id=9";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Поиск тем и сообщений', text='Функция поиска, предназначена для быстрого поиска тем и сообщений, по введенным вами ключевым словам.<br /><br />Имеются два доступных типа поиска, простой поиск и расширенный поиск. Вы можете переключаться между ними, при помощи кнопок «Расширенный поиск» и «Простой поиск».<br /><br /><b>Простой поиск</b><br /><br />Здесь Вы должны ввести ключевое слово для поиска и выбрать форум (ы), в которых хотите найти <nobr>что-то</nobr> по этому слову, (для выбора нескольких форумов одновременно, необходимо кликать по их названиям, удерживая кнопку «Ctrl», а пользователи Mac, должны удерживать кнопки «Shift»/«Apple»), затем выбрать порядок сортировки найденного и искать.<br /><br /><b>Расширенный поиск</b><br /><br />На странице расширенного поиска, у вас появится возможность использования дополнительных критериев поиска, значительно улучшающих функцию поиска. Дополнительно к поиску по ключевому слову, вы сможете произвести поиск по имени пользователя, а также возможно использование сразу обеих комбинаций. Можно увеличить критерии поиска, посредством выбора диапазона дат, а также выбрать порядок сортировки найденного. Также имеется два вида отображения результатов поиска — в виде отображения полного текста сообщения и в виде ссылки на тему. Вид отображения, вы можете заранее указать, на странице поиска.<br /><br />Администратор может включить минимальное время, известное под названием <nobr>«Флуд-контроль»</nobr>, которое вы должны будете прождать для повторного поиска.<br /><br />На форуме имеется также поисковая форма, известная под названием «Фильтр поиска», находящаяся в нижней части каждого раздела, через которую вы сможете произвести быстрый поиск в конкретном разделе форума.', description='Как пользоваться функцией поиска.' WHERE id=10";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Авторизация и Выход из форума', text='Если вы выбрали не запоминать ваши данные во время авторизации в cookies или вы зашли на форум с другого компьютера, то вы должны авторизироваться на форуме для доступа к вашему профилю и отправке сообщений под вашим именем.<br /><br />При входе на форум вы можете сохранить cookies, которые авторизируют вас автоматически при повторном посещении. Не используйте эту опцию при посещении с чужого компьютера в целях безопасности.<br /><br />Вы можете также выбрать функцию скрытия, поставив галочку в окне «Скрытность». Тогда ваше имя не будет отображаться в списке «Кто в онлайне», если администратор форума включил эту возможность.<br /><br />Выход из форума производится простым нажатием на ссылку «Выход». Если вдруг вы обнаружите, что выход не сработал, возможно, вы должны будете удалить ваши cookies. Читайте раздел помощи про «Cookies» для дополнительной информации.', description='Как авторизоваться, выйти из форума, а также как скрыть свое имя из списка пользователей, находящихся на форуме.' WHERE id=11";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Помощник', text='В верхней части форума находится ссылка «Помощник». Этот инструмент позволяет быстро попасть во многие важные секции форума.<br /><br />Помощник разделен на четыре секции:<ul><li>Информация — эта секция показывает ежедневную и общую информацию о лучших пользователях по количеству сообщений, отображает ссылку на ваши последние сообщения. Так же вы можете увидеть список администрации форума.</li></ul><ul><li>Новые сообщения — отображает ссылки на новые сообщения, появившиеся на форуме после вашего последнего посещения и как давно они были написаны.</li></ul><ul><li>Поиск — используя эту секцию, вы можете задать простой поиск по форуму. В этом блоке покажется результат поиска, нажав на который вы можете посмотреть подробный список найденного.</li></ul><ul><li>Личные сообщения — здесь вы можете увидеть последние 5 личных сообщений, и когда они были получены.</li></ul>Помощник так же используется когда приходят личные сообщения. Если вы выбрали опцию оповещения о новых личных сообщениях, то окно помощника появится на вашем экране.', description='Полный справочник по использованию этой маленькой, но удобной функции.' WHERE id=12";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Сообщения', text='На форуме доступны три разные формы создания сообщений. Кнопка «Открыть тему», находящаяся в каждом разделе форума и на странице тем, предназначена для создания новой темы. Кнопка «Добавить опрос» (если администратор разрешил это) позволяющая создать новый опрос на форум, так же появится при просмотре тем и форумов. При просмотре темы, вы увидите кнопку «Ответить», которая предназначена для добавления вашего сообщения в данную тему.<br /><br /><b>Создание новой темы и ответ в тему</b><br /><br />При написании сообщений, вас, вероятно, заинтересуют коды форума. Данные коды, предназначены для различного форматирования текстов ваших сообщений. Для получения более подробной информации об этом нажмите ссылку «<nobr>BB-коды</nobr> форума» под блоком смайликов, чтобы открыть окно с помощью.<br /><br />«Rich Text» редактор (RTE) — это WYSIWYG (What You See Is What You Get) редактор, похожий на WordPad. Вместо фрагментов <nobr>BB-кодов</nobr> вы увидите, как сообщение будет выглядеть в итоге, как в живом просмотре. Вы можете использовать преимущества этого редактора, если у вас есть браузер Internet Explorer 6 и выше или Firefox 1.5 и выше.<br /><br /><b>Панель инструментов<br /><br /></b>Слева на право, сверху вниз:<ul><li>Удалить форматирование: это удалит все форматирование из сообщения.</li><li>Специальные элементы: этот блок позволяет вам вставить специальный тег, например ссылка на тему или сообщение, и другие дополнительные BB-коды, которые разрешил администратор.</li><li>Шрифт: здесь вы можете выбрать шрифт вашего текста. Если вы используете «Rich Text» редактор, то выбранные шрифты будут отображены в вашем сообщении.</li><li>Размер: здесь вы можете выбрать один из семи разных размеров вашего текста.</li><li>Отмена и повтор: эти две стрелочки отменят или повторят ваше последнее действие.</li><li>Размер окна ввода: здесь вы можете увеличить или уменьшить размер окна для ввода сообщения.</li><li>Переключатель между Стандартным и «Rich Text» редактором: эта кнопка позволяет быстро переключиться между Стандартным и «Rich Text» редактором. Вы так же можете изменить это в настройках форума, в личном профиле.</li><li>Кнопки стиля: возможность преобразовать вызелененный текст в жирный, курсив и подчеркнутый.</li><li>Формат текста: эта кнопка позволяет выбрать надстрочный, подстрочный и зачеркнутый формат текста.</li><li>Цвет текста: этот блок отображает палитру цветов для текста.</li><li>Смайлики: кнопка меню с иконкой смайлика покажет список всех смайликов форума и позволит вам вставить нужный в сообщение.</li><li>Отступ: две кнопки позволят вам увеличить или уменьшить отступ.</li><li>Выравнивание текста: эти кнопки позволят вам выровнять выбранный текст по левому краю, по правому краю, по центру или по ширине.</li><li>Списки: две эти кнопки позволяют создать нумерованный или маркированный список.</li></ul><b>Боковая панель<br /><br /></b>Нажав на кнопку «Боковая панель», вы можете показать или скрыть секции со смайликами и дополнительными <nobr>BB-кодами</nobr>. Скрывая секции слева, вы увеличиваете поле для ввода сообщения.<br /><br /><b>Опции сообщения<br /><br /></b>На форуме доступны три опции при создании темы или ответе в тему. Если функция «Включить смайлы?» не выбрана, то картинки смайликов в сообщение вставлено не будет. Если же функция «Включить подпись?» не выбрана, то ваша подпись не будет добавлена к этому сообщению. Функция «Включить уведомление на <nobr>e-mail</nobr> при ответах?» позволяет вам получать уведомления на <nobr>e-mail</nobr> при ответах в эту тему. Так же есть опция использования <acronym title="HyperText Markup Language" lang="en">HTML</acronym> в. сообщении, если администратор форума позволяет это.<br /><br />Вы так же можете выбрать иконку к вашей теме или сообщению. Если вы создаете тему, то эта иконка появится рядом с заголовком темы. Если вы отвечаете в тему, то эта иконка появится рядом с датой написания сообщения.<br /><br /><b>Опции опроса</b><br /><br />При создании новой темы, под полями для ввода названия и описания темы, вы увидите ссылку «Нажмите сюда для управления опросом в этой теме». Нажав на это ссылку, вам откроются опции опроса. Первое поле служит для ввода в нем вопроса вашего голосования. Чтобы добавить вопрос к вашему опросу, нужно кликнуть на «Добавить ещё вопрос в опрос». Количество возможных опросов в одной теме и соответственно вариантов ответов устанавливается администратором
Line truncated
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Список пользователей', text='Список пользователей, доступный через ссылку «Пользователи», находящуюся в верхней части каждой страницы форума, — это полный список всех пользователей, зарегистрированных на форуме. <br /><br /><b>Основной поиск</b><br />Если вы хотите найти пользователя по имени, вы можете задать его имя в поле поиска. Опция «Начинается с» позволяет искать пользователей, чье имя начинается с введенных символов. Опция «Содержит» будет искать имена содержащих введенные символы.<br /><br />Если вы хотите найти пользователей только с фотографией в профиле, то поставьте галочку рядом с «Выводить пользователей с фотографией». Вы можете так же указать поиск по половой принадлежности пользователей и их рейтингу.<br /><br /><b>Расширенный поиск</b><br />Нажав на кнопку «Дополнительные параметры…» вы можете задать больше опций для поиска пользователей.<br /><br />Домашняя страница содержит: здесь можно задать слова для поиска по адресам домашних страниц пользователей.<br /><br />Подпись содержит: позволяет задать поиск слова, содержащегося в подписи пользователя.<br /><br />Пейджеры: в этой секции вы можете задать поиск по отображаемым именам в различных клиентах по обмену мгновенными сообщениями.<br /><br />Сортировка по сообщениям и датам: эта секция позволяет задать поиск по специальной информации. Например, найти пользователей зарегистрировавшихся, оставивших сообщение, посетивших форум до или после указанной даты.<br /><br /><b>Сортировка</b><br />Ниже находится секция поиска сортировки результата. Вы можете выбрать группы (или всех пользователей) в первом поле, затем сортировать по имени, сообщениям, дате регистрации или рейтингу (если доступно), а так же в возрастающем или убывающем виде. В последнем поле вы можете задать число найденных пользователей выводимых на каждую страницу.<br /><br /><b>Отображение пользователей</b><br />Внизу отображены карточки найденных пользователей. Там помещается стандартная информация о пользователе, включая его фотографию, если есть. Нажав на фотографию пользователя или имя, вы можете выбрать просмотр полного профиля, добавить его в друзья или найти его сообщения.', description='Различные способы сортировки и поиска пользователей по списку.' WHERE id=14";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Опции темы', text='В верхней части каждой темы имеется кнопка «Опции». При нажатии на эту кнопку раскроется меню с опциями темы. <br /><br />Из этого меню вы можете использовать следующие опции: <ul><li>Подписаться на тему — эта опция служит для получения уведомлений на <nobr>e-mail</nobr>, об обновлении темы. Для более подробной информации по этой части, читайте раздел помощи «Уведомление на <nobr>e-mail</nobr> о новых сообщениях».</li></ul><ul><li>Сообщить другу — данная опция позволит вам отправить ссылку на тему вашему другу на <nobr>e-mail</nobr> адрес.</li><li>Версия для печати — это отобразить тему в привычном печатном варианте, убрав изображения и используя стандартное расположение.</li><li>Скачать тему — дает возможность скачать текст темы к вам на компьютер. Версия для печати позволяет отобразить тему в простом виде для печати. <acronym title="HyperText Markup Language" lang="en">HTML</acronym> версия позволяет скачать копию темы на ваш жесткий диск, и она будет доступна для просмотра в браузере без посещения форума. Версия в формате Microsoft Word позволяет скачать тему в файл на ваш жесткий диск и открыть его в популярном редакторе Microsoft Word для просмотра.</li></ul><ul><li>Подписка на этот форум — эта опция служит для получения уведомлений на <nobr>e-mail</nobr>, о любых новых темах, созданных в этом форуме. Для более подробной информации по этой части, читайте раздел помощи «Уведомление на <nobr>e-mail</nobr> о новых сообщениях».</li></ul><div align="left">Вы также можете выбрать один из трех режимов отображения темы:<br /><br /><div align='left'><ul><li>Древовидный — покажет сообщение со списком ответов к нему в древовидном виде.</li></ul><ul><li>Стандартный — отобразит тему в стандартном виде одного сообщения под другим, установленном администратором.</li></ul><ul><li>Линейный — как и стандартный, но с опцией постоянного отображения первого сообщения на верху страницы вне зависимости от её номера.</li></ul></div></div>', description='Руководство по доступным опциям, при просмотре тем.' WHERE id=15";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Календарь', text='На форуме есть свой календарь, ссылка на который находится в верхней части форума.<br><br>Вы можете добавлять персональные события в календарь, которые будут видны только вам. Для добавления нового события, используйте кнопку «Добавить новое событие». Существует возможность создания событий трёх видов:<ul><li>Однодневное событие — для добавления этого вида, используйте первое поле, указав в нём дату события.</li><br><li>Многодневное событие — это вид события, предусмотренный на несколько дней. Для добавления этого вида, вам нужно отметить галочкой поле «Если это событие не действует весь день, вы можете указать начальное время». После этого появится поле, где можно будет выбрать временную зону и начальное время.</li><br><li>Повторяющееся событие — однодневное событие, появление которого вы можете указать с временной очерёдностью в календаре, каждую неделю, месяц, год.</li><br></ul>Если администратор форума позволит вам добавлять публичные события в календарь, то события созданные вами будут видны не только вам, но и всем остальным.<br><br>Также, если вы указали дату своего рождения в ваших персональных настройках, то в день вашего рождения на главной странице форума и календаря появится ссылка на ваш профиль, при условии, что администратор форума включил эту опцию.', description='Информация по использованию функции календаря форума.' WHERE id=16";
|
||||
|
||||
ADD rss_import_auth_pass VARCHAR( 255 ) DEFAULT 'Not Needed' NOT NULL";
|
||||
|
||||
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Registration benefits', text='To be able to use all the features on this board, the administrator will probably require that you register for a member account. Registration is free and only takes a moment to complete.\r<br />\r<br />During registration, the administrator requires that you supply a valid email address. This is important as the administrator may require that you validate your registration via an email. If this is the case, you will be notified when registering. If your e-mail does not arrive, then on the member bar at the top of the page, there will be a link that will allow you to re-send the validation e-mail. \r<br />\r<br />In some cases, the administrator will need to approve your registration before you can use your member account fully. If this is the case you will be notified during registration.\r<br />\r<br />Once you have registered and logged in, you will have access to your personal messenger and your control panel.\r<br />\r<br />For more information on these items, please see the relevant sections in this documentation.', description='How to register and the added benefits of being a registered member.' WHERE id=1";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Cookies and cookie usage', text='Using cookies is optional, but strongly recommended. Cookies are used to track topics, showing you which topics have new replies since your last visit and to automatically log you in when you return.\r<br />\r<br />If your computer is unable to use the cookie system to browse the board correctly, then the board will automatically add in a session ID to each link to track you around the board.\r<br />\r<br /><b>Clearing Cookies</b>\r<br />\r<br />You can clear the cookies at any time by clicking on the link found at the bottom of the main board page (the first page you see when returning to the board). If this does not work for you, you may need to remove the cookies manually.\r<br />\r<br /><u>Removing Cookies in Internet Explorer for Windows</u>\r<br />\r<br /><ul>\r<br /><li> Close all open Internet Explorer Windows\r<br /><li> Click on the \'start\' button\r<br /><li> Move up to \'Find\' and click on \'Files and Folders\'\r<br /><li> When the new window appears, type in the domain name of the board you are using into the \'containing text\' field. (If the boards address was \'http://www.invisionboard.com/forums/index.php\' you would enter \'invisionboard.com\' without the quotes)\r<br /><li> In the \'look in\' box, type in <b>C:WindowsCookies</b> and press \'Find Now\'\r<br /><li> After it has finished searching, highlight all files (click on a file then press CTRL+A) and delete them.\r<br /></ul>\r<br />\r<br /><u>Removing Cookies in Internet Explorer for Macintosh</u>\r<br />\r<br /><ul>\r<br /><li> With Internet Explorer active, choose \'Edit\' and then \'Preferences\' from the Macintosh menu bar at the top of the screen\r<br /><li> When the preferences panel opens, choose \'Cookies\' found in the \'Receiving Files\' section.\r<br /><li> When the cookie pane loads, look for the domain name of the board (If the boards address was \'http://www.invisionboard.com/forums/index.php\' look for \'invisionboard.com\' or \'www.invisionboard.com\'\r<br /><li> For each cookie, click on the entry and press the delete button.\r<br /></ul>\r<br />\r<br />Your cookies should now be removed. In some cases you may need to restart your computer for the changes to take effect.', description='The benefits of using cookies and how to remove cookies set by this board.' WHERE id=2";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Recovering lost or forgotten passwords', text='Security is a big feature on this board, and to that end, all passwords are encrypted when you register.\r<br />This means that we cannot email your password to you as we hold no record of your \'uncrypted\' password. You can however, apply to have your password reset.\r<br />\r<br />To do this, click on the <a href=\'index.php?act=Reg&CODE=10\'>Lost Password link</a> found on the log in page.\r<br />\r<br />Further instruction is available from there.', description='How to reset your password if you\'ve forgotten it.' WHERE id=3";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Your Control Panel (My Controls)', text='Your control panel is your own private board console. You can change how the board looks and feels as well as your own information from here.\r<br />\r<br /><b>Subscriptions</b>\r<br />\r<br />This is where you manage your topic and forums subscriptions. Please see the help file \'Email Notification of new messages\' for more information on how to subscribe to topics.\r<br />\r<br /><b>Edit Profile Info</b>\r<br />\r<br />This section allows you to add or edit your contact information and enter some personal information if you choose.\r<br />\r<br /><b>Edit Signature</b>\r<br />\r<br />A board \'signature\' is very similar to an email signature. This signature is attached to the foot of every message you post unless you choose to check the box that allows you to ommit the signature in the message you are posting. You may use BB Code if available and in some cases, pure HTML (if the board administrator allows it).\r<br />\r<br /><b>Edit Avatar Settings</b>\r<br />\r<br />An avatar is a little image that appears under your username when you view a topic or post you authored. If the administrator allows, you may either choose from the board gallery, enter a URL to an avatar stored on your server or upload an avatar to use. You may also set the width of the avatar to ensure that it\'s sized in proportion.\r<br />\r<br /><b>Change Personal Photo</b>\r<br />\r<br />This section will allow you to add a photograph to your profile. This will be displayed when a user clicks to view your profile, on the mini-profile screen and will also be linked to from the member list.\r<br />\r<br /><b>Email Settings</b>\r<br />\r<br /><u>Hide my email address</u> allows you to deny the ability for other users to send you an email from the board.\r<br /><u>Send me updates sent by the board administrator</u> will allow the administrator to include your email address in any mailings they send out - this is used mostly for important updates and community information.\r<br /><u>Include a copy of the post when emailing me from a subscribed topic</u>, this allows you to have the new post included in any reply to topic notifications.\r<br /><u>Send a confirmation email when I receive a new private message</u>, this will send you an e-mail notification to your registered e-mail address each time you receive a private message on the board.\r<br /><u>Enable \'Email Notification\' by default?</u>, this will automatically subscribe you to any topic that you make a reply to. You may unsubscribe from the \'Subscriptions\' section of My Controls if you wish.\r<br />\r<br /><b>Board Settings</b>\r<br />\r<br />From this section, you can set your time zone, choose to not see users signatures, avatars and posted images.\r<br />You can choose to get a pop up window informing you when you have a new message and choose to show or hide the \'Fast Reply\' box where it is enabled.\r<br />You are also able to choose display preferences for the number of topics/posts shown per page on the board.\r<br />\r<br /><b>Change Email Address</b>\r<br />\r<br />At any time, you can change the email address that is registered to your account. In some cases, you will need to revalidate your account after changing your email address. If this is the case, you will be notified before your email address change is processed.\r<br />\r<br /><b>Change Password</b>\r<br />\r<br />You may change your password from this section. Please note that you will need to know your current password before you can change your password.', description='Editing contact information, personal information, avatars, signatures, board settings, languages and style choices.' WHERE id=4";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Email Notification of new messages', text='This board can notify you when a new reply is added to a topic. Many users find this useful to keep up to date on topics without the need to view the board to check for new messages.\r<br />\r<br />There are three ways to subscribe to a topic:\r<br /><ul>\r<br /><li>Click the \'Track This Topic\' link at the top of the topic that you wish to track</li>\r<br /><li> On the posting screen when replying to or creating a topic, check the \'Enable email notification of replies?\' checkbox</li>\r<br /><li> From the E-Mail settings section of your User CP (My Controls) check the \'Enable Email Notification by default?\' option, this will automatically subscribe you to any topic that you make a reply to</li>\r<br /></ul>Please note that to avoid multiple emails being sent to your email address, you will only get one e-mail for each topic you are subscribed to until the next time you visit the board.\r<br />\r<br />You are also able to subscribe to each individual forum on the board, to be notified when a new topic is created in that particular forum. To enable this, click the \'Subscribe to this forum\' link at the bottom of the forum that you wish to subscribe to.\r<br />\r<br />To unsubscribe from any forums or topics that you are subscribed to - just go to the \'Subscriptions\' section of \'My Controls\' and you can do thi from there.', description='How to get emailed when a new reply is added to a topic.' WHERE id=5";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Your Personal Messenger', text='Your personal messenger acts much like an email account in that you can send and receive messages and store messages in folders.\r<br />\r<br /><b>Compose a New PM</b>\r<br />\r<br />This will allow you to send a message to another member. If you have names in your contact list, you can choose a name from it - or you may choose to enter a name in the relevant form field. This will be automatically filled in if you clicked a \'PM\' button on the board (from the member list or a post). If allowed, you may also be able to enter in multiple names in the box provided, will need to add one username per line.\r<br />If the administrator allows, you may use BB Code and HTML in your private message. If you choose to check the \'Add a copy of this message to you sent items folder\' box, a copy of the message will be saved for you for later reference. If you tick the \'Track this message?\' box, then the details of the message will be available in your \'Message Tracker\' where you will be able to see if/when it has been read.\r<br />\r<br /><bInbox</b>\r<br />\r<br />Your inbox is where all new messages are sent to. Clicking on the message title will show you the message in a similar format to the board topic view. You can also delete or move messages from your inbox.\r<br />\r<br /><b>Empty PM Folders</b>\r<br />\r<br />This option provides you with a quick and easy way to clear out all of your PM folders.\r<br />\r<br /><b>Edit Storage Folders</b>\r<br />\r<br />You may rename, add or remove folders to store messages is, allowing you to organise your messages to your preference. You cannot remove \'Sent Items\' or \'Inbox\'.\r<br />\r<br /><b>PM Buddies/Block List</b>\r<br />\r<br />You may add in users names in this section, or edit any saved entries. You can also use this as a ban list, denying the named member the ability to message you.\r<br />Names entered in this section will appear in the drop down list when sending a new PM, allowing you to quickly choose the members name when sending a message.\r<br />\r<br /><b>Archive Messages</b>\r<br />\r<br />If your messenger folders are full and you are unable to receive new messages, you can archive them off. This compiles the messages into a single HTML page or Microsoft © Excel Format. This page is then emailed to your registered email address for your convenience.\r<br />\r<br /><b>Saved (Unsent) PMs</b>\r<br />\r<br />This area will allow you to go back to any PM\'s that you have chosen to save to be sent later.\r<br />\r<br /><b>Message Tracker</B>\r<br />\r<br />This is the page that any messages that you have chosen to track will appear. Details of if and when they have been read by the recipient will appear here. This also gives you the chance to delete any messages that you have sent and not yet been read by the intended recipient.', description='How to send personal messages, track them, edit your messenger folders and archive stored messages.' WHERE id=6";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Contacting the moderating team & reporting posts', text='<b>Contacting the moderating team</b>\r<br />\r<br />If you need to contact a moderator or simply wish to view the complete administration team, you can click the link \'The moderating team\' found at the bottom of the main board page (the first page you see when visiting the board), or from \'My Assistant\'.\r<br />\r<br />This list will show you administrators (those who have administration control panel access), global moderators (those who can moderate in all forums) and the moderators of the individual forums.\r<br />\r<br />If you wish to contact someone about your member account, then contact an administrator - if you wish to contact someone about a post or topic, contact either a global moderator or the forum moderator.\r<br />\r<br /><b>Reporting a post</b>\r<br />\r<br />If the administrator has enabled this function on the board, you\'ll see a \'Report\' button in a post, next to the \'Quote\' button. This function will let you report the post to the forum moderator (or the administrator(s), if there isn\'t a specific moderator available). You can use this function when you think the moderator(s) should be aware of the existance of that post. However, <b>do not use this to chat with the moderator(s)!</b>. You can use the email function or the Personal Messenger function for that.', description='Where to find a list of the board moderators and administrators.' WHERE id=7";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Viewing members profile information', text='You can view a members profile at any time by clicking on their name when it is underlined (as a link) or by clicking on their name in a post within a topic.\r<br />\r<br />This will show you their profile page which contains their contact information (if they have entered some) and their \'active stats\'.\r<br />\r<br />You can also click on the \'Mini Profile\' button underneath their posts, this will show up a mini \'e-card\' with their contact information and a photograph if they have chosen to have one.', description='How to view members contact information.' WHERE id=8";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Viewing active topics and new posts', text='You can view which new topics have new replies today by clicking on the \'Today\'s Active Topics\' link found at the bottom of the main board page (the first page you see when visiting the board). You can set your own date criteria, choosing to view all topics with new replies during several date choices.\r<br />\r<br />The \'View New Posts\' link in the member bar at the top of each page, will allow you to view all of the topics which have new replies in since your last visit to the board.', description='How to view all the topics which have a new reply today and the new posts made since your last visit.' WHERE id=9";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Searching Topics and Posts', text='The search feature is designed to allow you to quickly find topics and posts that contain the keywords you enter.\r<br />\r<br />There are two types of search form available, simple search and advanced search. You may switch between the two using the \'More Options\' and \'Simple Mode\' buttons.\r<br />\r<br /><b>Simple Mode</b>\r<br />\r<br />All you need to do here is enter in a keyword into the search box, and select a forum(s) to search in. (to select multiple forums, hold down the control key on a PC, or the Shift/Apple key on a Mac) choose a sorting order and search.\r<br />\r<br /><b>Advanced Mode</b>\r<br />\r<br />The advanced search screen, will give you a much greater range of options to choose from to refine your search. In addition to searching by keyword, you are able to search by a members username or a combination of both. You can also choose to refine your search by selecting a date range, and there are a number of sorting options available. There are also two ways of displaying the search results, can either show the post text in full or just show a link to the topic, can choose this using the radio buttons available.\r<br />\r<br />If the administrator has enabled it, you may have a minimum amount of time to wait between searches, this is known as search flood control.\r<br />\r<br />There are also search boxes available at the bottom of each forum, to allow you to carry out a quick search of all of the topics within that particular forum.', description='How to use the search feature.' WHERE id=10";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Logging in and out', text='If you have chosen not to remember your log in details in cookies, or you are accessing the board on another computer, you will need to log into the board to access your member profile and post with your registered name.\r<br />\r<br />When you log in, you have the choice to save cookies that will log you in automatically when you return. Do not use this option on a shared computer for security.\r<br />\r<br />You can also choose to hide - this will keep your name from appearing in the active users list.\r<br />\r<br />Logging out is simply a matter of clicking on the \'Log Out\' link that is displayed when you are logged in. If you find that you are not logged out, you may need to manually remove your cookies. See the \'Cookies\' help file for more information.', description='How to log in and out from the board and how to remain anonymous and not be shown on the active users list.' WHERE id=11";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='My Assistant', text='This feature is sometimes referred to as a \'Browser Buddy\'. \r<br />\r<br />At the top it tells you how many posts have been made since you last visited the board.. Also underneath this the number of posts with replies that have been made in topics that the individual has also posted in.\r<br />Click on the \'View\' link on either of the two sentences to see the posts.\r<br />\r<br />The next section is five links to useful features:\r<br /><ul>\r<br /><li>The link to the moderating team is basically a quick link to see all those that either administrate or moderate certain forums on the message board.</li>\r<br /><li> The link to \'Today\'s Active Topics\' shows you all the topics that have been created in the last 24 hours on the board.</li>\r<br /><li>Today\'s Top 10 Posters link shows you exactly as the name suggests. It shows you the amount of posts by the members and also their total percentage of the total posts made that day.</li>\r<br /><li>The overall Top 10 Posters link shows you the top 10 posters for the whole time that the board has been installed.</li>\r<br /><li>My last 10 posts links to the latest topics that you have made on the board. These are shortened on the page, to save space, and are linked to if you require to read more of them.</li>\r<br /></ul>The two search features allow you to search the whole board for certain words in a whole topic. It isn\'t as featured as the normal search option so it is not as comprehensive.\r<br />\r<br />The Help Search is just as comprehensive as the normal help section\'s search function and allows for quick searching of all the help topics on the board.', description='A comprehensive guide to use this handy little feature.' WHERE id=12";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Posting', text='There are three different posting screens available. The new topic button, visible in forums and in topics allows you to add a new topic to that particular forum. The new poll button (if the admin has enabled it) will also be viewable in topics and forums allowing you to create a new poll in the forum. When viewing a topic, there will be an add reply button, allowing you to add a new reply onto that particular topic. \r\n<br />\r\n<br /><b>Posting new topics and replying</b>\r\n<br />\r\n<br />When making a post, you will most likely have the option to use IBF code when posting. This will allow you to add various types of formatting to your messages. For more information on this, click the \'BB Code Help\' link under the emoticon box to launch the help window.\r\n<br />\r\n<br />On the left of the text entry box, there is the clickable emoticons box - you can click on these to add them to the content of your message (these are sometimes known as \'smilies\').\r\n<br />\r\n<br />There are three options available when making a post or a reply. \'Enable emoticons?\' if this is unchecked, then any text that would normally be converted into an emoticon will not be. \'Enable signature?\' allows you to choose whether or not you would like your signature to appear on that individual post. \'Enable email notification of replies?\' ticking this box will mean that you will receive e-mail updates to the topic, see the \'Email Notification of new messages\' help topic for more information on this.\r\n<br />\r\n<br />You also have the option to choose a post icon for the topic/post when creating one. This icon will appear next to the topic name on the topic listing in that forum, or will appear next to the date/time of the message if making a reply to a topic.\r\n<br />\r\n<br />If the admin has enabled it, you will also see a file attachments option, this will allow you to attach a file to be uploaded when making a post. Click the browse button to select a file from your computer to be uploaded. If you upload an image file, it may be shown in the content of the post, all other file types will be linked to.\r\n<br />\r\n<br /><b>Poll Options</b>\r\n<br />\r\n<br />If you have chosen to post a new poll, there will be an extra two option boxes at the top of the help screen. The first input box will allow you to enter the question that you are asking in the poll. The text field underneath is where you will input the choices for the poll. Simply enter a different option on each line. The maximum number of choices is set by the board admin, and this figure is displayed on the left.\r\n<br />\r\n<br /><b>Quoting Posts</b>\r\n<br />\r\n<br />Displayed below each post in a topic, there is a \'Quote\' button. Pressing this button will allow you to reply to a topic, and have the text from a particular reply quoted in your own reply. When you choose to do this, an extra text field will appear below the main text input box to allow you to edit the content of the post being quoted.\r\n<br />\r\n<br /><b>Editing Posts</b>\r\n<br />\r\n<br />Above any posts that you have made, you may see an \'Edit\' button. Pressing this will allow you to edit the post that you had previously made. \r\n<br />\r\n<br />When editing you may see an option to \'Add the \'Edit by\' line in this post?\'. If you tick this then it will show up in the posts that it has been edited and the time at which it was edited. If this option does not appear, then the edit by line will always be added to the post.\r\n<br />\r\n<br />If you are unable to see the edit button displayed on each post that you have made, then the administrator may have prevented you from editing posts, or the time limit for editing may have expired.\r\n<br />\r\n<br /><b>Fast Reply</b>\r\n<br />\r\n<br />Where it has been enabled, there will be a fast reply button on each topic. Clicking this will open up a posting box on the topic view screen, cutting down on the time required to load the main posting screen. Click the fast reply button to expand the reply box and type the post inside of there. Although the fast reply box is not expanded by default, you can choose the option to have it expanded by default, from the board settings section of your control panel. Pressing the \'More Options\' button will take you to the normal posting screen.', description='A guide to the features avaliable when posting on the boards.' WHERE id=13";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Member List', text='The member list, accessed via the \'Members\' link at the top of each page, is basically a listing of all of the members that have registered on the board. \r\n<br />\r\n<br />If you are looking to search for a particular member by all/part of their username, then in the drop down box at the bottom of the page, change the selection from \'Search All Available\' to \'Name Begins With\' or \'Name Contains\' and input all/part of their name in the text input field and press the \'Go!\' button. \r\n<br />\r\n<br />Also, at the bottom of the member list page, there are a number of sorting options available to alter the way in which the list is displayed. \r\n<br />\r\n<br />If a member has chosen to add a photo to their profile information, then a camera icon will appear next to their name, and you may click this to view the photo.', description='Explaining the different ways to sort and search through the list of members.' WHERE id=14";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Topic Options', text='At the bottom of each topic, there is a \'Topic Options\' button. Pressing this button will expand the topic options box. \r<br />\r<br />From this box, you can select from the following options: \r<br /><ul>\r<br /><li>Track this topic - this option will allow you to receive e-mail updates for the topic, see the \'Email Notification of new messages\' help file for more information on this</li>\r<br /><li>Subscribe to this forum - will allow you to receive e-mail updates for any new topics posted in the forum, see the Notification of new messages\' help file for more information on this</li>\r<br /><li>Download / Print this Topic - will show the topic in a number of different formats. \'Printer Friendly Version\' will display a version of the topic that is suitable for printing out. \'Download HTML Version\' will download a copy of the topic to your hard drive, and this can then be viewed in a web browser, without having to visit the board. \'Download Microsoft Word Version\' will allow you to download the file to your hard drive and open it up in the popular word processing application, Microsoft Word, for viewing offline.</li>\r<br /></ul>', description='A guide to the options avaliable when viewing a topic.' WHERE id=15";
|
||||
$UPDATES[] = "UPDATE ibf_faq SET title='Calendar', text='This board features it\'s very own calendar feature, which can be accessed via the calendar link at the top of the board.\r<br />\r<br />You are able to add your own personal events to the calendar - and these are only viewable by yourself. To add a new event, use the \'Add New Event\' button to be taken to the event posting screen. There are three types of events that you can now add:\r<br /><ul>\r<br /><li>A single day/one off event can be added using the first option, by just selecting the date for it to appear on.</li>\r<br /><li>Ranged Event - is an event that spans across multiple days, to do this in addition to selecting the start date as above, will need to add the end date for the event. There are also options available to highlight the message on the calendar, useful if there is more than one ranged event being displayed at any one time.</li>\r<br /><li>Recurring Event - is a one day event, that you can set to appear at set intervals on the calendar, either weekly, monthly or yearly.</li>\r<br /></ul>If the admistrator allows you, you may also be able to add a public event, that will not just be shown to yourself, but will be viewable by everyone.\r<br />\r<br />Also, if the admistrator has chosen, there will be a link to all the birthdays happening on a particular day displayed on the calendar, and your birthday will appear if you have chosen to enter a date of birth in the Profile Info section of your control panel.', description='More information on the boards calendar feature.' WHERE id=16";
|
||||
|
||||
|
||||
?>
|
||||
@@ -23,23 +23,23 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $install;
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
function version_upgrade( & $install )
|
||||
{
|
||||
$this->install = & $install;
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -51,23 +51,23 @@ class version_upgrade
|
||||
$UPDATES = array();
|
||||
$file = '_updates.php';
|
||||
$cnt = 0;
|
||||
|
||||
|
||||
if ( file_exists( ROOT_PATH . 'upgrade/installfiles/upg_21003/' . strtolower($this->ipsclass->vars['sql_driver']) . $file ) )
|
||||
{
|
||||
require_once( ROOT_PATH . 'upgrade/installfiles/upg_21003/' . strtolower($this->ipsclass->vars['sql_driver']) . $file );
|
||||
|
||||
|
||||
$this->install->error = array();
|
||||
$this->sqlcount = 0;
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->return_die = 1;
|
||||
|
||||
|
||||
foreach( $UPDATES as $q )
|
||||
{
|
||||
$this->install->ipsclass->DB->allow_sub_select = 1;
|
||||
$this->install->ipsclass->DB->error = '';
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->query( $q );
|
||||
|
||||
|
||||
if ( $this->install->ipsclass->DB->error )
|
||||
{
|
||||
$this->install->error[] = $query."<br /><br />".$this->install->ipsclass->DB->error;
|
||||
@@ -78,15 +78,15 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Îáíîâëåíî $this->sqlcount ðàçäåëîâ ïîìîùè...";
|
||||
|
||||
$this->install->message = "$this->sqlcount help files updated....";
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -7,7 +7,7 @@ $SQL[] ="ALTER TABLE ibf_groups DROP g_calendar_post;";
|
||||
$SQL[] ="ALTER TABLE ibf_validating ADD prev_email VARCHAR(150) NOT NULL DEFAULT '0';";
|
||||
|
||||
$SQL[] ="ALTER TABLE ibf_forums CHANGE position position INT(5) UNSIGNED default '0';";
|
||||
$SQL[] ="ALTER TABLE ibf_forums ADD newest_title VARCHAR( 128 ) NOT NULL default '' , ADD newest_id INT( 10 ) NOT NULL default '0' ;";
|
||||
$SQL[] ="ALTER TABLE ibf_forums ADD newest_title VARCHAR( 128 ) NULL , ADD newest_id INT( 10 ) NOT NULL default '0' ;";
|
||||
$SQL[] ="ALTER TABLE ibf_forums ADD password_override VARCHAR( 255 ) AFTER password;";
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ $SQL[] ="UPDATE ibf_attachments SET attach_rel_id=attach_msg, attach_rel_module=
|
||||
$SQL[] ="UPDATE ibf_login_methods SET login_settings = '1', login_installed = '1' WHERE login_folder_name='ldap';";
|
||||
$SQL[] ="UPDATE ibf_login_methods SET login_settings = '1', login_installed = '1' WHERE login_folder_name='external';";
|
||||
|
||||
$SQL[] ="INSERT INTO ibf_login_methods (login_title, login_description, login_folder_name, login_maintain_url, login_register_url, login_type, login_alt_login_html, login_date, login_settings, login_enabled, login_safemode, login_installed, login_replace_form, login_allow_create) VALUES ('IP.Converge', 'Äëÿ âíóòðåííåãî èñïîëüçîâàíèÿ', 'ipconverge', '', '', 'passthrough', '', 0, 0, 0, 1, 1, 0, 1);";
|
||||
$SQL[] ="INSERT INTO ibf_login_methods (login_title, login_description, login_folder_name, login_maintain_url, login_register_url, login_type, login_alt_login_html, login_date, login_settings, login_enabled, login_safemode, login_installed, login_replace_form, login_allow_create) VALUES ('IP.Converge', 'Internal Use Only', 'ipconverge', '', '', 'passthrough', '', 0, 0, 0, 1, 1, 0, 1);";
|
||||
$SQL[] ="UPDATE ibf_forums SET permission_showtopic=1 WHERE parent_id='-1';";
|
||||
|
||||
# MEMBERS
|
||||
|
||||
@@ -23,23 +23,23 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $install;
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
function version_upgrade( & $install )
|
||||
{
|
||||
$this->install = & $install;
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -79,12 +79,12 @@ class version_upgrade
|
||||
case 'update_template_bits':
|
||||
$this->update_template_bits();
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
$this->upgrade_sql(1);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
if ( $this->install->saved_data['workact'] )
|
||||
{
|
||||
return false;
|
||||
@@ -94,12 +94,12 @@ class version_upgrade
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL: 0
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
function upgrade_sql( $id=1 )
|
||||
{
|
||||
$man = 0; // Manual upgrade ? intval( $this->install->ipsclass->input['man'] );
|
||||
@@ -107,40 +107,40 @@ class version_upgrade
|
||||
$SQL = array();
|
||||
$file = '_updates_'.$id.'.php';
|
||||
$output = "";
|
||||
|
||||
|
||||
if ( file_exists( ROOT_PATH . 'upgrade/installfiles/upg_22005/' . strtolower($this->install->ipsclass->vars['sql_driver']) . $file ) )
|
||||
{
|
||||
require_once( ROOT_PATH . 'upgrade/installfiles/upg_22005/' . strtolower($this->install->ipsclass->vars['sql_driver']) . $file );
|
||||
|
||||
|
||||
$this->install->error = array();
|
||||
$this->sqlcount = 0;
|
||||
$output = "";
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->return_die = 1;
|
||||
|
||||
|
||||
foreach( $SQL as $query )
|
||||
{
|
||||
$this->install->ipsclass->DB->allow_sub_select = 1;
|
||||
$this->install->ipsclass->DB->error = '';
|
||||
|
||||
|
||||
$query = str_replace( "<%time%>", time(), $query );
|
||||
|
||||
|
||||
if( $this->install->ipsclass->vars['mysql_tbl_type'] )
|
||||
{
|
||||
if( preg_match( "/^create table(.+?)/i", $query ) )
|
||||
{
|
||||
$query = preg_replace( "/^(.+?)\);$/is", "\\1) TYPE={$this->install->ipsclass->vars['mysql_tbl_type']};", $query );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ( $this->install->saved_data['man'] )
|
||||
{
|
||||
$output .= preg_replace("/\sibf_(\S+?)([\s\.,]|$)/", " ".$this->install->ipsclass->DB->obj['sql_tbl_prefix']."\\1\\2", preg_replace( "/\s{1,}/", " ", $query ) )."\n\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
$this->install->ipsclass->DB->query( $query );
|
||||
|
||||
|
||||
if ( $this->install->ipsclass->DB->error )
|
||||
{
|
||||
$this->install->error[] = $query."<br /><br />".$this->install->ipsclass->DB->error;
|
||||
@@ -151,77 +151,77 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->install->message = "Âûïîëíåíî $this->sqlcount çàïðîñîâ...";
|
||||
|
||||
$this->install->message = "$this->sqlcount queries run....";
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------
|
||||
// Next page...
|
||||
//--------------------------------
|
||||
|
||||
|
||||
$this->install->saved_data['st'] = 0;
|
||||
|
||||
|
||||
if ( $id != 4 )
|
||||
{
|
||||
$nextid = $id + 1;
|
||||
$this->install->saved_data['workact'] = 'sql'.$nextid;
|
||||
$this->install->saved_data['workact'] = 'sql'.$nextid;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->saved_data['workact'] = 'forums';
|
||||
$this->install->saved_data['workact'] = 'forums';
|
||||
}
|
||||
|
||||
|
||||
if ( $this->install->saved_data['man'] AND $output )
|
||||
{
|
||||
$this->install->message .= "<br /><br /><h3><b>Äëÿ ïðîäîëæåíèÿ îáíîâëåíèÿ íåîáõîäèìî âûïîëíèòü ñëåäóþùèå MySQL çàïðîñû:</b></h3><br /><div class='eula'>".nl2br(htmlspecialchars($output)).'</div>';
|
||||
$this->install->message .= "<br /><br /><h3><b>Please run these queries in your MySQL database before continuing..</b></h3><br />".nl2br(htmlspecialchars($output));
|
||||
$this->install->do_man = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Update forums
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
function update_forums()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Update latest news...
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->simple_update( "forums", "newest_title=last_title, newest_id=last_id" );
|
||||
$this->install->ipsclass->DB->exec_query();
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$ignore_me = array( 'redirect_url', 'redirect_loc', 'rules_text', 'permission_custom_error', 'notify_modq_emails' );
|
||||
|
||||
|
||||
if ( isset($this->install->ipsclass->vars['forum_cache_minimum']) AND $this->install->ipsclass->vars['forum_cache_minimum'] )
|
||||
{
|
||||
$ignore_me[] = 'description';
|
||||
$ignore_me[] = 'rules_title';
|
||||
}
|
||||
|
||||
|
||||
$this->install->ipsclass->cache['forum_cache'] = array();
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->simple_construct( array( 'select' => '*',
|
||||
'from' => 'forums',
|
||||
'order' => 'parent_id, position'
|
||||
) );
|
||||
$o = $this->install->ipsclass->DB->simple_exec();
|
||||
|
||||
|
||||
while( $f = $this->install->ipsclass->DB->fetch_row( $o ) )
|
||||
{
|
||||
$fr = array();
|
||||
|
||||
|
||||
$perms = unserialize(stripslashes($f['permission_array']));
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Stuff we don't need...
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( $f['parent_id'] == -1 )
|
||||
{
|
||||
$fr['id'] = $f['id'];
|
||||
@@ -248,19 +248,19 @@ class version_upgrade
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$fr['read_perms'] = isset($perms['read_perms']) ? $perms['read_perms'] : '';
|
||||
$fr['reply_perms'] = isset($perms['reply_perms']) ? $perms['reply_perms'] : '';
|
||||
$fr['start_perms'] = isset($perms['start_perms']) ? $perms['start_perms'] : '';
|
||||
$fr['upload_perms'] = isset($perms['upload_perms']) ? $perms['upload_perms'] : '';
|
||||
$fr['download_perms'] = $perms['upload_perms'];
|
||||
$fr['show_perms'] = isset($perms['show_perms']) ? $perms['show_perms'] : '';
|
||||
|
||||
|
||||
unset($fr['permission_array']);
|
||||
}
|
||||
|
||||
|
||||
$this->install->ipsclass->cache['forum_cache'][ $fr['id'] ] = $fr;
|
||||
|
||||
|
||||
$perm_array = addslashes(serialize(array(
|
||||
'start_perms' => $fr['start_perms'],
|
||||
'reply_perms' => $fr['reply_perms'],
|
||||
@@ -269,58 +269,58 @@ class version_upgrade
|
||||
'download_perms' => $fr['download_perms'],
|
||||
'show_perms' => $fr['show_perms']
|
||||
) ) );
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Add to save array
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->do_update( 'forums', array( 'permission_array' => $perm_array ), 'id='.$fr['id'] );
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
$this->install->ipsclass->update_cache( array( 'name' => 'forum_cache', 'array' => 1, 'deletefirst' => 1, 'donow' => 0 ) );
|
||||
|
||||
$this->install->message = "Äîáàâëåíû ïðàâà íà ñêà÷èâàíèå â ôîðóìàõ, ïåðåõîäèì ê îáíîâëåíèþ HTML-ëîãèêè â øàáëîíàõ...";
|
||||
|
||||
$this->install->message = "Download permissions added, Converting template bit HTML logic...";
|
||||
$this->install->saved_data['workact'] = 'update_template_bits';
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Update template bits
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
function update_template_bits()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$updated = 0;
|
||||
$_bits = array();
|
||||
$start = $this->install->saved_data['st'];
|
||||
$lend = 25;
|
||||
$end = $start + $lend;
|
||||
$done = 0;
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Get API class
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
require_once( ROOT_PATH . 'sources/api/api_skins.php' );
|
||||
$api = new api_skins;
|
||||
$api->ipsclass =& $this->ipsclass;
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// OK..
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->build_query( array( 'select' => '*',
|
||||
'from' => 'skin_templates',
|
||||
'where' => 'set_id > 1',
|
||||
'order' => 'suid ASC',
|
||||
'limit' => array( $start, $lend ) ) );
|
||||
|
||||
|
||||
$o = $this->install->ipsclass->DB->exec_query();
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Do it...
|
||||
//-----------------------------------------
|
||||
@@ -330,13 +330,13 @@ class version_upgrade
|
||||
//-----------------------------------------
|
||||
// Got some to convert!
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
while( $row = $this->install->ipsclass->DB->fetch_row( $o ) )
|
||||
{
|
||||
if ( preg_match( "#ipb\.|<if|<else#", $row['section_content'] ) )
|
||||
{
|
||||
$section_content = $api->skin_update_template_bit( $row['section_content'] );
|
||||
|
||||
|
||||
if ( $section_content AND $section_content != $row['section_content'] )
|
||||
{
|
||||
$updated++;
|
||||
@@ -349,76 +349,76 @@ class version_upgrade
|
||||
{
|
||||
$done = 1;
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Done?
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( ! $done )
|
||||
{
|
||||
$this->install->message = "Ïðîâåðåíû øàáëîíû ñ $start ïî $end. Îáíîâëåíî: $updated...";
|
||||
$this->install->saved_data['workact'] = 'update_template_bits';
|
||||
$this->install->message = "Template bits: $start to $end completed. $updated updated...";
|
||||
$this->install->saved_data['workact'] = 'update_template_bits';
|
||||
$this->install->saved_data['st'] = $end;
|
||||
return FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->message = "Øàáëîíû îáíîâëåíû, ïåðåõîäèì ê óäàëåíèþ âðåìåííûõ äàííûõ...";
|
||||
$this->install->saved_data['workact'] = 'finish';
|
||||
return FALSE;
|
||||
$this->install->message = "Template bits updated, finishing up...";
|
||||
$this->install->saved_data['workact'] = 'finish';
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Update forums
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
function finish_up()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Has gallery?
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->return_die = 1;
|
||||
$this->install->ipsclass->DB->error = '';
|
||||
|
||||
|
||||
$table = 'members';
|
||||
|
||||
|
||||
if ( ! $this->install->ipsclass->DB->field_exists( 'has_gallery', $table ) )
|
||||
{
|
||||
$this->install->ipsclass->DB->sql_add_field( 'members', 'has_gallery', 'INT(1)', '0' );
|
||||
|
||||
|
||||
if ( $this->install->ipsclass->DB->error )
|
||||
{
|
||||
$this->install->error[] = "ALTER TABLE {$this->install->ipsclass->DB->obj['sql_tbl_prefix']}members ADD has_gallery INT(1) default 0<br /><br />".$this->install->ipsclass->DB->error;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if( $this->install->ipsclass->vars['conv_configured'] != 1 OR $this->install->ipsclass->vars['conv_chosen'] == "" )
|
||||
{
|
||||
if( $this->install->ipsclass->DB->field_exists( "legacy_password", "members" ) )
|
||||
{
|
||||
$this->install->ipsclass->DB->sql_drop_field( 'members', 'legacy_password' );
|
||||
|
||||
|
||||
if ( $this->install->ipsclass->DB->error )
|
||||
{
|
||||
$this->install->error[] = "ALTER TABLE {$this->install->ipsclass->DB->obj['sql_tbl_prefix']}members DROP legacy_password<br /><br />".$this->install->ipsclass->DB->error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$value = $this->install->ipsclass->DB->build_and_exec_query( array( 'select' => 'conf_value,conf_default', 'from' => 'conf_settings', 'where' => "conf_key='converge_login_method'" ) );
|
||||
|
||||
|
||||
if( !$value['conf_value'] )
|
||||
{
|
||||
$value['conf_value'] = $value['conf_default'];
|
||||
}
|
||||
|
||||
|
||||
if( $value['conf_value'] )
|
||||
{
|
||||
$this->install->saved_data['ipbli_usertype'] = $value['conf_value'];
|
||||
}
|
||||
|
||||
|
||||
$test = $this->install->ipsclass->DB->build_and_exec_query( array( 'select' => 'count(*) as numrows',
|
||||
'from' => 'cache_store',
|
||||
'where' => "cs_key='calendars'"
|
||||
@@ -428,59 +428,59 @@ class version_upgrade
|
||||
{
|
||||
$this->install->ipsclass->DB->do_insert( 'cache_store', array( 'cs_key' => 'calendars' ) );
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Rebuild group caches.
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
require_once( ROOT_PATH . 'sources/action_admin/groups.php' );
|
||||
$groups = new ad_groups();
|
||||
$groups->ipsclass =& $this->install->ipsclass;
|
||||
|
||||
|
||||
$groups->rebuild_group_cache();
|
||||
|
||||
$this->install->message = "Óäàëåíèå âðåìåííûõ äàííûõ ìàñòåðà çàâåðøåíî, ïåðåõîäèì ê ñîçäàíèþ ãëàâíîãî ñòèëÿ IPB 2.2.0...";
|
||||
|
||||
$this->install->message = "Clean up performed, Creating new IPB 2.2.0 skin...";
|
||||
$this->install->saved_data['workact'] = 'skin';
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Add new skin
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
function add_skin()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Get default wrapper
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$xml = new class_xml();
|
||||
$xml->lite_parser = 1;
|
||||
|
||||
|
||||
$content = implode( "", file( ROOT_PATH . 'resources/skinsets.xml' ) );
|
||||
$xml->xml_parse_document( $content );
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Get CSS and WRAPPER
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$CSS = $xml->xml_array['export']['group']['row'][0]['set_css']['VALUE'];
|
||||
$WRAPPER = $xml->xml_array['export']['group']['row'][0]['set_cache_wrapper']['VALUE'];
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Turn off all other skins
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->do_update( 'skin_sets', array( 'set_default' => 0 ) );
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Insert new skin...
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->return_die = 1;
|
||||
$this->install->ipsclass->DB->allow_sub_select = 1;
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->do_insert( 'skin_sets', array(
|
||||
'set_name' => 'IPB Ãëàâíûé ñòèëü',
|
||||
'set_name' => 'IPB 2.2.0 Default',
|
||||
'set_image_dir' => 1,
|
||||
'set_hidden' => 0,
|
||||
'set_default' => 1,
|
||||
@@ -493,41 +493,41 @@ class version_upgrade
|
||||
'set_cache_wrapper' => $WRAPPER,
|
||||
'set_emoticon_folder' => 'default',
|
||||
) );
|
||||
|
||||
|
||||
$this->install->saved_data['new_skin'] = $this->install->ipsclass->DB->get_insert_id();
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Update parent skin's CSS
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->return_die = 1;
|
||||
$this->install->ipsclass->DB->allow_sub_select = 1;
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->do_update( 'skin_sets', array(
|
||||
'set_cache_css' => $CSS,
|
||||
'set_css' => $CSS,
|
||||
'set_cache_wrapper' => $WRAPPER,
|
||||
'set_wrapper' => $WRAPPER,
|
||||
), "set_skin_set_id=1" );
|
||||
|
||||
), "set_skin_set_id=1" );
|
||||
|
||||
//-----------------------------------------
|
||||
// Remove member's choice
|
||||
//-----------------------------------------
|
||||
|
||||
$this->install->ipsclass->DB->do_update( 'members', array( 'skin' => '' ) );
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->do_update( 'members', array( 'skin' => '' ) );
|
||||
|
||||
//-----------------------------------------
|
||||
// Done...
|
||||
//-----------------------------------------
|
||||
|
||||
$this->install->message = "Ãëàâíûé ñòèëü IPB 2.2.0 ñîçäàí...";
|
||||
|
||||
$this->install->message = "2.2.0 skin created...";
|
||||
unset($this->install->saved_data['workact']);
|
||||
unset($this->install->saved_data['vid']);
|
||||
|
||||
return TRUE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -23,23 +23,23 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $install;
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
function version_upgrade( & $install )
|
||||
{
|
||||
$this->install = & $install;
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -49,25 +49,25 @@ class version_upgrade
|
||||
//--------------------------------
|
||||
// Upgrade BBCode
|
||||
//--------------------------------
|
||||
|
||||
|
||||
require_once( ROOT_PATH . 'sources/action_admin/bbcode.php' );
|
||||
$bbcode = new ad_bbcode();
|
||||
$bbcode->ipsclass =& $this->install->ipsclass;
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Get BBCode....
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( $FH = @fopen( ROOT_PATH . 'resources/bbcode.xml', 'rb' ) )
|
||||
{
|
||||
$content = @fread( $FH, filesize( ROOT_PATH . 'resources/bbcode.xml' ) );
|
||||
@fclose( $FH );
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Get xml mah-do-dah
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
require_once( KERNEL_PATH.'class_xml.php' );
|
||||
|
||||
$xml = new class_xml();
|
||||
@@ -76,32 +76,32 @@ class version_upgrade
|
||||
//-----------------------------------------
|
||||
// Unpack the datafile
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$xml->xml_parse_document( $content );
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Get current custom bbcodes
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$tags = array();
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'custom_bbcode' ) );
|
||||
$this->install->ipsclass->DB->simple_exec();
|
||||
|
||||
|
||||
while ( $r = $this->install->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$tags[ $r['bbcode_tag'] ] = 1;
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// pArse
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
if ( ! is_array( $xml->xml_array['bbcodeexport']['bbcodegroup']['bbcode'][0] ) )
|
||||
{
|
||||
$xml->xml_array['bbcodeexport']['bbcodegroup']['bbcode'][0] = $xml->xml_array['bbcodeexport']['bbcodegroup']['bbcode'];
|
||||
}
|
||||
|
||||
|
||||
foreach( $xml->xml_array['bbcodeexport']['bbcodegroup']['bbcode'] as $entry )
|
||||
{
|
||||
$bbcode_title = $entry['bbcode_title']['VALUE'];
|
||||
@@ -114,7 +114,7 @@ class version_upgrade
|
||||
$bbcode_add_into_menu = $entry['bbcode_add_into_menu']['VALUE'];
|
||||
$bbcode_menu_option_text = $entry['bbcode_menu_option_text']['VALUE'];
|
||||
$bbcode_menu_content_text = $entry['bbcode_menu_content_text']['VALUE'];
|
||||
|
||||
|
||||
if ( $tags[ $bbcode_tag ] )
|
||||
{
|
||||
$bbarray = array(
|
||||
@@ -129,12 +129,12 @@ class version_upgrade
|
||||
'bbcode_menu_option_text' => $bbcode_menu_option_text,
|
||||
'bbcode_menu_content_text' => $bbcode_menu_content_text,
|
||||
);
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->do_update( 'custom_bbcode', $bbarray, "bbcode_tag='".$bbcode_tag."'" );
|
||||
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if ( $bbcode_tag )
|
||||
{
|
||||
$bbarray = array(
|
||||
@@ -149,19 +149,19 @@ class version_upgrade
|
||||
'bbcode_menu_option_text' => $bbcode_menu_option_text,
|
||||
'bbcode_menu_content_text' => $bbcode_menu_content_text,
|
||||
);
|
||||
|
||||
|
||||
$this->install->ipsclass->DB->do_insert( 'custom_bbcode', $bbarray );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$bbcode->bbcode_rebuildcache();
|
||||
|
||||
$this->install->message = "Äîáàâëåíû íîâûå BB-êîäû, íîâûé êåø ñîçäàí...";
|
||||
|
||||
|
||||
$this->install->message = "BBCode rebuilt and recached...";
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_forums CHANGE last_title last_title VARCHAR( 250 ) NULL DEFAULT NULL ,
|
||||
CHANGE newest_title newest_title VARCHAR( 250 ) NULL DEFAULT NULL ;";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_skin_url_mapping (
|
||||
map_id INT(10) NOT NULL auto_increment,
|
||||
map_title VARCHAR(200) NOT NULL default '',
|
||||
map_match_type VARCHAR(10) NOT NULL default 'contains',
|
||||
map_url VARCHAR(200) NOT NULL default '',
|
||||
map_skin_set_id INT(10) UNSIGNED NOT NULL default '0',
|
||||
map_date_added INT(10) UNSIGNED NOT NULL default '0',
|
||||
PRIMARY KEY (map_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_mail_queue ADD mail_html_on INT(1) NOT NULL default '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_skin_templates ADD group_names_secondary TEXT NULL;";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_skin_template_links (
|
||||
link_id INT(10) UNSIGNED NOT NULL auto_increment,
|
||||
link_set_id INT(10) UNSIGNED NOT NULL default '0',
|
||||
link_group_name VARCHAR(255) NOT NULL default '',
|
||||
link_template_name VARCHAR(255) NOT NULL default '',
|
||||
link_used_in VARCHAR(255) NOT NULL default '',
|
||||
PRIMARY KEY (link_id)
|
||||
);";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
$SQL[] = "alter table ibf_topics add index last_post_sorting(last_post,forum_id);";
|
||||
$SQL[] = "alter table ibf_profile_comments drop index my_comments;";
|
||||
$SQL[] = "alter table ibf_profile_comments add index my_comments (comment_for_member_id,comment_date);";
|
||||
$SQL[] = "ALTER TABLE ibf_sessions ADD INDEX ( running_time );";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_conf_settings DROP conf_help_key;";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_acp_help (
|
||||
id INT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
|
||||
is_setting TINYINT( 1 ) NOT NULL DEFAULT '0',
|
||||
page_key VARCHAR( 255 ) NULL ,
|
||||
help_title VARCHAR( 255 ) NULL ,
|
||||
help_body TEXT NULL ,
|
||||
help_mouseover VARCHAR( 255 ) NULL ,
|
||||
KEY page_key ( page_key ) );";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_skin_sets ADD set_key VARCHAR( 32 ) NULL ;";
|
||||
$SQL[] = "ALTER TABLE ibf_skin_sets ADD INDEX ( set_key ) ;";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.2 -> IPB 2.0.3
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $install;
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function version_upgrade( & $install )
|
||||
{
|
||||
$this->install = & $install;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
if( !defined( 'SQL_DRIVER' ) )
|
||||
{
|
||||
define( 'SQL_DRIVER', $this->install->saved_data['sql_driver'] );
|
||||
}
|
||||
|
||||
if( !defined('CACHE_PATH') )
|
||||
{
|
||||
define( 'CACHE_PATH', ROOT_PATH );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Skip for safe_mode peeps
|
||||
//-----------------------------------------
|
||||
|
||||
$safe_mode = @ini_get("safe_mode") ? 1 : 0;
|
||||
|
||||
if( $safe_mode )
|
||||
{
|
||||
$this->install->message = "We detected that safe mode is enabled on your server. Skipping IP.Board Pro skin insertion...";
|
||||
return true;
|
||||
}
|
||||
|
||||
require_once( ROOT_PATH . 'sources/api/api_skins.php' );
|
||||
$api = new api_skins();
|
||||
$api->ipsclass =& $this->install->ipsclass;
|
||||
|
||||
if( !function_exists('gzopen') )
|
||||
{
|
||||
$this->install->error = "You must have zlib support in your PHP installation to be able to import skins. The new default IP.Board Pro Skin has not been imported";
|
||||
return true;
|
||||
}
|
||||
|
||||
if( !$this->install->saved_data['didskin'] )
|
||||
{
|
||||
$api->skin_add_set( ROOT_PATH . 'resources/ipb_skin-pro.xml.gz' );
|
||||
$this->install->saved_data['didskin'] = 1;
|
||||
$this->install->message = "IP.Board Pro skin templates inserted";
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$id = $this->install->ipsclass->DB->build_and_exec_query( array( 'select' => 'set_skin_set_id', 'from' => 'skin_sets', 'where' => "set_key='ip.board_pro'" ) );
|
||||
|
||||
$api->images_add_set( ROOT_PATH . 'resources/ipb_images-pro.xml.gz', $id['set_skin_set_id'] );
|
||||
|
||||
unset($this->install->saved_data['didskin']);
|
||||
$this->install->message = "IP.Board Pro skin images inserted";
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
$SQL[] = "delete from ibf_conf_settings where conf_key='csite_search_show';";
|
||||
$SQL[] = "delete from ibf_conf_settings where conf_key='csite_skinchange_show';";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_forums CHANGE last_poster_name last_poster_name VARCHAR( 255 ) NULL DEFAULT NULL;";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_announcements ADD announce_nlbr_enabled TINYINT( 1 ) NOT NULL DEFAULT '0';";
|
||||
$SQL[] = "ALTER TABLE ibf_subscription_trans CHANGE subtrans_start_date subtrans_start_date VARCHAR( 13 ) NOT NULL DEFAULT '0', CHANGE subtrans_end_date subtrans_end_date VARCHAR( 13 ) NOT NULL DEFAULT '0';";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_api_log (
|
||||
api_log_id int(10) unsigned NOT NULL auto_increment,
|
||||
api_log_key VARCHAR(32) NOT NULL,
|
||||
api_log_ip VARCHAR(16) NOT NULL,
|
||||
api_log_date INT(10) NOT NULL,
|
||||
api_log_query TEXT NOT NULL,
|
||||
api_log_allowed TINYINT(1) unsigned NOT NULL,
|
||||
PRIMARY KEY (api_log_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "CREATE TABLE ibf_api_users (
|
||||
api_user_id INT(4) unsigned NOT NULL auto_increment,
|
||||
api_user_key CHAR(32) NOT NULL,
|
||||
api_user_name VARCHAR(32) NOT NULL,
|
||||
api_user_perms TEXT NOT NULL,
|
||||
api_user_ip VARCHAR(16) NOT NULL,
|
||||
PRIMARY KEY (api_user_id)
|
||||
);";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_skin_sets ADD set_protected TINYINT( 1 ) NOT NULL DEFAULT '0';";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
$SQL[] = "DELETE FROM ibf_acp_help WHERE page_key='coppa_address' AND is_setting=1;";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_profile_portal ADD pp_about_me MEDIUMTEXT NULL;";
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_moderator_logs CHANGE topic_title topic_title VARCHAR( 255 ) NULL DEFAULT NULL ,
|
||||
CHANGE query_string query_string VARCHAR( 255 ) NULL DEFAULT NULL ;";
|
||||
|
||||
$SQL[] = "UPDATE ibf_cal_events SET event_unix_from= (event_unix_from - (event_tz * 2)) WHERE event_timeset != 0;";
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
$SQL[] = "DELETE FROM ibf_conf_settings WHERE conf_key='bot_antispam' OR conf_key='guest_captcha';";
|
||||
|
||||
|
||||
?>
|
||||
@@ -1,130 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:55 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+--------------------------------------------------------------------------
|
||||
|
|
||||
| > Script written by Matthew Mecham
|
||||
| > Date started: 12th August 2004
|
||||
| > MYSQL EXTRA CONFIG / INSTALL FILE
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
class install_extra
|
||||
{
|
||||
var $errors = array();
|
||||
var $info_extra = array();
|
||||
var $ipsclass = "";
|
||||
|
||||
function install_extra()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// process_query_create: Alter the query before it goes back $DB->query
|
||||
// table prefix already changed at this point: CREATE TABLE
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function process_query_create( $query )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Tack on the end the chosen table type
|
||||
//-----------------------------------------
|
||||
|
||||
$table_type = $this->ipsclass->vars['mysql_tbl_type'];
|
||||
|
||||
if ( !$table_type )
|
||||
{
|
||||
$table_type = 'MyISAM';
|
||||
}
|
||||
|
||||
$codepage = $this->ipsclass->vars['mysql_codepage'];
|
||||
|
||||
return preg_replace( "#\);$#", ") TYPE=".$table_type." /*!40100 DEFAULT CHARACTER SET ".$codepage." */;", $query );
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// process_query_index: Alter the query before it goes back $DB->query
|
||||
// table prefix already changed at this point: INDEX
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function process_query_index( $query )
|
||||
{
|
||||
return $query;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// process_query_index: Alter the query before it goes back $DB->query
|
||||
// table prefix already changed at this point: INSERT
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function process_query_insert( $query )
|
||||
{
|
||||
return $query;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// WHEN SHOWING THE FORM....
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function install_form_extra()
|
||||
{
|
||||
$extra = "<tr>
|
||||
<td class='title'><b>Êîäèðîâêà MySQL</b><div style='color:gray; font-weight:normal;'>Íå èçìåíÿòå, åñëè íå óâåðåíû.</div></td>
|
||||
<td class='content'><input type='text' name='mysql_codepage' class='sql_form' value='cp1251'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='title'><b>Òèï MySQL òàáëèö</b><div style='color:gray; font-weight:normal;'>Íå èçìåíÿòå, åñëè íå óâåðåíû.</div></td>
|
||||
<td class='content'><select name='mysql_tbl_type' class='sql_form'><option value='MyISAM'>MYISAM</option><option value='INNODB'>INNODB</option></select></td>
|
||||
</tr>";
|
||||
|
||||
return $extra;
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// WHEN SAVING TO CONF GLOBAL
|
||||
// Return errors in $errors[]
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function install_form_process()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// When processed, return all vars to save
|
||||
// in conf_global in the array $this->info_extra
|
||||
// This will also be saved into $INFO[] for
|
||||
// the installer
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! $_REQUEST['mysql_tbl_type'] OR ! $_REQUEST['mysql_codepage'] )
|
||||
{
|
||||
$this->errors[] = 'Âû îáÿçàíû çàïîëíèòü âñþ èíôîðìàöèþ î SQL ñåðâåðå!';
|
||||
return;
|
||||
}
|
||||
|
||||
$this->info_extra['mysql_tbl_type'] = $_REQUEST['mysql_tbl_type'];
|
||||
$this->info_extra['mysql_codepage'] = $_REQUEST['mysql_codepage'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user