예제 #1
0
파일: calendar.php 프로젝트: 0hyeah/yurivn
 $calrules['allowsmilies'] = $calendarinfo['allowsmilies'];
 $bbcodeon = !empty($calrules['allowbbcode']) ? $vbphrase['on'] : $vbphrase['off'];
 $imgcodeon = !empty($calrules['allowimages']) ? $vbphrase['on'] : $vbphrase['off'];
 $videocodeon = !empty($calrules['allowvideos']) ? $vbphrase['on'] : $vbphrase['off'];
 $htmlcodeon = !empty($calrules['allowhtml']) ? $vbphrase['on'] : $vbphrase['off'];
 $smilieson = !empty($calrules['allowsmilies']) ? $vbphrase['on'] : $vbphrase['off'];
 // only show posting code allowances in forum rules template
 $show['codeonly'] = true;
 require_once DIR . '/includes/functions_bigthree.php';
 construct_forum_rules($calrules, $permissions);
 $usernamecode = vB_Template::create('newpost_usernamecode')->render();
 if (($pos = strpos($vbulletin->options['timeformat'], 'H')) !== false) {
     $show['24hour'] = true;
 }
 $user_from_time = fetch_time_options('', $show['24hour']);
 $user_to_time = fetch_time_options('', $show['24hour']);
 $passedday = false;
 // did a day value get passed in?
 if ($vbulletin->GPC['day'] != '') {
     $daybits = explode('-', $vbulletin->GPC['day']);
     foreach ($daybits as $key => $val) {
         $daybits["{$key}"] = intval($val);
     }
     if (checkdate($daybits[1], $daybits[2], $daybits[0])) {
         $to_day = $from_day = $daybits[2];
         $to_monthselected["{$daybits['1']}"] = $from_monthselected["{$daybits['1']}"] = 'selected="selected"';
         $to_yearselected["{$daybits['0']}"] = $from_yearselected["{$daybits['0']}"] = 'selected="selected"';
         $passedday = true;
     }
 }
 if (!$passedday) {
예제 #2
0
파일: calendar.php 프로젝트: holandacz/nb4
 $calrules['allowhtml'] = $calendarinfo['allowhtml'];
 $calrules['allowsmilies'] = $calendarinfo['allowsmilies'];
 $bbcodeon = !empty($calrules['allowbbcode']) ? $vbphrase['on'] : $vbphrase['off'];
 $imgcodeon = !empty($calrules['allowimages']) ? $vbphrase['on'] : $vbphrase['off'];
 $htmlcodeon = !empty($calrules['allowhtml']) ? $vbphrase['on'] : $vbphrase['off'];
 $smilieson = !empty($calrules['allowsmilies']) ? $vbphrase['on'] : $vbphrase['off'];
 // only show posting code allowances in forum rules template
 $show['codeonly'] = true;
 require_once DIR . '/includes/functions_bigthree.php';
 construct_forum_rules($calrules, $permissions);
 eval('$usernamecode = "' . fetch_template('newpost_usernamecode') . '";');
 if (($pos = strpos($vbulletin->options['timeformat'], 'H')) !== false) {
     $show['24hour'] = true;
 }
 $fromtimeoptions = fetch_time_options('', $show['24hour'], $user_from_time);
 $totimeoptions = fetch_time_options('', $show['24hour'], $user_to_time);
 $passedday = false;
 // did a day value get passed in?
 if ($vbulletin->GPC['day'] != '') {
     $daybits = explode('-', $vbulletin->GPC['day']);
     foreach ($daybits as $key => $val) {
         $daybits["{$key}"] = intval($val);
     }
     if (checkdate($daybits[1], $daybits[2], $daybits[0])) {
         $to_day = $from_day = $daybits[2];
         $to_monthselected["{$daybits['1']}"] = $from_monthselected["{$daybits['1']}"] = 'selected="selected"';
         $to_yearselected["{$daybits['0']}"] = $from_yearselected["{$daybits['0']}"] = 'selected="selected"';
         $passedday = true;
     }
 }
 if (!$passedday) {