Version 2.2.0 RC-1

This commit is contained in:
Neo committed 2025-12-19 00:22:37 -08:00
1 parent f73f8bff6d
commit 22f1b963ee
1034 files changed
+178610 -70897

No files matched your search

+113 -114
View File
@@ -2,23 +2,17 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| Invision Power Board v<{%dyn.down.var.human.version%}>
| ========================================
| by Matthew Mecham
| (c) 2001 - 2005 Invision Power Services, Inc.
| (c) 2001 - 2004 Invision Power Services
| http://www.invisionpower.com
| =============================================
| ========================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| Time: <{%dyn.down.var.time%}>
| Release: <{%dyn.down.var.md5%}>
| Email: matt@invisionpower.com
| 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
+---------------------------------------------------------------------------
|
| > IPB UPGRADE 1.x -> 2.0!
@@ -146,7 +140,7 @@ class upgrade_legacy
if ( $this->_check_for_two() )
{
$this->ipsclass->input['version'] = '200';
print "Âû, êàæåòñÿ, óæå èìååòå IPB 2.0.x &#151; îáíîâëåíèå íå òðåáóåòñÿ.";
print "You appear to be running IPB 2.0.x already and no upgrade is required.";
exit();
}
else if ( $this->ipsclass->DB->field_exists( 'sub_id', 'subscriptions' ) )
@@ -192,8 +186,8 @@ class upgrade_legacy
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Âû âûáðàëè îñòàíîâêó ïåðåä øàãîì: {$this->ipsclass->input['step']}</div>
<div class='tdrow1' style='padding:6px'>Ñêðèïò îáíîâëåíèÿ áûë îñòàíîâëåí ïî çàïðîñó...
<div class='maintitle'>You have chosen to stop before step {$this->ipsclass->input['step']}</div>
<div class='tdrow1' style='padding:6px'>The upgrade script has been been stopped as requested...
</div>
</div>
";
@@ -268,7 +262,7 @@ class upgrade_legacy
$major_pain_in_the_ass[] = array( 'tablefooter' , 'skin_topic' , 'TableFooter' );
$major_pain_in_the_ass[] = array( 'renderrow' , 'skin_topic' , 'RenderRow' );
foreach( $major_pain_in_the_ass as $relief => $preperation_h )
foreach( $major_pain_in_the_ass as $preperation_h )
{
$this->ipsclass->DB->do_update( 'skin_templates', array( 'func_name' => $preperation_h[0] ), "group_name='{$preperation_h[1]}' and func_name='{$preperation_h[2]}'" );
}
@@ -290,18 +284,18 @@ class upgrade_legacy
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Âàøå îáíîâëåíèå ïî÷òè çàâåðøåíî!</div>
<div class='tdrow1' style='padding:6px'>Ñêðèïò îáíîâëåíèÿ óñïåøíî ñäåëàë ñâîþ ðàáîòó è âû ñåé÷àñ èìååòå IPB 2.0.0</b>
<div class='maintitle'>Your upgrade is almost complete!</div>
<div class='tdrow1' style='padding:6px'>The upgrade script has been run successfully and you're now running IPB 2.0.0</b>
<br />
<br />
<strong>Ñåé÷àñ, ïîæàëóéñòà, ïîñåòèòå <a href='index.php'>îñíîâíóþ ñèñòåìó îáíîâëåíèÿ</a> äëÿ îáíîâëåíèÿ äî ïîñëåäíåé âåðñèè</strong>
<br /><br />Âñå âàøè òåêóùèå ñòèëè ïåðåìåùåíû â 2.0. Äëÿ èñïîëüçîâàíèÿ ýòèõ ñòèëåé âàì ïåðâîå, ÷òî íåîáõîäèìî ñäåëàòü:
<strong>Now visit <a href='index.php'>the upgrade system</a> to upgrade to the latest release</strong>
<br /><br />All of your current skins have been moved to a pre 2.0 parent. To use these skins, you'll need to first to the following:
<ul>
<li> Âîéòè â àäìèíöåíòð âàøåãî ôîðóìà
<li> Îòêðûòü áëîê &laquo;Ñòèëè&raquo; &gt; &laquo;Óòèëèòû äëÿ ñòèëåé&raquo;
<li> Èñïîëüçîâàòü óòèëèòó &laquo;Ïåðåñòðîéêà êåø ôàéëîâ&raquo; íà êàæäîì âàøåì îðèãèíàëüíîì ñòèëå äëÿ ñîçäàíèÿ êåø ôàéëîâ.
<li> Log into your Admin Control Panel
<li> Click on 'Skins & Templates' and then on 'Skin Tools'
<li> Use the tool 'Rebuild skin set cache on set...' on each of your original skins to rebuild their caches
</ul>
Ýòèì âû çàâåðøèòå èìïîðòèðîâàíèå âàøèõ ñòàðûõ ñòèëåé. Âû äîëæíû áóäåòå îòðåäàêòèðîâàòü, ÷òîáû äîáàâèòü â âàøåì íîâîì IPB 2.0.0 ñåêöèè è ïåðåèìåíîâàíèÿ íåêîòîðûõ ïðîöåäóð.<br><br>
This will complete the import of your old skins. You will need to edit them to add in the new IPB 2.0.0 sections and to account for some of the renaming procedures.
</div>
</div>
";
@@ -323,7 +317,7 @@ class upgrade_legacy
}
else
{
$msg = "<b>Ïåðåñòðîéêà ñäåëàíà &#151; çàâåðøåíèå...</b>";
$msg = "<b>Rebuild completed - finishing up...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg );
}
}
@@ -372,7 +366,7 @@ class upgrade_legacy
show_error("Error with ipb_settings.xml - could not process XML properly");
}
foreach( $xml->xml_array['settingexport']['settinggroup']['setting'] as $id => $entry )
foreach( $xml->xml_array['settingexport']['settinggroup']['setting'] as $entry )
{
if ( ! $entry['conf_key']['VALUE'] )
{
@@ -416,16 +410,16 @@ class upgrade_legacy
$newrow[$f] = $entry[ $f ]['VALUE'];
}
$db_string = $this->ipsclass->DB->compile_db_insert_string($newrow);
$query = "INSERT INTO ".SQL_PREFIX."conf_settings (" .$db_string['FIELD_NAMES']. ") VALUES (". $db_string['FIELD_VALUES'] .")";
$this->ipsclass->DB->do_insert( "conf_settings", $newrow );
if ( ! $this->ipsclass->DB->query($query) )
if ( $this->ipsclass->DB->failed )
{
$this->show_error($query."<br /><br />".$DB->error);
$query = array_pop( $this->ipsclass->DB->obj['cached_queries'] );
$this->show_error($query."<br /><br />".$this->ipsclass->DB->error);
}
}
$msg = "<b>Íàñòðîéêè èìïîðòèðîâàíû, äàëåå ïåðåñòðîåíèå è îáíîâëåíèå...</b>";
$msg = "<b>Settings imported, recache & rebuild next...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg );
}
@@ -519,10 +513,10 @@ class upgrade_legacy
if ( ! is_array( $xml->xml_array['templateexport']['templategroup']['template'] ) )
{
$this->show_error("Îøèáêà â ôàéëå ipb_templates.xml &#151; íåâîçìîæíî âûïîëíèòü ýòîò XML ôàéë");
$this->show_error("Error with ipb_templates.xml - could not process XML properly");
}
foreach( $xml->xml_array['templateexport']['templategroup']['template'] as $id => $entry )
foreach( $xml->xml_array['templateexport']['templategroup']['template'] as $entry )
{
$newrow = array();
@@ -533,13 +527,13 @@ class upgrade_legacy
$newrow['set_id'] = 1;
$newrow['updated'] = time();
$db_string = $this->ipsclass->DB->compile_db_insert_string($newrow);
$query = "INSERT INTO ".SQL_PREFIX."skin_templates (" .$db_string['FIELD_NAMES']. ") VALUES (". $db_string['FIELD_VALUES'] .")";
if ( ! $this->ipsclass->DB->query($query) )
$this->ipsclass->DB->do_insert( "skin_templates", $newrow );
if ( $this->ipsclass->DB->failed )
{
$query = array_pop( $this->ipsclass->DB->obj['cached_queries'] );
$this->show_error($query."<br /><br />".$this->ipsclass->DB->error);
}
}
}
//-------------------------------
@@ -562,10 +556,10 @@ class upgrade_legacy
if ( ! is_array( $xml->xml_array['macroexport']['macrogroup']['macro'] ) )
{
$this->show_error("Îøèáêà â ôàéëå ipb_templates.xml &#151; íåâîçìîæíî âûïîëíèòü ýòîò XML ôàéë");
$this->show_error("Error with ipb_macro.xml - could not process XML properly");
}
foreach( $xml->xml_array['macroexport']['macrogroup']['macro'] as $id => $entry )
foreach( $xml->xml_array['macroexport']['macrogroup']['macro'] as $entry )
{
$newrow = array();
@@ -573,13 +567,13 @@ class upgrade_legacy
$newrow['macro_replace'] = $entry[ 'macro_replace' ]['VALUE'];
$newrow['macro_set'] = 1;
$db_string = $this->ipsclass->DB->compile_db_insert_string($newrow);
$query = "INSERT INTO ".SQL_PREFIX."skin_macro (" .$db_string['FIELD_NAMES']. ") VALUES (". $db_string['FIELD_VALUES'] .")";
if ( ! $this->ipsclass->DB->query($query) )
$this->ipsclass->DB->do_insert( "skin_macro", $newrow );
if ( $this->ipsclass->DB->failed )
{
$query = array_pop( $this->ipsclass->DB->obj['cached_queries'] );
$this->show_error($query."<br /><br />".$this->ipsclass->DB->error);
}
}
}
//-------------------------------
@@ -592,19 +586,19 @@ class upgrade_legacy
'set_css' => $CSS,
);
$str = $this->ipsclass->DB->compile_db_update_string($wrapper_record);
$query = "UPDATE ".SQL_PREFIX."skin_sets set ".$str." where set_skin_set_id=1";
if ( ! $this->ipsclass->DB->query($query) )
$this->ipsclass->DB->do_update( "skin_sets", $wrapper_record, "set_skin_set_id=1" );
if ( $this->ipsclass->DB->failed )
{
$query = array_pop( $this->ipsclass->DB->obj['cached_queries'] );
$this->show_error($query."<br /><br />".$this->ipsclass->DB->error);
}
}
//-----------------------------------------
// Import XML
//-----------------------------------------
$msg = "<b>Ñòèëè èìïîðòèðîâàíû, äàëåå èìïîðòèðîâàíèå íàñòðîåê...</b>";
$msg = "<b>Skins imported, importing settings...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg );
}
@@ -623,8 +617,8 @@ class upgrade_legacy
}
else
{
$msg = "<b>Îïòèìèçàöèÿ çàâåðøåíà, äàëåå èìïîðò íîâûõ ñòèëåé...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." çàïðîñîâ óñïåøíî ñäåëàíî!" );
$msg = "<b>Optimization completed, new skins import next...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." queries run successfully!" );
}
}
@@ -643,8 +637,8 @@ class upgrade_legacy
}
else
{
$msg = "<b>Îïòèìèçàöèÿ íà÷àòà...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." çàïðîñîâ óñïåøíî ñäåëàíî!" );
$msg = "<b>Optimization started...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." queries run successfully!" );
}
}
@@ -662,8 +656,8 @@ class upgrade_legacy
}
else
{
$msg = "<b>Ñòàðûå òàáëèöû óäàëåíû, äàëåå îïòèìèçàöèÿ...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." çàïðîñîâ óñïåøíî ñäåëàíî!" );
$msg = "<b>Old tables dropped, optimization next...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." queries run successfully!" );
}
}
@@ -681,8 +675,8 @@ class upgrade_legacy
}
else
{
$msg = "<b>Âñòàâêà çàâåðøåíà, äàëåå óäàëåíèå ñòàðûõ òàáëèö...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." çàïðîñîâ óñïåøíî ñäåëàíî!" );
$msg = "<b>Inserts completed, dropping old tables next...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." queries run successfully!" );
}
}
@@ -700,8 +694,8 @@ class upgrade_legacy
}
else
{
$msg = "<b>Äðóãèå òàáëèöû âñòàâëåíû, äàëåå êîíâåðòèðîâàíèå ôîðóìîâ...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." çàïðîñîâ óñïåøíî ñäåëàíî!" );
$msg = "<b>Other tables altered, converting forums next...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." queries run successfully!" );
}
}
@@ -719,8 +713,8 @@ class upgrade_legacy
}
else
{
$msg = "<b>Òàáëèöà ñ ïîëüçîâàòåëÿìè âñòàâëåíà, äàëåå äðóãèå òàáëèöû...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." çàïðîñîâ óñïåøíî ñäåëàíî!" );
$msg = "<b>Members table altered, other tables next...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." queries run successfully!" );
}
}
@@ -738,8 +732,8 @@ class upgrade_legacy
}
else
{
$msg = "<b>Òàáëèöà ñ òåìàìè âñòàâëåíà, äàëåå âñòàâêà òàáëèöû ñ ïîëüçîâàòåëÿìè...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." çàïðîñîâ óñïåøíî ñäåëàíî!" );
$msg = "<b>Topic table altered, altering members table next...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." queries run successfully!" );
}
}
@@ -757,8 +751,8 @@ class upgrade_legacy
}
else
{
$msg = "<b>Òàáëèöà ñ ñîîáùåíèÿìè âñòàâëåíà, äàëåå âñòàâêà òàáëèöû ñ òåìàìè...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." çàïðîñîâ óñïåøíî ñäåëàíî!" );
$msg = "<b>Post table altered, altering topic table next...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." queries run successfully!" );
}
}
@@ -769,7 +763,8 @@ class upgrade_legacy
function step_13()
{
$f = $this->ipsclass->DB->query("SELECT * FROM ibf_forums");
$this->ipsclass->DB->build_query( array( 'select' => '*', 'from' => 'forums' ) );
$f = $this->ipsclass->DB->exec_query();
$final = array();
@@ -795,7 +790,7 @@ class upgrade_legacy
$this->ipsclass->DB->do_update( 'topic_mmod', array( 'mm_forums' => $ff ), 'mm_id='.$id );
}
$msg = "<b>Ìóëüòè-ìîäåðàöèÿ òåì êîíâåðòèðîâàíà, âñòàâêà òàáëèö, ñòàäèÿ 2...</b>";
$msg = "<b>Topic multi-moderation converted, alterting tables, stage 2...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg );
}
@@ -888,12 +883,12 @@ class upgrade_legacy
}
$msg = "<b>Ëè÷íûå ñîîáùåíèÿ: îò $start äî $end çàâåðøåíî....</b>";
$msg = "<b>Personal messages: $start to $end completed....</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}&st={$end}", $msg );
}
else
{
$msg = "<b>Ëè÷íûå ñîîáùåíèÿ ñêîíâåðòèðîâàíû, ïðîöåññ îáíîâëåíèÿ ìóëüòè-ìîäåðàöèè òåì...</b>";
$msg = "<b>Personal messages converted, proceeding to update topic multi-moderation...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg );
}
}
@@ -918,7 +913,8 @@ class upgrade_legacy
$max = 0;
$this->ipsclass->DB->query("SELECT id FROM ibf_members where id > $end");
$this->ipsclass->DB->build_query( array( 'select' => 'id', 'from' =>'members', 'where' => "id > {$end}" ) );
$this->ipsclass->DB->exec_query();
$max = $this->ipsclass->DB->fetch_row();
@@ -955,14 +951,14 @@ class upgrade_legacy
if ( ! $found and ! $max['id'] )
{
$msg = "<b>Äîáàâëåíèå ñèñòåìû àâòîðèçàöèè çàâåðøåíî, êîíâåðòèðîâàíèå ëè÷íûõ ñîîáùåíèé...</b>";
$msg = "<b>Converge completed, converting personal messages...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg );
}
else
{
$this->ipsclass->next_step--;
$msg = "<b>Äîáàâëåíèå ñèñòåìû àâòîðèçàöèè: îò $start äî $end çàâåðøåíî....</b>";
$msg = "<b>Converge added: $start to $end completed....</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}&st={$end}", $msg );
}
}
@@ -1006,8 +1002,9 @@ class upgrade_legacy
{
$first = 0;
$this->ipsclass->DB->query( "SELECT id, name, email FROM ibf_members WHERE email='{$email}' ORDER BY joined ASC" );
$this->ipsclass->DB->build_query( array( 'select' => 'id,name,email', 'from' => 'members', 'where' => "email='{$email}'", 'order' => 'joined' ) );
$this->ipsclass->DB->exec_query();
while( $r = $this->ipsclass->DB->fetch_row() )
{
// First?
@@ -1034,12 +1031,12 @@ class upgrade_legacy
$this->ipsclass->next_step--;
$msg = "<b>Ïðîâåðêà e-mail àäðåñîâ: îò $start äî $end çàâåðøåíî....</b>";
$msg = "<b>Members email addresses checked $start to $end completed....</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}&st={$end}", $msg );
}
else
{
$msg = "<b>E-mail àäðåñà ïîëüçîâàòåëåé ïðîâåðåíû, äîáàâëåíèå ñèñòåìû àâòîðèçàöèè...</b>";
$msg = "<b>Members email addresses checked, adding to converge...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg );
}
}
@@ -1111,12 +1108,12 @@ class upgrade_legacy
}
}
$msg = "<b>Êîíâåðòèðîâàíèå ïîëüçîâàòåëåé: îò $start äî $end çàâåðøåíî....</b>";
$msg = "<b>Members adjusted $start to $end completed....</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}&st={$end}", $msg );
}
else
{
$msg = "<b>Êîíâåðòèðîâàíèå ïîëüçîâàòåëåé çàâåðøåíî, ïðîâåðêà e-mail àäðåñîâ ïîëüçîâàòåëåé äëÿ ñèñòåìû àâòîðèçàöèè...</b>";
$msg = "<b>Members converted, making members email addresses safe for converge...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg );
}
}
@@ -1183,12 +1180,12 @@ class upgrade_legacy
$this->ipsclass->DB->simple_exec_query( array( 'update' => 'topics', 'set' => 'topic_hasattach=topic_hasattach+1', 'where' => 'tid='.$r['topic_id'] ) );
}
$msg = "<b>Ïðèêðåïëåííûå ôàéëû: îò $start äî $end çàâåðøåíî....</b>";
$msg = "<b>Attachments $start to $end completed....</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}&st={$end}", $msg );
}
else
{
$msg = "<b>Ïðèêðåïëåííûå ôàéëû ñêîíâåðòèðîâàíû, ïåðåíîñ ïîëüçîâàòåëåé...</b>";
$msg = "<b>Attachments converted, converting members...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg );
}
}
@@ -1207,7 +1204,7 @@ class upgrade_legacy
}
else
{
$msg = "<b>Ôîðóìû ñêîíâåðòèðîâàíû, äàëåå êîíâåðòèðîâàíèå ïðèêðåïëåííûõ ôàéëîâ...</b>";
$msg = "<b>Forums converted, converting attachments next...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg );
}
}
@@ -1226,8 +1223,8 @@ class upgrade_legacy
}
else
{
$msg = "<b>Äðóãèå òàáëèöû âñòàâëåíû, äàëåå êîíâåðòèðîâàíèå ôîðóìîâ...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." çàïðîñîâ óñïåøíî ñäåëàíî!" );
$msg = "<b>Other tables altered, converting forums next...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." queries run successfully!" );
}
}
@@ -1245,8 +1242,8 @@ class upgrade_legacy
}
else
{
$msg = "<b>Òàáëèöà ïîëüçîâàòåëåé âñòàâëåíà, äàëåå äðóãèå òàáëèöû...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." çàïðîñîâ óñïåøíî ñäåëàíî!" );
$msg = "<b>Members table altered, other tables next...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." queries run successfully!" );
}
}
@@ -1264,8 +1261,8 @@ class upgrade_legacy
}
else
{
$msg = "<b>Òàáëèöà ñ òåìàìè âñòàâëåíà, äàëåå âñòàâêà òàáëèöû ñ ïîëüçîâàòåëÿìè...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." çàïðîñîâ óñïåøíî ñäåëàíî!" );
$msg = "<b>Topic table altered, altering members table next...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." queries run successfully!" );
}
}
@@ -1283,8 +1280,8 @@ class upgrade_legacy
}
else
{
$msg = "<b>Òàáëèöà ñ ñîîáùåíèÿìè âñòàâëåíà, äàëåå âñòàâêà òàáëèöû ñ òåìàìè...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." çàïðîñîâ óñïåøíî ñäåëàíî!" );
$msg = "<b>Post table altered, altering topic table next...</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." queries run successfully!" );
}
}
@@ -1302,8 +1299,8 @@ class upgrade_legacy
}
else
{
$msg = "<b>Íîâûå òàáëèöû ñîçäàíû. Âñòàâêà òàáëèö (÷àñòü 1, ñåêöèÿ 1 &#151; òàáëèöà ñ ñîîáùåíèÿìè)</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." çàïðîñîâ óñïåøíî ñäåëàíî!" );
$msg = "<b>New tables created. Altering tables (Part 1, section 1 - post table)</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." queries run successfully!" );
}
}
@@ -1321,8 +1318,8 @@ class upgrade_legacy
}
else
{
$msg = "<b>Ïîäíÿòà òàáëèöà ñ ôîðóìàìè &#151; äàëåå ñîçäàíèå íîâûõ òàáëèö....</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." çàïðîñîâ óñïåøíî ñäåëàíî!" );
$msg = "<b>Forums table backed up - creating new tables next....</b>";
$this->ipsclass->core->redirect( "{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}", $msg ."<br /><br />".intval($this->ipsclass->sql->sqlcount)." queries run successfully!" );
}
}
@@ -1338,14 +1335,16 @@ class upgrade_legacy
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Äîáðî ïîæàëîâàòü ñèñòåìó îáíîâëåíèÿ IPB ñ ".UPGRADE_FROM." â 2.0.0</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ñêðèïò îáíîâëåíèÿ áóäåò îáíîâëÿòü âàøó ".UPGRADE_FROM.".x â IPB 2.0.0</b>
<br /><br />Âî âðåìÿ ïðîöåññà îáíîâëåíèÿ áóäåò íåñêîëüêî øàãîâ äëÿ îáíîâëåíèÿ âàøèõ SQL òàáëèö è êîíâåðòèðîâàíèÿ òåêóùèõ äàííûõ â íîâóþ ñèñòåìó. Åñëè âû èìååòå áîëüøîé ôîðóì, ðåêîìåíäóåì îçíàêîìèòüñÿ ñ èíñòðóêöèåé
ïî îáíîâëåíèþ áîëüøèõ ôîðóìîâ > <a href='{$this->ipsclass->vars['board_url']}/upgrade/manual_upgradekit/readme.txt'>upgrade/manual_upgradekit/readme.txt</a>.
<br /><br /><span style='color:red'><b>ÂÍÈÌÀÍÈÅ: Ýòîò ñêðèïò îáíîâëåíèÿ áóäåò îáíîâëÿòü âàøó òåêóùóþ áàçó äàííûõ è âåðíóòüñÿ íà ñòàðóþ âåðñèþ ôîðóìà óæå áóäåò íåâîçìîæíî!
<br />Ïîæàëóéñòà ñîõðàíèòå âàøó áàçó äàííûõ è ôàéëû (backup) ïåðåä òåì, êàê íà÷àòü îáíîâëåíèå. Ýòî ñäåëàåò âîçìîæíûì áûñòðî âåðíóòü ñòàðûé ôîðóì, åñëè ó âàñ âîçíèêíóò ñåðüåçíûå îøèáêè ïðè îáíîâëåíèè.
<br />Ìû íå ìîæåì ãàðàíòèðîâàòü, ÷òî ïðîöåññ îáíîâëåíèÿ ïðîéäåò áåç ïðîáëåì, èìåííî ïîýòîìó ìû ïðîñèì âàñ ñäåëàòü êîïèþ âàøèõ ôàéëîâ è áàçû ïåðåä îáíîâëåíèåì</span>
<br /><br />Ïåðâûé øàã: Êîïèðîâàíèå SQL òàáëèö äëÿ èñïîëüçîâàíèÿ â ïðîãðàììå êîíâåðòèðîâàíèÿ.
<div class='maintitle'>Welcome to the IPB ".UPGRADE_FROM." -> 2.0.x Upgrade System</div>
<div class='tdrow1' style='padding:6px'>This upgrade script will upgrade your ".UPGRADE_FROM.".x board to IPB 2.0.x</b>
<br /><br />There are quite a few steps that need to be performed to update your SQL tables and convert the current data over to the new system. It is highly recommended for large boards,
that you manually update your database instead of running this upgrade script. Depending upon the size of your database, this script can timeout while the database changes
are being made. If you wish to manually upgrade, please look to <a href='{$this->ipsclass->vars['board_url']}/upgrade/manual_upgradekit/readme.txt'>upgrade/manual_upgradekit/readme.txt</a> for more information.
<br /><br /><span style='color:red'><b>WARNING: This upgrade script WILL upgrade your current database tables AND there is NO 'downgrade' script!
<br />PLEASE ensure that you have a very
recent SQL back-up so that you can restore your working board quickly if you need to do so.
<br />We cannot stress how important it is to ensure that you have a backup of this database before continuing</span>
<br /><br />First step: Copying drastically altered SQL tables for use later in the convert program.
<br /><br />
";
@@ -1372,7 +1371,7 @@ class upgrade_legacy
{
if ( ! file_exists($cf) )
{
$warnings[] = "Íåâîçìîæíî íàéòè ôàéë '$cf'.";
$warnings[] = "Cannot locate the file '$cf'.";
}
}
@@ -1380,7 +1379,7 @@ class upgrade_legacy
{
if ( ! is_writeable($cf) )
{
$warnings[] = "Íåâîçìîæíî ïðîèçâåñòè çàïèñü â ôàéë èëè ïàïêó '$cf'. Ïîæàëóéñòà ñäåëàéòå ïðàâà (CHMOD) 0777.";
$warnings[] = "Cannot write to the file or folder '$cf'. Please CHMOD to 0777.";
}
}
@@ -1392,17 +1391,17 @@ class upgrade_legacy
if ($phpversion < '4.1.0')
{
$warnings[] = "<b>Âû íå ìîæåòå óñòàíàâëèâàòü Invision Power Board. Invision Power Board òðåáóåò PHP âåðñèè 4.1.0 èëè âûøå.</b>";
$warnings[] = "<b>You cannot install Invision Power Board. Invision Power Board requires PHP Version 4.1.0 or better.</b>";
}
if ( ! function_exists('get_cfg_var') )
{
$warnings[] = "<b>Âû íå ìîæåòå óñòàíàâëèâàòü Invision Power Board. Âàø PHP íå äîñòàòî÷åí äëÿ çàïóñêà IPB.</b>";
$warnings[] = "<b>You cannot install Invision Power Board. Your PHP installation isn't sufficient to run IPB.</b>";
}
if ( ! function_exists('xml_parse_into_struct') )
{
$warnings[] = "<b>Âû íå ìîæåòå óñòàíàâëèâàòü Invision Power Board. IPB òðåáóåò, ÷òîáû XML ôóíêöèè â PHP áûëè âêëþ÷åíû, ïîæàëóéñòà ñîîáùèòå âàøåìó õîñòèíã-ïðîâàéäåðó, ÷òîáû âêëþ÷èë âàì XML.</b>";
$warnings[] = "<b>You cannot install Invision Power Board. IPB requires that the XML functions in PHP are enabled, please ask your host to enable XML.</b>";
}
//----------------------------------
@@ -1416,15 +1415,15 @@ class upgrade_legacy
$this->ipsclass->template->content .= "<br /><br />
<div class='warnbox'>
<strong>Âíèìàíèå!</strong>
<b>Íàéäåíû îøèáêè, òðåáóþùèå óñòðàíåíèÿ. Áåç ýòîãî ïðîäîëæåíèå íåâîçìîæíî!</b>
<strong>Warning!</strong>
<b>The following errors must be rectified before continuing!</b>
<br><br>
$err_string
</div>";
}
else
{
$this->ipsclass->template->content .= "<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}'>Äàëåå...</a></span></div>";
$this->ipsclass->template->content .= "<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}'>Proceed...</a></span></div>";
}
$this->ipsclass->template->content .= "</div></div>";
@@ -1465,9 +1464,9 @@ class upgrade_legacy
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Error!</div>
<div class='tdrow1' style='padding:6px'>Ñêðèïò âîçâðàòèë ñëåäóþùóþ îøèáêó:</b>
<div class='tdrow1' style='padding:6px'>The following error has been returned:</b>
<br /><br />$msg
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}'>Âñå ðàâíî ïðîäîëæèòü?</a></span></div>
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->ipsclass->base_url}&act=work&version={$this->ipsclass->input['version']}&step={$this->ipsclass->next_step}&dieafterstep={$this->ipsclass->input['dieafterstep']}'>Continue regardless?</a></span></div>
</div>
</div>
";