本文整理汇总了PHP中TikiLib::make_time方法的典型用法代码示例。如果您正苦于以下问题:PHP TikiLib::make_time方法的具体用法?PHP TikiLib::make_time怎么用?PHP TikiLib::make_time使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TikiLib
的用法示例。
在下文中一共展示了TikiLib::make_time方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testNext
function testNext()
{
$calendarlib = TikiLib::lib('calendar');
$date = TikiLib::make_time(0, 0, 0, 8, 31, 2010);
$previous = $calendarlib->focusNext($calendarlib->infoDate($date), 'month');
$this->assertEquals('2010-09-30', TikiLib::date_format('%Y-%m-%d', $previous['date']));
}
示例2: period2dates
/**
* Transform a last period to a 2 dates
*
*/
public function period2dates($when)
{
global $prefs;
$tikilib = TikiLib::lib('tiki');
$now = $tikilib->now;
$sec = TikiLib::date_format("%s", $now);
$min = TikiLib::date_format("%i", $now);
$hour = TikiLib::date_format("%H", $now);
$day = TikiLib::date_format("%d", $now);
$month = TikiLib::date_format("%m", $now);
$year = TikiLib::date_format("%Y", $now);
switch ($when) {
case 'lasthour':
$begin = $now - 60 * 60;
break;
case 'day':
$begin = TikiLib::make_time(0, 0, 0, $month, $day, $year);
break;
case 'lastday':
$begin = Tikilib::make_time($hour - 24, $min, $sec, $month, $day, $year);
break;
case 'week':
$iweek = TikiLib::date_format("%w", $now);
// 0 for Sunday...
$calendarlib = TikiLib::lib('calendar');
$firstDayofWeek = $calendarlib->firstDayofWeek();
$iweek -= $firstDayofWeek;
if ($iweek < 0) {
$iweek += 7;
}
$begin = TikiLib::make_time(0, 0, 0, $month, $day - $iweek, $year);
break;
case 'lastweek':
$begin = Tikilib::make_time($hour, $min, $sec, $month, $day - 7, $year);
break;
case 'month':
$begin = TikiLib::make_time(0, 0, 0, $month, 1, $year);
break;
case 'lastmonth':
$begin = TikiLib::make_time($hour, $min, $sec, $month - 1, $day, $year);
break;
case 'year':
$begin = TikiLib::make_time(0, 0, 0, 1, 1, $year);
break;
case 'lastyear':
$begin = TikiLib::make_time($hour, $min, $sec, $month, $day, $year - 1);
break;
default:
$begin = $now;
break;
}
return array((int) $begin, (int) $now);
}
示例3: period2dates
/**
* Transform a last period to a 2 dates
*
*/
function period2dates($when)
{
global $tikilib, $prefs;
$now = $tikilib->now;
$sec = TikiLib::date_format("%s", $now);
$min = TikiLib::date_format("%i", $now);
$hour = TikiLib::date_format("%H", $now);
$day = TikiLib::date_format("%d", $now);
$month = TikiLib::date_format("%m", $now);
$year = TikiLib::date_format("%Y", $now);
switch ($when) {
case 'lasthour':
$begin = $now - 60 * 60;
break;
case 'day':
$begin = TikiLib::make_time(0, 0, 0, $month, $day, $year);
break;
case 'lastday':
$begin = Tikilib::make_time($hour - 24, $min, $sec, $month, $day, $year);
break;
case 'week':
$iweek = TikiLib::date_format("%w", $now);
// 0 for Sunday...
if ($prefs['calendar_firstDayofWeek'] == 'user') {
$firstDayofWeek = (int) tra('First day of week: Sunday (its ID is 0) - translators you need to localize this string!');
if ($firstDayofWeek < 1 || $firstDayofWeek > 6) {
$firstDayofWeek = 0;
}
} else {
$firstDayofWeek = $prefs['calendar_firstDayofWeek'];
}
$iweek -= $firstDayofWeek;
if ($iweek < 0) {
$iweek += 7;
}
$begin = TikiLib::make_time(0, 0, 0, $month, $day - $iweek, $year);
break;
case 'lastweek':
$begin = Tikilib::make_time($hour, $min, $sec, $month, $day - 7, $year);
break;
case 'month':
$begin = TikiLib::make_time(0, 0, 0, $month, 1, $year);
break;
case 'lastmonth':
$begin = TikiLib::make_time($hour, $min, $sec, $month - 1, $day, $year);
break;
case 'year':
$begin = TikiLib::make_time(0, 0, 0, 1, 1, $year);
break;
case 'lastyear':
$begin = TikiLib::make_time($hour, $min, $sec, $month, $day, $year - 1);
break;
default:
$begin = $now;
break;
}
return array((int) $begin, (int) $now);
}
示例4: check_ticket
$smarty->assign('publishDate', $tikilib->now);
//Use 12- or 24-hour clock for $publishDate time selector based on admin and user preferences
$userprefslib = TikiLib::lib('userprefs');
$smarty->assign('use_24hr_clock', $userprefslib->get_user_clock_pref($user));
$smarty->assign('actual', '');
if (isset($_REQUEST["save"])) {
check_ticket('edit-programmed-content');
if ($_REQUEST['content_type'] == 'page') {
$content = 'page:' . $_REQUEST['page_name'];
} else {
$content = $_REQUEST['data'];
}
if (!empty($_REQUEST['Time_Meridian'])) {
$_REQUEST['Time_Hour'] = date('H', strtotime($_REQUEST['Time_Hour'] . ':00 ' . $_REQUEST['Time_Meridian']));
}
$publishDate = TikiLib::make_time($_REQUEST["Time_Hour"], $_REQUEST["Time_Minute"], 0, $_REQUEST["Date_Month"], $_REQUEST["Date_Day"], $_REQUEST["Date_Year"]);
$id = $dcslib->replace_programmed_content($_REQUEST["pId"], $_REQUEST["contentId"], $publishDate, $content, $_REQUEST['content_type']);
$smarty->assign('data', $_REQUEST["data"]);
$smarty->assign('publishDate', $publishDate);
$smarty->assign('pId', $id);
$_REQUEST['edit'] = $id;
}
if (isset($_REQUEST["edit"])) {
$info = $dcslib->get_programmed_content($_REQUEST["edit"]);
$actual = $dcslib->get_actual_content_date($_REQUEST["contentId"]);
$smarty->assign('info', $info);
$smarty->assign('actual', $actual);
$smarty->assign('data', $info["data"]);
$smarty->assign('publishDate', $info["publishDate"]);
$smarty->assign('pId', $info["pId"]);
}
示例5: quiz_data_load
/**
* @return array
*/
function quiz_data_load()
{
global $_REQUEST;
$quiz_data = array();
foreach ($_REQUEST as $key => $val) {
if (preg_match("/^quiz_/", $key)) {
$k = preg_replace("/^quiz_([.]*)/", "\$1", $key);
$quiz_data[$k] = $val;
}
}
if ($quiz_data["online"] == "online") {
$quiz_data["online"] = "y";
} else {
if ($quiz_data["online"] == "offline") {
$quiz_data["online"] = "n";
}
}
//Convert 12-hour clock hours to 24-hour scale to compute time
if (!empty($_REQUEST['publish_Meridian'])) {
$_REQUEST['publish_Hour'] = date('H', strtotime($_REQUEST['publish_Hour'] . ':00 ' . $_REQUEST['publish_Meridian']));
}
if (!empty($_REQUEST['expire_Meridian'])) {
$_REQUEST['expire_Hour'] = date('H', strtotime($_REQUEST['expire_Hour'] . ':00 ' . $_REQUEST['expire_Meridian']));
}
$quiz_data["datePub"] = TikiLib::make_time($quiz_data["publish_Hour"], $quiz_data["publish_Minute"], 0, $quiz_data["publish_Month"], $quiz_data["publish_Day"], $quiz_data["publish_Year"]);
$quiz_data["dateExp"] = TikiLib::make_time($quiz_data["expire_Hour"], $quiz_data["expire_Minute"], 0, $quiz_data["expire_Month"], $quiz_data["expire_Day"], $quiz_data["expire_Year"]);
$fields = array('nQuestion', 'shuffleAnswers', 'shuffleQuestions', 'multiSession', 'additionalQuestions', 'limitDisplay', 'timeLimited', 'canRepeat', 'additionalQuestions', 'forum');
foreach ($fields as $field) {
fetchYNOption($quiz_data, $quiz_data, $field);
}
return $quiz_data;
}
示例6: getTableViewCells
/**
* @param $start
* @param $startNext
* @param string $view
* @param int $firstWeekDay
* @return array
*/
function getTableViewCells($start, $startNext, $view = 'month', $firstWeekDay = 0)
{
// start of the view
$viewStart = $start;
$nbBackDays = $start['weekDay'] < $firstWeekDay ? 6 : $start['weekDay'] - $firstWeekDay;
if ($nbBackDays == 0) {
$viewStart['daysInMonth'] = Date_Calc::daysInMonth($viewStart['month'], $viewStart['year']);
} elseif ($start['day'] - $nbBackDays < 0) {
$viewStart['month'] = $start['month'] == 1 ? 12 : $start['month'] - 1;
$viewStart['year'] = $start['month'] == 1 ? $start['year'] - 1 : $start['year'];
$viewStart['daysInMonth'] = Date_Calc::daysInMonth($viewStart['month'], $viewStart['year']);
$viewStart['day'] = $viewStart['daysInMonth'] - $nbBackDays + 1;
$viewStart['date'] = TikiLib::make_time(0, 0, 0, $viewStart['month'], $viewStart['day'], $viewStart['year']);
} else {
$viewStart['daysInMonth'] = Date_Calc::daysInMonth($viewStart['month'], $viewStart['year']);
$viewStart['day'] = $viewStart['day'] - $nbBackDays;
$viewStart['date'] = TikiLib::make_time(0, 0, 0, $viewStart['month'], $viewStart['day'], $viewStart['year']);
}
// echo '<br/>VIEWSTART'; print_r($viewStart);
// end of the period
$cell = array();
for ($ilign = 0, $icol = 0, $loop = $viewStart, $weekDay = $viewStart['weekDay'];;) {
if ($loop['date'] >= $startNext['date'] && $icol == 0) {
break;
}
$cell[$ilign][$icol] = $loop;
$cell[$ilign][$icol]['focus'] = $loop['date'] < $start['date'] || $loop['date'] >= $startNext['date'] ? false : true;
$cell[$ilign][$icol]['weekDay'] = $weekDay;
$weekDay = ($weekDay + 1) % 7;
if ($icol >= 6) {
++$ilign;
$icol = 0;
} else {
++$icol;
}
if ($loop['day'] >= $loop['daysInMonth']) {
$loop['day'] = 1;
if ($loop['month'] == 12) {
$loop['month'] = 1;
$loop['year'] += 1;
} else {
$loop['month'] += 1;
}
$loop['daysInMonth'] = Date_Calc::daysInMonth($loop['month'], $loop['year']);
} else {
$loop['day'] = $loop['day'] + 1;
}
$loop['date'] = TikiLib::make_time(0, 0, 0, $loop['month'], $loop['day'], $loop['year']);
}
//echo '<pre>CELL'; print_r($cell); echo '</pre>';
return $cell;
}
示例7: wikiplugin_trackerlist
//.........这里部分代码省略.........
$items['data'][$i]['over'] = $smarty->fetch('tracker_pretty_item.tpl');
}
if (!empty($tplwiki)) {
$smarty->assign('fields', $item['field_values']);
$smarty->assign('item', $item);
$smarty->assign('wiki', "tplwiki:$tplwiki");
$smarty->assign('showpopup', 'n');
$items['data'][$i]['over'] = $smarty->fetch('tracker_pretty_item.tpl');
}
if (empty($items['data'][$i]['over'])) {
$items['data'][$i]['over'] = $trklib->get_isMain_value($trackerId, $item['itemId']);
}
$items['data'][$i]['visible'] = 'y';
}
$trklib->fillTableViewCell($items['data'], $calendarfielddate, $cell);
$smarty->assign('cell', $cell);
$smarty->assign('show_calendar_module', 'y');
$calendarlib->getDayNames($calendarlib->firstDayofWeek($user), $daysnames, $daysnames_abr);
$smarty->assign('daysnames_abr', $daysnames_abr);
$smarty->assign('focusmonth', TikiLib::date_format("%m", $focusDate));
$smarty->assign('module_params', array('viewmode'=>'n', 'showaction'=>'n', 'notitle'=>empty($calendartitle)?'y':'n', 'title'=>$calendartitle, 'viewnavbar' => $calendarviewnavbar, 'decorations'=> empty($calendartitle)?'n':'y'));
$smarty->assign('tpl_module_title', tra($calendartitle));
$smarty->assign('now', $tikilib->now);
$smarty->assign('calendarViewMode', $calendarviewmode);
$smarty->assign('viewmodelink', $calendarviewmode);
$smarty->assign('viewmode', $calendarviewmode);
$focus_prev = $calendarlib->focusPrevious($focus, $calendarviewmode);
$smarty->assign('focus_prev', $focus_prev['date']);
$focus_next = $calendarlib->focusNext($focus, $calendarviewmode);
$smarty->assign('focus_next', $focus_next['date']);
$smarty->assign('daystart', $startPeriod['date']);
$dayend = $calendarlib->infoDate($startNextPeriod['date']-1);
$smarty->assign('dayend', $dayend['date']);
$smarty->assign('today', TikiLib::make_time(0, 0, 0, TikiLib::date_format('%m'), TikiLib::date_format('%d'), TikiLib::date_format('%Y')));
$smarty->assign('sticky_popup', $calendarstickypopup);
$smarty->assign('calendar_popup', $calendarpopup);
$smarty->assign('showpopup', 'n');
global $headerlib; include_once('lib/headerlib.php');
$headerlib->add_cssfile('css/calendar.css', 20);
return $smarty->fetch('modules/mod-calendar_new.tpl');
}
if (!empty($wiki)) {
$tpl = "wiki:$wiki";
} elseif (!empty($tplwiki)) {
$tpl = "tplwiki:$tplwiki";
} elseif (empty($tpl)) {
$tpl = '';
}
if (!empty($tpl))
$smarty->security = true;
$smarty->assign('tpl', $tpl);
if (!empty($itemId) && $showpagination == 'y' && !empty($_REQUEST['cant'])) {
$smarty->assign('max', 1);
$smarty->assign('count_item', $_REQUEST['cant']);
$smarty->assign('offset_arg', 'reloff');
$smarty->assign('tr_offset', $_REQUEST['reloff']);
} else {
$smarty->assign_by_ref('max', $max);
$smarty->assign_by_ref('item_count', $items['cant']);
$smarty->assign_by_ref('count_item', $items['cant']);
$smarty->assign('offset_arg', 'tr_offset');
}
$smarty->assign_by_ref('items', $items["data"]);
$smarty->assign('daformat', $tikilib->get_long_date_format()." ".tra("at")." %H:%M");
示例8: elseif
$viewstart_d = Date_Calc::daysInMonth($viewstart_m, $viewstart_y) - ($TmpWeekday - 1);
$viewstart = $tikilib->make_time(0, 0, 0, $viewstart_m, $viewstart_d, $viewstart_y);
}
}
// this is the last day of $focus_month
if ($viewlist == 'list' && $prefs['calendar_list_begins_focus'] == 'y') {
$df = $focus_day;
} else {
$df = 1;
}
if ($calendarViewMode['casedefault'] == 'month') {
$viewend = $tikilib->make_time(0, 0, 0, $focus_month + 1, $df, $focus_year);
} elseif ($calendarViewMode['casedefault'] == 'quarter') {
$viewend = $tikilib->make_time(0, 0, 0, $focus_month + 3, $df, $focus_year);
} elseif ($calendarViewMode['casedefault'] == 'semester') {
$viewend = TikiLib::make_time(0, 0, 0, $focus_month + 6, $df, $focus_year);
} elseif ($calendarViewMode['casedefault'] == 'year') {
$viewend = $tikilib->make_time(0, 0, 0, 1, $df, $focus_year + 1);
} else {
$viewend = $tikilib->make_time(0, 0, 0, $focus_month + 1, 0, $focus_year);
}
$viewend -= 1;
$dayend = $viewend;
$TmpWeekday = TikiLib::date_format("%w", $viewend);
if ($viewlist != 'list') {
//$viewend += (6 - $TmpWeekday) * $d;
$viewend = $tikilib->make_time(23, 59, 59, TikiLib::date_format("%m", $viewend), TikiLib::date_format("%d", $viewend) + (6 - $TmpWeekday), TikiLib::date_format("%Y", $viewend));
}
// ISO weeks --- kinda mangled because ours begin on Sunday...
$firstweek = TikiLib::date_format("%U", $viewstart + $d);
$lastweek = TikiLib::date_format("%U", $viewend);
示例9: coho_get_unix
function coho_get_unix($itemtimeHM, $itemdateUnix)
{
$tmp = str_pad($itemtimeHM, 4, "0", STR_PAD_LEFT);
$itemhour = substr($tmp, 0, 2);
$itemminute = substr($tmp, -2);
$itemdate = TikiLib::date_format2('Y/m/d', $itemdateUnix);
$itemdate = explode("/", $itemdate);
$unixtime = TikiLib::make_time($itemhour, $itemminute, 0, $itemdate[1], $itemdate[2], $itemdate[0]);
return $unixtime;
}
示例10:
<?php
$section = 'calendar';
require_once 'tiki-setup.php';
$jumpto = TikiLib::make_time(0, 0, 0, $_REQUEST['jumpto_Month'], $_REQUEST['jumpto_Day'], $_REQUEST['jumpto_Year']);
$url = "tiki-calendar.php?todate=" . $jumpto;
header('location: tiki-calendar.php?todate=' . $jumpto);
exit;
示例11: quiz_data_load
function quiz_data_load()
{
global $_REQUEST;
$quiz_data = array();
foreach ($_REQUEST as $key => $val) {
if (preg_match("/^quiz_/", $key)) {
$k = preg_replace("/^quiz_([.]*)/", "\$1", $key);
$quiz_data[$k] = $val;
}
}
if ($quiz_data["online"] == "online") {
$quiz_data["online"] = "y";
} else {
if ($quiz_data["online"] == "offline") {
$quiz_data["online"] = "n";
}
}
$quiz_data["datePub"] = TikiLib::make_time($quiz_data["publish_Hour"], $quiz_data["publish_Minute"], 0, $quiz_data["publish_Month"], $quiz_data["publish_Day"], $quiz_data["publish_Year"]);
$quiz_data["dateExp"] = TikiLib::make_time($quiz_data["expire_Hour"], $quiz_data["expire_Minute"], 0, $quiz_data["expire_Month"], $quiz_data["expire_Day"], $quiz_data["expire_Year"]);
$fields = array('nQuestion', 'shuffleAnswers', 'shuffleQuestions', 'multiSession', 'additionalQuestions', 'limitDisplay', 'timeLimited', 'canRepeat', 'additionalQuestions', 'forum');
foreach ($fields as $field) {
fetchYNOption($quiz_data, $quiz_data, $field);
// echo '$quiz_data["'.$field.'"] = '.$quiz_data[$field]."<br>";
}
return $quiz_data;
}
示例12: max
$save = $_POST['save'];
// Take care of timestamps dates coming from jscalendar
if (isset($save['date_start']) || isset($save['date_end'])) {
$_REQUEST['start_date_Month'] = TikiLib::date_format("%m", $save['date_start']);
$_REQUEST['start_date_Day'] = TikiLib::date_format("%d", $save['date_start']);
$_REQUEST['start_date_Year'] = TikiLib::date_format("%Y", $save['date_start']);
$_REQUEST['end_date_Month'] = TikiLib::date_format("%m", $save['date_end']);
$_REQUEST['end_date_Day'] = TikiLib::date_format("%d", $save['date_end']);
$_REQUEST['end_date_Year'] = TikiLib::date_format("%Y", $save['date_end']);
}
$save['start'] = TikiLib::make_time($_REQUEST['start_Hour'], $_REQUEST['start_Minute'], 0, $_REQUEST['start_date_Month'], $_REQUEST['start_date_Day'], $_REQUEST['start_date_Year']);
if ($save['end_or_duration'] == 'duration') {
$save['duration'] = max(0, $_REQUEST['duration_Hour'] * 60 * 60 + $_REQUEST['duration_Minute'] * 60);
$save['end'] = $save['start'] + $save['duration'];
} else {
$save['end'] = TikiLib::make_time($_REQUEST['end_Hour'], $_REQUEST['end_Minute'], 0, $_REQUEST['end_date_Month'], $_REQUEST['end_date_Day'], $_REQUEST['end_date_Year']);
$save['duration'] = max(0, $save['end'] - $save['start']);
}
}
if (isset($_POST['act'])) {
if (empty($save['user'])) {
$save['user'] = $user;
}
$newcalid = $save['calendarId'];
if (empty($save['calitemId']) and $caladd["{$newcalid}"]['tiki_p_add_events'] or !empty($save['calitemId']) and $caladd["{$newcalid}"]['tiki_p_change_events']) {
if (empty($save['name'])) {
$save['name'] = tra("event without name");
}
$calendarlib->set_item($user, $save['calitemId'], $save);
header('Location: tiki-calendar.php');
die;
示例13: implode
$orderat = implode(',', $showlist);
if (count($popupinfo)) {
$orderat .= '|' . implode(',', $popupinfo);
}
$tracker_options["orderAttachments"] = $orderat;
}
if (isset($_REQUEST["useExplicitNames"]) && ($_REQUEST["useExplicitNames"] == 'on' or $_REQUEST["useExplicitNames"] == 'y')) {
$tracker_options["useExplicitNames"] = 'y';
} else {
$tracker_options["useExplicitNames"] = 'n';
}
if (isset($_REQUEST['start']) && $_REQUEST['start'] == 'on') {
$tracker_options['start'] = TikiLib::make_time($_REQUEST["start_Hour"], $_REQUEST["start_Minute"], 0, $_REQUEST["start_Month"], $_REQUEST["start_Day"], $_REQUEST["start_Year"]);
}
if (isset($_REQUEST['end']) && $_REQUEST['end'] == 'on') {
$tracker_options['end'] = TikiLib::make_time($_REQUEST["end_Hour"], $_REQUEST["end_Minute"], 0, $_REQUEST["end_Month"], $_REQUEST["end_Day"], $_REQUEST["end_Year"]);
}
if (isset($_REQUEST['doNotShowEmptyField']) && ($_REQUEST['doNotShowEmptyField'] == 'on' || $_REQUEST['doNotShowEmptyField'] == 'y')) {
$tracker_options['doNotShowEmptyField'] = 'y';
} else {
$tracker_options['doNotShowEmptyField'] = 'n';
}
if (isset($_REQUEST['showPopup'])) {
$tracker_options['showPopup'] = $_REQUEST['showPopup'];
} else {
$tracker_options['showPopup'] = '';
}
$_REQUEST["trackerId"] = $trklib->replace_tracker($_REQUEST["trackerId"], $_REQUEST["name"], $_REQUEST["description"], $tracker_options, $_REQUEST["descriptionIsParsed"] ? 'y' : '');
$logslib->add_log('admintrackers', 'changed or created tracker ' . $_REQUEST["name"]);
$cat_desc = $_REQUEST["description"];
$cat_name = $_REQUEST["name"];
示例14: check_ticket
} else {
$smarty->assign('spellcheck', 'n');
}
}
$smarty->assign('parsed_body', $parsed_body);
$smarty->assign('parsed_heading', $parsed_heading);
$smarty->assign('body', $body);
$smarty->assign('heading', $heading);
}
// Pro
if (isset($_REQUEST["save"]) || isset($_REQUEST["submit"])) {
check_ticket('edit-submission');
include_once "lib/imagegals/imagegallib.php";
# convert from the displayed 'site' time to UTC time
$publishDate = TikiLib::make_time($_REQUEST["publish_Hour"], $_REQUEST["publish_Minute"], 0, $_REQUEST["publish_Month"], $_REQUEST["publish_Day"], $_REQUEST["publish_Year"]);
$expireDate = TikiLib::make_time($_REQUEST["expire_Hour"], $_REQUEST["expire_Minute"], 0, $_REQUEST["expire_Month"], $_REQUEST["expire_Day"], $_REQUEST["expire_Year"]);
if (isset($_REQUEST["allowhtml"]) && $_REQUEST["allowhtml"] == "on") {
$body = $_REQUEST["body"];
$heading = $_REQUEST["heading"];
} else {
$body = strip_tags($_REQUEST["body"], '<a><pre><p><img><hr>');
$heading = strip_tags($_REQUEST["heading"], '<a><pre><p><img><hr>');
}
if (isset($_REQUEST["useImage"]) && $_REQUEST["useImage"] == 'on') {
$useImage = 'y';
} else {
$useImage = 'n';
}
if (isset($_REQUEST["isfloat"]) && $_REQUEST["isfloat"] == 'on') {
$isfloat = 'y';
} else {
示例15: dostime2unixtime
function dostime2unixtime($dosdate, $dostime)
{
$mday = $dosdate & 0x1f;
$month = ($dosdate >> 5) & 0x0f;
$year = 1980 + (($dosdate >> 9) & 0x7f);
$sec = ($dostime & 0x1f) * 2;
$min = ($dostime >> 5) & 0x3f;
$hour = ($dostime >> 11) & 0x1f;
return TikiLib::make_time($hour, $min, $sec, $month, $mday, $year);
}