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,19 +1,33 @@
|
||||
<?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
|
||||
+---------------------------------------------------------------------------
|
||||
| > Example Module Loader File
|
||||
| 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 FILE (EXAMPLE)
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 7th July 2003
|
||||
| > Date started: Thu 14th April 2005 (17:59)
|
||||
|
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -23,13 +37,13 @@
|
||||
// in all modules
|
||||
//=====================================
|
||||
|
||||
class module extends module_loader
|
||||
class module
|
||||
{
|
||||
|
||||
//=====================================
|
||||
// Define vars if required
|
||||
//=====================================
|
||||
|
||||
var $ipsclass;
|
||||
var $class = "";
|
||||
var $module = "";
|
||||
var $html = "";
|
||||
@@ -40,23 +54,21 @@ class module extends module_loader
|
||||
// Constructer, called and run by IPB
|
||||
//=====================================
|
||||
|
||||
function module()
|
||||
function run_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');
|
||||
$this->ipsclass->load_language('lang_boards');
|
||||
$this->ipsclass->load_template('skin_boards');
|
||||
|
||||
//=====================================
|
||||
// Set up structure
|
||||
//=====================================
|
||||
|
||||
switch( $ibforums->input['cmd'] )
|
||||
switch( $this->ipsclass->input['cmd'] )
|
||||
{
|
||||
case 'dosomething':
|
||||
$this->do_something();
|
||||
@@ -70,11 +82,8 @@ class module extends module_loader
|
||||
print $this->result;
|
||||
|
||||
exit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//------------------------------------------
|
||||
// do_something
|
||||
//
|
||||
@@ -84,9 +93,7 @@ class module extends module_loader
|
||||
|
||||
function do_something()
|
||||
{
|
||||
global $ibforums, $DB, $std;
|
||||
|
||||
if ( $ibforums->member['mgroup'] == $ibforums->vars['admin_group'] )
|
||||
if ( $this->ipsclass->member['mgroup'] == $this->ipsclass->vars['admin_group'] )
|
||||
{
|
||||
$this->result = "You're an admin!";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user