Modified class files for PHP5

This commit is contained in:
Marc Alexander
2011-04-19 13:02:34 +02:00
parent 02233a88c4
commit 0009f1de1d
30 changed files with 277 additions and 277 deletions

View File

@@ -18,7 +18,7 @@ if (!defined('IN_PHPBB'))
class board3_portal_check_version class board3_portal_check_version
{ {
function version() public function version()
{ {
global $config, $phpbb_root_path, $phpEx; global $config, $phpbb_root_path, $phpEx;

View File

@@ -17,10 +17,10 @@ if (!defined('IN_PHPBB'))
class acp_portal class acp_portal
{ {
var $u_action; public $u_action;
var $new_config = array(); public $new_config = array();
function main($id, $mode) public function main($id, $mode)
{ {
global $db, $user, $cache, $template, $display_vars; global $db, $user, $cache, $template, $display_vars;
global $config, $phpbb_root_path, $portal_root_path, $phpbb_admin_path, $phpEx; global $config, $phpbb_root_path, $portal_root_path, $phpbb_admin_path, $phpEx;

View File

@@ -17,7 +17,7 @@ if (!defined('IN_PHPBB'))
*/ */
class acp_portal_info class acp_portal_info
{ {
function module() public function module()
{ {
return array( return array(
'filename' => 'acp_portal', 'filename' => 'acp_portal',

View File

@@ -28,26 +28,26 @@ class portal_announcements_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 21; public $columns = 21;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'GLOBAL_ANNOUNCEMENTS'; public $name = 'GLOBAL_ANNOUNCEMENTS';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = ''; public $image_src = '';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_announcements_module'; public $language = 'portal_announcements_module';
function get_template_center($module_id) public function get_template_center($module_id)
{ {
global $config, $template, $db, $user, $auth, $cache, $phpEx, $phpbb_root_path; global $config, $template, $db, $user, $auth, $cache, $phpEx, $phpbb_root_path;
@@ -367,7 +367,7 @@ class portal_announcements_module
} }
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'ACP_PORTAL_ANNOUNCE_SETTINGS', 'title' => 'ACP_PORTAL_ANNOUNCE_SETTINGS',
@@ -389,7 +389,7 @@ class portal_announcements_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_config('board3_announcements_style_' . $module_id, 0); set_config('board3_announcements_style_' . $module_id, 0);
set_config('board3_number_of_announcements_' . $module_id, 1); set_config('board3_number_of_announcements_' . $module_id, 1);
@@ -404,7 +404,7 @@ class portal_announcements_module
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;
@@ -425,7 +425,7 @@ class portal_announcements_module
} }
// Create forum select box // Create forum select box
function select_forums($value, $key, $module_id) public function select_forums($value, $key, $module_id)
{ {
global $user, $config; global $user, $config;
@@ -449,7 +449,7 @@ class portal_announcements_module
} }
// Store selected forums // Store selected forums
function store_selected_forums($key, $module_id) public function store_selected_forums($key, $module_id)
{ {
global $db, $cache; global $db, $cache;

View File

@@ -28,26 +28,26 @@ class portal_attachments_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 31; public $columns = 31;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'PORTAL_ATTACHMENTS'; public $name = 'PORTAL_ATTACHMENTS';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_attach.png'; public $image_src = 'portal_attach.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_attachments_module'; public $language = 'portal_attachments_module';
function get_template_center($module_id) public function get_template_center($module_id)
{ {
global $config, $template, $db, $user, $auth, $phpEx, $phpbb_root_path; global $config, $template, $db, $user, $auth, $phpEx, $phpbb_root_path;
@@ -148,7 +148,7 @@ class portal_attachments_module
return 'attachments_center.html'; return 'attachments_center.html';
} }
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $db, $user, $auth, $phpEx, $phpbb_root_path; global $config, $template, $db, $user, $auth, $phpEx, $phpbb_root_path;
@@ -249,7 +249,7 @@ class portal_attachments_module
return 'attachments_side.html'; return 'attachments_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'ACP_PORTAL_ATTACHMENTS_NUMBER_SETTINGS', 'title' => 'ACP_PORTAL_ATTACHMENTS_NUMBER_SETTINGS',
@@ -268,7 +268,7 @@ class portal_attachments_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_config('board3_attachments_number_' . $module_id, 8); set_config('board3_attachments_number_' . $module_id, 8);
set_config('board3_attach_max_length_' . $module_id, 15); set_config('board3_attach_max_length_' . $module_id, 15);
@@ -279,7 +279,7 @@ class portal_attachments_module
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;
@@ -297,7 +297,7 @@ class portal_attachments_module
} }
// Create select box for attachment filetype // Create select box for attachment filetype
function select_filetype($value, $key, $module_id) public function select_filetype($value, $key, $module_id)
{ {
global $db, $user, $config; global $db, $user, $config;
@@ -330,7 +330,7 @@ class portal_attachments_module
} }
// Store selected filetypes // Store selected filetypes
function store_filetypes($key, $module_id) public function store_filetypes($key, $module_id)
{ {
global $db, $cache; global $db, $cache;
@@ -344,7 +344,7 @@ class portal_attachments_module
} }
// Create forum select box // Create forum select box
function select_forums($value, $key) public function select_forums($value, $key)
{ {
global $user, $config; global $user, $config;
@@ -368,7 +368,7 @@ class portal_attachments_module
} }
// Store selected forums // Store selected forums
function store_selected_forums($key) public function store_selected_forums($key)
{ {
global $db, $cache; global $db, $cache;

View File

@@ -28,26 +28,26 @@ class portal_birthday_list_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'BIRTHDAYS'; public $name = 'BIRTHDAYS';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_birthday.png'; public $image_src = 'portal_birthday.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_birthday_list_module'; public $language = 'portal_birthday_list_module';
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $db, $user, $phpbb_root_path; global $config, $template, $db, $user, $phpbb_root_path;
@@ -124,7 +124,7 @@ class portal_birthday_list_module
return 'birthdays_side.html'; return 'birthdays_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'ACP_PORTAL_BIRTHDAYS_SETTINGS', 'title' => 'ACP_PORTAL_BIRTHDAYS_SETTINGS',
@@ -138,13 +138,13 @@ class portal_birthday_list_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_config('board3_birthdays_ahead_' . $module_id, 30); set_config('board3_birthdays_ahead_' . $module_id, 30);
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;

View File

@@ -28,37 +28,37 @@ class portal_calendar_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'PORTAL_CALENDAR'; public $name = 'PORTAL_CALENDAR';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_calendar.png'; public $image_src = 'portal_calendar.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_calendar_module'; public $language = 'portal_calendar_module';
/** /**
* custom acp template * custom acp template
* file must be in "adm/style/portal/" * file must be in "adm/style/portal/"
*/ */
var $custom_acp_tpl = 'acp_portal_calendar'; public $custom_acp_tpl = 'acp_portal_calendar';
/** /**
* additional variables * additional variables
*/ */
var $mini_cal_fdow; private $mini_cal_fdow;
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $user, $phpbb_root_path, $phpEx; global $config, $template, $user, $phpbb_root_path, $phpEx;
@@ -210,7 +210,7 @@ class portal_calendar_module
return 'calendar_side.html'; return 'calendar_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'ACP_PORTAL_CALENDAR', 'title' => 'ACP_PORTAL_CALENDAR',
@@ -229,7 +229,7 @@ class portal_calendar_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_config('board3_sunday_first_' . $module_id, 1); set_config('board3_sunday_first_' . $module_id, 1);
set_config('board3_calendar_today_color_' . $module_id, '#000000'); set_config('board3_calendar_today_color_' . $module_id, '#000000');
@@ -242,7 +242,7 @@ class portal_calendar_module
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;
@@ -267,7 +267,7 @@ class portal_calendar_module
return $db->sql_query($sql); return $db->sql_query($sql);
} }
function manage_events($value, $key, $module_id) public function manage_events($value, $key, $module_id)
{ {
global $db, $portal_config, $config, $template, $user, $phpEx, $phpbb_admin_path; global $db, $portal_config, $config, $template, $user, $phpEx, $phpbb_admin_path;
@@ -517,23 +517,23 @@ class portal_calendar_module
} }
function update_events($key, $module_id) public function update_events($key, $module_id)
{ {
$this->manage_events('', $key, $module_id); $this->manage_events('', $key, $module_id);
} }
var $dateYYY; // year in numeric format (YYYY) private $dateYYY; // year in numeric format (YYYY)
var $dateMM; // month in numeric format (MM) private $dateMM; // month in numeric format (MM)
var $dateDD; // day in numeric format (DD) private $dateDD; // day in numeric format (DD)
var $ext_dateMM; // extended month (e.g. February) private $ext_dateMM; // extended month (e.g. February)
var $daysMonth; // count of days in month private $daysMonth; // count of days in month
var $stamp; // timestamp private $stamp; // timestamp
var $day; // return array s.a. private $day; // return array s.a.
/** /**
* convert date->timestamp * convert date->timestamp
**/ **/
function makeTimestamp($date) private function makeTimestamp($date)
{ {
$this->stamp = strtotime($date); $this->stamp = strtotime($date);
return ($this->stamp); return ($this->stamp);
@@ -542,7 +542,7 @@ class portal_calendar_module
/** /**
* get date listed in array * get date listed in array
**/ **/
function getMonth($callDate) private function getMonth($callDate)
{ {
$this->makeTimestamp($callDate); $this->makeTimestamp($callDate);
@@ -565,7 +565,7 @@ class portal_calendar_module
} }
// Unserialize links array // Unserialize links array
function utf_unserialize($serial_str) private function utf_unserialize($serial_str)
{ {
$out = preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $serial_str ); $out = preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $serial_str );
return unserialize($out); return unserialize($out);
@@ -574,7 +574,7 @@ class portal_calendar_module
/** /**
* validate URLs and execute apppend_sid if necessary * validate URLs and execute apppend_sid if necessary
*/ */
function validate_url($url) private function validate_url($url)
{ {
global $config; global $config;

View File

@@ -28,26 +28,26 @@ class portal_clock_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'CLOCK'; public $name = 'CLOCK';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_clock.png'; public $image_src = 'portal_clock.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_clock_module'; public $language = 'portal_clock_module';
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template; global $config, $template;
@@ -58,7 +58,7 @@ class portal_clock_module
return 'clock_side.html'; return 'clock_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'ACP_PORTAL_CLOCK_SETTINGS', 'title' => 'ACP_PORTAL_CLOCK_SETTINGS',
@@ -72,13 +72,13 @@ class portal_clock_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_config('board3_clock_src_' . $module_id, 'board3clock.swf'); set_config('board3_clock_src_' . $module_id, 'board3clock.swf');
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;

View File

@@ -28,32 +28,32 @@ class portal_custom_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 31; public $columns = 31;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'PORTAL_CUSTOM'; public $name = 'PORTAL_CUSTOM';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_custom.png'; public $image_src = 'portal_custom.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_custom_module'; public $language = 'portal_custom_module';
/** /**
* custom acp template * custom acp template
* file must be in "adm/style/portal/" * file must be in "adm/style/portal/"
*/ */
var $custom_acp_tpl = 'acp_portal_custom'; public $custom_acp_tpl = 'acp_portal_custom';
function get_template_center($module_id) public function get_template_center($module_id)
{ {
global $config, $template, $portal_config, $user; global $config, $template, $portal_config, $user;
@@ -88,7 +88,7 @@ class portal_custom_module
} }
} }
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $portal_config, $user; global $config, $template, $portal_config, $user;
@@ -123,7 +123,7 @@ class portal_custom_module
} }
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'PORTAL_CUSTOM', 'title' => 'PORTAL_CUSTOM',
@@ -137,7 +137,7 @@ class portal_custom_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_portal_config('board3_custom_' . $module_id . '_code', ''); set_portal_config('board3_custom_' . $module_id . '_code', '');
set_config('board3_custom_' . $module_id . '_code', ''); set_config('board3_custom_' . $module_id . '_code', '');
@@ -150,7 +150,7 @@ class portal_custom_module
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;
@@ -175,7 +175,7 @@ class portal_custom_module
return ((!$check) ? $check : $db->sql_query($sql)); // if something went wrong, make sure we are aware of the first query return ((!$check) ? $check : $db->sql_query($sql)); // if something went wrong, make sure we are aware of the first query
} }
function manage_custom($value, $key, $module_id) public function manage_custom($value, $key, $module_id)
{ {
global $db, $portal_config, $config, $template, $user, $phpEx, $phpbb_admin_path, $phpbb_root_path; global $db, $portal_config, $config, $template, $user, $phpEx, $phpbb_admin_path, $phpbb_root_path;
@@ -348,7 +348,7 @@ class portal_custom_module
} }
} }
function update_custom($key, $module_id) public function update_custom($key, $module_id)
{ {
$this->manage_custom('', $key, $module_id); $this->manage_custom('', $key, $module_id);
} }

View File

@@ -28,32 +28,32 @@ class portal_modulename_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 0; public $columns = 0;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'MODULENAME'; public $name = 'MODULENAME';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'modulename.png'; public $image_src = 'modulename.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = ''; public $language = '';
/** /**
* custom acp template * custom acp template
* file must be in "adm/style/portal/" * file must be in "adm/style/portal/"
*/ */
var $custom_acp_tpl = ''; public $custom_acp_tpl = '';
function get_template_center($module_id) public function get_template_center($module_id)
{ {
global $config, $template; global $config, $template;
@@ -64,7 +64,7 @@ class portal_modulename_module
return 'modulename_center.html'; return 'modulename_center.html';
} }
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template; global $config, $template;
@@ -75,7 +75,7 @@ class portal_modulename_module
return 'modulename_side.html'; return 'modulename_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'ACP_CONFIG_MODULENAME', 'title' => 'ACP_CONFIG_MODULENAME',
@@ -90,14 +90,14 @@ class portal_modulename_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_config('board3_configname_' . $module_id, 'Hello World!'); set_config('board3_configname_' . $module_id, 'Hello World!');
set_config('board3_configname2_' . $module_id, 1337); set_config('board3_configname2_' . $module_id, 1337);
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;

View File

@@ -28,26 +28,26 @@ class portal_donation_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 31; public $columns = 31;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'DONATION'; public $name = 'DONATION';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_donation.png'; public $image_src = 'portal_donation.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_donation_module'; public $language = 'portal_donation_module';
function get_template_center($module_id) public function get_template_center($module_id)
{ {
global $config, $template; global $config, $template;
@@ -56,7 +56,7 @@ class portal_donation_module
return 'donation_center.html'; return 'donation_center.html';
} }
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template; global $config, $template;
@@ -65,7 +65,7 @@ class portal_donation_module
return 'donation_side.html'; return 'donation_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'ACP_PORTAL_PAYPAL_SETTINGS', 'title' => 'ACP_PORTAL_PAYPAL_SETTINGS',
@@ -79,13 +79,13 @@ class portal_donation_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_config('board3_pay_acc_' . $module_id, 'your@paypal.com'); set_config('board3_pay_acc_' . $module_id, 'your@paypal.com');
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;

View File

@@ -28,32 +28,32 @@ class portal_forumlist_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 21; public $columns = 21;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'PORTAL_FORUMLIST'; public $name = 'PORTAL_FORUMLIST';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = ''; public $image_src = '';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_forumlist_module'; public $language = 'portal_forumlist_module';
/** /**
* custom acp template * custom acp template
* file must be in "adm/style/portal/" * file must be in "adm/style/portal/"
*/ */
var $custom_acp_tpl = ''; public $custom_acp_tpl = '';
function get_template_center($module_id) public function get_template_center($module_id)
{ {
global $config, $template, $user, $auth, $phpbb_root_path, $phpEx; global $config, $template, $user, $auth, $phpbb_root_path, $phpEx;
@@ -72,7 +72,7 @@ class portal_forumlist_module
return 'forumlist.html'; return 'forumlist.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'PORTAL_FORUMLIST', 'title' => 'PORTAL_FORUMLIST',
@@ -83,12 +83,12 @@ class portal_forumlist_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
return true; return true;
} }

View File

@@ -28,26 +28,26 @@ class portal_friends_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'FRIENDS'; public $name = 'FRIENDS';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_friends.png'; public $image_src = 'portal_friends.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_friends_module'; public $language = 'portal_friends_module';
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $db, $user; global $config, $template, $db, $user;
@@ -103,7 +103,7 @@ class portal_friends_module
return 'friends_side.html'; return 'friends_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'ACP_PORTAL_FRIENDS_SETTINGS', 'title' => 'ACP_PORTAL_FRIENDS_SETTINGS',
@@ -117,13 +117,13 @@ class portal_friends_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_config('board3_max_online_friends_' . $module_id, 8); set_config('board3_max_online_friends_' . $module_id, 8);
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;

View File

@@ -28,26 +28,26 @@ class portal_latest_bots_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'LATEST_BOTS'; public $name = 'LATEST_BOTS';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_bots.png'; public $image_src = 'portal_bots.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_latest_bots_module'; public $language = 'portal_latest_bots_module';
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $db, $user; global $config, $template, $db, $user;
@@ -93,7 +93,7 @@ class portal_latest_bots_module
} }
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'ACP_PORTAL_BOTS_SETTINGS', 'title' => 'ACP_PORTAL_BOTS_SETTINGS',
@@ -107,13 +107,13 @@ class portal_latest_bots_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_config('board3_last_visited_bots_number_' . $module_id, 1); set_config('board3_last_visited_bots_number_' . $module_id, 1);
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;

View File

@@ -28,26 +28,26 @@ class portal_latest_members_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'LATEST_MEMBERS'; public $name = 'LATEST_MEMBERS';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_members.png'; public $image_src = 'portal_members.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_latest_members_module'; public $language = 'portal_latest_members_module';
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $db, $user; global $config, $template, $db, $user;
@@ -70,7 +70,7 @@ class portal_latest_members_module
return 'latest_members_side.html'; return 'latest_members_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'ACP_PORTAL_MEMBERS_SETTINGS', 'title' => 'ACP_PORTAL_MEMBERS_SETTINGS',
@@ -84,13 +84,13 @@ class portal_latest_members_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_config('board3_max_last_member_' . $module_id, 8); set_config('board3_max_last_member_' . $module_id, 8);
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;

View File

@@ -28,26 +28,26 @@ class portal_leaders_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'THE_TEAM'; public $name = 'THE_TEAM';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_team.png'; public $image_src = 'portal_team.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_leaders_module'; public $language = 'portal_leaders_module';
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $user, $auth, $db, $phpEx, $phpbb_root_path; global $config, $template, $user, $auth, $db, $phpEx, $phpbb_root_path;
@@ -204,7 +204,7 @@ class portal_leaders_module
} }
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'ACP_PORTAL_LEADERS', 'title' => 'ACP_PORTAL_LEADERS',
@@ -218,14 +218,14 @@ class portal_leaders_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
// Show normal team block by default // Show normal team block by default
set_config('board3_leaders_ext_' . $module_id, 0); set_config('board3_leaders_ext_' . $module_id, 0);
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;

View File

@@ -28,26 +28,26 @@ class portal_link_us_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'LINK_US'; public $name = 'LINK_US';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_link_us.png'; public $image_src = 'portal_link_us.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_link_us_module'; public $language = 'portal_link_us_module';
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $user; global $config, $template, $user;
@@ -63,7 +63,7 @@ class portal_link_us_module
return 'link_us_side.html'; return 'link_us_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'LINK_US', 'title' => 'LINK_US',
@@ -74,12 +74,12 @@ class portal_link_us_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
return true; return true;
} }

View File

@@ -28,30 +28,30 @@ class portal_links_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'PORTAL_LINKS'; public $name = 'PORTAL_LINKS';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_links.png'; public $image_src = 'portal_links.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_links_module'; public $language = 'portal_links_module';
/** /**
* custom acp template * custom acp template
* file must be in "adm/style/portal/" * file must be in "adm/style/portal/"
*/ */
var $custom_acp_tpl = 'acp_portal_links'; public $custom_acp_tpl = 'acp_portal_links';
/** /**
* constants * constants
@@ -59,7 +59,7 @@ class portal_links_module
const LINK_INT = 1; const LINK_INT = 1;
const LINK_EXT = 2; const LINK_EXT = 2;
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $phpEx, $phpbb_root_path, $user, $db; global $config, $template, $phpEx, $phpbb_root_path, $user, $db;
@@ -109,7 +109,7 @@ class portal_links_module
return 'links_side.html'; return 'links_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
// do not remove this as it is needed in order to run manage_links // do not remove this as it is needed in order to run manage_links
return array( return array(
@@ -124,7 +124,7 @@ class portal_links_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
global $phpbb_root_path, $db; global $phpbb_root_path, $db;
@@ -167,7 +167,7 @@ class portal_links_module
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;
@@ -188,7 +188,7 @@ class portal_links_module
} }
// Manage the menu links // Manage the menu links
function manage_links($value, $key, $module_id) public function manage_links($value, $key, $module_id)
{ {
global $config, $phpbb_admin_path, $user, $phpEx, $db, $template; global $config, $phpbb_admin_path, $user, $phpEx, $db, $template;
@@ -405,13 +405,13 @@ class portal_links_module
} }
} }
function update_links($key, $module_id) public function update_links($key, $module_id)
{ {
$this->manage_links('', $key, $module_id); $this->manage_links('', $key, $module_id);
} }
// Unserialize links array // Unserialize links array
function utf_unserialize($serial_str) private function utf_unserialize($serial_str)
{ {
$out = preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $serial_str ); $out = preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $serial_str );
return unserialize($out); return unserialize($out);

View File

@@ -28,30 +28,30 @@ class portal_main_menu_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'M_MENU'; public $name = 'M_MENU';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_menu.png'; public $image_src = 'portal_menu.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_main_menu_module'; public $language = 'portal_main_menu_module';
/** /**
* custom acp template * custom acp template
* file must be in "adm/style/portal/" * file must be in "adm/style/portal/"
*/ */
var $custom_acp_tpl = 'acp_portal_menu'; public $custom_acp_tpl = 'acp_portal_menu';
/** /**
* constants * constants
@@ -60,7 +60,7 @@ class portal_main_menu_module
const LINK_INT = 1; const LINK_INT = 1;
const LINK_EXT = 2; const LINK_EXT = 2;
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $phpEx, $phpbb_root_path, $user, $db; global $config, $template, $phpEx, $phpbb_root_path, $user, $db;
@@ -119,7 +119,7 @@ class portal_main_menu_module
return 'main_menu_side.html'; return 'main_menu_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
// do not remove this as it is needed in order to run manage_links // do not remove this as it is needed in order to run manage_links
return array( return array(
@@ -134,7 +134,7 @@ class portal_main_menu_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
global $phpbb_root_path, $phpEx, $db; global $phpbb_root_path, $phpEx, $db;
@@ -223,7 +223,7 @@ class portal_main_menu_module
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;
@@ -244,7 +244,7 @@ class portal_main_menu_module
} }
// Manage the menu links // Manage the menu links
function manage_links($value, $key, $module_id) public function manage_links($value, $key, $module_id)
{ {
global $config, $phpbb_admin_path, $user, $phpEx, $db, $template; global $config, $phpbb_admin_path, $user, $phpEx, $db, $template;
@@ -469,13 +469,13 @@ class portal_main_menu_module
} }
} }
function update_links($key, $module_id) public function update_links($key, $module_id)
{ {
$this->manage_links('', $key, $module_id); $this->manage_links('', $key, $module_id);
} }
// Unserialize links array // Unserialize links array
function utf_unserialize($serial_str) private function utf_unserialize($serial_str)
{ {
$out = preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $serial_str ); $out = preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $serial_str );
return unserialize($out); return unserialize($out);

View File

@@ -28,26 +28,26 @@ class portal_news_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 21; public $columns = 21;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'LATEST_NEWS'; public $name = 'LATEST_NEWS';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = ''; public $image_src = '';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_news_module'; public $language = 'portal_news_module';
function get_template_center($module_id) public function get_template_center($module_id)
{ {
global $config, $template, $db, $user, $auth, $cache, $phpEx, $phpbb_root_path; global $config, $template, $db, $user, $auth, $cache, $phpEx, $phpbb_root_path;
@@ -355,7 +355,7 @@ class portal_news_module
} }
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'ACP_PORTAL_NEWS_SETTINGS', 'title' => 'ACP_PORTAL_NEWS_SETTINGS',
@@ -378,7 +378,7 @@ class portal_news_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_config('board3_news_length_' . $module_id, 250); set_config('board3_news_length_' . $module_id, 250);
set_config('board3_news_forum_' . $module_id, ''); set_config('board3_news_forum_' . $module_id, '');
@@ -393,7 +393,7 @@ class portal_news_module
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;
@@ -415,7 +415,7 @@ class portal_news_module
} }
// Create forum select box // Create forum select box
function select_forums($value, $key, $module_id) public function select_forums($value, $key, $module_id)
{ {
global $user, $config; global $user, $config;
@@ -439,7 +439,7 @@ class portal_news_module
} }
// Store selected forums // Store selected forums
function store_selected_forums($key, $module_id) public function store_selected_forums($key, $module_id)
{ {
global $db, $cache; global $db, $cache;

View File

@@ -28,32 +28,32 @@ class portal_poll_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 31; public $columns = 31;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'PORTAL_POLL'; public $name = 'PORTAL_POLL';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_poll.png'; public $image_src = 'portal_poll.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_poll_module'; public $language = 'portal_poll_module';
/** /**
* custom acp template * custom acp template
* file must be in "adm/style/portal/" * file must be in "adm/style/portal/"
*/ */
var $custom_acp_tpl = ''; public $custom_acp_tpl = '';
function get_template_center($module_id) public function get_template_center($module_id)
{ {
global $config, $template, $db, $user, $auth, $phpbb_root_path, $phpEx; global $config, $template, $db, $user, $auth, $phpbb_root_path, $phpEx;
@@ -430,7 +430,7 @@ class portal_poll_module
return 'poll_center.html'; return 'poll_center.html';
} }
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $db, $user, $auth, $phpbb_root_path, $phpEx; global $config, $template, $db, $user, $auth, $phpbb_root_path, $phpEx;
@@ -807,7 +807,7 @@ class portal_poll_module
return 'poll_side.html'; return 'poll_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'ACP_PORTAL_POLLS_SETTINGS', 'title' => 'ACP_PORTAL_POLLS_SETTINGS',
@@ -825,7 +825,7 @@ class portal_poll_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_config('board3_poll_allow_vote_' . $module_id, 1); set_config('board3_poll_allow_vote_' . $module_id, 1);
set_config('board3_poll_topic_id_' . $module_id, ''); set_config('board3_poll_topic_id_' . $module_id, '');
@@ -835,7 +835,7 @@ class portal_poll_module
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;
@@ -852,7 +852,7 @@ class portal_poll_module
} }
// Create forum select box // Create forum select box
function select_forums($value, $key, $module_id) public function select_forums($value, $key, $module_id)
{ {
global $user, $config; global $user, $config;
@@ -876,7 +876,7 @@ class portal_poll_module
} }
// Store selected forums // Store selected forums
function store_selected_forums($key, $module_id) public function store_selected_forums($key, $module_id)
{ {
global $db, $cache; global $db, $cache;

View File

@@ -28,32 +28,32 @@ class portal_random_member_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'PORTAL_RANDOM_MEMBER'; public $name = 'PORTAL_RANDOM_MEMBER';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_random_member.png'; public $image_src = 'portal_random_member.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_random_member_module'; public $language = 'portal_random_member_module';
/** /**
* custom acp template * custom acp template
* file must be in "adm/style/portal/" * file must be in "adm/style/portal/"
*/ */
var $custom_acp_tpl = ''; public $custom_acp_tpl = '';
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $db, $user; global $config, $template, $db, $user;
@@ -119,7 +119,7 @@ class portal_random_member_module
return 'random_member_side.html'; return 'random_member_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'PORTAL_RANDOM_MEMBER', 'title' => 'PORTAL_RANDOM_MEMBER',
@@ -130,12 +130,12 @@ class portal_random_member_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
return true; return true;
} }

