Version 2.1.7
This commit is contained in:
1 parent
0eecc172d9
commit
f73f8bff6d
941 files changed
+215301
-103093
No files matched your search
@@ -1,11 +0,0 @@
|
||||
<html>
|
||||
<head><title>Invision Power Board - Bulletin Board System</title></head>
|
||||
<body>
|
||||
<h1>403: Invision Power Board -> Forbidden</h1>
|
||||
<hr>
|
||||
You have reached this Page in error, please use
|
||||
your back button to return to Invision Board.
|
||||
<hr>
|
||||
<a href="http://www.invisionboard.com/">Invision Power Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,420 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board IPB Portal
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IPB Portal Script
|
||||
| > Written By Matthew Mecham
|
||||
| > Date started: 1st July 2003
|
||||
| > Updated: 1st July 2004 (What a coincidence!)
|
||||
|
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
//-----------------------------------------------
|
||||
// USER CONFIGURABLE ELEMENTS
|
||||
//-----------------------------------------------
|
||||
|
||||
// Define the path to where the forums directory is
|
||||
// located. This might be "./forums/" for example.
|
||||
// Don't forget the trailing slash!
|
||||
|
||||
//define( 'ROOT_PATH', "./" );
|
||||
define( 'ROOT_PATH', "./forums/" );
|
||||
define( 'KERNEL_PATH', ROOT_PATH.'ips_kernel/' );
|
||||
|
||||
// Define the URL to this script. If you're happy to
|
||||
// use relative URLs - you can leave this blank.
|
||||
// You can also rename the script here.
|
||||
|
||||
$this_script = 'index.php';
|
||||
|
||||
// Enable module usage?
|
||||
// (Vital for some mods and IPB enhancements)
|
||||
|
||||
define ( 'USE_MODULES', 1 );
|
||||
|
||||
// Enable shut down features?
|
||||
// Uses PHPs register_shutdown_function to save
|
||||
// low priority tasks until end of exec
|
||||
|
||||
define ( 'USE_SHUTDOWN', 0 );
|
||||
|
||||
//-----------------------------------------------
|
||||
// NO USER EDITABLE SECTIONS BELOW
|
||||
//-----------------------------------------------
|
||||
|
||||
define ( 'IN_IPB', 1 );
|
||||
define ( 'IN_DEV', 0 );
|
||||
|
||||
error_reporting (E_ERROR | E_WARNING | E_PARSE);
|
||||
set_magic_quotes_runtime(0);
|
||||
|
||||
//===========================================================================
|
||||
// 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 $session_id = "";
|
||||
var $base_url = "";
|
||||
var $vars = "";
|
||||
var $lang_id = "en";
|
||||
var $skin = "";
|
||||
var $lang = "";
|
||||
var $server_load = 0;
|
||||
var $version = "v2.0.0 ";
|
||||
var $lastclick = "";
|
||||
var $location = "";
|
||||
var $debug_html = "";
|
||||
var $perm_id = "";
|
||||
var $forum_read = array();
|
||||
var $topic_cache = "";
|
||||
var $session_type = "";
|
||||
var $skin_global = "";
|
||||
var $loaded_templates = array();
|
||||
var $converge = "";
|
||||
|
||||
function info()
|
||||
{
|
||||
global $sess, $std, $DB, $INFO;
|
||||
|
||||
$this->vars = &$INFO;
|
||||
|
||||
$this->vars['AVATARS_URL'] = 'style_avatars';
|
||||
$this->vars['EMOTICONS_URL'] = 'style_emoticons/<#EMO_DIR#>';
|
||||
$this->vars['mime_img'] = 'style_images/<#IMG_DIR#>';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
// 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' : strtolower($INFO['sql_driver']);
|
||||
|
||||
require ( KERNEL_PATH.'class_db_'.$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'].'_queries.php';
|
||||
$DB->obj['use_shutdown'] = USE_SHUTDOWN;
|
||||
|
||||
//-----------------------------------
|
||||
// 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();
|
||||
|
||||
//--------------------------------
|
||||
// Make CONSTANT
|
||||
//--------------------------------
|
||||
|
||||
define( 'SQL_PREFIX', $DB->obj['sql_tbl_prefix'] );
|
||||
define( 'SQL_DRIVER', $INFO['sql_driver'] );
|
||||
|
||||
//--------------------------------
|
||||
// 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 ROOT_PATH."sources/classes/class_display.php";
|
||||
require ROOT_PATH."sources/classes/class_session.php";
|
||||
require ROOT_PATH."sources/classes/class_forums.php";
|
||||
require KERNEL_PATH."class_converge.php";
|
||||
|
||||
$std = new FUNC;
|
||||
$print = new display();
|
||||
$sess = new session();
|
||||
$forums = new forum_functions();
|
||||
|
||||
//--------------------------------
|
||||
// Set up our vars
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->input = $std->parse_incoming();
|
||||
|
||||
//--------------------------------
|
||||
// Set converge
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->converge = new class_converge( $DB );
|
||||
|
||||
//===========================================================================
|
||||
// Get cache...
|
||||
//===========================================================================
|
||||
|
||||
$DB->simple_construct( array( 'select' => '*', 'from' => 'cache_store', 'where' => "cs_key IN ( 'badwords', 'emoticons', 'attachtypes','bbcode', 'multimod','ranks','profilefields', 'banfilters', 'settings', 'group_cache', 'systemvars', 'skin_id_cache', 'forum_cache', 'moderators', 'stats', 'languages' )" ) );
|
||||
$DB->simple_exec();
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
if ( $r['cs_key'] == 'settings' )
|
||||
{
|
||||
$tmp = unserialize(stripslashes($r['cs_value']));
|
||||
|
||||
if ( is_array( $tmp ) and count( $tmp ) )
|
||||
{
|
||||
foreach( $tmp as $k => $v )
|
||||
{
|
||||
$ibforums->vars[ $k ] = $v;
|
||||
}
|
||||
}
|
||||
|
||||
unset( $tmp );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( $r['cs_array'] )
|
||||
{
|
||||
$ibforums->cache[ $r['cs_key'] ] = unserialize(stripslashes($r['cs_value']));
|
||||
}
|
||||
else
|
||||
{
|
||||
$ibforums->cache[ $r['cs_key'] ] = $r['cs_value'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! isset( $ibforums->cache['systemvars'] ) )
|
||||
{
|
||||
$DB->simple_exec_query( array( 'delete' => 'cache_store', 'where' => "cs_key='systemvars'" ) );
|
||||
$DB->do_insert( 'cache_store', array( 'cs_key' => 'systemvars', 'cs_value' => addslashes(serialize(array())), 'cs_array' => 1 ) );
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Set debug mode
|
||||
//--------------------------------
|
||||
|
||||
$DB->obj['debug'] = ($ibforums->vars['sql_debug'] == 1) ? intval($_GET['debug']) : 0;
|
||||
|
||||
//--------------------------------
|
||||
// Initialize the FUNC
|
||||
//--------------------------------
|
||||
|
||||
$std->FUNC_init();
|
||||
|
||||
|
||||
//--------------------------------
|
||||
// The rest :D
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->member = $sess->authorise();
|
||||
$std->load_skin();
|
||||
$ibforums->lastclick = $sess->last_click;
|
||||
$ibforums->location = $sess->location;
|
||||
$ibforums->session_id = $sess->session_id; // Used in URLs
|
||||
$ibforums->my_session = $sess->session_id; // Used in code
|
||||
|
||||
//--------------------------------
|
||||
// Initialize the forums
|
||||
//--------------------------------
|
||||
|
||||
//--------------------------------
|
||||
// Set up cache path
|
||||
//--------------------------------
|
||||
|
||||
if ( $ibforums->vars['ipb_cache_path'] )
|
||||
{
|
||||
define( 'CACHE_PATH', $ibforums->vars['ipb_cache_path'] );
|
||||
}
|
||||
else
|
||||
{
|
||||
define( 'CACHE_PATH', ROOT_PATH );
|
||||
}
|
||||
|
||||
$forums->strip_invisible = 1;
|
||||
$forums->forums_init();
|
||||
|
||||
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'];
|
||||
|
||||
//===========================================================================
|
||||
// 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->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 defaults
|
||||
//===========================================================================
|
||||
|
||||
$ibforums->skin_id = $ibforums->skin['_setid'];
|
||||
|
||||
$ibforums->vars['img_url'] = 'style_images/' . $ibforums->skin['_imagedir'];
|
||||
|
||||
//--------------------------------
|
||||
// Set up our language choice
|
||||
//--------------------------------
|
||||
|
||||
if ($ibforums->vars['default_language'] == "")
|
||||
{
|
||||
$ibforums->vars['default_language'] = 'en';
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Did we choose a language?
|
||||
//--------------------------------
|
||||
|
||||
If ( $ibforums->input['setlanguage'] and $ibforums->input['langid'] and $ibforums->member['id'] )
|
||||
{
|
||||
if ( is_array( $ibforums->cache['languages'] ) and count( $ibforums->cache['languages'] ) )
|
||||
{
|
||||
foreach( $ibforums->cache['languages'] as $idx => $data )
|
||||
{
|
||||
if ( $data['ldir'] == $ibforums->input['langid'] )
|
||||
{
|
||||
$DB->do_update( 'members', array( 'language' => $data['ldir'] ), 'id='.$ibforums->member['id'] );
|
||||
$ibforums->member['language'] = $data['ldir'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$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 ) ) )
|
||||
{
|
||||
$ibforums->lang_id = $ibforums->vars['default_language'];
|
||||
}
|
||||
|
||||
$ibforums->lang = $std->load_words($ibforums->lang, 'lang_global', $ibforums->lang_id);
|
||||
|
||||
//--------------------------------
|
||||
// Upload dir?
|
||||
//--------------------------------
|
||||
|
||||
$ibforums->vars['upload_dir'] = $ibforums->vars['upload_dir'] ? $ibforums->vars['upload_dir'] : ROOT_PATH.'uploads';
|
||||
|
||||
//===========================================================================
|
||||
// DECONSTRUCTOR
|
||||
//===========================================================================
|
||||
|
||||
if ( USE_SHUTDOWN and $ibforums->input['act'] != 'task' )
|
||||
{
|
||||
chdir( ROOT_PATH );
|
||||
$ROOT_PATH = getcwd();
|
||||
|
||||
register_shutdown_function( array( &$std, 'my_deconstructor') );
|
||||
}
|
||||
|
||||
//--------------------------------
|
||||
// Require and run
|
||||
//--------------------------------
|
||||
|
||||
require ROOT_PATH."sources/ipbportal.php";
|
||||
|
||||
$run = new ipdl();
|
||||
$run->auto_run();
|
||||
|
||||
|
||||
//+-------------------------------------------------
|
||||
// GLOBAL ROUTINES
|
||||
//+-------------------------------------------------
|
||||
|
||||
function fatal_error($message="", $help="") {
|
||||
echo("$message<br><br>$help");
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,320 +0,0 @@
|
||||
<?
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board v2.0.0
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2004 Invision Power Services, Inc
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.invisionpower.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > IP Chat => IPB Bridge Script
|
||||
| > Script written by Matt Mecham
|
||||
| > Date started: 17th February 2003 (Updated: 1 July 2004)
|
||||
|
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
//-----------------------------------------------
|
||||
// USER CONFIGURABLE ELEMENTS
|
||||
//-----------------------------------------------
|
||||
|
||||
// Root path
|
||||
|
||||
define( 'ROOT_PATH' , "./" );
|
||||
define( 'KERNEL_PATH', ROOT_PATH.'ips_kernel/' );
|
||||
|
||||
$CACHE = array();
|
||||
|
||||
//----------------------------------------------
|
||||
// END OF USER EDITABLE COMPONENTS
|
||||
//---------------------------------------------
|
||||
|
||||
error_reporting (E_ERROR | E_WARNING | E_PARSE);
|
||||
set_magic_quotes_runtime(0);
|
||||
|
||||
require ROOT_PATH."conf_global.php";
|
||||
|
||||
define( 'DENIED', 0 );
|
||||
define( 'ACCESS', 1 );
|
||||
define( 'ADMIN' , 2 );
|
||||
|
||||
//--------------------------------
|
||||
// Load the DB driver and such
|
||||
//--------------------------------
|
||||
|
||||
$INFO['sql_driver'] = ! $INFO['sql_driver'] ? 'mysql' : strtolower($INFO['sql_driver']);
|
||||
|
||||
require ( KERNEL_PATH.'class_db_'.$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['use_shutdown'] = 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();
|
||||
|
||||
//--------------------------------
|
||||
// Make CONSTANT
|
||||
//--------------------------------
|
||||
|
||||
define( 'SQL_PREFIX', $DB->obj['sql_tbl_prefix'] );
|
||||
define( 'SQL_DRIVER', $INFO['sql_driver'] );
|
||||
|
||||
//===========================================================================
|
||||
// Get cache...
|
||||
//===========================================================================
|
||||
|
||||
$DB->simple_construct( array( 'select' => '*', 'from' => 'cache_store', 'where' => "cs_key IN ( 'settings', 'group_cache', 'systemvars' )" ) );
|
||||
$DB->simple_exec();
|
||||
|
||||
while ( $r = $DB->fetch_row() )
|
||||
{
|
||||
if ( $r['cs_key'] == 'settings' )
|
||||
{
|
||||
$tmp = unserialize(stripslashes($r['cs_value']));
|
||||
|
||||
if ( is_array( $tmp ) and count( $tmp ) )
|
||||
{
|
||||
foreach( $tmp as $k => $v )
|
||||
{
|
||||
$INFO[ $k ] = $v;
|
||||
}
|
||||
}
|
||||
|
||||
unset( $tmp );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( $r['cs_array'] )
|
||||
{
|
||||
$CACHE[ $r['cs_key'] ] = unserialize(stripslashes($r['cs_value']));
|
||||
}
|
||||
else
|
||||
{
|
||||
$CACHE[ $r['cs_key'] ] = $r['cs_value'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$allowed_groups = $INFO['chat_admin_groups'];
|
||||
$access_groups = $INFO['chat_access_groups'];
|
||||
$autologin = 0;
|
||||
$allow_guest_access = $INFO['chat_allow_guest'] == 1 ? ACCESS : DENIED;
|
||||
|
||||
// Stupid PHP changing it's mind on HTTP args
|
||||
|
||||
$username = $_GET['username'] != "" ? $_GET['username'] : $HTTP_GET_VARS['username'];
|
||||
$password = $_GET['password'] != "" ? $_GET['password'] : $HTTP_GET_VARS['password'];
|
||||
$ip = $_GET['ip'] != "" ? $_GET['ip'] : $HTTP_GET_VARS['ip'];
|
||||
|
||||
//----------------------------------------------
|
||||
// Test for autologin.
|
||||
//----------------------------------------------
|
||||
|
||||
if ( preg_match( "/^(?:[0-9a-z]){32}$/", $password ) )
|
||||
{
|
||||
$autologin = 1;
|
||||
}
|
||||
|
||||
|
||||
// Remove URL encoding (%20, etc)
|
||||
|
||||
$username = clean_value(urldecode(trim($username)));
|
||||
$password = clean_value(urldecode(trim($password)));
|
||||
$ip = clean_value(urldecode(trim($ip)));
|
||||
|
||||
//----------------------------------------------
|
||||
// Main code
|
||||
//----------------------------------------------
|
||||
|
||||
// Start off with the lowest accessibility
|
||||
|
||||
$output_int = $allow_guest_access;
|
||||
$output_name = "";
|
||||
|
||||
|
||||
//------------------------------
|
||||
// Attempt to find the user
|
||||
//------------------------------
|
||||
|
||||
$DB->query( "SELECT m.mgroup, m.name, m.id, c.* FROM ".SQL_PREFIX."members m
|
||||
LEFT JOIN ".SQL_PREFIX."members_converge c ON (m.id=c.converge_id)
|
||||
WHERE m.name='".$DB->add_slashes($username)."'" );
|
||||
|
||||
|
||||
if ( ! $member = $DB->fetch_row() )
|
||||
{
|
||||
die_nice();
|
||||
|
||||
//-- script exits --//
|
||||
}
|
||||
|
||||
|
||||
if ( ! $member['id'] )
|
||||
{
|
||||
// No member found - allow guest access?
|
||||
|
||||
die_nice($allow_guest_access);
|
||||
|
||||
//-- script exits --//
|
||||
}
|
||||
|
||||
|
||||
//------------------------------
|
||||
// Update passy
|
||||
//------------------------------
|
||||
|
||||
if ( ! $autologin )
|
||||
{
|
||||
$md5_password = md5( md5( $member['converge_pass_salt'] ) . md5($password) );
|
||||
}
|
||||
else
|
||||
{
|
||||
$md5_password = $password;
|
||||
}
|
||||
|
||||
//------------------------------
|
||||
// Check password - member exists
|
||||
//------------------------------
|
||||
|
||||
if ( $password != "" )
|
||||
{
|
||||
// Password was entered..
|
||||
|
||||
if ( $md5_password != $member['converge_pass_hash'] )
|
||||
{
|
||||
// Password incorrect..
|
||||
|
||||
die_nice();
|
||||
|
||||
//-- script exits --//
|
||||
}
|
||||
else
|
||||
{
|
||||
$output_int = ACCESS;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// No password entered - die!
|
||||
// Do not allow guest access on reg. name
|
||||
|
||||
die_nice();
|
||||
|
||||
//-- script exits --//
|
||||
}
|
||||
|
||||
|
||||
//------------------------------
|
||||
// Do we have any access?
|
||||
//------------------------------
|
||||
|
||||
|
||||
if ( ! preg_match( "/(^|,)".$member['mgroup']."(,|$)/", $access_groups ) )
|
||||
{
|
||||
die_nice();
|
||||
}
|
||||
|
||||
//------------------------------
|
||||
// Do we have admin access?
|
||||
//------------------------------
|
||||
|
||||
if ( preg_match( "/(^|,)".$member['mgroup']."(,|$)/", $allowed_groups ) )
|
||||
{
|
||||
$output_int = ADMIN;
|
||||
}
|
||||
|
||||
|
||||
//------------------------------
|
||||
// Spill the beans
|
||||
//------------------------------
|
||||
|
||||
print $output_int;
|
||||
|
||||
exit();
|
||||
|
||||
|
||||
function die_nice( $access=0 )
|
||||
{
|
||||
// Simply error out silently, showing guest access only for the user
|
||||
@mysql_close();
|
||||
print $access;
|
||||
exit();
|
||||
}
|
||||
|
||||
//------------------------------
|
||||
// Var cleaner
|
||||
//------------------------------
|
||||
|
||||
function clean_value($val)
|
||||
{
|
||||
global $INFO;
|
||||
|
||||
if ($val == "")
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
$val = str_replace( " ", " ", $val );
|
||||
|
||||
if ( $INFO['strip_space_chr'] )
|
||||
{
|
||||
$val = str_replace( chr(0xCA), "", $val ); //Remove sneaky spaces
|
||||
}
|
||||
|
||||
$val = str_replace( "&" , "&" , $val );
|
||||
$val = str_replace( "<!--" , "<!--" , $val );
|
||||
$val = str_replace( "-->" , "-->" , $val );
|
||||
$val = preg_replace( "/<script/i" , "<script" , $val );
|
||||
$val = str_replace( ">" , ">" , $val );
|
||||
$val = str_replace( "<" , "<" , $val );
|
||||
$val = str_replace( "\"" , """ , $val );
|
||||
$val = preg_replace( "/\n/" , "<br>" , $val ); // Convert literal newlines
|
||||
$val = preg_replace( "/\\\$/" , "$" , $val );
|
||||
$val = preg_replace( "/\r/" , "" , $val ); // Remove literal carriage returns
|
||||
$val = str_replace( "!" , "!" , $val );
|
||||
$val = str_replace( "'" , "'" , $val ); // IMPORTANT: It helps to increase sql query safety.
|
||||
|
||||
// Ensure unicode chars are OK
|
||||
|
||||
$val = preg_replace("/&#([0-9]+);/s", "&#\\1;", $val );
|
||||
|
||||
// Strip slashes if not already done so.
|
||||
|
||||
if ( get_magic_quotes_gpc() )
|
||||
{
|
||||
$val = stripslashes($val);
|
||||
}
|
||||
|
||||
// Swop user inputted backslashes
|
||||
|
||||
$val = preg_replace( "/\\\(?!&#|\?#)/", "\", $val );
|
||||
|
||||
return $val;
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?
|
||||
/**
|
||||
* IPB 2.1.0 Portal Redirect file
|
||||
*
|
||||
* Simply forwards to the forum's portal
|
||||
* RENAME THIS FILE TO "index.php" BEFORE
|
||||
* USE
|
||||
*/
|
||||
|
||||
/**
|
||||
* EDIT THE CONSTANT BELOW TO SHOW THE URL to forum.
|
||||
*
|
||||
* Very simply the full URL to your forum.
|
||||
* Do not add "index.php" on the end!
|
||||
*/
|
||||
|
||||
# -----------------------------VVV Edit that bit there
|
||||
define( 'IPB_URL', 'http://forums.invisionpower.com' );
|
||||
|
||||
|
||||
#######################################################################################
|
||||
#### DO NOT EDIT #### #### DO NOT EDIT #### #### DO NOT EDIT #### #### DO NOT EDIT ####
|
||||
#######################################################################################
|
||||
|
||||
@header( "Location: ".preg_replace( "#/$#", "", IPB_URL ) ."/index.php?act=home" );
|
||||
exit();
|
||||
|
||||
?>
|
||||
@@ -1,41 +1,44 @@
|
||||
Invision Power Portal
|
||||
---------------------------
|
||||
|
||||
Installation Snyopsis
|
||||
.....................
|
||||
|
||||
Open up index_rename.php, edit the variables at the top save and upload to your root public_html / www folder.
|
||||
If you're installing this in a different directory to your IPB, renamed 'index_rename.php' to 'index.php'. It's named as
|
||||
such by default to ensure that you do not overwrite an existing file named the same.
|
||||
|
||||
|
||||
INSTALLATION
|
||||
------------
|
||||
|
||||
This guide assumes that you have installed IPB in /forums/ and wish for the portal to be the first page your visitors see.
|
||||
|
||||
Open up index.php and edit the path to where the forums directory is:
|
||||
|
||||
define( 'ROOT_PATH', "./forums/" );
|
||||
|
||||
This is set to "forums" by default. If you had your IPB installed at http://www.domain.com/chat/ you'd need to make sure you have:
|
||||
|
||||
define( 'ROOT_PATH', "./chat/" );
|
||||
|
||||
Save the file and upload it to your root web directory folder, often called "public_html" or "www".
|
||||
|
||||
|
||||
SETTING UP
|
||||
----------
|
||||
|
||||
Before you can use IPB Portal, you'll need to make sure you've switched it on from the ACP. If you don't do this, you may
|
||||
receive PHP errors from index.php.
|
||||
|
||||
Simply log into your forums ACP and expand the "System Settings" sub-menu and click on "View all general settings" and then
|
||||
find "IPB Portal".
|
||||
|
||||
That's it, you're all done!
|
||||
|
||||
|
||||
|
||||
|
||||
Invision Power Portal
|
||||
---------------------------
|
||||
|
||||
Installation Snyopsis
|
||||
.....................
|
||||
|
||||
Open up index_rename.php, edit the variable at the top to relflect the actual URL of your board (instructions in the file).
|
||||
If you're installing this in a different directory to your IPB, renamed 'index_rename.php' to 'index.php'. It's named as
|
||||
such by default to ensure that you do not overwrite an existing file named the same.
|
||||
|
||||
|
||||
INSTALLATION
|
||||
------------
|
||||
|
||||
This guide assumes that you have installed IPB in /forums/ and wish for the portal to be the first page your visitors see.
|
||||
|
||||
Open up index.php and edit the path to where the forums directory is:
|
||||
|
||||
EXAMPLES:
|
||||
|
||||
CORRECT: define( 'IPB_URL', 'http://www.mywebsite.com/forums' );
|
||||
|
||||
--WRONG: define( 'IPB_URL', 'http://www.mywebsite.com/forums/' );
|
||||
--WRONG: define( 'IPB_URL', 'http://www.mywebsite.com/forums/index.php' );
|
||||
|
||||
Make sure you don't include a trailing slash OR "index.php" on the end of the URL.
|
||||
|
||||
Save the file and upload it to your root web directory folder, often called "public_html" or "www".
|
||||
|
||||
|
||||
SETTING UP
|
||||
----------
|
||||
|
||||
Before you can use IPB Portal, you'll need to make sure you've switched it on from the ACP. If you don't do this, you may
|
||||
receive PHP errors from index.php.
|
||||
|
||||
Simply log into your forums ACP and expand the "System Settings" sub-menu and click on "View all general settings" and then
|
||||
find "IPB Portal".
|
||||
|
||||
That's it, you're all done!
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|
||||
Script Name: show.php
|
||||
Script Author: Matt Mecham
|
||||
Package: Invision Board
|
||||
Date: 16th September 2002
|
||||
-------------------------
|
||||
What is this?
|
||||
-------------------------
|
||||
It's a little "add-on" that simply allows for a neater / easier to read
|
||||
URL to an invision board URL.
|
||||
Example: http://www.domain.com/forums/show.php/act/ST/f/3/t/45
|
||||
Resolves to: http://www.domain.com/forums/index.php?act=ST&f=3&t=45
|
||||
|
||||
It's not used in Invision Board itself, but might come in handy in your
|
||||
own projects (such as a search engine friendly menu, etc).
|
||||
|
||||
Probably only works with PHP 4.1+
|
||||
|
||||
*/
|
||||
|
||||
$base_url = 'http://localhost/invboard/index.php'; //Edit this to suit
|
||||
|
||||
$redirect = "";
|
||||
|
||||
if ( $_SERVER['PATH_INFO'] != "" )
|
||||
{
|
||||
$c = 0;
|
||||
|
||||
foreach( explode( "/", $_SERVER['PATH_INFO'] ) as $bit)
|
||||
{
|
||||
if ($bit != "")
|
||||
{
|
||||
if ($c == 0)
|
||||
{
|
||||
$c++;
|
||||
$redirect .= $bit.'=';
|
||||
}
|
||||
else
|
||||
{
|
||||
$c = 0;
|
||||
$redirect .= $bit.'&';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
header("Location: $base_url?".$redirect);
|
||||
|
||||
exit();
|
||||
|
||||
?>
|
||||
|
||||
+627
-582
File diff suppressed because it is too large.
Load diff
@@ -1 +1,16 @@
|
||||
<table cellpadding='4' cellspacing='1' border='0' width='100%' bgcolor='#000000' style='font-family:Verdana;font-size:11px'>␍<tr>␍ <td align='left' bgcolor='#CCCCCC'><b>Users browsing the forums: {total}</b></td>␍</tr>␍<tr>␍ <td align='left'bgcolor='#FEFEFE'>␍ <table style='border:1px dotted gray;width:100%;font-family:Verdana;font-size:10px'>␍ <tr>␍ <td>Active members: {members}<br>Active Guests: {guests}<br>Active Anonymous: {anon}␍ </td>␍ </tr>␍ </table>␍ </td>␍</tr>␍</table>␍<br>
|
||||
<table cellpadding='4' cellspacing='1' border='0' width='100%' bgcolor='#000000' style='font-family:Verdana;font-size:11px'>
|
||||
<tr>
|
||||
<td align='left' bgcolor='#CCCCCC'><b>Users browsing the forums: {total}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left'bgcolor='#FEFEFE'>
|
||||
<table style='border:1px dotted gray;width:100%;font-family:Verdana;font-size:10px'>
|
||||
<tr>
|
||||
<td>Active members: {members}<br>Active Guests: {guests}<br>Active Anonymous: {anon}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
@@ -1 +1,15 @@
|
||||
<html>␍<head><title>IBForums - Bulletin Board System</title></head>␍<body>␍<h1>403: IBForums-> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://www.invisionboard.com/">Get your free download of IBForums now!</a>␍</body>␍</html>␍
|
||||
<html>
|
||||
<head><title>Ошибка < Русская версия Invision Power Board</title></head>
|
||||
<body>
|
||||
<h1>Ошибка < Русская версия Invision Power Board</h1>
|
||||
<hr>
|
||||
Вы попали на несуществующую страницу!<br>Пожалуйста нажмите на кнопочку «<b>Назад</b>»
|
||||
в вашем браузере для возвращения на предыдущую страницу.
|
||||
<hr>
|
||||
<b>Invision Power Board:</b>
|
||||
<ul>
|
||||
<li><a href="http://www.bestwarez.ru" title="BestWarez.Ru - Только лучший Варез!">Русская версия</a></li>
|
||||
<li><a href="http://www.invisionboard.com" title="Official Site">English version</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1 +1,13 @@
|
||||
<table cellpadding='4' cellspacing='1' border='0' width='100%' bgcolor='#000000' style='font-family:Verdana;font-size:11px'>␍<tr>␍ <td align='left' bgcolor='#CCCCCC'>Posted By: <a href='{profile_link}'>{member_name}</a><br>Posted On: {post_date}</td>␍</tr>␍<tr>␍ <td align='left'bgcolor='#FEFEFE'>␍ <b>Title: {topic_title}</b>␍ <br><br>␍ <table style='border:1px dotted gray;width:100%;font-family:Verdana;font-size:10px'><tr><td>{post}</td></tr></table><br>Comments: {comments} :: <a href='{view_all_link}'>View Comments</a>␍ </td>␍</tr>␍</table>␍<br>
|
||||
<table cellpadding='4' cellspacing='1' border='0' width='100%' bgcolor='#000000' style='font-family:Verdana;font-size:11px'>
|
||||
<tr>
|
||||
<td align='left' bgcolor='#CCCCCC'>Posted By: <a href='{profile_link}'>{member_name}</a><br>Posted On: {post_date}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left'bgcolor='#FEFEFE'>
|
||||
<b>Title: {topic_title}</b>
|
||||
<br><br>
|
||||
<table style='border:1px dotted gray;width:100%;font-family:Verdana;font-size:10px'><tr><td>{post}</td></tr></table><br>Comments: {comments} :: <a href='{view_all_link}'>View Comments</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
@@ -1 +1,17 @@
|
||||
<table cellpadding='4' cellspacing='1' border='0' width='100%' bgcolor='#000000' style='font-family:Verdana;font-size:11px'>␍<tr>␍ <td align='left' bgcolor='#CCCCCC'><b>Board Statistics</b></td>␍</tr>␍<tr>␍ <td align='left'bgcolor='#FEFEFE'>␍ <table style='border:1px dotted gray;width:100%;font-family:Verdana;font-size:10px'>␍ <tr>␍ <td>Total Posts: {total_posts} ( Topics: {topics}, Replies {replies} )<br>␍ Registered Members: {members}␍ </td>␍ </tr>␍ </table>␍ </td>␍</tr>␍</table>␍<br>
|
||||
<table cellpadding='4' cellspacing='1' border='0' width='100%' bgcolor='#000000' style='font-family:Verdana;font-size:11px'>
|
||||
<tr>
|
||||
<td align='left' bgcolor='#CCCCCC'><b>Board Statistics</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='left'bgcolor='#FEFEFE'>
|
||||
<table style='border:1px dotted gray;width:100%;font-family:Verdana;font-size:10px'>
|
||||
<tr>
|
||||
<td>Total Posts: {total_posts} ( Topics: {topics}, Replies {replies} )<br>
|
||||
Registered Members: {members}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
@@ -16,7 +16,7 @@
|
||||
<link>{topic_link}</link>
|
||||
<comments>{topic_link}</comments>
|
||||
<category>{forum_title}</category>
|
||||
<description><![CDATA[Forum: <a href="{board_url}?showforum={forum_id}">{forum_title}</a><br />Last Poster: <a href="{board_url}?showuser={last_poster_id}" target="_blank">{last_post_name}</a><br />Last Post: {last_post_time}]]></description>
|
||||
<description><![CDATA[Forum: <a href="{board_url}?showforum={forum_id}" target="_blank">{forum_title}</a><br />Last Poster: <a href="{board_url}?showuser={last_poster_id}" target="_blank">{last_post_name}</a><br />Last Post: {last_post_time}]]></description>
|
||||
<pubDate>{rfc_date}</pubDate>
|
||||
</item>
|
||||
[/ROW]
|
||||
|
||||
Reference in new issue
Block a user