コード例 #1
0
ファイル: Presse.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/thumbnails.js');
     GWF_Website::addJavascriptOnload('konzInitPresse();');
     $this->module->setNextHREF(GWF_WEB_ROOT . 'hoehrproben.html');
     return $this->templatePresse();
 }
コード例 #2
0
ファイル: Ensemble.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/color.js');
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/ghostwriter.js');
     GWF_Website::addJavascriptOnload('initGhostwriter();');
     $this->module->setNextHREF(GWF_WEB_ROOT . 'presseberichte.html');
     return $this->templateEnsemble();
 }
コード例 #3
0
ファイル: Repertoire.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/color.js');
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/ghostwriter.js');
     GWF_Website::addJavascriptOnload('initRepertoireSlideshow(); initGhostwriter();');
     $this->module->setNextHREF(GWF_WEB_ROOT . 'arrangements.html');
     return $this->templateRepertoire();
 }
コード例 #4
0
ファイル: Module_Konzert.php プロジェクト: sinfocol/gwf3
 public function onStartup()
 {
     $this->onLoadLanguage();
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'tpl/konz/js/konzert.js?v=5');
     GWF_Website::addJavascriptOnload('initKonzert();');
     GWF_Website::setMetaTags($this->lang('meta_tags'));
     GWF_Website::setMetaDescr($this->lang('meta_descr'));
 }
コード例 #5
0
ファイル: Exklusiv.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/color.js');
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/ghostwriter.js');
     GWF_Website::addJavascriptOnload('initGhostwriter();');
     $this->module->setNextHREF(GWF_WEB_ROOT . 'kontakt.html');
     return $this->templateExklusiv();
 }
コード例 #6
0
ファイル: AboutMelanie.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/color.js');
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/ghostwriter.js');
     GWF_Website::addJavascriptOnload('initGhostwriter(); initAboutSlideshow();');
     $this->module->setNextHREF(GWF_WEB_ROOT . 'biography.html');
     return $this->templateAbout();
 }
コード例 #7
0
ファイル: Replay.php プロジェクト: sinfocol/gwf3
 public function templateReplay(GWF_AuditLog $log)
 {
     GWF_Website::addJavascriptInline('var al_script=' . $log->getAjaxScript() . ';');
     GWF_Website::addJavascriptInline('var al_times=' . $log->getAjaxTimes() . ';');
     GWF_Website::addJavascriptOnload('alReplay();');
     $tVars = array('log' => $log);
     return $this->module->template('replay.tpl', $tVars);
 }
コード例 #8
0
ファイル: Intro.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/color.js');
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/ghostwriter.js');
     GWF_Website::addJavascriptOnload('initGhostwriter();');
     GWF_Website::setPageTitle($this->module->lang('page_title'));
     $this->module->setNextHREF(GWF_WEB_ROOT . 'melanie_gobbo.html');
     return $this->templateIntro();
 }
コード例 #9
0
ファイル: Main.php プロジェクト: sinfocol/gwf3
 private function templateMain()
 {
     $left = Slay_PNow::getTimeLeft();
     $now = Slay_PNow::getNowPlaying($this->module);
     // 		var_dump($left);
     GWF_Website::addJavascriptOnload("slayInitRedirect(" . max($left + 2, 5) . ");");
     $tVars = array('href_history' => $this->module->getMethodURL('History', '&page=' . Slay_PlayHistory::getNumPages()), 'history' => Slay_PlayHistory::getLastPlayed(1), 'now' => $now, 'left' => $left);
     return $this->module->template('main.tpl', $tVars);
 }
コード例 #10
0
ファイル: FAQ.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     $back = '';
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/module/Helpdesk/helpdesk.js');
     GWF_Website::addJavascriptOnload('helpdeskInit();');
     if (Common::getGetString('generate') === 'now') {
         $back .= $this->onGenerate();
     }
     return $back . $this->templateFAQ();
 }
コード例 #11
0
ファイル: Module_Heart.php プロジェクト: sinfocol/gwf3
 public function onStartup()
 {
     $ms = (string) ((GWF_ONLINE_TIMEOUT / 2 - 1) * 1000);
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/module/Heart/hb.js');
     GWF_Website::addJavascriptOnload(sprintf('setTimeout("gwf_heartbeat(%s);", %s);', $ms, $ms));
     $cut = time() - GWF_ONLINE_TIMEOUT;
     $spider = GWF_User::WEBSPIDER;
     $online = GDO::table('GWF_User')->selectVar('COUNT(*)', "user_lastactivity>{$cut} AND user_options&{$spider}=0");
     if ($online > $this->cfgUserrecordCount()) {
         $this->saveModuleVar('hb_userrecord', $online);
         $this->saveModuleVar('hb_recorddate', GWF_Time::getDate(14));
     }
     $pc = $this->cfgPagecount();
     $this->saveModuleVar('hb_pagecount', $pc + 1);
 }
