Example #1
0
 public function onInstall($dropTable)
 {
     return GWF_ModuleLoader::installVars($this, array('vote_guests' => array(true, 'bool'), 'vote_guests_timeout' => array('1 Day', 'time', 60 * 30, GWF_Time::ONE_YEAR), 'vote_iconlimit' => array('10', 'int', '0', '32'), 'vote_title_min' => array('1', 'int', '1', '16'), 'vote_title_max' => array('255', 'int', '17', '1024'), 'vote_option_min' => array('1', 'int', '1', '16'), 'vote_option_max' => array('255', 'int', '17', '1024'), 'vote_poll_level' => array('0', 'int', '0', PHP_INT_MAX), 'vote_poll_group' => array('moderator', 'text', '0', GWF_Group::NAME_LEN)));
 }
Example #2
0
 public static function onInstall(Module_WeChall $module, $dropTable)
 {
     Module_WeChall::includeForums();
     $module->onStartup();
     return self::installMoreClasses($module, $dropTable) . GWF_ModuleLoader::installVars($module, array('wc_uid' => array('0', 'script'), 'wc_basescore' => array('1000', 'int', '1'), 'wc_score_chall' => array('25', 'int', '0', '1000'), 'wc_ipp' => array('50', 'int', '1', '255'), 'wc_sitename_len' => array('32', 'int', '1', '63'), 'wc_jpgraph' => array('/data/tools/code/JPGraph/jpgraph-3.0.7/src/', 'text', '0', '255'), 'wc_graph_w' => array('640', 'int', '1', '4096'), 'wc_graph_h' => array('480', 'int', '1', '2048'), 'wc_lpt' => array(GWF_Time::ONE_DAY * 14, 'time', '0', GWF_Time::ONE_YEAR), 'wc_sol_board' => array('0', 'script'), 'wc_site_board' => array('0', 'script'), 'wc_chall_board' => array('0', 'script'), 'wc_sitemas_dur' => array('1 week', 'time', GWF_Time::ONE_DAY, GWF_Time::ONE_MONTH), 'wc_active_time' => array('1 day', 'time', 0, GWF_Time::ONE_WEEK), 'wc_warbox_url' => array('warbox.wechall.net', 'text', '5', '255'), 'wc_warbox_port' => array('1336', 'int', '1', '65535'), 'wc_logo_url' => array('/', 'text', '1', '255'))) . self::createForums($module, $dropTable) . self::createDBIMGDIR($module, $dropTable) . self::recalcVotes($module, $dropTable) . self::fixSiteLinkCount($module, $dropTable) . self::fixChallTags($module) . self::fixWeChallUser($module) . self::installSiteWeChall($module) . self::installSiteColors($module);
 }
Example #3
0
 public static function onInstall(Module_GWF $module, $dropTable)
 {
     return GWF_ModuleLoader::installVars($module, array('pagecount_on' => array(true, 'bool'), 'userrec' => array(true, 'bool'), 'userrecc' => array(0, 'script'), 'userrecd' => array('00000000000000', 'script')));
 }
Example #4
0
 public function onInstall($dropTable)
 {
     return GWF_ModuleLoader::installVars($this, array('private' => array(true, 'bool'), 'guest_public' => array(true, 'bool'), 'guest_private' => array(true, 'bool'), 'bbcode' => array(true, 'bool'), 'msg_len' => array('512', 'int', '16', '2048'), 'online_time' => array('20 seconds', 'time', '5', GWF_Time::ONE_DAY * 2), 'message_peak' => array('1 minute', 'time', '5', GWF_Time::ONE_DAY * 2), 'chat_lag_ping' => array('2', 'time', '1', '25'), 'chanmsg_per_page' => array(5, 'int', '1', '255'), 'privmsg_per_page' => array(5, 'int', '1', '255'), 'histmsg_per_page' => array(50, 'int', '1', '255'), 'chat_menu' => array(true, 'bool'), 'chat_submenu' => array(true, 'bool'), 'mibbit' => array(true, 'bool'), 'mibbit_ssl' => array(true, 'bool'), 'mibbit_server' => array('irc.idlemonkeys.net', 'text', 6, 128), 'mibbit_channel' => array('#wechall', 'text', 1, 64), 'mibbit_port' => array('7000', 'int', '1', '65535'), 'gwf_chat' => array(false, 'bool')));
 }
