Version 1.3.0

This commit is contained in:
Neo committed 2025-12-19 00:17:06 -08:00
1 parent 7ef3d1712a
commit f87d29ba65
290 files changed
+50206 -17930

No files matched your search

+140 -31
View File
@@ -2,15 +2,17 @@
/*
+--------------------------------------------------------------------------
| Invision Board v1.1
| Invision Power Board v1.3 Final
| ========================================
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| (c) 2001 - 2003 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.ibforums.com
| Email: phpboards@ibforums.com
| Licence Info: phpib-licence@ibforums.com
| Web: http://www.invisionboard.com
| Time: Sun, 04 Jan 2004 00:30:16 GMT
| Release: 28e7bfb25f08ac72a789cb1b172fa185
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|
| > Wrapper script
@@ -23,14 +25,21 @@
//-----------------------------------------------
// USER CONFIGURABLE ELEMENTS
//-----------------------------------------------
// Root path
$root_path = "./";
define( 'ROOT_PATH', "./" );
// Enable module usage?
// (Vital for some mods and IPB enhancements)
define ( 'USE_MODULES', 1 );
//-----------------------------------------------
// NO USER EDITABLE SECTIONS BELOW
//-----------------------------------------------
define ( 'IN_IPB', 1 );
error_reporting (E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);
@@ -67,13 +76,17 @@ class info {
var $skin = "";
var $lang = "";
var $server_load = 0;
var $version = "v1.1 BETA 1";
var $version = "v1.3 Final";
var $lastclick = "";
var $location = "";
var $debug_html = "";
var $perm_id = "";
var $forum_read = array();
var $topic_cache = "";
var $session_type = "";
function info() {
global $sess, $std, $DB, $root_path, $INFO;
global $sess, $std, $DB, $INFO;
$this->vars = &$INFO;
@@ -89,7 +102,7 @@ class info {
// Import $INFO, now!
//--------------------------------
require $root_path."conf_global.php";
require ROOT_PATH."conf_global.php";
//--------------------------------
// The clocks a' tickin'
@@ -102,7 +115,7 @@ $Debug->startTimer();
// Require our global functions
//--------------------------------
require $root_path."sources/functions.php";
require ROOT_PATH."sources/functions.php";
$std = new FUNC;
$print = new display();
@@ -114,7 +127,7 @@ $sess = new session();
$INFO['sql_driver'] = !$INFO['sql_driver'] ? 'mySQL' : $INFO['sql_driver'];
$to_require = $root_path."sources/Drivers/".$INFO['sql_driver'].".php";
$to_require = ROOT_PATH."sources/Drivers/".$INFO['sql_driver'].".php";
require ($to_require);
$DB = new db_driver;
@@ -143,6 +156,48 @@ $ibforums = new info();
//--------------------------------
$ibforums->input = $std->parse_incoming();
//--------------------------------
// Short tags...
//--------------------------------
if ( $ibforums->input['showforum'] != "" )
{
$ibforums->input['act'] = "SF";
$ibforums->input['f'] = intval($ibforums->input['showforum']);
}
else if ( $ibforums->input['showtopic'] != "")
{
$ibforums->input['act'] = "ST";
$ibforums->input['t'] = intval($ibforums->input['showtopic']);
// Grab and cache the topic now as we need the 'f' attr for
// the skins...
$DB->query("SELECT t.*, f.topic_mm_id, f.name as forum_name, f.quick_reply, f.id as forum_id, f.read_perms, f.reply_perms, f.parent_id, f.use_html,
f.start_perms, f.allow_poll, f.password, f.posts as forum_posts, f.topics as forum_topics, f.upload_perms,
f.show_rules, f.rules_text, f.rules_title,
c.name as cat_name, c.id as cat_id
FROM ibf_topics t, ibf_forums f , ibf_categories c
WHERE t.tid=".$ibforums->input['t']." and f.id = t.forum_id and f.category=c.id");
$ibforums->topic_cache = $DB->fetch_row();
$ibforums->input['f'] = $ibforums->topic_cache['forum_id'];
}
else if ( $ibforums->input['showuser'] != "")
{
$ibforums->input['act'] = "Profile";
$ibforums->input['MID'] = intval($ibforums->input['showuser']);
}
else
{
$ibforums->input['act'] = $ibforums->input['act'] == '' ? "idx" : $ibforums->input['act'];
}
//--------------------------------
// The rest :D
//--------------------------------
$ibforums->member = $sess->authorise();
$ibforums->skin = $std->load_skin();
$ibforums->lastclick = $sess->last_click;
@@ -154,12 +209,31 @@ list($ppu,$tpu) = explode( "&", $ibforums->member['view_prefs'] );
$ibforums->vars['display_max_topics'] = ($tpu > 0) ? $tpu : $ibforums->vars['display_max_topics'];
$ibforums->vars['display_max_posts'] = ($ppu > 0) ? $ppu : $ibforums->vars['display_max_posts'];
if ($ibforums->member['id'] and ( $std->my_getcookie('hide_sess') ) )
//--------------------------------
// Set up the session ID stuff
//--------------------------------
if ( $ibforums->session_type == 'cookie' )
{
$ibforums->session_id = "";
$ibforums->base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?';
}
else
{
$ibforums->base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?s='.$ibforums->session_id.'&';
}
$ibforums->base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?s='.$ibforums->session_id;
$ibforums->js_base_url = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?s='.$ibforums->session_id.'&';
//--------------------------------
// Set up the forum_read cookie
//--------------------------------
$std->hdl_forum_read_cookie();
//--------------------------------
// Set up the skin stuff
//--------------------------------
$ibforums->skin_rid = $ibforums->skin['set_id'];
$ibforums->skin_id = 's'.$ibforums->skin['set_id'];
@@ -177,24 +251,29 @@ if ($ibforums->vars['default_language'] == "")
$ibforums->lang_id = $ibforums->member['language'] ? $ibforums->member['language'] : $ibforums->vars['default_language'];
if ( ($ibforums->lang_id != $ibforums->vars['default_language']) and (! is_dir( $root_path."lang/".$ibforums->lang_id ) ) )
if ( ($ibforums->lang_id != $ibforums->vars['default_language']) and (! is_dir( ROOT_PATH."lang/".$ibforums->lang_id ) ) )
{
$ibforums->lang_id = $ibforums->vars['default_language'];
}
require $root_path."lang/".$ibforums->lang_id."/lang_global.php";
$ibforums->lang = $lang;
unset($lang);
$ibforums->lang = $std->load_words($ibforums->lang, 'lang_global', $ibforums->lang_id);
//--------------------------------
$skin_universal = $std->load_template('skin_global');
//--------------------------------
// Expire subscription?
//--------------------------------
if ($ibforums->input['act'] != 'Login' and $ibforums->input['act'] != 'Reg' and $ibforums->input['act'] != 'Attach')
if ( $ibforums->member['sub_end'] != 0 AND ( $ibforums->member['sub_end'] < time() ) )
{
$std->expire_subscription();
}
//--------------------------------
if ($ibforums->input['act'] != 'Login' and $ibforums->input['act'] != 'Reg' and $ibforums->input['act'] != 'Attach' and $ibforums->input['module'] != 'subscription')
{
//--------------------------------
@@ -226,7 +305,7 @@ if ($ibforums->input['act'] != 'Login' and $ibforums->input['act'] != 'Reg' and
if ( (! $ibforums->member['id']) and ($ibforums->vars['force_login'] == 1) )
{
require $root_path."sources/Login.php";
require ROOT_PATH."sources/Login.php";
}
@@ -238,6 +317,7 @@ if ($ibforums->input['act'] != 'Login' and $ibforums->input['act'] != 'Reg' and
$choice = array(
"idx" => "Boards",
"SC" => "Boards",
"SF" => "Forums",
"SR" => "Forums",
"ST" => "Topics",
@@ -259,23 +339,28 @@ $choice = array(
"YAHOO" => "misc/contact_member",
"MSN" => "misc/contact_member",
"report" => "misc/contact_member",
"chat" => "misc/contact_member",
"integ" => "misc/contact_member",
"Msg" => "Messenger",
"UserCP" => "Usercp",
"Profile" => "Profile",
"Track" => "misc/tracker",
"Stats" => "misc/stats",
"Attach" => "misc/attach",
'ib3' => 'misc/ib3',
'legends' => 'misc/legends',
'modcp' => 'mod_cp',
'calendar' => "calendar",
'buddy' => "browsebuddy",
'boardrules' => "misc/contact_member",
'mmod' => "misc/multi_moderate",
'warn' => "misc/warn",
'home' => 'dynamiclite/csite',
'module' => 'modules',
);
/***************************************************/
$ibforums->input['act'] = $ibforums->input['act'] == '' ? "idx" : $ibforums->input['act'];
//
// Check to make sure the array key exits..
@@ -284,11 +369,35 @@ if (! isset($choice[ $ibforums->input['act'] ]) )
$ibforums->input['act'] = 'idx';
}
// Require and run
require $root_path."sources/".$choice[ $ibforums->input['act'] ].".php";
if ( $ibforums->input['act'] == 'home' )
{
if ( $ibforums->vars['csite_on'] )
{
require ROOT_PATH."sources/dynamiclite/csite.php";
$csite = new click_site();
}
else
{
require ROOT_PATH."sources/Boards.php";
}
}
else if ( $ibforums->input['act'] == 'module' )
{
if ( USE_MODULES == 1 )
{
require ROOT_PATH."modules/module_loader.php";
$loader = new module_loader();
}
else
{
require ROOT_PATH."sources/Boards.php";
}
}
else
{
// Require and run
require ROOT_PATH."sources/".$choice[ $ibforums->input['act'] ].".php";
}
//+-------------------------------------------------
// GLOBAL ROUTINES