コード例 #12
0
ファイル: Module_Slaytags.php プロジェクト: sinfocol/gwf3
 public function onStartup()
 {
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'tpl/slay/js/slay.js');
     GWF_Website::addJavascriptOnload('slayInit();');
 }
コード例 #13
0
ファイル: Termine.php プロジェクト: sinfocol/gwf3
 public function execute()
 {
     GWF_Website::addJavascriptOnload('konzertInitTermine();');
     $this->module->setNextHREF(GWF_WEB_ROOT . 'ensemble.html');
     return $this->templateTermine();
 }
コード例 #14
0
ファイル: Module_WeChall.php プロジェクト: sinfocol/gwf3
 public function onStartup()
 {
     self::$instance = $this;
     // Register login hook
     GWF_Hook::add(GWF_HOOK::LOGIN_PRE, array(__CLASS__, 'hookLoginPre'));
     GWF_Hook::add(GWF_HOOK::LOGIN_AFTER, array(__CLASS__, 'hookLoginAfter'));
     GWF_Hook::add(GWF_HOOK::VOTED_SCORE, array(__CLASS__, 'hookVoteScore'));
     GWF_Hook::add(GWF_HOOK::ACTIVATE, array(__CLASS__, 'hookRegister'));
     GWF_Hook::add(GWF_HOOK::CHANGE_PASSWD, array(__CLASS__, 'hookChangePass'));
     GWF_Hook::add(GWF_HOOK::DELETE_USER, array(__CLASS__, 'hookDeleteUser'));
     GWF_Hook::add(GWF_HOOK::CHANGE_UNAME, array(__CLASS__, 'hookDeleteUser'));
     $this->onLoadLanguage();
     if (Common::getGet('mo') !== 'WeChall') {
         $this->onInclude();
     }
     GWF_Website::addJavascriptOnload('wcjsInit();');
     GWF_Website::setPageTitlePre('[WeChall] ');
     GWF_Website::setMetaTags(WC_HTML::lang('mt_wechall'));
     GWF_Website::setMetaDescr(WC_HTML::lang('md_wechall'));
     GWF_Website::addJavascript('/js/module/WeChall/wc.js?v=5.1');
 }
コード例 #15
0
ファイル: Stats.php プロジェクト: sinfocol/gwf3
 private function templateStats()
 {
     if (false !== ($errors = $this->validate())) {
         return $errors;
     }
     $this->setPageTitles();
     GWF_Website::addJavascriptOnload('wcjsStatsJQuery();');
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jquery-ui-1.8.5.custom.min.js');
     GWF_Website::addCSS(GWF_WEB_ROOT . 'tpl/wc4/css/ui-lightness/jquery-ui-1.8.5.custom.css');
     if ($this->user1 === false) {
         $form_action = GWF_WEB_ROOT . 'stats';
     } else {
         $form_action = GWF_WEB_ROOT . 'stats/' . $this->user1->urlencode('user_name');
     }
     $tVars = array('user1' => $this->user1, 'user2' => $this->user2, 'form_action' => $form_action, 'sites' => $this->getSites(), 'img_src' => $this->getImgSrc(), 'img_alt' => $this->getImgTitle(), 'icons' => isset($_POST['icons']), 'values' => isset($_POST['values']), 'zoom' => isset($_POST['zoom']), 'months' => $this->months === 0 ? '' : $this->months);
     return $this->module->templatePHP('stats.php', $tVars);
 }
コード例 #16
0
ファイル: GWF_Javascript.php プロジェクト: sinfocol/gwf3
 /**
  * Focus an element onload.
  * @see focusElementByID
  * @param string $name
  * @return void
  */
 public static function focusElementByName($name)
 {
     static $called = false;
     if (!$called) {
         $focus_script = "var e = document.getElementsByName('{$name}'); if (e.length === 1) { e[0].focus(); };";
         GWF_Website::addJavascriptOnload($focus_script);
         $called = true;
     }
 }