Example #5
0
 public function onInstall($dropTable)
 {
     return GWF_ModuleLoader::installVars($this, array('email_activation' => array(true, 'bool'), 'auto_login' => array(true, 'bool'), 'country_select' => array(false, 'bool'), 'min_age' => array('0', 'int', '0', '42'), 'ip_usetime' => array('1 seconds', 'time', '0', 60 * 60 * 24 * 365), 'force_tos' => array(true, 'bool'), 'captcha' => array(false, 'bool'), 'email_twice' => array(false, 'bool'), 'plaintextpass' => array(false, 'bool'), 'activation_pp' => array('50', 'int', '1', '250'), 'ua_threshold' => array('24 hours', 'time', 60 * 15, 60 * 60 * 24 * 7), 'reg_toslink' => array(GWF_WEB_ROOT . 'tos', 'text', 0, 512), 'reg_detect_country' => array(true, 'bool')));
 }
Example #6
0
 public static function onInstall(Module_Audit $module, $dropTable)
 {
     return GWF_ModuleLoader::installVars($module, array('logfile' => array(Module_Audit::DEFAULT_LOGFILE, 'text'))) . self::createGroups($module, $dropTable) . self::createDirs($module, $dropTable);
 }
Example #7
0
 public static function onInstall(Module_Helpdesk $module, $dropTables)
 {
     return GWF_ModuleLoader::installVars($module, array('maxlen_title' => array('255', 'int', '8', '512'), 'maxlen_message' => array('2048', 'int', '255', '65565')));
 }
Example #8
0
 public function onInstall($dropTable)
 {
     return GWF_ModuleLoader::installVars($this, array('captcha' => array(true, 'bool'), 'captcha_member' => array(false, 'bool'), 'email' => array(GWF_SUPPORT_EMAIL, 'text', '0', GWF_User::EMAIL_LENGTH), 'icq' => array('', 'text', '0', '32'), 'skype' => array('', 'text', '0', '128'), 'maxmsglen' => array('1024', 'int', '16', '8192')));
 }
Example #9
0
 public function onInstall($dropTable)
 {
     return GWF_VersionFiles::populateAll() . GWF_ModuleLoader::installVars($this, array());
 }
Example #10
0
 public static function install(Module_Log $module, $dropTables)
 {
     return GWF_ModuleLoader::installVars($module, array('log_member_ips' => array(true, 'bool')));
 }
Example #11
0
 public function onInstall($dropTable)
 {
     return GWF_ModuleLoader::installVars($this, array('use_email' => array(true, 'bool'), 'show_adult' => array(true, 'bool'), 'adult_age' => array('21', 'int', '12', '40'), 'show_gender' => array(true, 'bool'), 'mail_sender' => array(GWF_BOT_EMAIL, 'text', 0, 128), 'show_avatar' => array(true, 'bool'), 'avatar_min_x' => array('1', 'int', '1', '2048'), 'avatar_max_x' => array('96', 'int', '1', '2048'), 'avatar_min_y' => array('1', 'int', '1', '4096'), 'avatar_max_y' => array('96', 'int', '1', '4096'), 'demo_changetime' => array(GWF_Time::ONE_MONTH * 3, 'time', 0, GWF_TIME::ONE_YEAR * 2), 'show_checkboxes' => array(true, 'bool')));
 }
Example #12
0
 public function onInstall($dropTable)
 {
     return parent::onInstall($dropTable) . GWF_ModuleLoader::installVars($this, array('PAYPAL_VERSION' => array('2.3', 'script'), 'PAYPAL_API_USERNAME' => array('CBusch1980_api1.gmx.de', 'text', 8, 128), 'PAYPAL_API_PASSWORD' => array('ECL83PUVR4CF2LU3', 'text', 16, 16), 'PAYPAL_API_SIGNATURE' => array('An5ns1Kso7MWUdW4ErQKJJJ4qi4-AKKoQTrZVr51cIn6b.aMsI-4t2xg', 'text'), 'PAYPAL_API_ENDPOINT' => array('https://api-3t.sandbox.paypal.com/nvp', 'text'), 'PAYPAL_URL' => array('https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token=', 'text'), 'PAYPAL_USE_PROXY' => array(false, 'bool'), 'PAYPAL_PROXY_HOST' => array('127.0.0.1', 'text'), 'PAYPAL_PROXY_PORT' => array('8080', 'int', 1, 65535)));
 }