View File

@@ -28,32 +28,32 @@ class portal_recent_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 21; public $columns = 21;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'PORTAL_RECENT'; public $name = 'PORTAL_RECENT';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = ''; public $image_src = '';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_recent_module'; public $language = 'portal_recent_module';
/** /**
* custom acp template * custom acp template
* file must be in "adm/style/portal/" * file must be in "adm/style/portal/"
*/ */
var $custom_acp_tpl = ''; public $custom_acp_tpl = '';
function get_template_center($module_id) public function get_template_center($module_id)
{ {
global $config, $template, $db, $auth, $phpbb_root_path, $phpEx; global $config, $template, $db, $auth, $phpbb_root_path, $phpEx;
@@ -170,7 +170,7 @@ class portal_recent_module
return 'recent_center.html'; return 'recent_center.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'ACP_PORTAL_RECENT_SETTINGS', 'title' => 'ACP_PORTAL_RECENT_SETTINGS',
@@ -187,7 +187,7 @@ class portal_recent_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_config('board3_max_topics_' . $module_id, 10); set_config('board3_max_topics_' . $module_id, 10);
set_config('board3_recent_title_limit_' . $module_id, 100); set_config('board3_recent_title_limit_' . $module_id, 100);
@@ -196,7 +196,7 @@ class portal_recent_module
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;
@@ -212,7 +212,7 @@ class portal_recent_module
} }
// Create forum select box // Create forum select box
function select_forums($value, $key, $module_id) public function select_forums($value, $key, $module_id)
{ {
global $user, $config; global $user, $config;
@@ -236,7 +236,7 @@ class portal_recent_module
} }
// Store selected forums // Store selected forums
function store_selected_forums($key, $module_id) public function store_selected_forums($key, $module_id)
{ {
global $db, $cache; global $db, $cache;

View File

@@ -28,32 +28,32 @@ class portal_search_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'PORTAL_SEARCH'; public $name = 'PORTAL_SEARCH';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_search.png'; public $image_src = 'portal_search.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_search_module'; public $language = 'portal_search_module';
/** /**
* custom acp template * custom acp template
* file must be in "adm/style/portal/" * file must be in "adm/style/portal/"
*/ */
var $custom_acp_tpl = ''; public $custom_acp_tpl = '';
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $template, $phpbb_root_path, $phpEx; global $template, $phpbb_root_path, $phpEx;
@@ -62,7 +62,7 @@ class portal_search_module
return 'search_side.html'; return 'search_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'PORTAL_SEARCH', 'title' => 'PORTAL_SEARCH',
@@ -73,12 +73,12 @@ class portal_search_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
return true; return true;
} }

