Version 2.1.7

This commit is contained in:
Neo committed 2025-12-19 00:21:15 -08:00
1 parent 0eecc172d9
commit f73f8bff6d
941 files changed
+215301 -103093

No files matched your search

+270 -294
View File
@@ -2,17 +2,23 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 LOADER
@@ -24,7 +30,7 @@
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.";
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
@@ -45,138 +51,17 @@ class core_functions
function upgrade_complete()
{
global $ibforums, $DB, $std;
$ibforums->template->content .= "
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>IPB Upgrade Complete!</div>
<div class='tdrow1' style='padding:6px'>You have now been upgraded!
<div class='maintitle'>Îáíîâëåíèå IPB çàâåðøåíî!</div>
<div class='tdrow1' style='padding:6px'>Âàø ôîðóì óñïåøíî îáíîâëåí!
<br /><br />
You may want to disable permissions on the script 'upgrade/index.php' to increase security or rename the 'upgrade' directory.
Âû äîëæíû îòêëþ÷èòü ïðàâà íà âûïîëíåíèå ñêðèïòà /upgrade/index.php èëè ïåðåèìåíîâàòü äèðåêòîðèþ /upgrade/. Èíà÷å ó âàñ ìîãóò áûòü ïðîáëåìû ñ áåçîïàñíîñòüþ.
</div>
</div>
";
$ibforums->template->output();
}
/*-------------------------------------------------------------------------*/
// REBUILD SETTINGS
/*-------------------------------------------------------------------------*/
function rebuild_settings()
{
global $ibforums, $DB, $std;
$updated = 0;
$inserted = 0;
$need_update = array();
if ( ! @file_exists( THIS_PATH.'upg_'.$ibforums->current_version.'/ipb_settings_partial.xml' ) )
{
$ibforums->core->redirect( "index.php?act=recache&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "No settings to import or update, proceeding to rebuild caches..." );
}
$content = implode( '', @file( THIS_PATH.'upg_'.$ibforums->current_version.'/ipb_settings_partial.xml' ) );
//-------------------------------
// Get current settings.
//-------------------------------
$cur_settings = array();
$DB->simple_construct( array( 'select' => 'conf_id, conf_key',
'from' => 'conf_settings',
'order' => 'conf_id' ) );
$DB->simple_exec();
while ( $r = $DB->fetch_row() )
{
$cur_settings[ $r['conf_key'] ] = $r['conf_id'];
}
//-------------------------------
// Get xml mah-do-dah
//-------------------------------
require( KERNEL_PATH.'class_xml.php' );
$xml = new class_xml();
//-------------------------------
// Unpack the datafile
//-------------------------------
$xml->xml_parse_document( $content );
//-------------------------------
// pArse
//-------------------------------
$fields = array( 'conf_title' , 'conf_description', 'conf_group' , 'conf_type' , 'conf_key' , 'conf_default',
'conf_extra' , 'conf_evalphp' , 'conf_protected', 'conf_position', 'conf_start_group', 'conf_end_group',
'conf_help_key', 'conf_add_cache' );
foreach( $xml->xml_array['settingexport']['settinggroup']['setting'] as $id => $entry )
{
$newrow = array();
//-----------------------------------
// Make PHP slashes safe
//-----------------------------------
$entry['conf_evalphp']['VALUE'] = str_replace( '\\', '\\\\', $entry['conf_evalphp']['VALUE'] );
foreach( $fields as $f )
{
$newrow[$f] = $entry[ $f ]['VALUE'];
}
if ( $cur_settings[ $entry['conf_key']['VALUE'] ] )
{
//-----------------------------------
// Update
//-----------------------------------
$DB->do_update( 'conf_settings', $newrow, 'conf_id='.$cur_settings[ $entry['conf_key']['VALUE'] ] );
$updated++;
}
else
{
//-----------------------------------
// INSERT
//-----------------------------------
$DB->do_insert( 'conf_settings', $newrow );
$inserted++;
}
$need_update[ $entry['conf_group']['VALUE'] ] = $entry['conf_group']['VALUE'];
}
//-----------------------------------------
// Update group counts...
//-----------------------------------------
if ( count( $need_update ) )
{
foreach( $need_update as $id )
{
$conf = $DB->simple_exec_query( array( 'select' => 'count(*) as count', 'from' => 'conf_settings', 'where' => 'conf_group='.$id ) );
$count = intval($conf['count']);
$DB->do_update( 'conf_settings_titles', array( 'conf_title_count' => $count ), 'conf_title_id='.$id );
}
}
//-----------------------------------
// Boink..
//-----------------------------------
$ibforums->core->redirect( "index.php?act=recache&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$updated settings updated $inserted settings inserted, proceeding to rebuild caches..." );
$this->ipsclass->template->output();
}
/*-------------------------------------------------------------------------*/
@@ -185,36 +70,35 @@ class core_functions
function rebuild_templates_cache()
{
global $ibforums, $DB, $std;
//-----------------------------------
// Get ACP library
//-----------------------------------
require_once( ROOT_PATH.'sources/admin/admin_cache_functions.php' );
$acp = new admin_cache_functions();
require_once( ROOT_PATH.'sources/lib/admin_cache_functions.php' );
$acp = new admin_cache_functions();
$acp->ipsclass =& $this->ipsclass;
$justdone = intval($ibforums->input['justdone']);
$justdone = intval($this->ipsclass->input['justdone']);
$justdone = $justdone ? $justdone : 1;
//-----------------------------------
// Get skins
//-----------------------------------
$DB->simple_construct( array( 'select' => '*',
'from' => 'skin_sets',
'where' => 'set_skin_set_id > '.$justdone,
'order' => 'set_skin_set_id',
'limit' => array( 0, 1 )
) );
$this->ipsclass->DB->simple_construct( array( 'select' => '*',
'from' => 'skin_sets',
'where' => 'set_skin_set_id > '.$justdone,
'order' => 'set_skin_set_id',
'limit' => array( 0, 1 )
) );
$DB->simple_exec();
$this->ipsclass->DB->simple_exec();
//-----------------------------------
// Got a biggun?
//-----------------------------------
$r = $DB->fetch_row();
$r = $this->ipsclass->DB->fetch_row();
if ( $r['set_skin_set_id'] )
{
@@ -222,11 +106,11 @@ class core_functions
$extra = implode( "<br />", $acp->messages );
$ibforums->core->redirect( "index.php?act=templatescache&justdone={$r['set_skin_set_id']}&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "Rebuild cache for skin set {$r['set_name']}<br />{$extra}<br />Proceeding to the next skin..." );
$this->ipsclass->core->redirect( "index.php?act=templatescache&justdone={$r['set_skin_set_id']}&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "Ïåðåñòðîéêà êåøà äëÿ ñòèëÿ &laquo;{$r['set_name']}&raquo;<br />{$extra}<br />Äàëåå ïåðåõîäèì ê ñëåäóþùåìó ñòèëþ..." );
}
else
{
$ibforums->core->redirect( "index.php?act=finish&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "No more skins to rebuild..." );
$this->ipsclass->core->redirect( "index.php?act=finish&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "Íåò áîëüøå ñòèëåé äëÿ ïåðåñòðîéêè..." );
}
}
@@ -236,8 +120,6 @@ class core_functions
function rebuild_templates()
{
global $ibforums, $DB, $std;
//-----------------------------------
// Get XML
//-----------------------------------
@@ -245,6 +127,7 @@ class core_functions
require_once( KERNEL_PATH.'class_xml.php' );
$xml = new class_xml();
$xml->lite_parser = 1;
//-----------------------------------
// Get XML file (TEMPLATES)
@@ -266,34 +149,34 @@ class core_functions
if ( ! is_array( $xml->xml_array['templateexport']['templategroup']['template'] ) )
{
install_error("Error with ipb_templates.xml - could not process XML properly");
install_error("Îøèáêà â ôàéëå ipb_templates.xml &#151; íåâîçìîæíî âûïîëíèòü ýòîò XML ôàéë");
}
foreach( $xml->xml_array['templateexport']['templategroup']['template'] as $id => $entry )
{
$row = $DB->simple_exec_query( array( 'select' => 'suid',
'from' => 'skin_templates',
'where' => "group_name='{$entry[ 'group_name' ]['VALUE']}' AND func_name='{$entry[ 'func_name' ]['VALUE']}' and set_id=1"
) );
$row = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'suid',
'from' => 'skin_templates',
'where' => "group_name='{$entry[ 'group_name' ]['VALUE']}' AND func_name='{$entry[ 'func_name' ]['VALUE']}' and set_id=1"
) );
if ( $row['suid'] )
{
$DB->do_update( 'skin_templates', array( 'func_data' => $entry[ 'func_data' ]['VALUE'],
'section_content' => $entry[ 'section_content' ]['VALUE'],
'updated' => time()
)
, 'suid='.$row['suid'] );
$this->ipsclass->DB->do_update( 'skin_templates', array( 'func_data' => $entry[ 'func_data' ]['VALUE'],
'section_content' => $entry[ 'section_content' ]['VALUE'],
'updated' => time()
)
, 'suid='.$row['suid'] );
}
else
{
$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->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
) );
}
}
@@ -301,7 +184,7 @@ class core_functions
// Boink..
//-----------------------------------
$ibforums->core->redirect( "index.php?act=templatescache&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "Master templates rebuilt, proceeding to recache templates..." );
$this->ipsclass->core->redirect( "index.php?act=templatescache&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "Ïåðåñòðîéêà ìàñòåð øàáëîíîâ, äàëåå ïåðåñòðîéêà îáû÷íûõ øàáëîíîâ..." );
}
/*-------------------------------------------------------------------------*/
@@ -310,152 +193,166 @@ class core_functions
function rebuild_caches()
{
global $ibforums, $DB, $std;
//-------------------------------------------------------------
// BBCODE
//-------------------------------------------------------------
$ibforums->cache['bbcode'] = array();
$this->ipsclass->cache['bbcode'] = array();
$DB->simple_construct( array( 'select' => '*', 'from' => 'custom_bbcode' ) );
$bbcode = $DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'custom_bbcode' ) );
$bbcode = $this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row($bbcode) )
while ( $r = $this->ipsclass->DB->fetch_row($bbcode) )
{
$ibforums->cache['bbcode'][] = $r;
$this->ipsclass->cache['bbcode'][] = $r;
}
$std->update_cache( array( 'name' => 'bbcode', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'bbcode', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// Forum cache
//-------------------------------------------------------------
$std->update_forum_cache();
$this->ipsclass->update_forum_cache();
//-------------------------------------------------------------
// Group Cache
//-------------------------------------------------------------
$ibforums->cache['group_cache'] = array();
$this->ipsclass->cache['group_cache'] = array();
$DB->simple_construct( array( 'select' => "*",
$this->ipsclass->DB->simple_construct( array( 'select' => "*",
'from' => 'groups'
) );
$DB->simple_exec();
$this->ipsclass->DB->simple_exec();
while ( $i = $DB->fetch_row() )
while ( $i = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['group_cache'][ $i['g_id'] ] = $i;
$this->ipsclass->cache['group_cache'][ $i['g_id'] ] = $i;
}
$std->update_cache( array( 'name' => 'group_cache', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'group_cache', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// Systemvars
//-------------------------------------------------------------
$ibforums->cache['systemvars'] = array();
$this->ipsclass->cache['systemvars'] = array();
$result = $DB->simple_exec_query( array( 'select' => 'count(*) as cnt', 'from' => 'mail_queue' ) );
$result = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'count(*) as cnt', 'from' => 'mail_queue' ) );
$ibforums->cache['systemvars']['mail_queue'] = intval( $result['cnt'] );
$ibforums->cache['systemvars']['task_next_run'] = time() + 3600;
$this->ipsclass->cache['systemvars']['mail_queue'] = intval( $result['cnt'] );
$this->ipsclass->cache['systemvars']['task_next_run'] = time() + 3600;
$std->update_cache( array( 'name' => 'systemvars', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'systemvars', 'array' => 1, 'deletefirst' => 1 ) );
//-----------------------------------------
// Moderators
//-----------------------------------------
$this->ipsclass->cache['moderators'] = array();
require_once( ROOT_PATH.'sources/action_admin/moderator.php' );
$mod = new ad_moderator();
$mod->ipsclass =& $this->ipsclass;
$mod->rebuild_moderator_cache();
//-----------------------------------------
// Cal events / Birthdays
//-----------------------------------------
require_once( ROOT_PATH . 'sources/action_admin/calendars.php' );
$calendars = new ad_calendars();
$calendars->ipsclass =& $this->ipsclass;
$calendars->calendar_rebuildcache( 0 );
//-------------------------------------------------------------
// Ranks
//-------------------------------------------------------------
$ibforums->cache['ranks'] = array();
$this->ipsclass->cache['ranks'] = array();
$DB->simple_construct( array( 'select' => 'id, title, pips, posts',
'from' => 'titles',
'order' => "posts DESC",
) );
$this->ipsclass->DB->simple_construct( array( 'select' => 'id, title, pips, posts',
'from' => 'titles',
'order' => "posts DESC",
) );
$DB->simple_exec();
$this->ipsclass->DB->simple_exec();
while ($i = $DB->fetch_row())
while ($i = $this->ipsclass->DB->fetch_row())
{
$ibforums->cache['ranks'][ $i['id'] ] = array(
'TITLE' => $i['title'],
'PIPS' => $i['pips'],
'POSTS' => $i['posts'],
);
$this->ipsclass->cache['ranks'][ $i['id'] ] = array(
'TITLE' => $i['title'],
'PIPS' => $i['pips'],
'POSTS' => $i['posts'],
);
}
$std->update_cache( array( 'name' => 'ranks', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'ranks', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// SETTINGS
//-------------------------------------------------------------
$ibforums->cache['settings'] = array();
$DB->simple_construct( array( 'select' => '*', 'from' => 'conf_settings', 'where' => 'conf_add_cache=1' ) );
$info = $DB->simple_exec();
while ( $r = $DB->fetch_row($info) )
{
$ibforums->cache['settings'][ $r['conf_key'] ] = $r['conf_value'] != "" ? $r['conf_value'] : $r['conf_default'];
}
require_once( ROOT_PATH . 'sources/action_admin/settings.php' );
$settings = new ad_settings();
$settings->ipsclass =& $this->ipsclass;
$settings->setting_rebuildcache();
$std->update_cache( array( 'name' => 'settings', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// EMOTICONS
//-------------------------------------------------------------
$ibforums->cache['emoticons'] = array();
$this->ipsclass->cache['emoticons'] = array();
$DB->simple_construct( array( 'select' => 'typed,image,clickable,emo_set', 'from' => 'emoticons' ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'typed,image,clickable,emo_set', 'from' => 'emoticons' ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row() )
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['emoticons'][] = $r;
$this->ipsclass->cache['emoticons'][] = $r;
}
$std->update_cache( array( 'name' => 'emoticons', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'emoticons', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// LANGUAGES
//-------------------------------------------------------------
$ibforums->cache['languages'] = array();
$this->ipsclass->cache['languages'] = array();
$DB->simple_construct( array( 'select' => 'ldir,lname', 'from' => 'languages' ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'ldir,lname', 'from' => 'languages' ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row() )
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['languages'][] = $r;
$this->ipsclass->cache['languages'][] = $r;
}
$std->update_cache( array( 'name' => 'languages', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'languages', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// ATTACHMENT TYPES
//-------------------------------------------------------------
$ibforums->cache['attachtypes'] = array();
$this->ipsclass->cache['attachtypes'] = array();
$DB->simple_construct( array( 'select' => 'atype_extension,atype_mimetype,atype_post,atype_photo,atype_img', 'from' => 'attachments_type', 'where' => "atype_photo=1 OR atype_post=1" ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'atype_extension,atype_mimetype,atype_post,atype_photo,atype_img', 'from' => 'attachments_type', 'where' => "atype_photo=1 OR atype_post=1" ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row() )
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['attachtypes'][ $r['atype_extension'] ] = $r;
$this->ipsclass->cache['attachtypes'][ $r['atype_extension'] ] = $r;
}
$std->update_cache( array( 'name' => 'attachtypes', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'attachtypes', 'array' => 1, 'deletefirst' => 1 ) );
$ibforums->core->redirect( "index.php?act=templates&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "Caches rebuilt, proceeding to rebuild templates..." );
$this->ipsclass->core->redirect( "index.php?act=templates&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "Êåøè ïåðåñòðîåíû, äàëåå ïåðåñòðîéêà øàáëîíîâ..." );
}
@@ -465,42 +362,118 @@ class core_functions
function module_complete()
{
global $ibforums, $DB, $std;
$message = array();
//--------------------------------
// Upgrade templates
//--------------------------------
if ( @file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/components.php' ) )
{
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/components.php' );
$this->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' );
$message[] = "Øàáëîíû êîìïîíåíòîâ îáíîâëåíû...";
}
//--------------------------------
// ACP Perms
//--------------------------------
if ( @file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/ipb_acpperms.xml' ) )
{
//-------------------------------
// Load module...
//-------------------------------
require_once( ROOT_PATH . 'sources/action_admin/acppermissions.php' );
$settings = new ad_acppermissions();
$settings->ipsclass =& $this->ipsclass;
//-------------------------------
// Set location
//-------------------------------
$this->ipsclass->input['file_location'] = UPGRADE_DIR.'/upg_'.$this->ipsclass->current_upgrade.'/ipb_acpperms.xml';
//-------------------------------
// Run it
//-------------------------------
$settings->acpperms_xml_import( 1 );
$message[] = $this->ipsclass->main_msg;
}
//--------------------------------
// Settings
//--------------------------------
if ( @file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/ipb_settings_partial.xml' ) )
{
//-------------------------------
// Load module...
//-------------------------------
require_once( ROOT_PATH . 'sources/action_admin/settings.php' );
$settings = new ad_settings();
$settings->ipsclass =& $this->ipsclass;
//-------------------------------
// Set location
//-------------------------------
$this->ipsclass->input['file_location'] = UPGRADE_DIR.'/upg_'.$this->ipsclass->current_upgrade.'/ipb_settings_partial.xml';
//-------------------------------
// Run it
//-------------------------------
$settings->settings_do_import( 1 );
$message[] = $this->ipsclass->main_msg;
}
//------------------------------------------
// Update DB
//------------------------------------------
$DB->do_insert( 'upgrade_history', array( 'upgrade_version_id' => $ibforums->current_upgrade,
'upgrade_version_human' => $ibforums->versions[ $ibforums->current_upgrade ],
'upgrade_date' => time(),
'upgrade_mid' => $ibforums->input['mid']
) );
$this->ipsclass->DB->do_insert( 'upgrade_history', array( 'upgrade_version_id' => $this->ipsclass->current_upgrade,
'upgrade_version_human' => $this->ipsclass->versions[ $this->ipsclass->current_upgrade ],
'upgrade_date' => time(),
'upgrade_mid' => $this->ipsclass->input['mid']
) );
//------------------------------------------
// Anymore to run?
//------------------------------------------
if ( $ibforums->last_poss_id != $ibforums->current_upgrade )
if ( $this->ipsclass->last_poss_id != $this->ipsclass->current_upgrade )
{
$ibforums->core->redirect( "index.php?act=work&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "Upgrade module complete, moving on to the next upgrade module...." );
$this->ipsclass->core->redirect( "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
implode( "<br />", $message ) . "<br />Îáíîâëåíèå ìîäóëÿ çàâåðøåíî, ïåðåìåùàåìñÿ ê îáíîâëåíèþ ñëåäóþùåãî ìîäóëÿ...." );
}
else
{
$ibforums->template->content .= "
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>IPB Upgrade Complete</div>
<div class='tdrow1' style='padding:6px'>You have now been upgraded from {$ibforums->versions[$ibforums->current_version]} to {$ibforums->versions[$ibforums->current_upgrade]}
<div class='maintitle'>Îáíîâëåíèå IPB çàâåðøåíî</div>
<div class='tdrow1' style='padding:6px'>".implode( "<br />", $message ) . "<br />
Âàø ôîðóì áûë óñïåøíî îáíîâëåí ñ {$this->ipsclass->versions[$this->ipsclass->current_version]} äî {$this->ipsclass->versions[$this->ipsclass->current_upgrade]}
<br /><br />
The next few final steps will check for updated settings and recache your cached data (forums, groups, moderators, etc) and rebuild your master templates to ensure
that all the template additions and modifications are updated.
Ñëåäóþùèå ôèíàëüíûå ýòàïû ïðîâåðÿò íà îáíîâëåíèÿ íàñòðîéêè è ïåðåñòðîÿò âàøè êåø äàííûå (ôîðóìû, ãðóïïû, ìîäåðàòîðû è ò.ä.), à òàêæå ïåðåñòðîÿò âàøè ìàñòåð øàáëîíû...
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='index.php?act=settings&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}'>Proceed...</a></span></div>
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='index.php?act=recache&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}'>Äàëåå...</a></span></div>
</div>
</div>
";
$ibforums->template->output();
$this->ipsclass->template->output();
}
}
@@ -511,22 +484,19 @@ class core_functions
function redirect($url, $text, $time=2)
{
global $ibforums, $DB, $std;
$ibforums->template->content .= "<meta http-equiv='refresh' content=\"{$time}; url={$url}\">
$this->ipsclass->template->content .= "<meta http-equiv='refresh' content=\"{$time}; url={$url}\">
<div class='tableborder'>
<div class='maintitle'>Redirecting</div>
<div class='maintitle'>Ïåðåàäðåñàöèÿ</div>
<div class='tdrow1' style='padding:8px'>
<div style='font-size:12px'>$text
<br />
<br />
<center><a href='{$url}'>Click here if not redirected...</a></center>
<center><a href='{$url}'>Íàæìèòå ñþäà, åñëè âû íå áûëè ïåðåìåùåíû...</a></center>
</div>
</div>
</div>";
$ibforums->template->output("Redirecting...");
$this->ipsclass->template->output("Ïåðåàäðåñàöèÿ...");
}
/*-------------------------------------------------------------------------*/
@@ -535,12 +505,24 @@ class core_functions
function login_screen($msg='')
{
global $ibforums, $DB, $std;
if ( ! file_exists( ROOT_PATH.'ipb_templates.xml' ) )
{
$msg .= "<div><b>Cannot locate XML templates</b><br />This should be located in 'ipb_templates.xml' please ensure this file is uploaded (recreating the file structure if needed) before continuing.
<br /><strong>Failure to upload this file will mean that your templates will not be updated.</strong></div>";
$alert .= "<div class='warnbox'><b>Íåâîçìîæíî íàéòè XML øàáëîíû</b><br />Îíè äîëæíû íàõîäèòüñÿ â &laquo;ipb_templates.xml&raquo; ïîæàëóéñòà ïðîâåðüòå, ÷òîáû ýòîò ôàéë áûë çàãðóæåí. Áåç íåãî ïðîäîëæåíèå íåâîçìîæíî.
<br /><strong>Åñëè âû íå çàãðóçèòå ýòîò ôàéë, òî âàøè øàáëîíû íå áóäóò îáíîâëåíû!</strong></div>";
}
if ( ! is_writeable( CACHE_PATH . 'cache/skin_cache' ) )
{
$alert .= "<div class='warnbox'><strong>ÂÍÈÌÀÍÈÅ: Ïàïêà cache/skin_cache íåäîñòóïíà äëÿ çàïèñè</strong><br />
Ïîæàëóéñòà, ïðîâåðüòå CHMOD äëÿ ýòîé ïàïêè. Åñëè âû ïðîèãíîðèðóåòå ýòî ïðåäóïðåæäåíèå, òî ôàéëû ñòèëåé
ìîãóò íåêîððåêòíî óñòàíîâèòüñÿ.</div>";
}
if ( $alert )
{
$this->ipsclass->template->content .= "{$alert}";
$this->ipsclass->template->output("ÂÍÈÌÀÍÈÅ");
exit();
}
if ( $msg != "" )
@@ -548,33 +530,33 @@ class core_functions
$msg = "<div class='warnbox'>$msg</div><br />";
}
$ibforums->template->content .= "
$this->ipsclass->template->content .= "
<form action='index.php?act=login' method='post' name='theAdminForm'>
{$msg}
<div>
<strong>You must log in with your forums administrative log in details to access the upgrade system.
<br />Upgrading from {$ibforums->versions[$ibforums->current_version]} to {$ibforums->versions[$ibforums->current_upgrade]}</strong>
<strong>Âû îáÿçàíû àâòîðèçîâàòüñÿ ñ âàøèìè äàííûìè äëÿ âõîäà â âàø ôîðóì ïîä ó÷åòíîé çàïèñüþ àäìèíèñòðàòîðà. Èíà÷å âû ïðîñòî íå ñìîæåòå âîñïîëüçîâàòüñÿ ñèñòåìîé îáíîâëåíèÿ.
<br />Îáíîâëåíèå ñ âåðñèè {$this->ipsclass->versions[$this->ipsclass->current_version]} äî {$this->ipsclass->versions[$this->ipsclass->current_upgrade]}</strong>
</div>
<br />
<div class='tableborder'>
<div class='maintitle'>Verification Required - Please Log In</div>
<div class='maintitle'>Òðåáóåòñÿ àâòîðèçàöèÿ</div>
<table width='100%' cellspacing='0' cellpadding='5' align='center' border='0'>
<tr>
<td class='tdrow1' width='40%' valign='middle'>Your Forums Username:</td>
<td class='tdrow1' width='40%' valign='middle'>Âàøå èìÿ ïîëüçîâàòåëÿ íà ôîðóìå:</td>
<td class='tdrow2' width='60%' valign='middle'><input type='text' style='width:100%' name='username' value=''></td>
</tr>
<tr>
<td class='tdrow1' width='40%' valign='middle'>Your Forums Password:</td>
<td class='tdrow1' width='40%' valign='middle'>Âàø ïàðîëü íà ôîðóìå:</td>
<td class='tdrow2' width='60%' valign='middle'><input type='password' style='width:100%' name='password' value=''></td>
</tr>
<tr>
<td class='pformstrip' colspan='2'><div align='center'><input type='submit' value='Log in' id='button' accesskey='s'></div></td>
<td class='pformstrip' colspan='2'><div align='center'><input type='submit' value='Âîéòè' id='button' accesskey='s'></div></td>
</tr>
</table>
</div>
</form>";
$ibforums->template->output("Log In");
$this->ipsclass->template->output("Âîéòè");
}
@@ -584,24 +566,22 @@ class core_functions
function get_member()
{
global $std, $DB, $ibforums;
$member = array( 'id' => 0 );
$ibforums->loginkey = $this->check_md5( $ibforums->input['loginkey'] );
$ibforums->securekey = $this->check_md5( $ibforums->input['securekey'] );
$ibforums->member_id = trim(intval($ibforums->input['mid'] ) );
$this->ipsclass->loginkey = $this->check_md5( $this->ipsclass->input['loginkey'] );
$this->ipsclass->securekey = $this->check_md5( $this->ipsclass->input['securekey'] );
$this->ipsclass->member_id = trim(intval($this->ipsclass->input['mid'] ) );
if ( ! $ibforums->loginkey or ! $ibforums->securekey )
if ( ! $this->ipsclass->loginkey or ! $this->ipsclass->securekey )
{
return $member;
}
$DB->query( "SELECT m.*, g.* FROM ibf_members m
LEFT JOIN ibf_groups g ON ( m.mgroup=g.g_id )
WHERE member_login_key='{$ibforums->loginkey}' and id='{$ibforums->member_id}'" );
$this->ipsclass->DB->query( "SELECT m.*, g.* FROM ibf_members m
LEFT JOIN ibf_groups g ON ( m.mgroup=g.g_id )
WHERE member_login_key='{$this->ipsclass->loginkey}' and id='{$this->ipsclass->member_id}'" );
$member = $DB->fetch_row();
$member = $this->ipsclass->DB->fetch_row();
return $member;
}
@@ -612,36 +592,34 @@ class core_functions
function get_version_latest()
{
global $ibforums;
$ibforums->current_version = '';
$ibforums->current_upgrade = '';
$this->ipsclass->current_version = '';
$this->ipsclass->current_upgrade = '';
//------------------------------------------
// Copy & pop DB array and get next
// upgrade script
//------------------------------------------
$tmp = $ibforums->db_contents;
$tmp = $this->ipsclass->db_contents;
$ibforums->current_version = array_pop( $tmp );
$this->ipsclass->current_version = array_pop( $tmp );
//------------------------------------------
// Get the next upgrade script
//------------------------------------------
ksort( $ibforums->dir_contents );
ksort( $this->ipsclass->dir_contents );
foreach( $ibforums->dir_contents as $i => $a )
foreach( $this->ipsclass->dir_contents as $i => $a )
{
if ( $a > $ibforums->current_version )
if ( $a > $this->ipsclass->current_version )
{
if ( ! $ibforums->current_upgrade )
if ( ! $this->ipsclass->current_upgrade )
{
$ibforums->current_upgrade = $a;
$this->ipsclass->current_upgrade = $a;
}
$ibforums->modules_to_run[] = $ibforums->versions[ $a ];
$this->ipsclass->modules_to_run[] = $this->ipsclass->versions[ $a ];
}
}
}
@@ -652,14 +630,12 @@ class core_functions
function get_db_structure()
{
global $std, $DB, $ibforums;
$vers = array();
$DB->simple_construct( array( 'select' => '*', 'from' => 'upgrade_history', 'order' => 'upgrade_version_id ASC' ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'upgrade_history', 'order' => 'upgrade_version_id ASC' ) );
$this->ipsclass->DB->simple_exec();
while( $r = $DB->fetch_row() )
while( $r = $this->ipsclass->DB->fetch_row() )
{
$vers[ $r['upgrade_version_id'] ] = $r['upgrade_version_id'];
}
+20 -11
View File
@@ -1,17 +1,23 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 TEMPLATE MODULES
@@ -22,7 +28,7 @@
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.";
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
@@ -32,9 +38,10 @@ class template
function output($title='')
{
$year = date("Y");
print $this->print_top($title);
print $this->content;
print "<br><br><br><br><center><span id='copy'><a href='http://www.invisionboard.com'>Invision Power Board</a> &copy; 2004 <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a></span></center>
print "<br><br><br><br><center><span id='copy'><a href='http://www.ibresource.ru/'>Ðóññêàÿ âåðñèÿ</a> <a href='http://www.invisionboard.com'>Invision Power Board</a> &copy; $year <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a></span></center>
</div></body>
</html>";
exit();
@@ -46,7 +53,9 @@ class template
{
return "<html>
<head><title>Invision Power Board Upgrade System :: $title </title>
<head>
<meta http-equiv=\"content-type\" content=\"text/html; charset=windows-1251\" >
<title>Ñêðèïò îáíîâëåíèÿ Invision Power Board :: $title </title>
<style type='text/css'>
BODY
@@ -113,7 +122,7 @@ class template
</head>
<body marginheight='0' marginwidth='0' leftmargin='0' topmargin='0' bgcolor='#FFFFFF'>
<div id='logostrip'><img src='../install/img/title.gif' border='0' alt='Invision Power Board Installer' /></div>
<div id='logostrip'><img src='../install/img/title.gif' border='0' alt='Invision Power Board' /></div>
<div class='fade'>&nbsp;</div>
<br />
<div style='padding:10px'>
+153 -208
View File
@@ -2,17 +2,23 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 LOADER
@@ -22,37 +28,58 @@
+--------------------------------------------------------------------------
*/
/**
* Upgrade wrapper
*
* Set-up and load module to run
*
* @package InvisionPowerBoard
* @author Matt Mecham
* @version 2.1
*/
/**
* Script type
*
*/
define( 'IPB_THIS_SCRIPT', 'upgrade' );
define( 'IPB_LOAD_SQL' , 'admin_queries' );
require_once( '../init.php' );
//-----------------------------------------------
// USER CONFIGURABLE ELEMENTS
//-----------------------------------------------
define( 'THIS_PATH' , './' );
define( 'ROOT_PATH' , "../" );
define( 'KERNEL_PATH', ROOT_PATH.'ips_kernel/' );
define( 'CACHE_PATH' , ROOT_PATH );
//-----------------------------------------------
// NO USER EDITABLE SECTIONS BELOW
//-----------------------------------------------
define ( 'IN_IPB', 0 );
define ( 'IN_DEV', 0 );
define ( 'SAFE_MODE_ON', 0 );
error_reporting (E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);
define( 'UPGRADE_DIR', 'upgrade' );
//===========================================================================
// MAIN PROGRAM
//===========================================================================
//--------------------------------
// Import $INFO, now!
//--------------------------------
if ( TRIAL_VERSION )
{
print "Ýòà ôóíêöèÿ îòêëþ÷åíà â òðèàëüíîé âåðñèè.";
exit();
}
$INFO = array();
require ROOT_PATH."conf_global.php";
//--------------------------------
// Require our global functions
//--------------------------------
require ROOT_PATH . "conf_global.php";
require ROOT_PATH . "sources/ipsclass.php";
require KERNEL_PATH . "class_converge.php";
require THIS_PATH . "core/functions.php";
require THIS_PATH . "core/template.php";
# Initiate super-class
$ipsclass = new ipsclass();
$ipsclass->vars = $INFO;
//--------------------------------
// The clocks a' tickin'
@@ -65,126 +92,114 @@ $Debug->startTimer();
// Load the DB driver and such
//--------------------------------
$INFO['sql_driver'] = !$INFO['sql_driver'] ? 'mysql' : $INFO['sql_driver'];
$INFO['sql_driver'] = strtolower($INFO['sql_driver']);
$ipsclass->init_db_connection();
if ( ! @file_exists( ROOT_PATH.'sources/sql/'.$INFO['sql_driver'].'_admin_queries.php' ) )
//--------------------------------
// Check to make sure we're not
// trying to update < 2.0.0
//--------------------------------
if ( ! $ipsclass->DB->field_exists( 'sub_id', 'subscriptions' ) OR ! $ipsclass->DB->field_exists( 'perm_id', 'forum_perms' ) )
{
print "Cannot find the file: ".ROOT_PATH.'sources/sql/'.$INFO['sql_driver']."_admin_queries.php - make sure the file exists before continuing.";
exit();
$ipsclass->boink_it( $INFO['board_url'].'/upgrade/upgrade.php' );
}
require ( KERNEL_PATH.'class_db_'.strtolower($INFO['sql_driver']).".php" );
$DB = new db_driver;
$DB->obj['sql_database'] = $INFO['sql_database'];
$DB->obj['sql_user'] = $INFO['sql_user'];
$DB->obj['sql_pass'] = $INFO['sql_pass'];
$DB->obj['sql_host'] = $INFO['sql_host'];
$DB->obj['sql_tbl_prefix'] = $INFO['sql_tbl_prefix'];
$DB->obj['query_cache_file'] = ROOT_PATH.'sources/sql/'.$INFO['sql_driver'].'_admin_queries.php';
$DB->obj['use_shutdown'] = 0;
$DB->obj['debug'] = 0;
//-----------------------------------
// Required vars?
//-----------------------------------
if ( is_array( $DB->connect_vars ) and count( $DB->connect_vars ) )
{
foreach( $DB->connect_vars as $k => $v )
{
$DB->connect_vars[ $k ] = $INFO[ $k ];
}
}
//--------------------------------
// Get a DB connection
//--------------------------------
$DB->connect();
//--------------------------------
// Wrap it all up in a nice easy to
// transport super class
//--------------------------------
$ibforums = new info();
//--------------------------------
// Require our global functions
//--------------------------------
require ROOT_PATH."sources/functions.php";
require KERNEL_PATH."class_converge.php";
require THIS_PATH."core/functions.php";
require THIS_PATH."core/template.php";
$std = new FUNC;
//--------------------------------
// Set up our vars
//--------------------------------
$ibforums->input = $std->parse_incoming();
$ibforums->core = new core_functions();
$ibforums->template = new template();
$ipsclass->parse_incoming();
//--------------------------------
// Set converge
//--------------------------------
$ipsclass->converge = new class_converge( $ipsclass->DB );
//--------------------------------
// Get cache...
//--------------------------------
$ipsclass->init_load_cache();
//--------------------------------
// Initialize the FUNC
//--------------------------------
$ipsclass->initiate_ipsclass();
//--------------------------------
// Set up our vars
//--------------------------------
$ipsclass->core = new core_functions();
$ipsclass->core->ipsclass =& $ipsclass;
$ipsclass->template = new template();
$ipsclass->template->ipsclass =& $ipsclass;
//--------------------------------
// Get dir contents
//--------------------------------
$ibforums->dir_contents = $ibforums->core->get_dir_structure();
$ipsclass->dir_contents = $ipsclass->core->get_dir_structure();
//--------------------------------
// Get DB contents
//--------------------------------
$ibforums->db_contents = $ibforums->core->get_db_structure();
$ipsclass->db_contents = $ipsclass->core->get_db_structure();
//--------------------------------
// Get latest ID...
//--------------------------------
$ibforums->last_poss_id = array_shift( array_reverse($ibforums->dir_contents) );
# PHP 5.0.5 problem...
$tmp_var = array_reverse($ipsclass->dir_contents);
$ipsclass->last_poss_id = array_shift( $tmp_var );
//--------------------------------
// OK to disCO
//--------------------------------
$ipsclass->safe_act = array( 'recache', 'acpperms', 'templates', 'templatescache', 'settings', 'finish' );
//--------------------------------
// Get datafile
//--------------------------------
if ( ! $ibforums->last_poss_id )
if ( ! $ipsclass->last_poss_id )
{
$ibforums->core->login_screen( "An error has occured, we are unable to determine the current version or if there are any required upgrade files left to run" );
$ipsclass->core->login_screen( "Îáíàðóæåíà îøèáêà &#151; ìû íå ìîæåì îïðåäåëèòü òåêóùóþ âåðñèþ, èëè îòñóòñòâóþò íåêîòîðûå ôàéëû, òðåáóåìûå äëÿ îáíîâëåíèÿ" );
}
if ( file_exists( THIS_PATH.'upg_'.$ibforums->last_poss_id.'/version_history.php' ) )
if ( file_exists( THIS_PATH.'upg_'.$ipsclass->last_poss_id.'/version_history.php' ) )
{
require_once( THIS_PATH.'upg_'.$ibforums->last_poss_id.'/version_history.php' );
require_once( THIS_PATH.'upg_'.$ipsclass->last_poss_id.'/version_history.php' );
$ibforums->versions = $import_versions;
$ipsclass->versions = $import_versions;
}
else
{
$ibforums->core->login_screen( "Could not locate the required upgrade script: 'upg_{$ibforums->last_poss_id}/version_history.php'");
$ipsclass->core->login_screen( "Íåâîçìîæíî íàéòè òðåáóåìûé ôàéë: 'upg_{$ipsclass->last_poss_id}/version_history.php'");
}
//--------------------------------
// Version logic check
//--------------------------------
$ibforums->core->get_version_latest();
$ipsclass->core->get_version_latest();
if ( ! $ibforums->current_version )
if ( ! $ipsclass->current_version )
{
$ibforums->core->login_screen( "An error has occured, we are unable to determine the current version or if there are any required upgrade files left to run" );
$ipsclass->core->login_screen( "Íåâîçìîæíî íàéòè òðåáóåìûé ôàéë" );
}
if ( ! $ibforums->input['act'] )
if ( ! $ipsclass->input['act'] )
{
if ( $ibforums->current_version >= $ibforums->current_upgrade )
if ( $ipsclass->current_version >= intval( $ipsclass->current_upgrade ) )
{
$ibforums->core->login_screen( "This IPB installation is up-to-date and there are no more upgrades required" );
$ipsclass->core->login_screen( "ÎÁÍÎÂËÅÍÈÅ ÍÅ ÒÐÅÁÓÅÒÑß! Âû èìååòå èëè ïîñëåäíþþ âåðñèþ ôîðóìà èëè âàøà âåðñèÿ íîâåå òîé, äî êîòîðîé âû ïûòàåòåñü îáíîâèòüñÿ. :)" );
}
}
@@ -192,33 +207,27 @@ if ( ! $ibforums->input['act'] )
// Get our loverly member
//--------------------------------
$ibforums->member = $ibforums->core->get_member();
//--------------------------------
// Set converge
//--------------------------------
$ibforums->converge = new class_converge( $DB );
$ipsclass->member = $ipsclass->core->get_member();
//--------------------------------
// Log in?
//--------------------------------
if ( $ibforums->input['act'] != 'login' )
if ( $ipsclass->input['act'] != 'login' )
{
if ( ! $ibforums->member['id'] )
if ( ! $ipsclass->member['id'] )
{
$ibforums->core->login_screen("You do not have access to this upgrade system.");
$ipsclass->core->login_screen("Âû íå èìååòå äîñòóï ê ýòîé ñèñòåìå îáíîâëåíèÿ.");
}
if ( $std->return_md5_check() != $ibforums->securekey )
if ( $ipsclass->return_md5_check() != $ipsclass->securekey )
{
$ibforums->core->login_screen("You do not have access to this upgrade system!");
$ipsclass->core->login_screen("Âû íå èìååòå äîñòóï ê ýòîé ñèñòåìå îáíîâëåíèÿ!");
}
if ( ! $ibforums->member['g_access_cp'] )
if ( ! $ipsclass->member['g_access_cp'] )
{
$ibforums->core->login_screen('You must be an admin to access this upgrade script');
$ipsclass->core->login_screen('Âû îáÿçàíû áûòü àäìèíèñòðàòîðîì äëÿ äîñòóïà ê ñèñòåìå îáíîâëåíèÿ!');
}
}
else
@@ -228,14 +237,14 @@ else
// time to check some details.
//----------------------------------
if ( empty($ibforums->input['username']) )
if ( empty($ipsclass->input['username']) )
{
$ibforums->core->login_screen("You must enter a username before proceeding");
$ipsclass->core->login_screen("Âû îáÿçàíû ââåñòè âàøå èìÿ ïîëüçîâàòåëÿ íà ôîðóìå ïðåæäå, ÷åì ïðîäîëæèòü");
}
if ( empty($ibforums->input['password']) )
if ( empty($ipsclass->input['password']) )
{
$ibforums->core->login_screen("You must enter a password before proceeding");
$ipsclass->core->login_screen("Âû îáÿçàíû ââåñòè âàø ïàðîëü íà ôîðóìå ïðåæäå, ÷åì ïðîäîëæèòü");
}
//----------------------------------
@@ -243,9 +252,9 @@ else
// DB
//----------------------------------
$DB->query("SELECT m.*, g.* FROM ibf_members m, ibf_groups g WHERE LOWER(name)='".strtolower($ibforums->input['username'])."' and m.mgroup=g.g_id");
$ipsclass->DB->query("SELECT m.*, g.* FROM ibf_members m, ibf_groups g WHERE LOWER(name)='".strtolower($ipsclass->input['username'])."' and m.mgroup=g.g_id");
$mem = $DB->fetch_row();
$mem = $ipsclass->DB->fetch_row();
//----------------------------------
// Get perms
@@ -253,39 +262,39 @@ else
if ( empty($mem['id']) )
{
$ibforums->core->login_screen("Could not find a record matching that username, please check the spelling");
$ipsclass->core->login_screen("Íåâîçìîæíî íàéòè ïîëüçîâàòåëÿ ñ óêàçàííûì èìåíåì, ïîæàëóéñòà ïåðåïðîâåðüòå äàííûå è ïîïðîáóéòå ñíîâà");
}
//----------------------------------
// Load converge member
//----------------------------------
$ibforums->converge->converge_load_member($mem['email']);
$ipsclass->converge->converge_load_member($mem['email']);
if ( ! $ibforums->converge->member['converge_id'] )
if ( ! $ipsclass->converge->member['converge_id'] )
{
$ibforums->core->login_screen("Could not find a record matching that username, please check the spelling");
$ipsclass->core->login_screen("Íåâîçìîæíî íàéòè ïîëüçîâàòåëÿ ñ óêàçàííûì èìåíåì, ïîæàëóéñòà ïåðåïðîâåðüòå äàííûå è ïîïðîáóéòå ñíîâà");
}
//----------------------------------
// Check converge pass
//----------------------------------
$pass = md5( $ibforums->input['password'] );
$pass = md5( $ipsclass->input['password'] );
//------------------------------
// Check password...
//------------------------------
if ( $ibforums->converge->converge_authenticate_member( $pass ) != TRUE )
if ( $ipsclass->converge->converge_authenticate_member( $pass ) != TRUE )
{
$ibforums->core->login_screen("The password you entered is not correct");
$ipsclass->core->login_screen("Ââåäåííûé ïàðîëü íåêîððåêòíûé");
}
else
{
if ($mem['g_access_cp'] != 1)
if ( $mem['g_access_cp'] != 1 )
{
$ibforums->core->login_screen("You do not have access to the administrative CP");
$ipsclass->core->login_screen("Âû íå èìååò äîñòóï ê àäìèíöåíòðó ôîðóìà");
}
else
{
@@ -294,9 +303,9 @@ else
// All is good, bounce onwards...
//----------------------------------
$ibforums->member = $mem;
$ipsclass->member = $mem;
$ibforums->core->redirect( "index.php?act=work&loginkey={$mem['member_login_key']}&securekey=".$std->return_md5_check()."&mid={$mem['id']}", "Thanks for logging in...." );
$ipsclass->core->redirect( "index.php?act=work&loginkey={$mem['member_login_key']}&securekey=".$ipsclass->return_md5_check()."&mid={$mem['id']}", "Ñïàñèáî çà àâòîðèçàöèþ...." );
}
}
}
@@ -309,111 +318,47 @@ else
// Get and run upgrade script
//--------------------------------
if ( ! in_array( $ibforums->input['act'], $ibforums->safe_act ) )
if ( ! in_array( $ipsclass->input['act'], $ipsclass->safe_act ) )
{
if ( file_exists( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/version_upgrade.php' ) )
if ( file_exists( THIS_PATH.'upg_'.$ipsclass->current_upgrade.'/version_upgrade.php' ) )
{
require_once( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/version_upgrade.php' );
$runme = new version_upgrade();
require_once( THIS_PATH.'upg_'.$ipsclass->current_upgrade.'/version_upgrade.php' );
$runme = new version_upgrade();
$runme->ipsclass =& $ipsclass;
$runme->version_process();
}
else
{
$ibforums->core->login_screen( "Could not locate the required upgrade script: 'upg_{$ibforums->current_upgrade}/version_upgrade.php'");
$ipsclass->core->login_screen( "Íåâîçìîæíî íàéòè òðåáóåìûé ôàéë: 'upg_{$ipsclass->current_upgrade}/version_upgrade.php'");
}
}
// Module(work) -> done -> settings -> recache -> templates -> templatesrecache -> finish
// Module(work) -> done [ settings -> acpperms -> templatecomponents ] -> recache -> templates -> templatesrecache -> finish
switch ($ibforums->input['act'])
switch ($ipsclass->input['act'])
{
case 'recache':
$ibforums->core->rebuild_caches();
$ipsclass->core->rebuild_caches();
break;
case 'templates':
$ibforums->core->rebuild_templates();
$ipsclass->core->rebuild_templates();
break;
case 'templatescache':
$ibforums->core->rebuild_templates_cache();
break;
case 'settings':
$ibforums->core->rebuild_settings();
$ipsclass->core->rebuild_templates_cache();
break;
case 'finish':
$ibforums->core->upgrade_complete();
$ipsclass->core->upgrade_complete();
break;
case 'done':
$ibforums->core->module_complete();
$ipsclass->core->module_complete();
break;
case 'work':
$runme->auto_run();
break;
default:
$ibforums->core->login_screen();
$ipsclass->core->login_screen();
break;
}
/*-------------------------------------------------------------------------*/
// Major fatal and possibly dangerous error...
/*-------------------------------------------------------------------------*/
function fatal_error($msg="")
{
print $msg;
exit();
}
/*-------------------------------------------------------------------------*/
// DEBUG CLASS
/*-------------------------------------------------------------------------*/
class Debug
{
function startTimer()
{
global $starttime;
$mtime = microtime ();
$mtime = explode (' ', $mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
}
function endTimer()
{
global $starttime;
$mtime = microtime ();
$mtime = explode (' ', $mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = round (($endtime - $starttime), 5);
return $totaltime;
}
}
/*-------------------------------------------------------------------------*/
// INFO CLASS
/*-------------------------------------------------------------------------*/
class info {
var $member = array();
var $input = array();
var $base_url = "";
var $vars = "";
var $upgrade_history = array();
var $current_version = '';
var $loginkey = '';
var $securekey = '';
var $current_action = '';
var $safe_act = array( 'recache', 'templates', 'templatescache', 'settings', 'finish' );
function info()
{
global $sess, $std, $DB, $INFO;
$this->vars = &$INFO;
}
}
?>
+58 -37
View File
@@ -1,81 +1,102 @@
INVISION POWER BOARD 1.3 -> 2.0.0 MANUAL UPGRADE
------------------------------------------------
INVISION POWER BOARD 1.3 -> 2.0.0 РУЧНОЕ ОБНОВЛЕНИЕ
---------------------------------------------------
This file is intended to allow you to upgrade your Invision Power Board manually via shell which
is ideal for those with large boards which may require several slow queries.
Этот набор был создан специально для ручного обновления через SHELL больших форумов. Потому что при обновлении
существуют тяжелые медленные запросы к базе.
-----------------------------------------------------------------------------------------------------
IMPORTANT: It is assumed that you are comfortable with SQL and shell and understand the basic concepts
of paths, files and source SQL files.
ВАЖНО: Мы рекомендуем самостоятельно пользоваться этим ручным обновлением только если вы понимаете
основные SQL запросы и как их выполнять!
-----------------------------------------------------------------------------------------------------
It is assumed that you have read the upgrade text and you have backed up your database and files before
proceeding. If you haven't backed up - read the file "Documents/upgradefromipb_1x.html" from the download
zip.
Предполагается, что вы прочитали текст инструкции по обновлению, а также сделали резервную копию файлов и базы данных.
Если вы еще ничего не сделали резервную копию &#151; прочтите файл &laquo;upgradefromipb_1x.html&raquo; из дистрибутива.
-----------------------------------------------------------------------------------------------------
IMPORTANT: PERFORM A BACKUP OF YOUR DATABASE BEFORE USING THESE INSTRUCTIONS.
ВАЖНО: ЗНАЧИМОСТЬ ПРАВ НА ФАЙЛЫ.
-----------------------------------------------------------------------------------------------------
To perform the update, we'll need to use a mixture of command line, PHP scripting and SQL source files.
При обновлении вы должны иметь корректно установленные права на файлы и папки (chmod), включая этот дистрибутив.
Требуемые значения chmod прав представлены в файле Documentation/Installation Guide/install_guide.html
(нажмите на ссылку Структура & CHMOD). Рекомендуем полностью прочесть представленную там информацию.
Firstly, upload sql_1.sql and sql_2.sql into the root IPB folder (the one with index.php in it)
-----------------------------------------------------------------------------------------------------
IMPORTANT: sql_1.sql and sql_2.sql have queries with the default 'ibf_' table prefix. If your table
prefix is different, do a search and replace on those files to change 'ibf_' to your database prefix
ВАЖНО: ВЫ ДОЛЖНЫ ОБЯЗАТЕЛЬНО СДЕЛАТЬ РЕЗЕРВНУЮ КОПИЮ БАЗЫ ПЕРЕД ТЕМ, КАК ИСПОЛЬЗОВАТЬ ЭТИ ИНСТРУКЦИИ.
-----------------------------------------------------------------------------------------------------
The first step is to log onto mysql from shell.
Для выполнения обновления вы должны использовать коммандную строку, PHP скрипты и SQL файлы.
Во-первых, загрузите файлы sql_1.sql и sql_2.sql в корневую директорию вашего IPB (туда, где находится index.php)
-----------------------------------------------------------------------------------------------------
ВАЖНО: sql_1.sql и sql_2.sql имеют запросы со стандартным префиксом таблиц 'ibf_'. Если префикс таблиц
в вашей базе данных другой, пожалуйста пройдитесь по этим двум файлам и замените 'ibf_' на ваш префикс!
-----------------------------------------------------------------------------------------------------
Итак, на первом этапе вы должны войти в mysql через SHELL.
------------------------------------------------
When you have a new terminal window open, type:
Когда вы будете иметь открытым новое окно терминала, наберите там:
mysql -u{username} -p{password}
(Substituting {username} for your SQL username and {password} for you SQL password)
(заменив в этой фразе {username} на ваше SQL имя пользователя и {password} на ваш SQL пароль)
------------------------------------------------
Then type:
Затем введите:
use {database}
(Substituting {database} for your SQL database)
(заменив {database} на имя вашей SQL базы данных)
------------------------------------------------
You should see a message like so:
Вы должны увидеть сообщение:
> Reading table information for completion of table and column names
> You can turn off this feature to get a quicker startup with -A
>
> Database changed
------------------------------------------------
Now we'll run the first source file. Type:
---------------------------------------------------
Теперь вы должны выполнять первый SQL файл. Введите:
source /home/website/public_html/forums/sql_1.sql
(Substituting /home/website/public_html/forums/ with your real path to this file)
------------------------------------------------
Now we'll need to run the installer - but we only want a few steps to run, so copy the URL below carefully
substituting {yourdomain.com/forum} with your real URL to your board:
(заменив /home/website/public_html/forums/ на реальный путь на вашем сервере к вашему файлу)
Go to: {yourdomain.com/forum}/upgrade/upgrade.php?act=work&version=103&step=7&dieafterstep=13
Пожалуйста помните, что MySQL может обрабатывать SQL команды этого файла несколько минут, пока процесс завершится.
Вы должны будете видеть следующую информацию, возвращаемую на экран SSH клиента при обработке этого файла
This may take a while for some large boards.
> Query OK, 121133 rows affected (11 min 6.27 sec)
> Records: 121133 Duplicates: 0 Warnings: 0
>
Ничего не делайте, пока mysql возвращает это. Время обработки зависит от размера базы...
---------------------------------------------------
Далее необходимо выполнить через браузер несколько этапов стандартного скрипта обновления,
скопируйте в адресную строку вашего браузера URL адрес, введенный ниже (заменив {yourdomain.com/forum}
на URL вашего форума):
{yourdomain.com/forum}/upgrade/upgrade.php?act=work&version=103&step=7&dieafterstep=13
Это может занять немало времени при больших форумах, ждите.
------------------------------------------------
Now we'll run the second source file. Type:
Теперь вы должны выполнять второй SQL файл. Введите:
source /home/website/public_html/forums/sql_2.sql
(Substituting /home/website/public_html/forums/ with your real path to this file)
(заменив /home/website/public_html/forums/ на реальный путь на вашем сервере к вашему файлу)
------------------------------------------------
Now we'll need to run the installer again - but we only want a few steps to run, so copy the URL below carefully
substituting {yourdomain.com/forum} with your real URL to your board:
Далее необходимо выполнить через браузер еще несколько этапов стандартного скрипта обновления,
скопируйте в адресную строку вашего браузера URL адрес, введенный ниже (заменив {yourdomain.com/forum}
на URL вашего форума):
Go to: {yourdomain.com/forum}/upgrade/upgrade.php?act=work&version=103&step=22
{yourdomain.com/forum}/upgrade/upgrade.php?act=work&version=103&step=22
This may take a while for some large boards.
This will insert your templates and settings and completes the upgrade
Это может занять немало времени при больших форумах, ждите.
Эти этапы вставят ваши шаблоны и настройки и завершат обновление.
------------------------------------------------
That's it, you should now be running IPB 2!
Все, теперь вы можете запустить ваш IPB v2!
Для обновления до IPB 2.1.6, после этого вы будете переадресованы на upgrade/index.php и вы должны будете пробежаться
и по представленным там этапам...
+336 -330
View File
@@ -1,331 +1,337 @@
ALTER TABLE ibf_forums RENAME ibf_forums_bak;
DROP TABLE if exists ibf_attachments;
DROP TABLE if exists ibf_announcements;
CREATE TABLE ibf_attachments (
attach_id int(10) NOT NULL auto_increment,
attach_ext varchar(10) NOT NULL default '',
attach_file varchar(250) NOT NULL default '',
attach_location varchar(250) NOT NULL default '',
attach_thumb_location varchar(250) NOT NULL default '',
attach_thumb_width smallint(5) NOT NULL default '0',
attach_thumb_height smallint(5) NOT NULL default '0',
attach_is_image tinyint(1) NOT NULL default '0',
attach_hits int(10) NOT NULL default '0',
attach_date int(10) NOT NULL default '0',
attach_temp tinyint(1) NOT NULL default '0',
attach_pid int(10) NOT NULL default '0',
attach_post_key varchar(32) NOT NULL default '0',
attach_msg int(10) NOT NULL default '0',
attach_member_id mediumint(8) NOT NULL default '0',
attach_approved int(10) NOT NULL default '1',
attach_filesize int(10) NOT NULL default '0',
PRIMARY KEY (attach_id),
KEY attach_pid (attach_pid),
KEY attach_msg (attach_msg),
KEY attach_post_key (attach_post_key),
KEY attach_mid_size (attach_member_id, attach_filesize)
);
CREATE TABLE ibf_message_text (
msg_id int(10) NOT NULL auto_increment,
msg_date int(10) default NULL,
msg_post text default '',
msg_cc_users text default '',
msg_sent_to_count smallint(5) NOT NULL default '0',
msg_deleted_count smallint(5) NOT NULL default '0',
msg_post_key varchar(32) NOT NULL default '0',
msg_author_id mediumint(8) NOT NULL default '0',
PRIMARY KEY (msg_id),
KEY msg_date (msg_date),
KEY msg_sent_to_count (msg_sent_to_count),
KEY msg_deleted_count (msg_deleted_count)
);
CREATE TABLE ibf_message_topics (
mt_id int(10) NOT NULL auto_increment,
mt_msg_id int(10) NOT NULL default '0',
mt_date int(10) NOT NULL default '0',
mt_title varchar(255) NOT NULL default '',
mt_from_id mediumint(8) NOT NULL default '0',
mt_to_id mediumint(8) NOT NULL default '0',
mt_owner_id mediumint(8) NOT NULL default '0',
mt_vid_folder varchar(32) NOT NULL default '',
mt_read tinyint(1) NOT NULL default '0',
mt_hasattach smallint(5) NOT NULL default '0',
mt_hide_cc tinyint(1) default '0',
mt_tracking tinyint(1) default '0',
mt_user_read int(10) default '0',
PRIMARY KEY (mt_id),
KEY mt_from_id (mt_from_id),
KEY mt_owner_id (mt_owner_id, mt_to_id, mt_vid_folder)
);
CREATE TABLE ibf_skin_sets (
set_skin_set_id int(10) NOT NULL auto_increment,
set_name varchar(150) NOT NULL default '',
set_image_dir varchar(200) NOT NULL default '',
set_hidden tinyint(1) NOT NULL default '0',
set_default tinyint(1) NOT NULL default '0',
set_css_method varchar(100) NOT NULL default 'inline',
set_skin_set_parent smallint(5) NOT NULL default '-1',
set_author_email varchar(255) NOT NULL default '',
set_author_name varchar(255) NOT NULL default '',
set_author_url varchar(255) NOT NULL default '',
set_css mediumtext NOT NULL default '',
set_wrapper mediumtext NOT NULL default '',
set_css_updated int(10) NOT NULL default '0',
set_cache_css mediumtext NOT NULL default '',
set_cache_macro mediumtext NOT NULL default '',
set_cache_wrapper mediumtext NOT NULL default '',
set_emoticon_folder varchar(60) NOT NULL default 'default',
PRIMARY KEY(set_skin_set_id)
);
CREATE TABLE ibf_skin_templates_cache (
template_id varchar(32) NOT NULL default '',
template_group_name varchar(255) NOT NULL default '',
template_group_content mediumtext NOT NULL default '',
template_set_id int(10) NOT NULL default '0',
primary key (template_id),
KEY template_set_id (template_set_id),
KEY template_group_name (template_group_name)
);
CREATE TABLE ibf_mail_queue(
mail_id int(10) auto_increment NOT NULL,
mail_date int(10) NOT NULL default '0',
mail_to varchar(255) NOT NULL default '',
mail_from varchar(255) NOT NULL default '',
mail_subject text NOT NULL default '',
mail_content text NOT NULL default '',
mail_type varchar(200) NOT NULL default '',
PRIMARY KEY (mail_id)
);
CREATE TABLE ibf_task_manager (
task_id int(10) auto_increment NOT NULL,
task_title varchar(255) NOT NULL default '',
task_file varchar(255) NOT NULL default '',
task_next_run int(10) NOT NULL default '',
task_week_day tinyint(1) NOT NULL default '-1',
task_month_day smallint(2) NOT NULL default '-1',
task_hour smallint(2) NOT NULL default '-1',
task_minute smallint(2) NOT NULL default '-1',
task_cronkey varchar(32) NOT NULL default '',
task_log tinyint(1) NOT NULL default '0',
task_description text NOT NULL default '',
task_enabled tinyint(1) NOT NULL default '1',
task_key varchar(30) NOT NULL default '',
task_safemode tinyint(1) NOT NULL default '',
PRIMARY KEY(task_id),
KEY task_next_run (task_next_run)
);
CREATE TABLE ibf_task_logs (
log_id int(10) auto_increment NOT NULL,
log_title varchar(255) NOT NULL default '',
log_date int(10) NOT NULL default '0',
log_ip varchar(16) NOT NULL default '0',
log_desc text NOT NULL default '',
PRIMARY KEY(log_id)
);
CREATE TABLE ibf_custom_bbcode (
bbcode_id int(10) NOT NULL auto_increment,
bbcode_title varchar(255) NOT NULL default '',
bbcode_desc text NOT NULL default '',
bbcode_tag varchar(255) NOT NULL default '',
bbcode_replace text NOT NULL default '',
bbcode_useoption tinyint(1) NOT NULL default '',
bbcode_example text NOT NULL default '',
PRIMARY KEY (bbcode_id)
);
CREATE TABLE ibf_conf_settings (
conf_id int(10) NOT NULL auto_increment,
conf_title varchar(255) NOT NULL default '',
conf_description text NOT NULL default '',
conf_group smallint(3) NOT NULL default '',
conf_type varchar(255) NOT NULL default '',
conf_key varchar(255) NOT NULL default '',
conf_value text NOT NULL default '',
conf_default text NOT NULL default '',
conf_extra text NOT NULL default '',
conf_evalphp text NOT NULL default '',
conf_protected tinyint(1) NOT NULL default '',
conf_position smallint(3) NOT NULL default '0',
conf_start_group varchar(255) NOT NULL default '',
conf_end_group tinyint(1) NOT NULL default '0',
conf_help_key varchar(255) NOT NULL default '0',
conf_add_cache tinyint(1) NOT NULL default '1',
PRIMARY KEY (conf_id)
);
CREATE TABLE ibf_conf_settings_titles (
conf_title_id smallint(3) NOT NULL auto_increment,
conf_title_title varchar(255) NOT NULL default '',
conf_title_desc text NOT NULL default '',
conf_title_count smallint(3) NOT NULL default '0',
conf_title_noshow tinyint(1) NOT NULL default '0',
conf_title_keyword varchar(200) NOT NULL default '',
PRIMARY KEY(conf_title_id)
);
CREATE TABLE ibf_topics_read (
read_tid int(10) NOT NULL default '0',
read_mid mediumint(8) NOT NULL default '0',
read_date int(10) NOT NULL default '0',
UNIQUE KEY read_tid_mid( read_tid, read_mid )
);
CREATE TABLE ibf_banfilters (
ban_id int(10) NOT NULL auto_increment,
ban_type varchar(10) NOT NULL default 'ip',
ban_content text NOT NULL default '',
ban_date int(10) NOT NULL default '0',
PRIMARY KEY (ban_id)
);
CREATE TABLE ibf_attachments_type (
atype_id int(10) NOT NULL auto_increment,
atype_extension varchar(18) NOT NULL default '',
atype_mimetype varchar(255) NOT NULL default '',
atype_post tinyint(1) NOT NULL default '1',
atype_photo tinyint(1) NOT NULL default '0',
atype_img text NOT NULL default '',
PRIMARY KEY (atype_id)
);
CREATE TABLE ibf_members_converge (
converge_id int(10) auto_increment NOT NULL,
converge_email varchar(250) NOT NULL default '',
converge_joined int(10) NOT NULL default '',
converge_pass_hash varchar(32) NOT NULL default '',
converge_pass_salt varchar(5) NOT NULL default '',
PRIMARY KEY( converge_id )
);
CREATE TABLE ibf_announcements (
announce_id int(10) UNSIGNED NOT NULL auto_increment,
announce_title varchar(255) NOT NULL default '',
announce_post text NOT NULL default '',
announce_forum text NOT NULL default '',
announce_member_id mediumint(8) UNSIGNED NOT NULL default '0',
announce_html_enabled tinyint(1) NOT NULL default '0',
announce_views int(10) UNSIGNED NOT NULL default '0',
announce_start int(10) UNSIGNED NOT NULL default '0',
announce_end int(10) UNSIGNED NOT NULL default '0',
announce_active tinyint(1) NOT NULL default '1',
PRIMARY KEY (announce_id)
);
CREATE TABLE ibf_mail_error_logs (
mlog_id int(10) auto_increment NOT NULL,
mlog_date int(10) NOT NULL default '0',
mlog_to varchar(250) NOT NULL default '',
mlog_from varchar(250) NOT NULL default '',
mlog_subject varchar(250) NOT NULL default '',
mlog_content varchar(250) NOT NULL default '',
mlog_msg text NOT NULL default '',
mlog_code varchar(200) NOT NULL default '',
mlog_smtp_msg text NOT NULL default '',
PRIMARY KEY (mlog_id)
);
CREATE TABLE ibf_bulk_mail (
mail_id int(10) NOT NULL auto_increment,
mail_subject varchar(255) NOT NULL default '',
mail_content mediumtext NOT NULL default '',
mail_groups mediumtext NOT NULL default '',
mail_honor tinyint(1) NOT NULL default '1',
mail_opts mediumtext NOT NULL default '',
mail_start int(10) NOT NULL default '0',
mail_updated int(10) NOT NULL default '0',
mail_sentto int(10) NOT NULL default '0',
mail_active tinyint(1) NOT NULL default '0',
mail_pergo smallint(5) NOT NULL default '0',
PRIMARY KEY (mail_id)
);
CREATE TABLE ibf_upgrade_history (
upgrade_id int(10) NOT NULL auto_increment,
upgrade_version_id int(10) NOT NULL default '',
upgrade_version_human varchar(200) NOT NULL default '',
upgrade_date int(10) NOT NULL default '0',
upgrade_mid int(10) NOT NULL default '0',
upgrade_notes text NOT NULL default '',
PRIMARY KEY (upgrade_id)
);
DROP TABLE ibf_forums;
CREATE TABLE ibf_forums (
id smallint(5) NOT NULL default '0',
topics mediumint(6) default '0',
posts mediumint(6) default '0',
last_post int(10) default NULL,
last_poster_id mediumint(8) NOT NULL default '0',
last_poster_name varchar(32) default NULL,
name varchar(128) NOT NULL default '',
description text,
position tinyint(2) default NULL,
use_ibc tinyint(1) default NULL,
use_html tinyint(1) default NULL,
status varchar(10) default NULL,
password varchar(32) default NULL,
last_title varchar(128) default NULL,
last_id int(10) default NULL,
sort_key varchar(32) default NULL,
sort_order varchar(32) default NULL,
prune tinyint(3) default NULL,
show_rules tinyint(1) default NULL,
preview_posts tinyint(1) default NULL,
allow_poll tinyint(1) NOT NULL default '1',
allow_pollbump tinyint(1) NOT NULL default '0',
inc_postcount tinyint(1) NOT NULL default '1',
skin_id int(10) default NULL,
parent_id mediumint(5) default '-1',
sub_can_post tinyint(1) default '1',
quick_reply tinyint(1) default '0',
redirect_url varchar(250) default '',
redirect_on tinyint(1) NOT NULL default '0',
redirect_hits int(10) NOT NULL default '0',
redirect_loc varchar(250) default '',
rules_title varchar(255) NOT NULL default '',
rules_text text NOT NULL,
topic_mm_id varchar(250) NOT NULL default '',
notify_modq_emails text default '',
permission_custom_error text NOT NULL default '',
permission_array mediumtext NOT NULL default '',
permission_showtopic tinyint(1) NOT NULL default '0',
queued_topics mediumint(6) NOT NULL default '0',
queued_posts mediumint(6) NOT NULL default '0',
PRIMARY KEY (id),
KEY position (position, parent_id)
);
alter table ibf_posts add post_parent int(10) NOT NULL default '0';
alter table ibf_posts ADD post_key varchar(32) NOT NULL default '0';
alter table ibf_posts add post_htmlstate smallint(1) NOT NULL default '0';
alter table ibf_topics ADD topic_hasattach smallint(5) NOT NULL default '0';
alter table ibf_members add login_anonymous varchar(3) NOT NULL default '0&0';
alter table ibf_members add ignored_users text NOT NULL default '';
alter table ibf_members add mgroup_others varchar(255) NOT NULL default '';
alter table ibf_member_extra
ADD aim_name varchar(40) NOT NULL default '',
ADD icq_number int(15) NOT NULL default '',
ADD website varchar(250) NOT NULL default '',
ADD yahoo varchar(40) NOT NULL default '',
ADD interests text NOT NULL default '',
ADD msnname varchar(200) NOT NULL default '',
ADD vdirs text NOT NULL default '',
ADD location varchar(250) NOT NULL default '',
ADD signature text NOT NULL default '',
ADD avatar_location varchar(128) NOT NULL default '',
ADD avatar_size varchar(9) NOT NULL default '',
ADD avatar_type varchar(15) NOT NULL default 'local';
alter table ibf_members add member_login_key varchar(32) NOT NULL default '';
alter table ibf_members change password legacy_password varchar(32) NOT NULL default '';
alter table ibf_macro rename ibf_skin_macro;
alter table ibf_skin_macro change can_remove macro_can_remove tinyint(1) default '0';
alter table ibf_groups add g_bypass_badwords tinyint(1) NOT NULL default '0';
alter table ibf_cache_store change cs_value cs_value mediumtext NOT NULL default '';
alter table ibf_cache_store add cs_array tinyint(1) NOT NULL default '0';
alter table ibf_sessions add in_error tinyint(1) NOT NULL default '';
alter table ibf_topic_mmod add mm_forums text NOT NULL default '';
alter table ibf_groups change g_icon g_icon text NOT NULL default '';
alter table ibf_emoticons add emo_set varchar(64) NOT NULL default 'default';
alter table ibf_admin_sessions change ID session_id varchar(32) NOT NULL default '';
alter table ibf_admin_sessions change IP_ADDRESS session_ip_address varchar(32) NOT NULL default '';
alter table ibf_admin_sessions change MEMBER_NAME session_member_name varchar(250) NOT NULL default '';
alter table ibf_admin_sessions change MEMBER_ID session_member_id mediumint(8) NOT NULL default '';
alter table ibf_admin_sessions change SESSION_KEY session_member_login_key varchar(32) NOT NULL default '';
alter table ibf_admin_sessions change LOCATION session_location varchar(64) NOT NULL default '';
alter table ibf_admin_sessions change LOG_IN_TIME session_log_in_time int(10) NOT NULL default '';
alter table ibf_admin_sessions change RUNNING_TIME session_running_time int(10) NOT NULL default '';
alter table ibf_forum_tracker add forum_track_type varchar(100) NOT NULL default 'delayed';
alter table ibf_tracker add topic_track_type varchar(100) NOT NULL default 'delayed';
delete from ibf_members where id=0 LIMIT 1;
delete from ibf_member_extra where id=0 limit 1;
alter table ibf_groups add g_attach_per_post int(10) NOT NULL default '0';
CREATE TABLE IF NOT EXISTS ibf_cache_store (
cs_key varchar(255) NOT NULL default '',
cs_value text NOT NULL default '',
cs_extra varchar(255) NOT NULL default '',
PRIMARY KEY(cs_key)
);
ALTER TABLE ibf_forums RENAME ibf_forums_bak;
DROP TABLE if exists ibf_attachments;
DROP TABLE if exists ibf_announcements;
CREATE TABLE ibf_attachments (
attach_id int(10) NOT NULL auto_increment,
attach_ext varchar(10) NOT NULL default '',
attach_file varchar(250) NOT NULL default '',
attach_location varchar(250) NOT NULL default '',
attach_thumb_location varchar(250) NOT NULL default '',
attach_thumb_width smallint(5) NOT NULL default '0',
attach_thumb_height smallint(5) NOT NULL default '0',
attach_is_image tinyint(1) NOT NULL default '0',
attach_hits int(10) NOT NULL default '0',
attach_date int(10) NOT NULL default '0',
attach_temp tinyint(1) NOT NULL default '0',
attach_pid int(10) NOT NULL default '0',
attach_post_key varchar(32) NOT NULL default '0',
attach_msg int(10) NOT NULL default '0',
attach_member_id mediumint(8) NOT NULL default '0',
attach_approved int(10) NOT NULL default '1',
attach_filesize int(10) NOT NULL default '0',
PRIMARY KEY (attach_id),
KEY attach_pid (attach_pid),
KEY attach_msg (attach_msg),
KEY attach_post_key (attach_post_key),
KEY attach_mid_size (attach_member_id, attach_filesize)
);
CREATE TABLE ibf_message_text (
msg_id int(10) NOT NULL auto_increment,
msg_date int(10) default NULL,
msg_post text default '',
msg_cc_users text default '',
msg_sent_to_count smallint(5) NOT NULL default '0',
msg_deleted_count smallint(5) NOT NULL default '0',
msg_post_key varchar(32) NOT NULL default '0',
msg_author_id mediumint(8) NOT NULL default '0',
PRIMARY KEY (msg_id),
KEY msg_date (msg_date),
KEY msg_sent_to_count (msg_sent_to_count),
KEY msg_deleted_count (msg_deleted_count)
);
CREATE TABLE ibf_message_topics (
mt_id int(10) NOT NULL auto_increment,
mt_msg_id int(10) NOT NULL default '0',
mt_date int(10) NOT NULL default '0',
mt_title varchar(255) NOT NULL default '',
mt_from_id mediumint(8) NOT NULL default '0',
mt_to_id mediumint(8) NOT NULL default '0',
mt_owner_id mediumint(8) NOT NULL default '0',
mt_vid_folder varchar(32) NOT NULL default '',
mt_read tinyint(1) NOT NULL default '0',
mt_hasattach smallint(5) NOT NULL default '0',
mt_hide_cc tinyint(1) default '0',
mt_tracking tinyint(1) default '0',
mt_user_read int(10) default '0',
PRIMARY KEY (mt_id),
KEY mt_from_id (mt_from_id),
KEY mt_owner_id (mt_owner_id, mt_to_id, mt_vid_folder)
);
CREATE TABLE ibf_skin_sets (
set_skin_set_id int(10) NOT NULL auto_increment,
set_name varchar(150) NOT NULL default '',
set_image_dir varchar(200) NOT NULL default '',
set_hidden tinyint(1) NOT NULL default '0',
set_default tinyint(1) NOT NULL default '0',
set_css_method varchar(100) NOT NULL default 'inline',
set_skin_set_parent smallint(5) NOT NULL default '-1',
set_author_email varchar(255) NOT NULL default '',
set_author_name varchar(255) NOT NULL default '',
set_author_url varchar(255) NOT NULL default '',
set_css mediumtext NOT NULL default '',
set_wrapper mediumtext NOT NULL default '',
set_css_updated int(10) NOT NULL default '0',
set_cache_css mediumtext NOT NULL default '',
set_cache_macro mediumtext NOT NULL default '',
set_cache_wrapper mediumtext NOT NULL default '',
set_emoticon_folder varchar(60) NOT NULL default 'default',
PRIMARY KEY(set_skin_set_id)
);
CREATE TABLE ibf_skin_templates_cache (
template_id varchar(32) NOT NULL default '',
template_group_name varchar(255) NOT NULL default '',
template_group_content mediumtext NOT NULL default '',
template_set_id int(10) NOT NULL default '0',
primary key (template_id),
KEY template_set_id (template_set_id),
KEY template_group_name (template_group_name)
);
CREATE TABLE ibf_mail_queue(
mail_id int(10) auto_increment NOT NULL,
mail_date int(10) NOT NULL default '0',
mail_to varchar(255) NOT NULL default '',
mail_from varchar(255) NOT NULL default '',
mail_subject text NOT NULL default '',
mail_content text NOT NULL default '',
mail_type varchar(200) NOT NULL default '',
PRIMARY KEY (mail_id)
);
CREATE TABLE ibf_task_manager (
task_id int(10) auto_increment NOT NULL,
task_title varchar(255) NOT NULL default '',
task_file varchar(255) NOT NULL default '',
task_next_run int(10) NOT NULL default '',
task_week_day tinyint(1) NOT NULL default '-1',
task_month_day smallint(2) NOT NULL default '-1',
task_hour smallint(2) NOT NULL default '-1',
task_minute smallint(2) NOT NULL default '-1',
task_cronkey varchar(32) NOT NULL default '',
task_log tinyint(1) NOT NULL default '0',
task_description text NOT NULL default '',
task_enabled tinyint(1) NOT NULL default '1',
task_key varchar(30) NOT NULL default '',
task_safemode tinyint(1) NOT NULL default '',
PRIMARY KEY(task_id),
KEY task_next_run (task_next_run)
);
CREATE TABLE ibf_task_logs (
log_id int(10) auto_increment NOT NULL,
log_title varchar(255) NOT NULL default '',
log_date int(10) NOT NULL default '0',
log_ip varchar(16) NOT NULL default '0',
log_desc text NOT NULL default '',
PRIMARY KEY(log_id)
);
CREATE TABLE ibf_custom_bbcode (
bbcode_id int(10) NOT NULL auto_increment,
bbcode_title varchar(255) NOT NULL default '',
bbcode_desc text NOT NULL default '',
bbcode_tag varchar(255) NOT NULL default '',
bbcode_replace text NOT NULL default '',
bbcode_useoption tinyint(1) NOT NULL default '',
bbcode_example text NOT NULL default '',
PRIMARY KEY (bbcode_id)
);
CREATE TABLE ibf_conf_settings (
conf_id int(10) NOT NULL auto_increment,
conf_title varchar(255) NOT NULL default '',
conf_description text NOT NULL default '',
conf_group smallint(3) NOT NULL default '',
conf_type varchar(255) NOT NULL default '',
conf_key varchar(255) NOT NULL default '',
conf_value text NOT NULL default '',
conf_default text NOT NULL default '',
conf_extra text NOT NULL default '',
conf_evalphp text NOT NULL default '',
conf_protected tinyint(1) NOT NULL default '',
conf_position smallint(3) NOT NULL default '0',
conf_start_group varchar(255) NOT NULL default '',
conf_end_group tinyint(1) NOT NULL default '0',
conf_help_key varchar(255) NOT NULL default '0',
conf_add_cache tinyint(1) NOT NULL default '1',
PRIMARY KEY (conf_id)
);
CREATE TABLE ibf_conf_settings_titles (
conf_title_id smallint(3) NOT NULL auto_increment,
conf_title_title varchar(255) NOT NULL default '',
conf_title_desc text NOT NULL default '',
conf_title_count smallint(3) NOT NULL default '0',
conf_title_noshow tinyint(1) NOT NULL default '0',
conf_title_keyword varchar(200) NOT NULL default '',
PRIMARY KEY(conf_title_id)
);
CREATE TABLE ibf_topics_read (
read_tid int(10) NOT NULL default '0',
read_mid mediumint(8) NOT NULL default '0',
read_date int(10) NOT NULL default '0',
UNIQUE KEY read_tid_mid( read_tid, read_mid )
);
CREATE TABLE ibf_banfilters (
ban_id int(10) NOT NULL auto_increment,
ban_type varchar(10) NOT NULL default 'ip',
ban_content text NOT NULL default '',
ban_date int(10) NOT NULL default '0',
PRIMARY KEY (ban_id)
);
CREATE TABLE ibf_attachments_type (
atype_id int(10) NOT NULL auto_increment,
atype_extension varchar(18) NOT NULL default '',
atype_mimetype varchar(255) NOT NULL default '',
atype_post tinyint(1) NOT NULL default '1',
atype_photo tinyint(1) NOT NULL default '0',
atype_img text NOT NULL default '',
PRIMARY KEY (atype_id)
);
CREATE TABLE ibf_members_converge (
converge_id int(10) auto_increment NOT NULL,
converge_email varchar(250) NOT NULL default '',
converge_joined int(10) NOT NULL default '',
converge_pass_hash varchar(32) NOT NULL default '',
converge_pass_salt varchar(5) NOT NULL default '',
PRIMARY KEY( converge_id )
);
CREATE TABLE ibf_announcements (
announce_id int(10) UNSIGNED NOT NULL auto_increment,
announce_title varchar(255) NOT NULL default '',
announce_post text NOT NULL default '',
announce_forum text NOT NULL default '',
announce_member_id mediumint(8) UNSIGNED NOT NULL default '0',
announce_html_enabled tinyint(1) NOT NULL default '0',
announce_views int(10) UNSIGNED NOT NULL default '0',
announce_start int(10) UNSIGNED NOT NULL default '0',
announce_end int(10) UNSIGNED NOT NULL default '0',
announce_active tinyint(1) NOT NULL default '1',
PRIMARY KEY (announce_id)
);
CREATE TABLE ibf_mail_error_logs (
mlog_id int(10) auto_increment NOT NULL,
mlog_date int(10) NOT NULL default '0',
mlog_to varchar(250) NOT NULL default '',
mlog_from varchar(250) NOT NULL default '',
mlog_subject varchar(250) NOT NULL default '',
mlog_content varchar(250) NOT NULL default '',
mlog_msg text NOT NULL default '',
mlog_code varchar(200) NOT NULL default '',
mlog_smtp_msg text NOT NULL default '',
PRIMARY KEY (mlog_id)
);
CREATE TABLE ibf_bulk_mail (
mail_id int(10) NOT NULL auto_increment,
mail_subject varchar(255) NOT NULL default '',
mail_content mediumtext NOT NULL default '',
mail_groups mediumtext NOT NULL default '',
mail_honor tinyint(1) NOT NULL default '1',
mail_opts mediumtext NOT NULL default '',
mail_start int(10) NOT NULL default '0',
mail_updated int(10) NOT NULL default '0',
mail_sentto int(10) NOT NULL default '0',
mail_active tinyint(1) NOT NULL default '0',
mail_pergo smallint(5) NOT NULL default '0',
PRIMARY KEY (mail_id)
);
CREATE TABLE ibf_upgrade_history (
upgrade_id int(10) NOT NULL auto_increment,
upgrade_version_id int(10) NOT NULL default '',
upgrade_version_human varchar(200) NOT NULL default '',
upgrade_date int(10) NOT NULL default '0',
upgrade_mid int(10) NOT NULL default '0',
upgrade_notes text NOT NULL default '',
PRIMARY KEY (upgrade_id)
);
DROP TABLE if exists ibf_forums;
CREATE TABLE ibf_forums (
id smallint(5) NOT NULL default '0',
topics mediumint(6) default '0',
posts mediumint(6) default '0',
last_post int(10) default NULL,
last_poster_id mediumint(8) NOT NULL default '0',
last_poster_name varchar(32) default NULL,
name varchar(128) NOT NULL default '',
description text,
position tinyint(2) default NULL,
use_ibc tinyint(1) default NULL,
use_html tinyint(1) default NULL,
status varchar(10) default NULL,
password varchar(32) default NULL,
last_title varchar(128) default NULL,
last_id int(10) default NULL,
sort_key varchar(32) default NULL,
sort_order varchar(32) default NULL,
prune tinyint(3) default NULL,
show_rules tinyint(1) default NULL,
preview_posts tinyint(1) default NULL,
allow_poll tinyint(1) NOT NULL default '1',
allow_pollbump tinyint(1) NOT NULL default '0',
inc_postcount tinyint(1) NOT NULL default '1',
skin_id int(10) default NULL,
parent_id mediumint(5) default '-1',
sub_can_post tinyint(1) default '1',
quick_reply tinyint(1) default '0',
redirect_url varchar(250) default '',
redirect_on tinyint(1) NOT NULL default '0',
redirect_hits int(10) NOT NULL default '0',
redirect_loc varchar(250) default '',
rules_title varchar(255) NOT NULL default '',
rules_text text NOT NULL,
topic_mm_id varchar(250) NOT NULL default '',
notify_modq_emails text default '',
permission_custom_error text NOT NULL default '',
permission_array mediumtext NOT NULL default '',
permission_showtopic tinyint(1) NOT NULL default '0',
queued_topics mediumint(6) NOT NULL default '0',
queued_posts mediumint(6) NOT NULL default '0',
PRIMARY KEY (id),
KEY position (position, parent_id)
);
alter table ibf_posts add post_parent int(10) NOT NULL default '0';
alter table ibf_posts ADD post_key varchar(32) NOT NULL default '0';
alter table ibf_posts add post_htmlstate smallint(1) NOT NULL default '0';
alter table ibf_topics ADD topic_hasattach smallint(5) NOT NULL default '0';
alter table ibf_members add login_anonymous varchar(3) NOT NULL default '0&0';
alter table ibf_members add ignored_users text NOT NULL default '';
alter table ibf_members add mgroup_others varchar(255) NOT NULL default '';
alter table ibf_member_extra
ADD aim_name varchar(40) NOT NULL default '',
ADD icq_number int(15) NOT NULL default '',
ADD website varchar(250) NOT NULL default '',
ADD yahoo varchar(40) NOT NULL default '',
ADD interests text NOT NULL default '',
ADD msnname varchar(200) NOT NULL default '',
ADD vdirs text NOT NULL default '',
ADD location varchar(250) NOT NULL default '',
ADD signature text NOT NULL default '',
ADD avatar_location varchar(128) NOT NULL default '',
ADD avatar_size varchar(9) NOT NULL default '',
ADD avatar_type varchar(15) NOT NULL default 'local';
alter table ibf_members add member_login_key varchar(32) NOT NULL default '';
alter table ibf_members change password legacy_password varchar(32) NOT NULL default '';
alter table ibf_macro rename ibf_skin_macro;
alter table ibf_skin_macro change can_remove macro_can_remove tinyint(1) default '0';
alter table ibf_groups add g_bypass_badwords tinyint(1) NOT NULL default '0';
alter table ibf_cache_store change cs_value cs_value mediumtext NOT NULL default '';
alter table ibf_cache_store add cs_array tinyint(1) NOT NULL default '0';
alter table ibf_sessions add in_error tinyint(1) NOT NULL default '';
alter table ibf_topic_mmod add mm_forums text NOT NULL default '';
alter table ibf_groups change g_icon g_icon text NOT NULL default '';
alter table ibf_emoticons add emo_set varchar(64) NOT NULL default 'default';
alter table ibf_admin_sessions change ID session_id varchar(32) NOT NULL default '';
alter table ibf_admin_sessions change IP_ADDRESS session_ip_address varchar(32) NOT NULL default '';
alter table ibf_admin_sessions change MEMBER_NAME session_member_name varchar(250) NOT NULL default '';
alter table ibf_admin_sessions change MEMBER_ID session_member_id mediumint(8) NOT NULL default '';
alter table ibf_admin_sessions change SESSION_KEY session_member_login_key varchar(32) NOT NULL default '';
alter table ibf_admin_sessions change LOCATION session_location varchar(64) NOT NULL default '';
alter table ibf_admin_sessions change LOG_IN_TIME session_log_in_time int(10) NOT NULL default '';
alter table ibf_admin_sessions change RUNNING_TIME session_running_time int(10) NOT NULL default '';
alter table ibf_forum_tracker add forum_track_type varchar(100) NOT NULL default 'delayed';
alter table ibf_tracker add topic_track_type varchar(100) NOT NULL default 'delayed';
delete from ibf_members where id=0 LIMIT 1;
delete from ibf_member_extra where id=0 limit 1;
alter table ibf_groups add g_attach_per_post int(10) NOT NULL default '0';
+18 -17
View File
@@ -28,21 +28,21 @@ change fshowreg pf_show_on_reg tinyint(1) NOT NULL default '0',
add pf_input_format text NOT NULL default '',
add pf_admin_only tinyint(1) NOT NULL default '0',
add pf_topic_format text NOT NULL default '';
INSERT INTO ibf_task_manager VALUES (1, 'Hourly Clean Out', 'cleanout.php', 1076074920, -1, -1, -1, 59, '2a7d083832daa123b73a68f9c51fdb29', 1, 'Kill old sessions, reg images, searches',1,'',0);
INSERT INTO ibf_task_manager VALUES (2, 'Daily Stats Rebuild', 'rebuildstats.php', 1076112000, -1, -1, 0, 0, '640b9a6c373ff207bc1b1100a98121af', 1, 'Rebuilds board statistics',1,'',0);
INSERT INTO ibf_task_manager VALUES (3, 'Daily Clean Out', 'dailycleanout.php', 1076122800, -1, -1, 3, 0, 'e71b52f3ff9419abecedd14b54e692c4', 1, 'Prunes topic subscriptions',1,'',0);
INSERT INTO ibf_task_manager VALUES (4, 'Birthday and Events Cache', 'calendarevents.php', 1076100960, -1, -1, 12, -1, '2c148c9bd754d023a7a19dd9b1535796', 1, 'Caches calendar events &amp; birthdays',1,'',0);
INSERT INTO ibf_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);
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);
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 &amp; Forum Digest', 'dailydigest.php', 1086912600, -1, -1, 0, 10, '723cab2aae32dd5d04898b1151038846', 1, 'Emails out daily topic &amp; forum digest emails', 1, 'dailydigest', 0);
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 &amp; Forum Digest', 'weeklydigest.php', 1087096200, 0, -1, 3, 10, '7e7fccd07f781bdb24ac108d26612931', 1, 'Emails weekly topic &amp; forum digest emails', 1, 'weeklydigest', 0);
INSERT INTO ibf_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&amp;pid={content}\"><{POST_SNAPBACK}></a>', 0, '[snapback]100[/snapback]');
INSERT INTO ibf_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]');
INSERT INTO ibf_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]');
INSERT INTO ibf_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]');
INSERT INTO ibf_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]');
INSERT INTO ibf_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]');
INSERT INTO ibf_subscription_methods (submethod_title, submethod_name, submethod_email, submethod_sid, submethod_custom_1, submethod_custom_2, submethod_custom_3, submethod_custom_4, submethod_custom_5, submethod_is_cc, submethod_is_auto, submethod_desc, submethod_logo, submethod_active, submethod_use_currency) VALUES ('Authorize.net', 'authorizenet', '', '', '', '', '', '', '', '1', '1', NULL, NULL, '1', 'USD');
INSERT INTO ibf_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 (1, 'Åæå÷àñíàÿ î÷èñòêà ôîðóìà', 'cleanout.php', 1079704080, -1, -1, -1, 59, '2a7d083832daa123b73a68f9c51fdb29', 1, 'Óäàëåíèå ñòàðûõ ñåññèé, çàùèòíûõ ðåãèñòðàöèîííûõ êîäîâ, ïîèñêîâ', 1);
INSERT INTO ibf_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 (3, 'Åæåäíåâíûé ïåðåñ÷åò ñòàòèñòèêè', 'rebuildstats.php', 1079740800, -1, -1, 0, 0, '640b9a6c373ff207bc1b1100a98121af', 1, 'Ïåðåñ÷åò ñòàòèñòèêè ôîðóìà', 1);
INSERT INTO ibf_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 (6, 'Åæåäíåâíàÿ î÷èñòêà ôîðóìà', 'dailycleanout.php', 1079751600, -1, -1, 3, 0, 'e71b52f3ff9419abecedd14b54e692c4', 1, 'Ñîêðàùàåò ïîäïèñêè íà òåìû è ñòàðûå çàïèñè ïðî÷òåíèÿ òåì', 1);
INSERT INTO ibf_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 (8, 'Êåøèðîâàíèå èìåíèííèêîâ è ñîáûòèé êàëåíäàðÿ', 'calendarevents.php', 1079725800, -1, -1, 12, -1, '2c148c9bd754d023a7a19dd9b1535796', 1, 'Êåøèðîâàíèå ñîáûòèé êàëåíäàðÿ è äíåé ðîæäåíèÿ ôîðóì÷àí', 1);
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) VALUES ('Îáíîâëåíèå îáúÿâëåíèé', 'announcements.php', 1080747660, -1, -1, 4, -1, 'e82f2c19ab1ed57c140fccf8aea8b9fe', 1,'Îáíîâëåíèå êåøà è óäàëåíèå îêîí÷åííûõ îáúÿâëåíèé', 1);
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);
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)
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)
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Óêàçàòåëü ñîîáùåíèÿ', 'Ýòîò òýã ïîêàçûâàåò ìàëåíüêîå èçîáðàæåíèå, êîòîðîå ÿâëÿåòñÿ ññûëêîé íà öèòèðóåìîå ñîîáùåíèå &#151; èñïîëüçóåòñÿ, êîãäà öèòèðóþòñÿ ñîîáùåíèÿ ñ ôîðóìà. Îòêðûâàåòñÿ ïî óìîë÷àíèþ â òîì æå îêíå.', 'snapback', '<a href=\"index.php?act=findpost&amp;pid={content}\"><{POST_SNAPBACK}></a>', 0, '[snapback]100[/snapback]');
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Ïî ïðàâîìó êðàþ', 'Âûðàâíèâàíèå òåêñòà ïî ïðàâîìó êðàþ', 'right', '<div align=\'right\'>{content}</div>', 0, '[right]Ëþáîé òåêñò çäåñü[/right]');
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Ïî ëåâîìó êðàþ', 'Âûðàâíèâàíèå òåêñòà ïî ëåâîìó êðàþ', 'left', '<div align=\'left\'>{content}</div>', 0, '[left]Ýòîò òåêñò áóäåò èñïîëüçîâàòü âûðàâíèâàíèå ïî ëåâîìó êðàþ[/left]');
INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Ïî öåíòðó', 'Âûðàâíèâàíèå òåêñòà ïî öåíòðó.', 'center', '<div align=\'center\'>{content}</div>', 0, '[center]Âûðàâíèâàíèå òåêñòà áóäåò ïî öåíòðó[/center]');
INSERT INTO ibf_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]');
INSERT INTO ibf_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]');
#INSERT INTO ibf_subscription_methods (submethod_title, submethod_name, submethod_email, submethod_sid, submethod_custom_1, submethod_custom_2, submethod_custom_3, submethod_custom_4, submethod_custom_5, submethod_is_cc, submethod_is_auto, submethod_desc, submethod_logo, submethod_active, submethod_use_currency) VALUES ('Authorize.net', 'authorizenet', '', '', '', '', '', '', '', '1', '1', NULL, NULL, '1', 'USD');
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (1, 'pdf', 'application/pdf', 1, 0, 'folder_mime_types/pdf.gif');
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (2, 'png', 'image/png', 1, 1, 'folder_mime_types/quicktime.gif');
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (3, 'viv', 'video/vivo', 1, 0, 'folder_mime_types/win_player.gif');
@@ -120,7 +120,7 @@ INSERT INTO ibf_conf_settings_titles (conf_title_id, conf_title_title, conf_titl
INSERT INTO ibf_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');
INSERT INTO ibf_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');
INSERT INTO ibf_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');
INSERT INTO ibf_upgrade_history (upgrade_id, upgrade_version_id, upgrade_version_human, upgrade_date, upgrade_mid, upgrade_notes) VALUES ('', '20010', '2.0.0', '0', '0', '');
INSERT INTO ibf_upgrade_history (upgrade_id, upgrade_version_id, upgrade_version_human, upgrade_date, upgrade_mid, upgrade_notes) VALUES ('', '20012', '2.0.2', '0', '0', '');
DROP TABLE ibf_tmpl_names;
DROP TABLE ibf_forums_bak;
DROP TABLE ibf_categories;
@@ -135,4 +135,5 @@ alter table ibf_posts drop index author_id;
alter table ibf_posts add index topic_id (topic_id, queued, pid);
alter table ibf_posts add index author_id( author_id, topic_id);
ALTER TABLE ibf_posts DROP INDEX forum_id, ADD INDEX(post_date);
UPDATE ibf_members SET language=''";
UPDATE ibf_members SET language='';
ALTER TABLE ibf_members add has_blog TINYINT(1) NOT NULL default '0';
+214 -206
View File
@@ -2,17 +2,23 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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.1 -> 2.0 SQL STUFF!
@@ -36,8 +42,8 @@ class upgrade_sql
{
global $DB, $ibforums, $std;
define( 'THIS_HUMAN_VERSION', '2.0.0' );
define( 'THIS_LONG_VERSION' , '20010' );
define( 'THIS_HUMAN_VERSION', '2.0.2' );
define( 'THIS_LONG_VERSION' , '20012' );
$this->sqlbit['attach'] = "attach_file != ''";
}
@@ -54,8 +60,9 @@ class upgrade_sql
// Get ACP library
//-----------------------------------
require_once( ROOT_PATH.'sources/admin/admin_cache_functions.php' );
$acp = new admin_cache_functions();
require_once( ROOT_PATH.'sources/lib/admin_cache_functions.php' );
$acp = new admin_cache_functions();
$acp->ipsclass =& $this->ipsclass;
//-----------------------------------
// Cache skins and shit
@@ -67,15 +74,15 @@ class upgrade_sql
// Forum cache
//-------------------------------------------------------------
$ibforums->cache['forum_cache'] = array();
$this->ipsclass->cache['forum_cache'] = array();
$DB->simple_construct( array( 'select' => '*',
$this->ipsclass->DB->simple_construct( array( 'select' => '*',
'from' => 'forums',
'order' => 'parent_id, position'
) );
$DB->simple_exec();
$this->ipsclass->DB->simple_exec();
while( $fr = $DB->fetch_row() )
while( $fr = $this->ipsclass->DB->fetch_row() )
{
$perms = unserialize(stripslashes($fr['permission_array']));
@@ -87,171 +94,171 @@ class upgrade_sql
unset($fr['permission_array']);
$ibforums->cache['forum_cache'][ $fr['id'] ] = $fr;
$this->ipsclass->cache['forum_cache'][ $fr['id'] ] = $fr;
}
$std->update_cache( array( 'name' => 'forum_cache', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'forum_cache', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// Group Cache
//-------------------------------------------------------------
$ibforums->cache['group_cache'] = array();
$this->ipsclass->cache['group_cache'] = array();
$DB->simple_construct( array( 'select' => "*",
$this->ipsclass->DB->simple_construct( array( 'select' => "*",
'from' => 'groups'
) );
$DB->simple_exec();
$this->ipsclass->DB->simple_exec();
while ( $i = $DB->fetch_row() )
while ( $i = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['group_cache'][ $i['g_id'] ] = $i;
$this->ipsclass->cache['group_cache'][ $i['g_id'] ] = $i;
}
$std->update_cache( array( 'name' => 'group_cache', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'group_cache', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// Systemvars
//-------------------------------------------------------------
$ibforums->cache['systemvars'] = array();
$this->ipsclass->cache['systemvars'] = array();
$result = $DB->simple_exec_query( array( 'select' => 'count(*) as cnt', 'from' => 'mail_queue' ) );
$result = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'count(*) as cnt', 'from' => 'mail_queue' ) );
$ibforums->cache['systemvars']['mail_queue'] = intval( $result['cnt'] );
$ibforums->cache['systemvars']['task_next_run'] = time() + 3600;
$this->ipsclass->cache['systemvars']['mail_queue'] = intval( $result['cnt'] );
$this->ipsclass->cache['systemvars']['task_next_run'] = time() + 3600;
$std->update_cache( array( 'name' => 'systemvars', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'systemvars', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// Stats
//-------------------------------------------------------------
$ibforums->cache['stats'] = array();
$this->ipsclass->cache['stats'] = array();
$DB->simple_construct( array( 'select' => 'count(pid) as posts', 'from' => 'posts', 'where' => "queued <> 1" ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'count(pid) as posts', 'from' => 'posts', 'where' => "queued <> 1" ) );
$this->ipsclass->DB->simple_exec();
$r = $DB->fetch_row();
$r = $this->ipsclass->DB->fetch_row();
$stats['total_replies'] = intval($r['posts']);
$DB->simple_construct( array( 'select' => 'count(tid) as topics', 'from' => 'topics', 'where' => "approved = 1" ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'count(tid) as topics', 'from' => 'topics', 'where' => "approved = 1" ) );
$this->ipsclass->DB->simple_exec();
$r = $DB->fetch_row();
$r = $this->ipsclass->DB->fetch_row();
$stats['total_topics'] = intval($r['topics']);
$stats['total_replies'] -= $stats['total_topics'];
$DB->simple_construct( array( 'select' => 'count(id) as members', 'from' => 'members', 'where' => "mgroup <> '".$ibforums->vars['auth_group']."'" ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'count(id) as members', 'from' => 'members', 'where' => "mgroup <> '".$this->ipsclass->vars['auth_group']."'" ) );
$this->ipsclass->DB->simple_exec();
$r = $DB->fetch_row();
$r = $this->ipsclass->DB->fetch_row();
$stats['mem_count'] = intval($r['members']);
$ibforums->cache['stats']['total_replies'] = $stats['total_replies'];
$ibforums->cache['stats']['total_topics'] = $stats['total_topics'];
$ibforums->cache['stats']['mem_count'] = $stats['mem_count'];
$this->ipsclass->cache['stats']['total_replies'] = $stats['total_replies'];
$this->ipsclass->cache['stats']['total_topics'] = $stats['total_topics'];
$this->ipsclass->cache['stats']['mem_count'] = $stats['mem_count'];
$r = $DB->simple_exec_query( array( 'select' => 'id, name',
$r = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'id, name',
'from' => 'members',
'order' => 'id DESC',
'limit' => '0,1'
) );
$ibforums->cache['stats']['last_mem_name'] = $r['name'];
$ibforums->cache['stats']['last_mem_id'] = $r['id'];
$this->ipsclass->cache['stats']['last_mem_name'] = $r['name'];
$this->ipsclass->cache['stats']['last_mem_id'] = $r['id'];
$std->update_cache( array( 'name' => 'stats', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'stats', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// Ranks
//-------------------------------------------------------------
$ibforums->cache['ranks'] = array();
$this->ipsclass->cache['ranks'] = array();
$DB->simple_construct( array( 'select' => 'id, title, pips, posts',
$this->ipsclass->DB->simple_construct( array( 'select' => 'id, title, pips, posts',
'from' => 'titles',
'order' => "posts DESC",
) );
$DB->simple_exec();
$this->ipsclass->DB->simple_exec();
while ($i = $DB->fetch_row())
while ($i = $this->ipsclass->DB->fetch_row())
{
$ibforums->cache['ranks'][ $i['id'] ] = array(
$this->ipsclass->cache['ranks'][ $i['id'] ] = array(
'TITLE' => $i['title'],
'PIPS' => $i['pips'],
'POSTS' => $i['posts'],
);
}
$std->update_cache( array( 'name' => 'ranks', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'ranks', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// SETTINGS
//-------------------------------------------------------------
$ibforums->cache['settings'] = array();
$this->ipsclass->cache['settings'] = array();
$DB->simple_construct( array( 'select' => '*', 'from' => 'conf_settings', 'where' => 'conf_add_cache=1' ) );
$info = $DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'conf_settings', 'where' => 'conf_add_cache=1' ) );
$info = $this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row($info) )
while ( $r = $this->ipsclass->DB->fetch_row($info) )
{
$ibforums->cache['settings'][ $r['conf_key'] ] = $r['conf_value'] != "" ? $r['conf_value'] : $r['conf_default'];
$this->ipsclass->cache['settings'][ $r['conf_key'] ] = $r['conf_value'] != "" ? $r['conf_value'] : $r['conf_default'];
}
$std->update_cache( array( 'name' => 'settings', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'settings', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// EMOTICONS
//-------------------------------------------------------------
$ibforums->cache['emoticons'] = array();
$this->ipsclass->cache['emoticons'] = array();
$DB->simple_construct( array( 'select' => 'typed,image,clickable,emo_set', 'from' => 'emoticons' ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'typed,image,clickable,emo_set', 'from' => 'emoticons' ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row() )
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['emoticons'][] = $r;
$this->ipsclass->cache['emoticons'][] = $r;
}
$std->update_cache( array( 'name' => 'emoticons', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'emoticons', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// LANGUAGES
//-------------------------------------------------------------
$ibforums->cache['languages'] = array();
$this->ipsclass->cache['languages'] = array();
$DB->simple_construct( array( 'select' => 'ldir,lname', 'from' => 'languages' ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'ldir,lname', 'from' => 'languages' ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row() )
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['languages'][] = $r;
$this->ipsclass->cache['languages'][] = $r;
}
$std->update_cache( array( 'name' => 'languages', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'languages', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// ATTACHMENT TYPES
//-------------------------------------------------------------
$ibforums->cache['attachtypes'] = array();
$this->ipsclass->cache['attachtypes'] = array();
$DB->simple_construct( array( 'select' => 'atype_extension,atype_mimetype,atype_post,atype_photo,atype_img', 'from' => 'attachments_type', 'where' => "atype_photo=1 OR atype_post=1" ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'atype_extension,atype_mimetype,atype_post,atype_photo,atype_img', 'from' => 'attachments_type', 'where' => "atype_photo=1 OR atype_post=1" ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row() )
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['attachtypes'][ $r['atype_extension'] ] = $r;
$this->ipsclass->cache['attachtypes'][ $r['atype_extension'] ] = $r;
}
$std->update_cache( array( 'name' => 'attachtypes', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'attachtypes', 'array' => 1, 'deletefirst' => 1 ) );
}
/*-------------------------------------------------------------------------*/
@@ -273,15 +280,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $query."<br /><br />".$DB->error;
$this->error[] = $query."<br /><br />".$this->ipsclass->DB->error;
}
else
{
@@ -361,15 +368,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $query."<br /><br />".$DB->error;
$this->error[] = $query."<br /><br />".$this->ipsclass->DB->error;
}
else
{
@@ -394,15 +401,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $query."<br /><br />".$DB->error;
$this->error[] = $query."<br /><br />".$this->ipsclass->DB->error;
}
else
{
@@ -419,14 +426,14 @@ class upgrade_sql
{
global $DB, $std, $ibforums;
$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 &amp; 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 &amp; Forum Digest', 'dailydigest.php', 1086912600, -1, -1, 0, 10, '723cab2aae32dd5d04898b1151038846', 1, 'Emails out daily topic &amp; 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 &amp; Forum Digest', 'weeklydigest.php', 1087096200, 0, -1, 3, 10, '7e7fccd07f781bdb24ac108d26612931', 1, 'Emails weekly topic &amp; forum digest emails', 1, 'weeklydigest', 0);";
$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 ('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&amp;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]');";
@@ -497,69 +504,69 @@ class upgrade_sql
$SQL[] = "INSERT INTO ".SQL_PREFIX."cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('birthdays', 'a:0:{}', '', 1);";
$SQL[] = "INSERT INTO ".SQL_PREFIX."cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('calendar', 'a:0:{}', '', 1);";
$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 (1, 'IPB Master Skin Set', '1', 0, 0, '0', -1, '', '', '', '', '', '', 1079109298, '', '', 'default');";
$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 (2, 'IPB Default Skin', '1', 0, 1, '0', -1, 'ipbauto@invisionboard.com', 'Invision Power Services', 'www.invisionboard.com', '', '', '', 1074679074, '', '', 'default');";
$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."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 (1, 'IPB Ãëàâíûé ñòèëü', '1', 0, 0, '0', -1, '', '', '', '', '', '', 1079109298, '', '', 'default');";
$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 (2, 'IPB Ñòàíäàðòíûé ñòèëü', '1', 0, 1, '0', -1, 'ipbauto@invisionboard.com', 'Invision Power Services', 'www.invisionboard.com', '', '', '', 1074679074, '', '', 'default');";
$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 Ñòàðûå ñòèëè (äî 2.0)', '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, '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 &amp; 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 &amp; 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 &amp; 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');";
$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, 'Íàñòðîéêà Íîâîñòåé ôîðóìà', 'Ïîçâîëÿåò âûáðàòü íîâîñòíîé ðàçäåë ôîðóìà, îòêóäà áóäóò ýêñïîðòèðîâàòüñÿ íîâîñòè, êàê ñàìèì ôîðóìîì, òàê è ssi.php.', 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 àäðåñà ôîðóìà, âûáèðàòü ìåòîä äëÿ îòïðàâêè ïî÷òû (PHP mail(), SMTP) ñ ôîðóìà', 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, 'Íàñòðîéêè Êîðçèíû', 'Êîðçèíà &#151; ñïåöèàëüíûé ôîðóì, â êîòîðûé ïåðåìåùàþòñÿ òåìû ïîñëå óäàëåíèÿ, òåì ñàìûì îñòàâëÿÿ âîçìîæíîñòü âîññòàíîâèòü òåìó ïðè åå ñëó÷àéíîì óäàëåíèè.', 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, 'Òèï àâòîðèçàöèè', '&nbsp;', 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 Ïîðòàë.', 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,'Ðåãèñòðàöèÿ IPB', 'Ýòîò áëîê ïîçâîëÿåò âàì ðàáîòàòü ñ íàñòðîéêàìè ëèöåíçèè íà IPB.', 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 Óäàëåíèå êîïèðàéòà', 'Ýòîò áëîê ïîçâîëÿåò ââåñòè êëþ÷ àêòèâàöèè óñëóãè óäàëåíèÿ êîïèðàéòà.', 2, 1, 'ipbcopyright');";
$SQL[] = "INSERT INTO ".SQL_PREFIX."upgrade_history (upgrade_id, upgrade_version_id, upgrade_version_human, upgrade_date, upgrade_mid, upgrade_notes) VALUES ('', '".THIS_LONG_VERSION."', '".THIS_HUMAN_VERSION."', '0', '0', '');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (1, 'Registration benefits', '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.', 'How to register and the added benefits of being a registered member.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (2, 'Cookies and cookie usage', '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.', 'The benefits of using cookies and how to remove cookies set by this board.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (3, 'Recovering lost or forgotten passwords', '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.', 'How to reset your password if you\'ve forgotton it.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (4, 'Your Control Panel (My Controls)', '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>Skins and Languages</b>\r<br>\r<br>If available, you can choose a skin style and language choice. This affects how the board is displayed so you may wish to preview the skin before submitting the form.\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.', 'Editing contact information, personal information, avatars, signatures, board settings, languages and style choices.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (5, 'Email Notification of new messages', '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>\r<br><li>Click the \'Track This Topic\' link at the top of the topic that you wish to track\r<br><li> On the posting screen when replying to or creating a topic, check the \'Enable email notification of replies?\' checkbox\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\r<br>\r<br>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 this from there.', 'How to get emailed when a new reply is added to a topic.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (6, 'Your Personal Messenger', '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>Send 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><b>Go to Inbox</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.', 'How to send personal messages, track them, edit your messenger folders and archive stored messages.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (7, 'Contacting the moderating team & reporting posts', '<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.', 'Where to find a list of the board moderators and administrators.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (8, 'Viewing members profile information', '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.', 'How to view members contact information.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (9, 'Viewing active topics and new posts', '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.', 'How to view all the topics which have a new reply today and the new posts made since your last visit.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (10, 'Searching Topics and Posts', '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.', 'How to use the search feature.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (11, 'Logging in and out', '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.', 'How to log in and out from the board and how to remain anonymous and not be shown on the active users list.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (13, 'My Assistant', '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>\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.\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.\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.\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.\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.\r<br>\r<br>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.', 'A comprehensive guide to use this handy little feature.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (12, 'Posting', '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 (is 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 above 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.', 'A guide to the features avaliable when posting on the boards.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (14, 'Member List', '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.', 'Explaining the different ways to sort and search through the list of members.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (15, 'Topic Options', 'At the bottom of each topic, there is a \'Topic Options\' button. Pressing this button will expand the topic options box. \r\n<br>\r\n<br>From this box, you can select from the following options: \r\n<br>\r\n<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 \r\n<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 \r\n<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.', 'A guide to the options avaliable when viewing a topic.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (16, 'Calendar', 'This board features it\'s very own calendar feature, which can be accessed via the calendar link at the top of the board.\r\n<br>\r\n<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\n<br>\r\n<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.\r\n<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.\r\n<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.\r\n<br>\r\n<br>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\n<br>\r\n<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.', 'More information on the boards calendar feature.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (1, 'Ïðåèìóùåñòâà ðåãèñòðàöèè', 'Äëÿ ïîëíîöåííîãî èñïîëüçîâàíèÿ âñåõ ôóíêöèé ôîðóìà, Àäìèíèñòðàòîð òðåáóåò çàðåãèñòðèðîâàòüñÿ íà ôîðóìå. Ðåãèñòðàöèÿ íà ôîðóìå àáñîëþòíî áåñïëàòíà è îòíèìåò ó Âàñ âñåãî ëèøü ïàðó ìèíóò.\r<br>\r<br>Ïðè ðåãèñòðàöèè íåîáõîäèìî îáÿçàòåëüíî óêàçàòü Âàø ðåàëüíûé e-mail àäðåñ. Àäìèíèñòðàòîð ìîæåò ïîòðåáîâàòü îò Âàñ ïîäòâåðæäåíèÿ Âàøåé ðåãèñòðàöèè ïî óêàçàííîìó Âàìè email àäðåñó. Åñëè äàííîå òðåáîâàíèå àäìèíèñòðàòîðà âêëþ÷åíî, Âû áóäåòå èçâåùåíû îá ýòîì âî âðåìÿ ðåãèñòðàöèè. Åñëè Âû ïî êàêîé-òî ïðè÷èíå íå ïîëó÷èëè ïèñüìà äëÿ àêòèâàöèè, çàéäèòå íà ôîðóì è â ïðàâîé âåðõíåé ÷àñòè ôîðóìà, âîñïîëüçóéòåñü ññûëêîé \'Âûñëàòü ïîâòîðíî ïèñüìî äëÿ àêòèâàöèè\'.\r<br>\r<br>Òàêæå âîçìîæíî, ÷òî àäìèíèñòðàòîð ñàì äîëæåí áóäåò îäîáðèòü Âàøó ðåãèñòðàöèþ. Îá ýòîì Âû òàêæå áóäåòå èçâåùåíû âî âðåìÿ ðåãèñòðàöèè.\r<br>\r<br>Ïîñëå çàâåðøåíèÿ ðåãèñòðàöèè è óñïåøíîé àâòîðèçàöèè, Âû ïîëó÷èòå äîñòóï ê Âàøåé ïàíåëè óïðàâëåíèÿ è ê ëè÷íîìó ÿùèêó äëÿ ôîðóìà, ñîêðàùåííîå íàçâàíèå êîòîðîãî - PM.\r<br>\r<br>Áîëåå ïîäðîáíûå ñâåäåíèÿ îáî âñåõ ôóíêöèÿõ è õàðàêòåðèñòèêàõ ôîðóìà, Âû ñìîæåòå óçíàòü â ñåêöèè ïîìîùè ïî ôîðóìó', 'Êàê çàðåãèñòðèðîâàòüñÿ è äîïîëíèòåëüíûå ïðåèìóùåñòâà çàðåãèñòðèðîâàííûõ ïîëüçîâàòåëåé.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (2, 'Cookies è èõ èñïîëüçîâàíèå', 'Èñïîëüçîâàíèå cookies íå ÿâëÿåòñÿ îáÿçàòåëüíûì, íî î÷åíü ðåêîìåíäóåòñÿ. Cookies íåîáõîäèìû äëÿ òîãî, ÷òîáû ïðîñëåæèâàòü çà òåìàìè, ïîäïèñûâàòüñÿ íà íèõ, óçíàâàòü êàæäûé ðàç î íîâûõ òåìàõ è ñîîáùåíèÿõ, èõ êîëè÷åñòâå è äëÿ àâòîìàòè÷åñêîé àâòîðèçàöèè íà ôîðóìå ïðè êàæäîì ïîñåùåíèè ôîðóìà.\r<br>\r<br>Åñëè â Âàøåì êîìïüþòåðå íåò âîçìîæíîñòè èñïîëüçîâàíèÿ ñèñòåìû cookie, äëÿ êîððåêòíîãî èñïîëüçîâàíèÿ ôîðóìà, òî, ôîðóì àâòîìàòè÷åñêè áóäåò äîáàâëÿòü êî âñåì ññûëêàì ID Âàøåãî ñåàíñà ïîñåùåíèÿ, äëÿ óäîáñòâà èñïîëüçîâàíèÿ ôîðóìà\r<br>\r<br><b>Î÷èñòêà Cookies</b>\r<br>\r<br>Âû ìîæåòå óäàëèòü âñå Âàøè cookies, åñëè íàæìåòå íà ññûëêó, íàõîäÿùóþñÿ â íèæíåé ÷àñòè ãëàâíîé ñòðàíèöû ôîðóìà (ýòî ñàìàÿ ïåðâàÿ ñòðàíèöà ôîðóìà). Åñëè ó Âàñ ýòî íå ñðàáîòàåò, òî âîçìîæíî Âàì íåîáõîäèìî ïðîäåëàòü ýòî âðó÷íóþ.\r<br>\r<br><u>Óäàëåíèå Cookies äëÿ ïîëüçîâàòåëåé Internet Explorer äëÿ Windows</u>\r<br>\r<br><ul>\r<br><li> Çàêðîéòå âñå îêíà Internet Explorer\r<br><li> Íàæìèòå íà êíîïêó \'Ïóñê\r<br><li> Ïåðåéäèòå â ìåíþ \'Íàéòè\' è âûáåðèòå \'Ôàéëû è ïàïêè\'\r<br><li> Ïîñëå îòêðûòèÿ ïðîâîäíèêà, ââåäèòå íàçâàíèå äîìåíà ôîðóìà â ïîëå \'Èñêàòü òåêñò\'. (Íàïðèìåð, åñëè àäðåñ ôîðóìà \'http://www.invisionboard.com/forums/index.php\' òî Âû äîëæíû ââåñòè \'invisionboard.com\' áåç êàâû÷åê)\r<br><li>  ïîëå \'ãäå èñêàòü\' âûáåðèòå <b>C:WindowsCookies</b> è íàæìèòå êíîïêó \'Íàéòè\'\r<br><li> Ïîñëå çàâåðøåíèÿ ïîèñêà, âûäåëèòå âñå íàéäåííûå ôàéëû (äëÿ âûäåëåíèÿ âñåõ ôàéëîâ îäíîâðåìåííî, ìîæåòå èñïîëüçîâàòü êîìáèíàöèþ ãîðÿ÷èõ êëàâèø CTRL+A) è óäàëèòå èõ.\r<br></ul>\r<br>\r<br><u>Óäàëåíèå Cookies äëÿ ïîëüçîâàòåëåé Internet Explorer äëÿ Macintosh</u>\r<br>\r<br><ul>\r<br><li> Îòêðîéòå îêíî Internet Explorer, çàéäèòå â ìåíþ \'Ïðàâêà\' è âûáåðèòå \'Íàñòðîéêè\'\r<br><li> Ïîñëå îòêðûòèÿ ïàíåëè íàñòðîåê, çàéäèòå â ìåíþ \'Cookies\' â ñåêöèè \'Ïðèíÿòûå ôàéëû\'.\r<br><li> Ïîñëå ïîëíîé çàãðóçêè ïàíåëè cookie, íàéäèòå òàì äîìåííîå èìÿ ôîðóìà (Åñëè àäðåñ ôîðóìà \'http://www.invisionboard.com/forums/index.php\' èùèòå \'invisionboard.com\' èëè \'www.invisionboard.com\'\r<br><li> Âîéäèòå â êàæäûé cookie è íàæìèòå êíîïêó óäàëåíèÿ.\r<br></ul>\r<br>\r<br>Òåïåðü âñå Âàøè cookies óäàëåíû.  íåêîòîðûõ ñëó÷àÿõ, äëÿ âñòóïëåíèÿ èçìåíåíèé â ñèëó, íåîáõîäèìî ïåðåçàãðóçèòü êîìïüþòåð.', 'Ïðåèìóùåñòâà èñïîëüçîâàíèÿ cookies è óäàëåíèå cookies, óñòàíîâëåííûõ ôîðóìîì.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (3, 'Âîññòàíîâëåíèå óòåðÿííîãî èëè çàáûòîãî ïàðîëÿ', 'Ãëàâíîé õàðàêòåðèñòèêîé ôîðóìà, ÿâëÿåòñÿ áåçîïàñíîñòü è ïîýòîìó, âñå ïàðîëè ïîëüçîâàòåëåé êîäèðóþòñÿ ïðè ðåãèñòðàöèè.\r<br>Ýòî îçíà÷àåò, ÷òî ìû íå â ñîñòîÿíèè âûñëàòü Âàì, Âàø çàáûòûé ïàðîëü, ò.ê. \'ðàñêîäèðîâêà\' ïàðîëÿ íåâîçìîæíà. Íî, òåì íå ìåíåå, Âû ìîæåòå âîññòàíîâèòü ñâîé ïàðîëü.\r<br>\r<br>Äëÿ âîññòàíîâëåíèÿ ïàðîëÿ, çàéäèòå ïî ññûëêå <a href=\'index.php?act=Reg&CODE=10\'>Âîññòàíîâëåíèå çàáûòîãî ïàðîëÿ</a>, êîòîðàÿ íàõîäèòñÿ íà ñòðàíèöå àâòîðèçàöèè.\r<br>\r<br>Ñ äàëüíåéøåé èíñòðóêöèåé ïî âîññòàíîâëåíèþ, Âû ìîæåòå îçíàêîìèòüñÿ óæå òàì.', 'Èíñòðóêöèÿ ïî âîññòàíîâëåíèþ çàáûòîãî ïàðîëÿ.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (4, 'Âàøà ïàíåëü óïðàâëåíèÿ (Ìîé ïðîôèëü)', 'Ïàíåëü óïðàâëåíèÿ ôîðóìà, ÿâëÿåòñÿ ÷àñòíîé, äëÿ êàæäîãî ïîëüçîâàòåëÿ ôîðóìà. Çäåñü Âû ìîæåòå èçìåíèòü è íàñòðîèòü ðàçëè÷íûå ôóíêöèè ôîðóìà.\r<br>\r<br><b>Ïîäïèñêè</b>\r<br>\r<br>Íà ýòîé ñòðàíèöå, Âû ìîæåòå íàñòðàèâàòü Âàøè ïîäïèñêè íà òåìû è ôîðóìû. Äëÿ áîëåå ïîäðîáíîãî îçíàêîìëåíèÿ, ñ èíñòðóêöèÿìè ïî ïîäïèñêå íà òåìû, ÷èòàéòå ðàçäåë ïîìîùè \'Óâåäîìëåíèå ïî e-mail î íîâûõ ñîîáùåíèÿõ\'.\r<br>\r<br><b>Ðåäàêòèðîâàíèå ïðîôèëÿ</b>\r<br>\r<br> ýòîé ñåêöèè Âû ìîæåòå äîáàâèòü èëè îòðåäàêòèðîâàòü ðàçëè÷íóþ äîïîëíèòåëüíóþ èíôîðìàöèþ î ñåáå.\r<br>\r<br><b>Ðåäàêòèðîâàíèå ïîäïèñè</b>\r<br>\r<br>Èñïîëüçîâàíèå \'ïîäïèñè\' íà ôîðóìå, àíàëîãè÷íî òîìó, êàê Âû èñïîëüçóåòå ïîäïèñü â Âàøèõ ïèñüìàõ, îòïðàâëÿåìûõ Âàìè ñ Âàøåãî e-mail àäðåñà. Âàøà ïîäïèñü áóäåò äîáàâëåíà ê êîíöó êàæäîãî Âàøåãî ñîîáùåíèÿ íà ôîðóìå, íî â íåêîòîðûõ ñîîáùåíèÿõ, Âû ìîæåòå îòìåíèòü äîáàâëåíèå ïîäïèñè, ïðîñòî ñíÿâ ãàëî÷êó â ïîëå äîáàâëåíèÿ ïîäïèñè ïîä ôîðìîé îòïðàâêè ñîîáùåíèÿ. Âû äàæå ìîæåòå èñïîëüçîâàòü â ïîäïèñè êîäû ôîðóìà, à â íåêîòîðûõ ñëó÷àÿõ äàæå è ÷èñòûé HTML (åñëè òîëüêî àäìèíèñòðàòîð ðàçðåøèë äàííóþ ôóíêöèþ).\r<br>\r<br><b>Íàñòðîéêè àâàòàðà</b>\r<br>\r<br>Àâàòàð - ýòî íåáîëüøàÿ êàðòèíêà, êîòîðàÿ áóäåò îòîáðàæåíà ïîä Âàøèì èìåíåì, â êàæäîì Âàøåì ñîîáùåíèè íà ôîðóìå.  çàâèñèìîñòè îò íàñòðîåê ôîðóìà, óñòàíîâëåííûõ àäìèíèñòðàòîðîì, Âû ìîæåòå âûáðàòü àâàòàð â ãàëåðåå àâàòàðîâ ôîðóìà, ëèáî ââåñòè ññûëêó íà àâàòàð, íàõîäÿùèéñÿ íà äðóãîì ñàéòå/ñåðâåðå, ëèáî çàãðóçèòü ëè÷íûé àâàòàð ñ Âàøåãî êîìïüþòåðà. Âû òàêæå ìîæåòå óñòàíîâèòü âûñîòó è øèðèíó àâàòàðà, åñëè Âàø àâàòàð îòîáðàæàåòñÿ íå òàê, êàê áû Âàì õîòåëîñü.\r<br>\r<br><b>Èçìåíåíèå ëè÷íîé ôîòîãðàôèè</b>\r<br>\r<br> ýòîé ñåêöèè, Âû ìîæåòå äîáàâèòü ôîòîãðàôèþ â Âàø ïðîôèëü. Âàøà ôîòîãðàôèÿ, áóäåò äîñòóïíà ïðè ïðîñìîòðå Âàøåãî ïðîôèëÿ ïîëüçîâàòåëÿìè, íà ñòðàíèöå ìèíè ïðîôèëÿ, à òàêæå, â ñïèñêå ïîëüçîâàòåëåé ôîðóìà, áóäåò ïðèñóòñòâîâàòü ññûëêà íà Âàøó ôîòîãðàôèþ â âèäå èçîáðàæåíèÿ ôîòîàïïàðàòà.\r<br>\r<br><b>Íàñòðîéêè e-mail</b>\r<br>\r<br>Ïðè óñòàíîâêå ãàëî÷êè â ïîëå <u>Ñêðûòü ìîé e-mail àäðåñ</u>, ïîëüçîâàòåëè ôîðóìà íå ñìîãóò îòïðàâëÿòü Âàì èç ôîðóìà ïèñüìà íà Âàø e-mail àäðåñ.\r<br><u>Ñîîáùàòü ìíå îáî âñåõ èçìåíåíèÿõ, ïðîâîäèìûõ àäìèíèñòðàòîðîì ôîðóìà</u> Ýòà ôóíêöèÿ äëÿ äîáàâëåíèÿ Âàøåãî e-mail àäðåñà â ñïèñîê ðàññûëîê. Êàæäûé ðàç, ïðè êàêèõ-ëèáî âàæíûõ èçìåíåíèÿõ, äîïîëíåíèÿõ íà ôîðóìå, Àäìèíèñòðàòîð ôîðóìà áóäåò ñðàçó èçâåùàòü Âàñ îá ýòîì.\r<br><u>Äîáàâëÿòü êîïèþ ñîîáùåíèÿ èç ïîäïèñàííûõ òåì â îòïðàâëÿåìîå ïèñüìî-óâåäîìëåíèå</u> Ïðè âêëþ÷åíèè ýòîãî, òåêñò íîâîãî ñîîáùåíèÿ èç ïîäïèñàííîé òåìû áóäåò îòïðàâëåí Âàì íà e-mail.\r<br><u>Óâåäîìëÿòü ìåíÿ ïî e-mail ïðè ïîëó÷åíèè íîâûõ ëè÷íûõ ïèñåì</u>Äîáàâëÿòü êîïèþ ñîîáùåíèÿ èç ïîäïèñàííûõ òåì â îòïðàâëÿåìîå ïèñüìî-óâåäîìëåíèå</u> Ïðè âêëþ÷åíèè ýòîãî, Âû áóäåòå óâåäîìëåíû ïî e-mail î êàæäîì íîâîì ïðèâàòíîì ïèñüìå, îòïðàâëåííîì êåì-òî èç ïîëüçîâàòåëåé íà Âàø íà Ëè÷íûé ÿùèê ôîðóìà.\r<br><u>Âêëþ÷èòü \'E-mail Óâåäîìëåíèÿ\' ïî óìîë÷àíèþ?</u> Ïðè âêëþ÷åíèè ýòîãî, Âû áóäåòå ïîëó÷àòü óâåäîìëåíèÿ î âñåõ íîâûõ òåìàõ è ñîîáùåíèÿõ íà ôîðóìå. Âû ìîæåòå îòïèñàòüñÿ îò âñåãî, çàéäÿ ïî ññûëêå \'Ïîäïèñêè\' â Âàøåé ïàíåëè óïðàâëåíèÿ.\r<br>\r<br><b>Íàñòðîéêè ôîðóìà</b>\r<br>\r<br> ýòîé ñåêöèè Âû ìîæåòå íàñòðîèòü Âàø ÷àñîâîé ïîÿñ, çàïðåòèòü îòîáðàæåíèå ïîäïèñè ïîëüçîâàòåëåé, îòîáðàæåíèå àâàòàðîâ è èçîáðàæåíèé â ñîîáùåíèÿõ.\r<br>Çäåñü æå Âû ìîæåòå âûáðàòü, ÷òîáû ïðè ïîëó÷åíèè íîâûõ ïèñåì íà ëè÷íûé ÿùèê (PM) ôîðóìà, ó Âàñ âûñêàêèâàëî íîâîå îêíî-îïîâåùåíèå, à òàêæå âûáðàòü îòîáðàæåíèå èëè ñêðûòèå ôîðìû \'Áûñòðîãî îòâåòà\', åñëè îíà âêëþ÷åíà àäìèíèñòðàòîðîì.\r<br>Âû òàêæå ìîæåòå ñàìè óñòàíîâèòü êîë-âî îòîáðàæàåìûõ òåì/ñîîáùåíèé, çà ñòðàíèöó ôîðóìà/òåìû ñîîòâåòñòâåííî.\r<br>\r<br><b>Ñòèëè è ßçûêè</b>\r<br>\r<br>Çäåñü Âû ìîæåòå âûáðàòü äðóãîé ñòèëü è ÿçûê èíòåðôåéñà ôîðóìà. Ïåðåä èçìåíåíèåì ñòèëÿ, Âû ìîæåòå ïðåäâàðèòåëüíî ïðîñìîòðåòü âèä ýòîãî ñòèëÿ.\r<br>\r<br><b>Èçìåíèòü e-mail àäðåñ</b>\r<br>\r<br>Çäåñü Âû ìîæåòå â ëþáîå âðåìÿ èçìåíèòü Âàø e-mail àäðåñ, óêàçàííûé Âàìè ïðè ðåãèñòðàöèè íà ôîðóìå.  íåêîòîðûõ ñëó÷àÿõ, äëÿ èçìåíåíèÿ e-mail àäðåñà, îò Âàñ ìîãóò ïîòðåáîâàòü ïîäòâåðæäåíèå èçìåíåíèÿ è ïåðåàêòèâàöèþ âàøåé ó÷åòíîé çàïèñè. Åñëè äàííîå òðåáîâàíèå âêëþ÷åíî, òî ïåðåä èçìåíåíèåì Âû áóäåòå çàðàíåå èçâåùåíû îá ýòîì.\r<br>\r<br><b>Èçìåíèòü ïàðîëü</b>\r<br>\r<br> ýòîé ñåêöèè Âû ìîæåòå èçìåíèòü Âàø ïàðîëü. Íî ó÷òèòå, ÷òî ïåðåä èçìåíåíèåì Âàøåãî ïàðîëÿ íà íîâûé, Âû äîëæíû áóäåòå ââåñòè Âàø ñòàðûé ïàðîëü.', 'Ðåäàêòèðîâàíèå êîíòàêòíîé è ïåðñîíàëüíîé èíôîðìàöèè, àâàòàðîâ, ïîäïèñè, íàñòðîåê ôîðóìà, à òàêæå âûáîð ñòèëÿ è ÿçûêà èíòåðôåéñà ôîðóìà.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (5, 'Óâåäîìëåíèå íà e-mail î íîâûõ ñîîáùåíèÿõ', 'Íà ôîðóìå ñóùåñòâóåò âîçìîæíîñòü óâåäîìëÿòü Âàñ î íîâûõ ñîîáùåíèÿõ â òåìàõ. Ìíîãèå ïîëüçîâàòåëè ñ óñïåõîì èñïîëüçóþò ýòó ôóíêöèþ äëÿ ñâîåâðåìåííîãî èçâåùåíèÿ î òîì, ÷òî â òåìå èìåþòñÿ íîâûå ñîîáùåíèÿ.\r<br>\r<br>Ñóùåñòâóåò 3 ñïîñîáà ïîäïèñêè íà òåìó:\r<br>\r<br><li>Íàæàòèåì íà ññûëêó \'Ñëåæåíèå çà ýòîé òåìîé\', íàõîäÿùóþñÿ â âåðõíåé ÷àñòè êàæäîé òåìû.\r<br><li> Ñ ïîìîùüþ óñòàíîâêè ãàëî÷êè â îêîøêî \'Óâåäîìëÿòü ïî e-mail î íîâûõ ñîîáùåíèÿõ?\', íàõîäÿùååñÿ ïîä ôîðìîé îòâåòà â òåìû.\r<br><li> ×åðåç ïóíêò íàñòðîéêè e-mail â Âàøåé ïàíåëè óïðàâëåíèÿ (Ìîé ïðîôèëü), óñòàíîâèâ ãàëî÷êó íà îïöèè \'Âêëþ÷èòü E-mail Óâåäîìëåíèå ïî óìîë÷àíèþ?\', ïîñëå ÷åãî Âû áóäåòå àâòîìàòè÷åñêè ïîäïèñûâàòüñÿ íà âñå òåìû, â êîòîðûå Âû îòâåòèòå.\r<br>\r<br>Íî èìåéòå ââèäó, ÷òî, âî èçáåæàíèå ïîâòîðà ïèñåì, îòïðàâëÿåìûõ íà Âàø e-mail àäðåñ, Âû áóäåòå ïîëó÷àòü òîëüêî îäíî ïèñüìî äëÿ êàæäîé ïîäïèñàííîé òåìû, íåçàâèñèìî îò êîë-âà íîâûõ îòâåòîâ â ýòó òåìó, äî òåõ ïîð, ïîêà íå ïîñåòèòå äàííóþ òåìó.\r<br>\r<br>Âû òàêæå ìîæåòå ïîäïèñàòüñÿ íà ëþáîé èç ðàçäåëîâ ôîðóìà è ïðè ïîÿâëåíèè íîâîé òåìû â ýòîì ðàçäåëå, Âû áóäåòå óâåäîìëåíû îá ýòîì. Äëÿ ïîäïèñêè íà ðàçäåë, íàæìèòå íà ññûëêó \'Ïîäïèñêà íà ýòîò ôîðóì\', íàõîäÿùóþñÿ â íèæíåé ÷àñòè êàæäîãî ôîðóìà.\r<br>\r<br>Äëÿ îòìåíû ïîäïèñêè íà ëþáîé èç ðàçäåëîâ èëè òåì, íà êîòîðûå Âû ïîäïèñàíû, çàéäèòå â \'Ìîé ïðîôèëü\' è â ìåíþ \'Ìîè ïîäïèñêè\', Âû ìîæåòå îòïèñàòüñÿ îò âñåãî, ÷òî óãîäíî.', 'Êàê ïîäïèñàòüñÿ íà òåìó, äëÿ óâåäîìëåíèÿ ïî e-mail ïðè íîâûõ îòâåòàõ.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (6, 'Âàø ëè÷íûé ÿùèê (PM)', 'Âàø ëè÷íûé ÿùèê íà ôîðóìå, äåéñòâóåò àíàëîãè÷íî e-mail ÿùèêó. Çäåñü Âû ìîæåòå ïîëó÷àòü è îòïðàâëÿòü ïèñüìà ïîëüçîâàòåëÿì ôîðóìà, õðàíèòü Âàøè ïèñüìà â ïàïêàõ, ñîçäàâàòü, ðåäàêòèðîâàòü è óäàëÿòü ïàïêè.\r<br>\r<br><b>Îòïðàâêà íîâîãî ïèñüìà</b>\r<br>\r<br>Îòñþäà Âû ìîæåòå îòïðàâèòü ïèñüìî ïîëüçîâàòåëþ ôîðóìà. Åñëè â Âàøåì ñïèñêå êîíòàêòîâ èìåþòñÿ èìåíà ïîëüçîâàòåëåé, Âû ìîæåòå âûáðàòü èìÿ îòòóäà èëè ââåñòè èìÿ ïîëó÷àòåëÿ âðó÷íóþ. Åñëè Âû íàæìåòå â êàêîì-ëèáî ñîîáùåíèè â òåìàõ èëè â ñïèñêå ïîëüçîâàòåëåé íà êíîïêó \'PM\' òî èìÿ ïîëüçîâàòåëÿ áóäåò àâòîìàòè÷åñêè äîáàâëåíî â ãðàôó ïîëó÷àòåëÿ Âàøåãî ïèñüìà. Åñëè Àäìèíèñòðàòîð ôîðóìà ðàçðåøèë îòïðàâëÿòü ïèñüìà íåñêîëüêèì ïîëüçîâàòåëÿì îäíîâðåìåííî, Âû ìîæåòå ââåñòè èìåíà íåñêîëüêèõ ïîëüçîâàòåëåé, - ïî îäíîìó èìåíè íà ñòðîêó, â îêîøêå Êîïèè ïîëüçîâàòåëÿì.\r<br> íåêîòîðûõ ñëó÷àÿõ, åñëè ýòî ðàçðåøåíî Àäìèíèñòðàòîðîì, Âû äàæå ìîæåòå èñïîëüçîâàòü êîäû ôîðóìà è HTML â òåêñòå Âàøèõ ïèñåì. Âû òàêæå ìîæåòå âûáðàòü ïóíêò \'Äîáàâèòü êîïèþ ýòîãî ïèñüìà â ïàïêó Èñõîäÿùèå\' äëÿ ñîõðàíåíèÿ êîïèè ïèñüìà â ïàïêå îòïðàâëåííûõ ïèñåì. Ïðè óñòàíîâêå ãàëî÷êè â îêîøêå \'Ïðîñëåäèòü çà ýòèì ïèñüìîì?\', Âû ñìîæåòå ïðîñëåæèâàòü ÷åðåç ïóíêò ìåíþ \'Ñëåæåíèå çà ïèñüìàìè\' ñîñòîÿíèå òîãî, ÷òî ïðî÷èòàíî ëè Âàøå ïèñüìî àäðåñàòîì.\r<br>\r<br><b>Ïåðåõîä â ïàïêó Âõîäÿùèå</b>\r<br>\r<br>Âû ïîïàäåòå â ïàïêó Âõîäÿùèõ ïèñåì, íà êîòîðóþ ïîñòóïàþò âñå îòïðàâëåííûå Âàì ïèñüìà. Íàæàâ íà çàãîëîâîê ïèñüìà, Âû ñìîæåòå ïðî÷åñòü ïðèøåäøåå Âàì ïèñüìî. Ïîñëå ïðî÷òåíèÿ, Âû ìîæåòå óäàëÿòü èëè ïåðåìåùàòü ïèñüìà â äðóãèå ïàïêè.\r<br>\r<br><b>Î÷èñòêà ïàïîê ÐÌ</b>\r<br>\r<br>×åðåç ýòó îïöèþ, Âû ìîæåòå áûñòðî óäàëèòü âñå ïèñüìà èç ëþáûõ Âàøèõ ïàïîê.\r<br>\r<br><b>Ðåäàêòèðîâàòü ïàïêè</b>\r<br>\r<br>Çäåñü Âû ìîæåòå ïåðåèìåíîâûâàòü, óäàëÿòü èëè ñîçäàâàòü íîâûå ïàïêè äëÿ ñîðòèðîâêè Âàøèõ ïèñåì òàê, êàê Âàì áóäåò áîëåå óäîáíî. Âû íå ìîæåòå óäàëÿòü òîëüêî 2 ïàïêè, ñîçäàííûå ñàìèì ôîðóìîì ýòî ïàïêà \'Èñõîäÿùèå\' è \'Âõîäÿùèå\'.\r<br>\r<br><b>Ñïèñîê Äðóçåé/Âðàãîâ</b>\r<br>\r<br>Âû ìîæåòå äîáàâèòü â Âàø êîíòàêòíûé ëèñò èìåíà Âàøèõ äðóçåé, à òàêæå âíåñòè â ÷åðíûé ñïèñîê èìåíà Âàøèõ íåäðóãîâ, îò êîòîðûõ Âû íå æåëàåòå ïîëó÷àòü ïèñüìà.\r<br>Ïðè îòïðàâêå ïèñåì, Âû áóäåòå ñïîñîáíû áûñòðî âûáðàòü èìÿ ïîëó÷àòåëÿ â âûïàäàþùåì ñïèñêå, åñëè Âû äî ýòîãî ââåëè åãî èìÿ â Âàø ñïèñîê äðóçåé\r<br>\r<br><b>Àðõèâàöèÿ ïèñåì</b>\r<br>\r<br>Åñëè Âàø Ëè÷íûé ßùèê ïåðåïîëíåí è â ñâÿçè ñ ýòèì Âû íå â ñîñòîÿíèè ïîëó÷àòü íîâûå ïèñüìà, òî Âû ñìîæåòå ïðîèçâåñòè àðõèâàöèþ ïèñåì. Âñå Âàøè ïèñüìà áóäóò ñêîìïèëèðîâàíû íà îäíîé ñòðàíèöå â ôîðìàòå HTML èëè Microsoft © Excel, à çàòåì âûñëàíû íà Âàø e-mail àäðåñ, óêàçàííûé Âàìè ïðè ðåãèñòðàöèè íà ôîðóìå.\r<br>\r<br><b>Íåîòïðàâëåííûå ïèñüìà</b>\r<br>\r<br>Çäåñü Âû ìîæåòå âåðíóòüñÿ ê ëþáîìó ïèñüìó, êîòîðîå Âû ðåøèëè ñîõðàíèòü, äëÿ îòïðàâêè åãî ïîçæå.\r<br>\r<br><b>Ñëåæåíèå çà ïèñüìàìè</B>\r<br>\r<br>Íà ýòîé ñòðàíèöå, ïîÿâëÿþòñÿ âñå ïèñüìà, çà êîòîðûìè Âû ðåøèëè ïðîñëåäèòü. Âñå äàííûå î òîì, ïðî÷èòàíû ëè Âàøè ïèñüìà ïîëó÷àòåëÿìè è êîãäà îíè ïðî÷èòàíû, - ïîÿâëÿþòñÿ çäåñü. Òàêæå, åñëè Âû ïåðåäóìàëè, è åñëè ïèñüìî ïîêà íå ïðî÷èòàíî ïîëó÷àòåëåì, Âû ìîæåòå óäàëèòü ýòî ïèñüìî, .', 'Îòïðàâêà ëè÷íûõ ñîîáùåíèé, ðåäàêòèðîâàíèå ïàïîê Ëè÷íîãî ßùèêà, ñëåæåíèå çà ïèñüìàìè, àðõèâàöèÿ ñîõðàíåííûõ ñîîáùåíèé.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (7, 'Êîíòàêò ñ àäìèíèñòðàöèåé è äîêëàä ìîäåðàòîðó î ñîîáùåíèÿõ', '<b>Êîíòàêò ñ àäìèíèñòðàöèåé</b>\r<br>\r<br>Äëÿ ñâÿçè ñ ìîäåðàòîðîì èëè ïðîñòî äëÿ ïðîñìîòðà ñïèñêà Àäìèíèñòðàöèè ôîðóìà, íàæìèòå íà ññûëêó \'Àäìèíèñòðàöèÿ\', íàõîäÿùóþñÿ â íèæíåé ÷àñòè ãëàâíîé ñòðàíèöû ôîðóìà èëè íà ñòðàíèöå \'Ìîé ïîìîùíèê\'.\r<br>\r<br> ýòîì ñïèñêå Âû óâèäèòå èìåíà âñåõ Àäìèíèñòðàòîðîâ (ýòî Ãëàâíûå Àäìèíèñòðàòîðû ôîðóìà, èìåþùèå äîñòóï êî âñåì ôóíêöèÿì), Ñóïåðìîäåðàòîðîâ (ýòî êîìàíäà ìîäåðàòîðîâ, èìåþùèõ âîçìîæíîñòü ìîäåðèðîâàíèÿ âñåõ ðàçäåëîâ ôîðóìà) è Ìîäåðàòîðîâ (ýòî ìîäåðàòîðû, ìîäåðèðóþùèå èíäèâèäóàëüíûå ðàçäåëû ôîðóìà, â êîòîðûå îíè íàçíà÷åíû).\r<br>\r<br>Äëÿ ñâÿçè ïî ïîâîäó ïîëüçîâàòåëüñêèõ äàííûõ, íåîáõîäèìî ñâÿçàòüñÿ íåïîñðåäñòâåííî ñ Àäìèíèñòðàòîðîì ôîðóìà, à äëÿ ñâÿçè ïî ïîâîäó òåì èëè ñîîáùåíèé, îáðàùàéòåñü ê Ñóïåðìîäåðàòîðîì èëè Ìîäåðàòîðàì.\r<br>\r<br><b>Äîêëàä ìîäåðàòîðó î ñîîáùåíèè</b>\r<br>\r<br>Åñëè Àäìèíèñòðàòîð ôîðóìà âêëþ÷èë ýòó ôóíêöèþ, Âû óâèäèòå êíîïêó \'Ñîîáùèòü ìîäåðàòîðó\', â êàæäîì ñîîáùåíèè òåìû, ðÿäîì ñ êíîïêîé \'Öèòàòà\'. Ïðè ïîìîùè ýòîé ôóíêöèè, Âû ñìîæåòå áûñòðî äîëîæèòü î ñîîáùåíèè ìîäåðàòîðó äàííîãî ðàçäåëà ôîðóìà (èëè Àäìèíèñòðàòîðó, - åñëè â äàííîì ôîðóìå íåò íàçíà÷åííûõ ìîäåðàòîðîâ). Èñïîëüçóéòå ýòó ôóíêöèþ òîëüêî â òîì ñëó÷àå, åñëè Âû âèäèòå êàêèå-ëèáî íàðóøåíèÿ ïðàâèë ôîðóìà â äàííîì ñîîáùåíèè. Çàïðåùåíî èñïîëüçîâàòü ýòó ôóíêöèþ, <b>äëÿ ïðîñòûõ ïåðåãîâîðîâ ñ ìîäåðàòîðîì!</b>. Äëÿ ïåðåãîâîðîâ, Âû ìîæåòå èñïîëüçîâàòü PM (Ëè÷íûé ÿùèê ôîðóìà).', 'Ãäå íàéòè ñïèñîê Àäìèíèñòðàòîðîâ è Ìîäåðàòîðîâ ôîðóìà.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (8, 'Ïðîñìîòð èíôîðìàöèè ïðîôèëÿ ïîëüçîâàòåëåé', 'Äëÿ ïðîñìîòðà äàííûõ ïðîôèëÿ ëþáîãî ïîëüçîâàòåëÿ, íàæìèòå íà èìÿ ýòîãî ïîëüçîâàòåëÿ, åñëè èìÿ ïîä÷åðêíóòî (â âèäå ññûëêè), ëèáî íàæìèòå íà ññûëêó \'Ïðîôèëü\', íàõîäÿùóþñÿ ïîä èìåíåì êàæäîãî ïîëüçîâàòåëÿ, â òåìàõ.\r<br>\r<br>Ïîñëå íàæàòèÿ, Âû ïîïàäåòå íà ñòðàíèöó ïðîôèëÿ ïîëüçîâàòåëÿ, â êîòîðîé Âû óâèäèòå âñþ êîíòàêòíóþ èíôîðìàöèþ, âñå äàííûå (åñëè îí ââåë èõ), à òàêæå \'Ñòàòèñòèêó àêòèâíîñòè íà ôîðóìå\' äàííîãî ïîëüçîâàòåëÿ.\r<br>\r<br>Âû òàêæå ìîæåòå íàæàòü íà êíîïêó \'Ìèíè ïðîôèëü\', íàõîäÿùóþñÿ â íèæíåé ÷àñòè ñîîáùåíèÿ ëþáîãî èç ïîëüçîâàòåëåé è, òåì ñàìûì Âû ïîïàäåòå íà ñòðàíèöó \'Ìèíè ïðîôèëÿ\', ãäå òàêæå ìîæåòå óâèäåòü êîíòàêòíóþ èíôîðìàöèþ ïîëüçîâàòåëÿ è, åñëè îí çàãðóçèë ôîòîãðàôèþ íà ôîðóì, - åãî ôîòîãðàôèþ.', 'Ãäå ìîæíî íàéòè êîíòàêòíóþ èíôîðìàöèþ ïîëüçîâàòåëÿ.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (9, 'Ïðîñìîòð àêòèâíûõ òåì è íîâûõ ñîîáùåíèé', 'Âû ìîæåòå áûñòðî ïðîñìîòðåòü ñïèñîê ñåãîäíÿøíèõ àêòèâíûõ òåì (ýòî òåìû, èìåþùèå íîâûå îòâåòû), íàæàâ íà ññûëêó \'Àêòèâíûå òåìû\', íàõîäÿùóþñÿ â íèæíåé ÷àñòè Ãëàâíîé ñòðàíèöû ôîðóìà. Òàì æå, Âû ìîæåòå óñòàíîâèòü ñâîè êðèòåðèè ïîèñêà ïî äàòå, äëÿ ïîèñêà àêòèâíûõ òåì, îáíîâëåííûõ â òå÷åíèå íåñêîëüêèõ äíåé.\r<br>\r<br>Ññûëêà \'Íîâûå ñîîáùåíèÿ\', íàõîäÿùàÿñÿ â âåðõíåé ÷àñòè ñòðàíèöû ôîðóìà, ïîêàæåò Âàì âñå íîâûå ñîîáùåíèÿ, ñ ìîìåíòà Âàøåãî ïîñëåäíåãî ïîñåùåíèÿ ôîðóìà.', 'Ãäå ìîæíî ïðîñìîòðåòü ñïèñîê ñåãîäíÿøíèõ àêòèâíûõ òåì è íîâûå ñîîáùåíèÿ, ïîÿâèâøèåñÿ ñ ìîìåíòà Âàøåãî ïîñëåäíåãî ïîñåùåíèÿ ôîðóìà.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (10, 'Ïîèñê òåì è ñîîáùåíèé', 'Ôóíêöèÿ ïîèñêà, ïðåäíàçíà÷åíà äëÿ áûñòðîãî ïîèñêà òåì è ñîîáùåíèé, ïî ââåäåííûì Âàìè êëþ÷åâûì ñëîâàì.\r<br>\r<br>Èìåþòñÿ 2 äîñòóïíûõ òèïà ïîèñêà, ïðîñòîé ïîèñê è ðàñøèðåííûé ïîèñê. Âû ìîæåòå ïåðåêëþ÷àòüñÿ ìåæäó íèìè, ïðè ïîìîùè êíîïîê \'Ðàñøèðåííûé ïîèñê\' è \'Ïðîñòîé ïîèñê\'.\r<br>\r<br><b>Ïðîñòîé ïîèñê</b>\r<br>\r<br>Çäåñü Âû äîëæíû ââåñòè êëþ÷åâîå ñëîâî äëÿ ïîèñêà è âûáðàòü ôîðóì(û), â êîòîðûõ õîòèòå íàéòè ÷òî-òî ïî ýòîìó ñëîâó, (äëÿ âûáîðà íåñêîëüêèõ ôîðóìîâ îäíîâðåìåííî, íåîáõîäèìî êëèêàòü ïî èõ íàçâàíèÿì, óäåðæèâàÿ êëàâèøó Ctrl, à ïîëüçîâàòåëè Mac, äîëæíû óäåðæèâàòü êëàâèøó Shift/Apple), çàòåì âûáðàòü ïîðÿäîê ñîðòèðîâêè íàéäåííîãî è ïðîèçâåñòè ïîèñê.\r<br>\r<br><b>Ðàñøèðåííûé ïîèñê</b>\r<br>\r<br>Íà ñòðàíèöå ðàñøèðåííîãî ïîèñêà, ó Âàñ ïîÿâèòñÿ âîçìîæíîñòü èñïîëüçîâàíèÿ äîïîëíèòåëüíûõ êðèòåðèåâ ïîèñêà, çíà÷èòåëüíî óëó÷øàþùèõ ôóíêöèþ ïîèñêà. Äîïîëíèòåëüíî ê ïîèñêó ïî êëþ÷åâîìó ñëîâó, Âû ñìîæåòå ïðîèçâåñòè ïîèñê ïî èìåíè ïîëüçîâàòåëÿ, à òàêæå âîçìîæíî èñïîëüçîâàíèå ñðàçó îáîèõ êîìáèíàöèé. Ìîæíî óâåëè÷èòü êðèòåðèè ïîèñêà, ïîñðåäñòâîì âûáîðà äèàïàçîíà äàò, à òàêæå âûáðàòü ïîðÿäîê ñîðòèðîâêè íàéäåííîãî. Òàêæå èìååòñÿ 2 âèäà îòîáðàæåíèÿ ðåçóëüòàòîâ ïîèñêà - â âèäå îòîáðàæåíèÿ ïîëíîãî òåêñòà ñîîáùåíèÿ è â âèäå ññûëêè íà òåìó. Âèä îòîáðàæåíèÿ Âû ìîæåòå çàðàíåå óêàçàòü, íà ñòðàíèöå ïîèñêà.\r<br>\r<br>Àäìèíèñòðàòîð ìîæåò âêëþ÷èòü ìèíèìàëüíîå âðåìÿ, èçâåñòíîå ïîä íàçâàíèåì - Ôëóä-êîíòðîëü, êîòîðîå Âû äîëæíû áóäåòå ïðîæäàòü, äëÿ ïîâòîðíîãî ïîèñêà.\r<br>\r<br>Íà ôîðóìå èìååòñÿ òàêæå ïîèñêîâàÿ ôîðìî÷êà, èçâåñòíàÿ ïîä íàçâàíèåì - Ôèëüòð ïîèñêà, íàõîäÿùàÿñÿ â íèæíåé ÷àñòè êàæäîãî ðàçäåëà, ÷åðåç êîòîðóþ Âû ñìîæåòå ïðîèçâåñòè áûñòðûé ïîèñê â êîíêðåòíîì ðàçäåëå ôîðóìà.', 'Êàê âîñïîëüçîâàòüñÿ ôóíêöèåé ïîèñêà.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (11, 'Àâòîðèçàöèÿ è Âûõîä èç ôîðóìà', 'Âî âðåìÿ àâòîðèçàöèè íà ôîðóìå, Âû ìîæåòå óñòàíîâèòü ôóíêöèþ çàïîíèìàíèÿ Âàøèõ äàííûõ ÷åðåç cookies, à åñëè Âû çàøëè íà ôîðóì ñ ÷óæîãî êîìïüþòåðà, Âàì íàäî áóäåò àâòîðèçîâûâàòüñÿ ñíîâà.\r<br>\r<br>Íî íå èñïîëüçóéòå ôóíêöèþ çàïîìèíàíèÿ cookies, åñëè çàõîäèòå ñ ÷óæîãî êîìïüþòåðà.\r<br>\r<br>Âû ìîæåòå òàêæå âûáðàòü ôóíêöèþ ñêðûòèÿ, ïîñòàâèâ ãàëî÷êó â îêîøêå Ñêðûòíîñòü. È òîãäà Âàøå èìÿ íå áóäåò îòîáðàæàòüñÿ â ñïèñêå Êòî â îíëàéíå.\r<br>\r<br>Âûõîä èç ôîðóìà, ïðîèçâîäèòñÿ ïðîñòûì íàæàòèåì íà ññûëêó Âûõîä. Åñëè âäðóã Âû îáíàðóæèòå, ÷òî âûõîä íå ñðàáîòàë, âîçìîæíî Âû äîëæíû áóäåòå óäàëèòü Âàøè cookies. ×èòàéòå ðàçäåë ïîìîùè ïðî \'Cookies\', äëÿ äîïîëíèòåëüíîé èíôîðìàöèè.', 'Êàê àâòîðèçîâàòüñÿ, âûéòè èç ôîðóìà, à òàêæå êàê ñêðûòü ñâîå èìÿ èç ñïèñêà ïîëüçîâàòåëåé, íàõîäÿùèõñÿ íà ôîðóìå.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (13, 'Ìîé ïîìîùíèê', ' âåðõíåé ÷àñòè ôîðóìà, íàõîäèòñÿ ññûëêà \'Ìîé ïîìîùíèê\', íàæàâ íà êîòîðóþ, ó Âàñ îòêðîåòñÿ ñòðàíèöà, ÷åðåç êîòîðóþ Âû ñìîæåòå óçíàòü, ñêîëüêî èìååòñÿ íîâûõ ñîîáùåíèé ñ ìîìåíòà Âàøåãî ïîñëåäíåãî ïîñåùåíèÿ ôîðóìà. Íà ñëåäóþùåé ñòðîêå, Âû óâèäèòå èíôîðìàöèþ î òîì, ñêîëüêî èç ýòèõ ñîîáùåíèé, ÿâëÿþòñÿ îòâåòàìè â òåìó, ñîçäàííóþ Âàìè.\r<br>Íàæàòèåì íà ññûëêó \'Ïðîñìîòð\', â ëþáîé èç ýòèõ äâóõ ñòðîê, Âû ñìîæåòå ïðîñìîòðåòü ýòè ñîîáùåíèÿ.\r<br>\r<br>Ñëåäóþùàÿ ñåêöèÿ íà ýòîé ñòðàíèöå - ýòî ïÿòü ïîëåçíûõ ññûëîê ñî ñëåäóþùèìè ôóíêöèÿìè:\r<br>\r<br><li>Ññûëêà Àäìèíèñòðàöèÿ, ïîêàæåò Âàì ñïèñîê Àäìèíèñòðàòîðîâ è ìîäåðàòîðîâ ôîðóìà.\r<br><li> Ññûëêà \'Àêòèâíûå òåìû\', ïîêàæåò Âàì ñïèñîê òåì, ñîçäàííûõ çà ïîñëåäíèå 24 ÷àñà.\r<br><li>Ññûëêà \'10 àâòîðîâ ñåãîäíÿ\', ïîêàæåò Âàì, èìåíà Àêòèâíûõ ïîëüçîâàòåëåé çà ïîñëåäíèé äåíü è êîë-âî èõ ñîîáùåíèé çà ýòîò äåíü, à òàêæå ïðîöåíò èõ ñîîáùåíèé çà ñåãîäíÿ è îáùåå êîë-âî èõ ñîîáùåíèé íà ôîðóìå.\r<br><li>Ññûëêà \'Ëó÷øèå 10 àâòîðîâ\', ïîêàæåò Âàì èìåíà ëó÷øåé äåñÿòêè ïîëüçîâàòåëåé, èìåþùèõ ñàìîå ðåêîðäíîå êîë-âî ñîîáùåíèé íà ôîðóìå, ñî äíÿ ñîçäàíèÿ ôîðóìà.\r<br><li>Ññûëêà \'10 ìîèõ ïîñë. ñîîáùåíèé\', ïîêàæåò Âàì 10 Âàøèõ ïîñëåäíèõ ñîîáùåíèé, ñ îáðåçàííûì òåêñòîì ñàìèõ ñîîáùåíèé. Åñëè Âû çàõîòèòå óâèäåòü ïîëíûé òåêñò êàêîãî-òî èç ýòèõ 10 ñîîáùåíèé, Âû ìîæåòå íàæàòü íà ññûëêó, âåäóùóþ â òåìó, â êîòîðîé íàõîäèòñÿ äàííîå ñîîáùåíèå.\r<br>\r<br>È ïîñëåäíÿÿ ñåêöèÿ íà ýòîé ñòðàíèöå, ýòî ñåêöèÿ ïîèñêà ïî ôîðóìó, ÷åðåç êîòîðîå Âû ñìîæåòå íàéòè êîíêðåòíîå ñîîáùåíèå, èìåþùåå êëþ÷åâîå ñëîâî, ââåäåííîå Âàìè.\r<br>\r<br>Ñëåäóþùåå îêîøêî ïîèñêà, íàéäåò Âàì êîíêðåòíûé ðàçäåë ïîìîùè ïî ôîðóìó, ïîñðåäñòâîì ââîäà èíòåðåñóþùåãî Âàñ êëþ÷åâîãî ñëîâà.', 'Ïîëíûé ñïðàâî÷íèê ïî èñïîëüçîâàíèþ ýòîé ìàëåíüêîé, íî óäîáíîé ôóíêöèè.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (12, 'Ñîîáùåíèÿ', 'Íà ôîðóìå äîñòóïíû 3 ðàçíûå ôîðìû ñîçäàíèÿ ñîîáùåíèé. Êíîïêà \'Íîâàÿ òåìà\', íàõîäÿùàÿñÿ â êàæäîì ðàçäåëå ôîðóìà è íà ñòðàíèöå òåì, ïðåäíàçíà÷åíà äëÿ ñîçäàíèÿ íîâîé òåìû. Êíîïêà \'Íîâûé îïðîñ\', (åñëè îïðîñû äîïóùåíû Àäìèíèñòðàòîðîì), òàêæå âèäèìàÿ â êàæäîì ðàçäåëå ôîðóìà è íà ñòðàíèöå òåì, ïðåäíàçíà÷åíà äëÿ ñîçäàíèÿ íîâîé òåìû-ãîëîñîâàíèÿ. Ïðè ïðîñìîòðå òåìû, Âû óâèäèòå êíîïêó \'Îòâåòèòü\', êîòîðàÿ ïðåäíàçíà÷åíà äëÿ äîáàâëåíèÿ Âàøåãî ñîîáùåíèÿ â äàííóþ òåìó. \r\n<br>\r\n<br><b>Ñîçäàíèå íîâîé òåìû è îòâåò â òåìó</b>\r\n<br>\r\n<br>Ïðè íàïèñàíèè ñîîáùåíèé, Âàñ âåðîÿòíî çàèíòåðåñóþò Êîäû ôîðóìà. Äàííûå êîäû, ïðåäíàçíà÷åíû äëÿ ðàçëè÷íîãî ôîðìàòèðîâàíèÿ òåêñòîâ Âàøèõ ñîîáùåíèé. Äëÿ áîëåå ïîäðîáíîé èíôîðìàöèè ïî èñïîëüçîâàíèþ êîäîâ ôîðóìà, âîñïîëüçóéòåñü êíîïêîé \'Ïîìîùü ïî êîäàì\', íàõîäÿùóþñÿ ðÿäîì ñ îêîøêîì äëÿ íàïèñàíèÿ ñîîáùåíèÿ.\r\n<br>\r\n<br>Ñ ëåâîé ñòîðîíû îò îêíà äëÿ ââîäà òåêñòà ñîîáùåíèÿ, èìååòñÿ òàáëèöà ñî ñìàéëèêàìè. Äëÿ äîáàâëåíèÿ ëþáîãî ñìàéëèêà ê òåêñòó Âàøåãî ñîîáùåíèÿ, íàæìèòå íà ýòîò ñìàéëèê è åãî êîä áóäåò àâòîìàòè÷åñêè äîáàâëåí â íóæíîå ìåñòî òåêñòà.\r\n<br>\r\n<br>Èìåþòñÿ 3 îïöèè ñîîáùåíèÿ, äîñòóïíûå ïðè ñîçäàíèè òåìû èëè îòâåòå â òåìó. Ïðè îòêëþ÷åíèè îïöèè \'Âêëþ÷èòü ñìàéëèêè?\', êîäû ñìàéëèêîâ íå áóäóò ïðåîáðàçîâàíû â èçîáðàæåíèÿ. Îïöèÿ \'Âêëþ÷èòü ïîäïèñü?\', ïðåäíàçíà÷åíà äëÿ äîáàâëåíèÿ òåêñòà Âàøåé ïîäïèñè ê êàæäîìó ñîîáùåíèþ íà ôîðóìå. Ïðè óñòàíîâêå ãàëî÷êè â îêîøêå îïöèè \'Âêëþ÷èòü óâåäîìëåíèå íà e-mail ïðè îòâåòàõ?\', íà Âàø e-mail àäðåñ áóäåò ïîñòóïàòü èíôîðìàöèÿ, êàæäûé ðàç, ïðè íîâûõ îòâåòàõ â äàííûóþ òåìó. Äëÿ áîëåå ïîäðîáíîé èíôîðìàöèè ïî ýòîé ôóíêöèè, ÷èòàéòå ðàçäåë ïîìîùè \'Óâåäîìëåíèå íà e-mail î íîâûõ ñîîáùåíèÿõ\'.\r\n<br>\r\n<br>Òàêæå äëÿ Âàñ äîñòóïåí âûáîð èêîíêè ñîîáùåíèÿ, ïðè ñîçäàíèè òåì èëè îòâåòàõ â òåìû. Âûáðàííàÿ Âàìè èêîíêà áóäåò îòîáðàæàòüñÿ ñëåâà îò íàçâàíèÿ Âàøåé òåìû, â ñïèñêå òåì ôîðóìà, à åñëè âûáðàòü èêîíêó ïðè îòâåòå â òåìó, Âàøà èêîíêà áóäåò îòîáðàæàòüñÿ íàä Âàøèì ñîîáùåíèåì, ñëåâà îò äàòû íàïèñàíèÿ ñîîáùåíèÿ.\r\n<br>\r\n<br>Åñëè Àäìèíèñòðàòîð ôîðóìà âêëþ÷èë ôóíêöèþ ïðèñîåäèíåíèé, Âû óâèäèòå ôîðìî÷êó äëÿ ïðèñîåäèíåíèÿ ôàéëà ê Âàøåìó ñîîáùåíèþ. Äëÿ ïðèñîåäèíåíèÿ ôàéëà, íàæìèòå íà êíîïêó Îáçîð è âûáåðèòå ôàéë íà Âàøåì êîìïüþòåðå, äëÿ çàãðóçêè ýòîò ôàéëà. Åñëè Âû çàãðóæàåòå ôàéë èçîáðàæåíèÿ, äàííîå èçîáðàæåíèÿ áóäåò îòîáðàæåíî ïîä òåêñòîì Âàøåãî ñîîáùåíèÿ, à ïðè çàãðóçêå âñåõ äðóãèõ òèïîâ ôàéëîâ, ïîä òåêñòîì Âàøåãî ñîîáùåíèÿ, áóäåò ïðîïèñàíà ññûëêà äëÿ ñêà÷èâàíèÿ ýòîãî ôàéëà.\r\n<br>\r\n<br><b>Óñòàíîâêè îïðîñà</b>\r\n<br>\r\n<br>Ïðè ñîçäàíèè íîâîãî îïðîñà, ïîä ïîëÿìè äëÿ ââîäà íàçâàíèÿ è îïèñàíèÿ òåìû, Âû óâèäèòå 2 äîïîëíèòåëüíûõ ïîëÿ. Ïåðâîå ïîëå, ñëóæèò äëÿ ââîäà â íåì âîïðîñà Âàøåãî ãîëîñîâàíèÿ. Âòîðîå, òåêñòîâîå ïîëå, ñëóæèò äëÿ ââîäà ïóíêòîâ îïðîñà. Íåîáõîäèìî ââîäèòü ïî îäíîìó ïóíêòó íà ñòðîêó. Ìàêñìèìàëüíî äîïóñòèìîå êîë-âî ïóíêòîâ, îòîáðàæàåòñÿ ñëåâà îò îêíà ââîäà ïóíêòîâ îïðîñà.\r\n<br>\r\n<br><b>Öèòèðîâàíèå ñîîáùåíèé</b>\r\n<br>\r\n<br>Íàä êàæäûì ñîîáùåíèåì â òåìå, èìååòñÿ êíîïêà \'Öèòàòà\'. Ïðè íàæàòèè íà ýòó êíîïêó, Âû ñìîæåòå îòâåòèòü â òåìó, ñ öèòèðîâàíèåì òîãî ñîîáùåíèÿ, íàä êîòîðûì íàæàëè äàííóþ êíîïêó. Òàêèì îáðàçîì, ïðè íàæàòèè íà ýòó êíîïêó, Âû ïîïàäåòå íà ñòðàíèöó îòâåòà â òåìó, ãäå ïîä ôîðìîé îòâåòà, Âû óâèäèòå äîïîëíèòåëüíîå òåêñòîâîå îêíî, ñ òåêñòîì ïðîöèòèðîâàííîãî ñîîáùåíèÿ, êîòîðîå Âû ìîæåòå îòðåäàêòèðîâàòü íà Âàøå óñìîòðåíèå.\r\n<br>\r\n<br><b>Ðåäàêòèðîâàíèå ñîîáùåíèé</b>\r\n<br>\r\n<br>Íàä êàæäûì ñîîáùåíèåì, íàïèñàííûì Âàìè, Âû óâèäèòå êíîïêó \'Ðåäàêòèðîâàíèå\'. Ïðè íàæàòèè íà ýòó êíîïêó, Âû ñìîæåòå îòðåäàêòèðîâàòü òåêñò Âàøåãî ñîîáùåíèÿ, íåçàâèñèìî îò òîãî, êîãäà Âû ýòî ñîîáùåíèå ïèñàëè. \r\n<br>\r\n<br>Ïðè ðåäàêòèðîâàíèè ñâîåãî ñîîáùåíèÿ, Âû ìîæåòå óâèäåòü îïöèþ \'Äîáàâèòü íàäïèñü Îòðåäàêòèðîâàíî â ýòî ñîîáùåíèå?\'. Ïðè óñòàíîâêå ãàëî÷êè â ýòîé îïöèè, ïîä Âàøèì îòðåäàêòèðîâàííûì ñîîáùåíèåì ïîÿâèòñÿ íàäïèñü, èíôîðìèðóþùàÿ î òîì, ÷òî Âû ðåäàêòèðîâàëè ýòî ñîîáùåíèå, ñ äàòîé ðåäàêòèðîâàíèÿ. Åñëè Âû íå âèäèòå ýòó îïöèþ, çíà÷èò äàííàÿ èíôîðìàèöÿ î ðåäàêòèðîâàíèè áóäåò äîáàâëåíà àâòîìàòè÷åñêè.\r\n<br>\r\n<br>Åñëè Âû íå âèäèòå êíîïêó äëÿ ðåäàêòèðîâàíèÿ Âàøåãî ñîîáùåíèÿ, òî âîçìîæíî, ÷òî Àäìèíèñòðàòîð ôîðóìà îòêëþ÷èë äàííóþ ôóíêöèþ, ëèáî óñòàíîâèë ëèìèò âðåìåíè, ïî èñòå÷åíèè êîòîðîãî, ðåäàêòèðîâàíèå ñîîáùåíèÿ óæå íåâîçìîæíî.', 'Ðóêîâîäñòâî ïî ôóíêöèÿì, ïðè íàïèñàíèè ñîîáùåíèé.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (14, 'Ñïèñîê ïîëüçîâàòåëåé', 'Ñïèñîê ïîëüçîâàòåëåé, äîñòóïíûé ÷åðåç ññûëêó \'Ïîëüçîâàòåëè\', íàõîäÿùóþñÿ â âåðõíåé ÷àñòè êàæäîé ñòðàíèöû ôîðóìà, - ýòî ïîëíûé ñïèñîê âñåõ ïîëüçîâàòåëåé, çàðåãèñòðèðîâàííûõ íà ôîðóìå.\r\n<br>\r\n<br>Äëÿ ïîèñêà êîíêðåòíîãî ïîëüçîâàòåëÿ ïî ÷àñòè èëè ïî ïîëíîìó èìåíè, â âûïàäàþùåì ìåíþ, íàõîäÿùèìñÿ â íèæíåé ÷àñòè ñïèñêà ïîëüçîâàòåëåé, èçìåíèòå ïóíêò \'Íàéòè âñåõ äîñòóïíûõ\' íà \'Èìÿ íà÷èíàåòñÿ ñ\' èëè \'Èìÿ ñîäåðæèò\', çàòåì ââåäèòå ÷àñòü èìåíè èëè ïîëíîå èìÿ â òåêñòîâîå ïîëå è íàæìèòå íà êíîïêó \'ÎÊ!\'. \r\n<br>\r\n<br>Òàêæå äîñòóïíû íåñêîëüêî îïöèé ñîðòèðîâêè íàéäåííîãî, êîòîðûå Âû ìîæåòå èñïîëüçîâàòü, êàê Âàì áóäåò óäîáíî. \r\n<br>\r\n<br> ïîñëåäíåé êîëîíêå ñïèñêà ïîëüçîâàòåëåé, íàïðîòèâ èìåí ïîëüçîâàòåëåé, êîòîðûå çàãðóçèëè ôîòîãðàôèþ â ñâîé ïðîôèëü, áóäåò îòîáðàæàòüñÿ èçîáðàæåíèå â âèäå ôîòîàïïàðàòà', 'Ïðîñìîòð è ïîèñê ïîëüçîâàòåëåé ÷åðåç ñïèñîê ïîëüçîâàòåëåé è âîçìîæíîñòü ñîðòèðîâêè íàéäåííîãî.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (15, 'Îïöèè òåìû', ' íèæíåé ÷àñòè êàæäîé òåìû, èìååòñÿ êíîïêà \'Îïöèè òåìû\'. Ïðè íàæàòèè íà ýòó êíîïêó, ðàñêðîåòñÿ ìåíþ ñ îïöèÿìè òåìû. \r\n<br>\r\n<br> ýòîì ìåíþ, Âû ìîæåòå èñïîëüçîâàòü ñëåäóþùèå îïöèè: \r\n<br>\r\n<br><li>Ïîäïèñàòüñÿ íà òåìó - ýòà îïöèÿ ñëóæèò äëÿ ïîëó÷åíèÿ óâåäîìëåíèé íà e-mail, îá îáíîâëåíèè òåìû. Äëÿ áîëåå ïîäðîáíîé èíôîðìàöèè ïî ýòîé ÷àñòè, ÷èòàéòå ðàçäåë ïîìîùè \'Óâåäîìëåíèå íà e-mail î íîâûõ ñîîáùåíèÿõ\'. \r\n<br><li>Ïîäïèñêà íà ýòîò ôîðóì - ýòà îïöèÿ ñëóæèò äëÿ ïîëó÷åíèÿ óâåäîìëåíèé íà e-mail, î ëþáûõ íîâûõ òåìàõ, ñîçäàííûõ â ýòîì ôîðóìå. Äëÿ áîëåå ïîäðîáíîé èíôîðìàöèè ïî ýòîé ÷àñòè, ÷èòàéòå ðàçäåë ïîìîùè \'Óâåäîìëåíèå íà e-mail î íîâûõ ñîîáùåíèÿõ\'. \r\n<br><li>Ñêà÷àòü/Ðàñïå÷àòàòü òåìó - ýòà îïöèÿ îòîáðàçèò äàííóþ òåìó â äðóãèõ ðàçëè÷íûõ ôîðìàòàõ. \'Âåðñèÿ äëÿ ïå÷àòè\' îòîáðàçèò òåìó â òîì âèäå, â êîòîðîì îíà áóäåò ðàñïå÷àòàíà íà ïðèíòåðå. \'Ñêà÷àòü HTML âåðñèþ\', ïîçâîëèò Âàì ñêà÷àòü äàííóþ òåìó íà Âàø æåñòêèé äèñê, äëÿ äàëüíåéøåãî ïðîñìîòðà è ÷òåíèÿ ñîäåðæèìîãî ýòîé òåìû, áåç íåîáõîäèìîñòè âõîäà â èíòåðíåò. \'Ñêà÷àòü âåðñèþ â ôîðìàòå Microsoft Word\', ïîçâîëèò Âàì ñêà÷àòü äàííóþ òåìó íà Âàø æåñòêèé äèñê è çàòåì îòêðûòü åå â ïîïóëÿðíîì, èçâåñòíîì ïðèëîæåíèè Microsoft Word, äëÿ ïðîñìîòðà è ÷òåíèÿ ñîäåðæèìîãî ýòîé òåìû, áåç íåîáõîäèìîñòè âõîäà â èíòåðíåò.', 'Ðóêîâîäñòâî ïî äîñòóïíûì îïöèÿì, ïðè ïðîñìîòðå òåì.');";
$SQL[] = "REPLACE INTO ".SQL_PREFIX."faq VALUES (16, 'Êàëåíäàðü', 'Íà ôîðóìå èìååòñÿ ôóíêöèÿ êàëåíäàðÿ, ññûëêà íà êîòîðûé íàõîäèòñÿ â âåðõíåé ÷àñòè ôîðóìà.\r\n<br>\r\n<br>Âû ìîæåòå äîáàâëÿòü ïåðñîíàëüíûå ñîáûòèÿ â êàëåíäàðü, êîòîðûå áóäóò âèäíû òîëüêî Âàì. Äëÿ äîáàâëåíèÿ íîâîãî ñîáûòèÿ, èñïîëüçóéòå êíîïêó \'Äîáàâèòü ñîáûòèå\'. Èìååòñÿ âîçìîæíîñòü ñîçäàíèÿ òðåõ âèäîâ ñîáûòèé:\r\n<br>\r\n<br><li>Îäíîäíåâíîå ñîáûòèå - äëÿ äîáàâëåíèÿ ýòîãî âèäà, èñïîëüçóéòå ïåðâîå ïîëå, óêàçàâ â íåì äàòó ñîáûòèÿ.\r\n<br><li>Ìíîãîäíåâíîå ñîáûòèå - ýòî âèä ñîáûòèÿ, ïðåäóñìîòðåííûé íà íåñêîëüêî äíåé, äëÿ äîáàâëåíèÿ ýòîãî âèäà, èñïîëüçóéòå âòîðîå ïîëå, óêàçàâ â íåì äàòó íà÷àëà è äàòó îêîí÷àíèÿ ñîáûòèÿ. Çäåñü æå ïðèñóòñòâóþò äâå äîïîëíèòåëüíûå îïöèè, äëÿ âûáîðà öâåòà ôîíà è öâåòà òåêñòà îòîáðàæàåìîãî ñîáûòèÿ.\r\n<br><li>×åðåäóþùååñÿ ñîáûòèå - ýòîò âèä ñîáûòèÿ áóäåò íà÷àò ñ ìîìåíòà åãî äîáàâëåíèÿ è Âû ìîæåòå â íåì óêàçàòü åæåíåäåëüíûé, åæåìåñÿ÷íûé èëè åæåãîäíûé èíòåðâàë ÷åðåäîâàíèÿ. Äëÿ äîáàâëåíèÿ ýòîãî âèäà, èñïîëüçóéòå òðåòüå ïîëå.\r\n<br>\r\n<br>Åñëè ýòî äîïóùåíî Àäìèíèñòðàòîðîì ôîðóìà, Âû òàêæå ìîæåòå äîáàâëÿòü îáùåñòâåííîå ñîáûòèå, êîòîðîå áóäåò âèäíî íå òîëüêî Âàì, à âñåì ïîëüçîâàòåëÿì ôîðóìà.\r\n<br>\r\n<br>Òàêæå, Âû ìîæåòå óêàçàòü äàòó Âàøåãî ðîæäåíèÿ ÷åðåç ñòðàíèöó Âàøåãî ïðîôèëÿ è, åñëè Àäìèíèñòðàòîð âêëþ÷èë ýòó âîçìîæíîñòü, òî äàòà Âàøåãî ðîæäåíèÿ ïîÿâèòñÿ â âèäå ññûëêè â êàëåíäàðå, â äåíü Âàøåãî ðîæäåíèÿ.', 'Èíôîðìàöèÿ ïî èñïîëüçîâàíèþ ôóíêöèè êàëåíäàðÿ ôîðóìà.');";
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $query."<br /><br />".$DB->error;
$this->error[] = $query."<br /><br />".$this->ipsclass->DB->error;
}
else
{
@@ -599,15 +606,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $query."<br /><br />".$DB->error;
$this->error[] = $query."<br /><br />".$this->ipsclass->DB->error;
}
else
{
@@ -624,6 +631,7 @@ class upgrade_sql
{
global $DB, $std, $ibforums;
$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;";
@@ -637,15 +645,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $query."<br /><br />".$DB->error;
$this->error[] = $query."<br /><br />".$this->ipsclass->DB->error;
}
else
{
@@ -671,15 +679,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $query."<br /><br />".$DB->error;
$this->error[] = $query."<br /><br />".$this->ipsclass->DB->error;
}
else
{
@@ -703,15 +711,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $query."<br /><br />".$DB->error;
$this->error[] = $query."<br /><br />".$this->ipsclass->DB->error;
}
else
{
@@ -732,9 +740,9 @@ class upgrade_sql
// Convert existing forums
//-----------------------------------------
$o = $DB->query("SELECT * FROM ".SQL_PREFIX."forums_bak ORDER BY id");
$o = $this->ipsclass->DB->query("SELECT * FROM ".SQL_PREFIX."forums_bak ORDER BY id");
while( $r = $DB->fetch_row( $o ) )
while( $r = $this->ipsclass->DB->fetch_row( $o ) )
{
$perm_array = addslashes(serialize(array(
'start_perms' => $r['start_perms'],
@@ -744,7 +752,7 @@ class upgrade_sql
'show_perms' => $r['read_perms']
) ) );
$DB->do_insert( 'forums', array (
$this->ipsclass->DB->do_insert( 'forums', array (
'id' => $r['id'],
'position' => $r['position'],
'topics' => $r['topics'],
@@ -788,14 +796,14 @@ class upgrade_sql
// Convert categories
//-----------------------------------------
$DB->query("SELECT MAX(id) as max FROM ".SQL_PREFIX."forums");
$max = $DB->fetch_row();
$this->ipsclass->DB->query("SELECT MAX(id) as max FROM ".SQL_PREFIX."forums");
$max = $this->ipsclass->DB->fetch_row();
$fid = $max['max'];
$o = $DB->query("SELECT * FROM ".SQL_PREFIX."categories WHERE id > 0");
$o = $this->ipsclass->DB->query("SELECT * FROM ".SQL_PREFIX."categories WHERE id > 0");
while( $r = $DB->fetch_row( $o ) )
while( $r = $this->ipsclass->DB->fetch_row( $o ) )
{
$fid++;
@@ -807,7 +815,7 @@ class upgrade_sql
'show_perms' => '*',
) ) );
$DB->do_insert( 'forums', array(
$this->ipsclass->DB->do_insert( 'forums', array(
'id' => $fid,
'position' => $r['position'],
'name' => $r['name'],
@@ -820,18 +828,18 @@ class upgrade_sql
// Update old categories
//-----------------------------------------
$n = $DB->query("SELECT id FROM ".SQL_PREFIX."forums_bak WHERE category={$r['id']} AND parent_id = -1");
$n = $this->ipsclass->DB->query("SELECT id FROM ".SQL_PREFIX."forums_bak WHERE category={$r['id']} AND parent_id = -1");
$ids = array();
while( $c = $DB->fetch_row($n) )
while( $c = $this->ipsclass->DB->fetch_row($n) )
{
$ids[] = $c['id'];
}
if ( count($ids) )
{
$DB->do_update( 'forums', array( 'parent_id' => $fid ), 'id IN ('.implode(',',$ids).')' );
$this->ipsclass->DB->do_update( 'forums', array( 'parent_id' => $fid ), 'id IN ('.implode(',',$ids).')' );
}
}
}
@@ -890,15 +898,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $query."<br /><br />".$DB->error;
$this->error[] = $query."<br /><br />".$this->ipsclass->DB->error;
}
else
{
@@ -950,15 +958,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $query."<br /><br />".$DB->error;
$this->error[] = $query."<br /><br />".$this->ipsclass->DB->error;
}
else
{
@@ -981,15 +989,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $query."<br /><br />".$DB->error;
$this->error[] = $query."<br /><br />".$this->ipsclass->DB->error;
}
else
{
@@ -1013,15 +1021,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $query."<br /><br />".$DB->error;
$this->error[] = $query."<br /><br />".$this->ipsclass->DB->error;
}
else
{
@@ -1421,7 +1429,7 @@ class upgrade_sql
$SQL[] = "CREATE TABLE ".SQL_PREFIX."subscription_currency (
subcurrency_code varchar(10) NOT NULL,
subcurrency_desc varchar(250) NOT NULL default '',
subcurrency_exchange decimal(10, 8) NOT NULL,
subcurrency_exchange decimal(16, 8) NOT NULL,
subcurrency_default tinyint(1) NOT NULL default '0',
PRIMARY KEY(subcurrency_code)
);";
@@ -1507,15 +1515,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $query."<br /><br />".$DB->error;
$this->error[] = $query."<br /><br />".$this->ipsclass->DB->error;
}
else
{
@@ -1523,14 +1531,14 @@ class upgrade_sql
}
}
$oq = $DB->query("SELECT * FROM ".SQL_PREFIX."rules");
$oq = $this->ipsclass->DB->query("SELECT * FROM ".SQL_PREFIX."rules");
while ( $r = $DB->fetch_row($oq) )
while ( $r = $this->ipsclass->DB->fetch_row($oq) )
{
$nq = $DB->query("UPDATE ".SQL_PREFIX."forums SET rules_title='{$r['title']}', rules_text='{$r['body']}' WHERE id={$r['fid']}");
$nq = $this->ipsclass->DB->query("UPDATE ".SQL_PREFIX."forums SET rules_title='{$r['title']}', rules_text='{$r['body']}' WHERE id={$r['fid']}");
}
$DB->query("drop table if exists ".SQL_PREFIX."rules");
$this->ipsclass->DB->query("drop table if exists ".SQL_PREFIX."rules");
}
/*-------------------------------------------------------------------------*/
@@ -1551,7 +1559,7 @@ class upgrade_sql
$SQL[] = "DROP TABLE if exists ".SQL_PREFIX."forums_bak";
$table = $DB->sql_get_table_schematic( 'forums' );
$table = $this->ipsclass->DB->sql_get_table_schematic( 'forums' );
$SQL[] = str_replace( SQL_PREFIX."forums", SQL_PREFIX."forums_bak", $table['Create Table'] );
@@ -1560,15 +1568,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $query."<br /><br />".$DB->error;
$this->error[] = $query."<br /><br />".$this->ipsclass->DB->error;
}
else
{
@@ -1576,17 +1584,17 @@ class upgrade_sql
}
}
$oq = $DB->query("SELECT g_id, g_title FROM ".SQL_PREFIX."groups ORDER BY g_id");
$oq = $this->ipsclass->DB->query("SELECT g_id, g_title FROM ".SQL_PREFIX."groups ORDER BY g_id");
while( $r = $DB->fetch_row($oq) )
while( $r = $this->ipsclass->DB->fetch_row($oq) )
{
$nq = $DB->query("REPLACE INTO ".SQL_PREFIX."forum_perms SET perm_id={$r['g_id']}, perm_name='{$r['g_title']} Mask'");
$bq = $DB->query("UPDATE ".SQL_PREFIX."groups SET g_perm_id={$r['g_id']} WHERE g_id={$r['g_id']}");
$nq = $this->ipsclass->DB->query("REPLACE INTO ".SQL_PREFIX."forum_perms SET perm_id={$r['g_id']}, perm_name='{$r['g_title']} Mask'");
$bq = $this->ipsclass->DB->query("UPDATE ".SQL_PREFIX."groups SET g_perm_id={$r['g_id']} WHERE g_id={$r['g_id']}");
}
$DB->query("update ".SQL_PREFIX."messages SET read_state=1 where vid='sent'");
$this->ipsclass->DB->query("update ".SQL_PREFIX."messages SET read_state=1 where vid='sent'");
$DB->query("DROP TABLE if exists ".SQL_PREFIX."attachments");
$this->ipsclass->DB->query("DROP TABLE if exists ".SQL_PREFIX."attachments");
}
//#------------------------------------------------------------------------
+191 -183
View File
@@ -2,17 +2,23 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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.2 -> 2.0 SQL STUFF!
@@ -36,8 +42,8 @@ class upgrade_sql
{
global $DB, $ibforums, $std;
define( 'THIS_HUMAN_VERSION', '2.0.0' );
define( 'THIS_LONG_VERSION' , '20010' );
define( 'THIS_HUMAN_VERSION', '2.0.2' );
define( 'THIS_LONG_VERSION' , '20012' );
$this->sqlbit['attach'] = "attach_file != ''";
}
@@ -54,8 +60,9 @@ class upgrade_sql
// Get ACP library
//-----------------------------------
require_once( ROOT_PATH.'sources/admin/admin_cache_functions.php' );
$acp = new admin_cache_functions();
require_once( ROOT_PATH.'sources/lib/admin_cache_functions.php' );
$acp = new admin_cache_functions();
$acp->ipsclass =& $this->ipsclass;
//-----------------------------------
// Cache skins and shit
@@ -67,15 +74,15 @@ class upgrade_sql
// Forum cache
//-------------------------------------------------------------
$ibforums->cache['forum_cache'] = array();
$this->ipsclass->cache['forum_cache'] = array();
$DB->simple_construct( array( 'select' => '*',
$this->ipsclass->DB->simple_construct( array( 'select' => '*',
'from' => 'forums',
'order' => 'parent_id, position'
) );
$DB->simple_exec();
$this->ipsclass->DB->simple_exec();
while( $fr = $DB->fetch_row() )
while( $fr = $this->ipsclass->DB->fetch_row() )
{
$perms = unserialize(stripslashes($fr['permission_array']));
@@ -87,171 +94,171 @@ class upgrade_sql
unset($fr['permission_array']);
$ibforums->cache['forum_cache'][ $fr['id'] ] = $fr;
$this->ipsclass->cache['forum_cache'][ $fr['id'] ] = $fr;
}
$std->update_cache( array( 'name' => 'forum_cache', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'forum_cache', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// Group Cache
//-------------------------------------------------------------
$ibforums->cache['group_cache'] = array();
$this->ipsclass->cache['group_cache'] = array();
$DB->simple_construct( array( 'select' => "*",
$this->ipsclass->DB->simple_construct( array( 'select' => "*",
'from' => 'groups'
) );
$DB->simple_exec();
$this->ipsclass->DB->simple_exec();
while ( $i = $DB->fetch_row() )
while ( $i = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['group_cache'][ $i['g_id'] ] = $i;
$this->ipsclass->cache['group_cache'][ $i['g_id'] ] = $i;
}
$std->update_cache( array( 'name' => 'group_cache', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'group_cache', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// Systemvars
//-------------------------------------------------------------
$ibforums->cache['systemvars'] = array();
$this->ipsclass->cache['systemvars'] = array();
$result = $DB->simple_exec_query( array( 'select' => 'count(*) as cnt', 'from' => 'mail_queue' ) );
$result = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'count(*) as cnt', 'from' => 'mail_queue' ) );
$ibforums->cache['systemvars']['mail_queue'] = intval( $result['cnt'] );
$ibforums->cache['systemvars']['task_next_run'] = time() + 3600;
$this->ipsclass->cache['systemvars']['mail_queue'] = intval( $result['cnt'] );
$this->ipsclass->cache['systemvars']['task_next_run'] = time() + 3600;
$std->update_cache( array( 'name' => 'systemvars', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'systemvars', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// Stats
//-------------------------------------------------------------
$ibforums->cache['stats'] = array();
$this->ipsclass->cache['stats'] = array();
$DB->simple_construct( array( 'select' => 'count(pid) as posts', 'from' => 'posts', 'where' => "queued <> 1" ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'count(pid) as posts', 'from' => 'posts', 'where' => "queued <> 1" ) );
$this->ipsclass->DB->simple_exec();
$r = $DB->fetch_row();
$r = $this->ipsclass->DB->fetch_row();
$stats['total_replies'] = intval($r['posts']);
$DB->simple_construct( array( 'select' => 'count(tid) as topics', 'from' => 'topics', 'where' => "approved = 1" ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'count(tid) as topics', 'from' => 'topics', 'where' => "approved = 1" ) );
$this->ipsclass->DB->simple_exec();
$r = $DB->fetch_row();
$r = $this->ipsclass->DB->fetch_row();
$stats['total_topics'] = intval($r['topics']);
$stats['total_replies'] -= $stats['total_topics'];
$DB->simple_construct( array( 'select' => 'count(id) as members', 'from' => 'members', 'where' => "mgroup <> '".$ibforums->vars['auth_group']."'" ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'count(id) as members', 'from' => 'members', 'where' => "mgroup <> '".$this->ipsclass->vars['auth_group']."'" ) );
$this->ipsclass->DB->simple_exec();
$r = $DB->fetch_row();
$r = $this->ipsclass->DB->fetch_row();
$stats['mem_count'] = intval($r['members']);
$ibforums->cache['stats']['total_replies'] = $stats['total_replies'];
$ibforums->cache['stats']['total_topics'] = $stats['total_topics'];
$ibforums->cache['stats']['mem_count'] = $stats['mem_count'];
$this->ipsclass->cache['stats']['total_replies'] = $stats['total_replies'];
$this->ipsclass->cache['stats']['total_topics'] = $stats['total_topics'];
$this->ipsclass->cache['stats']['mem_count'] = $stats['mem_count'];
$r = $DB->simple_exec_query( array( 'select' => 'id, name',
$r = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'id, name',
'from' => 'members',
'order' => 'id DESC',
'limit' => '0,1'
) );
$ibforums->cache['stats']['last_mem_name'] = $r['name'];
$ibforums->cache['stats']['last_mem_id'] = $r['id'];
$this->ipsclass->cache['stats']['last_mem_name'] = $r['name'];
$this->ipsclass->cache['stats']['last_mem_id'] = $r['id'];
$std->update_cache( array( 'name' => 'stats', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'stats', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// Ranks
//-------------------------------------------------------------
$ibforums->cache['ranks'] = array();
$this->ipsclass->cache['ranks'] = array();
$DB->simple_construct( array( 'select' => 'id, title, pips, posts',
$this->ipsclass->DB->simple_construct( array( 'select' => 'id, title, pips, posts',
'from' => 'titles',
'order' => "posts DESC",
) );
$DB->simple_exec();
$this->ipsclass->DB->simple_exec();
while ($i = $DB->fetch_row())
while ($i = $this->ipsclass->DB->fetch_row())
{
$ibforums->cache['ranks'][ $i['id'] ] = array(
$this->ipsclass->cache['ranks'][ $i['id'] ] = array(
'TITLE' => $i['title'],
'PIPS' => $i['pips'],
'POSTS' => $i['posts'],
);
}
$std->update_cache( array( 'name' => 'ranks', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'ranks', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// SETTINGS
//-------------------------------------------------------------
$ibforums->cache['settings'] = array();
$this->ipsclass->cache['settings'] = array();
$DB->simple_construct( array( 'select' => '*', 'from' => 'conf_settings', 'where' => 'conf_add_cache=1' ) );
$info = $DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'conf_settings', 'where' => 'conf_add_cache=1' ) );
$info = $this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row($info) )
while ( $r = $this->ipsclass->DB->fetch_row($info) )
{
$ibforums->cache['settings'][ $r['conf_key'] ] = $r['conf_value'] != "" ? $r['conf_value'] : $r['conf_default'];
$this->ipsclass->cache['settings'][ $r['conf_key'] ] = $r['conf_value'] != "" ? $r['conf_value'] : $r['conf_default'];
}
$std->update_cache( array( 'name' => 'settings', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'settings', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// EMOTICONS
//-------------------------------------------------------------
$ibforums->cache['emoticons'] = array();
$this->ipsclass->cache['emoticons'] = array();
$DB->simple_construct( array( 'select' => 'typed,image,clickable,emo_set', 'from' => 'emoticons' ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'typed,image,clickable,emo_set', 'from' => 'emoticons' ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row() )
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['emoticons'][] = $r;
$this->ipsclass->cache['emoticons'][] = $r;
}
$std->update_cache( array( 'name' => 'emoticons', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'emoticons', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// LANGUAGES
//-------------------------------------------------------------
$ibforums->cache['languages'] = array();
$this->ipsclass->cache['languages'] = array();
$DB->simple_construct( array( 'select' => 'ldir,lname', 'from' => 'languages' ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'ldir,lname', 'from' => 'languages' ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row() )
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['languages'][] = $r;
$this->ipsclass->cache['languages'][] = $r;
}
$std->update_cache( array( 'name' => 'languages', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'languages', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// ATTACHMENT TYPES
//-------------------------------------------------------------
$ibforums->cache['attachtypes'] = array();
$this->ipsclass->cache['attachtypes'] = array();
$DB->simple_construct( array( 'select' => 'atype_extension,atype_mimetype,atype_post,atype_photo,atype_img', 'from' => 'attachments_type', 'where' => "atype_photo=1 OR atype_post=1" ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'atype_extension,atype_mimetype,atype_post,atype_photo,atype_img', 'from' => 'attachments_type', 'where' => "atype_photo=1 OR atype_post=1" ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row() )
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['attachtypes'][ $r['atype_extension'] ] = $r;
$this->ipsclass->cache['attachtypes'][ $r['atype_extension'] ] = $r;
}
$std->update_cache( array( 'name' => 'attachtypes', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'attachtypes', 'array' => 1, 'deletefirst' => 1 ) );
}
/*-------------------------------------------------------------------------*/
@@ -271,15 +278,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $DB->error;
$this->error[] = $this->ipsclass->DB->error;
}
else
{
@@ -309,15 +316,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $DB->error;
$this->error[] = $this->ipsclass->DB->error;
}
else
{
@@ -342,15 +349,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $DB->error;
$this->error[] = $this->ipsclass->DB->error;
}
else
{
@@ -367,14 +374,14 @@ class upgrade_sql
{
global $DB, $std, $ibforums;
$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 &amp; 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 &amp; Forum Digest', 'dailydigest.php', 1086912600, -1, -1, 0, 10, '723cab2aae32dd5d04898b1151038846', 1, 'Emails out daily topic &amp; 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 &amp; Forum Digest', 'weeklydigest.php', 1087096200, 0, -1, 3, 10, '7e7fccd07f781bdb24ac108d26612931', 1, 'Emails weekly topic &amp; forum digest emails', 1, 'weeklydigest', 0);";
$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 ('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&amp;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]');";
@@ -445,51 +452,51 @@ class upgrade_sql
$SQL[] = "INSERT INTO ".SQL_PREFIX."cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('birthdays', 'a:0:{}', '', 1);";
$SQL[] = "INSERT INTO ".SQL_PREFIX."cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('calendar', 'a:0:{}', '', 1);";
$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 (1, 'IPB Master Skin Set', '1', 0, 0, '0', -1, '', '', '', '', '', '', 1079109298, '', '', 'default');";
$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 (2, 'IPB Default Skin', '1', 0, 1, '0', -1, 'ipbauto@invisionboard.com', 'Invision Power Services', 'www.invisionboard.com', '', '', '', 1074679074, '', '', 'default');";
$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."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 (1, 'IPB Ãëàâíûé ñòèëü', '1', 0, 0, '0', -1, '', '', '', '', '', '', 1079109298, '', '', 'default');";
$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 (2, 'IPB Ñòàíäàðòíûé ñòèëü', '1', 0, 1, '0', -1, 'ipbauto@invisionboard.com', 'Invision Power Services', 'www.invisionboard.com', '', '', '', 1074679074, '', '', 'default');";
$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 Ñòàðûå ñòèëè (äî 2.0)', '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, '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 &amp; 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 &amp; 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 &amp; 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');";
$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, 'Íàñòðîéêà Íîâîñòåé ôîðóìà', 'Ïîçâîëÿåò âûáðàòü íîâîñòíîé ðàçäåë ôîðóìà, îòêóäà áóäóò ýêñïîðòèðîâàòüñÿ íîâîñòè, êàê ñàìèì ôîðóìîì, òàê è ssi.php.', 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 àäðåñà ôîðóìà, âûáèðàòü ìåòîä äëÿ îòïðàâêè ïî÷òû (PHP mail(), SMTP) ñ ôîðóìà', 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, 'Íàñòðîéêè Êîðçèíû', 'Êîðçèíà &#151; ñïåöèàëüíûé ôîðóì, â êîòîðûé ïåðåìåùàþòñÿ òåìû ïîñëå óäàëåíèÿ, òåì ñàìûì îñòàâëÿÿ âîçìîæíîñòü âîññòàíîâèòü òåìó ïðè åå ñëó÷àéíîì óäàëåíèè.', 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, 'Òèï àâòîðèçàöèè', '&nbsp;', 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 Ïîðòàë.', 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,'Ðåãèñòðàöèÿ IPB', 'Ýòîò áëîê ïîçâîëÿåò âàì ðàáîòàòü ñ íàñòðîéêàìè ëèöåíçèè íà IPB.', 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 Óäàëåíèå êîïèðàéòà', 'Ýòîò áëîê ïîçâîëÿåò ââåñòè êëþ÷ àêòèâàöèè óñëóãè óäàëåíèÿ êîïèðàéòà.', 2, 1, 'ipbcopyright');";
$SQL[] = "INSERT INTO ".SQL_PREFIX."upgrade_history (upgrade_id, upgrade_version_id, upgrade_version_human, upgrade_date, upgrade_mid, upgrade_notes) VALUES ('', '".THIS_LONG_VERSION."', '".THIS_HUMAN_VERSION."', '0', '0', '');";
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $DB->error;
$this->error[] = $this->ipsclass->DB->error;
}
else
{
@@ -529,15 +536,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $DB->error;
$this->error[] = $this->ipsclass->DB->error;
}
else
{
@@ -554,6 +561,7 @@ class upgrade_sql
{
global $DB, $std, $ibforums;
$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;";
@@ -566,15 +574,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $DB->error;
$this->error[] = $this->ipsclass->DB->error;
}
else
{
@@ -597,15 +605,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $DB->error;
$this->error[] = $this->ipsclass->DB->error;
}
else
{
@@ -629,15 +637,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $DB->error;
$this->error[] = $this->ipsclass->DB->error;
}
else
{
@@ -658,9 +666,9 @@ class upgrade_sql
// Convert existing forums
//-----------------------------------------
$o = $DB->query("SELECT * FROM ".SQL_PREFIX."forums_bak ORDER BY id");
$o = $this->ipsclass->DB->query("SELECT * FROM ".SQL_PREFIX."forums_bak ORDER BY id");
while( $r = $DB->fetch_row( $o ) )
while( $r = $this->ipsclass->DB->fetch_row( $o ) )
{
$perm_array = addslashes(serialize(array(
'start_perms' => $r['start_perms'],
@@ -670,7 +678,7 @@ class upgrade_sql
'show_perms' => $r['read_perms']
) ) );
$DB->do_insert( 'forums', array (
$this->ipsclass->DB->do_insert( 'forums', array (
'id' => $r['id'],
'position' => $r['position'],
'topics' => $r['topics'],
@@ -714,14 +722,14 @@ class upgrade_sql
// Convert categories
//-----------------------------------------
$DB->query("SELECT MAX(id) as max FROM ".SQL_PREFIX."forums");
$max = $DB->fetch_row();
$this->ipsclass->DB->query("SELECT MAX(id) as max FROM ".SQL_PREFIX."forums");
$max = $this->ipsclass->DB->fetch_row();
$fid = $max['max'];
$o = $DB->query("SELECT * FROM ".SQL_PREFIX."categories WHERE id > 0");
$o = $this->ipsclass->DB->query("SELECT * FROM ".SQL_PREFIX."categories WHERE id > 0");
while( $r = $DB->fetch_row( $o ) )
while( $r = $this->ipsclass->DB->fetch_row( $o ) )
{
$fid++;
@@ -733,7 +741,7 @@ class upgrade_sql
'show_perms' => '*',
) ) );
$DB->do_insert( 'forums', array(
$this->ipsclass->DB->do_insert( 'forums', array(
'id' => $fid,
'position' => $r['position'],
'name' => $r['name'],
@@ -746,18 +754,18 @@ class upgrade_sql
// Update old categories
//-----------------------------------------
$n = $DB->query("SELECT id FROM ".SQL_PREFIX."forums_bak WHERE category={$r['id']} AND parent_id = -1");
$n = $this->ipsclass->DB->query("SELECT id FROM ".SQL_PREFIX."forums_bak WHERE category={$r['id']} AND parent_id = -1");
$ids = array();
while( $c = $DB->fetch_row($n) )
while( $c = $this->ipsclass->DB->fetch_row($n) )
{
$ids[] = $c['id'];
}
if ( count($ids) )
{
$DB->do_update( 'forums', array( 'parent_id' => $fid ), 'id IN ('.implode(',',$ids).')' );
$this->ipsclass->DB->do_update( 'forums', array( 'parent_id' => $fid ), 'id IN ('.implode(',',$ids).')' );
}
}
}
@@ -796,15 +804,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $DB->error;
$this->error[] = $this->ipsclass->DB->error;
}
else
{
@@ -844,15 +852,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $DB->error;
$this->error[] = $this->ipsclass->DB->error;
}
else
{
@@ -874,15 +882,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $DB->error;
$this->error[] = $this->ipsclass->DB->error;
}
else
{
@@ -906,15 +914,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $DB->error;
$this->error[] = $this->ipsclass->DB->error;
}
else
{
@@ -1314,7 +1322,7 @@ class upgrade_sql
$SQL[] = "CREATE TABLE ".SQL_PREFIX."subscription_currency (
subcurrency_code varchar(10) NOT NULL,
subcurrency_desc varchar(250) NOT NULL default '',
subcurrency_exchange decimal(10, 8) NOT NULL,
subcurrency_exchange decimal(16, 8) NOT NULL,
subcurrency_default tinyint(1) NOT NULL default '0',
PRIMARY KEY(subcurrency_code)
) TYPE=MyISAM;";
@@ -1323,15 +1331,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $DB->error;
$this->error[] = $this->ipsclass->DB->error;
}
else
{
@@ -1348,7 +1356,7 @@ class upgrade_sql
{
global $DB, $std, $ibforums;
$table = $DB->sql_get_table_schematic( 'forums' );
$table = $this->ipsclass->DB->sql_get_table_schematic( 'forums' );
$SQL[] = str_replace( SQL_PREFIX."forums", SQL_PREFIX."forums_bak", $table['Create Table'] );
@@ -1357,15 +1365,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[] = $DB->error;
$this->error[] = $this->ipsclass->DB->error;
}
else
{
@@ -1377,12 +1385,12 @@ class upgrade_sql
// Check...
//-----------------------------------------
$DB->query( "SELECT COUNT(*) as count FROM ".SQL_PREFIX."forums_bak" );
$count = $DB->fetch_row();
$this->ipsclass->DB->query( "SELECT COUNT(*) as count FROM ".SQL_PREFIX."forums_bak" );
$count = $this->ipsclass->DB->fetch_row();
if ( intval( $count['count'] ) < 1 )
{
print "The back-up forums table has not been populated successfully. Continuing this convert WILL delete all forums permanently. Contact technical support immediately.";
print "Ñîõðàíåííàÿ êîïèÿ òàáëèöû ñ ôîðóìàìè íå áûëà íîðìàëüíî ñäåëàíà. Ïðîäîëæåíèå ýòîãî îáíîâëåíèÿ ïðèâåäåò ê óäàëåíèþ âñåõ ôîðóìîâ. Íàïèøèòå â òåõíè÷åñêóþ ïîääåðæêó äëÿ ïîìîùè!";
exit();
}
}
+190 -182
View File
@@ -2,17 +2,23 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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.3 -> 2.0 SQL STUFF!
@@ -36,8 +42,8 @@ class upgrade_sql
{
global $DB, $ibforums, $std;
define( 'THIS_HUMAN_VERSION', '2.0.0' );
define( 'THIS_LONG_VERSION' , '20010' );
define( 'THIS_HUMAN_VERSION', '2.0.2' );
define( 'THIS_LONG_VERSION' , '20012' );
$this->sqlbit['attach'] = "attach_file != ''";
}
@@ -54,8 +60,9 @@ class upgrade_sql
// Get ACP library
//-----------------------------------
require_once( ROOT_PATH.'sources/admin/admin_cache_functions.php' );
$acp = new admin_cache_functions();
require_once( ROOT_PATH.'sources/lib/admin_cache_functions.php' );
$acp = new admin_cache_functions();
$acp->ipsclass =& $this->ipsclass;
//-----------------------------------
// Cache skins and shit
@@ -67,15 +74,15 @@ class upgrade_sql
// Forum cache
//-------------------------------------------------------------
$ibforums->cache['forum_cache'] = array();
$this->ipsclass->cache['forum_cache'] = array();
$DB->simple_construct( array( 'select' => '*',
$this->ipsclass->DB->simple_construct( array( 'select' => '*',
'from' => 'forums',
'order' => 'parent_id, position'
) );
$DB->simple_exec();
$this->ipsclass->DB->simple_exec();
while( $fr = $DB->fetch_row() )
while( $fr = $this->ipsclass->DB->fetch_row() )
{
$perms = unserialize(stripslashes($fr['permission_array']));
@@ -87,171 +94,171 @@ class upgrade_sql
unset($fr['permission_array']);
$ibforums->cache['forum_cache'][ $fr['id'] ] = $fr;
$this->ipsclass->cache['forum_cache'][ $fr['id'] ] = $fr;
}
$std->update_cache( array( 'name' => 'forum_cache', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'forum_cache', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// Group Cache
//-------------------------------------------------------------
$ibforums->cache['group_cache'] = array();
$this->ipsclass->cache['group_cache'] = array();
$DB->simple_construct( array( 'select' => "*",
$this->ipsclass->DB->simple_construct( array( 'select' => "*",
'from' => 'groups'
) );
$DB->simple_exec();
$this->ipsclass->DB->simple_exec();
while ( $i = $DB->fetch_row() )
while ( $i = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['group_cache'][ $i['g_id'] ] = $i;
$this->ipsclass->cache['group_cache'][ $i['g_id'] ] = $i;
}
$std->update_cache( array( 'name' => 'group_cache', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'group_cache', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// Systemvars
//-------------------------------------------------------------
$ibforums->cache['systemvars'] = array();
$this->ipsclass->cache['systemvars'] = array();
$result = $DB->simple_exec_query( array( 'select' => 'count(*) as cnt', 'from' => 'mail_queue' ) );
$result = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'count(*) as cnt', 'from' => 'mail_queue' ) );
$ibforums->cache['systemvars']['mail_queue'] = intval( $result['cnt'] );
$ibforums->cache['systemvars']['task_next_run'] = time() + 3600;
$this->ipsclass->cache['systemvars']['mail_queue'] = intval( $result['cnt'] );
$this->ipsclass->cache['systemvars']['task_next_run'] = time() + 3600;
$std->update_cache( array( 'name' => 'systemvars', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'systemvars', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// Stats
//-------------------------------------------------------------
$ibforums->cache['stats'] = array();
$this->ipsclass->cache['stats'] = array();
$DB->simple_construct( array( 'select' => 'count(pid) as posts', 'from' => 'posts', 'where' => "queued <> 1" ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'count(pid) as posts', 'from' => 'posts', 'where' => "queued <> 1" ) );
$this->ipsclass->DB->simple_exec();
$r = $DB->fetch_row();
$r = $this->ipsclass->DB->fetch_row();
$stats['total_replies'] = intval($r['posts']);
$DB->simple_construct( array( 'select' => 'count(tid) as topics', 'from' => 'topics', 'where' => "approved = 1" ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'count(tid) as topics', 'from' => 'topics', 'where' => "approved = 1" ) );
$this->ipsclass->DB->simple_exec();
$r = $DB->fetch_row();
$r = $this->ipsclass->DB->fetch_row();
$stats['total_topics'] = intval($r['topics']);
$stats['total_replies'] -= $stats['total_topics'];
$DB->simple_construct( array( 'select' => 'count(id) as members', 'from' => 'members', 'where' => "mgroup <> '".$ibforums->vars['auth_group']."'" ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'count(id) as members', 'from' => 'members', 'where' => "mgroup <> '".$this->ipsclass->vars['auth_group']."'" ) );
$this->ipsclass->DB->simple_exec();
$r = $DB->fetch_row();
$r = $this->ipsclass->DB->fetch_row();
$stats['mem_count'] = intval($r['members']);
$ibforums->cache['stats']['total_replies'] = $stats['total_replies'];
$ibforums->cache['stats']['total_topics'] = $stats['total_topics'];
$ibforums->cache['stats']['mem_count'] = $stats['mem_count'];
$this->ipsclass->cache['stats']['total_replies'] = $stats['total_replies'];
$this->ipsclass->cache['stats']['total_topics'] = $stats['total_topics'];
$this->ipsclass->cache['stats']['mem_count'] = $stats['mem_count'];
$r = $DB->simple_exec_query( array( 'select' => 'id, name',
$r = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'id, name',
'from' => 'members',
'order' => 'id DESC',
'limit' => '0,1'
) );
$ibforums->cache['stats']['last_mem_name'] = $r['name'];
$ibforums->cache['stats']['last_mem_id'] = $r['id'];
$this->ipsclass->cache['stats']['last_mem_name'] = $r['name'];
$this->ipsclass->cache['stats']['last_mem_id'] = $r['id'];
$std->update_cache( array( 'name' => 'stats', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'stats', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// Ranks
//-------------------------------------------------------------
$ibforums->cache['ranks'] = array();
$this->ipsclass->cache['ranks'] = array();
$DB->simple_construct( array( 'select' => 'id, title, pips, posts',
$this->ipsclass->DB->simple_construct( array( 'select' => 'id, title, pips, posts',
'from' => 'titles',
'order' => "posts DESC",
) );
$DB->simple_exec();
$this->ipsclass->DB->simple_exec();
while ($i = $DB->fetch_row())
while ($i = $this->ipsclass->DB->fetch_row())
{
$ibforums->cache['ranks'][ $i['id'] ] = array(
$this->ipsclass->cache['ranks'][ $i['id'] ] = array(
'TITLE' => $i['title'],
'PIPS' => $i['pips'],
'POSTS' => $i['posts'],
);
}
$std->update_cache( array( 'name' => 'ranks', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'ranks', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// SETTINGS
//-------------------------------------------------------------
$ibforums->cache['settings'] = array();
$this->ipsclass->cache['settings'] = array();
$DB->simple_construct( array( 'select' => '*', 'from' => 'conf_settings', 'where' => 'conf_add_cache=1' ) );
$info = $DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'conf_settings', 'where' => 'conf_add_cache=1' ) );
$info = $this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row($info) )
while ( $r = $this->ipsclass->DB->fetch_row($info) )
{
$ibforums->cache['settings'][ $r['conf_key'] ] = $r['conf_value'] != "" ? $r['conf_value'] : $r['conf_default'];
$this->ipsclass->cache['settings'][ $r['conf_key'] ] = $r['conf_value'] != "" ? $r['conf_value'] : $r['conf_default'];
}
$std->update_cache( array( 'name' => 'settings', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'settings', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// EMOTICONS
//-------------------------------------------------------------
$ibforums->cache['emoticons'] = array();
$this->ipsclass->cache['emoticons'] = array();
$DB->simple_construct( array( 'select' => 'typed,image,clickable,emo_set', 'from' => 'emoticons' ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'typed,image,clickable,emo_set', 'from' => 'emoticons' ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row() )
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['emoticons'][] = $r;
$this->ipsclass->cache['emoticons'][] = $r;
}
$std->update_cache( array( 'name' => 'emoticons', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'emoticons', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// LANGUAGES
//-------------------------------------------------------------
$ibforums->cache['languages'] = array();
$this->ipsclass->cache['languages'] = array();
$DB->simple_construct( array( 'select' => 'ldir,lname', 'from' => 'languages' ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'ldir,lname', 'from' => 'languages' ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row() )
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['languages'][] = $r;
$this->ipsclass->cache['languages'][] = $r;
}
$std->update_cache( array( 'name' => 'languages', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'languages', 'array' => 1, 'deletefirst' => 1 ) );
//-------------------------------------------------------------
// ATTACHMENT TYPES
//-------------------------------------------------------------
$ibforums->cache['attachtypes'] = array();
$this->ipsclass->cache['attachtypes'] = array();
$DB->simple_construct( array( 'select' => 'atype_extension,atype_mimetype,atype_post,atype_photo,atype_img', 'from' => 'attachments_type', 'where' => "atype_photo=1 OR atype_post=1" ) );
$DB->simple_exec();
$this->ipsclass->DB->simple_construct( array( 'select' => 'atype_extension,atype_mimetype,atype_post,atype_photo,atype_img', 'from' => 'attachments_type', 'where' => "atype_photo=1 OR atype_post=1" ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $DB->fetch_row() )
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$ibforums->cache['attachtypes'][ $r['atype_extension'] ] = $r;
$this->ipsclass->cache['attachtypes'][ $r['atype_extension'] ] = $r;
}
$std->update_cache( array( 'name' => 'attachtypes', 'array' => 1, 'deletefirst' => 1 ) );
$this->ipsclass->update_cache( array( 'name' => 'attachtypes', 'array' => 1, 'deletefirst' => 1 ) );
}
/*-------------------------------------------------------------------------*/
@@ -271,15 +278,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[ $DB->error ] = $DB->error;
$this->error[ $this->ipsclass->DB->error ] = $this->ipsclass->DB->error;
}
else
{
@@ -309,15 +316,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[ $DB->error ] = $DB->error;
$this->error[ $this->ipsclass->DB->error ] = $this->ipsclass->DB->error;
}
else
{
@@ -342,15 +349,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[ $DB->error ] = $DB->error;
$this->error[ $this->ipsclass->DB->error ] = $this->ipsclass->DB->error;
}
else
{
@@ -367,14 +374,14 @@ class upgrade_sql
{
global $DB, $std, $ibforums;
$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 &amp; 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 &amp; Forum Digest', 'dailydigest.php', 1086912600, -1, -1, 0, 10, '723cab2aae32dd5d04898b1151038846', 1, 'Emails out daily topic &amp; 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 &amp; Forum Digest', 'weeklydigest.php', 1087096200, 0, -1, 3, 10, '7e7fccd07f781bdb24ac108d26612931', 1, 'Emails weekly topic &amp; forum digest emails', 1, 'weeklydigest', 0);";
$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 ('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&amp;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]');";
@@ -439,51 +446,51 @@ class upgrade_sql
$SQL[] = "INSERT INTO ".SQL_PREFIX."cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('birthdays', 'a:0:{}', '', 1);";
$SQL[] = "INSERT INTO ".SQL_PREFIX."cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('calendar', 'a:0:{}', '', 1);";
$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 (1, 'IPB Master Skin Set', '1', 0, 0, '0', -1, '', '', '', '', '', '', 1079109298, '', '', 'default');";
$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 (2, 'IPB Default Skin', '1', 0, 1, '0', -1, 'ipbauto@invisionboard.com', 'Invision Power Services', 'www.invisionboard.com', '', '', '', 1074679074, '', '', 'default');";
$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."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 (1, 'IPB Ãëàâíûé ñòèëü', '1', 0, 0, '0', -1, '', '', '', '', '', '', 1079109298, '', '', 'default');";
$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 (2, 'IPB Ñòàíäàðòíûé ñòèëü', '1', 0, 1, '0', -1, 'ipbauto@invisionboard.com', 'Invision Power Services', 'www.invisionboard.com', '', '', '', 1074679074, '', '', 'default');";
$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 Ñòàðûå ñòèëè (äî 2.0)', '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, '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 &amp; 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 &amp; 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 &amp; 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');";
$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, 'Íàñòðîéêà Íîâîñòåé ôîðóìà', 'Ïîçâîëÿåò âûáðàòü íîâîñòíîé ðàçäåë ôîðóìà, îòêóäà áóäóò ýêñïîðòèðîâàòüñÿ íîâîñòè, êàê ñàìèì ôîðóìîì, òàê è ssi.php.', 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 àäðåñà ôîðóìà, âûáèðàòü ìåòîä äëÿ îòïðàâêè ïî÷òû (PHP mail(), SMTP) ñ ôîðóìà', 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, 'Íàñòðîéêè Êîðçèíû', 'Êîðçèíà &#151; ñïåöèàëüíûé ôîðóì, â êîòîðûé ïåðåìåùàþòñÿ òåìû ïîñëå óäàëåíèÿ, òåì ñàìûì îñòàâëÿÿ âîçìîæíîñòü âîññòàíîâèòü òåìó ïðè åå ñëó÷àéíîì óäàëåíèè.', 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, 'Òèï àâòîðèçàöèè', '&nbsp;', 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 Ïîðòàë.', 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,'Ðåãèñòðàöèÿ IPB', 'Ýòîò áëîê ïîçâîëÿåò âàì ðàáîòàòü ñ íàñòðîéêàìè ëèöåíçèè íà IPB.', 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 Óäàëåíèå êîïèðàéòà', 'Ýòîò áëîê ïîçâîëÿåò ââåñòè êëþ÷ àêòèâàöèè óñëóãè óäàëåíèÿ êîïèðàéòà.', 2, 1, 'ipbcopyright');";
$SQL[] = "INSERT INTO ".SQL_PREFIX."upgrade_history (upgrade_id, upgrade_version_id, upgrade_version_human, upgrade_date, upgrade_mid, upgrade_notes) VALUES ('', '".THIS_LONG_VERSION."', '".THIS_HUMAN_VERSION."', '0', '0', '');";
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[ $DB->error ] = $DB->error;
$this->error[ $this->ipsclass->DB->error ] = $this->ipsclass->DB->error;
}
else
{
@@ -522,15 +529,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[ $DB->error ] = $DB->error;
$this->error[ $this->ipsclass->DB->error ] = $this->ipsclass->DB->error;
}
else
{
@@ -547,6 +554,7 @@ class upgrade_sql
{
global $DB, $std, $ibforums;
$SQL[] = "ALTER TABLE ".SQL_PREFIX."members add has_blog TINYINT(1) 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,
@@ -559,15 +567,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[ $DB->error ] = $DB->error;
$this->error[ $this->ipsclass->DB->error ] = $this->ipsclass->DB->error;
}
else
{
@@ -590,15 +598,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[ $DB->error ] = $DB->error;
$this->error[ $this->ipsclass->DB->error ] = $this->ipsclass->DB->error;
}
else
{
@@ -622,15 +630,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[ $DB->error ] = $DB->error;
$this->error[ $this->ipsclass->DB->error ] = $this->ipsclass->DB->error;
}
else
{
@@ -651,9 +659,9 @@ class upgrade_sql
// Convert existing forums
//-----------------------------------------
$o = $DB->query("SELECT * FROM ".SQL_PREFIX."forums_bak ORDER BY id");
$o = $this->ipsclass->DB->query("SELECT * FROM ".SQL_PREFIX."forums_bak ORDER BY id");
while( $r = $DB->fetch_row( $o ) )
while( $r = $this->ipsclass->DB->fetch_row( $o ) )
{
$perm_array = addslashes(serialize(array(
'start_perms' => $r['start_perms'],
@@ -663,7 +671,7 @@ class upgrade_sql
'show_perms' => $r['read_perms']
) ) );
$DB->do_insert( 'forums', array (
$this->ipsclass->DB->do_insert( 'forums', array (
'id' => $r['id'],
'position' => $r['position'],
'topics' => $r['topics'],
@@ -707,14 +715,14 @@ class upgrade_sql
// Convert categories
//-----------------------------------------
$DB->query("SELECT MAX(id) as max FROM ".SQL_PREFIX."forums");
$max = $DB->fetch_row();
$this->ipsclass->DB->query("SELECT MAX(id) as max FROM ".SQL_PREFIX."forums");
$max = $this->ipsclass->DB->fetch_row();
$fid = $max['max'];
$o = $DB->query("SELECT * FROM ".SQL_PREFIX."categories WHERE id > 0");
$o = $this->ipsclass->DB->query("SELECT * FROM ".SQL_PREFIX."categories WHERE id > 0");
while( $r = $DB->fetch_row( $o ) )
while( $r = $this->ipsclass->DB->fetch_row( $o ) )
{
$fid++;
@@ -726,7 +734,7 @@ class upgrade_sql
'show_perms' => '*',
) ) );
$DB->do_insert( 'forums', array(
$this->ipsclass->DB->do_insert( 'forums', array(
'id' => $fid,
'position' => $r['position'],
'name' => $r['name'],
@@ -739,18 +747,18 @@ class upgrade_sql
// Update old categories
//-----------------------------------------
$n = $DB->query("SELECT id FROM ".SQL_PREFIX."forums_bak WHERE category={$r['id']} AND parent_id = -1");
$n = $this->ipsclass->DB->query("SELECT id FROM ".SQL_PREFIX."forums_bak WHERE category={$r['id']} AND parent_id = -1");
$ids = array();
while( $c = $DB->fetch_row($n) )
while( $c = $this->ipsclass->DB->fetch_row($n) )
{
$ids[] = $c['id'];
}
if ( count($ids) )
{
$DB->do_update( 'forums', array( 'parent_id' => $fid ), 'id IN ('.implode(',',$ids).')' );
$this->ipsclass->DB->do_update( 'forums', array( 'parent_id' => $fid ), 'id IN ('.implode(',',$ids).')' );
}
}
}
@@ -789,15 +797,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[ $DB->error ] = $DB->error;
$this->error[ $this->ipsclass->DB->error ] = $this->ipsclass->DB->error;
}
else
{
@@ -836,15 +844,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[ $DB->error ] = $DB->error;
$this->error[ $this->ipsclass->DB->error ] = $this->ipsclass->DB->error;
}
else
{
@@ -866,15 +874,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[ $DB->error ] = $DB->error;
$this->error[ $this->ipsclass->DB->error ] = $this->ipsclass->DB->error;
}
else
{
@@ -898,15 +906,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[ $DB->error ] = $DB->error;
$this->error[ $this->ipsclass->DB->error ] = $this->ipsclass->DB->error;
}
else
{
@@ -1233,15 +1241,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[ $DB->error ] = $DB->error;
$this->error[ $this->ipsclass->DB->error ] = $this->ipsclass->DB->error;
}
else
{
@@ -1262,7 +1270,7 @@ class upgrade_sql
// Get table schematic
//-----------------------------------------
$table = $DB->sql_get_table_schematic( 'forums' );
$table = $this->ipsclass->DB->sql_get_table_schematic( 'forums' );
$SQL[] = str_replace( SQL_PREFIX."forums", SQL_PREFIX."forums_bak", $table['Create Table'] );
@@ -1271,15 +1279,15 @@ class upgrade_sql
$this->error = array();
$this->sqlcount = 0;
$DB->return_die = 1;
$this->ipsclass->DB->return_die = 1;
foreach( $SQL as $query )
{
$DB->query( $query );
$this->ipsclass->DB->query( $query );
if ( $DB->error )
if ( $this->ipsclass->DB->error )
{
$this->error[ $DB->error ] = $DB->error;
$this->error[ $this->ipsclass->DB->error ] = $this->ipsclass->DB->error;
}
else
{
@@ -1291,12 +1299,12 @@ class upgrade_sql
// Check...
//-----------------------------------------
$DB->query( "SELECT COUNT(*) as count FROM ".SQL_PREFIX."forums_bak" );
$count = $DB->fetch_row();
$this->ipsclass->DB->query( "SELECT COUNT(*) as count FROM ".SQL_PREFIX."forums_bak" );
$count = $this->ipsclass->DB->fetch_row();
if ( intval( $count['count'] ) < 1 )
{
print "The back-up forums table has not been populated successfully. Continuing this convert WILL delete all forums permanently. Contact technical support immediately.";
print "Ñîõðàíåííàÿ êîïèÿ òàáëèöû ñ ôîðóìàìè íå áûëà íîðìàëüíî ñäåëàíà. Ïðîäîëæåíèå ýòîãî îáíîâëåíèÿ ïðèâåäåò ê óäàëåíèþ âñåõ ôîðóìîâ. Íàïèøèòå â òåõíè÷åñêóþ ïîääåðæêó äëÿ ïîìîùè!";
exit();
}
}
+49 -39
View File
@@ -2,17 +2,23 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.0.0 PDR1 -> PDR 2
@@ -25,7 +31,7 @@
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.";
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
@@ -33,7 +39,7 @@ class version_upgrade
{
var $this_version = '20002';
var $upgrade_from = '20001';
var $first_step = 'update your database to include the new schematic modifications.';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
@@ -44,17 +50,22 @@ class version_upgrade
function version_upgrade()
{
global $ibforums, $std, $DB;
}
function version_process()
{
$this->md5_check = $std->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}";
$this->md5_check = $this->ipsclass->return_md5_check();
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $ibforums->modules_to_run );
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
@@ -69,13 +80,13 @@ class version_upgrade
function auto_run()
{
global $ibforums, $std, $DB;
//--------------------------------
// What are we doing?
//--------------------------------
switch( $ibforums->input['workact'] )
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
@@ -93,14 +104,14 @@ class version_upgrade
function upgrade_sql()
{
global $ibforums, $std, $DB;
$cnt = 0;
$sql = $this->_get_sql();
foreach( $sql as $q )
{
$DB->query( $q );
$this->ipsclass->DB->query( $q );
$cnt++;
}
@@ -109,7 +120,7 @@ class version_upgrade
// Next page...
//--------------------------------
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "$cnt çàïðîñîâ âûïîëíåíî...." );
}
@@ -119,22 +130,22 @@ class version_upgrade
function upgrade_intro()
{
global $ibforums, $std, $DB;
$ibforums->template->content .= "
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Welcome to the IPB Upgrade System</div>
<div class='tdrow1' style='padding:6px'>This upgrade module will upgrade you from <b>{$ibforums->versions[$this->upgrade_from]}</b> to <b>{$ibforums->versions[$this->this_version]}</b>
<br /><br />This first step will {$this->first_step}
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
$ibforums->template->output();
$this->ipsclass->template->output();
}
@@ -163,8 +174,8 @@ class version_upgrade
$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)
VALUES ('Announcements Update', 'announcements.php', 1080747660, -1, -1, 4, -1, 'e82f2c19ab1ed57c140fccf8aea8b9fe', 1,
'Rebuilds cache and expires out of date announcements', 1);";
VALUES ('Îáíîâëåíèå îáúÿâëåíèé', 'announcements.php', 1080747660, -1, -1, 4, -1, 'e82f2c19ab1ed57c140fccf8aea8b9fe', 1,
'Îáíîâëåíèå êåøà è óäàëåíèå îêîí÷åííûõ îáúÿâëåíèé', 1);";
$SQL[]="CREATE TABLE ibf_bulk_mail (
mail_id int(10) NOT NULL auto_increment,
@@ -186,9 +197,8 @@ class version_upgrade
$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 ('Add &#39;&lt;&#39; and &#39;&gt;&#39; to &#39;to&#39; and &#39;from&#39; addresses?',
'Some SMTP mailers require that email addresses are in the following format \'<\' address \'>\' (no quotes).
If you are getting errors in the mail error log, enabled this option', '12', 'yes_no', 'mail_wrap_brackets', '', '0', '', '', 1, 6, '', 0, '', 1);";
conf_end_group, conf_help_key, conf_add_cache) VALUES ('Äîáàâëÿòü &laquo;&lt;&raquo; è &laquo;&gt;&raquo; ê ïîëÿì &laquo;Êîìó&raquo; è &laquo;Îáðàòíûé àäðåñ&raquo; â îòïðàâëÿåìûõ ïèñüìàõ?',
'Íåêîòîðûå SMTP ñåðâåðà òðåáóåò, ÷òîáû e-mail àäðåñà áûëè â óãëîâûõ ñêîáêàõ. Åñëè âû ïîëó÷àåòå îøèáêó â æóðíàëå ïî÷òîâûõ îøèáîê, âêëþ÷èòå ýòó îïöèþ.', '12', 'yes_no', 'mail_wrap_brackets', '', '0', '', '', 1, 6, '', 0, '', 1);";
$SQL[]="create table ibf_mail_error_logs (
mlog_id int(10) auto_increment NOT NULL,
@@ -225,12 +235,12 @@ class version_upgrade
$SQL[]="alter table ibf_forum_tracker add forum_track_type varchar(100) NOT NULL default 'delayed';";
$SQL[]="alter table ibf_tracker add topic_track_type varchar(100) NOT NULL default 'delayed';";
$SQL[]="INSERT INTO ibf_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&amp;pid={content}\"><{POST_SNAPBACK}></a>', 0, '[snapback]100[/snapback]');";
$SQL[]="INSERT INTO ibf_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 ibf_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 ibf_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 ibf_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 ibf_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 ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Óêàçàòåëü ñîîáùåíèÿ', 'Ýòîò òýã ïîêàçûâàåò ìàëåíüêîå èçîáðàæåíèå, êîòîðîå ÿâëÿåòñÿ ññûëêîé íà öèòèðóåìîå ñîîáùåíèå &#151; èñïîëüçóåòñÿ, êîãäà öèòèðóþòñÿ ñîîáùåíèÿ ñ ôîðóìà. Îòêðûâàåòñÿ ïî óìîë÷àíèþ â òîì æå îêíå.', 'snapback', '<a href=\"index.php?act=findpost&amp;pid={content}\"><{POST_SNAPBACK}></a>', 0, '[snapback]100[/snapback]');";
$SQL[] ="INSERT INTO ibf_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 ibf_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 ibf_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 ibf_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 ibf_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[]="alter table ibf_members change auto_track auto_track varchar(50) default '0';";
+33 -29
View File
@@ -2,17 +2,23 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.0.0 PDR1 -> PDR 2
@@ -25,7 +31,7 @@
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.";
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
@@ -33,7 +39,7 @@ class version_upgrade
{
var $this_version = '20003';
var $upgrade_from = '20002';
var $first_step = 'update your templates.';
var $first_step = 'îáíîâèò âàøè øàáëîíû.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
@@ -44,17 +50,20 @@ class version_upgrade
function version_upgrade()
{
global $ibforums, $std, $DB;
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->md5_check = $std->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
$this->base_url = "index.php?act=work&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}";
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $ibforums->modules_to_run );
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
@@ -69,13 +78,11 @@ class version_upgrade
function auto_run()
{
global $ibforums, $std, $DB;
//--------------------------------
// What are we doing?
//--------------------------------
switch( $ibforums->input['workact'] )
switch( $this->ipsclass->input['workact'] )
{
default:
$this->upgrade_intro();
@@ -90,23 +97,20 @@ class version_upgrade
function upgrade_intro()
{
global $ibforums, $std, $DB;
$ibforums->template->content .= "
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Welcome to the IPB Upgrade System</div>
<div class='tdrow1' style='padding:6px'>This upgrade module will upgrade you from <b>{$ibforums->versions[$this->upgrade_from]}</b> to <b>{$ibforums->versions[$this->this_version]}</b>
<br /><br />This first step will {$this->first_step}
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&act=done'>Proceed...</a></span></div>
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&act=done'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
$ibforums->template->output();
$this->ipsclass->template->output();
}
+60 -49
View File
@@ -2,17 +2,23 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.0.0 PDR1 -> PDR 2
@@ -25,7 +31,7 @@
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.";
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
@@ -33,7 +39,7 @@ class version_upgrade
{
var $this_version = '20004';
var $upgrade_from = '20003';
var $first_step = 'update your database to include the new schematic modifications.';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
@@ -44,17 +50,22 @@ class version_upgrade
function version_upgrade()
{
global $ibforums, $std, $DB;
}
function version_process()
{
$this->md5_check = $std->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}";
$this->md5_check = $this->ipsclass->return_md5_check();
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $ibforums->modules_to_run );
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
@@ -69,13 +80,13 @@ class version_upgrade
function auto_run()
{
global $ibforums, $std, $DB;
//--------------------------------
// What are we doing?
//--------------------------------
switch( $ibforums->input['workact'] )
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
@@ -93,14 +104,14 @@ class version_upgrade
function upgrade_sql()
{
global $ibforums, $std, $DB;
$cnt = 0;
$sql = $this->_get_sql();
foreach( $sql as $q )
{
$DB->query( $q );
$this->ipsclass->DB->query( $q );
$cnt++;
}
@@ -109,7 +120,7 @@ class version_upgrade
// Next page...
//--------------------------------
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "$cnt çàïðîñîâ âûïîëíåíî...." );
}
@@ -119,22 +130,22 @@ class version_upgrade
function upgrade_intro()
{
global $ibforums, $std, $DB;
$ibforums->template->content .= "
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Welcome to the IPB Upgrade System</div>
<div class='tdrow1' style='padding:6px'>This upgrade module will upgrade you from <b>{$ibforums->versions[$this->upgrade_from]}</b> to <b>{$ibforums->versions[$this->this_version]}</b>
<br /><br />This first step will {$this->first_step}
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
$ibforums->template->output();
$this->ipsclass->template->output();
}
@@ -147,28 +158,28 @@ class version_upgrade
$SQL = array();
$SQL[] = "INSERT INTO ibf_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 ibf_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 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 &lt;title&gt; 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);";
$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 ïîðòàë?', 'Åñëè &laquo;Äà&raquo;,IPB Ïîðòàë áóäåò äîñòóïåí, èñïîëüçóÿ ñëåäóþùóþ çàïèñü â URL ñòðîêå &#151; 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 ('Çàãîëîâîê ñòðàíèöû ïîðòàëà', 'Ýòî íàçâàíèå áóäåò âûâîäèòüñÿ â òýãå &lt;title&gt;, òî åñòü, â çàãîëîâêå îêíà áðàóçåðà.', '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 ('Ôîðóìû äëÿ ýêñïîðòà íîâîñòåé', 'Ôîðóìû, òåìû èç êîòîðûõ áóäóò ýêñïîðòèðîâàòüñÿ â ïîðòàë, êàê íîâîñòè. Âû ìîæåòå âûáðàòü íåñêîëüêî ôîðóìîâ, èñïîëüçóÿ &laquo;Ctrl&raquo;.', '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 ('Êîëè÷åñòâî íîâîñòåé, îòîáðàæàåìûõ â îñíîâíîì áëîêå', '', '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 ('Âêëþ÷èòü ïîñëåäíèå íîâîñòè (ìàëûé áëîê)?', 'Ýòîò ïóíêò áóäåò îòîáðàæàòü ìàëåíüêèé áëîê çàãîëîâêîâ ïîñëåäíèõ íîâîñòåé â ïîðòàëå.', '22', 'yes_no', 'csite_article_recent_on', '', '1', '', '', 1, 5, 'Ìàëåíüêèé áëîê ïîñëåäíèõ íîâîñòåé', 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', '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 ('Ìàêñèìàëüíàÿ äëèíà çàãîëîâêîâ íîâîñòåé', '', '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 ('Ôîðìàò âðåìåíè äëÿ íîâîñòåé', 'Ïîäðîáíåå î äàòàõ âðåìåíè íà îôèöèàëüíîì ñàéòå PHP: <a href=\'http://www.php.net/date\' target=\'_blank\'>Äàòû â PHP</a>.', '22', 'input', 'csite_article_date', '', 'j.n.Y, G: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_discuss_on', '', '1', '', '', 1, 9, 'Ïîñëåäíèå îáñóæäåíèÿ', 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', '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 ('Ìàêñèìàëüíàÿ äëèíà çàãîëîâêîâ òåì', '', '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 ('Ïîêàçûâàòü áëîê èíôîðìàöèè ïîëüçîâàòåëÿ/ãîñòÿ?', '', '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_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 ('Ïîêàçûâàòü áëîê ñ ôîðìîé ïîèñêà?', '', '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 ('Ââåäèòå URL àäðåñ òåìû ñ îïðîñîì', 'Îñòàâüòå ïîëå ïóñòûì, åñëè íå õîòèòå âûâîäèòü â ïîðòàë îòäåëüíûì áëîêîì îïðîñ', '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 ('Ïîêàçûâàòü íàâèãàöèîííîå ìåíþ?', '', '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.yandex.ru [ßndex]<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 ('Ñîäåðæàíèå áëîêà ñ ðåêîìåíäóåìûìè ññûëêàìè', 'HTML âêëþ÷å', '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);";
return $SQL;
+42 -33
View File
@@ -2,17 +2,23 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.0.0 PDR1 -> PDR 2
@@ -25,7 +31,7 @@
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.";
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
@@ -33,7 +39,7 @@ class version_upgrade
{
var $this_version = '20005';
var $upgrade_from = '20004';
var $first_step = 'update your database to include the new schematic modifications.';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
@@ -44,17 +50,22 @@ class version_upgrade
function version_upgrade()
{
global $ibforums, $std, $DB;
}
function version_process()
{
$this->md5_check = $std->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}";
$this->md5_check = $this->ipsclass->return_md5_check();
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $ibforums->modules_to_run );
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
@@ -69,13 +80,13 @@ class version_upgrade
function auto_run()
{
global $ibforums, $std, $DB;
//--------------------------------
// What are we doing?
//--------------------------------
switch( $ibforums->input['workact'] )
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
@@ -93,14 +104,14 @@ class version_upgrade
function upgrade_sql()
{
global $ibforums, $std, $DB;
$cnt = 0;
$sql = $this->_get_sql();
foreach( $sql as $q )
{
$DB->query( $q );
$this->ipsclass->DB->query( $q );
$cnt++;
}
@@ -109,7 +120,7 @@ class version_upgrade
// Next page...
//--------------------------------
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "$cnt çàïðîñîâ âûïîëíåíî...." );
}
@@ -119,22 +130,21 @@ class version_upgrade
function upgrade_intro()
{
global $ibforums, $std, $DB;
$ibforums->template->content .= "
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Welcome to the IPB Upgrade System</div>
<div class='tdrow1' style='padding:6px'>This upgrade module will upgrade you from <b>{$ibforums->versions[$this->upgrade_from]}</b> to <b>{$ibforums->versions[$this->this_version]}</b>
<br /><br />This first step will {$this->first_step}
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
";
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>";
$ibforums->template->output();
$this->ipsclass->template->output();
}
@@ -147,10 +157,9 @@ class version_upgrade
$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 ('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 &amp; Forum Digest', 'dailydigest.php', 1086912600, -1, -1, 0, 10, '723cab2aae32dd5d04898b1151038846', 1, 'Emails out daily topic &amp; 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 &amp; Forum Digest', 'weeklydigest.php', 1087096200, 0, -1, 3, 10, '7e7fccd07f781bdb24ac108d26612931', 1, 'Emails weekly topic &amp; forum digest emails', 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 ('Îòïðàâêà ðàññûëêè ïîëüçîâàòåëÿì', '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);";
return $SQL;
}
+80 -70
View File
@@ -2,17 +2,23 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.0.0 PDR1 -> PDR 2
@@ -25,7 +31,7 @@
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.";
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
@@ -33,7 +39,7 @@ class version_upgrade
{
var $this_version = '20006';
var $upgrade_from = '20005';
var $first_step = 'update your database to include the new schematic modifications.';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
@@ -44,17 +50,22 @@ class version_upgrade
function version_upgrade()
{
global $ibforums, $std, $DB;
}
function version_process()
{
$this->md5_check = $std->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}";
$this->md5_check = $this->ipsclass->return_md5_check();
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $ibforums->modules_to_run );
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
@@ -69,13 +80,13 @@ class version_upgrade
function auto_run()
{
global $ibforums, $std, $DB;
//--------------------------------
// What are we doing?
//--------------------------------
switch( $ibforums->input['workact'] )
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
@@ -93,14 +104,14 @@ class version_upgrade
function upgrade_sql()
{
global $ibforums, $std, $DB;
$cnt = 0;
$sql = $this->_get_sql();
foreach( $sql as $q )
{
$DB->query( $q );
$this->ipsclass->DB->query( $q );
$cnt++;
}
@@ -109,7 +120,7 @@ class version_upgrade
// Next page...
//--------------------------------
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "$cnt çàïðîñîâ âûïîëíåíî...." );
}
@@ -119,22 +130,21 @@ class version_upgrade
function upgrade_intro()
{
global $ibforums, $std, $DB;
$ibforums->template->content .= "
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Welcome to the IPB Upgrade System</div>
<div class='tdrow1' style='padding:6px'>This upgrade module will upgrade you from <b>{$ibforums->versions[$this->upgrade_from]}</b> to <b>{$ibforums->versions[$this->this_version]}</b>
<br /><br />This first step will {$this->first_step}
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
";
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div> ";
$ibforums->template->output();
$this->ipsclass->template->output();
}
@@ -148,56 +158,56 @@ class version_upgrade
$SQL = array();
if ( ! $DB->field_exists( 'subs_pkg_chosen', SQL_PREFIX.'members' ) )
if ( ! $this->ipsclass->DB->field_exists( 'subs_pkg_chosen', SQL_PREFIX.'members' ) )
{
$SQL[] = "alter table ibf_members add subs_pkg_chosen smallint(3) NOT NULL default '0';";
}
$SQL[] = "alter table ibf_topic_mmod add topic_approve tinyint(1) NOT NULL default '0';";
$SQL[] = "alter table ibf_groups add g_attach_per_post int(10) NOT NULL default '0';";
$SQL[] = "INSERT INTO ibf_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 ibf_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 ibf_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');";
$SQL[] = "INSERT INTO ibf_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 ibf_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 ibf_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 ibf_conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES (24,'Ðåãèñòðàöèÿ IPB', 'Ýòîò áëîê ïîçâîëÿåò âàì ðàáîòàòü ñ íàñòðîéêàìè ëèöåíçèè íà IPB.', 3, 1, 'ipbreg');";
$SQL[] = "INSERT INTO ibf_conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count, conf_title_noshow, conf_title_keyword) VALUES (25,'IPB Óäàëåíèå êîïèðàéòà', 'Ýòîò áëîê ïîçâîëÿåò ââåñòè êëþ÷ àêòèâàöèè óñëóãè óäàëåíèÿ êîïèðàéòà.', 2, 1, 'ipbcopyright');";
$SQL[] = "INSERT INTO ibf_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 ibf_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 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 ('Add &#39;&lt;&#39; and &#39;&gt;&#39; to &#39;to&#39; and &#39;from&#39; addresses?', 'Some SMTP mailers require that email addresses are in the following format \'<\' address \'>\' (no quotes). If you are getting errors in the mail error log, enabled this option', '12', 'yes_no', 'mail_wrap_brackets', '', '0', '', '', 1, 6, '', 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 ('Chat Room Account Number?', 'Removing this number will remove all links / chat functionality within IPB.\r\n', '20', 'input', 'chat_account_no', '', '', '', '', 1, 1, 'Account Specifics', 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 ('Chat Room Server?', '<!--SERVER-->', '20', 'input', 'chat_server_addr', '', '', '', '', 1, 2, '', 1, '', 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 ('Enable &#39;Who&#39;s Chatting?&#39;', 'If enabled, this will show who\'s chatting in the chat room on your forums home page underneath the active users list.', '20', 'yes_no', 'chat_who_on', '', '1', '', '', 1, 3, 'Who&#39;s Chatting', 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 ('Hide Who&#39;s Chatting when no members are logged into chat?', '', '20', 'yes_no', 'chat_hide_whoschatting', '', '1', '', '', 1, 4, '', 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 ('Update local list no less than every:', 'The local list is updated from the master chat server by the frequency you set and cached locally.', '20', 'dropdown', '', '', '15', '5=5\r\n10=10\r\n15=15\r\n30=30', '', 1, 5, '', 1, '', 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 ('Changed your IPChat control panel password?', 'If you have changed your IPChat control panel password, please add the new password here. Leave blank if it\'s not changed.', '20', 'input', 'chat_pass_md5', '', '', '', '', 1, 6, '', 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 ('ENTER YOUR IPCHAT CONTROL PANEL PASSWORD', 'You must enter your IPChat control panel password to allow retrieval of the Who\'s Chatting list.', '20', 'input', 'chat_pass_md5_new', '', '', '', '', 1, 7, '', 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 ('Chat Room Dimensions (WIDTH)?', '', '20', 'input', 'chat_width', '', '600', '', '', 1, 8, 'Showing the chat room', 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 ('Chat Room Dimensions (HEIGHT)?', '', '20', 'input', 'chat_height', '', '350', '', '', 1, 9, '', 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 ('Chat Room Pop-up Window Padding? (in px)', 'Allows window to open without scrollbars', '20', 'input', 'chat_poppad', '', '50', '', '', 1, 10, '', 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 ('Default Chat Room Interface Language?', '', '20', 'dropdown', 'chat_language', '', 'en', 'en=English\r\nar=Arabic\r\nde=German\r\nes=Spanish\r\nfr=French\r\nhr=Croation\r\nit=Italian\r\niw=Hebrew\r\nnl=Dutch\r\npl=Polish\r\npt=Portuguese', '', 1, 11, '', 1, '', 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 ('Load the chat room in...?', '', '20', 'dropdown', 'chat_display', '', 'self', 'self=Normal IPB Page\r\nnew=New Pop Up Window', '', 1, 9, '', 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 ('Allow chat access to these groups', 'You may select more than one', '20', 'multi', 'chat_access_groups', '', '', '#show_groups#', 'if ( \$save == 1)\r\n{\r\n if ( is_array(\$POST[\'chat_access_groups\']) )\r\n {\r\n \$POST[\'chat_access_groups\'] = implode(\",\",\$POST[\'chat_access_groups\']);\r\n }\r\n else\r\n {\r\n \$POST[\'chat_access_groups\'] = '';\r\n }\r\n \r\n \$key = \'chat_access_groups\';\r\n}if ( \$show == 1 ) { \$key=\'chat_access_groups[]\'; }', 1, 13, 'Access Permissions', 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 ('Allow ADMIN access to these groups', 'You may select more than one - please choose carefully!', '20', 'multi', 'chat_admin_groups', '', '', '#show_groups#', 'if ( \$save == 1)\r\n{\r\n if ( is_array(\$POST[\'chat_admin_groups\']) )\r\n {\r\n \$POST[\'chat_admin_groups\'] = implode(\",\",\$POST[\'chat_admin_groups\']);\r\n }\r\n else\r\n {\r\n \$POST[\'chat_admin_groups\'] = '';\r\n }\r\n \r\n \$key = \'chat_admin_groups\';\r\n}if ( \$show == 1 ) { \$key=\'chat_admin_groups[]\'; }', 1, 14, '', 1, '', 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 ('Chat Room Account Number?', 'Removing this number will remove all links / chat functionality within IPB.\r\n', '21', 'input', 'chat04_account_no', '', '', '', '', 1, 1, 'Account Specifics', 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 ('Chat Room URL?', '<!--SERVER-->', '21', 'input', 'chat04_whodat_server_addr', '', 'http://invision.parachat.com/cgi-bin/userlist/test', '', '', 1, 2, '', 1, '', 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 ('Enable &#39;Who&#39;s Chatting?&#39;', 'If enabled, this will show who\'s chatting in the chat room on your forums home page underneath the active users list.', '21', 'yes_no', 'chat04_who_on', '', '1', '', '', 1, 3, 'Who&#39;s Chatting', 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 ('Äîáàâëÿòü &laquo;<&raquo; è &laquo;>&raquo; ê ïîëÿì &laquo;Êîìó&raquo; è &laquo;Îáðàòíûé àäðåñ&raquo; â îòïðàâëÿåìûõ ïèñüìàõ?', 'Íåêîòîðûå SMTP ñåðâåðà òðåáóåò, ÷òîáû e-mail àäðåñà áûëè â óãëîâûõ ñêîáêàõ. Åñëè âû ïîëó÷àåòå îøèáêà â æóðíàëå ïî÷òîâûõ îøèáîê, âêëþ÷èòå ýòó îïöèþ.', '12', 'yes_no', 'mail_wrap_brackets', '', '0', '', '', 1, 6, '', 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.\r\n', '20', 'input', 'chat_account_no', '', '', '', '', 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 ('Ñåðâåð êîìíàòû ÷àòà?', '<!--SERVER-->', '20', 'input', 'chat_server_addr', '', '', '', '', 1, 2, '', 1, '', 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 ('Âêëþ÷èòü &#39;Êòî â ÷àòå?&#39;', 'Åñëè ýòó îïöèþ âêëþ÷èòü, òî íà ãëàâíîé ñòðàíèöå ôîðóìà â áëîêå ñòàòèñòèêè áóäåò ïîêàçûâàòüñÿ áëîê ñ ïîëüçîâàòåëÿì, êòî ñåé÷àñ íàõîäèòñÿ â ÷àòå.', '20', 'yes_no', 'chat_who_on', '', '1', '', '', 1, 3, 'Êòî â ÷àòå', 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 ('Ñêðûâàòü &laquo;Êòî â ÷àòå&raquo;, êîãäà íåò ïîëüçîâàòåëåé â ÷àòå?', '', '20', 'yes_no', 'chat_hide_whoschatting', '', '1', '', '', 1, 4, '', 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 ('Îáíîâëÿòü ëîêàëüíûé ñïèñîê íå ìåíåå, ÷åì êàæäûå:', 'Ëîêàëüíûé ñïèñîê îáíîâëÿåòñÿ îò îñíîâíîãî ñåðâåðà ÷àòà ñ óñòàíîâëåííîé âàìè ÷àñòîòîé è êåøèðóåòñÿ ëîêàëüíî.  ìèíóòàõ.', '20', 'dropdown', '', '', '15', '5=5\r\n10=10\r\n15=15\r\n30=30', '', 1, 5, '', 1, '', 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 ('Èçìåíåíèå ïàðîëÿ ïàíåëè óïðàâëåíèÿ IPChat?', 'Åñëè âû èçìåíèëè âàø ïàðîëü îò ïàíåëè óïðàâëåíèÿ IPChat ïîæàëóéñòà äîáàâüòå íîâûé ïàðîëü çäåñü. Îñòàâüòå ïîëå ïóñòûì, åñëè íå èçìåíÿëè.', '20', 'input', 'chat_pass_md5', '', '', '', '', 1, 6, '', 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 ('ÂÂÅÄÈÒÅ ÂÀØ ÏÀÐÎËÜ Ê ÏÀÍÅËÈ ÓÏÐÀÂËÅÍÈß IPCHAT', 'Âû îáÿçàíû ââåñòè âàø ïàðîëüÿ ê ïàíåëè óïðàâëåíèÿ IPChat äëÿ ðàçðåøåíèÿ îïðåäåëåíèÿ ñïèñêà &laquo;Êòî â ÷àòå&raquo;.', '20', 'input', 'chat_pass_md5_new', '', '', '', '', 1, 7, '', 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 ('Ðàçìåðû êîìíàòû ÷àòà (ØÈÐÈÍÀ)?', '', '20', 'input', 'chat_width', '', '600', '', '', 1, 8, 'Îòîáðàæåíèå êîìíàòû ÷àòà', 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 ('Ðàçìåðû êîìíàòû ÷àòà (ÂÛÑÎÒÀ)?', '', '20', 'input', 'chat_height', '', '350', '', '', 1, 9, '', 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 ('Pop-up îêíî êîìíàòû ÷àòà ôèêñèðîâàííûõ ðàçìåðîâ? (â ïèêñåëÿõ)', 'Ðàçðåøèòü îòêðûâàòü îêíî áåç ïîëîñ ïðîêðóòêè', '20', 'input', 'chat_poppad', '', '50', '', '', 1, 10, '', 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 ('ßçûê èíòåðôåéñà ÷àòà ïî óìîë÷àíèþ?', '', '20', 'dropdown', 'chat_language', '', 'ru', 'en=English\r\nar=Àðàáñêèé\r\nde=Íåìåöêèé\r\nes=Èñïàíñêèé\r\nfr=Ôðàíöóçñêèé\r\nhr=Õîðâàòñêèé\r\nit=Èòàëüÿíñêèé\r\niw=Èâðèò\r\nnl=Äàòñêèé\r\npl=Ïîëüñêèé\r\npt=Ïîðòóãàëüñêèé', '', 1, 11, '', 1, '', 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 ('Çàãðóæàòü êîìíàòó ÷àòà â...?', '', '20', 'dropdown', 'chat_display', '', 'self', 'self=Íîðìàëüíîé IPB ñòðàíèöå\r\nnew= íîâîì îêíå (Pop-Up)', '', 1, 9, '', 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 ('Ðàçðåøèòü äîñòóï â ÷àò äëÿ ýòèõ ãðóïï', 'Âû ìîæåòå âûáèðàòü áîëåå, ÷åì îäíó', '20', 'multi', 'chat_access_groups', '', '', '#show_groups#', 'if ( \$save == 1)\r\n{\r\n if ( is_array(\$POST[\'chat_access_groups\']) )\r\n {\r\n \$POST[\'chat_access_groups\'] = implode(\",\",\$POST[\'chat_access_groups\']);\r\n }\r\n else\r\n {\r\n \$POST[\'chat_access_groups\'] = '';\r\n }\r\n \r\n \$key = \'chat_access_groups\';\r\n}if ( \$show == 1 ) { \$key=\'chat_access_groups[]\'; }', 1, 13, 'Ïðàâà äîñòóïà', 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 ('Ðàçðåøèòü ïðàâà àäìèíèñòðàòîðà ýòèì ãðóïïàì', 'Âû ìîæåòå âûáèðàòü áîëåå, ÷åì îäíó — ïîæàëóéñòà, âûáèðàéòå âíèìàòåëüíî!', '20', 'multi', 'chat_admin_groups', '', '', '#show_groups#', 'if ( \$save == 1)\r\n{\r\n if ( is_array(\$POST[\'chat_admin_groups\']) )\r\n {\r\n \$POST[\'chat_admin_groups\'] = implode(\",\",\$POST[\'chat_admin_groups\']);\r\n }\r\n else\r\n {\r\n \$POST[\'chat_admin_groups\'] = '';\r\n }\r\n \r\n \$key = \'chat_admin_groups\';\r\n}if ( \$show == 1 ) { \$key=\'chat_admin_groups[]\'; }', 1, 14, '', 1, '', 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.\r\n', '21', 'input', 'chat04_account_no', '', '', '', '', 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 ('URL àäðåñ êîìíàòû ÷àòà?', '<!--SERVER-->', '21', 'input', 'chat04_whodat_server_addr', '', 'http://invision.parachat.com/cgi-bin/userlist/test', '', '', 1, 2, '', 1, '', 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 ('Âêëþ÷èòü &#39;Êòî â ÷àòå?&#39;', 'Åñëè ýòó îïöèþ âêëþ÷èòü, òî íà ãëàâíîé ñòðàíèöå ôîðóìà â áëîêå ñòàòèñòèêè áóäåò ïîêàçûâàòüñÿ áëîê ñ ïîëüçîâàòåëÿì, êòî ñåé÷àñ íàõîäèòñÿ â ÷àòå.', '21', 'yes_no', 'chat04_who_on', '', '1', '', '', 1, 3, 'Êòî â ÷àòå', 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 ('Hide Who&#39;s Chatting when no members are logged into chat?', '', '21', 'yes_no', 'chat04_hide_whoschatting', '', '1', '', '', 1, 4, '', 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 ('Update local list no less than every:', 'The local list is updated from the master chat server by the frequency you set and cached locally.', '21', 'dropdown', 'chat04_who_save', '', '1', '1=1\r\n5=5\r\n10=10\r\n15=15\r\n30=30', '', 1, 5, '', 1, '', 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 ('Chat Room Dimensions (WIDTH)?', '', '21', 'input', 'chat04_width', '', '600', '', '', 1, 8, 'Showing the chat room', 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 ('Chat Room Dimensions (HEIGHT)?', '', '21', 'input', 'chat04_height', '', '350', '', '', 1, 9, '', 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 ('Chat Room Pop-up Window Padding? (in px)', 'Allows window to open without scrollbars', '21', 'input', 'chat04_poppad', '', '50', '', '', 1, 10, '', 1, '', 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 ('Load the chat room in...?', '', '21', 'dropdown', 'chat04_display', '', 'self', 'self=Normal IPB Page\r\nnew=New Pop Up Window', '', 1, 9, '', 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 ('Allow chat access to these groups', 'You may select more than one', '21', 'multi', 'chat04_access_groups', '', '', '#show_groups#', 'if ( \$save == 1)\r\n{\r\n if ( is_array(\$POST[\'chat04_access_groups\']) )\r\n {\r\n \$POST[\'chat04_access_groups\'] = implode(\",\",\$POST[\'chat04_access_groups\']);\r\n }\r\n else\r\n {\r\n \$POST[\'chat04_access_groups\'] = '';\r\n }\r\n \r\n \$key = \'chat04_access_groups\';\r\n}', 1, 13, 'Access Permissions', 1, '', 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 ('Îáíîâëÿòü ëîêàëüíûé ñïèñîê íå ìåíåå, ÷åì êàæäûå:', 'Ëîêàëüíûé ñïèñîê îáíîâëÿåòñÿ îò îñíîâíîãî ñåðâåðà ÷àòà ñ óñòàíîâëåííîé âàìè ÷àñòîòîé è êåøèðóåòñÿ ëîêàëüíî.  ìèíóòàõ.', '21', 'dropdown', 'chat04_who_save', '', '1', '1=1\r\n5=5\r\n10=10\r\n15=15\r\n30=30', '', 1, 5, '', 1, '', 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 ('Ðàçìåðû êîìíàòû ÷àòà (ØÈÐÈÍÀ)?', '', '21', 'input', 'chat04_width', '', '600', '', '', 1, 8, 'Îòîáðàæåíèå êîìíàòû ÷àòà', 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 ('Ðàçìåðû êîìíàòû ÷àòà (ÂÛÑÎÒÀ)?', '', '21', 'input', 'chat04_height', '', '350', '', '', 1, 9, '', 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 ('Pop-up îêíî êîìíàòû ÷àòà ôèêñèðîâàííûõ ðàçìåðîâ? (â ïèêñåëÿõ)', 'Ðàçðåøèòü îòêðûâàòü îêíî áåç ïîëîñ ïðîêðóòêè', '21', 'input', 'chat04_poppad', '', '50', '', '', 1, 10, '', 1, '', 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 ('Çàãðóæàòü êîìíàòó ÷àòà â...?', '', '21', 'dropdown', 'chat04_display', '', 'self', 'self=Íîðìàëüíîé IPB ñòðàíèöå\r\nnew=Íîâîì îêíå (Pop-Up)', '', 1, 9, '', 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 ('Ðàçðåøèòü äîñòóï â ÷àò äëÿ ýòèõ ãðóïï', 'Âû ìîæåòå âûáèðàòü áîëåå, ÷åì îäíó', '21', 'multi', 'chat04_access_groups', '', '', '#show_groups#', 'if ( \$save == 1)\r\n{\r\n if ( is_array(\$POST[\'chat04_access_groups\']) )\r\n {\r\n \$POST[\'chat04_access_groups\'] = implode(\",\",\$POST[\'chat04_access_groups\']);\r\n }\r\n else\r\n {\r\n \$POST[\'chat04_access_groups\'] = '';\r\n }\r\n \r\n \$key = \'chat04_access_groups\';\r\n}', 1, 13, 'Ïðàâà äîñòóïà', 1, '', 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 ('Allow poll creator to vote in own poll?', 'If set to \"yes\", the poll creator will have the option of voting in their own poll.', '5', 'yes_no', 'allow_creator_vote', '', '1', '', '', 1, 31, '', 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 ('Registration Terms &amp; Rules', 'The content of this section will be displayed before a member can register a new account.\r\n<b>HTML ENABLED</b>', '17', 'textarea', 'reg_rules', '', '<b>Forum Terms & Rules</b>\r\n\r\nPlease take a moment to review these rules detailed below. If you agree with them and wish to proceed with the registration, simply click the \"Register\" button below. To cancel this registration, simply hit the \'back\' button on your browser.\r\n\r\nPlease remember that we are not responsible for any messages posted. We do not vouch for or warrant the accuracy, completeness or usefulness of any message, and are not responsible for the contents of any message.\r\n\r\nThe messages express the views of the author of the message, not necessarily the views of this bulletin board. Any user who feels that a posted message is objectionable is encouraged to contact us immediately by email. We have the ability to remove objectionable messages and we will make every effort to do so, within a reasonable time frame, if we determine that removal is necessary.\r\n\r\nYou agree, through your use of this service, that you will not use this bulletin board to post any material which is knowingly false and/or defamatory, inaccurate, abusive, vulgar, hateful, harassing, obscene, profane, sexually oriented, threatening, invasive of a person\'s privacy, or otherwise violative of any law.\r\n\r\nYou agree not to post any copyrighted material unless the copyright is owned by you or by this bulletin board.\r\n', '', '', 1, 5, 'Registration Terms &amp; Rules', 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 subscription packages when registering?', 'If enabled, the subscription packages will be shown in the registration page and the registering member will be able to select one.', '23', 'yes_no', 'subsm_show_reg', '', '1', '', '', 1, 1, 'Optional Purchase Upon Registration', 1, '', 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 ('Force every member to require a subscriptions package', 'If enabled, the member must choose a package upon registration to proceed past the validating group and current members must purchase a subscription to view the board.', '23', 'yes_no', 'subsm_enforce', '', '0', '', '', 1, 2, 'Force Package Purchase', 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 ('Member group to use after registration but before package purchase?', 'If you require that every member purchases a subscription, choose a group to move the member into once they have validated their registration prior to purchasing a subscriptions manager package.\r\nMembers in this group will see the \'Purchase Subscriptions\' page when logged in and if they don\'t already have a package.', '23', 'dropdown', 'subsm_nopkg_group', '', '1', '#show_groups#', '', 1, 3, '', 1, '', 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 ('Reported Post Notifications sent to', 'Where do you want reported post notifications to go?', '6', 'dropdown', 'reportpost_method', '', 'pm', 'email=Email\r\npm=Personal Message', '', 1, 19, '', 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 ('Display registered to line?', 'If enabled, you can optionally add a \"registered to\" line at the bottom of your board.', '24', 'yes_no', 'ipb_reg_show', '', '0', '', '', 1, 2, '', 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 ('Show as registered to...', 'Examples: <em>Matthew Mecham</em>, <em>IPS, Inc.', '24', 'input', 'ipb_reg_name', '', '', '', '', 1, 3, '', 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 Registered Licence Key', 'This is the IPB registraton key NOT your customer code or client center password. To get your key, log into your client center and click on \'Invision Power Board\' under \'Purchased Services\'.\r\n<br />DO NOT REMOVE OR EDIT THIS KEY UNLESS YOU\'RE SURE OF WHAT YOU\'RE DOING!', '24', 'input', 'ipb_reg_number', '', '', '', '', 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 Copyright Removal Key', 'Your copyright removal key obtained from IPS.', '25', 'input', 'ipb_copy_number', '', '', '', '', 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 ('Copyright Purchased?', '', '25', 'yes_no', 'ips_cp_purchase', '', '0', '', '', 1, 2, '', 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 ('Ðàçðåøèòü ñîçäàòåëþ îïðîñà ãîëîñîâàòü â íåì?', '5', 'yes_no', 'allow_creator_vote', '', '1', '', '', 1, 31, '', 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 ('Ðåãèñòðàöèîííûå ïðàâèëà è ïîëîæåíèÿ', 'Ñîäåðæàíèå ýòîé ñåêöèè áóäåò îòîáðàæåíî ïîëüçîâàòåëÿì ïåðåä òåì, êàê îíè íåïîñðåäñòâåííî ïåðåéäóò ê çàïîëíåíèþ ïîëåé ïðè ðåãèñòðàöèè.\r\n<b>HTML Âêëþ÷åí</b>', '17', 'textarea', 'reg_rules', '', '<b>Ïðàâèëà è ïîëîæåíèÿ ôîðóìà</b>\r\n\r\nÏîæàëóéñòà óäåëèòå íåìíîãî âíèìàíèÿ è ïðî÷òèòå êðàòêèå ïðàâèëà, óêàçàííûå íèæå. Åñëè âû ïðèíèìàåòå èõ è æåëàåòå ïðîäîëæèòü ïðîöåññ ðåãèñòðàöèè, îòìåòüòå ñâîå ñîãëàñèå è íàæìèòå êíîïêó &laquo;Ðåãèñòðàöèÿ&raquo;. Äëÿ îòìåíû ðåãèñòðàöèè íàæìèòå êíîïêó &laquo;Íàçàä&raquo; â âàøåì áðàóçåðå.\r\n\r\nÏîæàëóéñòà ïîìíèòå, ÷òî ìû íå îòâå÷àåì íà âñå ïóáëèêóåìûå ñîîáùåíèÿ.\r\n\r\nÍà ôîðóìå îòñóòñòâóåò ïðåäâàðèòåëüíàÿ ïðîâåðêà îòêðûâàåìûõ òåì è ïóáëèêàöèé. Êàê òîëüêî âû îòïðàâëÿåòå ñîîáùåíèå &#151; îíî ñðàçó ïóáëèêóåòñÿ íà ôîðóìå. Àäìèíèñòðàöèÿ ôîðóìà ñíèìàåò ñ ñåáÿ îòâåòñòâåííîñòü çà ñîäåðæàíèå ñîîáùåíèé, ïóáëèêóåìûõ ïîëüçîâàòåëÿìè. Îòâåòñòâåííîñòü çà ñîäåðæàíèå ñîîáùåíèÿ íåñåò òîëüêî åãî àâòîð.\r\n\r\nÍà ôîðóìå çàïðåùåíî:\r\nîòïðàâêà ñîîáùåíèé íå ïî ñîäåðæàíèþ ôîðóìà/òåìû, îñêîðáëåíèÿ è óãðîçû â àäðåñ ïîëüçîâàòåëåé ôîðóìà, ïðîïàãàíäà ðàñîâîé, íàöèîíàëüíîé è ðåëèãèîçíîé âðàæäû; ðåêëàìà è ñàìîðåêëàìà; íåíîðìàòèâíàÿ ëåêñèêà, ñåêñóàëüíûå äîìîãàòåëüñòâà è ò.ä.\r\n\r\nÍàðóøèòåëè ïðàâèë áóäóò ñòðîãî íàêàçàíû ìîäåðàòîðàìè èëè àäìèíèñòðàòîðàìè ôîðóìà è èì áóäåò çàêðûò äîñòóï íà ôîðóì.\r\n\r\nÑîãëàñèâøèñü ñ ïðàâèëàìè, âû ñîãëàøàåòåñü íå ïóáëèêîâàòü ëþáîé ìàòåðèàë, çàùèùåííûé àâòîðñêèì ïðàâîì, åñëè àâòîðñêîå ïðàâî íå ïðèíàäëåæèò âàì.\r\n', '', '', 1, 5, 'Ïðàâèëà è ïîëîæåíèÿ ôîðóìà', 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 ('Ïîêàçûâàòü ïàêåòû ïîäïèñêè ïðè ðåãèñòðàöèè ïîëüçîâàòåëÿ?', 'Åñëè ýòîò ïóíêò âêëþ÷åí, ïàêåòû ïîäïèñêè áóäóò ïîêàçûâàòüñÿ íà ñòðàíèöå ðåãèñòðàöèè, è ïîëüçîâàòåëü ñìîæåò âûáðàòü íóæíûé ïàêåò...', '23', 'yes_no', 'subsm_show_reg', '', '1', '', '', 1, 1, 'Îïöèîíàëüíî âî âðåìÿ ðåãèñòðàöèè', 1, '', 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 ('Òðåáîâàòü îò êàæäîãî ïîëüçîâàòåëÿ âûáîðà ïàêåòà ïîäïèñêè', 'Åñëè ïóíêò âêëþ÷åí, ïîëüçîâàòåëü äîëæåí áóäåò îáÿçàòåëüíî âûáðàòü êàêîé-òî ïàêåò ïîäïèñêè ïðè ðåãèñòðàöèè.', '23', 'yes_no', 'subsm_enforce', '', '0', '', '', 1, 2, 'Force Package Purchase', 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 ('Ãðóïïà ïîëüçîâàòåëåé, â êîòîðóþ ïîïàäåò ïîëüçîâàòåëü ïîñëå ðåãèñòðàöèè è äî îïëàòû ïàêåòà?', 'Åñëè ýòîò ïóíêò âêëþ÷èòü, òî êàæäûé ðåãèñòðèðóþùèéñÿ ïîëüçîâàòåëü áóäåò ïîïàäàòü â óêàçàííóþ ãðóïïó ïîëüçîâàòåëåé, ïîêà íå îïëàòèò âûáðàííûé ïàêåò...', '23', 'dropdown', 'subsm_nopkg_group', '', '1', '#show_groups#', '', 1, 3, '', 1, '', 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 ('Êàêèì ñïîñîáîì àäìèíèñòðàòîðó ïîëó÷àòü æàëîáû?', 'Êóäà âû õîòèòå ïîëó÷àòü æàëîáû îò ïîëüçîâàòåëåé?', '6', 'dropdown', 'reportpost_method', '', 'pm', 'email=Íà email\r\npm=Ëè÷íûì ñîîáùåíèåì', '', 1, 19, '', 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?', 'Åñëè ýòîò ïóíêò âêëþ÷åí, òî â íèæíåé ÷àñòè âàøåãî ôîðóìà áóäåò îòîáðàæàòüñÿ ñòðî÷êà &#151; &laquo;Çàðåãèñòðèðîâàíî íà: ...&raquo;.', '24', 'yes_no', 'ipb_reg_show', '', '0', '', '', 1, 2, '', 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 ('Ïîêàçûâàòü &laquo;Çàðåãèñòðèðîâàíî íà...&raquo;', 'Ïðèìåðû: Èâàí Ïåòðîâ èëè Êîìïàíèÿ Invision Power Services', '24', 'input', 'ipb_reg_name', '', '', '', '', 1, 3, '', 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 Ðåãèñòðàöèîííûé êëþ÷', 'ÍÅ ÓÄÀËßÉÒÅ È ÍÅ ÈÇÌÅÍßÉÒÅ ÝÒÎÒ ÊËÞ×, ÏÎÊÀ ÂÛ ÍÀ 100% ÍÅ ÓÂÅÐÅÍÛ Â ÒÎÌ, ×ÒÎ ÂÛ ÄÅËÀÅÒÅ!', '24', 'input', 'ipb_reg_number', '', '', '', '', 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', 'Âàø êëþ÷ äëÿ óäàëåíèÿ êîïèðàéòà IPB, ïîëó÷åííûé îò IPS.', '25', 'input', 'ipb_copy_number', '', '', '', '', 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 ('Îòêëþ÷èòü êîïèðàéò?', '', '25', 'yes_no', 'ips_cp_purchase', '', '0', '', '', 1, 2, '', 0, '', 1);";
return $SQL;
}
+226 -205
View File
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="windows-1251"?>
<settingexport exported="1090502939">
<settinggroup>
<setting>
<conf_id>188</conf_id>
<conf_title>Chat Room Account Number?</conf_title>
<conf_description>Removing this number will remove all links / chat functionality within IPB.
<conf_id>91</conf_id>
<conf_title>????? ??????? ?????? ??????? ?????</conf_title>
<conf_description>???????? ????? ?????? ?????? ??? ?????? / ??? ????????????? ??? IPB.
</conf_description>
<conf_group>20</conf_group>
<conf_type>input</conf_type>
@@ -15,16 +15,16 @@
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>1</conf_position>
<conf_start_group>Account Specifics</conf_start_group>
<conf_start_group>????????? ??????? ??????</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>202</conf_id>
<conf_title>Chat Room Account Number?</conf_title>
<conf_description>Removing this number will remove all links / chat functionality within IPB.
<conf_id>71</conf_id>
<conf_title>????? ??????? ?????? ??????? ???? (???????? ??????)?</conf_title>
<conf_description>???????? ????? ?????? ?????? ??? ?????? / ??? ????????????? ??? IPB.
</conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
@@ -35,16 +35,16 @@
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>1</conf_position>
<conf_start_group>Account Specifics</conf_start_group>
<conf_start_group>????????? ??????? ??????</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>216</conf_id>
<conf_title>ENABLE IPB Portal?</conf_title>
<conf_description><![CDATA[If 'yes', IPB Portal can be accessed via 'index.php?act=home' or via the special 'index.php' script (see documentation for more info).]]></conf_description>
<conf_id>107</conf_id>
<conf_title>???????? IPB ???????</conf_title>
<conf_description><![CDATA[???? &laquo;??&raquo;,IPB ?????? ????? ????????, ????????? ????????? ?????? ? URL ?????? &#151; 'index.php?act=home', ??? ????? ??????????? php ????, ??????? ????? ????? ?? ?????????? /Tools_and_Scripts/ ???????????? ? ???????.]]></conf_description>
<conf_group>22</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>csite_on</conf_key>
@@ -61,9 +61,9 @@
</setting>
<setting>
<conf_id>246</conf_id>
<conf_title>IPB Copyright Removal Key</conf_title>
<conf_description>Your copyright removal key obtained from IPS.</conf_description>
<conf_id>105</conf_id>
<conf_title>???? ???????? ????????? IPB</conf_title>
<conf_description>??? ???? ??? ???????? ????????? IPB, ?????????? ?? IPS.</conf_description>
<conf_group>25</conf_group>
<conf_type>input</conf_type>
<conf_key>ipb_copy_number</conf_key>
@@ -80,10 +80,9 @@
</setting>
<setting>
<conf_id>245</conf_id>
<conf_title>IPB Registered Licence Key</conf_title>
<conf_description><![CDATA[This is the IPB registraton key NOT your customer code or client center password. To get your key, log into your client center and click on 'Invision Power Board' under 'Purchased Services'.
<br />DO NOT REMOVE OR EDIT THIS KEY UNLESS YOU'RE SURE OF WHAT YOU'RE DOING!]]></conf_description>
<conf_id>127</conf_id>
<conf_title>IPB ??????????????? ????</conf_title>
<conf_description><![CDATA[?? ???????? ? ?? ????????? ???? ????, ???? ?? ?? 100% ?? ??????? ? ???, ??? ?? ???????!]]></conf_description>
<conf_group>24</conf_group>
<conf_type>input</conf_type>
<conf_key>ipb_reg_number</conf_key>
@@ -100,9 +99,9 @@
</setting>
<setting>
<conf_id>239</conf_id>
<conf_title>Show subscription packages when registering?</conf_title>
<conf_description>If enabled, the subscription packages will be shown in the registration page and the registering member will be able to select one.</conf_description>
<conf_id>162</conf_id>
<conf_title>?????????? ?????? ???????? ??? ??????????? ?????????????</conf_title>
<conf_description>???? ???? ????? ???????, ?????? ???????? ????? ???????????? ?? ???????? ???????????, ? ???????????? ?????? ??????? ?????? ?????...</conf_description>
<conf_group>23</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>subsm_show_reg</conf_key>
@@ -112,15 +111,15 @@
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>1</conf_position>
<conf_start_group>Optional Purchase Upon Registration</conf_start_group>
<conf_start_group>??????????? ?? ????? ???????????</conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>189</conf_id>
<conf_title>Chat Room Server?</conf_title>
<conf_id>92</conf_id>
<conf_title>?????? ??????? ?????</conf_title>
<conf_description><![CDATA[<!--SERVER-->]]></conf_description>
<conf_group>20</conf_group>
<conf_type>input</conf_type>
@@ -138,18 +137,18 @@
</setting>
<setting>
<conf_id>203</conf_id>
<conf_title>Chat Room URL?</conf_title>
<conf_id>74</conf_id>
<conf_title>URL ????? ??????? ?????</conf_title>
<conf_description><![CDATA[<!--SERVER-->]]></conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_whodat_server_addr</conf_key>
<conf_value></conf_value>
<conf_default>http://invision.parachat.com/cgi-bin/userlist/test</conf_default>
<conf_default>--Not currently required--</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>2</conf_position>
<conf_position>3</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
@@ -157,8 +156,8 @@
</setting>
<setting>
<conf_id>247</conf_id>
<conf_title>Copyright Purchased?</conf_title>
<conf_id>106</conf_id>
<conf_title>????????? ?????????</conf_title>
<conf_description></conf_description>
<conf_group>25</conf_group>
<conf_type>yes_no</conf_type>
@@ -176,9 +175,9 @@
</setting>
<setting>
<conf_id>243</conf_id>
<conf_title>Display registered to line?</conf_title>
<conf_description><![CDATA[If enabled, you can optionally add a "registered to" line at the bottom of your board.]]></conf_description>
<conf_id>128</conf_id>
<conf_title>?????????? ?????????? ? ???, ?? ???? ??????????????? ??? IPB?</conf_title>
<conf_description><![CDATA[???? ???? ????? ???????, ?? ? ?????? ????? ?????? ?????? ????? ???????????? ??????? &#151; &laquo;???????????????? ??: ...&raquo;.]]></conf_description>
<conf_group>24</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>ipb_reg_show</conf_key>
@@ -194,10 +193,11 @@
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>240</conf_id>
<conf_title>Force every member to require a subscriptions package</conf_title>
<conf_description>If enabled, the member must choose a package upon registration to proceed past the validating group and current members must purchase a subscription to view the board.</conf_description>
<conf_id>163</conf_id>
<conf_title>????????? ?? ??????? ???????????? ?????? ?????? ????????</conf_title>
<conf_description>???? ????? ???????, ???????????? ?????? ????? ??????????? ??????? ?????-?? ????? ???????? ??? ???????????.</conf_description>
<conf_group>23</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>subsm_enforce</conf_key>
@@ -207,21 +207,21 @@
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>2</conf_position>
<conf_start_group>Force Package Purchase</conf_start_group>
<conf_start_group>?????????? ???????</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>217</conf_id>
<conf_title>IPB Portal Page Title?</conf_title>
<conf_description><![CDATA[This will appear inbetween the &lt;title&gt; elements on the page]]></conf_description>
<conf_id>108</conf_id>
<conf_title>????????? ???????? ???????</conf_title>
<conf_description><![CDATA[??? ???????? ????? ?????????? ? ???? &lt;title&gt;, ?? ????, ? ????????? ???? ????????.]]></conf_description>
<conf_group>22</conf_group>
<conf_type>input</conf_type>
<conf_key>csite_title</conf_key>
<conf_value></conf_value>
<conf_default>IPB Portal</conf_default>
<conf_default>?????? IPB</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
@@ -233,14 +233,14 @@
</setting>
<setting>
<conf_id>223</conf_id>
<conf_title>Date format for articles</conf_title>
<conf_description><![CDATA[<a href='http://www.php.net/date'>Same as PHP's date function]]></conf_description>
<conf_id>109</conf_id>
<conf_title>?????? ??????? ??? ????????</conf_title>
<conf_description><![CDATA[????????? ? ????? ??????? ?? ??????????? ????? PHP: <a href='http://www.php.net/date' target='_blank'>???? ? PHP</a>.]]></conf_description>
<conf_group>22</conf_group>
<conf_type>input</conf_type>
<conf_key>csite_article_date</conf_key>
<conf_value></conf_value>
<conf_default>m-j-y H:i</conf_default>
<conf_default>j.n.Y, G:i</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
@@ -252,9 +252,9 @@
</setting>
<setting>
<conf_id>190</conf_id>
<conf_title><![CDATA[Enable &#39;Who&#39;s Chatting?&#39;]]></conf_title>
<conf_description><![CDATA[If enabled, this will show who's chatting in the chat room on your forums home page underneath the active users list.]]></conf_description>
<conf_id>93</conf_id>
<conf_title><![CDATA[???????? &#39;??? ? ?????&#39;]]></conf_title>
<conf_description><![CDATA[???? ??? ????? ????????, ?? ?? ??????? ???????? ?????? ? ????? ?????????? ????? ???????????? ???? ? ?????????????, ??? ?????? ????????? ? ????.]]></conf_description>
<conf_group>20</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>chat_who_on</conf_key>
@@ -264,16 +264,16 @@
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>3</conf_position>
<conf_start_group><![CDATA[Who&#39;s Chatting]]></conf_start_group>
<conf_start_group><![CDATA[??? ? ????]]></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>204</conf_id>
<conf_title><![CDATA[Enable &#39;Who&#39;s Chatting?&#39;]]></conf_title>
<conf_description><![CDATA[If enabled, this will show who's chatting in the chat room on your forums home page underneath the active users list.]]></conf_description>
<conf_id>75</conf_id>
<conf_title><![CDATA[???????? &#39;??? ? ?????&#39;]]></conf_title>
<conf_description><![CDATA[???? ??? ????? ????????, ?? ?? ??????? ???????? ?????? ? ????? ?????????? ????? ???????????? ???? ? ?????????????, ??? ?????? ????????? ? ????.]]></conf_description>
<conf_group>21</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>chat04_who_on</conf_key>
@@ -282,24 +282,40 @@
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>3</conf_position>
<conf_start_group><![CDATA[Who&#39;s Chatting]]></conf_start_group>
<conf_position>4</conf_position>
<conf_start_group><![CDATA[??? ? ????]]></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>218</conf_id>
<conf_title>Forums to export articles from</conf_title>
<conf_description><![CDATA[Separate <b>forum ids</b> with a comma for more than one]]></conf_description>
<conf_id>110</conf_id>
<conf_title>?????? ??? ???????? ????????</conf_title>
<conf_description><![CDATA[??????, ???? ?? ??????? ????? ???????????????? ? ??????, ??? ???????. ?? ?????? ??????? ????????? ???????, ????????? &laquo;Ctrl&raquo;.]]></conf_description>
<conf_group>22</conf_group>
<conf_type>input</conf_type>
<conf_type>multi</conf_type>
<conf_key>csite_article_forum</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_extra>#show_forums#</conf_extra>
<conf_evalphp><![CDATA[if ( $save == 1)
{
if ( is_array($_POST['csite_article_forum']) )
{
$_POST['csite_article_forum'] = implode(",",$_POST['csite_article_forum']);
}
else
{
$_POST['csite_article_forum'] = "";
}
$key = 'csite_article_forum';
}
if ( $show == 1 )
{
$key = 'csite_article_forum[]';
}]]></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>3</conf_position>
<conf_start_group></conf_start_group>
@@ -309,10 +325,9 @@
</setting>
<setting>
<conf_id>241</conf_id>
<conf_title>Member group to use after registration but before package purchase?</conf_title>
<conf_description><![CDATA[If you require that every member purchases a subscription, choose a group to move the member into once they have validated their registration prior to purchasing a subscriptions manager package.
Members in this group will see the 'Purchase Subscriptions' page when logged in and if they don't already have a package.]]></conf_description>
<conf_id>164</conf_id>
<conf_title>?????? ?????????????, ? ??????? ??????? ???????????? ????? ??????????? ? ?? ?????? ???????</conf_title>
<conf_description><![CDATA[???? ???? ????? ????????, ?? ?????? ???????????????? ???????????? ????? ???????? ? ????????? ?????? ?????????????, ???? ?? ??????? ????????? ?????...]]></conf_description>
<conf_group>23</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>subsm_nopkg_group</conf_key>
@@ -329,9 +344,9 @@ Members in this group will see the 'Purchase Subscriptions' page when logged in
</setting>
<setting>
<conf_id>244</conf_id>
<conf_title>Show as registered to...</conf_title>
<conf_description><![CDATA[Examples: <em>Matthew Mecham</em>, <em>IPS, Inc.]]></conf_description>
<conf_id>129</conf_id>
<conf_title><![CDATA[?????????? &laquo;???????????????? ??...&raquo;]]></conf_title>
<conf_description><![CDATA[???????: ???? ?????? ??? ???????? Invision Power Services]]></conf_description>
<conf_group>24</conf_group>
<conf_type>input</conf_type>
<conf_key>ipb_reg_name</conf_key>
@@ -348,8 +363,8 @@ Members in this group will see the 'Purchase Subscriptions' page when logged in
</setting>
<setting>
<conf_id>191</conf_id>
<conf_title><![CDATA[Hide Who&#39;s Chatting when no members are logged into chat?]]></conf_title>
<conf_id>94</conf_id>
<conf_title><![CDATA[???????? &laquo;??? ? ????&raquo;, ????? ??? ????????????? ? ?????]]></conf_title>
<conf_description></conf_description>
<conf_group>20</conf_group>
<conf_type>yes_no</conf_type>
@@ -367,8 +382,8 @@ Members in this group will see the 'Purchase Subscriptions' page when logged in
</setting>
<setting>
<conf_id>205</conf_id>
<conf_title><![CDATA[Hide Who&#39;s Chatting when no members are logged into chat?]]></conf_title>
<conf_id>76</conf_id>
<conf_title><![CDATA[?????? ???? &laquo;??? ? ????&raquo;, ????? ????????????? ? ???? ???]]></conf_title>
<conf_description></conf_description>
<conf_group>21</conf_group>
<conf_type>yes_no</conf_type>
@@ -378,7 +393,7 @@ Members in this group will see the 'Purchase Subscriptions' page when logged in
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>4</conf_position>
<conf_position>5</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
@@ -386,8 +401,8 @@ Members in this group will see the 'Purchase Subscriptions' page when logged in
</setting>
<setting>
<conf_id>219</conf_id>
<conf_title>Number of Articles to display in the main section</conf_title>
<conf_id>111</conf_id>
<conf_title>?????????? ????????, ???????????? ? ???????? ?????</conf_title>
<conf_description></conf_description>
<conf_group>22</conf_group>
<conf_type>input</conf_type>
@@ -405,9 +420,9 @@ Members in this group will see the 'Purchase Subscriptions' page when logged in
</setting>
<setting>
<conf_id>220</conf_id>
<conf_title>Enable Recent Articles?</conf_title>
<conf_description>This will show a list of recent topic titles on the IPB Portal page</conf_description>
<conf_id>112</conf_id>
<conf_title>???????? ????????? ??????? (????? ????)?</conf_title>
<conf_description>???? ????? ????? ?????????? ????????? ???? ?????????? ????????? ???????? ? ???????.</conf_description>
<conf_group>22</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>csite_article_recent_on</conf_key>
@@ -417,47 +432,49 @@ Members in this group will see the 'Purchase Subscriptions' page when logged in
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>5</conf_position>
<conf_start_group>IPB Portal Recent Articles</conf_start_group>
<conf_start_group>????????? ???? ????????? ????????</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
</setting>
<setting>
<conf_id>238</conf_id>
<conf_title><![CDATA[Registration Terms &amp; Rules]]></conf_title>
<conf_description><![CDATA[The content of this section will be displayed before a member can register a new account.
<b>HTML ENABLED</b>]]></conf_description>
<conf_id>5</conf_id>
<conf_title>??????????????? ??????? ? ?????????</conf_title>
<conf_description><![CDATA[?????????? ???? ?????? ????? ?????????? ????????????? ????? ???, ??? ??? ??????????????? ???????? ? ?????????? ????? ??? ???????????. <b>HTML ???????</b>]]></conf_description>
<conf_group>17</conf_group>
<conf_type>textarea</conf_type>
<conf_key>reg_rules</conf_key>
<conf_value></conf_value>
<conf_default><![CDATA[<b>Forum Terms & Rules</b>
<conf_default><![CDATA[<b>??????? ? ????????? ??????</b>
Please take a moment to review these rules detailed below. If you agree with them and wish to proceed with the registration, simply click the "Register" button below. To cancel this registration, simply hit the 'back' button on your browser.
?????????? ??????? ??????? ???????? ? ???????? ??????? ???????, ????????? ????. ???? ?? ?????????? ?? ? ??????? ?????????? ??????? ???????????, ???????? ???? ???????? ? ??????? ?????? &laquo;???????????&raquo;. ??? ?????? ??????????? ??????? ?????? &laquo;?????&raquo; ? ????? ????????.
Please remember that we are not responsible for any messages posted. We do not vouch for or warrant the accuracy, completeness or usefulness of any message, and are not responsible for the contents of any message.
?????????? ???????, ??? ?? ?? ???????? ?? ??? ??????????? ?????????.
The messages express the views of the author of the message, not necessarily the views of this bulletin board. Any user who feels that a posted message is objectionable is encouraged to contact us immediately by email. We have the ability to remove objectionable messages and we will make every effort to do so, within a reasonable time frame, if we determine that removal is necessary.
?? ?????? ??????????? ??????????????? ???????? ??????????? ??? ? ??????????. ??? ?????? ?? ??????????? ????????? &#151; ??? ????? ??????????? ?? ??????. ????????????? ?????? ??????? ? ???? ??????????????? ?? ?????????? ?????????, ??????????? ??????????????. ??????????????? ?? ?????????? ????????? ????? ?????? ??? ?????.
You agree, through your use of this service, that you will not use this bulletin board to post any material which is knowingly false and/or defamatory, inaccurate, abusive, vulgar, hateful, harassing, obscene, profane, sexually oriented, threatening, invasive of a person's privacy, or otherwise violative of any law.
?? ?????? ?????????:
???????? ????????? ?? ?? ?????????? ??????/????, ??????????? ? ?????? ? ????? ????????????? ??????, ?????????? ???????, ???????????? ? ??????????? ??????; ??????? ? ???????????;
????????????? ???????, ??????????? ?????????????? ? ?.?.
You agree not to post any copyrighted material unless the copyright is owned by you or by this bulletin board.
]]></conf_default>
?????????? ?????? ????? ?????? ???????? ???????????? ??? ???????????????? ?????? ? ?? ????? ?????? ?????? ?? ?????.
???????????? ? ?????????, ?? ???????????? ?? ??????????? ????? ????????, ?????????? ????????? ??????, ???? ????????? ????? ?? ??????????? ???.]]></conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>5</conf_position>
<conf_start_group><![CDATA[Registration Terms &amp; Rules]]></conf_start_group>
<conf_start_group>??????? ? ????????? ??????</conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
</setting>
<setting>
<conf_id>192</conf_id>
<conf_title>Update local list no less than every:</conf_title>
<conf_description>The local list is updated from the master chat server by the frequency you set and cached locally.</conf_description>
<conf_id>95</conf_id>
<conf_title>????????? ????????? ?????? ?? ?????, ??? ??????:</conf_title>
<conf_description>????????? ?????? ??????????? ?? ????????? ??????? ???? ? ????????????? ???? ???????? ? ?????????? ????????. ? ???????.</conf_description>
<conf_group>20</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>chat_refresh_list</conf_key>
@@ -477,22 +494,22 @@ You agree not to post any copyrighted material unless the copyright is owned by
</setting>
<setting>
<conf_id>206</conf_id>
<conf_title>Update local list no less than every:</conf_title>
<conf_description>The local list is updated from the master chat server by the frequency you set and cached locally.</conf_description>
<conf_id>77</conf_id>
<conf_title>????????? ????????? ?????? ?? ?????, ??? ??????:</conf_title>
<conf_description>????????? ?????? ??????????? ?? ????????? ??????? ???? ? ????????????? ???? ???????? ? ?????????? ????????. ? ???????.</conf_description>
<conf_group>21</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>chat04_who_save</conf_key>
<conf_value></conf_value>
<conf_default>1</conf_default>
<conf_extra>1=1
<conf_default>2</conf_default>
<conf_extra>2=2
5=5
10=10
15=15
30=30</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>5</conf_position>
<conf_position>6</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
@@ -500,18 +517,18 @@ You agree not to post any copyrighted material unless the copyright is owned by
</setting>
<setting>
<conf_id>193</conf_id>
<conf_title>Changed your IPChat control panel password?</conf_title>
<conf_description><![CDATA[If you have changed your IPChat control panel password, please add the new password here. Leave blank if it's not changed.]]></conf_description>
<conf_id>97</conf_id>
<conf_title>??????? ??? ?????? ? ?????? ?????????? IPCHAT</conf_title>
<conf_description><![CDATA[?? ??????? ?????? ??? ??????? ? ?????? ?????????? IPChat ??? ?????????? ??????????? ?????? &laquo;??? ? ????&raquo;.]]></conf_description>
<conf_group>20</conf_group>
<conf_type>input</conf_type>
<conf_key>chat_pass_md5</conf_key>
<conf_key>chat_pass_md5_new</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>6</conf_position>
<conf_position>7</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
@@ -519,8 +536,8 @@ You agree not to post any copyrighted material unless the copyright is owned by
</setting>
<setting>
<conf_id>221</conf_id>
<conf_title>Max. no recent articles to show</conf_title>
<conf_id>113</conf_id>
<conf_title>???????????? ?????????? ????????? ????????</conf_title>
<conf_description></conf_description>
<conf_group>22</conf_group>
<conf_type>input</conf_type>
@@ -538,9 +555,9 @@ You agree not to post any copyrighted material unless the copyright is owned by
</setting>
<setting>
<conf_id>194</conf_id>
<conf_title>ENTER YOUR IPCHAT CONTROL PANEL PASSWORD</conf_title>
<conf_description><![CDATA[You must enter your IPChat control panel password to allow retrieval of the Who's Chatting list.]]></conf_description>
<conf_id>97</conf_id>
<conf_title>??????? ??? ?????? ? ?????? ?????????? IPCHAT</conf_title>
<conf_description><![CDATA[?? ??????? ?????? ??? ??????? ? ?????? ?????????? IPChat ??? ?????????? ??????????? ?????? &laquo;??? ? ????&raquo;.]]></conf_description>
<conf_group>20</conf_group>
<conf_type>input</conf_type>
<conf_key>chat_pass_md5_new</conf_key>
@@ -557,8 +574,8 @@ You agree not to post any copyrighted material unless the copyright is owned by
</setting>
<setting>
<conf_id>222</conf_id>
<conf_title>Max. length of topic titles</conf_title>
<conf_id>114</conf_id>
<conf_title>???????????? ????? ?????????? ????????</conf_title>
<conf_description></conf_description>
<conf_group>22</conf_group>
<conf_type>input</conf_type>
@@ -576,8 +593,8 @@ You agree not to post any copyrighted material unless the copyright is owned by
</setting>
<setting>
<conf_id>195</conf_id>
<conf_title>Chat Room Dimensions (WIDTH)?</conf_title>
<conf_id>98</conf_id>
<conf_title>??????? ??????? ???? (??????)?</conf_title>
<conf_description></conf_description>
<conf_group>20</conf_group>
<conf_type>input</conf_type>
@@ -588,15 +605,15 @@ You agree not to post any copyrighted material unless the copyright is owned by
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>8</conf_position>
<conf_start_group>Showing the chat room</conf_start_group>
<conf_start_group>??????????? ??????? ????</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>209</conf_id>
<conf_title>Chat Room Dimensions (WIDTH)?</conf_title>
<conf_id>78</conf_id>
<conf_title>??????? ??????? ???? (??????)?</conf_title>
<conf_description></conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
@@ -607,15 +624,15 @@ You agree not to post any copyrighted material unless the copyright is owned by
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>8</conf_position>
<conf_start_group>Showing the chat room</conf_start_group>
<conf_start_group>??????????? ??????? ????</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>196</conf_id>
<conf_title>Chat Room Dimensions (HEIGHT)?</conf_title>
<conf_id>99</conf_id>
<conf_title>??????? ??????? ???? (??????)?</conf_title>
<conf_description></conf_description>
<conf_group>20</conf_group>
<conf_type>input</conf_type>
@@ -633,8 +650,8 @@ You agree not to post any copyrighted material unless the copyright is owned by
</setting>
<setting>
<conf_id>210</conf_id>
<conf_title>Chat Room Dimensions (HEIGHT)?</conf_title>
<conf_id>79</conf_id>
<conf_title>??????? ??????? ???? (??????)?</conf_title>
<conf_description></conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
@@ -652,8 +669,8 @@ You agree not to post any copyrighted material unless the copyright is owned by
</setting>
<setting>
<conf_id>224</conf_id>
<conf_title>Enable Recent Discussions</conf_title>
<conf_id>115</conf_id>
<conf_title>???????? ????????? ?????</conf_title>
<conf_description></conf_description>
<conf_group>22</conf_group>
<conf_type>yes_no</conf_type>
@@ -664,23 +681,23 @@ You agree not to post any copyrighted material unless the copyright is owned by
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>9</conf_position>
<conf_start_group>IPB Portal Recent Discussions</conf_start_group>
<conf_start_group>????????? ??????????</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
</setting>
<setting>
<conf_id>199</conf_id>
<conf_title>Load the chat room in...?</conf_title>
<conf_id>100</conf_id>
<conf_title>????????? ??????? ???? ?...?</conf_title>
<conf_description></conf_description>
<conf_group>20</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>chat_display</conf_key>
<conf_value></conf_value>
<conf_default>self</conf_default>
<conf_extra>self=Normal IPB Page
new=New Pop Up Window</conf_extra>
<conf_extra>self=?????????? IPB ????????
new=? ????? ???? (Pop-Up)</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>9</conf_position>
@@ -691,19 +708,19 @@ new=New Pop Up Window</conf_extra>
</setting>
<setting>
<conf_id>213</conf_id>
<conf_title>Load the chat room in...?</conf_title>
<conf_id>82</conf_id>
<conf_title>????????? ??????? ???? ?...?</conf_title>
<conf_description></conf_description>
<conf_group>21</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>chat04_display</conf_key>
<conf_value></conf_value>
<conf_default>self</conf_default>
<conf_extra>self=Normal IPB Page
new=New Pop Up Window</conf_extra>
<conf_extra>self=?????????? IPB ????????
new=????? ???? (Pop-Up)</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>9</conf_position>
<conf_position>12</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
@@ -711,9 +728,9 @@ new=New Pop Up Window</conf_extra>
</setting>
<setting>
<conf_id>197</conf_id>
<conf_title>Chat Room Pop-up Window Padding? (in px)</conf_title>
<conf_description>Allows window to open without scrollbars</conf_description>
<conf_id>101</conf_id>
<conf_title>Pop-up ???? ??????? ???? ????????????? ????????? (? ????????)</conf_title>
<conf_description>????????? ????????? ???? ??? ????? ?????????</conf_description>
<conf_group>20</conf_group>
<conf_type>input</conf_type>
<conf_key>chat_poppad</conf_key>
@@ -730,9 +747,9 @@ new=New Pop Up Window</conf_extra>
</setting>
<setting>
<conf_id>211</conf_id>
<conf_title>Chat Room Pop-up Window Padding? (in px)</conf_title>
<conf_description>Allows window to open without scrollbars</conf_description>
<conf_id>83</conf_id>
<conf_title>Pop-up ???? ??????? ???? ????????????? ????????? (? ????????)</conf_title>
<conf_description>????????? ????????? ???? ??? ????? ?????????</conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_poppad</conf_key>
@@ -741,7 +758,7 @@ new=New Pop Up Window</conf_extra>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>10</conf_position>
<conf_position>14</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
@@ -749,8 +766,8 @@ new=New Pop Up Window</conf_extra>
</setting>
<setting>
<conf_id>225</conf_id>
<conf_title>Max. no recent discussions to show</conf_title>
<conf_id>116</conf_id>
<conf_title>???????????? ?????????? ????????? ???</conf_title>
<conf_description></conf_description>
<conf_group>22</conf_group>
<conf_type>input</conf_type>
@@ -768,8 +785,8 @@ new=New Pop Up Window</conf_extra>
</setting>
<setting>
<conf_id>198</conf_id>
<conf_title>Default Chat Room Interface Language?</conf_title>
<conf_id>102</conf_id>
<conf_title>???? ?????????? ???? ?? ??????????</conf_title>
<conf_description></conf_description>
<conf_group>20</conf_group>
<conf_type>dropdown</conf_type>
@@ -777,16 +794,16 @@ new=New Pop Up Window</conf_extra>
<conf_value></conf_value>
<conf_default>en</conf_default>
<conf_extra>en=English
ar=Arabic
de=German
es=Spanish
fr=French
hr=Croation
it=Italian
iw=Hebrew
nl=Dutch
pl=Polish
pt=Portuguese</conf_extra>
ar=????????
de=????????
es=?????????
fr=???????????
hr=??????????
it=???????????
iw=?????
nl=???????
pl=????????
pt=?????????????</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>11</conf_position>
@@ -797,8 +814,8 @@ pt=Portuguese</conf_extra>
</setting>
<setting>
<conf_id>226</conf_id>
<conf_title>Max. length of topic titles</conf_title>
<conf_id>117</conf_id>
<conf_title>???????????? ????? ?????????? ???</conf_title>
<conf_description></conf_description>
<conf_group>22</conf_group>
<conf_type>input</conf_type>
@@ -816,8 +833,8 @@ pt=Portuguese</conf_extra>
</setting>
<setting>
<conf_id>227</conf_id>
<conf_title>Show User / Guest Info box?</conf_title>
<conf_id>118</conf_id>
<conf_title>?????????? ???? ?????????? ????????????/??????</conf_title>
<conf_description></conf_description>
<conf_group>22</conf_group>
<conf_type>yes_no</conf_type>
@@ -828,16 +845,16 @@ pt=Portuguese</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>12</conf_position>
<conf_start_group>IPB Portal Components</conf_start_group>
<conf_start_group>?????????? ???????</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
</setting>
<setting>
<conf_id>200</conf_id>
<conf_title>Allow chat access to these groups</conf_title>
<conf_description>You may select more than one</conf_description>
<conf_id>103</conf_id>
<conf_title>????????? ?????? ? ??? ??? ???? ?????</conf_title>
<conf_description>?? ?????? ???????? ?????, ??? ????</conf_description>
<conf_group>20</conf_group>
<conf_type>multi</conf_type>
<conf_key>chat_access_groups</conf_key>
@@ -863,19 +880,19 @@ if ( $show == 1 )
}]]></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>13</conf_position>
<conf_start_group>Access Permissions</conf_start_group>
<conf_start_group>????? ???????</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>214</conf_id>
<conf_title>Allow chat access to these groups</conf_title>
<conf_description>You may select more than one</conf_description>
<conf_id>90</conf_id>
<conf_title>????????? ?????? ? ??? ??? ???? ?????</conf_title>
<conf_description>?? ?????? ???????? ?????, ??? ????</conf_description>
<conf_group>21</conf_group>
<conf_type>multi</conf_type>
<conf_key><![CDATA[chat04_access_groups[]]]></conf_key>
<conf_key>chat04_access_groups</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra>#show_groups#</conf_extra>
@@ -891,18 +908,22 @@ if ( $show == 1 )
}
$key = 'chat04_access_groups';
}
if ( $show == 1 )
{
$key = 'chat04_access_groups[]';
}]]></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>13</conf_position>
<conf_start_group>Access Permissions</conf_start_group>
<conf_position>25</conf_position>
<conf_start_group>????? ???????</conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>228</conf_id>
<conf_title>Show online users?</conf_title>
<conf_id>119</conf_id>
<conf_title>?????????? ???? ???????? ??????????????</conf_title>
<conf_description></conf_description>
<conf_group>22</conf_group>
<conf_type>yes_no</conf_type>
@@ -920,9 +941,9 @@ if ( $show == 1 )
</setting>
<setting>
<conf_id>201</conf_id>
<conf_title>Allow ADMIN access to these groups</conf_title>
<conf_description>You may select more than one - please choose carefully!</conf_description>
<conf_id>104</conf_id>
<conf_title>????????? ????? ?????????????? ???? ???????</conf_title>
<conf_description>?? ?????? ???????? ?????, ??? ???? &#151; ?????????? ????????? ???????????!</conf_description>
<conf_group>20</conf_group>
<conf_type>multi</conf_type>
<conf_key>chat_admin_groups</conf_key>
@@ -955,8 +976,8 @@ if ( $show == 1 )
</setting>
<setting>
<conf_id>229</conf_id>
<conf_title>Show search box?</conf_title>
<conf_id>120</conf_id>
<conf_title>?????????? ???? ? ?????? ???????</conf_title>
<conf_description></conf_description>
<conf_group>22</conf_group>
<conf_type>yes_no</conf_type>
@@ -974,8 +995,8 @@ if ( $show == 1 )
</setting>
<setting>
<conf_id>230</conf_id>
<conf_title>Enable skin selection choice dropdown?</conf_title>
<conf_id>121</conf_id>
<conf_title>?????????? ???? ? ?????????? ???? ?????? ??????</conf_title>
<conf_description></conf_description>
<conf_group>22</conf_group>
<conf_type>yes_no</conf_type>
@@ -993,9 +1014,9 @@ if ( $show == 1 )
</setting>
<setting>
<conf_id>232</conf_id>
<conf_title>Enter URL to poll topic for inclusion</conf_title>
<conf_description>Leave blank to not show a poll or the poll box</conf_description>
<conf_id>122</conf_id>
<conf_title>??????? URL ????? ? ???? ? ???????</conf_title>
<conf_description>???????? ???? ??????, ???? ?? ?????? ???????? ? ?????? ????????? ?????? ?????</conf_description>
<conf_group>22</conf_group>
<conf_type>input</conf_type>
<conf_key>csite_poll_url</conf_key>
@@ -1012,8 +1033,8 @@ if ( $show == 1 )
</setting>
<setting>
<conf_id>233</conf_id>
<conf_title>Show Site Navigation Menu?</conf_title>
<conf_id>123</conf_id>
<conf_title>?????????? ????????????? ?????</conf_title>
<conf_description></conf_description>
<conf_group>22</conf_group>
<conf_type>yes_no</conf_type>
@@ -1031,16 +1052,16 @@ if ( $show == 1 )
</setting>
<setting>
<conf_id>242</conf_id>
<conf_title>Reported Post Notifications sent to</conf_title>
<conf_description>Where do you want reported post notifications to go?</conf_description>
<conf_id>157</conf_id>
<conf_title>????? ???????? ?????????????? ???????? ???????</conf_title>
<conf_description>???? ?? ?????? ???????? ?????? ?? ??????????????</conf_description>
<conf_group>6</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>reportpost_method</conf_key>
<conf_value></conf_value>
<conf_default>pm</conf_default>
<conf_extra>email=Email
pm=Personal Message</conf_extra>
<conf_extra>email=?? email
pm=?????? ??????????</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>19</conf_position>
@@ -1051,17 +1072,17 @@ pm=Personal Message</conf_extra>
</setting>
<setting>
<conf_id>234</conf_id>
<conf_title>Site Navigation Menu Links</conf_title>
<conf_description><![CDATA[One per line in this format<br>http://www.apple.com [Apple's Website]<br><br>{board_url} will convert into your board]]></conf_description>
<conf_id>124</conf_id>
<conf_title>?????? ?????????????? ????</conf_title>
<conf_description><![CDATA[??????????? ???? ?????? ?? ??????, ??????? ? ????????? ???????:<br />http://www.yandex.ru [?ndex]<br /><br />?????? {board_url} ????? ???????? ?? URL ?????? ??????]]></conf_description>
<conf_group>22</conf_group>
<conf_type>textarea</conf_type>
<conf_key>csite_nav_contents</conf_key>
<conf_value></conf_value>
<conf_default><![CDATA[{board_url} [Forums]
{board_url}act=Search&CODE=getactive [Today's Active Topics]
{board_url}act=Stats [Today's Top 10 Posters]
{board_url}act=Stats&CODE=leaders [Contact Staff]]]></conf_default>
<conf_default><![CDATA[{board_url} [??????]
{board_url}act=Search&CODE=getactive [????? ?????????]
{board_url}act=Stats [?????? ???????]
{board_url}act=Stats&CODE=leaders [????????????? ??????]&nbsp;]]></conf_default>
<conf_extra></conf_extra>
<conf_evalphp><![CDATA[if ( $show == 1)
{
@@ -1076,9 +1097,9 @@ pm=Personal Message</conf_extra>
</setting>
<setting>
<conf_id>235</conf_id>
<conf_title>Show Affiliates / Favoured Sites box?</conf_title>
<conf_description></conf_description>
<conf_id>125</conf_id>
<conf_title>?????????? ???? ? ?????????????? ?????????</conf_title>
<conf_description>????????, ?????? ?? ????? ????? ?????????.</conf_description>
<conf_group>22</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>csite_fav_show</conf_key>
@@ -1095,9 +1116,9 @@ pm=Personal Message</conf_extra>
</setting>
<setting>
<conf_id>236</conf_id>
<conf_title>Show Affiliates / Favoured Sites box content</conf_title>
<conf_description>Raw HTML enabled</conf_description>
<conf_id>126</conf_id>
<conf_title>?????????? ????? ? ?????????????? ????????</conf_title>
<conf_description>HTML ???????</conf_description>
<conf_group>22</conf_group>
<conf_type>textarea</conf_type>
<conf_key>csite_fav_contents</conf_key>
@@ -1117,9 +1138,9 @@ pm=Personal Message</conf_extra>
</setting>
<setting>
<conf_id>237</conf_id>
<conf_title>Allow poll creator to vote in own poll?</conf_title>
<conf_description><![CDATA[If set to "yes", the poll creator will have the option of voting in their own poll.]]></conf_description>
<conf_id>195</conf_id>
<conf_title>????????? ????????? ?????? ?????????? ? ????</conf_title>
<conf_description></conf_description>
<conf_group>5</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>allow_creator_vote</conf_key>
+41 -30
View File
@@ -2,17 +2,23 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.0.0 PF1 -> PF 2
@@ -25,7 +31,7 @@
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.";
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
@@ -33,7 +39,7 @@ class version_upgrade
{
var $this_version = '20007';
var $upgrade_from = '20006';
var $first_step = 'update your database to include the new schematic modifications.';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
@@ -44,17 +50,22 @@ class version_upgrade
function version_upgrade()
{
global $ibforums, $std, $DB;
}
function version_process()
{
$this->md5_check = $std->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}";
$this->md5_check = $this->ipsclass->return_md5_check();
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $ibforums->modules_to_run );
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
@@ -69,13 +80,13 @@ class version_upgrade
function auto_run()
{
global $ibforums, $std, $DB;
//--------------------------------
// What are we doing?
//--------------------------------
switch( $ibforums->input['workact'] )
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
@@ -93,14 +104,14 @@ class version_upgrade
function upgrade_sql()
{
global $ibforums, $std, $DB;
$cnt = 0;
$sql = $this->_get_sql();
foreach( $sql as $q )
{
$DB->query( $q );
$this->ipsclass->DB->query( $q );
$cnt++;
}
@@ -109,7 +120,7 @@ class version_upgrade
// Next page...
//--------------------------------
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "$cnt çàïðîñîâ âûïîëíåíî...." );
}
@@ -119,22 +130,22 @@ class version_upgrade
function upgrade_intro()
{
global $ibforums, $std, $DB;
$ibforums->template->content .= "
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Welcome to the IPB Upgrade System</div>
<div class='tdrow1' style='padding:6px'>This upgrade module will upgrade you from <b>{$ibforums->versions[$this->upgrade_from]}</b> to <b>{$ibforums->versions[$this->this_version]}</b>
<br /><br />This first step will {$this->first_step}
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
$ibforums->template->output();
$this->ipsclass->template->output();
}
@@ -148,8 +159,8 @@ class version_upgrade
$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]');";
$SQL[] = "INSERT INTO ibf_custom_bbcode (bbcode_title, bbcode_desc, bbcode_tag, bbcode_replace, bbcode_useoption, bbcode_example) VALUES ('Áëîê êîäà', 'Ýòîò òýã áóäåò ïîêàçûâàòü áëîê êîäà ñ ïîëîñîé ïðîêðóòêè. Ïðèìåíÿåòñÿ äëÿ áîëüøèõ áëîêîâ ñ èñõîäíûì êîäîì ïðîãðàììû.', 'codebox', '<div class=\'codetop\'>Èñõîäíûé êîä</div><div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\'>{content}</div>', 0, '[codebox]long_code_here = '';[/codebox]');";
return $SQL;
}
+107 -108
View File
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="windows-1251"?>
<settingexport exported="1092402393">
<settinggroup>
<setting>
<conf_id>253</conf_id>
<conf_title>Chat Room Type</conf_title>
<conf_description>This is the type of chat service you purchased</conf_description>
<conf_id>72</conf_id>
<conf_title>??? ??????? ????</conf_title>
<conf_description>??? ??? ?????????? ???? ????</conf_description>
<conf_group>21</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>chat04_servicetype</conf_key>
@@ -22,9 +22,9 @@ premium=Premium</conf_extra>
</setting>
<setting>
<conf_id>252</conf_id>
<conf_title>Default Chat Room</conf_title>
<conf_description>This is the room that your chat users will be logged into first</conf_description>
<conf_id>73</conf_id>
<conf_title>??????? ???? ?? ?????????</conf_title>
<conf_description>??? ??????? ????, ? ??????? ??????? ????????????, ????? ? ???.</conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_default_room</conf_key>
@@ -41,8 +41,8 @@ premium=Premium</conf_extra>
</setting>
<setting>
<conf_id>203</conf_id>
<conf_title>Chat Room URL?</conf_title>
<conf_id>74</conf_id>
<conf_title>URL ????? ??????? ?????</conf_title>
<conf_description><![CDATA[<!--SERVER-->]]></conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
@@ -60,9 +60,9 @@ premium=Premium</conf_extra>
</setting>
<setting>
<conf_id>204</conf_id>
<conf_title><![CDATA[Enable &#39;Who&#39;s Chatting?&#39;]]></conf_title>
<conf_description><![CDATA[If enabled, this will show who's chatting in the chat room on your forums home page underneath the active users list.]]></conf_description>
<conf_id>75</conf_id>
<conf_title><![CDATA[???????? &#39;??? ? ?????&#39;]]></conf_title>
<conf_description><![CDATA[???? ??? ????? ????????, ?? ?? ??????? ???????? ?????? ? ????? ?????????? ????? ???????????? ???? ? ?????????????, ??? ?????? ????????? ? ????.]]></conf_description>
<conf_group>21</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>chat04_who_on</conf_key>
@@ -72,15 +72,15 @@ premium=Premium</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>4</conf_position>
<conf_start_group><![CDATA[Who&#39;s Chatting]]></conf_start_group>
<conf_start_group><![CDATA[??? ? ????]]></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>205</conf_id>
<conf_title><![CDATA[Hide Who&#39;s Chatting when no members are logged into chat?]]></conf_title>
<conf_id>76</conf_id>
<conf_title><![CDATA[?????? ???? &laquo;??? ? ????&raquo;, ????? ????????????? ? ???? ???]]></conf_title>
<conf_description></conf_description>
<conf_group>21</conf_group>
<conf_type>yes_no</conf_type>
@@ -96,30 +96,10 @@ premium=Premium</conf_extra>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>262</conf_id>
<conf_title>Enable X_FORWARDED_FOR IP matching?</conf_title>
<conf_description><![CDATA[If enabled, this will check the X_FORWARDED_FOR headers to match the user's IP address. This is useful in a intranet situation if the REMOTE_ADDR will be the same across the network. It will also help maintain AOL sessions but can be abused to forge incorrect headers to report an incorrect IP address. If unsure, leave off.]]></conf_description>
<conf_group>6</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>xforward_matching</conf_key>
<conf_value></conf_value>
<conf_default>0</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>6</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>206</conf_id>
<conf_title>Update local list no less than every:</conf_title>
<conf_description>The local list is updated from the master chat server by the frequency you set and cached locally. In minutes.</conf_description>
<conf_id>77</conf_id>
<conf_title>????????? ????????? ?????? ?? ?????, ??? ??????:</conf_title>
<conf_description>????????? ?????? ??????????? ?? ????????? ??????? ???? ? ????????????? ???? ???????? ? ?????????? ????????. ? ???????.</conf_description>
<conf_group>21</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>chat04_who_save</conf_key>
@@ -140,8 +120,8 @@ premium=Premium</conf_extra>
</setting>
<setting>
<conf_id>209</conf_id>
<conf_title>Chat Room Dimensions (WIDTH)?</conf_title>
<conf_id>78</conf_id>
<conf_title>??????? ??????? ???? (??????)?</conf_title>
<conf_description></conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
@@ -152,16 +132,35 @@ premium=Premium</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>8</conf_position>
<conf_start_group>Showing the chat room</conf_start_group>
<conf_start_group>??????????? ??????? ????</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>248</conf_id>
<conf_title>Moderators can ban via warn panel?</conf_title>
<conf_description><![CDATA[Applies to those moderators allowed to use the warning system<br />Admins can automatically do this via the warn panel.]]></conf_description>
<conf_id>144</conf_id>
<conf_title>???????? ????????? IP-??????? ?? X_FORWARDED_FOR?</conf_title>
<conf_description>???? ????? ????????, ?? IP-?????? ????????????? ????? ?????????? ??? ?? ?? ????????? X_FORWARDED_FOR. ?????????????? ??? ??????? ?????????? ? ????????? ?????, ????? ?? ??????? ?????????? ???????? IP-????? ????????????.</conf_description>
<conf_group>6</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>xforward_matching</conf_key>
<conf_value></conf_value>
<conf_default>0</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>6</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>234</conf_id>
<conf_title>????? ?? ?????????? ????????? ??????????? ???????????? ?????? ????? ?????? ???????????????</conf_title>
<conf_description><![CDATA[????????????? ?????? ? ??? ???????????, ??????? ????????? ???????????? ??????? ??????????????<br />?????????????? ????? ??????????? ???????????? ?????? ??????!]]></conf_description>
<conf_group>13</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>warn_mod_ban</conf_key>
@@ -171,15 +170,15 @@ premium=Premium</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>8</conf_position>
<conf_start_group>Forum Moderator Permissions</conf_start_group>
<conf_start_group>????? ??????????? ??????</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>210</conf_id>
<conf_title>Chat Room Dimensions (HEIGHT)?</conf_title>
<conf_id>79</conf_id>
<conf_title>??????? ??????? ???? (??????)?</conf_title>
<conf_description></conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
@@ -197,9 +196,9 @@ premium=Premium</conf_extra>
</setting>
<setting>
<conf_id>249</conf_id>
<conf_title>Moderators can mod queue members via warn panel?</conf_title>
<conf_description><![CDATA[Applies to those moderators allowed to use the warning system<br />Admins can automatically do this via the warn panel.]]></conf_description>
<conf_id>235</conf_id>
<conf_title>????? ?? ?????????? ???????? ???????? ???? ??????????? ????????????? ????????? ????? ??????????? ? ????? (????? ?????? ??????????????)?</conf_title>
<conf_description><![CDATA[????????????? ?????? ? ??? ???????????, ??????? ????????? ???????????? ??????? ??????????????<br />?????????????? ????? ???????? ???????? ???????????? ??????!]]></conf_description>
<conf_group>13</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>warn_mod_modq</conf_key>
@@ -216,9 +215,9 @@ premium=Premium</conf_extra>
</setting>
<setting>
<conf_id>50</conf_id>
<conf_title><![CDATA[Auto prune all topic subscriptions if the topic has no replies over [x] days]]></conf_title>
<conf_description>Leave blank or enter 0 for no auto prune limit</conf_description>
<conf_id>213</conf_id>
<conf_title><![CDATA[????????????? ??????? ???????? ?? ????, ???? ? ??? ??? ??????? ????? [x] ????]]></conf_title>
<conf_description><![CDATA[???????? ?????? ??? ??????? 0, ????? ??? ????? ?????????]]></conf_description>
<conf_group>4</conf_group>
<conf_type>input</conf_type>
<conf_key>subs_autoprune</conf_key>
@@ -228,27 +227,27 @@ premium=Premium</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>10</conf_position>
<conf_start_group><![CDATA[Topic &amp; Forum Subscriptions]]></conf_start_group>
<conf_start_group>???????? ?? ???? ? ??????</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key>0</conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>254</conf_id>
<conf_title>Default Chat Room Language</conf_title>
<conf_description>This is the default language used for the chat user inteface (buttons and labels, etc)</conf_description>
<conf_id>80</conf_id>
<conf_title>???? ???? ??????????? ??????? ? ???????? ???? (?? ?????????)</conf_title>
<conf_description>???? ??????????? ???????</conf_description>
<conf_group>21</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>chat04_default_lang</conf_key>
<conf_value></conf_value>
<conf_default>english.conf</conf_default>
<conf_extra>english.conf=English
spanish.conf=Spanish
portuguese.conf=Portuguese
italian.conf=Italian
french.conf=French
german.conf=German</conf_extra>
<conf_extra>english.conf=??????????
spanish.conf=?????????
portuguese.conf=?????????????
italian.conf=???????????
french.conf=???????????
german.conf=????????</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>10</conf_position>
@@ -259,9 +258,9 @@ german.conf=German</conf_extra>
</setting>
<setting>
<conf_id>250</conf_id>
<conf_title>Moderators can remove post rights via warn panel?</conf_title>
<conf_description><![CDATA[Applies to those moderators allowed to use the warning system<br />Admins can automatically do this via the warn panel.]]></conf_description>
<conf_id>236</conf_id>
<conf_title>????? ?? ?????????? ????????? ???????????? ??????????? ?????????? ?????????/??? ?? ?????? (????? ?????? ??????????????)?</conf_title>
<conf_description><![CDATA[????????????? ?????? ? ??? ???????????, ??????? ????????? ???????????? ??????? ??????????????<br />?????????????? ????? ????????? ????????????? ??????????? ?????????? ????????? ??????!]]></conf_description>
<conf_group>13</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>warn_mod_post</conf_key>
@@ -278,9 +277,9 @@ german.conf=German</conf_extra>
</setting>
<setting>
<conf_id>263</conf_id>
<conf_title>Automatically subscribe to every forum</conf_title>
<conf_description><![CDATA[Please choose which user groups you'd like to automatically be subscribed for email notification of <b>new</b> topics (not replies) in every forum available to them. This means that members having a selected PRIMARY group will be emailed everytime there is a new topic and they are not online to view it.<br /><b>Note</b> This will only send the email to those who have chosen to 'Allow emails from the administrators'.]]></conf_description>
<conf_id>214</conf_id>
<conf_title>????????????? ??????????? ?? ?????? ?????</conf_title>
<conf_description><![CDATA[?????????? ????????, ????? ?????? ????????????? ????? ????????????? ????????? ?? e-mail ??????????? ? ????? ????? (?? ???????!) ? ?????? ??????, ????????? ??. ??? ????????, ??? ????????????, ???????? ? ????????? ????? ?????? (????????), ????? ???????????? ?? e-mail ?????? ???, ????? ? ?????? ????? ??????????? ????? ????. ???????, ??? ?????? ????? ?????????? ?????? ???, ??? ????? ?????????? ????? &#151; &laquo;????????? ???????? ??? ????? ?? ?????????????&raquo;.]]></conf_description>
<conf_group>4</conf_group>
<conf_type>multi</conf_type>
<conf_key>autoforum_sub_groups</conf_key>
@@ -313,9 +312,9 @@ if ( $show == 1 )
</setting>
<setting>
<conf_id>255</conf_id>
<conf_title><![CDATA[Enable &quot;Plain Mode&quot;?]]></conf_title>
<conf_description><![CDATA["Plain mode" removes the colored chat text from your Invision Power Chat Advanced room(s), and implements single-colored (non-GUI) chat text. This will disable the graphic emoticons and click-able URLs.]]></conf_description>
<conf_id>81</conf_id>
<conf_title><![CDATA[???????? &quot;????????? ?????&quot;?]]></conf_title>
<conf_description><![CDATA[&laquo;????????? ?????&raquo; ??????? ??????? ????? ?? ?????? ?????? Invision Power Chat Advanced. ??? ????? ????????? ??????????? ???????? ? ?????????e URL ??????.]]></conf_description>
<conf_group>21</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>chat04_plainmode</conf_key>
@@ -332,8 +331,8 @@ if ( $show == 1 )
</setting>
<setting>
<conf_id>251</conf_id>
<conf_title>Number of times per day a moderator can warn a single member</conf_title>
<conf_id>237</conf_id>
<conf_title>??????? ??? ?? ???? ????????? ????? ??????? ?????????????? ?????? ?????????????</conf_title>
<conf_description></conf_description>
<conf_group>13</conf_group>
<conf_type>input</conf_type>
@@ -351,16 +350,16 @@ if ( $show == 1 )
</setting>
<setting>
<conf_id>213</conf_id>
<conf_title>Load the chat room in...?</conf_title>
<conf_id>82</conf_id>
<conf_title>????????? ??????? ???? ?...?</conf_title>
<conf_description></conf_description>
<conf_group>21</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>chat04_display</conf_key>
<conf_value></conf_value>
<conf_default>self</conf_default>
<conf_extra>self=Normal IPB Page
new=New Pop Up Window</conf_extra>
<conf_extra>self=?????????? IPB ????????
new=????? ???? (Pop-Up)</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>12</conf_position>
@@ -371,9 +370,9 @@ new=New Pop Up Window</conf_extra>
</setting>
<setting>
<conf_id>211</conf_id>
<conf_title>Chat Room Pop-up Window Padding? (in px)</conf_title>
<conf_description>Allows window to open without scrollbars</conf_description>
<conf_id>83</conf_id>
<conf_title>Pop-up ???? ??????? ???? ????????????? ????????? (? ????????)</conf_title>
<conf_description>????????? ????????? ???? ??? ????? ?????????</conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_poppad</conf_key>
@@ -390,9 +389,9 @@ new=New Pop Up Window</conf_extra>
</setting>
<setting>
<conf_id>256</conf_id>
<conf_title>Applet: Background Color</conf_title>
<conf_description>To change your chat applet background color select any RGB value.</conf_description>
<conf_id>84</conf_id>
<conf_title>???: ???? ????</conf_title>
<conf_description>??? ????????? ????? ???? ?????? ???? ??????? ??????????? ???? ????? (RGB).</conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_style_applet_bg</conf_key>
@@ -409,9 +408,9 @@ new=New Pop Up Window</conf_extra>
</setting>
<setting>
<conf_id>257</conf_id>
<conf_title>Applet: Foreground Color</conf_title>
<conf_description>To change your chat applet foreground color select any RGB value.</conf_description>
<conf_id>85</conf_id>
<conf_title>???: ???? ????????? ?????</conf_title>
<conf_description>??? ????????? ????? ????????? ????? ?????? ???? ??????? ??????????? ???? ????? (RGB).</conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_style_applet_fg</conf_key>
@@ -428,9 +427,9 @@ new=New Pop Up Window</conf_extra>
</setting>
<setting>
<conf_id>258</conf_id>
<conf_title>Chat Window: Background Color</conf_title>
<conf_description>To change your chat window background color select any RGB value.</conf_description>
<conf_id>86</conf_id>
<conf_title>???? ????: ???? ????</conf_title>
<conf_description>??? ????????? ????? ???? ?????? ???? ??????? ??????????? ???? ????? (RGB).</conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_style_window_bg</conf_key>
@@ -447,9 +446,9 @@ new=New Pop Up Window</conf_extra>
</setting>
<setting>
<conf_id>259</conf_id>
<conf_title>Chat Window: Foreground Color</conf_title>
<conf_description>To change your chat window foreground color select any RGB value.</conf_description>
<conf_id>87</conf_id>
<conf_title>???? ????: ???? ????????? ?????</conf_title>
<conf_description>??? ????????? ????? ????????? ????? ?????? ???? ??????? ??????????? ???? ????? (RGB).</conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_style_window_fg</conf_key>
@@ -466,13 +465,13 @@ new=New Pop Up Window</conf_extra>
</setting>
<setting>
<conf_id>261</conf_id>
<conf_title>Additional PARAM information</conf_title>
<conf_description><![CDATA[Use this field to enter any custom param tags for the chat applet.
Example:<br />
<conf_id>88</conf_id>
<conf_title>?????????????? ?????????</conf_title>
<conf_description><![CDATA[??????????? ??? ???? ??? ???????? ????? ??????????? ????? ?????????? ??? ????.
??????:<br />
&lt;param name="cmd.BeepEnter" value="true"&gt;
<br />&lt;param name="cmd.BeepLeave" value="true"&gt;
<br />Please refer to the Invision Chat documentation for more info.]]></conf_description>
<br />?????????? ???????? ???????????? ? Invision Chat ??? ????????? ????????? ??????????.]]></conf_description>
<conf_group>21</conf_group>
<conf_type>textarea</conf_type>
<conf_key>chat04_customparams</conf_key>
@@ -489,9 +488,9 @@ Example:<br />
</setting>
<setting>
<conf_id>110</conf_id>
<conf_title>Remove chr(0xCA) from input?</conf_title>
<conf_description><![CDATA[Can be used as a 'hidden' space to emulate registered names - but can cause problems in non Western character sets.]]></conf_description>
<conf_id>155</conf_id>
<conf_title>??????? ???? chr(0xCA)?</conf_title>
<conf_description><![CDATA[???? <b>chr(0xCA)</b> &#151; ????????? ????????? &laquo;?????????&raquo; ??????? ? ?????????? ???????????? ??????. ?? ? ??????? ????? ???????????? ?? ???????????, ????? ????????.]]></conf_description>
<conf_group>6</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>strip_space_chr</conf_key>
@@ -508,9 +507,9 @@ Example:<br />
</setting>
<setting>
<conf_id>260</conf_id>
<conf_title>Chat Room Font Size</conf_title>
<conf_description><![CDATA[To customize your font size replace "10" to whatever numeric value you wish.]]></conf_description>
<conf_id>89</conf_id>
<conf_title>?????? ?????? ??? ?????? ? ????</conf_title>
<conf_description><![CDATA[??? ????????? ??????? ??????, ???????????? ? ????, ??????????? ??? ?????.]]></conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_style_font_size</conf_key>
@@ -527,9 +526,9 @@ Example:<br />
</setting>
<setting>
<conf_id>214</conf_id>
<conf_title>Allow chat access to these groups</conf_title>
<conf_description>You may select more than one</conf_description>
<conf_id>90</conf_id>
<conf_title>????????? ?????? ? ??? ??? ???? ?????</conf_title>
<conf_description>?? ?????? ???????? ?????, ??? ????</conf_description>
<conf_group>21</conf_group>
<conf_type>multi</conf_type>
<conf_key>chat04_access_groups</conf_key>
@@ -555,7 +554,7 @@ $key = 'chat04_access_groups[]';
}]]></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>25</conf_position>
<conf_start_group>Access Permissions</conf_start_group>
<conf_start_group>????? ???????</conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
+41 -30
View File
@@ -2,17 +2,23 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.0.0 PF1 -> PF 2
@@ -25,7 +31,7 @@
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.";
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
@@ -33,7 +39,7 @@ class version_upgrade
{
var $this_version = '20008';
var $upgrade_from = '20007';
var $first_step = 'update your database to include the new schematic modifications.';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
@@ -44,17 +50,22 @@ class version_upgrade
function version_upgrade()
{
global $ibforums, $std, $DB;
}
function version_process()
{
$this->md5_check = $std->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}";
$this->md5_check = $this->ipsclass->return_md5_check();
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $ibforums->modules_to_run );
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
@@ -69,13 +80,13 @@ class version_upgrade
function auto_run()
{
global $ibforums, $std, $DB;
//--------------------------------
// What are we doing?
//--------------------------------
switch( $ibforums->input['workact'] )
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
@@ -93,18 +104,18 @@ class version_upgrade
function upgrade_sql()
{
global $ibforums, $std, $DB;
$cnt = 0;
$SQL = array();
if ( file_exists( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/'.strtolower($ibforums->vars['sql_driver']).'_updates.php' ) )
if ( file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' ) )
{
require_once( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/'.strtolower($ibforums->vars['sql_driver']).'_updates.php' );
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' );
foreach( $SQL as $q )
{
$DB->query( $q );
$this->ipsclass->DB->query( $q );
$cnt++;
}
@@ -114,7 +125,7 @@ class version_upgrade
// Next page...
//--------------------------------
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "$cnt çàïðîñîâ âûïîëíåíî...." );
}
@@ -124,22 +135,22 @@ class version_upgrade
function upgrade_intro()
{
global $ibforums, $std, $DB;
$ibforums->template->content .= "
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Welcome to the IPB Upgrade System</div>
<div class='tdrow1' style='padding:6px'>This upgrade module will upgrade you from <b>{$ibforums->versions[$this->upgrade_from]}</b> to <b>{$ibforums->versions[$this->this_version]}</b>
<br /><br />This first step will {$this->first_step}
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
$ibforums->template->output();
$this->ipsclass->template->output();
}
+2 -2
View File
@@ -5,7 +5,7 @@ $WRAPPER = <<<EOF
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><% TITLE %></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
<% GENERATOR %>
<% CSS %>
<% JAVASCRIPT %>
@@ -466,7 +466,7 @@ ul#help{
.wrapmini{
float: left;
line-height: 1.5em;
width: 25%;
width: 30%;
}
.pagelinks{
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="windows-1251"?>
<settingexport exported="1094651620">
<settinggroup>
<setting>
<conf_id>218</conf_id>
<conf_title>Forums to export articles from</conf_title>
<conf_description>You may select more than one.</conf_description>
<conf_id>110</conf_id>
<conf_title>?????? ??? ???????? ????????</conf_title>
<conf_description><![CDATA[??????, ???? ?? ??????? ????? ???????????????? ? ??????, ??? ???????. ?? ?????? ??????? ????????? ???????, ????????? &laquo;Ctrl&raquo;.]]></conf_description>
<conf_group>22</conf_group>
<conf_type>multi</conf_type>
<conf_key>csite_article_forum</conf_key>
@@ -36,31 +36,11 @@ $key = 'csite_article_forum[]';
<conf_add_cache>0</conf_add_cache>
</setting>
<setting>
<conf_id>265</conf_id>
<conf_title>Caching PATH</conf_title>
<conf_description><![CDATA[<b>This can be left blank</b>
<br />This is useful for specifing a PATH for the IPB written files (skin_cache, style_avatars, style_emoticons, style_images) when dealing with load balanced/clustered servers. If you enter a PATH, please ensure that it ends with a trailing slash]]></conf_description>
<conf_group>1</conf_group>
<conf_type>input</conf_type>
<conf_key>ipb_cache_path</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>8</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
</setting>
<setting>
<conf_id>264</conf_id>
<conf_title>Image URL</conf_title>
<conf_description><![CDATA[<b>This can be left blank</b>
<br />This can be used if you wish to serve images from a different server or when using clustered servers. Please ensure that you use a trailing slash and that it starts with http(s):// if entering a URL]]></conf_description>
<conf_id>61</conf_id>
<conf_title>URL ????? ? ????????????</conf_title>
<conf_description><![CDATA[<b>????????????? ? ??????????</b><br />??? ??????? ???? ?? ??????? ????????? ??????????? ?? ?????? ??????? ??? ????? ???????????? ?????????? ??????.<br /><br />???? ?? ??????? ????? ????, ?????????, ??? ?? ???????????? &laquo;??????&raquo;.]]></conf_description>
<conf_group>1</conf_group>
<conf_type>input</conf_type>
<conf_key>ipb_img_url</conf_key>
+43 -32
View File
@@ -2,17 +2,23 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.0.0 PF3 -> PF 4
@@ -25,7 +31,7 @@
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.";
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
@@ -33,7 +39,7 @@ class version_upgrade
{
var $this_version = '20009';
var $upgrade_from = '20008';
var $first_step = 'update your database to include the new schematic modifications.';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
@@ -44,17 +50,22 @@ class version_upgrade
function version_upgrade()
{
global $ibforums, $std, $DB;
}
function version_process()
{
$this->md5_check = $std->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}";
$this->md5_check = $this->ipsclass->return_md5_check();
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $ibforums->modules_to_run );
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
@@ -69,13 +80,13 @@ class version_upgrade
function auto_run()
{
global $ibforums, $std, $DB;
//--------------------------------
// What are we doing?
//--------------------------------
switch( $ibforums->input['workact'] )
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
@@ -93,18 +104,18 @@ class version_upgrade
function upgrade_sql()
{
global $ibforums, $std, $DB;
$cnt = 0;
$SQL = array();
if ( file_exists( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/'.strtolower($ibforums->vars['sql_driver']).'_updates.php' ) )
if ( file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' ) )
{
require_once( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/'.strtolower($ibforums->vars['sql_driver']).'_updates.php' );
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' );
foreach( $SQL as $q )
{
$DB->query( $q );
$this->ipsclass->DB->query( $q );
$cnt++;
}
@@ -114,9 +125,9 @@ class version_upgrade
// Upgrade templates
//--------------------------------
require_once( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/components.php' );
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/components.php' );
$DB->do_update( 'skin_sets', array( 'set_css' => $CSS,
$this->ipsclass->DB->do_update( 'skin_sets', array( 'set_css' => $CSS,
'set_cache_css' => $CSS,
'set_wrapper' => $WRAPPER,
'set_cache_wrapper' => $WRAPPER,
@@ -128,7 +139,7 @@ class version_upgrade
// Next page...
//--------------------------------
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "$cnt çàïðîñîâ âûïîëíåíî...." );
}
@@ -138,22 +149,22 @@ class version_upgrade
function upgrade_intro()
{
global $ibforums, $std, $DB;
$ibforums->template->content .= "
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Welcome to the IPB Upgrade System</div>
<div class='tdrow1' style='padding:6px'>This upgrade module will upgrade you from <b>{$ibforums->versions[$this->upgrade_from]}</b> to <b>{$ibforums->versions[$this->this_version]}</b>
<br /><br />This first step will {$this->first_step}
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
$ibforums->template->output();
$this->ipsclass->template->output();
}
+2 -2
View File
@@ -5,7 +5,7 @@ $WRAPPER = <<<EOF
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><% TITLE %></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
<% GENERATOR %>
<% CSS %>
<% JAVASCRIPT %>
@@ -466,7 +466,7 @@ ul#help{
.wrapmini{
float: left;
line-height: 1.5em;
width: 25%;
width: 30%;
}
.pagelinks{
+43 -32
View File
@@ -2,17 +2,23 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v2.0.0
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.0.0 PF4 -> FINAL
@@ -25,7 +31,7 @@
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.";
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
@@ -33,7 +39,7 @@ class version_upgrade
{
var $this_version = '20010';
var $upgrade_from = '20009';
var $first_step = 'update your database to include the new schematic modifications.';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
@@ -44,17 +50,22 @@ class version_upgrade
function version_upgrade()
{
global $ibforums, $std, $DB;
}
function version_process()
{
$this->md5_check = $std->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}";
$this->md5_check = $this->ipsclass->return_md5_check();
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $ibforums->modules_to_run );
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
@@ -69,13 +80,13 @@ class version_upgrade
function auto_run()
{
global $ibforums, $std, $DB;
//--------------------------------
// What are we doing?
//--------------------------------
switch( $ibforums->input['workact'] )
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
@@ -93,18 +104,18 @@ class version_upgrade
function upgrade_sql()
{
global $ibforums, $std, $DB;
$cnt = 0;
$SQL = array();
if ( file_exists( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/'.strtolower($ibforums->vars['sql_driver']).'_updates.php' ) )
if ( file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' ) )
{
require_once( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/'.strtolower($ibforums->vars['sql_driver']).'_updates.php' );
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' );
foreach( $SQL as $q )
{
$DB->query( $q );
$this->ipsclass->DB->query( $q );
$cnt++;
}
@@ -114,9 +125,9 @@ class version_upgrade
// Upgrade templates
//--------------------------------
require_once( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/components.php' );
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/components.php' );
$DB->do_update( 'skin_sets', array( 'set_css' => $CSS,
$this->ipsclass->DB->do_update( 'skin_sets', array( 'set_css' => $CSS,
'set_cache_css' => $CSS,
'set_wrapper' => $WRAPPER,
'set_cache_wrapper' => $WRAPPER,
@@ -128,7 +139,7 @@ class version_upgrade
// Next page...
//--------------------------------
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "$cnt çàïðîñîâ âûïîëíåíî...." );
}
@@ -138,22 +149,22 @@ class version_upgrade
function upgrade_intro()
{
global $ibforums, $std, $DB;
$ibforums->template->content .= "
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Welcome to the IPB Upgrade System</div>
<div class='tdrow1' style='padding:6px'>This upgrade module will upgrade you from <b>{$ibforums->versions[$this->upgrade_from]}</b> to <b>{$ibforums->versions[$this->this_version]}</b>
<br /><br />This first step will {$this->first_step}
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
$ibforums->template->output();
$this->ipsclass->template->output();
}
@@ -0,0 +1,5 @@
<?php
# Boo.
?>
@@ -0,0 +1,18 @@
<?php
$import_versions = array(
'20001' => '2.0.0 PDR 1',
'20002' => '2.0.0 PDR 2',
'20003' => '2.0.0 PDR 3',
'20004' => '2.0.0 PDR 4',
'20005' => '2.0.0 PDR 5',
'20006' => '2.0.0 PF 1',
'20007' => '2.0.0 PF 2',
'20008' => '2.0.0 PF 3',
'20009' => '2.0.0 PF 4',
'20010' => '2.0.0 FINAL',
'20011' => '2.0.1 FINAL',
);
?>
@@ -0,0 +1,177 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| 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: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.0.0 PF4 -> FINAL
| > 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 $this_version = '20011';
var $upgrade_from = '20010';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade()
{
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
{
$this->mod_to_run = 'None';
}
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//--------------------------------
// What are we doing?
//--------------------------------
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
break;
default:
$this->upgrade_intro();
break;
}
}
/*-------------------------------------------------------------------------*/
// SQL
/*-------------------------------------------------------------------------*/
function upgrade_sql()
{
$cnt = 0;
$SQL = array();
if ( file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' ) )
{
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' );
foreach( $SQL as $q )
{
$this->ipsclass->DB->query( $q );
$cnt++;
}
}
//--------------------------------
// Upgrade templates
//--------------------------------
if ( file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/components.php' ) )
{
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/components.php' );
$this->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' );
}
$cnt++;
//--------------------------------
// Next page...
//--------------------------------
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "$cnt çàïðîñîâ âûïîëíåíî...." );
}
/*-------------------------------------------------------------------------*/
// INTRO
/*-------------------------------------------------------------------------*/
function upgrade_intro()
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
$this->ipsclass->template->output();
}
}
?>
@@ -0,0 +1,19 @@
<?php
# Fix bug where unread PM count not incremented
$SQL[] = "ALTER TABLE ibf_members change msg_total msg_total smallint(5) default '0'";
$SQL[] = "ALTER TABLE ibf_members change new_msg new_msg smallint(5) default '0'";
$SQL[] = "UPDATE ibf_members SET new_msg=0";
# Add WIZZY Blog hook
$SQL[] = "ALTER TABLE ibf_members add has_blog TINYINT(1) NOT NULL default '0'";
# Efficiency
$SQL[] = "ALTER TABLE ibf_members_converge ADD INDEX converge_email(converge_email)";
$SQL[] = "ALTER TABLE ibf_polls ADD INDEX tid(tid)";
?>
@@ -0,0 +1,19 @@
<?php
$import_versions = array(
'20001' => '2.0.0 PDR 1',
'20002' => '2.0.0 PDR 2',
'20003' => '2.0.0 PDR 3',
'20004' => '2.0.0 PDR 4',
'20005' => '2.0.0 PDR 5',
'20006' => '2.0.0 PF 1',
'20007' => '2.0.0 PF 2',
'20008' => '2.0.0 PF 3',
'20009' => '2.0.0 PF 4',
'20010' => '2.0.0 FINAL',
'20011' => '2.0.1 FINAL',
'20012' => '2.0.2 FINAL',
);
?>
@@ -0,0 +1,177 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| 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: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.0.0 PF4 -> FINAL
| > 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 $this_version = '20012';
var $upgrade_from = '20011';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade()
{
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
{
$this->mod_to_run = 'None';
}
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//--------------------------------
// What are we doing?
//--------------------------------
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
break;
default:
$this->upgrade_intro();
break;
}
}
/*-------------------------------------------------------------------------*/
// SQL
/*-------------------------------------------------------------------------*/
function upgrade_sql()
{
$cnt = 0;
$SQL = array();
if ( file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' ) )
{
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' );
foreach( $SQL as $q )
{
$this->ipsclass->DB->query( $q );
$cnt++;
}
}
//--------------------------------
// Upgrade templates
//--------------------------------
if ( file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/components.php' ) )
{
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/components.php' );
$this->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' );
}
$cnt++;
//--------------------------------
// Next page...
//--------------------------------
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "$cnt çàïðîñîâ âûïîëíåíî...." );
}
/*-------------------------------------------------------------------------*/
// INTRO
/*-------------------------------------------------------------------------*/
function upgrade_intro()
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
$this->ipsclass->template->output();
}
}
?>
@@ -0,0 +1,5 @@
<?php
# Nothing of interest!
?>
@@ -0,0 +1,20 @@
<?php
$import_versions = array(
'20001' => '2.0.0 PDR 1',
'20002' => '2.0.0 PDR 2',
'20003' => '2.0.0 PDR 3',
'20004' => '2.0.0 PDR 4',
'20005' => '2.0.0 PDR 5',
'20006' => '2.0.0 PF 1',
'20007' => '2.0.0 PF 2',
'20008' => '2.0.0 PF 3',
'20009' => '2.0.0 PF 4',
'20010' => '2.0.0 FINAL',
'20011' => '2.0.1 FINAL',
'20012' => '2.0.2 FINAL',
'20013' => '2.0.3 FINAL',
);
?>
@@ -0,0 +1,177 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| 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: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 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>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class version_upgrade
{
var $this_version = '20013';
var $upgrade_from = '20012';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade()
{
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
{
$this->mod_to_run = 'None';
}
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//--------------------------------
// What are we doing?
//--------------------------------
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
break;
default:
$this->upgrade_intro();
break;
}
}
/*-------------------------------------------------------------------------*/
// SQL
/*-------------------------------------------------------------------------*/
function upgrade_sql()
{
$cnt = 0;
$SQL = array();
if ( file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' ) )
{
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' );
foreach( $SQL as $q )
{
$this->ipsclass->DB->query( $q );
$cnt++;
}
}
//--------------------------------
// Upgrade templates
//--------------------------------
if ( file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/components.php' ) )
{
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/components.php' );
$this->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' );
}
$cnt++;
//--------------------------------
// Next page...
//--------------------------------
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "$cnt çàïðîñîâ âûïîëíåíî...." );
}
/*-------------------------------------------------------------------------*/
// INTRO
/*-------------------------------------------------------------------------*/
function upgrade_intro()
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
$this->ipsclass->template->output();
}
}
?>
@@ -0,0 +1,5 @@
<?php
# Nothing of interest!
?>
@@ -0,0 +1,21 @@
<?php
$import_versions = array(
'20001' => '2.0.0 PDR 1',
'20002' => '2.0.0 PDR 2',
'20003' => '2.0.0 PDR 3',
'20004' => '2.0.0 PDR 4',
'20005' => '2.0.0 PDR 5',
'20006' => '2.0.0 PF 1',
'20007' => '2.0.0 PF 2',
'20008' => '2.0.0 PF 3',
'20009' => '2.0.0 PF 4',
'20010' => '2.0.0 FINAL',
'20011' => '2.0.1 FINAL',
'20012' => '2.0.2 FINAL',
'20013' => '2.0.3 FINAL',
'20014' => '2.0.4 FINAL',
);
?>
@@ -0,0 +1,177 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| 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: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 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>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class version_upgrade
{
var $this_version = '20014';
var $upgrade_from = '20013';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade()
{
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
{
$this->mod_to_run = 'None';
}
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//--------------------------------
// What are we doing?
//--------------------------------
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
break;
default:
$this->upgrade_intro();
break;
}
}
/*-------------------------------------------------------------------------*/
// SQL
/*-------------------------------------------------------------------------*/
function upgrade_sql()
{
$cnt = 0;
$SQL = array();
if ( file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' ) )
{
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' );
foreach( $SQL as $q )
{
$this->ipsclass->DB->query( $q );
$cnt++;
}
}
//--------------------------------
// Upgrade templates
//--------------------------------
if ( file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/components.php' ) )
{
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/components.php' );
$this->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' );
}
$cnt++;
//--------------------------------
// Next page...
//--------------------------------
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "$cnt çàïðîñîâ âûïîëíåíî...." );
}
/*-------------------------------------------------------------------------*/
// INTRO
/*-------------------------------------------------------------------------*/
function upgrade_intro()
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
$this->ipsclass->template->output();
}
}
?>
File diff suppressed because it is too large. Load diff
+845
View File
@@ -0,0 +1,845 @@
<?xml version="1.0" encoding="WINDOWS-1251"?>
<permsexport exported="1123061157" versionid="2.1.0" type="master">
<permsgroup>
<perm>
<acpperm_bit>recache</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>admin</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>adminlog</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>attach</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>attach</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>attach</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>attach</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>attach</acpperm_child>
</perm>
<perm>
<acpperm_bit>stats</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>attach</acpperm_child>
</perm>
<perm>
<acpperm_bit>search</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>attach</acpperm_child>
</perm>
<perm>
<acpperm_bit>bw-add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>bw-remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>bw-edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>bw-export</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>bw-import</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>ban-view</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>ban-add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>ban-remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>bbcode</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>bbcode</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>bbcode</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>bbcode</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>bbcode</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>calendars</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>calendars</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>calendars</acpperm_child>
</perm>
<perm>
<acpperm_bit>recache</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>calendars</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>components</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>components</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>components</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>components</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>emailerror</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>emaillog</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>emoticons</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>emoticons</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>emoticons</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>emoticons</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>emoticons</acpperm_child>
</perm>
<perm>
<acpperm_bit>upload</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>emoticons</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>permedit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>reorder</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>recount</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>empty</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>rules</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>skin</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>group</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>group</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>group</acpperm_child>
</perm>
<perm>
<acpperm_bit>perms</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>group</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>help</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>help</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>help</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>lang</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>lang</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>lang</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>lang</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>lang</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>login</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>login</acpperm_child>
</perm>
<perm>
<acpperm_bit>diagnostics</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>login</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>login</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>login</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>suspend</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>title-view</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>title-edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>title-add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>title-remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>mod</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>ban</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>view</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mtools</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mod</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mod</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mod</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>modlog</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>multimod</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>multimod</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>multimod</acpperm_child>
</perm>
<perm>
<acpperm_bit>install</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>msubs</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>msubs</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>msubs</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>msubs</acpperm_child>
</perm>
<perm>
<acpperm_bit>search</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>msubs</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>portal</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>postoffice</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>postoffice</acpperm_child>
</perm>
<perm>
<acpperm_bit>send</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>postoffice</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>postoffice</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>field</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>field</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>field</acpperm_child>
</perm>
<perm>
<acpperm_bit>recount</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>rebuild</acpperm_child>
</perm>
<perm>
<acpperm_bit>rebuild</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>rebuild</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssexport</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssexport</acpperm_child>
</perm>
<perm>
<acpperm_bit>recache</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssexport</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssexport</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssimport</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssimport</acpperm_child>
</perm>
<perm>
<acpperm_bit>recache</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssimport</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssimport</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>op</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>op</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>op</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>op</acpperm_child>
</perm>
<perm>
<acpperm_bit>search</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>op</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>op</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>style</acpperm_child>
</perm>
<perm>
<acpperm_bit>rundiff</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>skindiff</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>skindiff</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>skindiff</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>import</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>import</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>image</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>image</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>image</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>sets</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>sets</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>sets</acpperm_child>
</perm>
<perm>
<acpperm_bit>rebuild</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>sets</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>templ</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>templ</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>templ</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>wrap</acpperm_child>
</perm>
<perm>
<acpperm_bit>recache</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>skintools</acpperm_child>
</perm>
<perm>
<acpperm_bit>changemember</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>skintools</acpperm_child>
</perm>
<perm>
<acpperm_bit>search</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>skintools</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>spiderlog</acpperm_child>
</perm>
<perm>
<acpperm_bit>show</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>stats</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>task</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>task</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>task</acpperm_child>
</perm>
<perm>
<acpperm_bit>runnow</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>task</acpperm_child>
</perm>
<perm>
<acpperm_bit>log</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>task</acpperm_child>
</perm>
<perm>
<acpperm_bit>view</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>warnlog</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>warnlog</acpperm_child>
</perm>
</permsgroup>
</permsexport>
File diff suppressed because it is too large. Load diff
+224
View File
@@ -0,0 +1,224 @@
<?php
# Nothing of interest!
// $SQL[] = "";
$SQL[] = "CREATE TABLE ibf_components (
com_id INT(10) NOT NULL auto_increment,
com_title VARCHAR(255) NOT NULL default '',
com_author VARCHAR(255) NOT NULL default '',
com_url VARCHAR(255) NOT NULL default '',
com_version VARCHAR(255) NOT NULL default '',
com_date_added INT(10) NOT NULL default '0',
com_menu_data MEDIUMTEXT NOT NULL default '',
com_enabled TINYINT(1) NOT NULL default '1',
com_safemode TINYINT(1) NOT NULL default '1',
com_section VARCHAR(255) NOT NULL default '',
com_filename VARCHAR(255) NOT NULL default '',
com_description VARCHAR(255) NOT NULL default '',
com_url_title VARCHAR(255) NOT NULL default '',
com_url_uri VARCHAR(255) NOT NULL default '',
com_position INT(3) NOT NULL default '10',
PRIMARY KEY(com_id)
);";
$SQL[] = "CREATE TABLE ibf_topic_views (
views_tid int(10) NOT NULL default '0'
);";
$SQL[] = "CREATE TABLE ibf_topic_ratings (
rating_id INT(10) NOT NULL auto_increment,
rating_tid INT(10) NOT NULL default '0',
rating_member_id mediumint(8) NOT NULL default '0',
rating_value SMALLINT NOT NULL default '0',
rating_ip_address VARCHAR(16) NOT NULL default '',
PRIMARY KEY(rating_id),
KEY rating_tid (rating_tid, rating_member_id)
);";
$SQL[] = "CREATE TABLE ibf_topic_markers (
marker_member_id INT(8) NOT NULL default '0',
marker_forum_id INT(10) NOT NULL default '0',
marker_last_update INT(10) NOT NULL default '0',
marker_unread SMALLINT(5) NOT NULL default '0',
marker_topics_read TEXT NOT NULL default '',
marker_last_cleared INT(10) NOT NULL default '0',
UNIQUE KEY marker_forum_id( marker_forum_id, marker_member_id ),
KEY marker_member_id (marker_member_id)
);";
$SQL[] = "CREATE TABLE ibf_rss_import (
rss_import_id INT(10) NOT NULL auto_increment,
rss_import_enabled TINYINT(1) NOT NULL default '0',
rss_import_title VARCHAR(255) NOT NULL default '',
rss_import_url VARCHAR(255) NOT NULL default '',
rss_import_forum_id INT(10) NOT NULL default '0',
rss_import_mid MEDIUMINT(8) NOT NULL default '0',
rss_import_pergo SMALLINT(3) NOT NULL default '0',
rss_import_time SMALLINT(3) NOT NULL default '0',
rss_import_last_import INT(10) NOT NULL default '0',
rss_import_showlink VARCHAR(255) NOT NULL default '0',
rss_import_topic_open TINYINT(1) NOT NULL default '0',
rss_import_topic_hide TINYINT(1) NOT NULL default '0',
rss_import_inc_pcount TINYINT(1) NOT NULL default '0',
rss_import_topic_pre VARCHAR(50) NOT NULL default '',
rss_import_charset VARCHAR(200) NOT NULL default '',
PRIMARY KEY ( rss_import_id )
);";
$SQL[] = "CREATE TABLE ibf_rss_imported (
rss_imported_guid CHAR(32) NOT NULL default '0',
rss_imported_tid INT(10) NOT NULL default '0',
rss_imported_impid INT(10) NOT NULL default '0',
PRIMARY KEY ( rss_imported_guid ),
KEY (rss_imported_impid)
);";
$SQL[] = "CREATE TABLE ibf_rss_export (
rss_export_id int(10) NOT NULL auto_increment,
rss_export_enabled tinyint(1) NOT NULL default '0',
rss_export_title varchar(255) NOT NULL default '',
rss_export_desc varchar(255) NOT NULL default '',
rss_export_image varchar(255) NOT NULL default '',
rss_export_forums text,
rss_export_include_post tinyint(1) NOT NULL default '0',
rss_export_count smallint(3) NOT NULL default '0',
rss_export_cache_time smallint(3) NOT NULL default '30',
rss_export_cache_last int(10) NOT NULL default '0',
rss_export_cache_content mediumtext,
rss_export_sort varchar(4) NOT NULL default 'DESC',
rss_export_order varchar(20) NOT NULL default 'start_date',
PRIMARY KEY (rss_export_id)
);";
$SQL[] = "CREATE TABLE ibf_cal_events (
event_id INT(10) UNSIGNED NOT NULL auto_increment,
event_calendar_id INT(10) UNSIGNED NOT NULL DEFAULT '0',
event_member_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
event_content MEDIUMTEXT NOT NULL,
event_title VARCHAR(255) NOT NULL DEFAULT '',
event_smilies TINYINT(1) NOT NULL DEFAULT '0',
event_perms TEXT NOT NULL,
event_private TINYINT(1) NOT NULL DEFAULT '0',
event_approved TINYINT(1) NOT NULL DEFAULT '0',
event_unixstamp INT(10) UNSIGNED NOT NULL DEFAULT '0',
event_recurring INT(2) UNSIGNED NOT NULL DEFAULT '0',
event_tz INT(4) NOT NULL DEFAULT '0',
event_unix_from INT(10) UNSIGNED NOT NULL DEFAULT '0',
event_unix_to INT(10) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (event_id),
KEY daterange (event_calendar_id,event_approved,event_unix_from,event_unix_to),
KEY approved ( event_calendar_id, event_approved )
);";
$SQL[] = "CREATE TABLE ibf_members_partial (
partial_id INT(10) NOT NULL auto_increment,
partial_member_id INT(8) NOT NULL default '0',
partial_date INT(10) NOT NULL default '0',
PRIMARY KEY( partial_id ),
KEY partial_member_id ( partial_member_id )
);";
$SQL[] = "CREATE TABLE ibf_dnames_change (
dname_id INT(10) NOT NULL auto_increment,
dname_member_id INT(8) NOT NULL default '0',
dname_date INT(10) NOT NULL default '0',
dname_ip_address VARCHAR(16) NOT NULL default '',
dname_previous VARCHAR(255) NOT NULL default '',
dname_current VARCHAR(255) NOT NULL default '',
PRIMARY KEY( dname_id ),
KEY dname_member_id(dname_member_id),
KEY date_id ( dname_member_id, dname_date )
);";
$SQL[] = "CREATE TABLE ibf_cal_calendars (
cal_id INT(10) UNSIGNED NOT NULL auto_increment,
cal_title VARCHAR(255) NOT NULL DEFAULT '0',
cal_moderate TINYINT(1) NOT NULL DEFAULT '0',
cal_position INT(3) UNSIGNED NOT NULL DEFAULT '0',
cal_event_limit INT(2) UNSIGNED NOT NULL DEFAULT '0',
cal_bday_limit INT(2) UNSIGNED NOT NULL DEFAULT '0',
cal_rss_export TINYINT(1) NOT NULL DEFAULT '0',
cal_rss_export_days TINYINT(1) NOT NULL DEFAULT '0',
cal_rss_export_max INT(3) UNSIGNED NOT NULL DEFAULT '0',
cal_rss_update INT(3) UNSIGNED NOT NULL DEFAULT '0',
cal_rss_update_last INT(10) UNSIGNED NOT NULL DEFAULT '0',
cal_rss_cache MEDIUMTEXT NOT NULL,
cal_permissions MEDIUMTEXT NOT NULL,
PRIMARY KEY ( cal_id )
);";
$SQL[] = "CREATE TABLE ibf_login_methods (
login_id INT(10) NOT NULL auto_increment,
login_title VARCHAR(255) NOT NULL default '',
login_description VARCHAR(255) NOT NULL default '',
login_folder_name VARCHAR(255) NOT NULL default '',
login_maintain_url VARCHAR(255) NOT NULL default '',
login_register_url VARCHAR(255) NOT NULL default '',
login_type VARCHAR(30) NOT NULL default '',
login_alt_login_html TEXT,
login_date INT(10) NOT NULL default '0',
login_settings INT(1) NOT NULL default '0',
login_enabled INT(1) NOT NULL default '0',
login_safemode INT(1) NOT NULL default '0',
login_installed INT(1) NOT NULL default '0',
login_replace_form INT(1) NOT NULL default '0',
login_allow_create INT(1) NOT NULL default '0',
PRIMARY KEY (login_id)
);";
$SQL[] = "CREATE TABLE ibf_admin_permission_rows (
row_member_id INT(8) NOT NULL,
row_perm_cache MEDIUMTEXT,
row_updated INT(10) NOT NULL DEFAULT '0',
PRIMARY KEY (row_member_id)
);";
$SQL[] = "CREATE TABLE ibf_admin_permission_keys (
perm_key VARCHAR(255) NOT NULL,
perm_main VARCHAR(255) NOT NULL,
perm_child VARCHAR(255) NOT NULL,
perm_bit VARCHAR(255) NOT NULL,
PRIMARY KEY (perm_key),
KEY perm_main (perm_main),
KEY perm_child (perm_child)
);";
$SQL[] = "CREATE TABLE ibf_templates_diff_import (
diff_key VARCHAR(255) NOT NULL,
diff_func_group VARCHAR(150) NOT NULL,
diff_func_name VARCHAR(250) NOT NULL,
diff_func_data TEXT,
diff_func_content MEDIUMTEXT,
diff_session_id INT(10) NOT NULL default '0',
PRIMARY KEY (diff_key),
KEY diff_func_group (diff_func_group),
KEY diff_func_name (diff_func_name)
);";
$SQL[] = "CREATE TABLE ibf_template_diff_session (
diff_session_id INT(10) NOT NULL auto_increment,
diff_session_togo INT(10) NOT NULL default '0',
diff_session_done INT(10) NOT NULL default '0',
diff_session_updated INT(10) NOT NULL default '0',
diff_session_title VARCHAR(255) NOT NULL default '',
diff_session_ignore_missing INT(1) NOT NULL default '0',
PRIMARY KEY (diff_session_id)
);";
$SQL[] = "CREATE TABLE ibf_template_diff_changes (
diff_change_key VARCHAR(255) NOT NULL,
diff_change_func_group VARCHAR(150) NOT NULL,
diff_change_func_name VARCHAR(250) NOT NULL,
diff_change_content MEDIUMTEXT,
diff_change_type INT(1) NOT NULL default '0',
diff_session_id INT(10) NOT NULL default '0',
PRIMARY KEY (diff_change_key),
KEY diff_change_func_group (diff_change_func_group),
KEY diff_change_type (diff_change_type)
);";
?>
@@ -0,0 +1,24 @@
<?php
# Nothing of interest!
$SQL[] = "ALTER TABLE ibf_members ADD members_auto_dst TINYINT(1) NOT NULL default '1';";
$SQL[] = "ALTER TABLE ibf_members CHANGE new_msg new_msg tinyint(2) default '0',
CHANGE msg_total msg_total smallint(5) default '0',
ADD members_cache MEDIUMTEXT default '',
ADD members_disable_pm INT(1) NOT NULL default '0';";
$SQL[] = "ALTER TABLE ibf_members ADD members_display_name VARCHAR(255) NOT NULL default '', ADD members_created_remote TINYINT(1) NOT NULL default '0';";
$SQL[] = "ALTER TABLE ibf_members ADD INDEX members_display_name( members_display_name );";
$SQL[] = "ALTER TABLE ibf_members ADD members_editor_choice VARCHAR(3) NOT NULL default 'std';";
$SQL[] = "ALTER TABLE ibf_members ADD members_markers TEXT NOT NULL default '';";
$SQL[] = "ALTER TABLE ibf_message_text ADD msg_ip_address VARCHAR(16) NOT NULL default '0';";
$SQL[] = "UPDATE ibf_members SET members_display_name=name;";
?>
@@ -0,0 +1,16 @@
<?php
# Nothing of interest!
$SQL[] = "ALTER TABLE ibf_topics CHANGE approved approved tinyint(1) NOT NULL default '0';";
$SQL[] = "ALTER TABLE ibf_topics DROP INDEX last_post;";
$SQL[] = "ALTER TABLE ibf_topics DROP INDEX forum_id;";
$SQL[] = "alter table ibf_topics add index forum_id( forum_id, pinned, approved);";
$SQL[] = "ALTER TABLE ibf_topics add index last_post(forum_id, pinned, last_post);";
$SQL[] = "ALTER TABLE ibf_topics ADD topic_rating_total SMALLINT UNSIGNED NOT NULL default '0';";
$SQL[] = "ALTER TABLE ibf_topics ADD topic_rating_hits SMALLINT UNSIGNED NOT NULL default '0';";
$SQL[] = "ALTER TABLE ibf_topics DROP rating;";
$SQL[] = "alter table ibf_topics ADD topic_open_time INT(10) NOT NULL default '0';";
$SQL[] = "alter table ibf_topics ADD topic_close_time INT(10) NOT NULL default '0';";
?>
@@ -0,0 +1,31 @@
<?php
# Nothing of interest!
$SQL[] = "ALTER TABLE ibf_sessions ADD location_1_type char(10) NOT NULL default '',
ADD location_1_id int(10) NOT NULL default '0',
ADD location_2_type char(10) NOT NULL default '',
ADD location_2_id int(10) NOT NULL default '0',
ADD location_3_type char(10) NOT NULL default '',
ADD location_3_id int(10) NOT NULL default '0';";
$SQL[] = "ALTER TABLE ibf_sessions ADD INDEX location1(location_1_type, location_1_id);";
$SQL[] = "ALTER TABLE ibf_sessions ADD INDEX location2(location_2_type, location_2_id);";
$SQL[] = "ALTER TABLE ibf_sessions ADD INDEX location3(location_3_type, location_3_id);";
$SQL[] = "ALTER TABLE ibf_sessions DROP in_forum, DROP in_topic;";
$SQL[] = "ALTER TABLE ibf_forums ADD forum_last_deletion INT(10) NOT NULL default '0';";
$SQL[] = "ALTER TABLE ibf_forums ADD forum_allow_rating TINYINT(1) NOT NULL default '0';";
$SQL[] = "ALTER TABLE ibf_groups ADD g_topic_rate_setting SMALLINT(2) NOT NULL default '0';";
$SQL[] = "alter table ibf_validating ADD user_verified tinyint(1) NOT NULL default '0';";
$SQL[] = "alter table ibf_moderators ADD mod_can_set_open_time tinyint(1) NOT NULL default '0';";
$SQL[] = "alter table ibf_moderators ADD mod_can_set_close_time tinyint(1) NOT NULL default '0';";
$SQL[] = "alter table ibf_task_manager ADD task_locked INT(10) NOT NULL default '0';";
$SQL[] = "alter table ibf_groups ADD g_dname_changes INT(3) NOT NULL default '0',
ADD g_dname_date INT(5) NOT NULL default '0';";
$SQL[] = "
ALTER TABLE ibf_search_results ADD PRIMARY KEY(id);";
$SQL[] = "ALTER TABLE ibf_search_results ADD INDEX search_date(search_date);";
?>
@@ -0,0 +1,62 @@
<?php
# 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 Community Blog\";s:7:\"pc_desc\";s:40:\"Ïîêàç èíôîðìàöèè îò áëîãà â ïîðòàëå\";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 Êàëåíäàðü\";s:7:\"pc_desc\";s:46:\"Îòîáðàæàåò ìèíè-êàëåíäàðü äëÿ òåêóùåãî ìåñÿöà\";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:\"Ïîêàçûâàåò êàëåíäàðü íà òåêóùèé ìåñÿö\";}}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:\"Îòîáðàæàåò íà ïîðòàëå èíôîðìàöèþ ñ ãàëåðåè\";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:\"Ïîêàçûâàåòñÿ ñëó÷àéíîå èçîáðàæåíèå èç ïîëüçîâàòåëüñêîé ãàëåðåè\";}}s:6:\"pc_key\";s:7:\"gallery\";}s:12:\"online_users\";a:5:{s:8:\"pc_title\";s:33:\"Invision Power Board Àêòèâíûå Ïîëüçîâàòåëè\";s:7:\"pc_desc\";s:49:\"Ïîêàçûâàå èìåíà òåêóùèõ ïîëüçîâàòåëåé â îíëàéíå\";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:\"Ïîêàçûâàåò àêòèâíûõ ïîëüçîâàòåëåé\";}}s:6:\"pc_key\";s:12:\"online_users\";}s:4:\"poll\";a:5:{s:8:\"pc_title\";s:25:\"Invision Power Board Îïðîñ\";s:7:\"pc_desc\";s:23:\"Ïîêàçûâàåò âûáðàííûé îïðîñ\";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 Ïîñëåäíèå Òåìû\";s:7:\"pc_desc\";s:47:\"Ïîêàçûâàåò ïîñëåäíèå òåìû ñ ïåðâûì ñîîáùåíèåì â íèõ\";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:\"Ïîêàçûâàåò X ïîñëåäíèõ òåì ñ ïåðâûì ñîîáùåíèåì â íèõ èç âûáðàííûõ ôîðóìîâ\";}s:32:\"recent_topics_discussions_last_x\";a:2:{i:0;s:32:\"recent_topics_discussions_last_x\";i:1;s:54:\"Ïîêàçûâàåò X çàãîëîâêîâ òåì èç âñåõ âèäèìûõ ôîðóìîâ\";}}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_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_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 (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_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[] ="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',
'csite_discuss_max' , 'csite_discuss_len', 'csite_poll_url',
'csite_online_show', 'poll_disable_noreply' );";
# UPDATE KNOWN CONF_TITLE KEYS
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='general' WHERE conf_title_id=1";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='boardoffline' WHERE conf_title_id=15";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='calendar' WHERE conf_title_id=9";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='converge' WHERE conf_title_id=18";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='coppa' WHERE conf_title_id=8";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='cpusaving' WHERE conf_title_id=2";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='date' WHERE conf_title_id=3";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='email' WHERE conf_title_id=12";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='searchsetup' WHERE conf_title_id=19";
// IBResource added
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='userprofiles' WHERE conf_title_id=4";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='topicspostsandpolls' WHERE conf_title_id=5";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='securityandprivacy' WHERE conf_title_id=6";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='cookies' WHERE conf_title_id=7";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='newssetup' WHERE conf_title_id=10";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='personalmessagesetup' WHERE conf_title_id=11";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='warnsetup' WHERE conf_title_id=13";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='trashcansetup' WHERE conf_title_id=14";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='searchenginespiders' WHERE conf_title_id=16";
$SQL[] = "UPDATE ibf_conf_settings_titles SET conf_title_keyword='boardguidelines' WHERE conf_title_id=17";
//IBResource added
$SQL[] = "UPDATE ibf_conf_settings SET conf_group='19' WHERE conf_key='min_search_word'";
$SQL[] = "UPDATE ibf_conf_settings SET conf_type='dropdown', conf_extra='0=Íåò\n1=Äà ( Ñåãîäíÿ è Â÷åðà )\n2=Äà ( Ïîñëåäíèå X ìèíóò, Ñåãîäíÿ è Â÷åðà)\n3=Äà ( Ïîëíîñòüþ — ìèíóòû, ÷àñû è äíè )' WHERE conf_key='time_use_relative'";
// already fixed in upg/21005
//$SQL[] = "UPDATE ibf_conf_settings SET conf_position='15' WHERE conf_key='max_h_flash'";
$SQL[] = "UPDATE ibf_conf_settings SET conf_end_group='1' WHERE conf_key='startpoll_cutoff'";
$SQL[] = "UPDATE ibf_conf_settings SET conf_evalphp='if ( \$show )\n{\n \$d_date = \$this->ipsclass->get_date(time(), \'LONG\',1);\n\$r[\'conf_description\'] = str_replace( \'<-T->\', \$d_date, \$r[\'conf_description\'] );\n}' WHERE conf_key='time_adjust'";
?>
@@ -0,0 +1,22 @@
<?php
$import_versions = array(
'20001' => '2.0.0 PDR 1',
'20002' => '2.0.0 PDR 2',
'20003' => '2.0.0 PDR 3',
'20004' => '2.0.0 PDR 4',
'20005' => '2.0.0 PDR 5',
'20006' => '2.0.0 PF 1',
'20007' => '2.0.0 PF 2',
'20008' => '2.0.0 PF 3',
'20009' => '2.0.0 PF 4',
'20010' => '2.0.0 FINAL',
'20011' => '2.0.1 FINAL',
'20012' => '2.0.2 FINAL',
'20013' => '2.0.3 FINAL',
'20014' => '2.0.4 FINAL',
'21003' => '2.1.0 BETA 5',
);
?>
@@ -0,0 +1,533 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| 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: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 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>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class version_upgrade
{
var $this_version = '21003';
var $upgrade_from = '20014';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö, à òàêæå ñêîíâåðòèðóåò îïðîñû è êàëåíäàðíûå ñîáûòèÿ.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade()
{
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
{
$this->mod_to_run = 'None';
}
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//--------------------------------
// What are we doing?
// sql1 (tables) => sql2 (alter member) => sql3 (alter topics) => sql4 (alter other) => sql5 (inserts) => polls => calendar => skin => DONE
//--------------------------------
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql(0);
break;
case 'sql1':
$this->upgrade_sql(1);
break;
case 'sql2':
$this->upgrade_sql(2);
break;
case 'sql3':
$this->upgrade_sql(3);
break;
case 'sql4':
$this->upgrade_sql(4);
break;
case 'polls':
$this->convert_polls();
break;
case 'calevents':
$this->convert_calevents();
break;
case 'skin':
$this->add_skin();
break;
default:
$this->upgrade_intro();
break;
}
}
/*-------------------------------------------------------------------------*/
// CALENDAR EVENTS
/*-------------------------------------------------------------------------*/
function add_skin()
{
//-----------------------------------------
// Get default wrapper
//-----------------------------------------
if ( file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_version.'/components.php' ) )
{
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_version.'/components.php' );
}
//-----------------------------------------
// Turn off all other skins
//-----------------------------------------
$this->ipsclass->DB->do_update( 'skin_sets', array( 'set_default' => 0 ) );
//-----------------------------------------
// Insert new skin...
//-----------------------------------------
$this->ipsclass->DB->do_insert( 'skin_sets', array(
'set_name' => 'IPB 2.1 Ñòàíäàðòíûé ñòèëü',
'set_image_dir' => 1,
'set_hidden' => 0,
'set_default' => 1,
'set_css_method' => 0,
'set_skin_set_parent' => -1,
'set_author_email' => '',
'set_author_name' => 'IPB 2.1 Default',
'set_author_url' => '',
'set_css' => $CSS,
'set_cache_css' => $CSS,
'set_wrapper' => $WRAPPER,
'set_cache_wrapper' => $WRAPPER,
'set_emoticon_folder' => 'default',
) );
$new_id = $this->ipsclass->DB->get_insert_id();
//-----------------------------------------
// Remove member's choice
//-----------------------------------------
$this->ipsclass->DB->do_update( 'members', array( 'skin' => '' ) );
//-----------------------------------------
// Done...
//-----------------------------------------
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"Ñòèëü äîáàâëåí, ïåðåõîä ê ñëåäóþùåìó ýòàïó..." );
}
/*-------------------------------------------------------------------------*/
// CALENDAR EVENTS
/*-------------------------------------------------------------------------*/
function convert_calevents()
{
$start = intval($_GET['st']);
$lend = 50;
$end = $start + $lend;
//-----------------------------------------
// In steps...
//-----------------------------------------
$this->ipsclass->DB->simple_construct( array( 'select' => '*',
'from' => 'calendar_events',
'limit' => array( $start, $lend ) ) );
$o = $this->ipsclass->DB->simple_exec();
//-----------------------------------------
// Do it...
//-----------------------------------------
if ( $this->ipsclass->DB->get_num_rows($o) )
{
//-----------------------------------------
// Got some to convert!
//-----------------------------------------
while ( $r = $this->ipsclass->DB->fetch_row($o) )
{
$recur_remap = array( 'w' => 1,
'm' => 2,
'y' => 3 );
$begin_date = $this->ipsclass->date_getgmdate( $r['unix_stamp'] );
$end_date = $this->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(23, 59, 59, $end_month, $end_day, $end_year);
}
else
{
$_final_unix_to = 0;
}
$new_event = array( 'event_calendar_id' => 1,
'event_member_id' => $r['userid'],
'event_content' => $r['event_text'],
'event_title' => $r['title'],
'event_smilies' => $r['show_emoticons'],
'event_perms' => $r['read_perms'],
'event_private' => $r['priv_event'],
'event_approved' => 1,
'event_unixstamp' => $r['unix_stamp'],
'event_recurring' => ( $r['event_repeat'] && $recur_remap[ $r['repeat_unit'] ] ) ? $recur_remap[ $r['repeat_unit'] ] : 0,
'event_tz' => 0,
'event_unix_from' => $_final_unix_from,
'event_unix_to' => $_final_unix_to );
//-----------------------------------------
// INSERT
//-----------------------------------------
$this->ipsclass->DB->do_insert( 'cal_events', $new_event );
}
$msg = "<b>Êàëåíäàðíûå ñîáûòèÿ: îò $start äî $end çàâåðøåíî....</b>";
$this->ipsclass->core->redirect( "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}&workact=calevents&st={$end}",
$msg );
}
else
{
$msg = "<b>Êàëåíäàðíûå ñîáûòèÿ ñêîíâåðòèðîâàíû. Ñîçäàíèå íîâîãî IPB 2.1 ñòèëÿ...</b>";
$this->ipsclass->core->redirect( "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}&workact=skin",
$msg );
}
}
/*-------------------------------------------------------------------------*/
// POLLS
/*-------------------------------------------------------------------------*/
function convert_polls()
{
$start = intval($_GET['st']);
$lend = 50;
$end = $start + $lend;
$max = intval($_GET['max']);
$converted = intval( $_GET['conv'] );
//-----------------------------------------
// First off.. grab number of polls to convert
//-----------------------------------------
if ( ! $max )
{
$total = $this->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->ipsclass->DB->simple_construct( array( 'select' => '*',
'from' => 'topics',
'where' => "poll_state IN ('open', 'close', 'closed' )",
'limit' => array( 0, $lend ) ) );
$o = $this->ipsclass->DB->simple_exec();
//-----------------------------------------
// Do it...
//-----------------------------------------
if ( $this->ipsclass->DB->get_num_rows($o) )
{
//-----------------------------------------
// Got some to convert!
//-----------------------------------------
while ( $r = $this->ipsclass->DB->fetch_row($o) )
{
$converted++;
$new_poll = array( 1 => array() );
$poll_data = $this->ipsclass->DB->build_and_exec_query( array( 'select' => '*',
'from' => 'polls',
'where' => "tid=".$r['tid']
) );
if ( ! $poll_data['pid'] )
{
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->ipsclass->DB->do_update( 'polls' , array( 'choices' => serialize( $new_poll ) ), 'tid='.$r['tid'] );
$this->ipsclass->DB->do_update( 'topics', array( 'poll_state' => 1 ), 'tid='.$r['tid'] );
}
//-----------------------------------------
// All done?
//-----------------------------------------
if ( $converted >= $max )
{
$done = 1;
continue;
}
}
}
else
{
$done = 1;
}
if ( ! $done )
{
$msg = "<b>Îïðîñû: îò $start äî $end çàâåðøåíî....</b>";
$this->ipsclass->core->redirect( "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}&workact=polls&st={$end}&max={$max}".'&conv='.$converted,
$msg );
}
else
{
$msg = "<b>Îïðîñû ñêîíâåðòèðîâàíû, ïåðåõîäèì ê ñëåäóþùåìó ýòàïó...</b>";
$this->ipsclass->core->redirect( "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}&workact=calevents&st=0",
$msg );
}
}
/*-------------------------------------------------------------------------*/
// SQL: 0
/*-------------------------------------------------------------------------*/
function upgrade_sql( $id=0 )
{
$man = intval( $this->ipsclass->input['man'] );
$cnt = 0;
$SQL = array();
$file = ( $id > 0 ) ? '_updates_'.$id.'.php' : '_updates.php';
$output = "";
if ( file_exists( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file ) )
{
require_once( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file );
foreach( $SQL as $q )
{
$q = str_replace( "<%time%>", time(), $q );
//--------------------------------
// Run or show?
//--------------------------------
if ( $man )
{
$output .= preg_replace("/\sibf_(\S+?)([\s\.,]|$)/", " ".$this->ipsclass->DB->obj['sql_tbl_prefix']."\\1\\2", preg_replace( "/\s{1,}/", " ", $q ) )."\n";
}
else
{
$this->ipsclass->DB->query( $q );
}
$cnt++;
}
}
//--------------------------------
// Next page...
//--------------------------------
if ( $id != 4 )
{
$nextid = $id + 1;
$url = "index.php?act=work&man={$man}&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}&workact=sql".$nextid;
//--------------------------------
// Run or show?
//--------------------------------
if ( $man )
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>SQL çàïðîñ: Øàã $nextid</div>
<div class='tdrow1' style='padding:6px'>
<strong>ÏÎÆÀËÓÉÑÒÀ ÇÀÏÓÑÒÈÒÅ ÝÒÈ ÇÀÏÐÎÑÛ, ÏÐÅÆÄÅ ×ÅÌ ÏÐÎÄÎËÆÈÒÜ</strong>
<br /><br />
<textarea style='width:100%;height:400px' rows='50' cols='50'>$output</textarea>
<br />
<br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$url}'>Ïîêàçàòü äàëåå...</a></span></div>
</div>
</div>
";
$this->ipsclass->template->output();
}
else
{
$this->ipsclass->core->redirect( $url, "$cnt çàïðîñîâ âûïîëíåíî...." );
}
}
else
{
$this->ipsclass->core->redirect( "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}&workact=polls&st=0",
"$cnt çàïðîñîâ âûïîëíåíî...." );
}
}
/*-------------------------------------------------------------------------*/
// INTRO
/*-------------------------------------------------------------------------*/
function upgrade_intro()
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<span style='font-weight:bold;color:red'>Åñëè âû èìååòå áîëüøóþ áàçó äàííûõ, æåëàòåëüíî çàïóòèòü SQL çàïðîñû âðó÷íóþ (äëÿ ïðåäîòâðàùåíèÿ îøèáîê â PHP),
ïîæàëóéñòà <a href='{$this->base_url}&workact=sql&man=1'>íàæìèòå ñþäà</a> äëÿ ïîäðîáíîñòåé.</span>
<br />
<br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå (ñ àâòîìàòè÷åñêèì âûïîëíåíèåì SQL çàïðîñîâ)...</a></span></div>
</div>
</div>
<br />
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
if ( ! is_writeable( CACHE_PATH . 'cache/skin_cache' ) )
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>ÂÍÈÌÀÍÈÅ: Ïàïêà cache/skin_cache íåäîñòóïíà äëÿ çàïèñè</strong><br />
Ïîæàëóéñòà, ïðîâåðüòå CHMOD äëÿ ýòîé ïàïêè. Åñëè âû ïðîèãíîðèðóåòå ýòî ïðåäóïðåæäåíèå, òî ôàéëû ñòèëåé
ìîãóò íåêîððåêòíî óñòàíîâèòüñÿ.</div>";
}
$this->ipsclass->template->output();
}
}
?>
+845
View File
@@ -0,0 +1,845 @@
<?xml version="1.0" encoding="WINDOWS-1251"?>
<permsexport exported="1125054428" versionid="2.1.0" type="master">
<permsgroup>
<perm>
<acpperm_bit>recache</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>admin</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>adminlog</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>attach</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>attach</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>attach</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>attach</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>attach</acpperm_child>
</perm>
<perm>
<acpperm_bit>stats</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>attach</acpperm_child>
</perm>
<perm>
<acpperm_bit>search</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>attach</acpperm_child>
</perm>
<perm>
<acpperm_bit>bw-add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>bw-remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>bw-edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>bw-export</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>bw-import</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>ban-view</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>ban-add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>ban-remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>babw</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>bbcode</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>bbcode</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>bbcode</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>bbcode</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>bbcode</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>calendars</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>calendars</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>calendars</acpperm_child>
</perm>
<perm>
<acpperm_bit>recache</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>calendars</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>components</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>components</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>components</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>components</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>emailerror</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>emaillog</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>emoticons</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>emoticons</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>emoticons</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>emoticons</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>emoticons</acpperm_child>
</perm>
<perm>
<acpperm_bit>upload</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>emoticons</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>permedit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>reorder</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>recount</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>empty</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>rules</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>skin</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>forum</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>group</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>group</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>group</acpperm_child>
</perm>
<perm>
<acpperm_bit>perms</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>group</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>help</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>help</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>help</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>lang</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>lang</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>lang</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>lang</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>lang</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>loginauth</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>loginauth</acpperm_child>
</perm>
<perm>
<acpperm_bit>diagnostics</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>loginauth</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>loginauth</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>loginauth</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>suspend</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>title-view</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>title-edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>title-add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>title-remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>mod</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>ban</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mem</acpperm_child>
</perm>
<perm>
<acpperm_bit>view</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mtools</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mod</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mod</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>mod</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>modlog</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>multimod</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>multimod</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>multimod</acpperm_child>
</perm>
<perm>
<acpperm_bit>install</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>msubs</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>msubs</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>msubs</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>msubs</acpperm_child>
</perm>
<perm>
<acpperm_bit>search</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>msubs</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>portal</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>postoffice</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>postoffice</acpperm_child>
</perm>
<perm>
<acpperm_bit>send</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>postoffice</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>postoffice</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>field</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>field</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>field</acpperm_child>
</perm>
<perm>
<acpperm_bit>recount</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>rebuild</acpperm_child>
</perm>
<perm>
<acpperm_bit>rebuild</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>rebuild</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssexport</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssexport</acpperm_child>
</perm>
<perm>
<acpperm_bit>recache</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssexport</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssexport</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssimport</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssimport</acpperm_child>
</perm>
<perm>
<acpperm_bit>recache</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssimport</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>content</acpperm_main>
<acpperm_child>rssimport</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>op</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>op</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>op</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>op</acpperm_child>
</perm>
<perm>
<acpperm_bit>search</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>op</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>op</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>style</acpperm_child>
</perm>
<perm>
<acpperm_bit>rundiff</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>skindiff</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>skindiff</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>skindiff</acpperm_child>
</perm>
<perm>
<acpperm_bit>export</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>import</acpperm_child>
</perm>
<perm>
<acpperm_bit>import</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>import</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>image</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>image</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>image</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>sets</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>sets</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>sets</acpperm_child>
</perm>
<perm>
<acpperm_bit>rebuild</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>sets</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>templ</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>templ</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>templ</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>wrap</acpperm_child>
</perm>
<perm>
<acpperm_bit>recache</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>skintools</acpperm_child>
</perm>
<perm>
<acpperm_bit>changemember</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>skintools</acpperm_child>
</perm>
<perm>
<acpperm_bit>search</acpperm_bit>
<acpperm_main>lookandfeel</acpperm_main>
<acpperm_child>skintools</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>spiderlog</acpperm_child>
</perm>
<perm>
<acpperm_bit>show</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>stats</acpperm_child>
</perm>
<perm>
<acpperm_bit>edit</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>task</acpperm_child>
</perm>
<perm>
<acpperm_bit>add</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>task</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>task</acpperm_child>
</perm>
<perm>
<acpperm_bit>runnow</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>task</acpperm_child>
</perm>
<perm>
<acpperm_bit>log</acpperm_bit>
<acpperm_main>tools</acpperm_main>
<acpperm_child>task</acpperm_child>
</perm>
<perm>
<acpperm_bit>view</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>warnlog</acpperm_child>
</perm>
<perm>
<acpperm_bit>remove</acpperm_bit>
<acpperm_main>admin</acpperm_main>
<acpperm_child>warnlog</acpperm_child>
</perm>
</permsgroup>
</permsexport>
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,7 @@
<?php
# Nothing of interest!
$SQL[] = "DELETE FROM ibf_components WHERE com_id=5";
?>
@@ -0,0 +1,23 @@
<?php
$import_versions = array(
'20001' => '2.0.0 PDR 1',
'20002' => '2.0.0 PDR 2',
'20003' => '2.0.0 PDR 3',
'20004' => '2.0.0 PDR 4',
'20005' => '2.0.0 PDR 5',
'20006' => '2.0.0 PF 1',
'20007' => '2.0.0 PF 2',
'20008' => '2.0.0 PF 3',
'20009' => '2.0.0 PF 4',
'20010' => '2.0.0 FINAL',
'20011' => '2.0.1 FINAL',
'20012' => '2.0.2 FINAL',
'20013' => '2.0.3 FINAL',
'20014' => '2.0.4 FINAL',
'21003' => '2.1.0 BETA 5',
'21004' => '2.1.0 RC 1',
);
?>
@@ -0,0 +1,159 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| 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: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 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>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class version_upgrade
{
var $this_version = '21004';
var $upgrade_from = '21003';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade()
{
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
{
$this->mod_to_run = 'None';
}
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//--------------------------------
// What are we doing?
// sql => DONE
//--------------------------------
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
break;
default:
$this->upgrade_intro();
break;
}
}
/*-------------------------------------------------------------------------*/
// SQL: 0
/*-------------------------------------------------------------------------*/
function upgrade_sql()
{
$man = intval( $this->ipsclass->input['man'] );
$SQL = array();
$file = '_updates.php';
$cnt = 0;
if ( file_exists( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file ) )
{
require_once( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file );
foreach( $SQL as $q )
{
$q = str_replace( "<%time%>", time(), $q );
$this->ipsclass->DB->query( $q );
$cnt++;
}
}
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "$cnt çàïðîñîâ âûïîëíåíî...." );
}
/*-------------------------------------------------------------------------*/
// INTRO
/*-------------------------------------------------------------------------*/
function upgrade_intro()
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
if ( ! is_writeable( CACHE_PATH . 'cache/skin_cache' ) )
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>ÂÍÈÌÀÍÈÅ: Ïàïêà cache/skin_cache íåäîñòóïíà äëÿ çàïèñè</strong><br />
Ïîæàëóéñòà, ïðîâåðüòå CHMOD äëÿ ýòîé ïàïêè. Åñëè âû ïðîèãíîðèðóåòå ýòî ïðåäóïðåæäåíèå, òî ôàéëû ñòèëåé
ìîãóò íåêîððåêòíî óñòàíîâèòüñÿ.</div>";
}
$this->ipsclass->template->output();
}
}
?>
@@ -0,0 +1,15 @@
<?php
# Nothing of interest!
$SQL[] = "DELETE FROM ibf_admin_permission_keys WHERE perm_main='tools' and perm_child='login';";
$SQL[] = "DELETE FROM ibf_conf_settings WHERE conf_key='max_poll_questions' AND conf_group='';";
$SQL[] = "DELETE FROM ibf_conf_settings WHERE conf_key IN( 'poll_disable_noreply', 'chat04_who_save', 'chat04_whodat_server_addr' );";
$SQL[] = "UPDATE ibf_conf_settings SET conf_group=12 WHERE conf_key='smtp_pass';";
$SQL[] = "UPDATE ibf_conf_settings SET conf_group=21 WHERE conf_key='chat04_default_lang';";
$SQL[] = "UPDATE ibf_conf_settings SET conf_group=5, conf_position=15 WHERE conf_key='max_h_flash';";
$SQL[] = "DELETE FROM ibf_components WHERE com_filename='registration';";
$SQL[] = "UPDATE ibf_components SET com_section='chatpara', com_filename='chatpara' where com_filename='chat';";
$SQL[] = "ALTER TABLE ibf_member_extra CHANGE icq_number icq_number varchar(40) NOT NULL default '';";
?>
@@ -0,0 +1,24 @@
<?php
$import_versions = array(
'20001' => '2.0.0 PDR 1',
'20002' => '2.0.0 PDR 2',
'20003' => '2.0.0 PDR 3',
'20004' => '2.0.0 PDR 4',
'20005' => '2.0.0 PDR 5',
'20006' => '2.0.0 PF 1',
'20007' => '2.0.0 PF 2',
'20008' => '2.0.0 PF 3',
'20009' => '2.0.0 PF 4',
'20010' => '2.0.0 FINAL',
'20011' => '2.0.1 FINAL',
'20012' => '2.0.2 FINAL',
'20013' => '2.0.3 FINAL',
'20014' => '2.0.4 FINAL',
'21003' => '2.1.0 BETA 5',
'21004' => '2.1.0 RC 1',
'21005' => '2.1.0 RC 2',
);
?>
@@ -0,0 +1,159 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| 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: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 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>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class version_upgrade
{
var $this_version = '21005';
var $upgrade_from = '21004';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade()
{
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
{
$this->mod_to_run = 'None';
}
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//--------------------------------
// What are we doing?
// sql => DONE
//--------------------------------
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
break;
default:
$this->upgrade_intro();
break;
}
}
/*-------------------------------------------------------------------------*/
// SQL: 0
/*-------------------------------------------------------------------------*/
function upgrade_sql()
{
$man = intval( $this->ipsclass->input['man'] );
$SQL = array();
$file = '_updates.php';
$cnt = 0;
if ( file_exists( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file ) )
{
require_once( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file );
foreach( $SQL as $q )
{
$q = str_replace( "<%time%>", time(), $q );
$this->ipsclass->DB->query( $q );
$cnt++;
}
}
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "$cnt çàïðîñîâ âûïîëíåíî...." );
}
/*-------------------------------------------------------------------------*/
// INTRO
/*-------------------------------------------------------------------------*/
function upgrade_intro()
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
if ( ! is_writeable( CACHE_PATH . 'cache/skin_cache' ) )
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>ÂÍÈÌÀÍÈÅ: Ïàïêà cache/skin_cache íåäîñòóïíà äëÿ çàïèñè</strong><br />
Ïîæàëóéñòà, ïðîâåðüòå CHMOD äëÿ ýòîé ïàïêè. Åñëè âû ïðîèãíîðèðóåòå ýòî ïðåäóïðåæäåíèå, òî ôàéëû ñòèëåé
ìîãóò íåêîððåêòíî óñòàíîâèòüñÿ.</div>";
}
$this->ipsclass->template->output();
}
}
?>
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,431 @@
<?xml version="1.0" encoding="WINDOWS-1251"?>
<settingexport exported="1126532516">
<settinggroup>
<setting>
<conf_id>340</conf_id>
<conf_title><![CDATA[????????? &quot;???????????? ?????&quot;]]></conf_title>
<conf_description><![CDATA[???? ???? ????? ????????, ???????????? ?????? ???????? <b>????????????</b>, ??????????? ?? ?? ????? ???????????? ??? ??????????? ?? ??????. ??? ?????????, ????? ???????????? ?? ?????????? ?????? ???????????.]]></conf_description>
<conf_group>18</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>auth_allow_dnames</conf_key>
<conf_value></conf_value>
<conf_default>1</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>1</conf_position>
<conf_start_group>????????? ????????????? ?????</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>converge</conf_title_keyword>
</setting>
<setting>
<conf_id>185</conf_id>
<conf_title>????? ??? ?????? ?????????????</conf_title>
<conf_description><![CDATA[???????? ????? ?????????????? ??????? ? ???????.<br><br><!--FULLTEXT--><br /><!--FULLCHECK-->]]></conf_description>
<conf_group>19</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>search_sql_method</conf_key>
<conf_value></conf_value>
<conf_default>man</conf_default>
<conf_extra>ftext=??????????????
man=???????</conf_extra>
<conf_evalphp><![CDATA[if ( $show == 1 )
{
$this->ipsclass->admin->get_mysql_version();
if ( $this->ipsclass->mysql_version < 32323 )
{
$full_text = "<span style='color:red'><b>?????????????? ????? ?????????? ?? ????? ???????.</b></span>";
}
else
{
$full_text = "<b>?????????????? ????? ????????</b>";
}
if ( ! $this->ipsclass->admin->get_fulltextindex_status() )
{
$index = "<span style='color:red'><b>??????? ??????????????? ?????? ?? ???????</b></span>: <a href='{$this->ipsclass->base_url}&section=tools&act=op&code=dofulltext'>Build indexes now!</a>";
}
else
{
$index = "<b>??????? ??????????????? ?????? ???????</b>";
}
$r['conf_description'] = str_replace( "<!--FULLTEXT-->", $full_text, $r['conf_description'] );
$r['conf_description'] = str_replace( "<!--FULLCHECK-->", $index, $r['conf_description'] );
}]]></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>1</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>searchsetup</conf_title_keyword>
</setting>
<setting>
<conf_id>343</conf_id>
<conf_title>????????? ???????????? ????? ?? ????????? ???? ????????????</conf_title>
<conf_description><![CDATA[???? "??", ????? ?? ?????? ??????? ???????????? ??? ????? ??, ??? ? ???????????? ??? ??? ??? ???????????? ? ??????? ????????????. ???? "???", ?? ????? ?? ?????? ??????? ???????????? ??? ????? ??, ??? ? ? ??????? ????????????.]]></conf_description>
<conf_group>18</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>auth_dnames_nologinname</conf_key>
<conf_value></conf_value>
<conf_default>1</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>3</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>converge</conf_title_keyword>
</setting>
<setting>
<conf_title>????????? ??????? ??????</conf_title>
<conf_description>??????? ???????? ?????????, ? ??????? ????? ???????????? ??? HTML ???????? ??????.</conf_description>
<conf_group>1</conf_group>
<conf_type>input</conf_type>
<conf_key>gb_char_set</conf_key>
<conf_value></conf_value>
<conf_default>windows-1251</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>7</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>general</conf_title_keyword>
</setting>
<setting>
<conf_title>??????????? ????? ?? ??????? ????? ?????</conf_title>
<conf_description>??????, ???????????? ??? ?????????? ????? ?? ??????? ????? ? ?????? ?? ??????.</conf_description>
<conf_group>1</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>decimal_seperator</conf_key>
<conf_value></conf_value>
<conf_default>.</conf_default>
<conf_extra>.=.
,=,</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>19</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>general</conf_title_keyword>
</setting>
<setting>
<conf_title>????????? ?????????? ?????????? ??? ??????????</conf_title>
<conf_description>???? "??", ?? ??????? ?????????? ??? ????? ??????????? ? ?????? ?????????? ????. ???? "???", ?????????? ?????????? ????? ???????????? ? ?????? ??????? ? ??????????? ?????? 6 ?????. ??????????? ?????? ????? ????????? ?????????? ???????????? ????? ??? ??????? ???????.</conf_description>
<conf_group>2</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>update_topic_views_immediately</conf_key>
<conf_value></conf_value>
<conf_default>1</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>3</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>cpusaving</conf_title_keyword>
</setting>
<setting>
<conf_title><![CDATA[?????????? ???? ??????????? ????????????? ??? ?????? ??????]]></conf_title>
<conf_description><![CDATA[???? '??', ?????? ???????? ??????????? ???????????? ?? ?????? ????? ?????????? ??? ???? ???????????, ??????? ?????????? cookies. ??? ??????? ??????????? ????? ??? ????? ?????? ???????????? ?????, ??? ? ?????? ??????????.]]></conf_description>
<conf_group>6</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>login_change_key</conf_key>
<conf_value></conf_value>
<conf_default>0</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>6</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>securityandprivacy</conf_title_keyword>
</setting>
<setting>
<conf_title><![CDATA[????????? IP ?????? ????????????? ??? ???????? ??????]]></conf_title>
<conf_description><![CDATA[???? '??', ?? IP ????? ???????????? ??? ???????????? ????? ??????? ? ??????? ??????. ??????????? '???' ? ?????????, ??? ????????? ????????????? ????? ????? ???? IP ?????.]]></conf_description>
<conf_group>6</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>match_ipaddress</conf_key>
<conf_value></conf_value>
<conf_default>1</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>7</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>securityandprivacy</conf_title_keyword>
</setting>
<setting>
<conf_title>?????????????? ????? PHP Mail</conf_title>
<conf_description><![CDATA[??????: -femail@address.com ????? ?????????? ? header 'From'.]]></conf_description>
<conf_group>12</conf_group>
<conf_type>input</conf_type>
<conf_key>php_mail_extra</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>8</conf_position>
<conf_start_group>????????? PHP Mail</conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>email</conf_title_keyword>
</setting>
<setting>
<conf_title>???????? ????? ?????????: ?????????? ???????</conf_title>
<conf_description><![CDATA[???????? ??????, ???? ?? ??????? ?? <b>??</b> ??????? ?????? ? ?????? ??? ????????????? ?????? '???????? ????' ??? '???????? ????? ?????????'. ?? ?????? ???????? ????????? ???????.]]></conf_description>
<conf_group>19</conf_group>
<conf_type>multi</conf_type>
<conf_key>vnp_block_forums</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra>#show_forums#</conf_extra>
<conf_evalphp><![CDATA[if ( $save == 1)
{
if ( is_array($_POST['vnp_block_forums']) )
{
$_POST['vnp_block_forums'] = implode(",",$_POST['vnp_block_forums']);
}
else
{
$_POST['vnp_block_forums'] = "";
}
$key = 'vnp_block_forums';
}
if ( $show == 1 )
{
$key = 'vnp_block_forums[]';
}]]></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>14</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>searchsetup</conf_title_keyword>
</setting>
<setting>
<conf_title>????-??????????? ???????? ?? ?????? ?????</conf_title>
<conf_description><![CDATA[????? ???? ????? ???????, ??????? ????? ????????????? ????? ????????????? ????????? ? ?????????????? ???????.]]></conf_description>
<conf_group>3</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>time_dst_auto_correction</conf_key>
<conf_value></conf_value>
<conf_default>1</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>8</conf_position>
<conf_start_group>??????? ?? ?????? ????? (DST)</conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>date</conf_title_keyword>
</setting>
<setting>
<conf_title>??????? ?????? ????????? ??? ??????????? ???????? ????</conf_title>
<conf_description><![CDATA[?????????? ?????? ????, ????????? ??? ??????????? ??????? ????. ???? ?? ??????, ?? ??????? ?? ????????????.]]></conf_description>
<conf_group>5</conf_group>
<conf_type>input</conf_type>
<conf_key>topic_rating_needed</conf_key>
<conf_value></conf_value>
<conf_default>1</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>3</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>topicspostsandpolls</conf_title_keyword>
</setting>
<setting>
<conf_title>???????????? ????? ????????? ???</conf_title>
<conf_description>???????????? ??????????? ????? ????????? ???.</conf_description>
<conf_group>5</conf_group>
<conf_type>input</conf_type>
<conf_key>topic_title_max_len</conf_key>
<conf_value></conf_value>
<conf_default>150</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>6</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>topicspostsandpolls</conf_title_keyword>
</setting>
<setting>
<conf_title>????????????? ?????????????: ?????????????? ??????</conf_title>
<conf_description>???????????? ????????? ????? ?? ?????? ???? ????????????.</conf_description>
<conf_group>5</conf_group>
<conf_type>multi</conf_type>
<conf_key>cannot_ignore_groups</conf_key>
<conf_value></conf_value>
<conf_default>4</conf_default>
<conf_extra>#show_groups#</conf_extra>
<conf_evalphp><![CDATA[if ( $save == 1)
{
if ( is_array($_POST['cannot_ignore_groups']) )
{
$_POST['cannot_ignore_groups'] = ','.implode(",",$_POST['cannot_ignore_groups']).',';
}
else
{
$_POST['cannot_ignore_groups'] = "";
}
$key = 'cannot_ignore_groups';
}
if ( $show == 1 )
{
$key = 'cannot_ignore_groups[]';
}]]></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>10</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>topicspostsandpolls</conf_title_keyword>
</setting>
<setting>
<conf_title>???????????? ????? ????? ? ????? ?????????</conf_title>
<conf_description>????????? ???? ?????, ?? ?????????? ????? ??????? ?????????? ????? ? ?????????, ??? ????????? ????????? «???????» ????????? ?????????.</conf_description>
<conf_group>5</conf_group>
<conf_type>input</conf_type>
<conf_key>max_quotes_per_post</conf_key>
<conf_value></conf_value>
<conf_default>10</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>19</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>topicspostsandpolls</conf_title_keyword>
</setting>
<setting>
<conf_title><![CDATA[??????? ?????????]]></conf_title>
<conf_description><![CDATA[????? ???????????? ????????? 2 ????????? ?????? ? ???? ???? ? ?????????? ?? ????? <em>n</em> ?????, ?? ??? ????????? ???????????? ? ????.
??????? ???-?? ?????, ? ??????? ??????? ????? ????????? ???????????.
??????? 0, ????? ????????? ?????.]]></conf_description>
<conf_group>5</conf_group>
<conf_type>input</conf_type>
<conf_key>post_merge_conc</conf_key>
<conf_value></conf_value>
<conf_default>10</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>20</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>topicspostsandpolls</conf_title_keyword>
</setting>
<setting>
<conf_title>???????????? ?????????? ???????? ? ????? ??????</conf_title>
<conf_description>??????? ???????????? ?????????? ????????, ??????? ???????????? ????? ??????? ? ????? ??????.</conf_description>
<conf_group>5</conf_group>
<conf_type>input</conf_type>
<conf_key>max_poll_questions</conf_key>
<conf_value></conf_value>
<conf_default>3</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>29</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>topicspostsandpolls</conf_title_keyword>
</setting>
<setting>
<conf_is_title>1</conf_is_title>
<conf_title_keyword>converge</conf_title_keyword>
<conf_title_title>????????? Converge</conf_title_title>
<conf_title_desc>Converge - ?????? ??????? ??????????? ??? ???? ????????? ????????. ??? ????????? ????? ???? ??????????? ??? ???? IPS ?????????.</conf_title_desc>
<conf_title_noshow>0</conf_title_noshow>
</setting>
<setting>
<conf_is_title>1</conf_is_title>
<conf_title_keyword>searchsetup</conf_title_keyword>
<conf_title_title>????????? ??????? ??????</conf_title_title>
<conf_title_desc><![CDATA[?????? ????? ??? ????????? ???????????????? ????????? ???????. ????????? ??????????? ??? ?????? (???????/??????????????) ? ??? ????? ??????.]]></conf_title_desc>
<conf_title_noshow>0</conf_title_noshow>
</setting>
<setting>
<conf_is_title>1</conf_is_title>
<conf_title_keyword>httpapi</conf_title_keyword>
<conf_title_title>IPB HTTP-API ?????????</conf_title_title>
<conf_title_desc>????????? ??? ?????????? ???????? HTTP-API</conf_title_desc>
<conf_title_noshow>0</conf_title_noshow>
</setting>
<setting>
<conf_is_title>1</conf_is_title>
<conf_title_keyword>portal_poll</conf_title_keyword>
<conf_title_title>??????: ?????</conf_title_title>
<conf_title_desc>????????? ?????? ?????? ? ??????.</conf_title_desc>
<conf_title_noshow>1</conf_title_noshow>
</setting>
<setting>
<conf_is_title>1</conf_is_title>
<conf_title_keyword>portal_recent_topics</conf_title_keyword>
<conf_title_title>??????: ????????? ??????????</conf_title_title>
<conf_title_desc>????????? ?????? ????????? ?????????? ? ??????</conf_title_desc>
<conf_title_noshow>1</conf_title_noshow>
</setting>
</settinggroup>
</settingexport>
@@ -0,0 +1,6 @@
<?php
# Nothing of interest!
?>
@@ -0,0 +1,25 @@
<?php
$import_versions = array(
'20001' => '2.0.0 PDR 1',
'20002' => '2.0.0 PDR 2',
'20003' => '2.0.0 PDR 3',
'20004' => '2.0.0 PDR 4',
'20005' => '2.0.0 PDR 5',
'20006' => '2.0.0 PF 1',
'20007' => '2.0.0 PF 2',
'20008' => '2.0.0 PF 3',
'20009' => '2.0.0 PF 4',
'20010' => '2.0.0 FINAL',
'20011' => '2.0.1 FINAL',
'20012' => '2.0.2 FINAL',
'20013' => '2.0.3 FINAL',
'20014' => '2.0.4 FINAL',
'21003' => '2.1.0 BETA 5',
'21004' => '2.1.0 RC 1',
'21005' => '2.1.0 RC 2',
'21006' => '2.1.0 FINAL',
);
?>
@@ -0,0 +1,159 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| 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: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 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>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class version_upgrade
{
var $this_version = '21006';
var $upgrade_from = '21005';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade()
{
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
{
$this->mod_to_run = 'None';
}
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//--------------------------------
// What are we doing?
// sql => DONE
//--------------------------------
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
break;
default:
$this->upgrade_intro();
break;
}
}
/*-------------------------------------------------------------------------*/
// SQL: 0
/*-------------------------------------------------------------------------*/
function upgrade_sql()
{
$man = intval( $this->ipsclass->input['man'] );
$SQL = array();
$file = '_updates.php';
$cnt = 0;
if ( file_exists( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file ) )
{
require_once( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file );
foreach( $SQL as $q )
{
$q = str_replace( "<%time%>", time(), $q );
$this->ipsclass->DB->query( $q );
$cnt++;
}
}
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}", "$cnt çàïðîñîâ âûïîëíåíî...." );
}
/*-------------------------------------------------------------------------*/
// INTRO
/*-------------------------------------------------------------------------*/
function upgrade_intro()
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
if ( ! is_writeable( CACHE_PATH . 'cache/skin_cache' ) )
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>ÂÍÈÌÀÍÈÅ: Ïàïêà cache/skin_cache íåäîñòóïíà äëÿ çàïèñè</strong><br />
Ïîæàëóéñòà, ïðîâåðüòå CHMOD äëÿ ýòîé ïàïêè. Åñëè âû ïðîèãíîðèðóåòå ýòî ïðåäóïðåæäåíèå, òî ôàéëû ñòèëåé
ìîãóò íåêîððåêòíî óñòàíîâèòüñÿ.</div>";
}
$this->ipsclass->template->output();
}
}
?>
@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="WINDOWS-1251"?>
<settingexport exported="1127385330">
<settinggroup>
<setting>
<conf_id>245</conf_id>
<conf_title>IPB ??????????????? ????</conf_title>
<conf_description>?? ???????? ? ?? ????????? ???? ????, ???? ?? ?? 100% ?? ??????? ? ???, ??? ?? ???????!</conf_description>
<conf_group>24</conf_group>
<conf_type>input</conf_type>
<conf_key>ipb_reg_number</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>1</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>ipbreg</conf_title_keyword>
</setting>
<setting>
<conf_id>243</conf_id>
<conf_title>?????????? ?????????? ? ???, ?? ???? ??????????????? ??? IPB?</conf_title>
<conf_description><![CDATA[???? ???? ????? ???????, ?? ? ?????? ????? ?????? ?????? ????? ???????????? ??????? - &laquo;???????????????? ??: ...&raquo;.]]></conf_description>
<conf_group>24</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>ipb_reg_show</conf_key>
<conf_value></conf_value>
<conf_default>0</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>2</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>ipbreg</conf_title_keyword>
</setting>
<setting>
<conf_id>244</conf_id>
<conf_title><![CDATA[?????????? &laquo;???????????????? ??...&raquo;]]></conf_title>
<conf_description>???????: ???? ?????? ??? ???????? Invision Power Services</conf_description>
<conf_group>24</conf_group>
<conf_type>input</conf_type>
<conf_key>ipb_reg_name</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>3</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>ipbreg</conf_title_keyword>
</setting>
<setting>
<conf_id>330</conf_id>
<conf_title>????????? ????????????? ???????????? Rich Text ?????????</conf_title>
<conf_description><![CDATA[???? '??', ????????????, ???????????? IE 6, Mozilla ??? Firefox ?????? ????????? ???????????? Rich Text ?????????????? (WYSIWYG).]]></conf_description>
<conf_group>5</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>posting_allow_rte</conf_key>
<conf_value></conf_value>
<conf_default>1</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>100</conf_position>
<conf_start_group>????????? ?????????</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>topicspostsandpolls</conf_title_keyword>
</setting>
<setting>
<conf_id>348</conf_id>
<conf_title><![CDATA[?????? ????????? ?????????]]></conf_title>
<conf_description><![CDATA[?????? Rich Text ????????? (WYSIWYG) / ???????????? ?????????? ????????? ??? ????????? ??????? ?????????/???. "px" ? "%" ?????????.]]></conf_description>
<conf_group>5</conf_group>
<conf_type>input</conf_type>
<conf_key>rte_width</conf_key>
<conf_value></conf_value>
<conf_default>650px</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>101</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>topicspostsandpolls</conf_title_keyword>
</setting>
<setting>
<conf_id>349</conf_id>
<conf_title><![CDATA[?????? ????????? ?????? ?????????]]></conf_title>
<conf_description><![CDATA[?????? Rich Text ????????? (WYSIWYG) / ???????????? ?????????? ????????? ??? ????????? ?????? ?????????. "px" ? "%" ?????????.]]></conf_description>
<conf_group>5</conf_group>
<conf_type>input</conf_type>
<conf_key>rte_pm_width</conf_key>
<conf_value></conf_value>
<conf_default>500px</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>102</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>topicspostsandpolls</conf_title_keyword>
</setting>
<setting>
<conf_is_title>1</conf_is_title>
<conf_title_keyword>ipbreg</conf_title_keyword>
<conf_title_title>IPB ????????</conf_title_title>
<conf_title_desc>????????? ????????????? ????????? ????????.</conf_title_desc>
<conf_title_noshow>0</conf_title_noshow>
</setting>
<setting>
<conf_is_title>1</conf_is_title>
<conf_title_keyword>topicspostsandpolls</conf_title_keyword>
<conf_title_title>????, ????????? ? ??????</conf_title_title>
<conf_title_desc>?????? ????? ??? ????????? ?????????? ??????????? ???, ? ??? ?? ??????????? ??? ???????? ?????????, ???????.</conf_title_desc>
<conf_title_noshow>0</conf_title_noshow>
</setting>
</settinggroup>
</settingexport>
@@ -0,0 +1,8 @@
<?php
# Nothing of interest!
$SQL[] = "ALTER TABLE ibf_sessions CHANGE browser browser VARCHAR(200) NOT NULL default '';";
$SQL[] = "ALTER TABLE ibf_rss_import ADD rss_import_allow_html TINYINT(1) NOT NULL default '0';";
?>
@@ -0,0 +1,26 @@
<?php
$import_versions = array(
'20001' => '2.0.0 PDR 1',
'20002' => '2.0.0 PDR 2',
'20003' => '2.0.0 PDR 3',
'20004' => '2.0.0 PDR 4',
'20005' => '2.0.0 PDR 5',
'20006' => '2.0.0 PF 1',
'20007' => '2.0.0 PF 2',
'20008' => '2.0.0 PF 3',
'20009' => '2.0.0 PF 4',
'20010' => '2.0.0 FINAL',
'20011' => '2.0.1 FINAL',
'20012' => '2.0.2 FINAL',
'20013' => '2.0.3 FINAL',
'20014' => '2.0.4 FINAL',
'21003' => '2.1.0 BETA 5',
'21004' => '2.1.0 RC 1',
'21005' => '2.1.0 RC 2',
'21006' => '2.1.0 FINAL',
'21007' => '2.1.1',
);
?>
@@ -0,0 +1,211 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| 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: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 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>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class version_upgrade
{
var $this_version = '21007';
var $upgrade_from = '21006';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade()
{
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
{
$this->mod_to_run = 'None';
}
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//--------------------------------
// What are we doing?
// sql => DONE
//--------------------------------
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
break;
default:
$this->upgrade_intro();
break;
}
}
/*-------------------------------------------------------------------------*/
// SQL: 0
/*-------------------------------------------------------------------------*/
function upgrade_sql()
{
$man = intval( $this->ipsclass->input['man'] );
$SQL = array();
$file = '_updates.php';
$cnt = 0;
if ( file_exists( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file ) )
{
require_once( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file );
foreach( $SQL as $q )
{
$q = str_replace( "<%time%>", time(), $q );
$this->ipsclass->DB->query( $q );
$cnt++;
}
}
//-----------------------------------------
// Remove dupe categories
//-----------------------------------------
$title_id_to_keep = array();
$title_id_to_delete = array();
$title_deleted_count = 0;
$msg = '';
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'conf_settings_titles', 'order' => 'conf_title_id DESC' ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $this->ipsclass->DB->fetch_row() )
{
if ( $title_id_to_keep[ $r['conf_title_title'] ] )
{
$title_id_to_delete[ $r['conf_title_id'] ] = $r['conf_title_id'];
}
else
{
$title_id_to_keep[ $r['conf_title_title'] ] = $r['conf_title_id'];
}
}
if ( count( $title_id_to_delete ) )
{
$this->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->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->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->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"$title_deleted_count îäèíàêîâûõ íàñòðîåê ãðóïï óäàëåíî è $cnt çàïðîñîâ âûïîëíåíî...." );
}
/*-------------------------------------------------------------------------*/
// INTRO
/*-------------------------------------------------------------------------*/
function upgrade_intro()
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå...</a></span></div>
</div>
</div>
<br />
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>
";
if ( ! is_writeable( CACHE_PATH . 'cache/skin_cache' ) )
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>ÂÍÈÌÀÍÈÅ: Ïàïêà cache/skin_cache íåäîñòóïíà äëÿ çàïèñè</strong><br />
Ïîæàëóéñòà, ïðîâåðüòå CHMOD äëÿ ýòîé ïàïêè. Åñëè âû ïðîèãíîðèðóåòå ýòî ïðåäóïðåæäåíèå, òî ôàéëû ñòèëåé
ìîãóò íåêîððåêòíî óñòàíîâèòüñÿ.</div>";
}
$this->ipsclass->template->output();
}
}
?>
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="WINDOWS-1251"?>
<settingexport exported="1129047082">
<settinggroup>
<setting>
<conf_id>199</conf_id>
<conf_title>????????? ??????? ???? ?...?</conf_title>
<conf_description></conf_description>
<conf_group>20</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>chat_display</conf_key>
<conf_value></conf_value>
<conf_default>self</conf_default>
<conf_extra>self=?????????? IPB ????????</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>9</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>chat</conf_title_keyword>
</setting>
<setting>
<conf_id>213</conf_id>
<conf_title>????????? ??????? ???? ?...?</conf_title>
<conf_description></conf_description>
<conf_group>21</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>chat04_display</conf_key>
<conf_value></conf_value>
<conf_default>self</conf_default>
<conf_extra>self=?????????? IPB ????????</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>12</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_is_title>1</conf_is_title>
<conf_title_keyword>chat</conf_title_keyword>
<conf_title_title>Invision Chat ????????? (Legacy Version)</conf_title_title>
<conf_title_desc>???? ????? ????????? ???????? ??? Invision Chat.</conf_title_desc>
<conf_title_noshow>1</conf_title_noshow>
</setting>
<setting>
<conf_is_title>1</conf_is_title>
<conf_title_keyword>chat04</conf_title_keyword>
<conf_title_title>Invision Chat ?????????</conf_title_title>
<conf_title_desc>???? ????? ????????? ???????? ??? Invision Chat ?????? 2004 ????.</conf_title_desc>
<conf_title_noshow>1</conf_title_noshow>
</setting>
</settinggroup>
</settingexport>
@@ -0,0 +1,12 @@
<?php
# Nothing of interest!
$SQL[] = "UPDATE ibf_conf_settings SET conf_value='self' WHERE conf_key='chat_display'";
$SQL[] = "UPDATE ibf_conf_settings SET conf_value='self' WHERE conf_key='chat04_display'";
$SQL[] = "UPDATE ibf_conf_settings SET conf_title='Ñêîëüêî ðàç çà äåíü ìîäåðàòîð ìîæåò ñòàâèòü ïðåäóïðåæäåíèå îäíîìó ïîëüçîâàòåëþ?' 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);";
?>
@@ -0,0 +1,27 @@
<?php
$import_versions = array(
'20001' => '2.0.0 PDR 1',
'20002' => '2.0.0 PDR 2',
'20003' => '2.0.0 PDR 3',
'20004' => '2.0.0 PDR 4',
'20005' => '2.0.0 PDR 5',
'20006' => '2.0.0 PF 1',
'20007' => '2.0.0 PF 2',
'20008' => '2.0.0 PF 3',
'20009' => '2.0.0 PF 4',
'20010' => '2.0.0 FINAL',
'20011' => '2.0.1 FINAL',
'20012' => '2.0.2 FINAL',
'20013' => '2.0.3 FINAL',
'20014' => '2.0.4 FINAL',
'21003' => '2.1.0 BETA 5',
'21004' => '2.1.0 RC 1',
'21005' => '2.1.0 RC 2',
'21006' => '2.1.0 FINAL',
'21007' => '2.1.1',
'21008' => '2.1.2',
);
?>
@@ -0,0 +1,183 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| 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: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 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>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class version_upgrade
{
var $this_version = '21008';
var $upgrade_from = '21007';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade()
{
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
{
$this->mod_to_run = 'None';
}
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//--------------------------------
// What are we doing?
// sql => DONE
//--------------------------------
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
break;
default:
$this->upgrade_intro();
break;
}
}
/*-------------------------------------------------------------------------*/
// SQL: 0
/*-------------------------------------------------------------------------*/
function upgrade_sql()
{
$man = intval( $this->ipsclass->input['man'] );
$SQL = array();
$file = '_updates.php';
$cnt = 0;
if ( file_exists( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file ) )
{
require_once( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file );
foreach( $SQL as $q )
{
$q = str_replace( "<%time%>", time(), $q );
$this->ipsclass->DB->query( $q );
$cnt++;
}
}
//-----------------------------------------
// Update this parachat component
//-----------------------------------------
if ( $this->ipsclass->vars['chat_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->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( 'chatsigma', $fields );
}
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"$title_deleted_count îäèíàêîâûõ íàñòðîåê ãðóïï óäàëåíî è $cnt çàïðîñîâ âûïîëíåíî...." );
}
/*-------------------------------------------------------------------------*/
// INTRO
/*-------------------------------------------------------------------------*/
function upgrade_intro()
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br />
";
if ( ! is_writeable( CACHE_PATH . 'cache/skin_cache' ) )
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>ÂÍÈÌÀÍÈÅ: Ïàïêà cache/skin_cache íåäîñòóïíà äëÿ çàïèñè</strong><br />
Ïîæàëóéñòà, ïðîâåðüòå CHMOD äëÿ ýòîé ïàïêè. Åñëè âû ïðîèãíîðèðóåòå ýòî ïðåäóïðåæäåíèå, òî ôàéëû ñòèëåé
ìîãóò íåêîððåêòíî óñòàíîâèòüñÿ.</div>";
}
else
{
$this->ipsclass->template->content .= "<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå ...</a></span></div>
</div>
</div>
<br />
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>";
}
$this->ipsclass->template->output();
}
}
?>
@@ -0,0 +1,125 @@
<?xml version="1.0" encoding="WINDOWS-1251"?>
<settingexport exported="1130446748">
<settinggroup>
<setting>
<conf_title>IPB ??????????????? ????</conf_title>
<conf_description>?? ???????? ? ?? ????????? ???? ????, ???? ?? ?? 100% ?? ??????? ? ???, ??? ?? ???????!</conf_description>
<conf_group>15</conf_group>
<conf_type>input</conf_type>
<conf_key>ipb_reg_number</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>1</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>ipbreg</conf_title_keyword>
</setting>
<setting>
<conf_title>?? ????? ??????? ?????????????? ????????</conf_title>
<conf_description>?? ?????? ???????? ????????? ???????.</conf_description>
<conf_group>20</conf_group>
<conf_type>multi</conf_type>
<conf_key>recent_topics_article_forum</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra>#show_forums#</conf_extra>
<conf_evalphp><![CDATA[if ( $save == 1)
{
if ( is_array($_POST['recent_topics_article_forum']) )
{
$_POST['recent_topics_article_forum'] = implode(",",$_POST['recent_topics_article_forum']);
}
else
{
$_POST['recent_topics_article_forum'] = "";
}
$key = 'recent_topics_article_forum';
}
if ( $show == 1 )
{
$key = 'recent_topics_article_forum[]';
}]]></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>3</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
<conf_title_keyword>portal_recent_topics</conf_title_keyword>
</setting>
<setting>
<conf_title>?????????? ???????? ??? ???????????</conf_title>
<conf_description><![CDATA[?????????? ???, ???????????? ? ?????????? ???? "recent_topics_last_x".]]></conf_description>
<conf_group>20</conf_group>
<conf_type>input</conf_type>
<conf_key>recent_topics_article_max</conf_key>
<conf_value></conf_value>
<conf_default>15</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>4</conf_position>
<conf_start_group>????????? ???????</conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
<conf_title_keyword>portal_recent_topics</conf_title_keyword>
</setting>
<setting>
<conf_title>?????????? ???????????? ???</conf_title>
<conf_description><![CDATA[?????????? ???????????? ?????????? ??? ??? ??????????? ???? "recent_discussions_last_x"]]></conf_description>
<conf_group>20</conf_group>
<conf_type>input</conf_type>
<conf_key>recent_topics_discuss_number</conf_key>
<conf_value></conf_value>
<conf_default>1</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>9</conf_position>
<conf_start_group>????????? ??????????</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
<conf_title_keyword>portal_recent_topics</conf_title_keyword>
</setting>
<setting>
<conf_title>??????? URL ???? ? ????????????? ???????</conf_title>
<conf_description>???????? ??????, ???? ?? ??????, ????? ??????????? ???? ? ???????</conf_description>
<conf_group>19</conf_group>
<conf_type>input</conf_type>
<conf_key>poll_poll_url</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>17</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
<conf_title_keyword>portal_poll</conf_title_keyword>
</setting>
<setting>
<conf_is_title>1</conf_is_title>
<conf_title_keyword>ipbreg</conf_title_keyword>
<conf_title_title>IPB ????????</conf_title_title>
<conf_title_desc>????????? ????????????? ????????? ????????.</conf_title_desc>
<conf_title_noshow>0</conf_title_noshow>
</setting>
</settinggroup>
</settingexport>
@@ -0,0 +1,34 @@
<?php
$SQL[] = "UPDATE ibf_task_manager SET task_log=1 WHERE task_key='rssimport'";
$SQL[] = "ALTER TABLE ibf_forums ADD topicfilter VARCHAR( 32 ) DEFAULT 'all' NOT NULL AFTER prune";
$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[] = "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='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";
*/
?>
@@ -0,0 +1,28 @@
<?php
$import_versions = array(
'20001' => '2.0.0 PDR 1',
'20002' => '2.0.0 PDR 2',
'20003' => '2.0.0 PDR 3',
'20004' => '2.0.0 PDR 4',
'20005' => '2.0.0 PDR 5',
'20006' => '2.0.0 PF 1',
'20007' => '2.0.0 PF 2',
'20008' => '2.0.0 PF 3',
'20009' => '2.0.0 PF 4',
'20010' => '2.0.0 FINAL',
'20011' => '2.0.1 FINAL',
'20012' => '2.0.2 FINAL',
'20013' => '2.0.3 FINAL',
'20014' => '2.0.4 FINAL',
'21003' => '2.1.0 BETA 5',
'21004' => '2.1.0 RC 1',
'21005' => '2.1.0 RC 2',
'21006' => '2.1.0 FINAL',
'21007' => '2.1.1',
'21008' => '2.1.2',
'21009' => '2.1.3',
);
?>
@@ -0,0 +1,327 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| 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: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.1.2 -> 2.1.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>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class version_upgrade
{
var $this_version = '21009';
var $upgrade_from = '21008';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade()
{
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
{
$this->mod_to_run = 'None';
}
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//--------------------------------
// What are we doing?
// sql => DONE
//--------------------------------
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
break;
case 'cal':
$this->upgrade_cal();
break;
case 'helpfiles':
$this->upgrade_helpfiles();
break;
case 'skinrevert':
$this->revert_skin_changes();
break;
default:
$this->upgrade_intro();
break;
}
}
/*-------------------------------------------------------------------------*/
// SQL: 0
/*-------------------------------------------------------------------------*/
function upgrade_sql()
{
$man = intval( $this->ipsclass->input['man'] );
$SQL = array();
$file = '_updates.php';
$cnt = 0;
if ( file_exists( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file ) )
{
require_once( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file );
foreach( $SQL as $q )
{
$q = str_replace( "<%time%>", time(), $q );
$this->ipsclass->DB->query( $q );
$cnt++;
}
}
$this->ipsclass->core->redirect( "{$this->base_url}&workact=cal",
"$cnt çàïðîñîâ âûïîëíåíî...." );
}
/*-------------------------------------------------------------------------*/
// Update Old Calendar Events
/*-------------------------------------------------------------------------*/
function upgrade_cal()
{
$cnt = 0;
$outer = $this->ipsclass->DB->query( "SELECT * FROM ibf_cal_events ORDER BY event_id ASC" );
if( $this->ipsclass->DB->get_num_rows($outer) )
{
while( $event = $this->ipsclass->DB->fetch_row( $outer ) )
{
if( $event['event_tz'] )
{
$this->ipsclass->DB->query( "UPDATE ibf_cal_events SET event_tz=0 WHERE event_id='{$event['event_id']}'" );
$cnt++;
}
}
}
$this->ipsclass->core->redirect( "{$this->base_url}&workact=helpfiles",
"$cnt êàëåíäàðíûõ ñîáûòèé îáíîâëåíî...." );
}
/*-------------------------------------------------------------------------*/
// Update help files
/*-------------------------------------------------------------------------*/
function upgrade_helpfiles()
{
if(! $this->ipsclass->input['do_update'] )
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Âû æåëàåòå îáíîâèòü ôàéëû ïîìîùè?</div>
<div class='tdrow1' style='padding:6px'>Íåñêîëüêî ôàéëîâ ïîìîùè áûëè èçìåíåíû îò áîëåå ðàííèõ âåðñèé. Ìû ðåêîìåíäóåì çàïóñòèòü îáíîâëåíèå, òàê êàê äëÿ IPB 2.1.x ñòàðûå ôàéëû ïîìîùè â íåêîòîðûõ ìîìåíòàõ óæå íå òî÷íû.
Åñëè âû óæå èçìåíÿëè ñàìè ôàéëû ïîìîùè, òî èìåéòå ââèäó, ÷òî ïðè çàïóñêå îáíîâëåíèÿ âàøè èçìåíåíèÿ ìîãóò áûòü ïîòåðÿíû.
Ýòîò øàã îáíîâèò ïåðâûå 16 ôàéëîâ ïîìîùè â âàøåé áàçå äàííûõ. Åñëè âû íå èçìåíÿëè ñòàíäàðòíûå ôàéëû ïîìîùè, à äîáàâëÿëè íîâûå, òî îíè íå áóäóò óäàëåíû...
<br /><br /><b>Âû æåëàåòå îáíîâèòü âàøè ôàéëû ïîìîùè?</b>
<div align='left'><blockquote><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=helpfiles&do_update=1'>Îáíîâèòü ôàéëû ïîìîùè ...</a><br />
&raquo; <a href='{$this->base_url}&workact=skinrevert'>Ïðîïóñòèòü ýòîò ýòàï ...</a></span></blockquote></div>
";
$this->ipsclass->template->output();
}
else
{
$man = intval( $this->ipsclass->input['man'] );
$UPDATES = array();
$file = '_updates.php';
$cnt = 0;
if ( file_exists( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file ) )
{
require_once( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file );
foreach( $UPDATES as $q )
{
$this->ipsclass->DB->query( $q );
$cnt++;
}
}
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"$cnt ôàéëîâ ïîìîùè îáíîâëåíî...." );
}
}
/*-------------------------------------------------------------------------*/
// Revert Skin Changes
/*-------------------------------------------------------------------------*/
function revert_skin_changes()
{
if(! $this->ipsclass->input['do_update'] )
{
$id = intval($this->ipsclass->input['skinid']) ? intval($this->ipsclass->input['skinid']) : 2;
$default = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => "set_skin_set_id={$id}" ) );
if( !$default['set_skin_set_id'] )
{
// Didn't find id 2, let's try by name
$default = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => "set_name='IPB Ñòàíäàðòíûé ñòèëü'" ) );
if( !$default['set_skin_set_id'] )
{
// Didn't find by name either
$default = array();
}
}
if( count( $default ) )
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Âû æåëàåòå âîçâðàòèòü ñòèëü â ñòàíäàðòíûé âèä (óáðàâ âñå âàøè èçìåíåíèÿ â íåì)?</div>
<div class='tdrow1' style='padding:6px'>Âî âðåìÿ îáíîâëåíèé ÷àñòî áûâàþò èçìåíåíèÿ â øàáëîíàõ IPB ãëàâíîãî ñòèëÿ, îò êîòîðîãî âàøè ñòèëè óíàñëåäîâàíû. Åñëè øàáëîíû âàøåãî ñòèëÿ íå áûëè èçìåíåíû, îíè ïðîñòî óíàñëåäóþò èçìåíåíèÿ îò øàáëîíîâ ãëàâíîãî ñòèëÿ. Äëÿ &laquo;IPB Ñòàíäàðòíûé ñòèëü&raquo; ýòî ñëó÷èòñÿ àâòîìàòè÷åñêè.<br /><br />
Äðóãèå ñòèëè, êîòîðûå áûëè èìïîðòèðîâàíû âàìè, ìîãóò èìåòü ñâîé ñîáñòâåííûé íàáîð øàáëîíîâ, îíè ìîãóò, âîçìîæíî, áûòü îáíîâëåíû âðó÷íóþ. Åñëè âàøè øàáëîíû ñòèëÿ íå îáíîâëåíû êàê ïîëîæåíî, ìîãóò âîçíèêíóòü ïðîáëåìû... Íàïðèìåð, âû ìîæåòå óâèäåòü javascript îøèáêè, èëè âû íå ñìîæåòå óâèäåòü êàêèå-òî áëîêè, ïîòîìó ÷òî îíè íå áóäóò íàéäåíû â âàøèõ øàáëîíàõ...
<br /><br />
Øàáëîíû âàøåãî Ãëàâíîãî ñòèëÿ áóäóò îáíîâëåíû àâòîìàòè÷åñêè â òå÷åíèå ïðîöåññà îáíîâëåíèÿ, îäíàêî, ÷òîáû ðàáîòàëî âñå íîðìàëüíî íà ñòàíäàðòíîì ñòèëå, ëþáûå èçìåíåíèÿ îáÿçàíû áûòü óäàëåíû. Åñëè âû õîòèòå ñäåëàòü ýòî âðó÷íóþ, âû ìîæåòå ïðîïóñòèòü ýòîò ýòàï, çàòåì ïîñëå îáíîâëåíèÿ çàéòè â àäìèíöåíòð äëÿ óäàëåíèÿ èçìåíåíèé...
Âàì áóäåò íåîáõîäèìî çàéòè â ðåäàêòèðîâàíèå &laquo;IPB 2.1 Ñòàíäàðòíûé ñòèëü&raquo; è âûáðàòü &laquo;Îáðàòèòü âñå èçìåíåíèÿ......&raquo; äëÿ èçìåíåííûõ øàáëîíîâ. Òàêæå, ñèñòåìà îáíîâëåíèÿ ìîæåò ñäåëàòü ýòî çà âàñ.<br /><br />
Èç-çà ðàçëè÷íûõ âîçìîæíîñòåé HTML äëÿ íåñòàíäàðòíûõ ñòèëåé, ñèñòåìà îáíîâëåíèÿ íå ñìîæåò èçìåíèòü ýòè ñòèëè äëÿ âàñ. Ïîñëå òîãî, êàê îáíîâëåíèå áóäåò çàâåðøåíî, ìû ðåêîìåíäóåì âàì çàïóñòèòü óòèëèòó &laquo;Ãåíåðèðîâàòü îò÷åò ñðàâíåíèÿ ñòèëåé...&raquo; â àäìèíöåíòðå äëÿ îïðåäåëåíèÿ èçìåíåíèé, âíåñåííûõ â âàø ñòèëü.
<br /><br /><b>Âû æåëàåòå óäàëèòü âíåñåííûå â ñòèëü èçìåíåíèÿ äëÿ &laquo;{$default['set_name']}&raquo;?</b><br />(<i>Åñëè ýòî íå ñòàíäàðòíûé ñòèëü, ìû ðåêîìåíäóåì âàì ïðîïóñòèòü äàííûé ýòàï è îáíîâèòü âàøè øàáëîíû âðó÷íóþ</i>)
<div align='left'><blockquote><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=skinrevert&do_update=1&man={$default['set_skin_set_id']}'>Äà, óäàëèòü âñå èçìåíåíèÿ â ñòèëå ...</a><br />
&raquo; <a href='index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}'>Íåò, ÿ õî÷ó ïðîïóñòèòü ýòîò ýòàï ...</a></span></blockquote></div>
";
}
else
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>&laquo;IPB Ñòàíäàðòíûé ñòèëü&raquo; íå íàéäåí</strong><br />
Ýòîò ýòàï ïîçâîëÿåò âàì âîçâðàòèòü &laquo;IPB Ñòàíäàðòíûé ñòèëü&raquo; â ñòàíäàðòíûé âèä (óáðàòü âñå âàøè èçìåíåíèÿ â íåì), ýòî äàñò ãàðàíòèþ íà òî, ÷òî îáíîâëåíèÿ ñòèëåé áóäóò óíàñëåäîâàíû äîëæíûì îáðàçîì. Âàø &laquo;IPB Ñòàíäàðòíûé ñòèëü&raquo; íå áûë íàéäåí.</div>
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}'>Äàëåå ...</a></span></div>";
}
$this->ipsclass->template->output();
}
else
{
$man = intval( $this->ipsclass->input['man'] );
$cnt = 0;
$default = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => "set_skin_set_id=".$man ) );
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'skin_templates', 'where' => "set_id=".$man ) );
$outer = $this->ipsclass->DB->simple_exec();
if( $this->ipsclass->DB->get_num_rows($outer) )
{
while( $r = $this->ipsclass->DB->fetch_row($outer) )
{
if( $r['set_id'] == 1 )
{
continue;
}
else
{
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'skin_templates', 'where' => 'suid='.$r['suid'] ) );
$cnt++;
}
}
}
$next = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => "set_skin_set_id>".$man, 'orderby' => 'set_skin_set_id ASC', 'limit' => array(0,1) ) );
if( $next['set_skin_set_id'] )
{
$this->ipsclass->core->redirect( "index.php?act=work&workact=skinrevert&skinid={$next['set_skin_set_id']}&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"$cnt øàáëîíîâ èç ñòèëÿ '{$default['set_name']}' áûëî âîçâðàùåíî â ñòàíäàðòíûé âèä...." );
}
else
{
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"$cnt øàáëîíîâ èç ñòèëÿ '{$default['set_name']}' áûëî âîçâðàùåíî â ñòàíäàðòíûé âèä...." );
}
}
}
/*-------------------------------------------------------------------------*/
// INTRO
/*-------------------------------------------------------------------------*/
function upgrade_intro()
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br />
";
if ( ! is_writeable( CACHE_PATH . 'cache/skin_cache' ) )
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>ÂÍÈÌÀÍÈÅ: Ïàïêà cache/skin_cache íåäîñòóïíà äëÿ çàïèñè</strong><br />
Ïîæàëóéñòà, ïðîâåðüòå CHMOD äëÿ ýòîé ïàïêè. Åñëè âû ïðîèãíîðèðóåòå ýòî ïðåäóïðåæäåíèå, òî ôàéëû ñòèëåé
ìîãóò íåêîððåêòíî óñòàíîâèòüñÿ.</div>";
}
else
{
$this->ipsclass->template->content .= "<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå ...</a></span></div>
</div>
</div>
<br />
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>";
}
$this->ipsclass->template->output();
}
}
?>
@@ -0,0 +1,8 @@
<?php
$SQL[] = "DELETE FROM ibf_conf_settings WHERE conf_key='csite_skinchange_show'";
$SQL[] = "DELETE FROM ibf_conf_settings WHERE conf_key='csite_pm_show'";
$SQL[] = "DELETE FROM ibf_conf_settings WHERE conf_key='csite_search_show'";
$SQL[] = "UPDATE ibf_conf_settings SET conf_end_group=1 WHERE conf_key='recent_topics_discuss_number'";
?>
@@ -0,0 +1,29 @@
<?php
$import_versions = array(
'20001' => '2.0.0 PDR 1',
'20002' => '2.0.0 PDR 2',
'20003' => '2.0.0 PDR 3',
'20004' => '2.0.0 PDR 4',
'20005' => '2.0.0 PDR 5',
'20006' => '2.0.0 PF 1',
'20007' => '2.0.0 PF 2',
'20008' => '2.0.0 PF 3',
'20009' => '2.0.0 PF 4',
'20010' => '2.0.0 FINAL',
'20011' => '2.0.1 FINAL',
'20012' => '2.0.2 FINAL',
'20013' => '2.0.3 FINAL',
'20014' => '2.0.4 FINAL',
'21003' => '2.1.0 BETA 5',
'21004' => '2.1.0 RC 1',
'21005' => '2.1.0 RC 2',
'21006' => '2.1.0 FINAL',
'21007' => '2.1.1',
'21008' => '2.1.2',
'21009' => '2.1.3',
'21010' => '2.1.4',
);
?>
@@ -0,0 +1,327 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| 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: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.1.2 -> 2.1.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>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class version_upgrade
{
var $this_version = '21010';
var $upgrade_from = '21009';
var $first_step = 'îáíîâèò âàøó áàçó äàííûõ äëÿ âñòàâêè íîâûõ ïîëåé è òàáëèö';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade()
{
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
{
$this->mod_to_run = 'None';
}
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//--------------------------------
// What are we doing?
// sql => DONE
//--------------------------------
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
break;
default:
$this->upgrade_intro();
break;
}
}
/*-------------------------------------------------------------------------*/
// SQL: 0
/*-------------------------------------------------------------------------*/
function upgrade_sql()
{
$man = intval( $this->ipsclass->input['man'] );
$SQL = array();
$file = '_updates.php';
$cnt = 0;
if ( file_exists( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file ) )
{
require_once( THIS_PATH . 'upg_' . $this->ipsclass->current_upgrade . '/' . strtolower($this->ipsclass->vars['sql_driver']) . $file );
// IBR Fix Portal Settings
$query1 = $this->ipsclass->DB->query("SELECT conf_title_id FROM ibf_conf_settings_titles WHERE conf_title_keyword = 'portal_poll' LIMIT 0,1");
if ( $portal_poll = $this->ipsclass->DB->fetch_row( $query1 ) )
{
$this->ipsclass->DB->build_query( array( 'select' => 'conf_id',
'from' => 'conf_settings',
'where' => 'conf_key=\'poll_poll_url\'',
'limit' => array( 0, 1 ) ) );
$this->ipsclass->DB->exec_query();
if ( $opt01 = $this->ipsclass->DB->fetch_row() )
{
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_group' => $portal_poll['conf_title_id'] ), 'conf_key=\'poll_poll_url\'' );
}
else
{
$this->ipsclass->DB->do_insert( 'conf_settings', array( 'conf_title' => 'Ââåäèòå URL òåìû ñ èìïîðòèðóåìûì îïðîñîì', 'conf_group' => $portal_poll['conf_title_id'], 'conf_description' => 'Îñòàâüòå ïóñòûì, åñëè íå õîòèòå, ÷òîáû îòîáðàæàëñÿ áëîê ñ îïðîñîì', 'conf_type' => 'input', 'conf_key' => 'poll_poll_url', 'conf_protected' => '1', 'conf_position' => '17', 'conf_end_group' => '0', 'conf_add_cache' => '0' ) );
}
}
else
{
$this->ipsclass->DB->do_insert( 'conf_settings_titles', array( 'conf_title_keyword' => 'portal_poll', 'conf_title_title' => 'Ïîðòàë: Îïðîñ', 'conf_title_desc' => 'Íàñòðîéêè âûâîäà îïðîñà â ïîðòàë.', 'conf_title_noshow' => '1' ) );
$fix1 = $this->ipsclass->DB->query("SELECT conf_title_id FROM ibf_conf_settings_titles WHERE conf_title_keyword = 'portal_poll' LIMIT 0,1");
if ( $pix1 = $this->ipsclass->DB->fetch_row( $fix1 ) )
{
$this->ipsclass->DB->build_query( array( 'select' => 'conf_id',
'from' => 'conf_settings',
'where' => 'conf_key=\'poll_poll_url\'',
'limit' => array( 0, 1 ) ) );
$this->ipsclass->DB->exec_query();
if ( $pixopt01 = $this->ipsclass->DB->fetch_row() )
{
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_group' => $pix1['conf_title_id'] ), 'conf_key=\'poll_poll_url\'' );
}
else
{
$this->ipsclass->DB->do_insert( 'conf_settings', array( 'conf_title' => 'Ââåäèòå URL òåìû ñ èìïîðòèðóåìûì îïðîñîì', 'conf_group' => $pix1['conf_title_id'], 'conf_description' => 'Îñòàâüòå ïóñòûì, åñëè íå õîòèòå, ÷òîáû îòîáðàæàëñÿ áëîê ñ îïðîñîì', 'conf_type' => 'input', 'conf_key' => 'poll_poll_url', 'conf_protected' => '1', 'conf_position' => '17', 'conf_end_group' => '0', 'conf_add_cache' => '0' ) );
}
}
}
$query2 = $this->ipsclass->DB->query("SELECT conf_title_id FROM ibf_conf_settings_titles WHERE conf_title_keyword = 'portal_recent_topics' LIMIT 0,1");
if ( $portal_recent = $this->ipsclass->DB->fetch_row( $query2 ) )
{
// 1
$this->ipsclass->DB->build_query( array( 'select' => 'conf_id',
'from' => 'conf_settings',
'where' => 'conf_key=\'recent_topics_discuss_number\'',
'limit' => array( 0, 1 ) ) );
$this->ipsclass->DB->exec_query();
if ( $opt02 = $this->ipsclass->DB->fetch_row() )
{
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_group' => $portal_recent['conf_title_id'] ), 'conf_key=\'recent_topics_discuss_number\'' );
}
else
{
$this->ipsclass->DB->do_insert( 'conf_settings', array( 'conf_title' => 'Êîëè÷åñòâî îòîáðàæàåìûõ òåì', 'conf_group' => $portal_recent['conf_title_id'], 'conf_description' => 'Êîëè÷åñòâî îòîáðàæàåìûõ çàãîëîâêîâ òåì äëÿ ïîðòàëüíîãî òýãà recent_discussions_last_x', 'conf_type' => 'input', 'conf_key' => 'recent_topics_discuss_number', 'conf_default' => '1','conf_protected' => '1', 'conf_position' => '9', 'conf_start_group' => 'Ïîñëåäíèå îáñóæäåíèÿ', 'conf_end_group' => '0', 'conf_add_cache' => '0' ) );
}
// 2
$this->ipsclass->DB->build_query( array( 'select' => 'conf_id',
'from' => 'conf_settings',
'where' => 'conf_key=\'recent_topics_article_forum\'',
'limit' => array( 0, 1 ) ) );
$this->ipsclass->DB->exec_query();
if ( $opt03 = $this->ipsclass->DB->fetch_row() )
{
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_group' => $portal_recent['conf_title_id'] ), 'conf_key=\'recent_topics_article_forum\'' );
}
else
{
$this->ipsclass->DB->do_insert( 'conf_settings', array( 'conf_title' => 'Èç êàêèõ ôîðóìîâ ýêñïîðòèðîâàòü íîâîñòè?', 'conf_group' => $portal_recent['conf_title_id'], 'conf_description' => 'Âû ìîæåòå âûáèðàòü íåñêîëüêî ôîðóìîâ.', 'conf_type' => 'multi', 'conf_key' => 'recent_topics_article_forum', 'conf_extra' => '#show_forums#', 'conf_evalphp' => 'if ( $save == 1){ if ( is_array($_POST[\'recent_topics_article_forum\']) ) { $_POST[\'recent_topics_article_forum\'] = implode(\",\",$_POST[\'recent_topics_article_forum\']); } else { $_POST[\'recent_topics_article_forum\'] = \"\"; } $key = \'recent_topics_article_forum\';}if ( $show == 1 ){$key = \'recent_topics_article_forum[]\';}', 'conf_protected' => '1', 'conf_position' => '3', 'conf_end_group' => '0', 'conf_add_cache' => '0' ) );
}
// 3
$this->ipsclass->DB->build_query( array( 'select' => 'conf_id',
'from' => 'conf_settings',
'where' => 'conf_key=\'recent_topics_article_max\'',
'limit' => array( 0, 1 ) ) );
$this->ipsclass->DB->exec_query();
if ( $opt04 = $this->ipsclass->DB->fetch_row() )
{
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_group' => $portal_recent['conf_title_id'] ), 'conf_key=\'recent_topics_article_max\'' );
}
else
{
$this->ipsclass->DB->do_insert( 'conf_settings', array( 'conf_title' => 'Êîëè÷åñòâî íîâîñòåé äëÿ îòîáðàæåíèÿ', 'conf_group' => $portal_recent['conf_title_id'], 'conf_description' => 'Êîëè÷åñòâî òåì, îòîáðàæàåìûõ â ïîðòàëüíîì òýãå recent_topics_last_x', 'conf_type' => 'input', 'conf_key' => 'recent_topics_article_max', 'conf_default' => '15','conf_protected' => '1', 'conf_position' => '4', 'conf_start_group' => 'Ïîñëåäíèå íîâîñòè', 'conf_end_group' => '1', 'conf_add_cache' => '0' ) );
}
}
else
{
$this->ipsclass->DB->do_insert( 'conf_settings_titles', array( 'conf_title_keyword' => 'portal_recent_topics', 'conf_title_title' => 'Ïîðòàë: Ïîñëåäíèå îáñóæäåíèÿ', 'conf_title_desc' => 'Íàñòðîéêè âûâîäà ïîñëåäíèõ îáñóæäåíèé â ïîðòàë', 'conf_title_noshow' => '1' ) );
$fix2 = $this->ipsclass->DB->query("SELECT conf_title_id FROM ibf_conf_settings_titles WHERE conf_title_keyword = 'portal_recent_topics' LIMIT 0,1");
if ( $pix2 = $this->ipsclass->DB->fetch_row( $fix2 ) )
{
// 1
$this->ipsclass->DB->build_query( array( 'select' => 'conf_id',
'from' => 'conf_settings',
'where' => 'conf_key=\'recent_topics_discuss_number\'',
'limit' => array( 0, 1 ) ) );
$this->ipsclass->DB->exec_query();
if ( $opt02 = $this->ipsclass->DB->fetch_row() )
{
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_group' => $pix2['conf_title_id'] ), 'conf_key=\'recent_topics_discuss_number\'' );
}
else
{
$this->ipsclass->DB->do_insert( 'conf_settings', array( 'conf_title' => 'Êîëè÷åñòâî îòîáðàæàåìûõ òåì', 'conf_group' => $pix2['conf_title_id'], 'conf_description' => 'Êîëè÷åñòâî îòîáðàæàåìûõ çàãîëîâêîâ òåì äëÿ ïîðòàëüíîãî òýãà recent_discussions_last_x', 'conf_type' => 'input', 'conf_key' => 'recent_topics_discuss_number', 'conf_default' => '1','conf_protected' => '1', 'conf_position' => '9', 'conf_start_group' => 'Ïîñëåäíèå îáñóæäåíèÿ', 'conf_end_group' => '0', 'conf_add_cache' => '0' ) );
}
// 2
$this->ipsclass->DB->build_query( array( 'select' => 'conf_id',
'from' => 'conf_settings',
'where' => 'conf_key=\'recent_topics_article_forum\'',
'limit' => array( 0, 1 ) ) );
$this->ipsclass->DB->exec_query();
if ( $opt03 = $this->ipsclass->DB->fetch_row() )
{
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_group' => $pix2['conf_title_id'] ), 'conf_key=\'recent_topics_article_forum\'' );
}
else
{
$this->ipsclass->DB->do_insert( 'conf_settings', array( 'conf_title' => 'Èç êàêèõ ôîðóìîâ ýêñïîðòèðîâàòü íîâîñòè?', 'conf_group' => $pix2['conf_title_id'], 'conf_description' => 'Âû ìîæåòå âûáèðàòü íåñêîëüêî ôîðóìîâ.', 'conf_type' => 'multi', 'conf_key' => 'recent_topics_article_forum', 'conf_extra' => '#show_forums#', 'conf_evalphp' => 'if ( $save == 1){ if ( is_array($_POST[\'recent_topics_article_forum\']) ) { $_POST[\'recent_topics_article_forum\'] = implode(\",\",$_POST[\'recent_topics_article_forum\']); } else { $_POST[\'recent_topics_article_forum\'] = \"\"; } $key = \'recent_topics_article_forum\';}if ( $show == 1 ){$key = \'recent_topics_article_forum[]\';}', 'conf_protected' => '1', 'conf_position' => '3', 'conf_end_group' => '0', 'conf_add_cache' => '0' ) );
}
// 3
$this->ipsclass->DB->build_query( array( 'select' => 'conf_id',
'from' => 'conf_settings',
'where' => 'conf_key=\'recent_topics_article_max\'',
'limit' => array( 0, 1 ) ) );
$this->ipsclass->DB->exec_query();
if ( $opt04 = $this->ipsclass->DB->fetch_row() )
{
$this->ipsclass->DB->do_update( 'conf_settings', array( 'conf_group' => $pix2['conf_title_id'] ), 'conf_key=\'recent_topics_article_max\'' );
}
else
{
$this->ipsclass->DB->do_insert( 'conf_settings', array( 'conf_title' => 'Êîëè÷åñòâî íîâîñòåé äëÿ îòîáðàæåíèÿ', 'conf_group' => $pix2['conf_title_id'], 'conf_description' => 'Êîëè÷åñòâî òåì, îòîáðàæàåìûõ â ïîðòàëüíîì òýãå recent_topics_last_x', 'conf_type' => 'input', 'conf_key' => 'recent_topics_article_max', 'conf_default' => '15','conf_protected' => '1', 'conf_position' => '4', 'conf_start_group' => 'Ïîñëåäíèå íîâîñòè', 'conf_end_group' => '1', 'conf_add_cache' => '0' ) );
}
}
}
// IBR Fix end
foreach( $SQL as $q )
{
$q = str_replace( "<%time%>", time(), $q );
$this->ipsclass->DB->query( $q );
$cnt++;
}
}
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"$cnt çàïðîñîâ âûïîëíåíî...." );
}
/*-------------------------------------------------------------------------*/
// INTRO
/*-------------------------------------------------------------------------*/
function upgrade_intro()
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Äîáðî ïîæàëîâàòü â ñèñòåìó îáíîâëåíèÿ IPB</div>
<div class='tdrow1' style='padding:6px'>Ýòîò ìîäóëü îáíîâèò âàø ôîðóì ñ <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> äî <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Ýòîò ïåðâûé ýòàï {$this->first_step}
<br />
";
if ( ! is_writeable( CACHE_PATH . 'cache/skin_cache' ) )
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>ÂÍÈÌÀÍÈÅ: Ïàïêà cache/skin_cache íåäîñòóïíà äëÿ çàïèñè</strong><br />
Ïîæàëóéñòà, ïðîâåðüòå CHMOD äëÿ ýòîé ïàïêè. Åñëè âû ïðîèãíîðèðóåòå ýòî ïðåäóïðåæäåíèå, òî ôàéëû ñòèëåé
ìîãóò íåêîððåêòíî óñòàíîâèòüñÿ.</div>";
}
else
{
$this->ipsclass->template->content .= "<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Äàëåå ...</a></span></div>
</div>
</div>
<br />
<div align='center'>Ïîñëå ýòîãî ìîäóëÿ áóäåò çàïóùåíî: {$this->mod_to_run}</div>";
}
$this->ipsclass->template->output();
}
}
?>
@@ -0,0 +1,497 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<settingexport exported="1141210512">
<settinggroup>
<setting>
<conf_id>252</conf_id>
<conf_title>Ðàçðåøåííûå ðàñøèðåíèÿ ôàéëîâ äëÿ URL àâàòàðîâ</conf_title>
<conf_description>Ðàçäåëÿéòå çàïÿòîé (gif,jpeg,jpg,png) è ò.ä.</conf_description>
<conf_group>27</conf_group>
<conf_type>input</conf_type>
<conf_key>avatar_ext</conf_key>
<conf_value></conf_value>
<conf_default>gif,jpg,jpeg,png</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>13</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key>0</conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>userprofiles</conf_title_keyword>
</setting>
<setting>
<conf_id>37</conf_id>
<conf_title><![CDATA[Îòïðàâëÿòü HTTP çàãîëîâîê &laquo;no-cache&raquo;?]]></conf_title>
<conf_description><![CDATA[(Ýòîò ïóíêò ïðèêàæåò áðàóçåðàì íå êåøèðîâàòü ñòðàíèöû ôîðóìà.<br /><b>Âíèìàíèå</b>: ×òîáû ýòà îïöèÿ ðàáîòàëà, íåîáõîäèìî, ÷òîáû äðóãàÿ îïöèÿ &laquo;Ïðèíóäèòåëüíî îòïðàâëÿòü HTTP çàãîëîâêè?&raquo; áûëà âêëþ÷åíà.]]></conf_description>
<conf_group>7</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>nocache</conf_key>
<conf_value></conf_value>
<conf_default>1</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>14</conf_position>
<conf_start_group>Óìåíüøåíèå òðàôèêà</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key>0</conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>cpusaving</conf_title_keyword>
</setting>
<setting>
<conf_is_title>1</conf_is_title>
<conf_title_keyword>userprofiles</conf_title_keyword>
<conf_title_title>Ïðîôèëè ïîëüçîâàòåëåé</conf_title_title>
<conf_title_desc><![CDATA[Ãëîáàëüíûå íàñòðîéêè ïðîôèëÿ ïîëüçîâàòåëåé, àâàòàðû è ôîòîãðàôèè.]]></conf_title_desc>
<conf_title_noshow>0</conf_title_noshow>
</setting>
<setting>
<conf_is_title>1</conf_is_title>
<conf_title_keyword>cpusaving</conf_title_keyword>
<conf_title_title><![CDATA[Íàñòðîéêè Áûñòðîäåéñòâèÿ]]></conf_title_title>
<conf_title_desc>Ïîçâîëÿþò îãðàíè÷èâàòü èëè îòêëþ÷àòü íåêîòîðûå ðåñóðñîåìêèå âîçìîæíîñòè ôîðóìà äëÿ óâåëè÷åíèÿ ñêîðîñòè ðàáîòû âàøåãî ôîðóìà, à òàê æå óìåíüøåíèÿ íàãðóçêè íà ñåðâåð.</conf_title_desc>
<conf_title_noshow>0</conf_title_noshow>
</setting>
<setting>
<conf_id>202</conf_id>
<conf_title>Chat Site ID / Account No.</conf_title>
<conf_description>Åñëè âû èñïîëüçóåòå Parachat v7 è âûøå, ââåäèòå âàø site ID. Åñëè âû èñïîëüçóåòå ñòàðóþ âåðñèþ Parachat, ïîæàëóéñòà ââåäèòå âàø group number</conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_account_no</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>1</conf_position>
<conf_start_group>Íàñòðîéêè ó÷åòíîé çàïèñè</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>351</conf_id>
<conf_title>Custom Applet Codebase URL</conf_title>
<conf_description><![CDATA[<strong>Ýòîò ïóíêò äîëæåí áûòü ïóñòûì äî òåõ ïîð, ïîêà âû èìååòå
ParaChat Server èëè ParaChat Enterprise hosted solution.</strong>]]></conf_description>
<conf_group>21</conf_group>
<conf_type>input</conf_type>
<conf_key>parachat_codebase_url</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>2</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>350</conf_id>
<conf_title>Chat Room Version</conf_title>
<conf_description><![CDATA[Âåðñèÿ Parachat, êîòîðóþ âû èñïîëüçóåòå]]></conf_description>
<conf_group>21</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>parachat_version</conf_key>
<conf_value></conf_value>
<conf_default>6</conf_default>
<conf_extra>6=Parachat v6, è íèæå
7=Parachat v7, è âûøå</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>3</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>204</conf_id>
<conf_title><![CDATA[Âêëþ÷èòü &#39;Êòî â ÷àòå?&#39;]]></conf_title>
<conf_description><![CDATA[Åñëè ýòó îïöèþ âêëþ÷èòü, òî íà ãëàâíîé ñòðàíèöå ôîðóìà â áëîêå ñòàòèñòèêè áóäåò ïîêàçûâàòüñÿ áëîê ñ ïîëüçîâàòåëÿì, êòî ñåé÷àñ íàõîäèòñÿ â ÷àòå.]]></conf_description>
<conf_group>8</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>chat04_who_on</conf_key>
<conf_value></conf_value>
<conf_default>1</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>4</conf_position>
<conf_start_group><![CDATA[Êòî â ÷àòå]]></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>205</conf_id>
<conf_title><![CDATA[Ñêðûâàòü &laquo;Êòî â ÷àòå&raquo;, êîãäà íåò ïîëüçîâàòåëåé â ÷àòå?]]></conf_title>
<conf_description></conf_description>
<conf_group>11</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>chat04_hide_whoschatting</conf_key>
<conf_value></conf_value>
<conf_default>1</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>5</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>209</conf_id>
<conf_title>Ðàçìåðû êîìíàòû ÷àòà (ØÈÐÈÍÀ)?</conf_title>
<conf_description></conf_description>
<conf_group>11</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_width</conf_key>
<conf_value></conf_value>
<conf_default>600</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>8</conf_position>
<conf_start_group>Îòîáðàæåíèå êîìíàòû ÷àòà</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>210</conf_id>
<conf_title>Ðàçìåðû êîìíàòû ÷àòà (ÂÛÑÎÒÀ)?</conf_title>
<conf_description></conf_description>
<conf_group>11</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_height</conf_key>
<conf_value></conf_value>
<conf_default>350</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>9</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>213</conf_id>
<conf_title>Çàãðóæàòü êîìíàòó ÷àòà â...?</conf_title>
<conf_description></conf_description>
<conf_group>11</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>chat04_display</conf_key>
<conf_value></conf_value>
<conf_default>self</conf_default>
<conf_extra>self=Íîðìàëüíîé IPB ñòðàíèöå</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>12</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>261</conf_id>
<conf_title>Äîïîëíèòåëüíûå ïàðàìåòðû</conf_title>
<conf_description><![CDATA[Èñïîëüçóéòå ýòî ïîëå äëÿ ââåäåíèÿ ëþáûõ ñîáñòâåííûõ òýãîâ ïàðàìåòðîâ äëÿ ÷àòà.
Ïðèìåð:<br />
&lt;param name="cmd.BeepEnter" value="true"&gt;
<br />&lt;param name="cmd.BeepLeave" value="true"&gt;
<br />Ïîæàëóéñòà, ïðî÷òèòå äîêóìåíòàöèþ ê Invision Chat äëÿ ïîëó÷åíèÿ ïîäðîáíîé èíôîðìàöèè.]]></conf_description>
<conf_group>11</conf_group>
<conf_type>textarea</conf_type>
<conf_key>chat04_customparams</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>13</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>211</conf_id>
<conf_title>Pop-up îêíî êîìíàòû ÷àòà ôèêñèðîâàííûõ ðàçìåðîâ? (â ïèêñåëÿõ)</conf_title>
<conf_description>Ðàçðåøèòü îòêðûâàòü îêíî áåç ïîëîñ ïðîêðóòêè</conf_description>
<conf_group>11</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_poppad</conf_key>
<conf_value></conf_value>
<conf_default>50</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>14</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>214</conf_id>
<conf_title>Ðàçðåøèòü äîñòóï â ÷àò äëÿ ýòèõ ãðóïï</conf_title>
<conf_description>Âû ìîæåòå âûáèðàòü áîëåå, ÷åì îäíó</conf_description>
<conf_group>11</conf_group>
<conf_type>multi</conf_type>
<conf_key>chat04_access_groups</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra>#show_groups#</conf_extra>
<conf_evalphp><![CDATA[if ( $save == 1)
{
if ( is_array($_POST['chat04_access_groups']) )
{
$_POST['chat04_access_groups'] = implode(",",$_POST['chat04_access_groups']);
}
else
{
$_POST['chat04_access_groups'] = "";
}
$key = 'chat04_access_groups';
}
if ( $show == 1 )
{
$key = 'chat04_access_groups[]';
}]]></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>25</conf_position>
<conf_start_group>Ïðàâà äîñòóïà</conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>254</conf_id>
<conf_title>ßçûê âñåõ ñòàíäàðòíûõ çàïèñåé â êîìíàòàõ ÷àòà (ïî óìîë÷àíèþ)</conf_title>
<conf_description>ßçûê ñòàíäàðòíûõ çàïèñåé</conf_description>
<conf_group>11</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>chat04_default_lang</conf_key>
<conf_value></conf_value>
<conf_default>english.conf</conf_default>
<conf_extra>english.conf=Àíãëèéñêèé
spanish.conf=Èñïàíñêèé
portuguese.conf=Ïîðòóãàëüñêèé
italian.conf=Èòàëüÿíñêèé
french.conf=Ôðàíöóçñêèé
german.conf=Íåìåöêèé</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>99</conf_position>
<conf_start_group>Íàñòðîéêè øåñòîé âåðñèè (íå òðåáóåòñÿ â v7)</conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>253</conf_id>
<conf_title>Òèï êîìíàòû ÷àòà</conf_title>
<conf_description>Ýòî òèï êóïëåííîãî âàìè ÷àòà</conf_description>
<conf_group>11</conf_group>
<conf_type>dropdown</conf_type>
<conf_key>chat04_servicetype</conf_key>
<conf_value></conf_value>
<conf_default></conf_default>
<conf_extra>advanced=Advanced
premium=Premium</conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>100</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>252</conf_id>
<conf_title>Êîìíàòà ÷àòà ïî óìîë÷àíèþ</conf_title>
<conf_description>Ýòî êîìíàòà ÷àòà, â êîòîðóþ ïîïàäóò ïîëüçîâàòåëè, âîéäÿ â ÷àò.</conf_description>
<conf_group>11</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_default_room</conf_key>
<conf_value></conf_value>
<conf_default>Lobby</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>2</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>1</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>255</conf_id>
<conf_title><![CDATA[Âêëþ÷èòü &quot;òåêñòîâûé ðåæèì&quot;?]]></conf_title>
<conf_description><![CDATA[&laquo;Òåêñòîâûé ðåæèì&raquo; óáèðàåò öâåòíîé òåêñò èç êîìíàò âàøåãî Invision Power Chat Advanced. Ýòî òàêæå îòêëþ÷àåò ãðàôè÷åñêèå ñìàéëû è íàæèìàåìûe URL àäðåñà.]]></conf_description>
<conf_group>11</conf_group>
<conf_type>yes_no</conf_type>
<conf_key>chat04_plainmode</conf_key>
<conf_value></conf_value>
<conf_default>0</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>102</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>256</conf_id>
<conf_title>×àò: Öâåò ôîíà</conf_title>
<conf_description>Äëÿ èçìåíåíèÿ öâåòà ôîíà âàøåãî ÷àòà ââåäèòå íåîáõîäèìûé öâåò çäåñü (RGB).</conf_description>
<conf_group>11</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_style_applet_bg</conf_key>
<conf_value></conf_value>
<conf_default>#BCD0ED</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>130</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>257</conf_id>
<conf_title>×àò: Öâåò ïåðåäíåãî ïëàíà</conf_title>
<conf_description>Äëÿ èçìåíåíèÿ öâåòà ïåðåäíåãî ïëàíà âàøåãî ÷àòà ââåäèòå íåîáõîäèìûé öâåò çäåñü (RGB).</conf_description>
<conf_group>11</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_style_applet_fg</conf_key>
<conf_value></conf_value>
<conf_default>#345487</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>131</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>258</conf_id>
<conf_title>Îêíî ÷àòà: Öâåò ôîíà</conf_title>
<conf_description>Äëÿ èçìåíåíèÿ öâåòà ôîíà âàøåãî ÷àòà ââåäèòå íåîáõîäèìûé öâåò çäåñü (RGB).</conf_description>
<conf_group>11</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_style_window_bg</conf_key>
<conf_value></conf_value>
<conf_default>#F5F9FD</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>132</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>259</conf_id>
<conf_title>Îêíî ÷àòà: Öâåò ïåðåäíåãî ïëàíà</conf_title>
<conf_description>Äëÿ èçìåíåíèÿ öâåòà ïåðåäíåãî ïëàíà âàøåãî ÷àòà ââåäèòå íåîáõîäèìûé öâåò çäåñü (RGB).</conf_description>
<conf_group>11</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_style_window_fg</conf_key>
<conf_value></conf_value>
<conf_default>#345487</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>133</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>0</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_id>260</conf_id>
<conf_title>Ðàçìåð øðèôòà äëÿ òåêñòà â ÷àòå</conf_title>
<conf_description><![CDATA[Äëÿ èçìåíåíèÿ ðàçìåðà øðèôòà, ïðèìåíÿåìîãî â ÷àòå, èñïîëüçóéòå ýòó îïöèþ.]]></conf_description>
<conf_group>11</conf_group>
<conf_type>input</conf_type>
<conf_key>chat04_style_font_size</conf_key>
<conf_value></conf_value>
<conf_default>10</conf_default>
<conf_extra></conf_extra>
<conf_evalphp></conf_evalphp>
<conf_protected>1</conf_protected>
<conf_position>135</conf_position>
<conf_start_group></conf_start_group>
<conf_end_group>1</conf_end_group>
<conf_help_key></conf_help_key>
<conf_add_cache>0</conf_add_cache>
<conf_title_keyword>chat04</conf_title_keyword>
</setting>
<setting>
<conf_is_title>1</conf_is_title>
<conf_title_keyword>chat04</conf_title_keyword>
<conf_title_title>Invision Chat Íàñòðîéêè</conf_title_title>
<conf_title_desc>Ýòîò ïóíêò ïîçâîëÿåò èçìåíÿòü âàø Invision Chat âåðñèþ 2004 ãîäà.</conf_title_desc>
<conf_title_noshow>1</conf_title_noshow>
</setting>
</settinggroup>
</settingexport>
@@ -0,0 +1,9 @@
<?php
$SQL[] = "INSERT INTO ibf_admin_permission_keys ( `perm_key` , `perm_main` , `perm_child` , `perm_bit` ) VALUES ('admin:splash:splash', 'admin', 'splash', 'splash')";
$SQL[] = "ALTER TABLE ibf_members CHANGE email email varchar( 150 ) NOT NULL default ''";
$SQL[] = "ALTER TABLE ibf_subscription_currency CHANGE `subcurrency_exchange` `subcurrency_exchange` DECIMAL( 16, 8 ) DEFAULT '0.00000000' NOT NULL";
?>
@@ -0,0 +1,30 @@
<?php
$import_versions = array(
'20001' => '2.0.0 PDR 1',
'20002' => '2.0.0 PDR 2',
'20003' => '2.0.0 PDR 3',
'20004' => '2.0.0 PDR 4',
'20005' => '2.0.0 PDR 5',
'20006' => '2.0.0 PF 1',
'20007' => '2.0.0 PF 2',
'20008' => '2.0.0 PF 3',
'20009' => '2.0.0 PF 4',
'20010' => '2.0.0 FINAL',
'20011' => '2.0.1 FINAL',
'20012' => '2.0.2 FINAL',
'20013' => '2.0.3 FINAL',
'20014' => '2.0.4 FINAL',
'21003' => '2.1.0 BETA 5',
'21004' => '2.1.0 RC 1',
'21005' => '2.1.0 RC 2',
'21006' => '2.1.0 FINAL',
'21007' => '2.1.1',
'21008' => '2.1.2',
'21009' => '2.1.3',
'21010' => '2.1.4',
'21011' => '2.1.5',
);
?>
@@ -0,0 +1,273 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| 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: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.1.4 -> 2.1.5
| > 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 $this_version = '21011';
var $upgrade_from = '21010';
var $first_step = 'обновит вашу базу данных для вставки новых полей и таблиц.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade()
{
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
{
$this->mod_to_run = 'None';
}
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//--------------------------------
// What are we doing?
//--------------------------------
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
break;
case 'skinrevert':
$this->revert_skin_changes();
break;
default:
$this->upgrade_intro();
break;
}
}
/*-------------------------------------------------------------------------*/
// SQL
/*-------------------------------------------------------------------------*/
function upgrade_sql()
{
$cnt = 0;
$SQL = array();
if ( file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' ) )
{
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' );
foreach( $SQL as $q )
{
$this->ipsclass->DB->query( $q );
$cnt++;
}
}
//--------------------------------
// Next page...
//--------------------------------
$this->ipsclass->core->redirect( "{$this->base_url}&workact=skinrevert", "$cnt запросов выполнено...." );
}
/*-------------------------------------------------------------------------*/
// Revert Skin Changes
/*-------------------------------------------------------------------------*/
function revert_skin_changes()
{
if(! $this->ipsclass->input['do_update'] )
{
$id = intval($this->ipsclass->input['skinid']) ? intval($this->ipsclass->input['skinid']) : 1;
$default = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => "set_skin_set_id>{$id}" ) );
if( !$default['set_skin_set_id'] )
{
if( $id > 2 )
{
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"Для проверки больше стилей нет...." );
}
else
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>Стили не найдены</strong><br />
Этот этап позволяет вам удалить внесенные вами изменения в стилях, для того, чтобы внести их вам вручную на обновленном форуме заново, и, чтобы процесс обновления обновил стили как положено.
Скрипт не смог найти ни одного стиляы. Вам потребуется после обновления зайти в админцентр и обратить стили вручную, чтобы скрипт внес изменения в шаблоны форума корректно..</div>
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}'>Далее ...</a></span></div>";
}
}
if( count( $default ) )
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Вы желаете возвратить стиль в стандартный вид (убрав все ваши изменения в нем)?</div>
<div class='tdrow1' style='padding:6px'>Во время обновлений часто бывают изменения в шаблонах IPB главного стиля, от которого ваши стили унаследованы. Если шаблоны вашего стиля не были изменены, они просто унаследуют изменения от шаблонов главного стиля. Для &laquo;IPB Стандартный стиль&raquo; это случится автоматически.<br /><br />
Другие стили, которые были импортированы вами, могут иметь свой собственный набор шаблонов, они могут, возможно, быть обновлены вручную. Если ваши шаблоны стиля не обновлены как положено, могут возникнуть проблемы... Например, вы можете увидеть javascript ошибки, или вы не сможете увидеть какие-то блоки, потому что они не будут найдены в ваших шаблонах...
<br /><br />
Шаблоны вашего Главного стиля будут обновлены автоматически в течение процесса обновления, однако, чтобы работало все нормально на стандартном стиле, любые изменения обязаны быть удалены. Если вы хотите сделать это вручную, вы можете пропустить этот этап, затем после обновления зайти в админцентр для удаления изменений...
Вам будет необходимо зайти в редактирование &laquo;IPB 2.1 Стандартный стиль&raquo; и выбрать &laquo;Обратить все изменения......&raquo; для измененных шаблонов. Также, система обновления может сделать это за вас.<br /><br />
Из-за различных возможностей HTML для нестандартных стилей, система обновления не сможет изменить эти стили для вас. После того, как обновление будет завершено, мы рекомендуем вам запустить утилиту &laquo;Генерировать отчет сравнения стилей...&raquo; в админцентре для определения изменений, внесенных в ваш стиль.
<br /><br /><b>Вы желаете удалить внесенные в стиль изменения для &laquo;{$default['set_name']}&raquo;?</b><br />(<i>Если это не стандартный стиль, мы рекомендуем вам пропустить данный этап и обновить ваши шаблоны вручную</i>)
<div align='left'><blockquote><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=skinrevert&do_update=1&man={$default['set_skin_set_id']}&do=all'>Да, удалить все изменения во ВСЕХ стилях ...</a><br />
<span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=skinrevert&do_update=1&man={$default['set_skin_set_id']}'>Да, удалить все изменения в этом стиле ...</a><br />
&raquo; <a href='index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}'>Нет, я хочу пропустить этот этап ...</a></span></blockquote></div>
";
}
else
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>Стили не найдены</strong><br />
Этот этап позволяет вам удалить внесенные вами изменения в стилях, для того, чтобы внести их вам вручную на обновленном форуме заново.</div>
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}'>Далее ...</a></span></div>";
}
$this->ipsclass->template->output();
}
else
{
$man = intval( $this->ipsclass->input['man'] );
$cnt = 0;
$default = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => "set_skin_set_id=".$man ) );
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'skin_templates', 'where' => "set_id=".$man ) );
$outer = $this->ipsclass->DB->simple_exec();
if( $this->ipsclass->DB->get_num_rows($outer) )
{
while( $r = $this->ipsclass->DB->fetch_row($outer) )
{
if( $r['set_id'] == 1 )
{
continue;
}
else
{
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'skin_templates', 'where' => 'suid='.$r['suid'] ) );
$cnt++;
}
}
}
$next = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => "set_skin_set_id>".$man, 'orderby' => 'set_skin_set_id ASC', 'limit' => array(0,1) ) );
if( $next['set_skin_set_id'] )
{
if( $this->ipsclass->input['do'] == 'all' )
{
$this->ipsclass->core->redirect( "index.php?act=work&workact=skinrevert&do_update=1&do=all&man={$next['set_skin_set_id']}&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"$cnt шаблонов из стиля '{$default['set_name']}' было возвращено в стандартный вид, переходим к следующему стилю...." );
}
else
{
$this->ipsclass->core->redirect( "index.php?act=work&workact=skinrevert&skinid={$man}&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"$cnt шаблонов из стиля '{$default['set_name']}' было возвращено в стандартный вид...." );
}
}
else
{
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"$cnt шаблонов из стиля '{$default['set_name']}' было возвращено в стандартный вид...." );
}
}
}
/*-------------------------------------------------------------------------*/
// INTRO
/*-------------------------------------------------------------------------*/
function upgrade_intro()
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Добро пожаловать в систему обновления IPB</div>
<div class='tdrow1' style='padding:6px'>Этот модуль обновит ваш форум с <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> до <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Этот первый этап {$this->first_step}
<br />
";
if ( ! is_writeable( CACHE_PATH . 'cache/skin_cache' ) )
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>ВНИМАНИЕ: Папка cache/skin_cache недоступна для записи</strong><br />
Пожалуйста, проверьте CHMOD для этой папки. Если вы проигнорируете это предупреждение, то файлы стилей
могут некорректно установиться.</div>";
}
else
{
$this->ipsclass->template->content .= "<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Далее ...</a></span></div>
</div>
</div>
<br />
<div align='center'>После этого модуля будет запущено: {$this->mod_to_run}</div>";
}
$this->ipsclass->template->output();
}
}
?>
@@ -0,0 +1,31 @@
<?php
$import_versions = array(
'20001' => '2.0.0 PDR 1',
'20002' => '2.0.0 PDR 2',
'20003' => '2.0.0 PDR 3',
'20004' => '2.0.0 PDR 4',
'20005' => '2.0.0 PDR 5',
'20006' => '2.0.0 PF 1',
'20007' => '2.0.0 PF 2',
'20008' => '2.0.0 PF 3',
'20009' => '2.0.0 PF 4',
'20010' => '2.0.0 FINAL',
'20011' => '2.0.1 FINAL',
'20012' => '2.0.2 FINAL',
'20013' => '2.0.3 FINAL',
'20014' => '2.0.4 FINAL',
'21003' => '2.1.0 BETA 5',
'21004' => '2.1.0 RC 1',
'21005' => '2.1.0 RC 2',
'21006' => '2.1.0 FINAL',
'21007' => '2.1.1',
'21008' => '2.1.2',
'21009' => '2.1.3',
'21010' => '2.1.4',
'21011' => '2.1.5',
'21012' => '2.1.6',
);
?>
@@ -0,0 +1,272 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| 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: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.1.4 -> 2.1.5
| > 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 $this_version = '21012';
var $upgrade_from = '21011';
var $first_step = 'обновит вашу базу данных для вставки новых полей и таблиц.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade()
{
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
{
$this->mod_to_run = 'None';
}
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//--------------------------------
// What are we doing?
//--------------------------------
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
break;
case 'skinrevert':
$this->revert_skin_changes();
break;
default:
$this->upgrade_intro();
break;
}
}
/*-------------------------------------------------------------------------*/
// SQL
/*-------------------------------------------------------------------------*/
function upgrade_sql()
{
$cnt = 0;
$SQL = array();
if ( file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' ) )
{
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' );
foreach( $SQL as $q )
{
$this->ipsclass->DB->query( $q );
$cnt++;
}
}
//--------------------------------
// Next page...
//--------------------------------
$this->ipsclass->core->redirect( "{$this->base_url}&workact=skinrevert", "$cnt запросов выполнено...." );
}
/*-------------------------------------------------------------------------*/
// Revert Skin Changes
/*-------------------------------------------------------------------------*/
function revert_skin_changes()
{
if(! $this->ipsclass->input['do_update'] )
{
$id = intval($this->ipsclass->input['skinid']) ? intval($this->ipsclass->input['skinid']) : 1;
$default = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => "set_skin_set_id>{$id}" ) );
if( !$default['set_skin_set_id'] )
{
if( $id > 2 )
{
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"Для проверки больше стилей нет...." );
}
else
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>Стили не найдены</strong><br />
Этот этап позволяет вам удалить внесенные вами изменения в стилях, для того, чтобы внести их вам вручную на обновленном форуме заново, и, чтобы процесс обновления обновил стили как положено.
Скрипт не смог найти ни одного стиляы. Вам потребуется после обновления зайти в админцентр и обратить стили вручную, чтобы скрипт внес изменения в шаблоны форума корректно..</div>
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}'>Далее ...</a></span></div>";
}
}
if( count( $default ) )
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Вы желаете возвратить стиль в стандартный вид (убрав все ваши изменения в нем)?</div>
<div class='tdrow1' style='padding:6px'>Во время обновлений часто бывают изменения в шаблонах IPB главного стиля, от которого ваши стили унаследованы. Если шаблоны вашего стиля не были изменены, они просто унаследуют изменения от шаблонов главного стиля. Для &laquo;IPB Стандартный стиль&raquo; это случится автоматически.<br /><br />
Другие стили, которые были импортированы вами, могут иметь свой собственный набор шаблонов, они могут, возможно, быть обновлены вручную. Если ваши шаблоны стиля не обновлены как положено, могут возникнуть проблемы... Например, вы можете увидеть javascript ошибки, или вы не сможете увидеть какие-то блоки, потому что они не будут найдены в ваших шаблонах...
<br /><br />
Шаблоны вашего Главного стиля будут обновлены автоматически в течение процесса обновления, однако, чтобы работало все нормально на стандартном стиле, любые изменения обязаны быть удалены. Если вы хотите сделать это вручную, вы можете пропустить этот этап, затем после обновления зайти в админцентр для удаления изменений...
Вам будет необходимо зайти в редактирование &laquo;IPB 2.1 Стандартный стиль&raquo; и выбрать &laquo;Обратить все изменения......&raquo; для измененных шаблонов. Также, система обновления может сделать это за вас.<br /><br />
Из-за различных возможностей HTML для нестандартных стилей, система обновления не сможет изменить эти стили для вас. После того, как обновление будет завершено, мы рекомендуем вам запустить утилиту &laquo;Генерировать отчет сравнения стилей...&raquo; в админцентре для определения изменений, внесенных в ваш стиль.
<br /><br /><b>Вы желаете удалить внесенные в стиль изменения для &laquo;{$default['set_name']}&raquo;?</b><br />(<i>Если это не стандартный стиль, мы рекомендуем вам пропустить данный этап и обновить ваши шаблоны вручную</i>)
<div align='left'><blockquote><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=skinrevert&do_update=1&man={$default['set_skin_set_id']}&do=all'>Да, удалить все изменения во ВСЕХ стилях ...</a><br />
<span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=skinrevert&do_update=1&man={$default['set_skin_set_id']}'>Да, удалить все изменения в этом стиле ...</a><br />
&raquo; <a href='index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}'>Нет, я хочу пропустить этот этап ...</a></span></blockquote></div>
";
}
else
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>Стили не найдены</strong><br />
Этот этап позволяет вам удалить внесенные вами изменения в стилях, для того, чтобы внести их вам вручную на обновленном форуме заново.</div>
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}'>Далее ...</a></span></div>";
}
$this->ipsclass->template->output();
}
else
{
$man = intval( $this->ipsclass->input['man'] );
$cnt = 0;
$default = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => "set_skin_set_id=".$man ) );
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'skin_templates', 'where' => "set_id=".$man ) );
$outer = $this->ipsclass->DB->simple_exec();
if( $this->ipsclass->DB->get_num_rows($outer) )
{
while( $r = $this->ipsclass->DB->fetch_row($outer) )
{
if( $r['set_id'] == 1 )
{
continue;
}
else
{
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'skin_templates', 'where' => 'suid='.$r['suid'] ) );
$cnt++;
}
}
}
$next = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => "set_skin_set_id>".$man, 'orderby' => 'set_skin_set_id ASC', 'limit' => array(0,1) ) );
if( $next['set_skin_set_id'] )
{
if( $this->ipsclass->input['do'] == 'all' )
{
$this->ipsclass->core->redirect( "index.php?act=work&workact=skinrevert&do_update=1&do=all&man={$next['set_skin_set_id']}&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"$cnt шаблонов из стиля '{$default['set_name']}' было возвращено в стандартный вид, переходим к следующему стилю...." );
}
else
{
$this->ipsclass->core->redirect( "index.php?act=work&workact=skinrevert&skinid={$man}&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"$cnt шаблонов из стиля '{$default['set_name']}' было возвращено в стандартный вид...." );
}
}
else
{
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"$cnt шаблонов из стиля '{$default['set_name']}' было возвращено в стандартный вид...." );
} }
}
/*-------------------------------------------------------------------------*/
// INTRO
/*-------------------------------------------------------------------------*/
function upgrade_intro()
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Добро пожаловать в систему обновления IPB</div>
<div class='tdrow1' style='padding:6px'>Этот модуль обновит ваш форум с <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> до <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Этот первый этап {$this->first_step}
<br />
";
if ( ! is_writeable( CACHE_PATH . 'cache/skin_cache' ) )
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>ВНИМАНИЕ: Папка cache/skin_cache недоступна для записи</strong><br />
Пожалуйста, проверьте CHMOD для этой папки. Если вы проигнорируете это предупреждение, то файлы стилей
могут некорректно установиться.</div>";
}
else
{
$this->ipsclass->template->content .= "<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Далее ...</a></span></div>
</div>
</div>
<br />
<div align='center'>После этого модуля будет запущено: {$this->mod_to_run}</div>";
}
$this->ipsclass->template->output();
}
}
?>
@@ -0,0 +1,32 @@
<?php
$import_versions = array(
'20001' => '2.0.0 PDR 1',
'20002' => '2.0.0 PDR 2',
'20003' => '2.0.0 PDR 3',
'20004' => '2.0.0 PDR 4',
'20005' => '2.0.0 PDR 5',
'20006' => '2.0.0 PF 1',
'20007' => '2.0.0 PF 2',
'20008' => '2.0.0 PF 3',
'20009' => '2.0.0 PF 4',
'20010' => '2.0.0 FINAL',
'20011' => '2.0.1 FINAL',
'20012' => '2.0.2 FINAL',
'20013' => '2.0.3 FINAL',
'20014' => '2.0.4 FINAL',
'21003' => '2.1.0 BETA 5',
'21004' => '2.1.0 RC 1',
'21005' => '2.1.0 RC 2',
'21006' => '2.1.0 FINAL',
'21007' => '2.1.1',
'21008' => '2.1.2',
'21009' => '2.1.3',
'21010' => '2.1.4',
'21011' => '2.1.5',
'21012' => '2.1.6',
'21013' => '2.1.7',
);
?>
@@ -0,0 +1,272 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| =============================================
| 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: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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 MODULE:: IPB 2.1.4 -> 2.1.5
| > 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 $this_version = '21013';
var $upgrade_from = '21012';
var $first_step = 'обновит вашу базу данных для вставки новых полей и таблиц.';
var $md5_check = '';
var $base_url = '';
var $mod_to_run = '';
/*-------------------------------------------------------------------------*/
// CONSTRUCTOR
/*-------------------------------------------------------------------------*/
function version_upgrade()
{
}
function version_process()
{
$this->md5_check = $this->ipsclass->return_md5_check();
$this->base_url = "index.php?act=work&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}";
if ( is_array( $this->ipsclass->modules_to_run ) and count( $this->ipsclass->modules_to_run ) )
{
$tmp = array_shift( $this->ipsclass->modules_to_run );
$this->mod_to_run = implode( ', ', $this->ipsclass->modules_to_run );
}
if ( ! $this->mod_to_run )
{
$this->mod_to_run = 'None';
}
}
/*-------------------------------------------------------------------------*/
// Auto run..
/*-------------------------------------------------------------------------*/
function auto_run()
{
//--------------------------------
// What are we doing?
//--------------------------------
switch( $this->ipsclass->input['workact'] )
{
case 'sql':
$this->upgrade_sql();
break;
case 'skinrevert':
$this->revert_skin_changes();
break;
default:
$this->upgrade_intro();
break;
}
}
/*-------------------------------------------------------------------------*/
// SQL
/*-------------------------------------------------------------------------*/
function upgrade_sql()
{
$cnt = 0;
$SQL = array();
if ( file_exists( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' ) )
{
require_once( THIS_PATH.'upg_'.$this->ipsclass->current_upgrade.'/'.strtolower($this->ipsclass->vars['sql_driver']).'_updates.php' );
foreach( $SQL as $q )
{
$this->ipsclass->DB->query( $q );
$cnt++;
}
}
//--------------------------------
// Next page...
//--------------------------------
$this->ipsclass->core->redirect( "{$this->base_url}&workact=skinrevert", "$cnt запросов выполнено...." );
}
/*-------------------------------------------------------------------------*/
// Revert Skin Changes
/*-------------------------------------------------------------------------*/
function revert_skin_changes()
{
if(! $this->ipsclass->input['do_update'] )
{
$id = intval($this->ipsclass->input['skinid']) ? intval($this->ipsclass->input['skinid']) : 1;
$default = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => "set_skin_set_id>{$id}" ) );
if( !$default['set_skin_set_id'] )
{
if( $id > 2 )
{
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"Для проверки больше стилей нет...." );
}
else
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>Стили не найдены</strong><br />
Этот этап позволяет вам удалить внесенные вами изменения в стилях, для того, чтобы внести их вам вручную на обновленном форуме заново, и, чтобы процесс обновления обновил стили как положено.
Скрипт не смог найти ни одного стиляы. Вам потребуется после обновления зайти в админцентр и обратить стили вручную, чтобы скрипт внес изменения в шаблоны форума корректно..</div>
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}'>Далее ...</a></span></div>";
}
}
if( count( $default ) )
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Вы желаете возвратить стиль в стандартный вид (убрав все ваши изменения в нем)?</div>
<div class='tdrow1' style='padding:6px'>Во время обновлений часто бывают изменения в шаблонах IPB главного стиля, от которого ваши стили унаследованы. Если шаблоны вашего стиля не были изменены, они просто унаследуют изменения от шаблонов главного стиля. Для &laquo;IPB Стандартный стиль&raquo; это случится автоматически.<br /><br />
Другие стили, которые были импортированы вами, могут иметь свой собственный набор шаблонов, они могут, возможно, быть обновлены вручную. Если ваши шаблоны стиля не обновлены как положено, могут возникнуть проблемы... Например, вы можете увидеть javascript ошибки, или вы не сможете увидеть какие-то блоки, потому что они не будут найдены в ваших шаблонах...
<br /><br />
Шаблоны вашего Главного стиля будут обновлены автоматически в течение процесса обновления, однако, чтобы работало все нормально на стандартном стиле, любые изменения обязаны быть удалены. Если вы хотите сделать это вручную, вы можете пропустить этот этап, затем после обновления зайти в админцентр для удаления изменений...
Вам будет необходимо зайти в редактирование &laquo;IPB 2.1 Стандартный стиль&raquo; и выбрать &laquo;Обратить все изменения......&raquo; для измененных шаблонов. Также, система обновления может сделать это за вас.<br /><br />
Из-за различных возможностей HTML для нестандартных стилей, система обновления не сможет изменить эти стили для вас. После того, как обновление будет завершено, мы рекомендуем вам запустить утилиту &laquo;Генерировать отчет сравнения стилей...&raquo; в админцентре для определения изменений, внесенных в ваш стиль.
<br /><br /><b>Вы желаете удалить внесенные в стиль изменения для &laquo;{$default['set_name']}&raquo;?</b><br />(<i>Если это не стандартный стиль, мы рекомендуем вам пропустить данный этап и обновить ваши шаблоны вручную</i>)
<div align='left'><blockquote><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=skinrevert&do_update=1&man={$default['set_skin_set_id']}&do=all'>Да, удалить все изменения во ВСЕХ стилях ...</a><br />
<span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=skinrevert&do_update=1&man={$default['set_skin_set_id']}'>Да, удалить все изменения в этом стиле ...</a><br />
&raquo; <a href='index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}'>Нет, я хочу пропустить этот этап ...</a></span></blockquote></div>
";
}
else
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>Стили не найдены</strong><br />
Этот этап позволяет вам удалить внесенные вами изменения в стилях, для того, чтобы внести их вам вручную на обновленном форуме заново.</div>
<br /><br />
<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}'>Далее ...</a></span></div>";
}
$this->ipsclass->template->output();
}
else
{
$man = intval( $this->ipsclass->input['man'] );
$cnt = 0;
$default = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => "set_skin_set_id=".$man ) );
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'skin_templates', 'where' => "set_id=".$man ) );
$outer = $this->ipsclass->DB->simple_exec();
if( $this->ipsclass->DB->get_num_rows($outer) )
{
while( $r = $this->ipsclass->DB->fetch_row($outer) )
{
if( $r['set_id'] == 1 )
{
continue;
}
else
{
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'skin_templates', 'where' => 'suid='.$r['suid'] ) );
$cnt++;
}
}
}
$next = $this->ipsclass->DB->simple_exec_query( array( 'select' => '*', 'from' => 'skin_sets', 'where' => "set_skin_set_id>".$man, 'orderby' => 'set_skin_set_id ASC', 'limit' => array(0,1) ) );
if( $next['set_skin_set_id'] )
{
if( $this->ipsclass->input['do'] == 'all' )
{
$this->ipsclass->core->redirect( "index.php?act=work&workact=skinrevert&do_update=1&do=all&man={$next['set_skin_set_id']}&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"$cnt шаблонов из стиля '{$default['set_name']}' было возвращено в стандартный вид, переходим к следующему стилю...." );
}
else
{
$this->ipsclass->core->redirect( "index.php?act=work&workact=skinrevert&skinid={$man}&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"$cnt шаблонов из стиля '{$default['set_name']}' было возвращено в стандартный вид...." );
}
}
else
{
$this->ipsclass->core->redirect( "index.php?act=done&loginkey={$this->ipsclass->input['loginkey']}&securekey={$this->ipsclass->input['securekey']}&mid={$this->ipsclass->input['mid']}",
"$cnt шаблонов из стиля '{$default['set_name']}' было возвращено в стандартный вид...." );
} }
}
/*-------------------------------------------------------------------------*/
// INTRO
/*-------------------------------------------------------------------------*/
function upgrade_intro()
{
$this->ipsclass->template->content .= "
<div class='tableborder'>
<div class='maintitle'>Добро пожаловать в систему обновления IPB</div>
<div class='tdrow1' style='padding:6px'>Этот модуль обновит ваш форум с <b>{$this->ipsclass->versions[$this->upgrade_from]}</b> до <b>{$this->ipsclass->versions[$this->this_version]}</b>
<br /><br />Этот первый этап {$this->first_step}
<br />
";
if ( ! is_writeable( CACHE_PATH . 'cache/skin_cache' ) )
{
$this->ipsclass->template->content .= "<div class='warnbox'><strong>ВНИМАНИЕ: Папка cache/skin_cache недоступна для записи</strong><br />
Пожалуйста, проверьте CHMOD для этой папки. Если вы проигнорируете это предупреждение, то файлы стилей
могут некорректно установиться.</div>";
}
else
{
$this->ipsclass->template->content .= "<div align='center'><span style='font-weight:bold;font-size:14px'>&raquo; <a href='{$this->base_url}&workact=sql'>Далее ...</a></span></div>
</div>
</div>
<br />
<div align='center'>После этого модуля будет запущено: {$this->mod_to_run}</div>";
}
$this->ipsclass->template->output();
}
}
?>
+1358 -1474
View File
File diff suppressed because it is too large. Load diff