Пример #1
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);
 }