View File

@@ -28,32 +28,32 @@ class portal_statistics_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'STATISTICS'; public $name = 'STATISTICS';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_statistics.png'; public $image_src = 'portal_statistics.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_statistics_module'; public $language = 'portal_statistics_module';
/** /**
* custom acp template * custom acp template
* file must be in "adm/style/portal/" * file must be in "adm/style/portal/"
*/ */
var $custom_acp_tpl = ''; public $custom_acp_tpl = '';
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $user; global $config, $template, $user;
@@ -139,7 +139,7 @@ class portal_statistics_module
return 'statistics_side.html'; return 'statistics_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'STATISTICS', 'title' => 'STATISTICS',
@@ -150,18 +150,18 @@ class portal_statistics_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
return true; return true;
} }
// Better function with only one query // Better function with only one query
function get_topics_count() public function get_topics_count()
{ {
global $db, $user; global $db, $user;

View File

@@ -28,26 +28,26 @@ class portal_stylechanger_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'BOARD_STYLE'; public $name = 'BOARD_STYLE';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_style.png'; public $image_src = 'portal_style.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_stylechanger_module'; public $language = 'portal_stylechanger_module';
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $db, $phpEx, $phpbb_root_path, $user; global $config, $template, $db, $phpEx, $phpbb_root_path, $user;
@@ -88,7 +88,7 @@ class portal_stylechanger_module
return 'stylechanger_side.html'; return 'stylechanger_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'BOARD_STYLE', 'title' => 'BOARD_STYLE',
@@ -99,12 +99,12 @@ class portal_stylechanger_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
return true; return true;
} }

