Version 2.1.7

This commit is contained in:
Neo committed 2025-12-19 00:21:15 -08:00
1 parent 0eecc172d9
commit f73f8bff6d
941 files changed
+215301 -103093

No files matched your search

+28 -32
View File
@@ -1,23 +1,35 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board v1.2 Module File
| ========================================
| Invision Power Board 2.1.7
| =============================================
| by Matthew Mecham
| (c) 2001 - 2003 Invision Power Services
| (c) 2001 - 2005 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Email: matt@invisionpower.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| Licence Info: http://www.invisionboard.com/?license
| http://www.ibresource.ru/license
+---------------------------------------------------------------------------
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
+---------------------------------------------------------------------------
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
+---------------------------------------------------------------------------
| > $Date: 2005-10-10 14:03:20 +0100 (Mon, 10 Oct 2005) $
| > $Revision: 22 $
| > $Author: matt $
+---------------------------------------------------------------------------
|
| > Module Loader File
| > MODULE LOADER
| > Module written by Matt Mecham
| > Date started: 7th July 2003
| > Date started: Thu 14th April 2005 (17:55)
|
+--------------------------------------------------------------------------
|
| USAGE:
| ------
|
@@ -26,22 +38,18 @@
|
| 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 = "";
var $ipsclass;
var $class;
var $module;
function module_loader()
function run_loader()
{
global $ibforums, $DB, $std;
$this->module = $this->_name_cleaner($ibforums->input['module']);
$this->module = $this->ipsclass->txt_alphanumerical_clean($this->ipsclass->input['module']);
if ( $this->module == "" )
{
@@ -63,25 +71,13 @@ class module_loader
require_once( ROOT_PATH.'modules/mod_'.$this->module.'.php' );
$mod_run = new module();
$mod_run = new module();
$mod_run->ipsclass =& $this->ipsclass;
$mod_run->run_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
//