Example #13
0
 public static function onInstall(Module_Konzert $module, $dropTables)
 {
     return GWF_ModuleLoader::installVars($module, array()) . self::installDefaultTermine($module);
 }
Example #14
0
 public static function onInstall(Module_PageBuilder $module, $dropTable)
 {
     return GWF_ModuleLoader::installVars($module, array('ipp' => array('10', 'int', '1', '100'), 'home_page' => array('0', 'int', '0', PHP_INT_MAX), 'authors' => array('admin,moderator,publisher', 'text', '0', '1024'), 'author_level' => array('0', 'int', '0', '10000000'), 'locked_posting' => array(false, 'bool'))) . self::installDirs($module, $dropTable) . self::protectDirs($module);
 }
Example #15
0
 public static function install(Module_Slaytags $module, $dropTables)
 {
     return GWF_ModuleLoader::installVars($module, array('slay_time_off' => array('0', 'int', '-172800', '172800'))) . self::defaultTags($module, $dropTables);
 }
Example #16
0
 public static function install(Module_PM $module, $dropTable)
 {
     return GWF_ModuleLoader::installVars($module, array('pm_re' => array('RE: ', 'text', '1', '64'), 'pm_limit' => array('6', 'int', '-1', '100'), 'pm_limit_timeout' => array('18 hours', 'time', '0', GWF_Time::ONE_WEEK), 'pm_maxfolders' => array('50', 'int', '0', '256'), 'pm_for_guests' => array(true, 'bool'), 'pm_captcha' => array(true, 'bool'), 'pm_causes_mail' => array(true, 'bool'), 'pm_mail_sender' => array(GWF_BOT_EMAIL, 'text', '8', 255), 'pm_bot_uid' => array('0', 'int', '0', '2199999999'), 'pm_per_page' => array('25', 'int', 1, 255), 'pm_sent' => array('0', 'script'), 'pm_welcome' => array(true, 'bool'), 'pm_sig_len' => array('255', 'int', 0, '65535'), 'pm_msg_len' => array('2048', 'int', 1, '65535'), 'pm_fname_len' => array(GWF_User::USERNAME_LENGTH + 4, 'int', GWF_User::USERNAME_LENGTH, '96'), 'pm_title_len' => array('64', 'int', 1, '1024'), 'pm_delete' => array(true, 'bool'), 'pm_own_bot' => array(false, 'bool'), 'pm_limit_per_level' => array('0', 'int', 0, 1000000))) . self::installFolders($module) . self::installPMBotID($module) . self::fixDatabase($module);
 }
Example #17
0
 public function onInstall($dropTable)
 {
     return GWF_ModuleLoader::installVars($this, array('captcha' => array(false, 'bool'), 'mail_sender' => array(GWF_SUPPORT_EMAIL, 'text', '6', '128')));
 }
Example #18
0
 public static function onInstall(Module_Usergroups $module, $dropTable)
 {
     return GWF_ModuleLoader::installVars($module, array('ug_level' => array('0', 'int', '0'), 'ug_minlen' => array('3', 'int', '2', '12'), 'ug_maxlen' => array('32', 'int', '12', '48'), 'ug_ipp' => array('25', 'int', '1', '500'), 'ug_ax' => array('5', 'int', '1', '32'), 'ug_ay' => array('5', 'int', '1', '32'), 'ug_menu' => array(true, 'bool'), 'ug_submenu' => array(true, 'bool'), 'ug_submenugroup' => array('members', 'text', 0, GWF_Group::NAME_LEN), 'ug_lvl_per_grp' => array('0', 'int', '0'), 'ug_grp_per_usr' => array('1', 'int', '1')));
     //		self::installBoard($module, $dropTable);
 }
Example #19
0
 public static function onInstall(Module_Comments $module, $dropTable)
 {
     return GWF_ModuleLoader::installVars($module, array('moderated' => array(true, 'bool'), 'guest_captcha' => array(true, 'bool'), 'member_captcha' => array(false, 'bool'), 'max_msg_len' => array('2048', 'int', '128', '65535')));
 }
