Version 2.0.0
This commit is contained in:
1 parent
5699abfc0e
commit
0eecc172d9
696 files changed
+120723
-77160
No files matched your search
@@ -0,0 +1,727 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board v2.0.0
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Tue, 21 Sep 2004 16:34:28 GMT
|
||||
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE LOADER
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 21st April 2004
|
||||
| > Interesting fact: Radiohead rock (still)
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class core_functions
|
||||
{
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function core_functions()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// FINISH _EVERYTHING_
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_complete()
|
||||
{
|
||||
global $ibforums, $DB, $std;
|
||||
|
||||
$ibforums->template->content .= "
|
||||
<div class='tableborder'>
|
||||
<div class='maintitle'>IPB Upgrade Complete!</div>
|
||||
<div class='tdrow1' style='padding:6px'>You have now been upgraded!
|
||||
<br /><br />
|
||||
You may want to disable permissions on the script 'upgrade/index.php' to increase security or rename the 'upgrade' directory.
|
||||
</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..." );
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// REBUILD TEMPLATES
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
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();
|
||||
|
||||
$justdone = intval($ibforums->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 )
|
||||
) );
|
||||
|
||||
$DB->simple_exec();
|
||||
|
||||
//-----------------------------------
|
||||
// Got a biggun?
|
||||
//-----------------------------------
|
||||
|
||||
$r = $DB->fetch_row();
|
||||
|
||||
if ( $r['set_skin_set_id'] )
|
||||
{
|
||||
$acp->_rebuild_all_caches( array($r['set_skin_set_id']) );
|
||||
|
||||
$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..." );
|
||||
}
|
||||
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..." );
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// REBUILD TEMPLATES
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function rebuild_templates()
|
||||
{
|
||||
global $ibforums, $DB, $std;
|
||||
|
||||
//-----------------------------------
|
||||
// Get XML
|
||||
//-----------------------------------
|
||||
|
||||
require_once( KERNEL_PATH.'class_xml.php' );
|
||||
|
||||
$xml = new class_xml();
|
||||
|
||||
//-----------------------------------
|
||||
// Get XML file (TEMPLATES)
|
||||
//-----------------------------------
|
||||
|
||||
$xmlfile = ROOT_PATH.'ipb_templates.xml';
|
||||
|
||||
$setting_content = implode( "", file($xmlfile) );
|
||||
|
||||
//-------------------------------
|
||||
// Unpack the datafile (TEMPLATES)
|
||||
//-------------------------------
|
||||
|
||||
$xml->xml_parse_document( $setting_content );
|
||||
|
||||
//-------------------------------
|
||||
// (TEMPLATES)
|
||||
//-------------------------------
|
||||
|
||||
if ( ! is_array( $xml->xml_array['templateexport']['templategroup']['template'] ) )
|
||||
{
|
||||
install_error("Error with ipb_templates.xml - could not process XML properly");
|
||||
}
|
||||
|
||||
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"
|
||||
) );
|
||||
|
||||
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'] );
|
||||
}
|
||||
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
|
||||
) );
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------
|
||||
// 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..." );
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// REBUILD CACHES
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function rebuild_caches()
|
||||
{
|
||||
global $ibforums, $DB, $std;
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// BBCODE
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$ibforums->cache['bbcode'] = array();
|
||||
|
||||
$DB->simple_construct( array( 'select' => '*', 'from' => 'custom_bbcode' ) );
|
||||
$bbcode = $DB->simple_exec();
|
||||
|
||||
while ( $r = $DB->fetch_row($bbcode) )
|
||||
{
|
||||
$ibforums->cache['bbcode'][] = $r;
|
||||
}
|
||||
|
||||
$std->update_cache( array( 'name' => 'bbcode', 'array' => 1, 'deletefirst' => 1 ) );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Forum cache
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$std->update_forum_cache();
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Group Cache
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$ibforums->cache['group_cache'] = array();
|
||||
|
||||
$DB->simple_construct( array( 'select' => "*",
|
||||
'from' => 'groups'
|
||||
) );
|
||||
|
||||
$DB->simple_exec();
|
||||
|
||||
while ( $i = $DB->fetch_row() )
|
||||
{
|
||||
$ibforums->cache['group_cache'][ $i['g_id'] ] = $i;
|
||||
}
|
||||
|
||||
$std->update_cache( array( 'name' => 'group_cache', 'array' => 1, 'deletefirst' => 1 ) );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Systemvars
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$ibforums->cache['systemvars'] = array();
|
||||
|
||||
$result = $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;
|
||||
|
||||
$std->update_cache( array( 'name' => 'systemvars', 'array' => 1, 'deletefirst' => 1 ) );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Ranks
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$ibforums->cache['ranks'] = array();
|
||||
|
||||
$DB->simple_construct( array( 'select' => 'id, title, pips, posts',
|
||||
'from' => 'titles',
|
||||
'order' => "posts DESC",
|
||||
) );
|
||||
|
||||
$DB->simple_exec();
|
||||
|
||||
while ($i = $DB->fetch_row())
|
||||
{
|
||||
$ibforums->cache['ranks'][ $i['id'] ] = array(
|
||||
'TITLE' => $i['title'],
|
||||
'PIPS' => $i['pips'],
|
||||
'POSTS' => $i['posts'],
|
||||
);
|
||||
}
|
||||
|
||||
$std->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'];
|
||||
}
|
||||
|
||||
$std->update_cache( array( 'name' => 'settings', 'array' => 1, 'deletefirst' => 1 ) );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// EMOTICONS
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$ibforums->cache['emoticons'] = array();
|
||||
|
||||
$DB->simple_construct( array( 'select' => 'typed,image,clickable,emo_set', 'from' => 'emoticons' ) );
|
||||
$DB->simple_exec();
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
$ibforums->cache['emoticons'][] = $r;
|
||||
}
|
||||
|
||||
$std->update_cache( array( 'name' => 'emoticons', 'array' => 1, 'deletefirst' => 1 ) );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// LANGUAGES
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$ibforums->cache['languages'] = array();
|
||||
|
||||
$DB->simple_construct( array( 'select' => 'ldir,lname', 'from' => 'languages' ) );
|
||||
$DB->simple_exec();
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
$ibforums->cache['languages'][] = $r;
|
||||
}
|
||||
|
||||
$std->update_cache( array( 'name' => 'languages', 'array' => 1, 'deletefirst' => 1 ) );
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// ATTACHMENT TYPES
|
||||
//-------------------------------------------------------------
|
||||
|
||||
$ibforums->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();
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
$ibforums->cache['attachtypes'][ $r['atype_extension'] ] = $r;
|
||||
}
|
||||
|
||||
$std->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..." );
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// MODULE RUN - Look for next, or finish up...
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function module_complete()
|
||||
{
|
||||
global $ibforums, $DB, $std;
|
||||
|
||||
//------------------------------------------
|
||||
// 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']
|
||||
) );
|
||||
|
||||
//------------------------------------------
|
||||
// Anymore to run?
|
||||
//------------------------------------------
|
||||
|
||||
if ( $ibforums->last_poss_id != $ibforums->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...." );
|
||||
}
|
||||
else
|
||||
{
|
||||
$ibforums->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]}
|
||||
<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'>» <a href='index.php?act=settings&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}'>Proceed...</a></span></div>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
|
||||
$ibforums->template->output();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Redirect
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function redirect($url, $text, $time=2)
|
||||
{
|
||||
global $ibforums, $DB, $std;
|
||||
|
||||
|
||||
$ibforums->template->content .= "<meta http-equiv='refresh' content=\"{$time}; url={$url}\">
|
||||
<div class='tableborder'>
|
||||
<div class='maintitle'>Redirecting</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>
|
||||
</div>
|
||||
</div>
|
||||
</div>";
|
||||
|
||||
$ibforums->template->output("Redirecting...");
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SHOW LOG IN SCREEN
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
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>";
|
||||
}
|
||||
|
||||
if ( $msg != "" )
|
||||
{
|
||||
$msg = "<div class='warnbox'>$msg</div><br />";
|
||||
}
|
||||
|
||||
$ibforums->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>
|
||||
</div>
|
||||
<br />
|
||||
<div class='tableborder'>
|
||||
<div class='maintitle'>Verification Required - Please Log In</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='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='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>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>";
|
||||
|
||||
$ibforums->template->output("Log In");
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Authorise da membah
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
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'] ) );
|
||||
|
||||
if ( ! $ibforums->loginkey or ! $ibforums->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}'" );
|
||||
|
||||
$member = $DB->fetch_row();
|
||||
|
||||
return $member;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Get the current version and the next version to upgrade to..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function get_version_latest()
|
||||
{
|
||||
global $ibforums;
|
||||
|
||||
$ibforums->current_version = '';
|
||||
$ibforums->current_upgrade = '';
|
||||
|
||||
//------------------------------------------
|
||||
// Copy & pop DB array and get next
|
||||
// upgrade script
|
||||
//------------------------------------------
|
||||
|
||||
$tmp = $ibforums->db_contents;
|
||||
|
||||
$ibforums->current_version = array_pop( $tmp );
|
||||
|
||||
//------------------------------------------
|
||||
// Get the next upgrade script
|
||||
//------------------------------------------
|
||||
|
||||
ksort( $ibforums->dir_contents );
|
||||
|
||||
foreach( $ibforums->dir_contents as $i => $a )
|
||||
{
|
||||
if ( $a > $ibforums->current_version )
|
||||
{
|
||||
if ( ! $ibforums->current_upgrade )
|
||||
{
|
||||
$ibforums->current_upgrade = $a;
|
||||
}
|
||||
|
||||
$ibforums->modules_to_run[] = $ibforums->versions[ $a ];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// GET INFO FROM THE DERTABASTIC
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
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();
|
||||
|
||||
while( $r = $DB->fetch_row() )
|
||||
{
|
||||
$vers[ $r['upgrade_version_id'] ] = $r['upgrade_version_id'];
|
||||
}
|
||||
|
||||
return $vers;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Get dir structure..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function get_dir_structure()
|
||||
{
|
||||
$return = array();
|
||||
|
||||
//------------------------------------------
|
||||
// Get the folder names
|
||||
//------------------------------------------
|
||||
|
||||
$dh = opendir( THIS_PATH );
|
||||
|
||||
while ( $file = readdir( $dh ) )
|
||||
{
|
||||
if ( is_dir( THIS_PATH."/".$file ) )
|
||||
{
|
||||
if ( $file != "." && $file != ".." )
|
||||
{
|
||||
if ( strstr( $file, 'upg_' ) )
|
||||
{
|
||||
$tmp = str_replace( "upg_", "", $file );
|
||||
$return[ $tmp ] = $tmp;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
closedir( $dh );
|
||||
|
||||
sort($return);
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Check to see if its a 'real' MD5
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function check_md5($t)
|
||||
{
|
||||
$t = preg_replace( "#[^a-z0-9]#", "", trim($t) );
|
||||
|
||||
if ( strlen($t) != 32 )
|
||||
{
|
||||
return '';
|
||||
}
|
||||
else
|
||||
{
|
||||
return $t;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,124 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board v2.0.0
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Tue, 21 Sep 2004 16:34:28 GMT
|
||||
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE TEMPLATE MODULES
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class template
|
||||
{
|
||||
var $content = "";
|
||||
|
||||
function output($title='')
|
||||
{
|
||||
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> © 2004 <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a></span></center>
|
||||
</div></body>
|
||||
</html>";
|
||||
exit();
|
||||
}
|
||||
|
||||
//--------------------------------------
|
||||
|
||||
function print_top($title="")
|
||||
{
|
||||
|
||||
return "<html>
|
||||
<head><title>Invision Power Board Upgrade System :: $title </title>
|
||||
<style type='text/css'>
|
||||
|
||||
BODY
|
||||
{
|
||||
font-size: 11px;
|
||||
font-family: Verdana, Arial;
|
||||
color: #000;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
background-image: url(../install/img/fadebg.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: right bottom;
|
||||
}
|
||||
|
||||
TABLE, TR, TD { font-family:Verdana, Arial;font-size: 11px; color:#000 }
|
||||
|
||||
a:link, a:visited, a:active { color:#000055 }
|
||||
a:hover { color:#333377;text-decoration:underline }
|
||||
|
||||
.centerbox { margin-right:10%;margin-left:10%;text-align:left }
|
||||
|
||||
.warnbox {
|
||||
border:1px solid #F00;
|
||||
background: #FFE0E0;
|
||||
padding:6px;
|
||||
margin-right:10%;margin-left:10%;text-align:left;
|
||||
}
|
||||
|
||||
.tablepad { background-color:#F5F9FD;padding:6px }
|
||||
.description { color:gray;font-size:10px }
|
||||
.pformstrip { background-color: #D1DCEB; color:#3A4F6C;font-weight:bold;padding:7px;margin-top:1px;text-align:left }
|
||||
.pformleftw { background-color: #F5F9FD; padding:6px; margin-top:1px;width:50%; border-top:1px solid #C2CFDF; border-right:1px solid #C2CFDF; }
|
||||
.pformright { background-color: #F5F9FD; padding:6px; margin-top:1px;border-top:1px solid #C2CFDF; }
|
||||
|
||||
.tableborder { border:1px solid #345487;background-color:#FFF; padding:0px; margin:0px; width:100% }
|
||||
|
||||
.maintitle { text-align:left;vertical-align:middle;font-weight:bold; color:#FFF; letter-spacing:1px; padding:8px 0px 8px 5px; background-image: url(../install/img/tile_back.gif) }
|
||||
.maintitle a:link, .maintitle a:visited, .maintitle a:active { text-decoration: none; color: #FFF }
|
||||
.maintitle a:hover { text-decoration: underline }
|
||||
|
||||
#copy { font-size:10px }
|
||||
|
||||
#button { background-color: #4C77B6; color: #FFFFFF; font-family:Verdana, Arial; font-size:11px }
|
||||
|
||||
#textinput { background-color: #EEEEEE; color:Ê#000000; font-family:Verdana, Arial; font-size:11px; width:100% }
|
||||
|
||||
#dropdown { background-color: #EEEEEE; color:Ê#000000; font-family:Verdana, Arial; font-size:10px }
|
||||
|
||||
#multitext { background-color: #EEEEEE; color:Ê#000000; font-family:Courier, Verdana, Arial; font-size:10px }
|
||||
|
||||
#logostrip {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
background: #7AA3D0;
|
||||
}
|
||||
|
||||
.fade
|
||||
{
|
||||
background-image: url(../install/img/fade.jpg);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
|
||||
</style>
|
||||
</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 class='fade'> </div>
|
||||
<br />
|
||||
<div style='padding:10px'>
|
||||
";
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,419 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board v2.0.0
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Tue, 21 Sep 2004 16:34:28 GMT
|
||||
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE LOADER
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 21st April 2004
|
||||
| > Interesting fact: Radiohead rock (still)
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
//-----------------------------------------------
|
||||
// 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);
|
||||
|
||||
//===========================================================================
|
||||
// MAIN PROGRAM
|
||||
//===========================================================================
|
||||
|
||||
//--------------------------------
|
||||
// Import $INFO, now!
|
||||
//--------------------------------
|
||||
|
||||
$INFO = array();
|
||||
|
||||
require ROOT_PATH."conf_global.php";
|
||||
|
||||
//--------------------------------
|
||||
// The clocks a' tickin'
|
||||
//--------------------------------
|
||||
|
||||
$Debug = new Debug;
|
||||
$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']);
|
||||
|
||||
if ( ! @file_exists( ROOT_PATH.'sources/sql/'.$INFO['sql_driver'].'_admin_queries.php' ) )
|
||||
{
|
||||
print "Cannot find the file: ".ROOT_PATH.'sources/sql/'.$INFO['sql_driver']."_admin_queries.php - make sure the file exists before continuing.";
|
||||
exit();
|
||||
}
|
||||
|
||||
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();
|
||||
|
||||
//--------------------------------
|
||||
// Get dir contents
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->dir_contents = $ibforums->core->get_dir_structure();
|
||||
|
||||
//--------------------------------
|
||||
// Get DB contents
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->db_contents = $ibforums->core->get_db_structure();
|
||||
|
||||
//--------------------------------
|
||||
// Get latest ID...
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->last_poss_id = array_shift( array_reverse($ibforums->dir_contents) );
|
||||
|
||||
//--------------------------------
|
||||
// Get datafile
|
||||
//--------------------------------
|
||||
|
||||
if ( ! $ibforums->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" );
|
||||
}
|
||||
|
||||
if ( file_exists( THIS_PATH.'upg_'.$ibforums->last_poss_id.'/version_history.php' ) )
|
||||
{
|
||||
require_once( THIS_PATH.'upg_'.$ibforums->last_poss_id.'/version_history.php' );
|
||||
|
||||
$ibforums->versions = $import_versions;
|
||||
}
|
||||
else
|
||||
{
|
||||
$ibforums->core->login_screen( "Could not locate the required upgrade script: 'upg_{$ibforums->last_poss_id}/version_history.php'");
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Version logic check
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->core->get_version_latest();
|
||||
|
||||
if ( ! $ibforums->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" );
|
||||
}
|
||||
|
||||
if ( ! $ibforums->input['act'] )
|
||||
{
|
||||
if ( $ibforums->current_version >= $ibforums->current_upgrade )
|
||||
{
|
||||
$ibforums->core->login_screen( "This IPB installation is up-to-date and there are no more upgrades required" );
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Get our loverly member
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->member = $ibforums->core->get_member();
|
||||
|
||||
//--------------------------------
|
||||
// Set converge
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->converge = new class_converge( $DB );
|
||||
|
||||
//--------------------------------
|
||||
// Log in?
|
||||
//--------------------------------
|
||||
|
||||
if ( $ibforums->input['act'] != 'login' )
|
||||
{
|
||||
if ( ! $ibforums->member['id'] )
|
||||
{
|
||||
$ibforums->core->login_screen("You do not have access to this upgrade system.");
|
||||
}
|
||||
|
||||
if ( $std->return_md5_check() != $ibforums->securekey )
|
||||
{
|
||||
$ibforums->core->login_screen("You do not have access to this upgrade system!");
|
||||
}
|
||||
|
||||
if ( ! $ibforums->member['g_access_cp'] )
|
||||
{
|
||||
$ibforums->core->login_screen('You must be an admin to access this upgrade script');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//----------------------------------
|
||||
// We must have submitted the form
|
||||
// time to check some details.
|
||||
//----------------------------------
|
||||
|
||||
if ( empty($ibforums->input['username']) )
|
||||
{
|
||||
$ibforums->core->login_screen("You must enter a username before proceeding");
|
||||
}
|
||||
|
||||
if ( empty($ibforums->input['password']) )
|
||||
{
|
||||
$ibforums->core->login_screen("You must enter a password before proceeding");
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Attempt to get the details from the
|
||||
// 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");
|
||||
|
||||
$mem = $DB->fetch_row();
|
||||
|
||||
//----------------------------------
|
||||
// Get perms
|
||||
//----------------------------------
|
||||
|
||||
if ( empty($mem['id']) )
|
||||
{
|
||||
$ibforums->core->login_screen("Could not find a record matching that username, please check the spelling");
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Load converge member
|
||||
//----------------------------------
|
||||
|
||||
$ibforums->converge->converge_load_member($mem['email']);
|
||||
|
||||
if ( ! $ibforums->converge->member['converge_id'] )
|
||||
{
|
||||
$ibforums->core->login_screen("Could not find a record matching that username, please check the spelling");
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
// Check converge pass
|
||||
//----------------------------------
|
||||
|
||||
$pass = md5( $ibforums->input['password'] );
|
||||
|
||||
//------------------------------
|
||||
// Check password...
|
||||
//------------------------------
|
||||
|
||||
if ( $ibforums->converge->converge_authenticate_member( $pass ) != TRUE )
|
||||
{
|
||||
$ibforums->core->login_screen("The password you entered is not correct");
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($mem['g_access_cp'] != 1)
|
||||
{
|
||||
$ibforums->core->login_screen("You do not have access to the administrative CP");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
//----------------------------------
|
||||
// All is good, bounce onwards...
|
||||
//----------------------------------
|
||||
|
||||
$ibforums->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...." );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// MAIN LOGIC...
|
||||
//===========================================================================
|
||||
|
||||
//--------------------------------
|
||||
// Get and run upgrade script
|
||||
//--------------------------------
|
||||
|
||||
if ( ! in_array( $ibforums->input['act'], $ibforums->safe_act ) )
|
||||
{
|
||||
if ( file_exists( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/version_upgrade.php' ) )
|
||||
{
|
||||
require_once( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/version_upgrade.php' );
|
||||
$runme = new version_upgrade();
|
||||
}
|
||||
else
|
||||
{
|
||||
$ibforums->core->login_screen( "Could not locate the required upgrade script: 'upg_{$ibforums->current_upgrade}/version_upgrade.php'");
|
||||
}
|
||||
}
|
||||
|
||||
// Module(work) -> done -> settings -> recache -> templates -> templatesrecache -> finish
|
||||
|
||||
switch ($ibforums->input['act'])
|
||||
{
|
||||
case 'recache':
|
||||
$ibforums->core->rebuild_caches();
|
||||
break;
|
||||
case 'templates':
|
||||
$ibforums->core->rebuild_templates();
|
||||
break;
|
||||
case 'templatescache':
|
||||
$ibforums->core->rebuild_templates_cache();
|
||||
break;
|
||||
case 'settings':
|
||||
$ibforums->core->rebuild_settings();
|
||||
break;
|
||||
case 'finish':
|
||||
$ibforums->core->upgrade_complete();
|
||||
break;
|
||||
case 'done':
|
||||
$ibforums->core->module_complete();
|
||||
break;
|
||||
case 'work':
|
||||
$runme->auto_run();
|
||||
break;
|
||||
default:
|
||||
$ibforums->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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,81 @@
|
||||
INVISION POWER BOARD 1.3 -> 2.0.0 MANUAL UPGRADE
|
||||
------------------------------------------------
|
||||
|
||||
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.
|
||||
|
||||
-----------------------------------------------------------------------------------------------------
|
||||
IMPORTANT: It is assumed that you are comfortable with SQL and shell and understand the basic concepts
|
||||
of paths, files and source SQL files.
|
||||
-----------------------------------------------------------------------------------------------------
|
||||
|
||||
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.
|
||||
|
||||
-----------------------------------------------------------------------------------------------------
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
------------------------------------------------
|
||||
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)
|
||||
------------------------------------------------
|
||||
Then type:
|
||||
|
||||
use {database}
|
||||
|
||||
(Substituting {database} for your SQL database)
|
||||
------------------------------------------------
|
||||
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:
|
||||
|
||||
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:
|
||||
|
||||
Go to: {yourdomain.com/forum}/upgrade/upgrade.php?act=work&version=103&step=7&dieafterstep=13
|
||||
|
||||
This may take a while for some large boards.
|
||||
------------------------------------------------
|
||||
Now we'll run the second source file. Type:
|
||||
|
||||
source /home/website/public_html/forums/sql_2.sql
|
||||
|
||||
(Substituting /home/website/public_html/forums/ with your real path to this file)
|
||||
------------------------------------------------
|
||||
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:
|
||||
|
||||
Go to: {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!
|
||||
|
||||
|
||||
@@ -0,0 +1,331 @@
|
||||
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';
|
||||
|
||||
|
||||
@@ -0,0 +1,138 @@
|
||||
ALTER TABLE ibf_posts DROP attach_id, DROP attach_hits, DROP attach_type, DROP attach_file;
|
||||
alter table ibf_posts change queued queued tinyint(1) NOT NULL default '0';
|
||||
alter table ibf_posts drop forum_id;
|
||||
ALTER TABLE ibf_topics add topic_firstpost int(10) NOT NULL default '0';
|
||||
alter table ibf_topics add topic_queuedposts int(10) NOT NULL default '0';
|
||||
ALTER TABLE ibf_members DROP msg_from_id, DROP msg_msg_id;
|
||||
ALTER TABLE ibf_members DROP org_supmod, DROP integ_msg;
|
||||
alter table ibf_members DROP aim_name, DROP icq_number, DROP website, DROP yahoo, DROP interests,
|
||||
DROP msnname, DROP vdirs, DROP signature, DROP location, DROP avatar, DROP avatar_size;
|
||||
alter table ibf_members change auto_track auto_track varchar(50) default '0';
|
||||
alter table ibf_members add subs_pkg_chosen smallint(3) NOT NULL default '0';
|
||||
ALTER TABLE ibf_members change temp_ban temp_ban varchar(100) default '0';
|
||||
ALTER TABLE ibf_members change msg_total msg_total smallint(5) default '0';
|
||||
alter table ibf_topic_mmod add topic_approve tinyint(1) NOT NULL default '0';
|
||||
alter table ibf_groups add g_can_msg_attach tinyint(1) NOT NULL default '0';
|
||||
alter table ibf_pfields_data
|
||||
change fid pf_id smallint(5) NOT NULL auto_increment,
|
||||
change ftitle pf_title varchar(250) NOT NULL default '',
|
||||
change fdesc pf_desc varchar(250) NOT NULL default '',
|
||||
change fcontent pf_content text NOT NULL default '',
|
||||
change ftype pf_type varchar(250) NOT NULL default '',
|
||||
change freq pf_not_null tinyint(1) NOT NULL default '0',
|
||||
change fhide pf_member_hide tinyint(1) NOT NULL default '0',
|
||||
change fmaxinput pf_max_input smallint(6) NOT NULL default '0',
|
||||
change fedit pf_member_edit tinyint(1) NOT NULL default '0',
|
||||
change forder pf_position smallint(6) NOT NULL default '0',
|
||||
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 & 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 & Forum Digest', 'dailydigest.php', 1086912600, -1, -1, 0, 10, '723cab2aae32dd5d04898b1151038846', 1, 'Emails out daily topic & 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 & Forum Digest', 'weeklydigest.php', 1087096200, 0, -1, 3, 10, '7e7fccd07f781bdb24ac108d26612931', 1, 'Emails weekly topic & 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&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_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');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (4, 'wmv', 'video/x-msvideo', 1, 0, 'folder_mime_types/win_player.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (5, 'html', 'application/octet-stream', 1, 0, 'folder_mime_types/html.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (6, 'ram', 'audio/x-pn-realaudio', 1, 0, 'folder_mime_types/real_audio.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (7, 'gif', 'image/gif', 1, 1, 'folder_mime_types/gif.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (8, 'mpg', 'video/mpeg', 1, 0, 'folder_mime_types/quicktime.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (9, 'ico', 'image/ico', 1, 0, 'folder_mime_types/gif.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (10, 'tar', 'application/x-tar', 1, 0, 'folder_mime_types/zip.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (11, 'bmp', 'image/x-MS-bmp', 1, 0, 'folder_mime_types/gif.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (12, 'tiff', 'image/tiff', 1, 0, 'folder_mime_types/quicktime.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (13, 'rtf', 'text/richtext', 1, 0, 'folder_mime_types/rtf.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (14, 'hqx', 'application/mac-binhex40', 1, 0, 'folder_mime_types/stuffit.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (15, 'aiff', 'audio/x-aiff', 1, 0, 'folder_mime_types/quicktime.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (31, 'zip', 'application/zip', 1, 0, 'folder_mime_types/zip.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (17, 'ps', 'application/postscript', 1, 0, 'folder_mime_types/eps.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (18, 'doc', 'application/msword', 1, 0, 'folder_mime_types/doc.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (19, 'mov', 'video/quicktime', 1, 0, 'folder_mime_types/quicktime.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (20, 'ppt', 'application/powerpoint', 1, 0, 'folder_mime_types/ppt.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (21, 'wav', 'audio/x-wav', 1, 0, 'folder_mime_types/music.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (22, 'mp3', 'audio/x-mpeg', 1, 0, 'folder_mime_types/music.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (23, 'jpg', 'image/jpeg', 1, 1, 'folder_mime_types/gif.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (24, 'txt', 'text/plain', 1, 0, 'folder_mime_types/txt.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (25, 'xml', 'text/xml', 1, 0, 'folder_mime_types/script.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (26, 'css', 'text/css', 1, 0, 'folder_mime_types/script.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (27, 'swf', 'application/x-shockwave-flash', 0, 0, 'folder_mime_types/quicktime.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (32, 'php', 'application/octet-stream', 1, 0, 'folder_mime_types/php.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (28, 'htm', 'application/octet-stream', 1, 0, 'folder_mime_types/html.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (29, 'jpeg', 'image/jpeg', 1, 1, 'folder_mime_types/gif.gif');
|
||||
INSERT INTO ibf_attachments_type (atype_id, atype_extension, atype_mimetype, atype_post, atype_photo, atype_img) VALUES (33, 'gz', 'application/x-gzip', 1, 0, 'folder_mime_types/zip.gif');
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('skin_id_cache', '', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('bbcode', '', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('moderators', '', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('multimod', '', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('banfilters', '', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('attachtypes', '', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('emoticons', '', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('forum_cache', '', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('badwords', '', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('systemvars', '', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('ranks', '', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('group_cache', '', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('stats', '', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('profilefields', 'a:0:{}', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('settings','', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('languages', '', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('birthdays', 'a:0:{}', '', 1);
|
||||
INSERT INTO ibf_cache_store (cs_key, cs_value, cs_extra, cs_array) VALUES ('calendar', 'a:0:{}', '', 1);
|
||||
INSERT INTO ibf_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');
|
||||
INSERT INTO ibf_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');
|
||||
INSERT INTO ibf_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');
|
||||
INSERT INTO ibf_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);
|
||||
INSERT INTO ibf_conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (2, 'CPU Saving & Optimization', 'This section allows certain features to be limited or removed to get more performance out of your board.', 16);
|
||||
INSERT INTO ibf_conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (3, 'Date & Time Formats', 'This section contains the date and time formats used throughout the board.', 7);
|
||||
INSERT INTO ibf_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);
|
||||
INSERT INTO ibf_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);
|
||||
INSERT INTO ibf_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);
|
||||
INSERT INTO ibf_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);
|
||||
INSERT INTO ibf_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);
|
||||
INSERT INTO ibf_conf_settings_titles (conf_title_id, conf_title_title, conf_title_desc, conf_title_count) VALUES (9, 'Calendar & Birthdays', 'This section will allow you to set up the board calendar and its related options.', 8);
|
||||
INSERT INTO ibf_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);
|
||||
INSERT INTO ibf_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);
|
||||
INSERT INTO ibf_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);
|
||||
INSERT INTO ibf_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);
|
||||
INSERT INTO ibf_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);
|
||||
INSERT INTO ibf_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);
|
||||
INSERT INTO ibf_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);
|
||||
INSERT INTO ibf_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);
|
||||
INSERT INTO ibf_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);
|
||||
INSERT INTO ibf_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);
|
||||
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');
|
||||
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');
|
||||
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');
|
||||
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', '');
|
||||
DROP TABLE ibf_tmpl_names;
|
||||
DROP TABLE ibf_forums_bak;
|
||||
DROP TABLE ibf_categories;
|
||||
DROP TABLE ibf_messages;
|
||||
alter table ibf_tracker change topic_id topic_id int(10) NOT NULL default '0';
|
||||
ALTER TABLE ibf_tracker ADD INDEX(topic_id);
|
||||
ALTER TABLE ibf_topics CHANGE pinned pinned TINYINT( 1 ) DEFAULT '0' NOT NULL;
|
||||
ALTER TABLE ibf_topics CHANGE approved approved TINYINT( 1 ) DEFAULT '0' NOT NULL;
|
||||
ALTER TABLE ibf_topics ADD INDEX(topic_firstpost);
|
||||
alter table ibf_posts drop index topic_id;
|
||||
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=''";
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
$import_versions = array(
|
||||
'20001' => '2.0.0 PDR 1',
|
||||
'20002' => '2.0.0 PDR 2',
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,248 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board v2.0.0
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Tue, 21 Sep 2004 16:34:28 GMT
|
||||
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.0 PDR1 -> PDR 2
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $this_version = '20002';
|
||||
var $upgrade_from = '20001';
|
||||
var $first_step = 'update your database to include the new schematic modifications.';
|
||||
var $md5_check = '';
|
||||
var $base_url = '';
|
||||
var $mod_to_run = '';
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function version_upgrade()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$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']}";
|
||||
|
||||
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
|
||||
{
|
||||
$tmp = array_shift( $ibforums->modules_to_run );
|
||||
|
||||
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
|
||||
}
|
||||
|
||||
if ( ! $this->mod_to_run )
|
||||
{
|
||||
$this->mod_to_run = 'None';
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
//--------------------------------
|
||||
// What are we doing?
|
||||
//--------------------------------
|
||||
|
||||
switch( $ibforums->input['workact'] )
|
||||
{
|
||||
case 'sql':
|
||||
$this->upgrade_sql();
|
||||
break;
|
||||
default:
|
||||
$this->upgrade_intro();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_sql()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$cnt = 0;
|
||||
$sql = $this->_get_sql();
|
||||
|
||||
foreach( $sql as $q )
|
||||
{
|
||||
$DB->query( $q );
|
||||
|
||||
$cnt++;
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Next page...
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// INTRO
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_intro()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$ibforums->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}
|
||||
<br /><br />
|
||||
<div align='center'><span style='font-weight:bold;font-size:14px'>» <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
|
||||
";
|
||||
|
||||
$ibforums->template->output();
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL (ARRAY)
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function _get_sql()
|
||||
{
|
||||
|
||||
$SQL = array();
|
||||
|
||||
$SQL[]="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)
|
||||
);";
|
||||
|
||||
$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);";
|
||||
|
||||
$SQL[]="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)
|
||||
);";
|
||||
|
||||
|
||||
$SQL[]="alter table ibf_task_manager add task_key varchar(30) NOT NULL default '', add task_safemode tinyint(1) NOT NULL default '';";
|
||||
|
||||
$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 '<' and '>' to 'to' and 'from' 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[]="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)
|
||||
);";
|
||||
|
||||
|
||||
$SQL[]="alter table ibf_pfields_data
|
||||
change fid pf_id smallint(5) NOT NULL auto_increment,
|
||||
change ftitle pf_title varchar(250) NOT NULL default '',
|
||||
change fdesc pf_desc varchar(250) NOT NULL default '',
|
||||
change fcontent pf_content text NOT NULL default '',
|
||||
change ftype pf_type varchar(250) NOT NULL default '',
|
||||
change freq pf_not_null tinyint(1) NOT NULL default '0',
|
||||
change fhide pf_member_hide tinyint(1) NOT NULL default '0',
|
||||
change fmaxinput pf_max_input smallint(6) NOT NULL default '0',
|
||||
change fedit pf_member_edit tinyint(1) NOT NULL default '0',
|
||||
change forder pf_position smallint(6) NOT NULL default '0',
|
||||
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 '';";
|
||||
|
||||
$SQL[]="INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_set) VALUES ( 'POST_SNAPBACK', \"<img src='style_images/<#IMG_DIR#>/post_snapback.gif' alt='*' border='0' />\", 1);";
|
||||
|
||||
$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&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[]="alter table ibf_members change auto_track auto_track varchar(50) default '0';";
|
||||
|
||||
|
||||
$SQL[]="alter table ibf_conf_settings_titles
|
||||
add conf_title_noshow tinyint(1) NOT NULL default '0',
|
||||
add conf_title_keyword varchar(200) NOT NULL default '0'";
|
||||
|
||||
return $SQL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
$import_versions = array(
|
||||
'20001' => '2.0.0 PDR 1',
|
||||
'20002' => '2.0.0 PDR 2',
|
||||
'20003' => '2.0.0 PDR 3',
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,116 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board v2.0.0
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Tue, 21 Sep 2004 16:34:28 GMT
|
||||
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.0 PDR1 -> PDR 2
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $this_version = '20003';
|
||||
var $upgrade_from = '20002';
|
||||
var $first_step = 'update your templates.';
|
||||
var $md5_check = '';
|
||||
var $base_url = '';
|
||||
var $mod_to_run = '';
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function version_upgrade()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$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']}";
|
||||
|
||||
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
|
||||
{
|
||||
$tmp = array_shift( $ibforums->modules_to_run );
|
||||
|
||||
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
|
||||
}
|
||||
|
||||
if ( ! $this->mod_to_run )
|
||||
{
|
||||
$this->mod_to_run = 'None';
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
//--------------------------------
|
||||
// What are we doing?
|
||||
//--------------------------------
|
||||
|
||||
switch( $ibforums->input['workact'] )
|
||||
{
|
||||
default:
|
||||
$this->upgrade_intro();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// INTRO
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_intro()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$ibforums->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}
|
||||
<br /><br />
|
||||
<div align='center'><span style='font-weight:bold;font-size:14px'>» <a href='{$this->base_url}&act=done'>Proceed...</a></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
|
||||
";
|
||||
|
||||
$ibforums->template->output();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?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',
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,180 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board v2.0.0
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Tue, 21 Sep 2004 16:34:28 GMT
|
||||
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.0 PDR1 -> PDR 2
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $this_version = '20004';
|
||||
var $upgrade_from = '20003';
|
||||
var $first_step = 'update your database to include the new schematic modifications.';
|
||||
var $md5_check = '';
|
||||
var $base_url = '';
|
||||
var $mod_to_run = '';
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function version_upgrade()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$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']}";
|
||||
|
||||
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
|
||||
{
|
||||
$tmp = array_shift( $ibforums->modules_to_run );
|
||||
|
||||
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
|
||||
}
|
||||
|
||||
if ( ! $this->mod_to_run )
|
||||
{
|
||||
$this->mod_to_run = 'None';
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
//--------------------------------
|
||||
// What are we doing?
|
||||
//--------------------------------
|
||||
|
||||
switch( $ibforums->input['workact'] )
|
||||
{
|
||||
case 'sql':
|
||||
$this->upgrade_sql();
|
||||
break;
|
||||
default:
|
||||
$this->upgrade_intro();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_sql()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$cnt = 0;
|
||||
$sql = $this->_get_sql();
|
||||
|
||||
foreach( $sql as $q )
|
||||
{
|
||||
$DB->query( $q );
|
||||
|
||||
$cnt++;
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Next page...
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// INTRO
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_intro()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$ibforums->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}
|
||||
<br /><br />
|
||||
<div align='center'><span style='font-weight:bold;font-size:14px'>» <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
|
||||
";
|
||||
|
||||
$ibforums->template->output();
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL (ARRAY)
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function _get_sql()
|
||||
{
|
||||
|
||||
$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 (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('ENABLE IPB Portal?', 'If \'yes\', IPB Portal can be accessed via \'index.php?act=home\' or via the special \'index.php\' script (see documentation for more info).', '22', 'yes_no', 'csite_on', '', '1', '', '', 1, 1, '', 0, '', 1);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('IPB Portal Page Title?', 'This will appear inbetween the <title> elements on the page', '22', 'input', 'csite_title', '', 'IPB Portal', '', '', 1, 2, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Forums to export articles from', 'Separate <b>forum ids</b> with a comma for more than one', '22', 'input', 'csite_article_forum', '1,2,3,4,5,6', '', '', '', 1, 3, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Number of Articles to display in the main section', '', '22', 'input', 'csite_article_max', '', '15', '', '', 1, 4, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Enable Recent Articles?', 'This will show a list of recent topic titles on the IPB Portal page', '22', 'yes_no', 'csite_article_recent_on', '', '1', '', '', 1, 5, 'IPB Portal Recent Articles', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Max. no recent articles to show', '', '22', 'input', 'csite_article_recent_max', '', '5', '', '', 1, 6, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Max. length of topic titles', '', '22', 'input', 'csite_article_len', '', '30', '', '', 1, 7, '', 1, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Date format for articles', '<a href=\'http://www.php.net/date\'>Same as PHP\'s date function', '22', 'input', 'csite_article_date', '', 'm-j-y H:i', '', '', 1, 3, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Enable Recent Discussions', '', '22', 'yes_no', 'csite_discuss_on', '', '1', '', '', 1, 9, 'IPB Portal Recent Discussions', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Max. no recent discussions to show', '', '22', 'input', 'csite_discuss_max', '', '10', '', '', 1, 10, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Max. length of topic titles', '', '22', 'input', 'csite_discuss_len', '', '30', '', '', 1, 11, '', 1, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show User / Guest Info box?', '', '22', 'yes_no', 'csite_pm_show', '', '1', '', '', 1, 12, 'IPB Portal Components', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show online users?', '', '22', 'yes_no', 'csite_online_show', '', '1', '', '', 1, 13, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show search box?', '', '22', 'yes_no', 'csite_search_show', '', '1', '', '', 1, 14, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Enable skin selection choice dropdown?', '', '22', 'yes_no', 'csite_skinchange_show', '', '1', '', '', 1, 15, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Enter URL to poll topic for inclusion', 'Leave blank to not show a poll or the poll box', '22', 'input', 'csite_poll_url', '', '', '', '', 1, 17, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show Site Navigation Menu?', '', '22', 'yes_no', 'csite_nav_show', '', '1', '', '', 1, 18, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Site Navigation Menu Links', 'One per line in this format<br>http://www.apple.com [Apple\'s Website]<br><br>{board_url} will convert into your board', '22', 'textarea', 'csite_nav_contents', '', '{board_url} [Forums]\r\n{board_url}act=Search&CODE=getactive [Today\'s Active Topics]\r\n{board_url}act=Stats [Today\'s Top 10 Posters]\r\n{board_url}act=Stats&CODE=leaders [Contact Staff]', '', 'if ( $show == 1)\r\n{\r\n $value = preg_replace( \"/&(middot|quot|copy|amp)/\", \"&\\\\1\", $value );\r\n}', 1, 19, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show Affiliates / Favoured Sites box?', '', '22', 'yes_no', 'csite_fav_show', '', '0', '', '', 1, 20, '', 0, '', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_conf_settings (conf_title, conf_description, conf_group, conf_type, conf_key, conf_value, conf_default, conf_extra, conf_evalphp, conf_protected, conf_position, conf_start_group, conf_end_group, conf_help_key, conf_add_cache) VALUES ('Show Affiliates / Favoured Sites box content', 'Raw HTML enabled', '22', 'textarea', 'csite_fav_contents', '', '', '', 'if ( $show == 1)\r\n{\r\n $value = preg_replace( \"/&(middot|quot|copy|amp)/\", \"&\\\\1\", $value );\r\n}', 1, 21, '', 1, '', 0);";
|
||||
|
||||
|
||||
return $SQL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?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',
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,161 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board v2.0.0
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Tue, 21 Sep 2004 16:34:28 GMT
|
||||
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.0 PDR1 -> PDR 2
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $this_version = '20005';
|
||||
var $upgrade_from = '20004';
|
||||
var $first_step = 'update your database to include the new schematic modifications.';
|
||||
var $md5_check = '';
|
||||
var $base_url = '';
|
||||
var $mod_to_run = '';
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function version_upgrade()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$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']}";
|
||||
|
||||
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
|
||||
{
|
||||
$tmp = array_shift( $ibforums->modules_to_run );
|
||||
|
||||
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
|
||||
}
|
||||
|
||||
if ( ! $this->mod_to_run )
|
||||
{
|
||||
$this->mod_to_run = 'None';
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
//--------------------------------
|
||||
// What are we doing?
|
||||
//--------------------------------
|
||||
|
||||
switch( $ibforums->input['workact'] )
|
||||
{
|
||||
case 'sql':
|
||||
$this->upgrade_sql();
|
||||
break;
|
||||
default:
|
||||
$this->upgrade_intro();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_sql()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$cnt = 0;
|
||||
$sql = $this->_get_sql();
|
||||
|
||||
foreach( $sql as $q )
|
||||
{
|
||||
$DB->query( $q );
|
||||
|
||||
$cnt++;
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Next page...
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// INTRO
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_intro()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$ibforums->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}
|
||||
<br /><br />
|
||||
<div align='center'><span style='font-weight:bold;font-size:14px'>» <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
|
||||
";
|
||||
|
||||
$ibforums->template->output();
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL (ARRAY)
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function _get_sql()
|
||||
{
|
||||
|
||||
$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 & Forum Digest', 'dailydigest.php', 1086912600, -1, -1, 0, 10, '723cab2aae32dd5d04898b1151038846', 1, 'Emails out daily topic & forum digest emails', 1, 'dailydigest', 0);";
|
||||
$SQL[] = "INSERT INTO ibf_task_manager (task_title, task_file, task_next_run, task_week_day, task_month_day, task_hour, task_minute, task_cronkey, task_log, task_description, task_enabled, task_key, task_safemode) VALUES ('Weekly Topic & Forum Digest', 'weeklydigest.php', 1087096200, 0, -1, 3, 10, '7e7fccd07f781bdb24ac108d26612931', 1, 'Emails weekly topic & forum digest emails', 1, 'weeklydigest', 0);";
|
||||
|
||||
|
||||
return $SQL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?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',
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,208 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board v2.0.0
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Tue, 21 Sep 2004 16:34:28 GMT
|
||||
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.0 PDR1 -> PDR 2
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $this_version = '20006';
|
||||
var $upgrade_from = '20005';
|
||||
var $first_step = 'update your database to include the new schematic modifications.';
|
||||
var $md5_check = '';
|
||||
var $base_url = '';
|
||||
var $mod_to_run = '';
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function version_upgrade()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$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']}";
|
||||
|
||||
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
|
||||
{
|
||||
$tmp = array_shift( $ibforums->modules_to_run );
|
||||
|
||||
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
|
||||
}
|
||||
|
||||
if ( ! $this->mod_to_run )
|
||||
{
|
||||
$this->mod_to_run = 'None';
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
//--------------------------------
|
||||
// What are we doing?
|
||||
//--------------------------------
|
||||
|
||||
switch( $ibforums->input['workact'] )
|
||||
{
|
||||
case 'sql':
|
||||
$this->upgrade_sql();
|
||||
break;
|
||||
default:
|
||||
$this->upgrade_intro();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_sql()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$cnt = 0;
|
||||
$sql = $this->_get_sql();
|
||||
|
||||
foreach( $sql as $q )
|
||||
{
|
||||
$DB->query( $q );
|
||||
|
||||
$cnt++;
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Next page...
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// INTRO
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_intro()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$ibforums->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}
|
||||
<br /><br />
|
||||
<div align='center'><span style='font-weight:bold;font-size:14px'>» <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
|
||||
";
|
||||
|
||||
$ibforums->template->output();
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL (ARRAY)
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function _get_sql()
|
||||
{
|
||||
global $ibforums, $DB, $std;
|
||||
|
||||
$SQL = array();
|
||||
|
||||
if ( ! $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 (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 '<' and '>' to 'to' and 'from' 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 'Who's Chatting?'', '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'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'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 'Who's Chatting?'', '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'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'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 ('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 & 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 & 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);";
|
||||
|
||||
return $SQL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,14 @@
|
||||
<?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',
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,159 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board v2.0.0
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Tue, 21 Sep 2004 16:34:28 GMT
|
||||
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.0 PF1 -> PF 2
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $this_version = '20007';
|
||||
var $upgrade_from = '20006';
|
||||
var $first_step = 'update your database to include the new schematic modifications.';
|
||||
var $md5_check = '';
|
||||
var $base_url = '';
|
||||
var $mod_to_run = '';
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function version_upgrade()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$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']}";
|
||||
|
||||
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
|
||||
{
|
||||
$tmp = array_shift( $ibforums->modules_to_run );
|
||||
|
||||
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
|
||||
}
|
||||
|
||||
if ( ! $this->mod_to_run )
|
||||
{
|
||||
$this->mod_to_run = 'None';
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
//--------------------------------
|
||||
// What are we doing?
|
||||
//--------------------------------
|
||||
|
||||
switch( $ibforums->input['workact'] )
|
||||
{
|
||||
case 'sql':
|
||||
$this->upgrade_sql();
|
||||
break;
|
||||
default:
|
||||
$this->upgrade_intro();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_sql()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$cnt = 0;
|
||||
$sql = $this->_get_sql();
|
||||
|
||||
foreach( $sql as $q )
|
||||
{
|
||||
$DB->query( $q );
|
||||
|
||||
$cnt++;
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Next page...
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// INTRO
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_intro()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$ibforums->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}
|
||||
<br /><br />
|
||||
<div align='center'><span style='font-weight:bold;font-size:14px'>» <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
|
||||
";
|
||||
|
||||
$ibforums->template->output();
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL (ARRAY)
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function _get_sql()
|
||||
{
|
||||
global $ibforums, $DB, $std;
|
||||
|
||||
$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]');";
|
||||
|
||||
return $SQL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,565 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<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_group>21</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>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>
|
||||
</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_group>21</conf_group>
|
||||
<conf_type>input</conf_type>
|
||||
<conf_key>chat04_default_room</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>
|
||||
</setting>
|
||||
|
||||
<setting>
|
||||
<conf_id>203</conf_id>
|
||||
<conf_title>Chat Room 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>--Not currently required--</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>
|
||||
</setting>
|
||||
|
||||
<setting>
|
||||
<conf_id>204</conf_id>
|
||||
<conf_title><![CDATA[Enable 'Who's Chatting?']]></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_group>21</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[Who's Chatting]]></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's Chatting when no members are logged into chat?]]></conf_title>
|
||||
<conf_description></conf_description>
|
||||
<conf_group>21</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>0</conf_end_group>
|
||||
<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_group>21</conf_group>
|
||||
<conf_type>dropdown</conf_type>
|
||||
<conf_key>chat04_who_save</conf_key>
|
||||
<conf_value></conf_value>
|
||||
<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>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>209</conf_id>
|
||||
<conf_title>Chat Room Dimensions (WIDTH)?</conf_title>
|
||||
<conf_description></conf_description>
|
||||
<conf_group>21</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>Showing the chat room</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_group>13</conf_group>
|
||||
<conf_type>yes_no</conf_type>
|
||||
<conf_key>warn_mod_ban</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>Forum Moderator Permissions</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_description></conf_description>
|
||||
<conf_group>21</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>
|
||||
</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_group>13</conf_group>
|
||||
<conf_type>yes_no</conf_type>
|
||||
<conf_key>warn_mod_modq</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>1</conf_add_cache>
|
||||
</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_group>4</conf_group>
|
||||
<conf_type>input</conf_type>
|
||||
<conf_key>subs_autoprune</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>10</conf_position>
|
||||
<conf_start_group><![CDATA[Topic & Forum Subscriptions]]></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_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_evalphp></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>0</conf_add_cache>
|
||||
</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_group>13</conf_group>
|
||||
<conf_type>yes_no</conf_type>
|
||||
<conf_key>warn_mod_post</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>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>
|
||||
</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_group>4</conf_group>
|
||||
<conf_type>multi</conf_type>
|
||||
<conf_key>autoforum_sub_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['autoforum_sub_groups']) )
|
||||
{
|
||||
$_POST['autoforum_sub_groups'] = implode(",",$_POST['autoforum_sub_groups']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$_POST['autoforum_sub_groups'] = "";
|
||||
}
|
||||
|
||||
$key = 'autoforum_sub_groups';
|
||||
}
|
||||
if ( $show == 1 )
|
||||
{
|
||||
$key='autoforum_sub_groups[]';
|
||||
}]]></conf_evalphp>
|
||||
<conf_protected>1</conf_protected>
|
||||
<conf_position>11</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>255</conf_id>
|
||||
<conf_title><![CDATA[Enable "Plain Mode"?]]></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_group>21</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>11</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>
|
||||
</setting>
|
||||
|
||||
<setting>
|
||||
<conf_id>251</conf_id>
|
||||
<conf_title>Number of times per day a moderator can warn a single member</conf_title>
|
||||
<conf_description></conf_description>
|
||||
<conf_group>13</conf_group>
|
||||
<conf_type>input</conf_type>
|
||||
<conf_key>warn_mod_day</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>11</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>213</conf_id>
|
||||
<conf_title>Load the chat room in...?</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_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>
|
||||
</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_group>21</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>
|
||||
</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_group>21</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>16</conf_position>
|
||||
<conf_start_group>Chat Room Style Options</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>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_group>21</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>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>
|
||||
</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_group>21</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>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>
|
||||
</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_group>21</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>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>
|
||||
</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 />
|
||||
<param name="cmd.BeepEnter" value="true">
|
||||
<br /><param name="cmd.BeepLeave" value="true">
|
||||
<br />Please refer to the Invision Chat documentation for more info.]]></conf_description>
|
||||
<conf_group>21</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>18</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>
|
||||
</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_group>6</conf_group>
|
||||
<conf_type>yes_no</conf_type>
|
||||
<conf_key>strip_space_chr</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>18</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>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_group>21</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>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>0</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_group>21</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>Access Permissions</conf_start_group>
|
||||
<conf_end_group>1</conf_end_group>
|
||||
<conf_help_key></conf_help_key>
|
||||
<conf_add_cache>1</conf_add_cache>
|
||||
</setting>
|
||||
</settinggroup>
|
||||
|
||||
</settingexport>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
//$SQL[] = "UPDATE blah..";
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?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',
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board v2.0.0
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Tue, 21 Sep 2004 16:34:28 GMT
|
||||
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.0 PF1 -> PF 2
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $this_version = '20008';
|
||||
var $upgrade_from = '20007';
|
||||
var $first_step = 'update your database to include the new schematic modifications.';
|
||||
var $md5_check = '';
|
||||
var $base_url = '';
|
||||
var $mod_to_run = '';
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function version_upgrade()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$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']}";
|
||||
|
||||
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
|
||||
{
|
||||
$tmp = array_shift( $ibforums->modules_to_run );
|
||||
|
||||
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
|
||||
}
|
||||
|
||||
if ( ! $this->mod_to_run )
|
||||
{
|
||||
$this->mod_to_run = 'None';
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
//--------------------------------
|
||||
// What are we doing?
|
||||
//--------------------------------
|
||||
|
||||
switch( $ibforums->input['workact'] )
|
||||
{
|
||||
case 'sql':
|
||||
$this->upgrade_sql();
|
||||
break;
|
||||
default:
|
||||
$this->upgrade_intro();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
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' ) )
|
||||
{
|
||||
require_once( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/'.strtolower($ibforums->vars['sql_driver']).'_updates.php' );
|
||||
|
||||
foreach( $SQL as $q )
|
||||
{
|
||||
$DB->query( $q );
|
||||
|
||||
$cnt++;
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Next page...
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// INTRO
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_intro()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$ibforums->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}
|
||||
<br /><br />
|
||||
<div align='center'><span style='font-weight:bold;font-size:14px'>» <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
|
||||
";
|
||||
|
||||
$ibforums->template->output();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,80 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<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_group>22</conf_group>
|
||||
<conf_type>multi</conf_type>
|
||||
<conf_key>csite_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['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>
|
||||
<conf_end_group>0</conf_end_group>
|
||||
<conf_help_key></conf_help_key>
|
||||
<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_group>1</conf_group>
|
||||
<conf_type>input</conf_type>
|
||||
<conf_key>ipb_img_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>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>
|
||||
</settinggroup>
|
||||
|
||||
</settingexport>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('P_UP', '<img src=\'style_images/<#IMG_DIR#>/p_up.gif\' border=\'0\' alt=\'Go to the top of the page\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('P_CARD', '<img src=\'style_images/<#IMG_DIR#>/p_card.gif\' border=\'0\' alt=\'Profile Card\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_AIM', '<img src=\'style_images/<#IMG_DIR#>/profile_aim.gif\' border=\'0\' alt=\'AIM\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_ITEM', '<img src=\'style_images/<#IMG_DIR#>/profile_item.gif\' border=\'0\' alt=\'Profile Item\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_MSN', '<img src=\'style_images/<#IMG_DIR#>/profile_msn.gif\' border=\'0\' alt=\'MSN\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_ICQ', '<img src=\'style_images/<#IMG_DIR#>/profile_icq.gif\' border=\'0\' alt=\'ICQ\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_YIM', '<img src=\'style_images/<#IMG_DIR#>/profile_yahoo.gif\' border=\'0\' alt=\'Yahoo\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_CONTACT', '<img src=\'style_images/<#IMG_DIR#>/icon_msg_nonew.gif\' border=\'0\' alt=\'Contact\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('BAR_LEFT', '<img src=\'style_images/<#IMG_DIR#>/bar_left.gif\' border=\'0\' alt=\'*\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('BAR_RIGHT', '<img src=\'style_images/<#IMG_DIR#>/bar_right.gif\' border=\'0\' alt=\'*\' />', 1, 1);";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('CAL_GOTO', '<img src=\'style_images/<#IMG_DIR#>/cal_goto.gif\' border=\'0\' alt=\'Goto Month\' />', 1, 1);";
|
||||
?>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?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',
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,163 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board v2.0.0
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Tue, 21 Sep 2004 16:34:28 GMT
|
||||
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB UPGRADE MODULE:: IPB 2.0.0 PF3 -> PF 4
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 23rd April 2004
|
||||
| > "So what, pop is dead - it's no great loss.
|
||||
So many facelifts, it's face flew off"
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $this_version = '20009';
|
||||
var $upgrade_from = '20008';
|
||||
var $first_step = 'update your database to include the new schematic modifications.';
|
||||
var $md5_check = '';
|
||||
var $base_url = '';
|
||||
var $mod_to_run = '';
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function version_upgrade()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$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']}";
|
||||
|
||||
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
|
||||
{
|
||||
$tmp = array_shift( $ibforums->modules_to_run );
|
||||
|
||||
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
|
||||
}
|
||||
|
||||
if ( ! $this->mod_to_run )
|
||||
{
|
||||
$this->mod_to_run = 'None';
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
//--------------------------------
|
||||
// What are we doing?
|
||||
//--------------------------------
|
||||
|
||||
switch( $ibforums->input['workact'] )
|
||||
{
|
||||
case 'sql':
|
||||
$this->upgrade_sql();
|
||||
break;
|
||||
default:
|
||||
$this->upgrade_intro();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
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' ) )
|
||||
{
|
||||
require_once( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/'.strtolower($ibforums->vars['sql_driver']).'_updates.php' );
|
||||
|
||||
foreach( $SQL as $q )
|
||||
{
|
||||
$DB->query( $q );
|
||||
|
||||
$cnt++;
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Upgrade templates
|
||||
//--------------------------------
|
||||
|
||||
require_once( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/components.php' );
|
||||
|
||||
$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...
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// INTRO
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_intro()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$ibforums->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}
|
||||
<br /><br />
|
||||
<div align='center'><span style='font-weight:bold;font-size:14px'>» <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
|
||||
";
|
||||
|
||||
$ibforums->template->output();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
# Fix bug where ICQ alt text missing last single quote
|
||||
|
||||
$SQL[] = "DELETE FROM ibf_skin_macro WHERE macro_value='PRO_ICQ' and macro_set=1";
|
||||
$SQL[] = "INSERT INTO ibf_skin_macro (macro_value, macro_replace, macro_can_remove, macro_set) VALUES ('PRO_ICQ', '<img src=\'style_images/<#IMG_DIR#>/profile_icq.gif\' border=\'0\' alt=\'ICQ\' />', 1, 1);";
|
||||
|
||||
# Fix bug where update "msg_total=msg_total+1" doesn't update when msg_total is NULL
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_members change msg_total msg_total smallint(5) default '0'";
|
||||
|
||||
# Fix bug where "select * from members where temp_ban..." prevents NULL IS NOT NULL confusion
|
||||
|
||||
$SQL[] = "ALTER TABLE ibf_members change temp_ban temp_ban varchar(100) default '0'";
|
||||
?>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?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',
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,163 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board v2.0.0
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Tue, 21 Sep 2004 16:34:28 GMT
|
||||
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > 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>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class version_upgrade
|
||||
{
|
||||
var $this_version = '20010';
|
||||
var $upgrade_from = '20009';
|
||||
var $first_step = 'update your database to include the new schematic modifications.';
|
||||
var $md5_check = '';
|
||||
var $base_url = '';
|
||||
var $mod_to_run = '';
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function version_upgrade()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$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']}";
|
||||
|
||||
if ( is_array( $ibforums->modules_to_run ) and count( $ibforums->modules_to_run ) )
|
||||
{
|
||||
$tmp = array_shift( $ibforums->modules_to_run );
|
||||
|
||||
$this->mod_to_run = implode( ', ', $ibforums->modules_to_run );
|
||||
}
|
||||
|
||||
if ( ! $this->mod_to_run )
|
||||
{
|
||||
$this->mod_to_run = 'None';
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto run..
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
//--------------------------------
|
||||
// What are we doing?
|
||||
//--------------------------------
|
||||
|
||||
switch( $ibforums->input['workact'] )
|
||||
{
|
||||
case 'sql':
|
||||
$this->upgrade_sql();
|
||||
break;
|
||||
default:
|
||||
$this->upgrade_intro();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// SQL
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
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' ) )
|
||||
{
|
||||
require_once( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/'.strtolower($ibforums->vars['sql_driver']).'_updates.php' );
|
||||
|
||||
foreach( $SQL as $q )
|
||||
{
|
||||
$DB->query( $q );
|
||||
|
||||
$cnt++;
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Upgrade templates
|
||||
//--------------------------------
|
||||
|
||||
require_once( THIS_PATH.'upg_'.$ibforums->current_upgrade.'/components.php' );
|
||||
|
||||
$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...
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->core->redirect( "index.php?act=done&loginkey={$ibforums->input['loginkey']}&securekey={$ibforums->input['securekey']}&mid={$ibforums->input['mid']}", "$cnt queries run...." );
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// INTRO
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function upgrade_intro()
|
||||
{
|
||||
global $ibforums, $std, $DB;
|
||||
|
||||
$ibforums->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}
|
||||
<br /><br />
|
||||
<div align='center'><span style='font-weight:bold;font-size:14px'>» <a href='{$this->base_url}&workact=sql'>Proceed...</a></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div align='center'>Modules to run after this module: {$this->mod_to_run}</div>
|
||||
";
|
||||
|
||||
$ibforums->template->output();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user