Version 2.0.0
This commit is contained in:
1 parent
5699abfc0e
commit
0eecc172d9
696 files changed
+120723
-77160
No files matched your search
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();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user