View File

@@ -28,31 +28,31 @@ class portal_topposters_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'TOPPOSTERS'; public $name = 'TOPPOSTERS';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_top_poster.png'; public $image_src = 'portal_top_poster.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_topposters_module'; public $language = 'portal_topposters_module';
function get_template_center($module_id) public function get_template_center($module_id)
{ {
return false; return false;
} }
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $db, $template; global $config, $db, $template;
global $phpbb_root_path, $phpEx; global $phpbb_root_path, $phpEx;
@@ -78,7 +78,7 @@ class portal_topposters_module
return 'topposters_side.html'; return 'topposters_side.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'TOPPOSTERS_CONFIG', 'title' => 'TOPPOSTERS_CONFIG',
@@ -92,13 +92,13 @@ class portal_topposters_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_config('board3_topposters_' . $module_id, 5); set_config('board3_topposters_' . $module_id, 5);
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;

View File

@@ -28,26 +28,26 @@ class portal_user_menu_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 10; public $columns = 10;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'USER_MENU'; public $name = 'USER_MENU';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = 'portal_user.png'; public $image_src = 'portal_user.png';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_user_menu_module'; public $language = 'portal_user_menu_module';
function get_template_side($module_id) public function get_template_side($module_id)
{ {
global $config, $template, $user, $auth, $db, $phpEx, $phpbb_root_path; global $config, $template, $user, $auth, $db, $phpEx, $phpbb_root_path;
@@ -146,7 +146,7 @@ class portal_user_menu_module
} }
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'USER_MENU', 'title' => 'USER_MENU',
@@ -160,14 +160,14 @@ class portal_user_menu_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_config('board3_user_menu_register_' . $module_id, 1); set_config('board3_user_menu_register_' . $module_id, 1);
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;