Example #20
0
 public static function onInstall(Module_GWF $module, $dropTables)
 {
     return GWF_ModuleLoader::installVars($module, array('FancyIndex' => array(false, 'bool'), 'NameWidth' => array('25', 'int'), 'DescrWidth' => array('80', 'int'), 'IconWidth' => array('16', 'int'), 'IconHeight' => array('16', 'int'), 'HTMLTable' => array(false, 'bool'), 'IgnoreClient' => array(false, 'bool'), 'FoldersFirst' => array(true, 'bool'), 'IgnoreCase' => array(true, 'bool'), 'SuppressHTMLPreamble' => array(true, 'bool'), 'ScanHTMLTitles' => array(true, 'bool'), 'SuppressDescription' => array(true, 'bool'), 'SuppressRules' => array(true, 'bool'), 'log' => array('404,403', 'text'), 'mail' => array('404,403', 'text'), 'CaptchaBGColor' => array('FFFFFF', 'text'), 'CaptchaFont' => array(GWF_PATH . 'extra/font/teen.ttf', 'text'), 'CaptchaWidth' => array('210', 'int'), 'CaptchaHeight' => array('42', 'int'), 'allow_all_requests' => array(false, 'bool'), 'blacklist' => array('me=ShowError;favicon.ico[^$]', 'text')));
 }
Example #21
0
 public function onInstall($dropTable)
 {
     return GWF_ModuleLoader::installVars($this, array('captcha' => array(false, 'bool'), 'max_tries' => array('6', 'int', '1', '100'), 'try_exceed' => array('600', 'time', '0', 60 * 60 * 24), 'lf_cleanup_t' => array('1 month', 'time', '0', 60 * 60 * 24 * 365 * 8), 'lf_cleanup_i' => array(true, 'bool'), 'send_alerts' => array(true, 'bool')));
 }
Example #22
0
 public function onInstall($dropTable)
 {
     return GWF_ModuleLoader::installVars($this, array('ptmpw' => array('TheChosenPass', 'text', '0', '32')));
 }
Example #23
0
 public function onInstall($dropTable)
 {
     return GWF_ModuleLoader::installVars($this, array('sb_guests' => array(true, 'bool'), 'sb_guest_captcha' => array(false, 'bool'), 'sb_member_captcha' => array(false, 'bool'), 'sb_ipp' => array('25', 'int', 1, 512), 'sb_ippbox' => array('6', 'int', 1, 64), 'sb_maxlen' => array('196', 'int', 16, 1024), 'sb_timeout' => array('60', 'time', 0, GWF_Time::ONE_DAY * 2), 'sb_maxdayu' => array('12', 'int', 1, 1024), 'sb_maxdayg' => array('6', 'int', 1, 1024), 'sb_email_moderation' => array(true, 'bool')));
 }
Example #24
0
 public static function onInstall(Module_Heart $module, $dropTables)
 {
     return GWF_ModuleLoader::installVars($module, array('hb_pagecount' => array('0', 'script'), 'hb_userrecord' => array('0', 'script'), 'hb_recorddate' => array('00000000000000', 'script')));
 }
Example #25
0
 public static function install(Module_Download $module, $dropTable)
 {
     return GWF_ModuleLoader::installVars($module, array('anon_upload' => array(false, 'bool'), 'anon_downld' => array(true, 'bool'), 'user_upload' => array(true, 'bool'), 'dl_descr_min' => array('0', 'int', 0, 16), 'dl_descr_max' => array('512', 'int', 16, 65535), 'dl_ipp' => array('50', 'int', 1, 512), 'dl_minvote' => array('1', 'int', 0, 3), 'dl_maxvote' => array('5', 'int', 3, 100), 'dl_gvotes' => array(false, 'bool'), 'dl_gcaptcha' => array(true, 'bool'), 'dl_moderators' => array('moderator', 'text', 0, 63), 'dl_moderated' => array(true, 'bool'), 'dl_min_level' => array('0', 'int', 0, 1000000))) . self::dropVotes($module, $dropTable) . self::installDlDirs($module, $dropTable);
 }
