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

+1
View File
@@ -0,0 +1 @@
<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>␍
+254
View File
@@ -0,0 +1,254 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board v1.2 Module File
| ========================================
| by Matthew Mecham
| (c) 2001 - 2003 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionboard.com
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|
| > Member Sync Module File
| > Module written by Matt Mecham
| > Date started: 7th July 2003
|
+--------------------------------------------------------------------------
|
| USAGE:
| ------
|
| This module is designed to hold any module modifications to with registration
| It doesn't do much in itself, but custom code can be added to handle
| synchronization, etc.
|
| - on_create_account: Is called upon successful account creation
| - on_register_form: Is called when the form is displayed
| - on_login: Is called when logged in succcessfully
| - on_delete: Is called when member deleted (single, multiple)
| - on_email_change: When email address change is confirmed
| - on_profile_update: When profile is updated (msn, sig, etc)
| - on_pass_change: When password is updated
| - on_group_change: When the member's membergroup has changed
| - on_name_change: When the member's name has been changed
+--------------------------------------------------------------------------
*/
class ipb_member_sync
{
var $class = "";
function ipb_member_sync()
{
}
//-----------------------------------------------
// register_class($class)
//
// Register a $this-> with this class
//
//-----------------------------------------------
function register_class(&$class)
{
$this->class = $class;
}
//-----------------------------------------------
// on_create_account($member)
//
// $member = array( 'id', 'name', 'email',
// 'password', 'mgroup'...etc)
//
//-----------------------------------------------
function on_create_account($member)
{
global $DB, $std, $ibforums;
//---- START
//---- END
}
//-----------------------------------------------
// on_register_form()
//
//
//-----------------------------------------------
function on_register_form()
{
global $DB, $std, $ibforums;
//---- START
//---- END
}
//-----------------------------------------------
// on_login()
//
// $member = array( 'id', 'name', 'email', 'pass')
// ...etc
//-----------------------------------------------
function on_login($member=array())
{
global $DB, $std, $ibforums;
//---- START
//---- END
}
//-----------------------------------------------
// on_delete($ids)
//
// $ids = array | integer
// If array, will contain list of ids
//-----------------------------------------------
function on_delete($ids=array())
{
global $DB, $std, $ibforums;
$type = "";
//---- START
if ( is_array($ids) and count($ids) > 0 )
{
$type = 'arr';
}
else
{
$type = 'int';
}
//---- END
}
//-----------------------------------------------
// on_email_change($id, $new_email)
//
// $id = int member_id
// $new_email = string new email address
//-----------------------------------------------
function on_email_change($id, $new_email)
{
global $DB, $std, $ibforums;
//---- START
//---- END
}
//-----------------------------------------------
// on_pass_change($id, $new_raw)
//
// $id = int member_id
// $new_raw = string new plain text password
//-----------------------------------------------
function on_pass_change($id, $new_raw)
{
global $DB, $std, $ibforums;
//---- START
//---- END
}
//-----------------------------------------------
// on_profile_update($member)
//
// $member = array: avatar, avatar_size, aim_name
// icq_number, location, website, yahoo, interests
// integ_msg, msnname, id, name
//
//-----------------------------------------------
function on_profile_update($member=array())
{
global $DB, $std, $ibforums;
//---- START
//---- END
}
//-----------------------------------------------
// on_signature_update($member, $new_sig)
//
// $member = array: id, name, email, etc
// $new_sig = New signature
//
//-----------------------------------------------
function on_signature_update($member=array(), $new_sig="")
{
global $DB, $std, $ibforums;
//---- START
//---- END
}
//-----------------------------------------------
// on_group_change()
//
// $id = int member_id
// $new_group = new int() group id
//-----------------------------------------------
function on_group_change( $id, $new_group )
{
global $DB, $std, $ibforums;
//---- START
//---- END
}
//-----------------------------------------------
// on_name_change()
//
// $id = int member_id
// $new_group = new name
//-----------------------------------------------
function on_name_change( $id, $new_name )
{
global $DB, $std, $ibforums;
//---- START
//---- END
}
}
?>
+103
View File
@@ -0,0 +1,103 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board v1.2 Module File
| ========================================
| by Matthew Mecham
| (c) 2001 - 2003 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionboard.com
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
| > Example Module Loader File
| > Module written by Matt Mecham
| > Date started: 7th July 2003
|
+--------------------------------------------------------------------------
*/
//=====================================
// Define class, this must be the same
// in all modules
//=====================================
class module extends module_loader
{
//=====================================
// Define vars if required
//=====================================
var $class = "";
var $module = "";
var $html = "";
var $result = "";
//=====================================
// Constructer, called and run by IPB
//=====================================
function module()
{
global $ibforums, $DB, $std;
//=====================================
// Do any set up here, like load lang
// skin files, etc
//=====================================
$ibforums->lang = $std->load_words($ibforums->lang, 'lang_boards', $ibforums->lang_id);
$this->html = $std->load_template('skin_boards');
//=====================================
// Set up structure
//=====================================
switch( $ibforums->input['cmd'] )
{
case 'dosomething':
$this->do_something();
break;
default:
$this->do_something();
break;
}
print $this->result;
exit();
}
//------------------------------------------
// do_something
//
// Test sub, show if admin or not..
//
//------------------------------------------
function do_something()
{
global $ibforums, $DB, $std;
if ( $ibforums->member['mgroup'] == $ibforums->vars['admin_group'] )
{
$this->result = "You're an admin!";
}
else
{
$this->result = "You're not an admin!";
}
}
}
?>
+176
View File
@@ -0,0 +1,176 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board v1.2 Module File
| ========================================
| by Matthew Mecham
| (c) 2001 - 2003 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionboard.com
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
| > Hive Mail Module
| > Module written by Matt Mecham
| > Date started: 8th July 2003
|
+--------------------------------------------------------------------------
*/
//=====================================
// Define class, this must be the same
// in all modules
//=====================================
class module extends module_loader
{
var $class = "";
var $module = "";
var $html = "";
var $result = "";
var $hive = "";
var $hiveid = "";
function module()
{
global $ibforums, $DB, $std, $print;
//-------------------------------------------
// Load skin / lang stuff
//-------------------------------------------
$ibforums->lang = $std->load_words($ibforums->lang, 'lang_register', $ibforums->lang_id);
$this->html = $std->load_template('skin_register');
//-------------------------------------------
// Are we a hivemail member?
//-------------------------------------------
$DB->query("SELECT id, hiveuserid FROM ibf_member_extra WHERE id={$ibforums->member['id']}");
$r = $DB->fetch_row();
$this->hiveid = intval($r['hiveuserid']);
//-------------------------------------------
// Load Hivemail plug in
//-------------------------------------------
define('IPB_PLUGIN', true);
require_once('../mail/includes/invision_plugin.php');
$this->hive = new invision_plugin();
//-------------------------------------------
// If we're not a member...
//-------------------------------------------
if ( ! $ibforums->member['id'] )
{
$std->boink_it( $ibforums->base_url );
}
//-------------------------------------------
// Do we already have a hivemail membership?
//-------------------------------------------
if ( $this->hiveid AND $hiveuser = $this->hive->DB_Hive->query_first("SELECT userid FROM ".HIVE_TBL."user WHERE userid = {$this->hiveid}"))
{
$this->hive->destructor();
$std->boink_it( $ibforums->base_url );
}
//-------------------------------------------
// Whatcha doin'? Yes - you?
//-------------------------------------------
switch( $ibforums->input['show'] )
{
case 'forumform':
$this->show_forumform();
break;
case 'addmail':
$this->add_mail();
default:
$this->show_forumform();
break;
}
}
function add_mail()
{
global $ibforums, $DB, $std, $print;
$hive_username = trim($ibforums->input['hive_username']);
//------------------------------------------
// Check for errors
//------------------------------------------
if ( $hive_username == "" )
{
$this->show_forumform('js_blanks');
}
$this->hive->hivemail_register_user($ibforums->member, false);
if ( $this->hive->hive_error != "" )
{
$ibforums->lang['thing_name_taken'] = sprintf( $ibforums->lang['thing_name_taken'] , 'Board Email Address' );
$ibforums->lang['incorrect_thing_name'] = sprintf( $ibforums->lang['incorrect_thing_name'], 'Board Email Address' );
$this->show_forumform($this->hive->hive_error);
$this->error = 1;
$this->hive->destructor();
return;
}
$this->hive->destructor();
$print->redirect_screen("your email account has been created, forwarding you to the email log-in page", "/mail/index.php", 1);
}
//------------------------------------------
// Show Forum Form
//
// Show the already reg'd member's mail form
//
//------------------------------------------
function show_forumform($errors="")
{
global $ibforums, $DB, $std, $print;
$this->page_title = "Sign up for your email account";
$hidden = "";
$action = $ibforums->base_url.'act=module&amp;module=hivemail&amp;show=addmail';
$content = $this->html->field_entry('Account Name:',
'The password for your email account will be the same as your forum account.<br />Letters and numbers only please.',
$this->html->field_textinput('hive_username', $ibforums->input['hive_username'])."&nbsp;<select name='hive_userdomain' class='forminput'>".$this->hive->hive_domainname_options."</select>"
);
if ($errors != "")
{
$this->output .= $this->html->errors( $ibforums->lang[$errors] );
}
$this->output .= $this->html->tmpl_form($action, $hidden, $this->page_title, $content );
$print->add_output("$this->output");
$print->do_output( array( 'TITLE' => $this->page_title, 'JS' => 0, NAV => $this->nav ) );
}
}
?>
+104
View File
@@ -0,0 +1,104 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board v1.2 Module File
| ========================================
| by Matthew Mecham
| (c) 2001 - 2003 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionboard.com
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|
| > Module Loader File
| > Module written by Matt Mecham
| > Date started: 7th July 2003
|
+--------------------------------------------------------------------------
|
| USAGE:
| ------
|
| This is a module loader file
| example: index.php?act=module&module=register&var=foo
|
| Looks for a file called "mod_register.php" and runs it
|
| $DB, $ibforums, $std are all available and any thing in
| the URL will be in the standard $ibforums->input['var'] format
|
+--------------------------------------------------------------------------
*/
class module_loader
{
var $class = "";
var $module = "";
function module_loader()
{
global $ibforums, $DB, $std;
$this->module = $this->_name_cleaner($ibforums->input['module']);
if ( $this->module == "" )
{
$this->_return_dead();
}
//----------------------------------
// Does module file exist?
//----------------------------------
if ( ! @file_exists( ROOT_PATH.'modules/mod_'.$this->module.'.php' ) )
{
$this->_return_dead();
}
//----------------------------------
// Require and run
//----------------------------------
require_once( ROOT_PATH.'modules/mod_'.$this->module.'.php' );
$mod_run = new module();
exit();
}
//------------------------------------------
// _name_cleaner
//
// Remove everything bar a - z, 0 - 9 _ -
//
//------------------------------------------
function _name_cleaner($name)
{
return preg_replace( "/[^a-zA-Z0-9\-\_]/", "" , $name );
}
//------------------------------------------
// _return_dead
//
// Return to board index
//
//------------------------------------------
function _return_dead()
{
global $ibforums;
header("Location: ".$ibforums->base_url);
exit();
}
}
?>