View File

@@ -28,32 +28,32 @@ class portal_welcome_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 21; public $columns = 21;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'PORTAL_WELCOME'; public $name = 'PORTAL_WELCOME';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = ''; public $image_src = '';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_welcome_module'; public $language = 'portal_welcome_module';
/** /**
* custom acp template * custom acp template
* file must be in "adm/style/portal/" * file must be in "adm/style/portal/"
*/ */
var $custom_acp_tpl = 'acp_portal_welcome'; public $custom_acp_tpl = 'acp_portal_welcome';
function get_template_center($module_id) public function get_template_center($module_id)
{ {
global $config, $template, $portal_config, $phpEx; global $config, $template, $portal_config, $phpEx;
@@ -70,7 +70,7 @@ class portal_welcome_module
return 'welcome_center.html'; return 'welcome_center.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'ACP_PORTAL_WELCOME_SETTINGS', 'title' => 'ACP_PORTAL_WELCOME_SETTINGS',
@@ -84,7 +84,7 @@ class portal_welcome_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
set_portal_config('board3_welcome_message_' . $module_id, 'Welcome to my Community!'); set_portal_config('board3_welcome_message_' . $module_id, 'Welcome to my Community!');
set_config('board3_welcome_message_' . $module_id, ''); set_config('board3_welcome_message_' . $module_id, '');
@@ -93,7 +93,7 @@ class portal_welcome_module
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
global $db; global $db;
@@ -115,7 +115,7 @@ class portal_welcome_module
return ((!$check) ? $check : $db->sql_query($sql)); // if something went wrong, make sure we are aware of the first query return ((!$check) ? $check : $db->sql_query($sql)); // if something went wrong, make sure we are aware of the first query
} }
function manage_welcome($value, $key, $module_id) public function manage_welcome($value, $key, $module_id)
{ {
global $db, $portal_config, $config, $template, $user, $phpEx, $phpbb_admin_path, $phpbb_root_path; global $db, $portal_config, $config, $template, $user, $phpEx, $phpbb_admin_path, $phpbb_root_path;
@@ -211,7 +211,7 @@ class portal_welcome_module
} }
} }
function update_welcome($key, $module_id) public function update_welcome($key, $module_id)
{ {
$this->manage_welcome('', $key, $module_id); $this->manage_welcome('', $key, $module_id);
} }