Example #26
0
 public static function onInstall(Module_Links $module, $dropTable)
 {
     return GWF_ModuleLoader::installVars($module, array('link_long_descr' => array(false, 'bool'), 'link_guests' => array(true, 'bool'), 'link_guests_mod' => array(true, 'bool'), 'link_guests_votes' => array(false, 'bool'), 'link_guests_captcha' => array(true, 'bool'), 'link_guests_unread' => array('7 days', 'time', '0', GWF_Time::ONE_YEAR), 'link_per_page' => array('50', 'int', '1', '512'), 'link_min_level' => array('0', 'int', '0'), 'link_tag_min_level' => array('0', 'int', '0'), 'link_cost' => array('0', 'int', '0'), 'link_max_tag_len' => array('32', 'int', '8'), 'link_max_url_len' => array('255', 'int', '32'), 'link_min_descr_len' => array('8', 'int', '0', '32'), 'link_max_descr_len' => array('255', 'int', '32'), 'link_min_descr2_len' => array('0', 'int', '0', '32'), 'link_max_descr2_len' => array('512', 'int', '32'), 'link_vote_min' => array('1', 'int', '-100', '100'), 'link_vote_max' => array('5', 'int', '-100', '100'), 'show_permitted' => array(true, 'bool'), 'link_check_int' => array('0', 'time', '0'), 'link_check_amt' => array('5', 'int', '1', '200')));
 }
Example #27
0
 public static function install(Module_Payment $module, $dropTable)
 {
     return GWF_ModuleLoader::installVars($module, array('donations' => array(true, 'bool'), 'currency' => array('EUR', 'text'), 'currencies' => array('EUR:USD', 'script'), 'global_fee_buy' => array('4.00', 'float', '-50', '50'), 'global_fee_sell' => array('8.00', 'float', '-50', '50'), 'orders_per_page' => array('50', 'int', '1', '500'))) . self::installCurrencies($module, $dropTable);
 }
Example #28
0
 public function onInstall($dropTable)
 {
     return GWF_ModuleLoader::installVars($this, array('fee_buy' => array('1.00', 'float', '-50', '50'), 'fee_sell' => array('2.00', 'float', '-50', '50')));
 }
Example #29
0
 public static function onInstall(Module_Forum $module, $dropTable)
 {
     return GWF_ModuleLoader::installVars($module, array('posts_per_thread' => array('10', 'int', '1', '255'), 'threads_per_page' => array('20', 'int', '1', '255'), 'num_latest_threads' => array('8', 'int', '0', '255'), 'max_title_len' => array('128', 'int', '16', '255'), 'max_descr_len' => array('255', 'int', '16', '512'), 'max_message_len' => array('16384', 'int', '16', '65535'), 'max_sig_len' => array('512', 'int', '16', '1024'), 'guest_posts' => array(false, 'bool'), 'guest_captcha' => array(true, 'bool'), 'mod_guest_time' => array('1 day', 'time', '0', GWF_Time::ONE_MONTH), 'search' => array(true, 'bool'), 'mod_sender' => array(GWF_BOT_EMAIL, 'text', '4', GWF_User::EMAIL_LENGTH), 'mod_receiver' => array(GWF_SUPPORT_EMAIL, 'text', '4', GWF_User::EMAIL_LENGTH), 'unread' => array(true, 'bool'), 'gtranslate' => array(true, 'bool'), 'thanks' => array(true, 'bool'), 'votes' => array(true, 'bool'), 'uploads' => array(true, 'bool'), 'watch_timeout' => array('300 seconds', 'time', '0', GWF_Time::ONE_HOUR), 'postcount' => array('0', 'script'), 'doublepost' => array(true, 'bool'), 'lang_boards' => array(false, 'bool'), 'post_timeout' => array('0', 'time', 0, '172800'), 'post_min_level' => array('0', 'int', 0, '1000000'), 'gwf2_rewrites' => array(false, 'bool'))) . self::installForumDefaults($module);
 }
Example #30
0
 public static function onInstall(Module_Admin $module, $dropTables)
 {
     return GWF_ModuleLoader::installVars($module, array('users_per_page' => array('50', 'int', '1', '500'), 'super_hash' => array('', 'script'), 'super_time' => array('10 minutes', 'time', 30, 7200), 'install_webspiders' => array(false, 'bool'), 'hide_web_spiders' => array(false, 'bool'))) . self::installCoreClasses($module) . self::installWebspiders($module, $dropTables);
 }