View File

@@ -28,32 +28,32 @@ class portal_whois_online_module
* right 8 * right 8
* bottom 16 * bottom 16
*/ */
var $columns = 21; public $columns = 21;
/** /**
* Default modulename * Default modulename
*/ */
var $name = 'PORTAL_WHOIS_ONLINE'; public $name = 'PORTAL_WHOIS_ONLINE';
/** /**
* Default module-image: * Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/" * file must be in "{T_THEME_PATH}/images/portal/"
*/ */
var $image_src = ''; public $image_src = '';
/** /**
* module-language file * module-language file
* file must be in "language/{$user->lang}/mods/portal/" * file must be in "language/{$user->lang}/mods/portal/"
*/ */
var $language = 'portal_whois_online_module'; public $language = 'portal_whois_online_module';
/** /**
* custom acp template * custom acp template
* file must be in "adm/style/portal/" * file must be in "adm/style/portal/"
*/ */
var $custom_acp_tpl = ''; public $custom_acp_tpl = '';
function get_template_center($module_id) public function get_template_center($module_id)
{ {
global $config, $template, $user, $auth, $db, $phpbb_root_path, $phpEx; global $config, $template, $user, $auth, $db, $phpbb_root_path, $phpEx;
@@ -105,7 +105,7 @@ class portal_whois_online_module
return 'whois_online_center.html'; return 'whois_online_center.html';
} }
function get_template_acp($module_id) public function get_template_acp($module_id)
{ {
return array( return array(
'title' => 'PORTAL_WHOIS_ONLINE', 'title' => 'PORTAL_WHOIS_ONLINE',
@@ -116,12 +116,12 @@ class portal_whois_online_module
/** /**
* API functions * API functions
*/ */
function install($module_id) public function install($module_id)
{ {
return true; return true;
} }
function uninstall($module_id) public function uninstall($module_id)
{ {
return true; return true;
} }