100+ results results for 'php mktime repo:jcplat/console-seolan' (548 ms)
1<?php 2require('include.php'); 2require('include.php'); 3if(!xml2php("schedule")) { 4 $smarty->assign('error_msg',"Error in language file"); 76/* this will be pulled from the database later */ 77$business_start = mktime($H,0,0,$m,$d,$y); 78$business_end = mktime($E,0,0,$m,$d,$y); 108$i = 0; 109$start = mktime($H,0,0,$m,$d,$y); 110//$start = mktime($H,$d,$m,$y); 174 } 175 $start = mktime(date("H",$start),date("i",$start)+15,0,$m,$d,$y); 176 186$daystore = explode("-", $cur_date); 187$dateline = mktime(0,0,0,$daystore[1], $daystore[0], $daystore[2]); 188$nextday = $cur_date+(1*60*60*24);allagendas.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 384 lines
1<?php 2/* For licensing terms, see /license.txt */ 17// setting the global file that gets the general configuration, the databases, the languages, ... 18require_once '../inc/global.inc.php'; 19$this_section = SECTION_MYAGENDA; 20 21require_once 'agenda.inc.php'; 22require_once 'myagenda.inc.php'; 48if (!empty ($course_path)) { 49 $interbreadcrumb[] = array ('url' => api_get_path(WEB_COURSE_PATH).urlencode($course_path).'/index.php', 'name' => Security::remove_XSS($_GET['courseCode'])); 50} 63 //Get the first day of the month 64 $dayone = getdate(mktime(0, 0, 0, $month, 1, $year)); 65 //Start the week on monday 166 $end_time= date("H:i",strtotime($item['end_date'])); 167 $URL = api_get_path(WEB_PATH)."main/calendar/allagendas.php?cidReq=".urlencode($code)."&sort=asc&view=list&day=$agendaday&month=$month&year=$year#$agendaday"; // RH //Patrick Cool: to highlight the relevant agenda item 168date_helper.php https://gitlab.com/BeyondeLabs/tweet-daily | PHP | 611 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 46 $now = time(); 47 $system_time = mktime(gmdate("H", $now), gmdate("i", $now), gmdate("s", $now), gmdate("m", $now), gmdate("d", $now), gmdate("Y", $now)); 48 68 * 69 * This function is identical to PHPs date() function, 70 * except that it allows date codes to be formatted using 307 308 return mktime( gmdate("H", $time), gmdate("i", $time), gmdate("s", $time), gmdate("m", $time), gmdate("d", $time), gmdate("Y", $time)); 309 } 368 // YYYYMMDDHHMMSS 369 return mktime( 370 substr($time, 8, 2),1416863327-migrate-reports.php https://gitlab.com/e0/X2CRM | PHP | 315 lines
1<?php 2/*********************************************************************************** 56 case 'thisMonth': 57 $dateRange['start'] = mktime(0, 0, 0, date('n'), 1); // first of this month 58 $dateRange['end'] = time(); // now 64 case 'lastMonth': 65 $dateRange['start'] = mktime(0, 0, 0, date('n') - 1, 1); // first of last month 66 $dateRange['end'] = mktime(0, 0, 0, date('n'), 1) - 1; // first of this month 68 case 'thisYear': 69 $dateRange['start'] = mktime(0, 0, 0, 1, 1); // first of the year 70 $dateRange['end'] = time(); // now 72 case 'lastYear': 73 $dateRange['start'] = mktime(0, 0, 0, 1, 1, date('Y') - 1); // first of last year 74 $dateRange['end'] = mktime(0, 0, 0, 1, 1, date('Y')) - 1; // first of this yearappointments.inc.php https://github.com/drbowen/openemr.git | PHP | 451 lines
1<?php 2 235 236 $thistime = mktime(0, 0, 0, $adate['mon'], $adate['mday'], $adate['year']); 237 }Time.php https://gitlab.com/rsilveira1987/Expresso | PHP | 257 lines
1<?php 2/** 79 } 80 // since PHP is incapable of storing a time without a date, we use the first day of 81 // the unix epoch so that we only have the amount of seconds since the zero of unix epoch 82 // we only use gm here because we don't want the server's timezone to interfere 83 $time = gmmktime($hour, $minute, $second, 1, 1, 1970); 84 $this->time = $time; 206 * Set the format to use when outputting as a string 207 * @param string $format Use PHP's date() function's time-related 208 * metacharacters to set the format used when this object is printed 218 /** 219 * Output the object using PHP's date() function's meta-characters 220 * @param string $format Use PHP's date() function's time-relatedfunction.html_select_date.php https://github.com/kiang/olc_baker.git | PHP | 328 lines
1<?php 2/** 30 * 31 * @link http://smarty.php.net/manual/en/language.function.html.select.date.php {html_select_date} 32 * (Smarty online manual) 41{ 42 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'); 43 require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php'); 43 require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php'); 44 require_once(SMARTY_PLUGINS_DIR . 'function.html_options.php'); 45 61 $reverse_years = false; 62 /* Should the select boxes be part of an array when returned from PHP? 63 e.g. setting it to "birthday", would create "birthday[Day]", 192 for ($i = 1; $i <= 12; $i++) { 193 $month_names[$i] = strftime($month_format, mktime(0, 0, 0, $i, 1, 2000)); 194 $month_values[$i] = strftime($month_value_format, mktime(0, 0, 0, $i, 1, 2000));ezdatetime.php https://github.com/zerustech/ezpublish.git | PHP | 502 lines
11/*! 12 \class eZDateTime ezdatetime.php 13 \ingroup eZLocale 80 $arr = getdate( $this->DateTime ); 81 $datetime = mktime( $arr2['hours'], $arr2['minutes'], $arr2['seconds'], 82 $arr['mon'], $arr['mday'], $arr['year'] ); 343 $arr = getdate( $this->DateTime ); 344 $this->DateTime = mktime( $hour, $min, $sec, 345 $arr['mon'], $arr['mday'], $arr['year'] ); 352 { 353 $this->DateTime = mktime( $hour, $min, $sec, $month, $day, $year ); 354 } 470 /*! 471 \deprecated This function is deprecated in PHP5, use the PHP5 clone keyword instead 472 Creates an exact copy of this object and returns it.Calendar.php https://github.com/hukumonline/store.git | PHP | 277 lines
1<?php 2 55 { 56 $weekpos = date("w",mktime(0,0,0,$month,1,$year)); 57 94 95 $month = date("M", mktime(0, 0, 0, $month)); 96 272 if ($format != null) 273 return strftime($format,gmmktime(0,0,0,$month,1,2007)); 274 else 274 else 275 return strftime("%B",gmmktime(0,0,0,$month,1,2007)); 276 }date.php https://bitbucket.org/sriedel/iccrm-wip.git | PHP | 404 lines
1<?php 2/** 9 * @copyright 2010 - 2012 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 23 * @category Core 24 * @link http://docs.fuelphp.com/classes/date.html 25 * 28 * - create_time() uses strptime and has currently a very bad hack to use strtotime for windows servers 29 * - Uses strftime formatting for dates www.php.net/manual/en/function.strftime.php 30 */ 103 104 // This really is some fugly code, but someone at PHP HQ decided strptime should 105 // output this awful array instead of a timestamp LIKE EVERYONE ELSE DOES!!! 112 * @param int UNIX timestamp from current server 113 * @param string valid PHP timezone from www.php.net/timezones 114 * @return Datedate.php https://bitbucket.org/kawadatetsuya/twilio.git | PHP | 404 lines
1<?php 2/** 9 * @copyright 2010 - 2013 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 23 * @category Core 24 * @link http://docs.fuelphp.com/classes/date.html 25 * 28 * - create_time() uses strptime and has currently a very bad hack to use strtotime for windows servers 29 * - Uses strftime formatting for dates www.php.net/manual/en/function.strftime.php 30 */ 103 104 // This really is some fugly code, but someone at PHP HQ decided strptime should 105 // output this awful array instead of a timestamp LIKE EVERYONE ELSE DOES!!! 112 * @param int UNIX timestamp from current server 113 * @param string valid PHP timezone from www.php.net/timezones 114 * @return Dateevent_log.php https://gitlab.com/alexprowars/bitrix | PHP | 354 lines
1<?php 2/** 72 $arDate = localtime(time()); 73 $date = mktime(0, 0, 0, $arDate[4]+1, $arDate[3]-$cleanup_days, 1900+$arDate[5]); 74 $DB->Query("DELETE FROM b_event_log WHERE TIMESTAMP_X <= ".$DB->CharToDateFunction(ConvertTimeStamp($date, "FULL")));logs.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 336 lines
1<?php 2 24$sql = "SELECT SQL_CALC_FOUND_ROWS * FROM `" . $db_config['prefix'] . "_logs` WHERE `id`!=0"; 25$base_url = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op; 26 42 nv_insert_logs( NV_LANG_DATA, $module_name, sprintf ( $lang_module['filter_check_log'], $op ), $admin_info['username'] . " - " . $admin_info['userid'], 0 ); 43 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op ); 44 exit(); 69 { 70 $from = mktime( 0, 0, 0, $match[2], $match[1], $match[3] ); 71 $sql .= " AND `log_time` >= " . $from; 80 { 81 $to = mktime( 0, 0, 0, $match[2], $match[1], $match[3] ); 82 $sql .= " AND `log_time` <= " . $to; 278$xtpl->assign( 'URL_DEL', $base_url . "&" . NV_OP_VARIABLE . "=logs_del" ); 279$xtpl->assign( 'URL_CANCEL', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op ); 280$xtpl->assign( 'DISABLE', $disabled );date.php https://github.com/chemila/kohana.git | PHP | 566 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 28 * Timezone for formatted_time 29 * @link http://uk2.php.net/manual/en/timezones.php 30 * @var string 39 * 40 * [!!] A list of time zones that PHP supports can be found at 41 * <http://php.net/timezones>. 237 // Use date to find the number of days in the given month 238 $total = date('t', mktime(1, 0, 0, $month, 1, $year)) + 1; 239 540 541 return mktime($hrs, $min, $sec, $mon, $day, $year + 1980); 542 } 548 * 549 * @see http://php.net/manual/en/datetime.construct.php 550 * @param string datetime_str datetime stringrequests.php https://gitlab.com/grimkirill/mb-base | PHP | 297 lines
1<?php 2 29 $this->AddContent(View_Element::Space(2).'|'.View_Element::Space(2)); 30 $tommorow = date('d-m-Y', mktime(0,0,0,date("m"),date("d")+1,date("Y"))); 31 $this->AddContent(View_Element::Link('Завтра', CLASSPATH.'?servicer='.$form->return_values['servicer'].'&type=0&date_start='.$tommorow.'&date_stop='.$tommorow.'&done='.$form->return_values['done'].'&form_submit=Принять')); 85 { 86 $tommorow = date('d-m-Y', mktime(0,0,0,date("m"),date("d")+1,date("Y"))); 87 $this->AddContent(View_Element::Link('Завтра', CLASSPATH.'?servicer=0&type=0&date_start='.$tommorow.'&date_stop='.$tommorow.'&done=0&form_submit=Принять'));user.php https://github.com/meltingice/Osimo-Forum-System-v1.git | PHP | 381 lines
1<?php 2/* 5* 6* os-includes/ajax/user.php - ajax backend for user modification 7*/ 8session_start(); 9include_once('../dbconnect.php'); //connects to database 10include_once('../paths.php'); 10include_once('../paths.php'); 11include_once('../osimo.php'); 12$osimo = new Osimo(); //makes magic happen 169 /* Retrieve the UNIX timestamp for the birthday */ 170 $birthday = adodb_mktime(12,0,0,$args['birthday_month'],$args['birthday_day'],$args['birthday_year']); 171 $age = date('Y') - $args['birthday_year']; 237 <div id="memberlist-wrap"> 238 <p><?php echo $numMembers; ?> Members | Page <span id="osimo_memberlist-curpage"><?php echo $page; ?></span> of <span id="osimo_memberlist-totpage"><?php echo $osimo->getPagination('table=users', 'num=15'); ?></span></p> 239 <table cellpadding='4' cellspacing='0' id="memberlist">search.php https://github.com/dariusgm/PHPFee.git | PHP | 231 lines
10 $jetzt = mktime(0,0,0,date("m"),date("d"),date("Y")); 11 $geburtstag = mktime(0,0,0,$monat,$tag,$jahr); 12 $alter = intval(($jetzt - $geburtstag) / (3600 * 24 * 365)); 52 53 echo '<table cellpadding="5" border="1"><tr><td></td><td><a href="index.php?x=faq#Nick"><u>Nick</u></a></td><td><a href="index.php?x=faq#G"><u>G</u></a></td><td><a href="index.php?x=faq#plz"><u>PLZ</u></a></td><td colspan="3">Kontakt</td><td>Alter</td><td>Mitglied Seit</td><td><a href="index.php?x=faq#discollis"><u>Discollis</u></a></td></tr> 54'; 59 60 echo '<tr><td><img src="./sample/online.gif" /></td><td><a href="index.php?x=show&nick='.$zeile1["nick"].'"><u>'.$zeile1["nick"].'</u></td><td>'; 61 79 80 echo '<td><a href="index.php?x=email&nick='.$zeile1["nick"].'"><u>E-Mail</u></a></td><td><a href="./homepage/'.$zeile1["nick"].'.htm" target="_blank"><u>HP</u></a></td>'; 81 if ($zeile1["show_gb"]=="1") 185 echo 'Die neusten Mitglieder bei Discollection Radio:'; 186 echo '<table cellpadding="5" border="1"><tr><td></td><td><a href="index.php?x=faq#Nick"><u>Nick</u></a></td><td><a href="index.php?x=faq#G"><u>G</u></a></td><td><a href="index.php?x=faq#plz"><u>PLZ</u></a></td><td colspan="3">Kontakt</td><td>Alter</td><td>Mitglied Seit</td><td><a href="index.php?x=faq#discollis"><u></u></a></td></tr>'; 187 $sql="SELECT nick,sex,gb,plz,seit,discollis,show_gb,show_sex,show_plz,show_seit FROM user ORDER BY id DESC LIMIT 5";Creuser.php https://github.com/Canop/braldahim.git | PHP | 381 lines
1<?php 2 257 $statsFabricants = new StatsFabricants(); 258 $moisEnCours = mktime(0, 0, 0, date("m"), 2, date("Y")); 259 $dataFabricants["niveau_braldun_stats_fabricants"] = $this->view->user->niveau_braldun;user.php https://github.com/durand54/caresite.git | PHP | 321 lines
1<?php 2global $my,$system; 6//echo "this is system: ".system::getComponentPath('user','/administration'); 7//require_once(system::getComponentPath('user','/administration').'/user_html.php'); 8require_once('user_html.php'); 8require_once('user_html.php'); 9//require(system::getComponentPath('eauto').'/eauto_db.php'); 10require_once('includeAdmin/eauto_db.php'); 78 $startdate=date("Ymd"); 79 $enddate=date("Ymd",mktime(0, 0, 0, date("m"), date("d"), date("Y")+1)); 80 $serviceid=html::getInput($_GET,'serviceid'); 87 db::insert('accesslevel',$sets); 88// header("location:index.php?comp=user&task=subscriber&id=$SubscriberID"); 89// exit; 105 $UserID=html::getInput($_GET,'uid'); 106 $system->breadcrumbs['Subscribers']='index.php?comp=user'; 107 $system->breadcrumbs['Edit Subscriber']="index.php?comp=user&task=subscriber&id=$SubscriberID";Sqlite.php https://github.com/bhaumik25/zend-framework.git | PHP | 403 lines
1<?php 2 25 */ 26require_once 'Zend/Cache/Backend/Interface.php'; 27 30 */ 31require_once 'Zend/Cache/Backend.php'; 32 159 $data = @sqlite_escape_string($data); 160 $mktime = time(); 161 if (is_null($this->_directives['lifeTime'])) { 163 } else { 164 $expire = $mktime + $this->_directives['lifeTime']; 165 } 166 @sqlite_query($this->_db, "DELETE FROM cache WHERE id='$id'"); 167 $sql = "INSERT INTO cache (id, content, lastModified, expire) VALUES ('$id', '$data', $mktime, $expire)"; 168 $res = @sqlite_query($this->_db, $sql);date.php https://bitbucket.org/JakePratt/kupcakz.com.git | PHP | 395 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 7 * @copyright (c) 2007-2009 Kohana Team 8 * @license http://kohanaphp.com/license 9 */ 50 51 return mktime($hrs, $min, $sec, $mon, $day, $year + 1980); 52 } 55 * Returns the offset (in seconds) between two time zones. 56 * @see http://php.net/timezones 57 * 218 // Use date to find the number of days in the given month 219 $total = date('t', mktime(1, 0, 0, $month, 1, $year)) + 1; 220reader.php https://github.com/axshavan/nitrofuran.git | PHP | 540 lines
1<?php 2 14 15require_once(DOCUMENT_ROOT.'/nitrofuran/crud.class.php'); 16 69 { 70 // за счёт разных часовых поясов и тупого php могут быть косяки со временными метками 71 // накинем ещё сутки 84 'read_flag' => 0, 85 'date' => (int)$item['date'] <= gmmktime() ? (int)$item['date'] : gmmktime(), 86 'text' => $item['description'] 146 $data = array(); 147 $mostEarlierDate = $mostEarlierDate ? $mostEarlierDate : gmmktime(); 148 $curl = curl_init($subscription['href']); 160 ); 161 curl_setopt($curl, CURLOPT_USERAGENT, 'Nitrofuran Reader: PHP bot collecting RSS feeds'); 162 ob_start();end_vevent.php https://gitlab.com/endomorphosis/fusenews | PHP | 386 lines
1<?php 2/* end_vevent.php 127 ereg ('([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})', $until, $regs); 128 $until_unixtime = mktime($regs[4],@$regs[5],@$regs[6],$regs[2],$regs[3],$regs[1]); 129 $recur_array[($start_date)][($hour.$minute)][$uid]['recur'][$key] = localizeDate($dateFormat_week,$until); 191If COUNT is not set (default is 1,000,000) then we don't have to start at start_date; we can start at the minimum interval for the view. 192variables ending in date are in phpical date format: YYYYMMDD 193variables ending with time are in phpical time format: HHMM 195 196mArray_begin and mArray_end are set in initialization by date_range.php and may be overwritten by rss_common.php. 197 243 $month = date('m', $next_range_unixtime); 244 $time = mktime(12,0,0,$month,date("d",$start_unixtime),$year); 245 switch ($freq_type){ 252 case 'month': 253 if(!empty($bymonthday)) $time = mktime(12,0,0,$month,1,$year); 254 $times = expand_bymonthday(array($time));#echo "\n $month exp bymonthday";dump_times($times);Date.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 337 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 121 } else { 122 $timestamp += mktime(0, 0, 0, $value['month'], $value['day'], $value['year']); 123 } 124 } else { 125 $timestamp += mktime(0, 0, 0, date('m'), date('d'), date('Y')); 126 }ipayment.php https://github.com/severnaya99/Sg-2010.git | PHP | 244 lines
1<?php 2/* 2/* 3 $Id: ipayment.php 1 2005-10-24 10:38:39Z Michael $ 4 31 32 $this->form_action_url = 'https://ipayment.de/merchant/' . MODULE_PAYMENT_IPAYMENT_ID . '/processor.php'; 33 } 78 for ($i=1; $i < 13; $i++) { 79 $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000))); 80 } 83 for ($i=$today['year']; $i < $today['year']+10; $i++) { 84 $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i))); 85 } 103 104 include(DIR_WS_CLASSES . 'cc_validation.php'); 105mini_calendrier.html https://bitbucket.org/pombredanne/spip-zone-treemap.git | HTML | 215 lines
3#SET{calendrier_annee_eva,#EVAL{$_GET['calendrier_annee']}} 4<?php 5 11 12 <?php 13$months = array('', '<:m1:>', '<:m2:>', '<:m3:>', '<:m4:>', '<:m5:>', '<:m6:>', '<:m7:>', '<:m8:>', '<:m9:>', '<:m10:>', '<:m11:>', '<:m12:>'); 18{ 19 return mktime(0, 0, 0, $month, $day, $year); 20} 40<BOUCLE_evenements_rub_art(ARTICLES){id_rubrique}{annee_redac!=0000}> 41 <?php 42 54<BOUCLE_evenements(ARTICLES){titre_mot="mini-calendrier"}{lang}{annee_redac!=0000}> 55 <?php 56Date.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 337 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 121 } else { 122 $timestamp += mktime(0, 0, 0, $value['month'], $value['day'], $value['year']); 123 } 124 } else { 125 $timestamp += mktime(0, 0, 0, date('m'), date('d'), date('Y')); 126 }display-coupons.php https://github.com/evadne/wp-e-commerce.git | PHP | 451 lines
84 85 <a href='' onclick='return show_status_box("add_coupon_box","add_coupon_box_link");' class='add_item_link' id='add_coupon_box_link'><img src='<?php echo WPSC_URL; ?>/images/package_add.png' alt='<?php echo TXT_WPSC_ADD; ?>' title='<?php echo TXT_WPSC_ADD; ?>' /> <span><?php echo TXT_WPSC_ADD_COUPON;?></span></a> 86 358 <input type='radio' value='1' name='wpsc_also_bought' id='wpsc_also_bought1' <?php echo $wpsc_also_bought1; ?> /> <label for='wpsc_also_bought1'><?php echo TXT_WPSC_YES;?></label> 359 <input type='radio' value='0' name='wpsc_also_bought' id='wpsc_also_bought2' <?php echo $wpsc_also_bought2; ?> /> <label for='wpsc_also_bought2'><?php echo TXT_WPSC_NO;?></label> 360 </td> 382 <input type='radio' value='1' name='wpsc_share_this' id='wpsc_share_this1' <?php echo $wpsc_share_this1; ?> /> <label for='wpsc_share_this1'><?php echo TXT_WPSC_YES;?></label> 383 <input type='radio' value='0' name='wpsc_share_this' id='wpsc_share_this2' <?php echo $wpsc_share_this2; ?> /> <label for='wpsc_share_this2'><?php echo TXT_WPSC_NO;?></label> 384 </td> 423 <td> 424 <?php echo get_option('siteurl')."/index.php?rss=true&action=product_list" ?> 425 </td> 437 $itemsFeedURL = "http://www.google.com/base/feeds/items"; 438 $next_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']."?page=".WPSC_DIR_NAME."/display-items.php"; 439 $redirect_url = 'https://www.google.com/accounts/AuthSubRequest?session=1';week.php https://github.com/jessfishenden/mrbs-mcr.git | PHP | 472 lines
1<?php 2# $Id$ 3 4# mrbs/week.php - Week-at-a-time view 5 5 6require_once "grab_globals.inc.php"; 7include "config.inc.php"; 8include "functions.inc"; 9require_once("database.inc.php"); 10include "$dbsys.inc"; 29# Set the date back to the previous $weekstarts day (Sunday, if 0): 30$time = mktime(12, 0, 0, $month, $day, $year); 31if (($weekday = (date("w", $time) - $weekstarts + 7) % 7) > 0) 65 $dst_change[$j] = is_dst($month,$day+$j,$year); 66 $am7[$j]=mktime($morningstarts,0,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$morningstarts)); 67 $pm7[$j]=mktime($eveningends,$eveningends_minutes,0,$month,$day+$j,$year,is_dst($month,$day+$j,$year,$eveningends));sarkaspip_filtres.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 258 lines
1<?php 2// ======================================================================================================================================= 10 if (!$img) return; 11 include_spip('logos.php'); 12 list ($h,$l) = taille_image($img); 26 if (!$img) return; 27 include_spip('logos.php'); 28 list ($h,$l) = taille_image($img); 113 114 $jour = date("Y-m-d H:i:s", mktime(0,0,0,1,1,$annee)); 115 return $jour; 128 129 $jour = date("Y-m-d H:i:s", mktime(23,59,59,12,31,$annee)); 130 return $jour; 146 $annee = date('Y', strtotime($date)); 147 $jour = date("Y-m-d H:i:s", mktime(0,0,0,$mois,$jour,$annee)); 148 return $jour;sale.php https://gitlab.com/reclamare/mao | PHP | 438 lines
1<?php 2class ModelReportSale extends Model { 121 $order_data[$i] = array( 122 'month' => date('M', mktime(0, 0, 0, $i)), 123 'total' => 0pp_pro.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 199 lines
1<?php 2class ControllerPaymentPPPro extends Controller { 57 $this->data['months'][] = array( 58 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)), 59 'value' => sprintf('%02d', $i) 68 $this->data['year_valid'][] = array( 69 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 70 'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)) 77 $this->data['year_expire'][] = array( 78 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 79 'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))ipayment.php https://github.com/kipster/_csm.git | PHP | 244 lines
1<?php 2/* 2/* 3 $Id: ipayment.php,v 1.32 2003/01/29 19:57:14 hpdl Exp $ 4 31 32 $this->form_action_url = 'https://ipayment.de/merchant/' . MODULE_PAYMENT_IPAYMENT_ID . '/processor.php'; 33 } 78 for ($i=1; $i < 13; $i++) { 79 $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000))); 80 } 83 for ($i=$today['year']; $i < $today['year']+10; $i++) { 84 $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i))); 85 } 103 104 include(DIR_WS_CLASSES . 'cc_validation.php'); 105ClientesController.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 458 lines
1<?php 2 170 ob_start(); 171 include(app_path().'/views/pdf/factura.php'); 172 $content = ob_get_clean(); 174 // convert to PDF 175 require_once(public_path().'/packages/html2pdf/html2pdf.class.php'); 176 $html2pdf = new HTML2PDF('P', 'A4', 'es'); 207 ob_start(); 208 include(app_path().'/views/pdf/presupuesto.php'); 209 $content = ob_get_clean(); 211 // convert to PDF 212 require_once(public_path().'/packages/html2pdf/html2pdf.class.php'); 213 $html2pdf = new HTML2PDF('P', 'A4', 'es'); 242 ob_start(); 243 include(app_path().'/views/pdf/mantenimiento.php'); 244 $content = ob_get_clean();date.php https://github.com/2bj/kohana-core.git | PHP | 566 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 8 * @copyright (c) 2007-2009 Kohana Team 9 * @license http://kohanaphp.com/license 10 */ 28 * Timezone for formatted_time 29 * @link http://uk2.php.net/manual/en/timezones.php 30 * @var string 39 * 40 * [!!] A list of time zones that PHP supports can be found at 41 * <http://php.net/timezones>. 237 // Use date to find the number of days in the given month 238 $total = date('t', mktime(1, 0, 0, $month, 1, $year)) + 1; 239 548 * 549 * @see http://php.net/manual/en/datetime.construct.php 550 * @param string datetime_str datetime stringDate.php https://github.com/choschi/Assignment-Advanced-Web-Technologies.git | PHP | 183 lines
1<?php 2// +----------------------------------------------------------------------+ 2// +----------------------------------------------------------------------+ 3// | PHP versions 4 and 5 | 4// +----------------------------------------------------------------------+ 9// | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB | 10// | API as well as database abstraction for PHP applications. | 11// | This LICENSE is in the BSD license style. | 44// 45// $Id: Date.php,v 1.10 2006/03/01 12:15:32 lsmith Exp $ 46// 55 * Several methods to convert the MDB2 native timestamp format (ISO based) 56 * to and from data structures that are convenient to worth with in side of php. 57 * For more complex date arithmetic please take a look at the Date package in PEAR 124 { 125 return MDB2_Date::unix2Mdbstamp(mktime($hour, $minute, $second, $month, $day, $year, -1)); 126 }edit_entry_handler.php https://github.com/jessfishenden/mrbs-mcr.git | PHP | 512 lines
3 4require_once "grab_globals.inc.php"; 5include "config.inc.php"; 62$returl_base = explode('?', basename($returl)); 63if (empty($returl) || ($returl_base[0] == "edit_entry.php") || ($returl_base[0] == "edit_entry_handler.php")) 64{ 138 ?> 139 <h1><?php echo get_vocab('invalid_booking'); ?></h1> 140 <p> 140 <p> 141 <?php echo get_vocab('you_have_not_entered')." ".get_vocab("rep_rep_day"); ?> 142 </p> 263 // Get the repeat entry settings 264 $rep_enddate = mktime($hour, $minute, 0, 265 $rep_end_month, $rep_end_day, $rep_end_year);date_helper.php https://bitbucket.org/myockey/clearcreek-chapel-website.git | PHP | 611 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.2.4 or newer 6 * 46 $now = time(); 47 $system_time = mktime(gmdate("H", $now), gmdate("i", $now), gmdate("s", $now), gmdate("m", $now), gmdate("d", $now), gmdate("Y", $now)); 48 68 * 69 * This function is identical to PHPs date() function, 70 * except that it allows date codes to be formatted using 307 308 return mktime( gmdate("H", $time), gmdate("i", $time), gmdate("s", $time), gmdate("m", $time), gmdate("d", $time), gmdate("Y", $time)); 309 } 368 // YYYYMMDDHHMMSS 369 return mktime( 370 substr($time, 8, 2),Month.php https://github.com/Excito/kronolith.git | PHP | 253 lines
1<?php 2 2 3require_once KRONOLITH_BASE . '/lib/Day.php'; 4 8 * 9 * $Horde: kronolith/lib/Views/Month.php,v 1.17.2.3 2009/11/07 14:34:57 jan Exp $ 10 * 128 $showTime = Kronolith::viewShowTime(); 129 $day_url = Horde::applicationUrl('day.php'); 130 $this_link = $this->link(0, true); 130 $this_link = $this->link(0, true); 131 $new_url = Util::addParameter(Horde::applicationUrl('new.php'), 'url', $this_link); 132 $new_img = Horde::img('new_small.png', '+'); 153 } 154 if (mktime(0, 0, 0) == $daystamp) { 155 $style = 'today';10autofilter-selection-1.php https://bitbucket.org/royrutto/climatepal.git | PHP | 221 lines
33 34define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); 35 36/** Include PHPExcel */ 37require_once '../Classes/PHPExcel.php'; 38 41echo date('H:i:s').' Create new PHPExcel object'.EOL; 42$objPHPExcel = new PHPExcel(); 43 50 ->setDescription('Test document for PHPExcel, generated using PHP classes.') 51 ->setKeywords('office PHPExcel php') 52 ->setCategory('Test result file'); 204 205$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); 206$objWriter->save(str_replace('.php', '.xls', __FILE__));worldpay.php https://gitlab.com/shapcy/opencart | PHP | 220 lines
1<?php 2 109 110 $expiry_date = mktime(0, 0, 0, 0, (string)$response->paymentMethod->expiryMonth, (string)$response->paymentMethod->expiryYear); 111 160 $this->load->model('payment/worldpay'); 161 $message = json_decode(file_get_contents('php://input'), true); 162index.php https://github.com/ECP-Black/ECP.git | PHP | 265 lines
1<?php 2$conditions = array('LIMIT' => LIMIT_COMMENTS, 44 IF(date('m') == $birthday[1] AND date('d') < $birthday[2]) $alter -=1; 45 $next = @mktime(0,0,0,$birthday[1],$birthday[2],$birthday[0] + $alter + 1) - time(); 46 $tpl->assign('alter', $alter); 217 IF(date('m') == $birthday[1] AND date('d') < $birthday[2]) $alter -=1; 218 $next = @mktime(0,0,0,$birthday[1],$birthday[2],$birthday[0] + $alter + 1) - time(); 219 $row['alter'] = $alter;Bookings.php https://github.com/craigrodway/classroombookings.git | PHP | 542 lines
1<?php 2defined('BASEPATH') OR exit('No direct script access allowed'); 159 } 160 $query['date'] = date("Y-m-d", mktime(0, 0, 0, $datearr[1], $datearr[0], $datearr[2])); 161 } else { 444 $date_arr = explode('/', $this->input->post('date')); 445 $booking_data['date'] = date("Y-m-d", mktime(0, 0, 0, $date_arr[1], $date_arr[0], $date_arr[2])); 446 $booking_data['day_num'] = NULL;ezdate.php https://github.com/zerustech/ezpublish.git | PHP | 317 lines
71 $arr = getdate( $date ); 72 $date = mktime( 0, 0, 0, $arr['mon'], $arr['mday'], $arr['year'] ); 73 } 155 $arr = getdate( $this->Date ); 156 $this->Date = mktime( 0, 0, 0, $arr['mon'], $arr['mday'], $year ); 157 } 207 if ( $year != 0 ) 208 $date = mktime( 0, 0, 0, $month, $day, $year ); 209 else if ( $day != 0 ) 209 else if ( $day != 0 ) 210 $date = mktime( 0, 0, 0, $month, $day ); 211 else 286 /*! 287 \deprecated This function is deprecated in PHP5, use the PHP5 clone keyword instead 288 Creates an exact copy of this object and returns it.module.php https://github.com/sergiygladkyy/OEF.git | PHP | 213 lines
1<?php 2/** 129 130 $start = mktime(0,0,0, date('m', $ts), date('d', $ts) + 7 - $day, date('Y')); 131 $end = MVacation::getEndDate($hist['Schedule'], date('Y-m-d', $start), $total[0]['VacationDays']);date.php https://gitlab.com/vince.omega/mcb-nov-build | PHP | 405 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 4 * 5 * $Id: date.php 4316 2009-05-04 01:03:54Z kiall $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 52 53 return mktime($hrs, $min, $sec, $mon, $day, $year + 1980); 54 } 57 * Returns the offset (in seconds) between two time zones. 58 * @see http://php.net/timezones 59 * 228 // Use date to find the number of days in the given month 229 $total = date('t', mktime(1, 0, 0, $month, 1, $year)) + 1; 230Abstract.php https://bitbucket.org/jokusafet/magento2.git | PHP | 244 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 149 */ 150 public function mktime($str) 151 {generate-d7-content.sh https://gitlab.com/mohamed_hussein/prodt | Shell | 318 lines
1#!/usr/bin/env php 2<?php 12 * - Use the dump-database-d7.sh to generate the D7 file 13 * modules/simpletest/tests/upgrade/database.filled.php 14 */ 16// Define settings. 17$cmd = 'index.php'; 18define('DRUPAL_ROOT', getcwd()); 19$_SERVER['HTTP_HOST'] = 'default'; 20$_SERVER['PHP_SELF'] = '/index.php'; 21$_SERVER['REMOTE_ADDR'] = '127.0.0.1'; 24$_SERVER['QUERY_STRING'] = ''; 25$_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI'] = '/'; 26$_SERVER['HTTP_USER_AGENT'] = 'console'; 52 $mail = "test$i@example.com"; 53 $now = mktime(0, 0, 0, 1, $i + 1, 2010); 54 $query->values(array(db_next_id(), $name, user_hash_password($pass), $mail, 1, $now, $now));calendar.php https://github.com/smgladkovskiy/kohana_calendar.git | PHP | 361 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 4 * 5 * $Id: Calendar.php 3769 2008-12-15 00:48:56Z zombor $ 6 * 10 * @copyright (c) 2007-2008 Kohana Team 11 * @license http://kohanaphp.com/license.html 12 */ 211 // First day of the month as a timestamp 212 $first = mktime(1, 0, 0, $this->month, 1, $this->year); 213 217 // Last day of the month as a timestamp 218 $last = mktime(1, 0, 0, $this->month, $total, $this->year); 219 234 // Number of days in the previous month 235 $n = (int) date('t', mktime(1, 0, 0, $this->month - 1, 1, $this->year)); 236add.php https://github.com/fentie/joind.in.git | PHP | 303 lines
1<?php 2// predefine some vars 27 28<?php if (!empty($msg) || !empty($this->validation->error_string)): ?> 29<?php 32?> 33<?php endif; ?> 34 37 <label for="event_name">Event Name:</label> 38 <?php echo form_input('event_name',$this->validation->event_name); ?> 39 </div> 45 <td style="padding-right:10px"> 46 <img src="/inc/img/event_icons/<?php echo $curr_img; ?>"/> 47 </td> 62 <label for="event_start">Event Start:</label> 63 <?php 64 foreach(range(1,12) as $v){tca.php https://github.com/papapapagei/rr.git | PHP | 351 lines
1<?php 2if (!defined ('TYPO3_MODE')) die ('Access denied.'); 73 'range' => array ( 74 'upper' => mktime(3, 14, 7, 1, 19, 2038), 75 'lower' => mktime(0, 0, 0, date('m')-1, date('d'), date('Y')) 198 'icon' => 'link_popup.gif', 199 'script' => 'browse_links.php?mode=wizard', 200 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1' 291 'range' => array ( 292 'upper' => mktime(3, 14, 7, 1, 19, 2038), 293 'lower' => mktime(0, 0, 0, date('m')-1, date('d'), date('Y')) 321 'icon' => 'link_popup.gif', 322 'script' => 'browse_links.php?mode=wizard', 323 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'WindDate.php https://gitlab.com/wuhang2003/phpwind | PHP | 332 lines
1<?php 2/** 5 * @author Qian Su <aoxue.1988.su.qian@163.com> 6 * @copyright ©2003-2103 phpwind.com 7 * @license http://www.windframework.com 7 * @license http://www.windframework.com 8 * @version $Id: WindDate.php 2973 2011-10-15 19:22:48Z yishuo $ 9 * @package utility 128 } 129 return self::format($format, mktime($date["hours"], $date["minutes"], $date["seconds"], $date["mon"], $date["mday"], $date["year"])); 130 }Human.php https://bitbucket.org/valmy/openx.git | PHP | 188 lines
1<?php 2// 3// +----------------------------------------------------------------------+ 4// | PHP Version 4 | 5// +----------------------------------------------------------------------+ 5// +----------------------------------------------------------------------+ 6// | Copyright (c) 1997-2003 The PHP Group | 7// +----------------------------------------------------------------------+ 7// +----------------------------------------------------------------------+ 8// | This source file is subject to version 2.0 of the PHP license, | 9// | that is bundled with this package in the file LICENSE, and is | 10// | available at through the world-wide-web at | 11// | http://www.php.net/license/2_02.txt. | 12// | If you did not receive a copy of the PHP license and are unable to | 13// | obtain it through the world-wide-web, please send a note to | 14// | license@php.net so we can mail you a copy immediately. | 15// +----------------------------------------------------------------------+reportDate_merged.php https://github.com/joelbrock/is4c_nofc.git | PHP | 348 lines
1<?php 2// 23 24include('../src/functions.php'); 25include('reportFunctions.php'); 25include('reportFunctions.php'); 26// include('../src/datediff.php'); 27require_once('../define.conf'); 31<BODY BGCOLOR = 'FFCC99' > <font SIZE=2> 32<?php 33$bgcolor = 'FFCC99'; 47$dateArray = explode("-",$date); 48$db_date = date('Y-m-d', mktime(0, 0, 0, $dateArray[1], $dateArray[2], $dateArray[0])); 49 276echo '<h2>Sales - Gross & NET</h2>'; 277include('net.php'); 278echo "<table border=0><tr><td><b>sales (gross) total</b></td><td align=right><b>".money_format('%n',$gross)."</b></td></tr>";Report.php https://gitlab.com/vincent.perdereau/picandparts | PHP | 335 lines
1<?php 2 10 * It is also available through the world-wide-web at this URL: 11 * http://opensource.org/licenses/osl-3.0.php 12 * 16 * @copyright Copyright CedCommerce (http://cedcommerce.com/) 17 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 18 */ 116 $results[$i] = array( 117 'month' => date('M', mktime(0, 0, 0, $i)), 118 'total' => 0Month.php https://github.com/wrobel/horde-fw3.git | PHP | 253 lines
1<?php 2 2 3require_once KRONOLITH_BASE . '/lib/Day.php'; 4 8 * 9 * $Horde: kronolith/lib/Views/Month.php,v 1.17.2.3 2009-11-07 14:34:57 jan Exp $ 10 * 128 $showTime = Kronolith::viewShowTime(); 129 $day_url = Horde::applicationUrl('day.php'); 130 $this_link = $this->link(0, true); 130 $this_link = $this->link(0, true); 131 $new_url = Util::addParameter(Horde::applicationUrl('new.php'), 'url', $this_link); 132 $new_img = Horde::img('new_small.png', '+'); 153 } 154 if (mktime(0, 0, 0) == $daystamp) { 155 $style = 'today';date.php https://github.com/bet0x/forkcms.git | PHP | 432 lines
1<?php 2 164 // create (default) time 165 return mktime($hour, $minute, $second, $month, $day, $year); 166 }appointments.inc.php https://github.com/kgenaidy/openemr.git | PHP | 373 lines
1<?php 2 170 } 171 $thistime = mktime(0, 0, 0, $adate['mon'], $adate['mday'], $adate['year']); 172 }component.php https://gitlab.com/alexprowars/bitrix | PHP | 189 lines
7if ($arParams["REGISTER_PAGE"] == '') 8 $arParams["REGISTER_PAGE"] = "register.php"; 9 46 { 47 $filter_date_from = date($DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")), mktime(0, 0, 0, date("m") - 3, 1, date("Y"))); 48 $filter_date_to = date($DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")), mktime(0, 0, 0, date("m"), date("d") + 1, date("Y")));addads.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 156 lines
1<?php 2 30 $upload_blocked = $lang_module['upload_blocked']; 31 include ( NV_ROOTDIR . "/includes/header.php" ); 32 echo nv_site_theme( $upload_blocked ); 32 echo nv_site_theme( $upload_blocked ); 33 include ( NV_ROOTDIR . "/includes/footer.php" ); 34 exit(); 38 $xtpl->assign( 'NV_BASE_URLSITE', NV_BASE_SITEURL ); 39 $xtpl->assign( 'clientinfo_link', NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=clientinfo" ); 40 $xtpl->assign( 'clientinfo_addads', NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=addads" ); 40 $xtpl->assign( 'clientinfo_addads', NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=addads" ); 41 $xtpl->assign( 'clientinfo_stats', NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=stats" ); 42 $xtpl->parse( 'main.management' ); 74 { 75 @require_once ( NV_ROOTDIR . "/includes/class/upload.class.php" ); 76 $upload = new upload( $file_allowed_ext, $global_config['forbid_extensions'], $global_config['forbid_mimes'], NV_UPLOAD_MAX_FILESIZE, NV_MAX_WIDTH, NV_MAX_HEIGHT );function.microtime.html https://bitbucket.org/thncr/manuals.git | HTML | 67 lines
9 <div class="prev" style="text-align: left; float: left;"><a href="function.localtime.html">localtime</a></div> 10 <div class="next" style="text-align: right; float: right;"><a href="function.mktime.html">mktime</a></div> 11 <div class="up"><a href="ref.datetime.html">Date/Time 函数</a></div> 11 <div class="up"><a href="ref.datetime.html">Date/Time 函数</a></div> 12 <div class="home"><a href="index.html">PHP Manual</a></div> 13</div><hr /><div id="function.microtime" class="refentry"> 15 <h1 class="refname">microtime</h1> 16 <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">microtime</span> — <span class="dc-title">返回当前 Unix 时间戳和微秒数</span></p> 17 49<div class="phpcode"><code><span style="color: #000000"> 50<span style="color: #0000BB"><?php<br /></span><span style="color: #FF8000">/**<br /> * Simple function to replicate PHP 5 behaviour<br /> */<br /></span><span style="color: #007700">function </span><span style="color: #0000BB">microtime_float</span><span style="color: #007700">()<br />{<br /> list(</span><span style="color: #0000BB">$usec</span><span style="color: #007700">, </span><span style="color: #0000BB">$sec</span><span style="color: #007700">) = </span><span style="color: #0000BB">explode</span><span style="color: #007700">(</span><span style="color: #DD0000">" "</span><span style="color: #007700">, </span><span style="color: #0000BB">microtime</span><span style="color: #007700">());<br /> return ((float)</span><span style="color: #0000BB">$usec </span><span style="color: #007700">+ (float)</span><span style="color: #0000BB">$sec</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #0000BB">$time_start </span><span style="color: #007700">= </span><span style="color: #0000BB">microtime_float</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">// Sleep for a while<br /></span><span style="color: #0000BB">usleep</span><span style="color: #007700">(</span><span style="color: #0000BB">100</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$time_end </span><span style="color: #007700">= </span><span style="color: #0000BB">microtime_float</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$time </span><span style="color: #007700">= </span><span style="color: #0000BB">$time_end </span><span style="color: #007700">- </span><span style="color: #0000BB">$time_start</span><span style="color: #007700">;<br /><br />echo </span><span style="color: #DD0000">"Did nothing in </span><span style="color: #0000BB">$time</span><span style="color: #DD0000"> seconds\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?></span> 51</span> 63 <div class="prev" style="text-align: left; float: left;"><a href="function.localtime.html">localtime</a></div> 64 <div class="next" style="text-align: right; float: right;"><a href="function.mktime.html">mktime</a></div> 65 <div class="up"><a href="ref.datetime.html">Date/Time 函数</a></div>wp-mail.php https://github.com/weissms/owb-mirror.git | PHP | 176 lines
1<?php 2require(dirname(__FILE__) . '/wp-config.php'); 3 4require_once(ABSPATH.WPINC.'/class-pop3.php'); 5 105 $time_zn = intval($date_arr[4]) * 36; 106 $ddate_U = gmmktime($ddate_H, $ddate_i, $ddate_s, $ddate_m, $ddate_d, $ddate_Y); 107 $ddate_U = $ddate_U - $time_zn;top.inc.php https://github.com/sangyuanyuan/fanqie.git | PHP | 290 lines
28 <?php $xsb=$db->query('select id from smg_category where name="星尚榜"'); ?> 29 <div id=context><a target="_blank" href="/news/news_list.php?id=<?php echo $xsb[0]->id;?>" target="_blank" style="color:#ff0000;font-weight:bold">星尚榜</a> <a href="/zone/" target="_blank" style="color:#ff0000;font-weight:bold">番茄个性版</a> <a id=line3 style="font-weight:bold; color:#0B0B8D;" href="http://172.27.203.81:8080/news/news/news.php?id=25939" target="_blank" >电脑防毒软件升级</a> <a href="http://172.27.203.88/emailfront/emailfront.htm" target="_blank">企业邮箱</a> <a href="#">新节目</a> <a href="#">直播</a> <a href="/contact/contact.php" target="_blank">联系我们</a> <span onclick="javascript:document.getElementById('toolcontent').style.display='inline'">常用办公软件</span></div> 30 <a id=home href="/home/" target="_blank"><img src="/images/top/jiayuan.gif" border=0></a> 59 <div id=fd_r> 60 <a target="_blank" href="/news/news/news.php?id=<?php echo $banner[0]->id; ?>"><?php echo $banner[0]->title; ?></a> <a target="_blank" href="/news/news/news.php?id=<?php echo $banner[1]->id; ?>"><?php echo $banner[1]->title; ?></a> 61 </div> 75 <?php for($i=8*$j;$i<8*($j+1);$i++) { ?> 76 <li><?php if($i%4==0){?><b><?php }?><a href="<?php echo $nav[$i]->href;?>"><?php echo $nav[$i]->name;?></a><?php if($i%4==0){?></b><?php }?></li> 77 <?php }?> 80 <div id=weather> 81 <iframe src="/index_weather<?php if($nowday=="2010-04-01"){ ?>1<?php } ?>.html" width=135px height=22px scrolling="no" frameborder="0"></iframe> 82 </div> 115 ?> 116 <input type="hidden" id="birthday1" style="display:none" value="<?php echo $birthday1[0]->num; ?>"><input type="hidden" style="display:none" id="birthday2" value="<?php echo $birthday2[0]->num; ?>"> 117 <div id=login>frame.php git://github.com/yui/yui3.git | PHP | 0 lines
64<div id="stub"> 65<?php 66$count = ($_GET['count']) ? $_GET['count'] : 2; 86</div> 87<script type="text/javascript" src="../../build/yui/yui-debug.js?bust=<?php echo(mktime()); ?>"></script> 88<script type="text/javascript" src="js/frame.js?bust=<?php echo(mktime()); ?>"></script>index.php https://github.com/benhorns/daniel.git | PHP | 389 lines
1<?php if (!defined('SITE')) exit('No direct script access allowed'); 2 34 $yr = substr($today,0,4); 35 $thirtydays = date('Y-m-d', mktime('00', '00', '00', $mn-1, $day, $yr)); 36 254 $yr = substr($today,0,4); 255 $thirtydays = date('Y-m-d', mktime('00', '00', '00', $mn-1, $day, $yr)); 256 342 $yr = substr($today,0,4); 343 $thirtydays = date('Y-m-d', mktime('00', '00', '00', $mn-1, $day, $yr)); 344ViewTestData.php https://gitlab.com/mohamed_hussein/prodt | PHP | 274 lines
1<?php 2 239 'job' => 'Singer', 240 'created' => gmmktime(0, 0, 0, 1, 1, 2000), 241 'status' => 1, 246 'job' => 'Singer', 247 'created' => gmmktime(0, 0, 0, 1, 2, 2000), 248 'status' => 0, 253 'job' => 'Drummer', 254 'created' => gmmktime(6, 30, 30, 1, 1, 2000), 255 'status' => 1, 260 'job' => 'Songwriter', 261 'created' => gmmktime(6, 0, 0, 1, 1, 2000), 262 'status' => 0, 267 'job' => 'Speaker', 268 'created' => gmmktime(6, 30, 10, 1, 1, 2000), 269 'status' => 1,function.html_select_date.php https://github.com/md-tech/openemr.git | PHP | 302 lines
1<?php 2/** 24 * day values (Marcus Bointon) 25 * @link http://smarty.php.net/manual/en/language.function.html.select.date.php {html_select_date} 26 * (Smarty online manual) 52 $reverse_years = true; 53 /* Should the select boxes be part of an array when returned from PHP? 54 e.g. setting it to "birthday", would create "birthday[Day]", 164 for ($i = 1; $i <= 12; $i++) { 165 $month_names[$i] = xl( strftime($month_format, mktime(0, 0, 0, $i, 1, 2000)) ); 166 $month_values[$i] = strftime($month_value_format, mktime(0, 0, 0, $i, 1, 2000));php.js https://gitlab.com/juanito.abelo/nlmobile | JavaScript | 132 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 130 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 131 CodeMirror.defineMIME("text/x-php", phpConfig); 132})();Sqlite.php https://github.com/bhaumik25/zend-framework.git | PHP | 406 lines
1<?php 2 26 */ 27require_once 'Zend/Cache/Backend/Interface.php'; 28 31 */ 32require_once 'Zend/Cache/Backend.php'; 33 162 $data = @sqlite_escape_string($data); 163 $mktime = time(); 164 if (is_null($lifetime)) { 166 } else { 167 $expire = $mktime + $lifetime; 168 } 169 @sqlite_query($this->_db, "DELETE FROM cache WHERE id='$id'"); 170 $sql = "INSERT INTO cache (id, content, lastModified, expire) VALUES ('$id', '$data', $mktime, $expire)"; 171 $res = @sqlite_query($this->_db, $sql);Sqlite.php https://github.com/bhaumik25/zend-framework.git | PHP | 406 lines
1<?php 2 26 */ 27require_once 'Zend/Cache/Backend/Interface.php'; 28 31 */ 32require_once 'Zend/Cache/Backend.php'; 33 162 $data = @sqlite_escape_string($data); 163 $mktime = time(); 164 if (is_null($lifeTime)) { 166 } else { 167 $expire = $mktime + $lifeTime; 168 } 169 @sqlite_query($this->_db, "DELETE FROM cache WHERE id='$id'"); 170 $sql = "INSERT INTO cache (id, content, lastModified, expire) VALUES ('$id', '$data', $mktime, $expire)"; 171 $res = @sqlite_query($this->_db, $sql);ConvertDate.php https://github.com/Canop/braldahim.git | PHP | 258 lines
1<?php 2 11 12 /* Convertit un date mysql vers une date php 13 * @return date 16 $mdate = explode("-", $pdate); 17 return date($pattern, mktime(0,0,0,$mdate[1],$mdate[2],$mdate[0])); 18 } 19 20 /* Convertit un datetime mysql vers une date php 21 * @return date 26 $time = explode(":", $break[1]); 27 return date($pattern, mktime($time[0],$time[1],$time[2],$datebreak[1],$datebreak[2],$datebreak[0])); 28 } 36 $time = explode(":", $break[1]); 37 $epoch = date("U", mktime($time[0],$time[1],$time[2],$datebreak[1],$datebreak[2],$datebreak[0])); 38 return $epoch;Date.php https://gitlab.com/techniconline/kmc | PHP | 409 lines
1<?php 2 3/** 4 * PHPExcel 5 * 5 * 6 * Copyright (c) 2006 - 2014 PHPExcel 7 * 23 * @package PHPExcel_Shared 24 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 25 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 34 * @package PHPExcel_Shared 35 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 36 */ 138 $returnValue = round($utcDays * 86400); 139 if (($returnValue <= PHP_INT_MAX) && ($returnValue >= -PHP_INT_MAX)) { 140 $returnValue = (integer)$returnValue;CUtils.php https://bitbucket.org/haichau59/manga.git | PHP | 193 lines
1<?php 2 16 * Log a msg as custom level "CUtils::Debug" 17 * You need to add this level ("CUtils::Debug") to log component in config/main.php : 18 * <code> 85 preg_match($format, $dateString, $dateInfo); 86 $unixTimestamp = mktime( 87 $dateInfo['hour'], $dateInfo['minute'], $dateInfo['second'],Date.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 337 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 121 } else { 122 $timestamp += mktime(0, 0, 0, $value['month'], $value['day'], $value['year']); 123 } 124 } else { 125 $timestamp += mktime(0, 0, 0, date('m'), date('d'), date('Y')); 126 }calendar.php https://github.com/planetenkiller/TimeIt-zk-12.git | PHP | 243 lines
1<?php 2/** 12 13Loader::requireOnce('modules/TimeIt/common.php'); 14 14 15// ensure that the TimeIt pntables.php is loaded 16pnModDBInfoLoad('TimeIt'); 84 85 $startStamp = DateUtil::getDatetime(mktime(0,0,0,$date['mon'], $date['mday'], $date['year']), DATEONLYFORMAT_FIXED); 86 if($vars['viewType'] == 'upcoming') {index.php https://github.com/andrerezende/SIE.git | PHP | 111 lines
22$_SESSION["Gpaginaeditar"] ="ead-editar.php"; 23$_SESSION["Gpaginaimpressao"] ="ead-impressao.php"; 24$_SESSION["Gpaginacadastro"] ="ead-cadastro.php"; 28 29<?php include_once 'inc.path.php';?> 30<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 32<head> 33 <title> <?php echo ($_SESSION["Gnomeprocessoseletivo"]);?> </title> 34 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> 63 <div id="topo2Texto"> 64 <?php echo ($_SESSION["Gnomeprocessoseletivo"]);?> 65 </div> 73 <ul class="menu"> 74 <li><a href="index.php?sc=Inicial">Página Inicial</a></li> 75 <li><a href="index.php?sc=Inscricao">Nova Inscrição</a></li>batch_reminders.php https://github.com/med2000/openemr.git | PHP | 202 lines
1<?php 2// Copyright (C) 2010 OpenEMR Support LLC 14$ignoreAuth=1; 15require_once(dirname(__FILE__)."/../../interface/globals.php"); 16include_once("$srcdir/sql.inc"); 16include_once("$srcdir/sql.inc"); 17include_once("$srcdir/formdata.inc.php"); 18?> 20<head> 21<?php html_header_show();?> 22<link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css"> 25<body class="body_top"> 26<span class="title"><?php echo htmlspecialchars(xl('Patient Reminder Batch Job'), ENT_QUOTES)?></span> 27<table> 29 <td class='text' align='left' colspan="3"><br> 30 <span class="text"><?php echo htmlspecialchars(xl('The patient reminders have been processed according their scheduled dates.'), ENT_QUOTES)?></span><br><br> 31 <span class="text"><?php echo htmlspecialchars(xl('Email delivery is immediate, while automated VOIP is sent to the service provider for further processing.'), ENT_QUOTES)?></span><br><br>quete_calendrier.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 279 lines
1<?php 2 30function quete_calendrier_mois($annee,$mois,$jour) { 31 $avant = "'" . date("Y-m-d", mktime(0,0,0,$mois,1,$annee)) . "'"; 32 $apres = "'" . date("Y-m-d", mktime(0,0,0,$mois+1,1,$annee)) . 38function quete_calendrier_semaine($annee,$mois,$jour) { 39 $w_day = date("w", mktime(0,0,0,$mois, $jour, $annee)); 40 if ($w_day == 0) $w_day = 7; // Gaffe: le dimanche est zero 41 $debut = $jour-$w_day; 42 $avant = "'" . date("Y-m-d", mktime(0,0,0,$mois,$debut,$annee)) . "'"; 43 $apres = "'" . date("Y-m-d", mktime(1,1,1,$mois,$debut+7,$annee)) . 51function quete_calendrier_jour($annee,$mois,$jour) { 52 $avant = "'" . date("Y-m-d", mktime(0,0,0,$mois,$jour-1,$annee)) . "'"; 53 $apres = "'" . date("Y-m-d", mktime(1,1,1,$mois,$jour+1,$annee)) . 203 $j ++; 204 $ladate = date("Y-m-d",mktime (1,1,1,$mois_avant, ($j + $jour_avant), $annee_avant)); 205ModuleGraph.php https://bitbucket.org/enurkov/prestashop.git | PHP | 334 lines
1<?php 2/* 9* It is also available through the world-wide-web at this URL: 10* http://opensource.org/licenses/osl-3.0.php 11* If you did not receive a copy of the license and are unable to 22* @copyright 2007-2012 PrestaShop SA 23* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 87 { 88 $imax = date('t', mktime(0, 0, 0, $from_array['mon'], 1, $from_array['year'])); 89 for ($i = $from_array['mday']; $i <= $imax; ++$i) 170 171 // @todo use native CSV PHP functions ? 172 // Generate first line (column titles) 235 die(Tools::displayError()); 236 if (!Tools::file_exists_cache($file = _PS_ROOT_DIR_.'/modules/'.$render.'/'.$render.'.php')) 237 die(Tools::displayError());list.php https://bitbucket.org/speedealing/speedealing.git | PHP | 341 lines
1<?php 2/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> 22 23require("../main.inc.php"); 24require_once(DOL_DOCUMENT_ROOT . "/contact/class/contact.class.php"); 24require_once(DOL_DOCUMENT_ROOT . "/contact/class/contact.class.php"); 25require_once(DOL_DOCUMENT_ROOT . "/agenda/class/agenda.class.php"); 26require_once(DOL_DOCUMENT_ROOT . "/core/lib/date.lib.php"); 26require_once(DOL_DOCUMENT_ROOT . "/core/lib/date.lib.php"); 27require_once(DOL_DOCUMENT_ROOT . "/agenda/lib/agenda.lib.php"); 28if (!empty($conf->projet->enabled)) 28if (!empty($conf->projet->enabled)) 29 require_once(DOL_DOCUMENT_ROOT . "/core/lib/project.lib.php"); 30 70 71 /* $params = array('startkey' => array($user->id, mktime(0, 0, 0, date("m") - 1, date("d"), date("Y"))), 72 'endkey' => array($user->id, mktime(0, 0, 0, date("m") + 1, date("d"), date("Y")))); */ext_datetime.h https://github.com/soitun/hiphop-php.git | C Header | 256 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | 6 | Copyright (c) 1997-2010 The PHP Group | 7 +----------------------------------------------------------------------+ 7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.txt | 12 | If you did not receive a copy of the PHP license and are unable to | 13 | obtain it through the world-wide-web, please send a note to | 14 | license@php.net so we can mail you a copy immediately. | 15 +----------------------------------------------------------------------+agent_calendar_by_year.php https://bitbucket.org/anneivycat/california-tour.git | PHP | 333 lines
231<a href="agent_calendar_by_year.php?city=<?php echo $city; ?>&year=<?php echo $year; ?>&month=1">jan</a> 232<a href="agent_calendar_by_year.php?city=<?php echo $city; ?>&year=<?php echo $year; ?>&month=2">feb</a> 233<a href="agent_calendar_by_year.php?city=<?php echo $city; ?>&year=<?php echo $year; ?>&month=3">mar</a> 234<a href="agent_calendar_by_year.php?city=<?php echo $city; ?>&year=<?php echo $year; ?>&month=4">apr</a> 235<a href="agent_calendar_by_year.php?city=<?php echo $city; ?>&year=<?php echo $year; ?>&month=5">may</a> 236<a href="agent_calendar_by_year.php?city=<?php echo $city; ?>&year=<?php echo $year; ?>&month=6">june</a> 237<a href="agent_calendar_by_year.php?city=<?php echo $city; ?>&year=<?php echo $year; ?>&month=7">july</a> 238<a href="agent_calendar_by_year.php?city=<?php echo $city; ?>&year=<?php echo $year; ?>&month=8">aug</a> 239<a href="agent_calendar_by_year.php?city=<?php echo $city; ?>&year=<?php echo $year; ?>&month=9">sept</a> 239<a href="agent_calendar_by_year.php?city=<?php echo $city; ?>&year=<?php echo $year; ?>&month=9">sept</a> 240<a href="agent_calendar_by_year.php?city=<?php echo $city; ?>&year=<?php echo $year; ?>&month=10">oct</a> 241<a href="agent_calendar_by_year.php?city=<?php echo $city; ?>&year=<?php echo $year; ?>&month=11">nov</a> 241<a href="agent_calendar_by_year.php?city=<?php echo $city; ?>&year=<?php echo $year; ?>&month=11">nov</a> 242<a href="agent_calendar_by_year.php?city=<?php echo $city; ?>&year=<?php echo $year; ?>&month=12">dec</a> 243</font>handle_signups_ajax.php https://github.com/cwarren/sus.git | PHP | 305 lines
1<?php 2 7 8require_once('../../config.php'); 9require_once($CFG->libdir.'/moodlelib.php'); 23 24include_once 'sus_lib.php'; 25 148 { 149 include_once 'cal_lib.php'; // for openingDisplay below 150 161 . $sheet_complex->openings[0]->signups_by_id[$ns_id]->user->usr_lastname . $sep; 162 echo $admincomment . $sep . mktime(); 163 } else 220 221 include_once 'cal_lib.php'; // for openingDisplay below 222 $sheet_complex = getStructuredSheetData($sheet_id,0,$opening_id);structure.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 416 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 227 public function get_weekday($year, $month, $day) { 228 return intval(date('w', mktime(12, 0, 0, $month, $day, $year))); 229 } 238 public function get_num_days_in_month($year, $month) { 239 return intval(date('t', mktime(0, 0, 0, $month, 1, $year))); 240 } 305 306 if (!empty($CFG->nofixday)) { // Config.php can force %d not to be fixed. 307 $fixday = false; 314 // Note: This logic about fixing 12-hour time to remove unnecessary leading 315 // zero is required because on Windows, PHP strftime function does not 316 // support the correct 'hour without leading zero' parameter (%l). 317 if (!empty($CFG->nofixhour)) { 318 // Config.php can force %I not to be fixed. 319 $fixhour = false;mfd.inc.php https://github.com/drietsch/newcms.git | PHP | 214 lines
1<?php 2/** 21 22include_once ($_SERVER["DOCUMENT_ROOT"] . "/webEdition/we/include/we.inc.php"); 23include_once ($_SERVER["DOCUMENT_ROOT"] . "/webEdition/we/include/we_language/" . $GLOBALS["WE_LANGUAGE"] . "/cockpit.inc.php"); 23include_once ($_SERVER["DOCUMENT_ROOT"] . "/webEdition/we/include/we_language/" . $GLOBALS["WE_LANGUAGE"] . "/cockpit.inc.php"); 24include_once ($_SERVER["DOCUMENT_ROOT"] . "/webEdition/we/include/we_language/" . $GLOBALS["WE_LANGUAGE"] . "/date.inc.php"); 25include_once ($_SERVER["DOCUMENT_ROOT"] . "/webEdition/we/include/we_classes/we_history.class.php"); 36 case 1 : 37 $timestamp = mktime(0, 0, 0, date('m'), date('d'), date('Y')); 38 break; 40 $iTime = time() - (7 * 24 * 60 * 60); 41 $timestamp = mktime( 42 date('H', $iTime), 50 $iTime = time() - (30 * 24 * 60 * 60); 51 $timestamp = mktime( 52 date('H', $iTime),Calendar_Event.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 297 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 4 * 5 * $Id: Calendar_Event.php 3769 2008-12-15 00:48:56Z zombor $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 142 // Get a timestamp for the day 143 $timestamp = mktime(0, 0, 0, $month, $day, $year); 144Calendar_Event.php https://github.com/yamamoto123/Ushahidi_Web.git | PHP | 297 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 4 * 5 * $Id: Calendar_Event.php 3917 2009-01-21 03:06:22Z zombor $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 142 // Get a timestamp for the day 143 $timestamp = mktime(0, 0, 0, $month, $day, $year); 144api.py https://github.com/analogue/mythbox.git | Python | 233 lines
30from datetime import date 31from time import mktime, strptime 32 45 try: 46 self.airdate = date.fromtimestamp(mktime( 47 strptime(airdate, '%Y-%m-%d'))) 117 this class is kind of a wrapper around the following of tvrage's xml feeds: 118 * http://www.tvrage.com/feeds/search.php?show=SHOWNAME 119 * http://www.tvrage.com/feeds/episode_list.php?sid=SHOWID 160 pass # TODO: adding handeling for specials and movies 161 # bsp: http://www.tvrage.com/feeds/episode_list.php?sid=3519 162 else:table-mini.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 133 lines
1<?php 2/** 4* 5* You can customize this view by putting a replacement file of the same name (table-mini.php) in the events/ directory of your theme. 6*/ 35list( $year, $month ) = split( '-', $current_date ); 36$date = mktime(12, 0, 0, $month, 1, $year); // 1st day of month as unix stamp 37$rawOffset = date("w", $date) - $startOfWeek; 46 <span id="tribe-mini-ajax-month"> 47 <?php echo $tribe_ecp->monthsShort[date('M',$date)]; echo date(' Y',$date); ?> 48 </span> 52 <tr> 53 <?php 54 109 110<a class="tribe-view-all-events" href="<?php echo tribe_get_events_link(); ?>"><?php _e('View all »', 'tribe-events-calendar'); ?></a> 111register.php https://gitlab.com/nvtdn2006/azora | PHP | 284 lines
1<?php require_once './includes/application.php'; $this->template = 'registration'; $this->title = 'Registration'; ?> 2 107 //$activation_link = $config['PRMSConfig']->live_site . '/activate.php?atk=' . $customer['activation_key'] . '&id=' . $cryptographer->Encrypt($customer['id']); 108 $activation_link = $config['PRMSConfig']->live_site . '/activate.php?atk=' . $customer['activation_key'] . '&id=' . $customer['id']; 109 194 <td class="LabelCell Required">Name</td> 195 <td><input type="text" name="name" id="name" maxlength="255" class="input Required" value="<?php echo $customer['name']; ?>" size="20" tabindex="20" /></td> 196 </tr> 202 <td class="LabelCell">Address</td> 203 <td><input type="text" name="address" id="address" maxlength="500" class="input" value="<?php echo $customer['address']; ?>" size="20" tabindex="40" /></td> 204 </tr> 255 <td> 256 <img src="components/cool.php.captcha/captcha.php" id="captcha" /> 257 <!-- CHANGE TEXT LINK --> 258 <a href="#" onclick=" 259 document.getElementById('captcha').src='components/cool.php.captcha/captcha.php?'+Math.random(); 260 document.getElementById('captcha-form').focus();"_Arabic---Glyphs.php.html https://github.com/arphp/I18N_Arabic.git | HTML | 162 lines
38 </a><br> 39 <a href="../I18N_Arabic/_Arabic---CompressStr.php.html"> CompressStr.php 40 </a><br> 52 </a><br> 53 <a href="../I18N_Arabic/_Arabic---Mktime.php.html"> Mktime.php 54 </a><br> 62 </a><br> 63 <a href="../I18N_Arabic/_Arabic---Soundex.php.html"> Soundex.php 64 </a><br> 64 </a><br> 65 <a href="../I18N_Arabic/_Arabic---Standard.php.html"> Standard.php 66 </a><br> 119<h2>Page Details:</h2> 120----------------------------------------------------------------------<br /><br /><p>Copyright (c) 2006-2016 Khaled Al-Sham'aa.</p><p>http://www.ar-php.org</p><p>PHP Version 5</p><p>----------------------------------------------------------------------</p><p>LICENSE</p><p>This program is open source product; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.</p><p>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</p><p>You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/lgpl.txt>.</p><p>----------------------------------------------------------------------</p><p>Class Name: Arabic Glyphs is a simple class to render Arabic text</p><p>Filename: Glyphs.php</p><p>Original Author(s): Khaled Al-Sham'aa <khaled@ar-php.org></p><p>Purpose: This class takes Arabic text (encoded in Windows-1256 character set) as input and performs Arabic glyph joining on it and outputs a UTF-8 hexadecimals stream that is no longer logically arranged but in a visual order which gives readable results when formatted with a simple Unicode rendering just like GD and UFPDF libraries that does not handle basic connecting glyphs of Arabic language yet but simply outputs all stand alone glyphs in left-to-right order.</p><p>----------------------------------------------------------------------</p><p>Arabic Glyphs is class to render Arabic text</p><p>PHP class to render Arabic text by performs Arabic glyph joining on it, then output a UTF-8 hexadecimals stream gives readable results on PHP libraries supports UTF-8.</p><p>Example: <ol><li><div class="src-line"> <span class="src-inc">include</span><span class="src-sym">(</span><span class="src-str">'./I18N/Arabic.php'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> 121<li><div class="src-line"> <span class="src-var">$obj </span>= <span class="src-key">new </span><span class="src-id"><a href="../I18N_Arabic/I18N_Arabic.html">I18N_Arabic</a></span><span class="src-sym">(</span><span class="src-str">'Glyphs'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>InfiniTimeHelperTest.php git://github.com/infinitas/infinitas.git | PHP | 247 lines
1<?php 2App::uses('CakeSession', 'Model/Datasource'); 166 167 $firstDayOfMonth = date('Y-m-d', mktime(date('H'), date('i') , date('s'), date('n'), 1, date('Y'))); 168 $this->assertFalse($this->InfiniTime->isThisMonth($firstDayOfMonth . ' 01:00:00')); 170 171 $firstDayOfYear = date('Y-m-d', mktime(date('H'), date('i') , date('s'), 1, 1, date('Y'))); 172 $this->assertFalse($this->InfiniTime->isThisYear($firstDayOfYear . ' 01:00:00'));fdm_new_popular_lister.php https://github.com/vaughnpaul/NOS.git | PHP | 82 lines
1<?php 2/* 2/* 3 $Id: fdm_new_popular_lister.php,v 1.0.0.0 2008/01/24 13:41:11 Eversun Exp $ 4 14<!-- new_popular_lister_bof //--> 15<?php 16 $list_box_contents = array(); 40 } 41 $month_ago = date('Y-m-d', mktime(0, 0, 0, date('m'), date('d') - 30, date('Y'))); 42 $listing_query = tep_db_query("select files_id, count(*) as number from " . TABLE_LIBRARY_FILES_DOWNLOAD . " where download_time between '" . $month_ago . "' and '" . date('Y-m-d') . "' group by files_id order by number desc limit 5");Calendar.php https://bitbucket.org/jorgenio/codeigniter.git | PHP | 506 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.2.4 or newer 6 * 108 109 if ( ! in_array('calendar_lang.php', $this->CI->lang->is_loaded, TRUE)) 110 { 192 // Set the starting day number 193 $local_date = mktime(12, 0, 0, $month, 1, $year); 194 $date = getdate($local_date); 504 505/* End of file Calendar.php */ 506/* Location: ./system/libraries/Calendar.php */functions.php https://github.com/eoconnell/bayonetcms.git | PHP | 196 lines
1<?php 2/** 31{ 32<?php echo "myWindow = window.open('". Bayonet_Config::$ini['site']['url'] . "blocks/mini_calendar/event.php?date='+date+'','','width=300,height=300');"; ?> 33 myWindow = window.open('blocks/mini_calendar/event.php?date='+date+'','','width=300,height=300') 36</script> 37 <?php 38 function PrintCalendar(){ 49 /* Accounts for the last couple days from the previous months */ 50 $first_day = mktime(0,0,0,$monthNum, 1, $year); 51 89 <td colspan="50" style="vertical-align:middle; text-align:center;"> 90 <!-- <a href="?op=calendar&month=<?php echo $previous_month.'&year='.$previous_year; ?>"><<</a> --> 91 <!-- Month Name and Year --> 91 <!-- Month Name and Year --> 92 <span class="monthTitle"><?php echo strtoupper($title).' '.$year; ?></span> 93 <!-- <a href="?op=calendar&month=<?php echo $next_month.'&year='.$next_year; ?>">>></a> -->date_api.php https://github.com/fusenigk/mantisbt-1.git | PHP | 270 lines
1<?php 2# MantisBT - A PHP based bugtracking system 25 * 26 * @uses config_api.php 27 * @uses constant_inc.php 27 * @uses constant_inc.php 28 * @uses helper_api.php 29 * @uses html_api.php 29 * @uses html_api.php 30 * @uses lang_api.php 31 */ 32 33require_api( 'config_api.php' ); 34require_api( 'constant_inc.php' ); 34require_api( 'constant_inc.php' ); 35require_api( 'helper_api.php' ); 36require_api( 'html_api.php' );index.php https://github.com/CORE-POS/IS4C.git | PHP | 214 lines
1<?php 2 2 3include('../../../config.php'); 4require(__DIR__ . '/../../../src/SQLManager.php'); 4require(__DIR__ . '/../../../src/SQLManager.php'); 5include('../../db.php'); 6 6 7$now = mktime(); 8while(date("N",$now) != 1) 8while(date("N",$now) != 1) 9 $now = mktime(0,0,0,date("n",$now),date("j",$now)-1,date("Y",$now)); 10 100<img src="spacer.png" alt="" /><br /> 101<form action="index.php" method="post"> 102<?phpweb_payment_software.php https://gitlab.com/dadangnh/sb1-bon | PHP | 145 lines
1<?php 2class ControllerExtensionPaymentWebPaymentSoftware extends Controller { 20 $data['months'][] = array( 21 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)), 22 'value' => sprintf('%02d', $i) 31 $data['year_expire'][] = array( 32 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 33 'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))time.in.h https://gitlab.com/wilfred/emacs | C Header | 297 lines
86# if !GNULIB_defined_struct_time_t_must_be_integral 87/* Per http://austingroupbugs.net/view.php?id=327, POSIX requires 88 time_t to be an integer type, even though C99 permits floating 123/* Return the 'time_t' representation of TP and normalize TP. */ 124# if @GNULIB_MKTIME@ 125# if @REPLACE_MKTIME@ 126# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 127# define mktime rpl_mktime 128# endif 128# endif 129_GL_FUNCDECL_RPL (mktime, time_t, (struct tm *__tp) _GL_ARG_NONNULL ((1))); 130_GL_CXXALIAS_RPL (mktime, time_t, (struct tm *__tp)); 131# else 132_GL_CXXALIAS_SYS (mktime, time_t, (struct tm *__tp)); 133# endifextra.php https://bitbucket.org/stavrossk/openmaidos.git | PHP | 145 lines
1<?php 2require_once('functions.php'); 2require_once('functions.php'); 3require_once('process.functions.php'); 4require_once('authentication.php'); 4require_once('authentication.php'); 5require_once('db.php'); 6require_once('archive.php'); 6require_once('archive.php'); 7require_once('maintenance.php'); 8//session_start(); 9 10include('header.php'); 11 144</table> 145<?php include('footer.php'); ?>video.php https://github.com/sangyuanyuan/fanqie.git | PHP | 284 lines
124 <div id=paginate><?php paginate();?></div> 125 <div id=comment_box <?php if($video->commentable!="on"){?>style="display:none;"<?php } ?>> 126 <form id="comment_form" action="/pub/pub.post.php" method="post"> 160 </div> 161 <div class=title><a href="video.php?id=<?php echo $records[$i]->id;?>"><?php echo strip_tags($records[$i]->title);?></a></div> 162 </div> 197 </div> 198 <div class=title><a href="video.php?id=<?php echo $records[$i]->id;?>"><?php echo strip_tags($records[$i]->title);?></a></div> 199 </div> 216 </div> 217 <div class=title><a href="video.php?id=<?php echo $records[$i]->id;?>"><?php echo strip_tags($records[$i]->title);?></a></div> 218 </div> 278 }else{ 279 total("<?php echo $category->name;?>digg","<?php echo $category->platform;?>"); 280 }Calendar_Event.php https://github.com/AlinT/socorro.git | PHP | 297 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 4 * 5 * $Id: Calendar_Event.php 2899 2008-06-25 08:04:09Z armen $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 142 // Get a timestamp for the day 143 $timestamp = mktime(0, 0, 0, $month, $day, $year); 144DateField.php https://github.com/jackbravo/symfony-sandbox.git | PHP | 278 lines
1<?php 2 189 foreach ($months as $month) { 190 $choices[$month] = $this->formatter->format(gmmktime(0, 0, 0, $month)); 191 }shlrsvc_pointexpiration.php https://gitlab.com/nvtdn2006/azora | PHP | 136 lines
1<?php 2/* 4 */ 5require_once './includes/service.php'; 6?> 7 8<?php 9 57 $today = getdate(); 58 $today = new DateTime(date("Y-m-d", mktime(0,0,0,$today['mon'],$today['mday'],$today['year']))); 59lib.php https://github.com/dariusgm/PHPFee.git | PHP | 268 lines
1<?php 2$db=mysql_connect("localhost","portal","psacln"); 9{ 10$tag = date("w",mktime(1,1,1,substr($d,5,2),substr($d,8,2),substr($d,0,4))); 11switch($tag)statistics.php https://gitlab.com/Gashler/sg | PHP | 203 lines
1<?php 2defined('WYSIJA') or die('Restricted access'); 2defined('WYSIJA') or die('Restricted access'); 3require_once(WYSIJA_CORE.'module'.DS.'statistics.php'); // @todo 4 22 */ 23 public $base_url = 'admin.php'; 24 129 'selected' => false, 130 'from' => date($this->date_format, mktime(0, 0, 0, date('m') - 1, 1, date('Y'))), 131 'to' => date($this->date_format, mktime(0, 0, 0, date('m'), 0, date('Y')))tiki-minical.php https://gitlab.com/ElvisAns/tiki | PHP | 181 lines
1<?php 2 9$section = 'calendar'; 10require_once('tiki-setup.php'); 11include_once('lib/minical/minicallib.php'); 32if (isset($_REQUEST['day']) && isset($_REQUEST['mon']) && isset($_REQUEST['year'])) { 33 $pdate = mktime(0, 0, 0, $_REQUEST['mon'], $_REQUEST['day'], $_REQUEST['year']); 34} else { 35 if (isset($_SESSION['thedate'])) { 36 $pdate = mktime(0, 0, 0, date("m", $_SESSION['thedate']), date("d", $_SESSION['thedate']), date("Y", $_SESSION['thedate'])); 37 } else { 47$smarty->assign('year', date("Y", $pdate)); 48$pdate_h = mktime(date("G"), date("i"), date("s"), date("m", $pdate), date("d", $pdate), date("Y", $pdate)); 49$smarty->assign('pdate', $pdate); 63 $info['description'] = ''; 64 $info['start'] = mktime(date("H"), date("i"), date("s"), date("m", $pdate), date("d", $pdate), date("Y", $pdate)); 65 $info['duration'] = 60 * 60;InlineTest.php https://github.com/thewiredman/symfony.git | PHP | 155 lines
1<?php 2 15 16class InlineTest extends \PHPUnit_Framework_TestCase 17{ 25 foreach ($this->getTestsForLoad() as $yaml => $value) { 26 $this->assertEquals($value, Inline::load($yaml), sprintf('::load() converts an inline YAML to a PHP structure (%s)', $yaml)); 27 } 34 foreach ($testsForDump as $yaml => $value) { 35 $this->assertEquals($yaml, Inline::dump($value), sprintf('::dump() converts a PHP structure to an inline YAML (%s)', $yaml)); 36 } 75 76 '2007-10-30' => mktime(0, 0, 0, 10, 30, 2007), 77 '2007-10-30T02:59:43Z' => gmmktime(2, 59, 43, 10, 30, 2007), 77 '2007-10-30T02:59:43Z' => gmmktime(2, 59, 43, 10, 30, 2007), 78 '2007-10-30 02:59:43 Z' => gmmktime(2, 59, 43, 10, 30, 2007), 79session.test.php https://github.com/cgajardo/repositorium.git | PHP | 385 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package cake 16 * @subpackage cake.tests.cases.libs.controller.components 17 * @since CakePHP(tm) v 1.2.0.5436 18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 368 $Session->write('Test', 'some value'); 369 $this->assertEqual($Session->sessionTime, mktime() + (100 * Configure::read('Session.timeout'))); 370 $this->assertEqual($_SESSION['Config']['timeout'], 10);domain_statistics.php https://bitbucket.org/droidzone/i-mscp.git | PHP | 234 lines
1<?php 2/** 87 set_page_message(tr('Domain not found.'), 'error'); 88 redirectTo('index.php'); 89 } else { 106 for ($fromDay = 1; $fromDay <= $toDay; $fromDay++) { 107 $beginTime = mktime(0, 0, 0, $month, $fromDay, $year); 108 $endTime = mktime(23, 59, 59, $month, $fromDay, $year); 155// Include core library 156require 'imscp-lib.php'; 157component.php https://gitlab.com/Rad1calDreamer/honey | PHP | 391 lines
109 "ACTIVE" => "Y", 110 ">=".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$currentMonth,1,$currentYear)), 111 "<".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$currentMonth+1,1,$currentYear)), 130 "ACTIVE" => "Y", 131 "<".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,1,1,$currentYear)), 132 "IBLOCK_ID" => $arParams["IBLOCK_ID"], 145 "ACTIVE" => "Y", 146 "<".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$currentMonth,1,$currentYear)), 147 "IBLOCK_ID" => $arParams["IBLOCK_ID"], 158 { 159 $bCheckNext = mktime(0, 0, 0 ,$currentMonth+1, 1, $currentYear) < mktime(0, 0, 0 ,$todayMonth+1, 1, $todayYear); 160 } 307 308 $tmpDate = date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$m,$d,$y)); 309 if(is_set($arDays[$tmpDate]))ComFunc.php https://github.com/kuc-arc-f/php-test01.git | PHP | 292 lines
1<?php 2 66 $dd = substr($src, 8, 2); 67 $st_dt = mktime(0, 0 , 0, $mm, $dd, $yyyy ); 68 */ 87 88 $st_dt = mktime($start_hh , $start_mm , 0, 1, 1, 2000 ); 89 $end_dt = mktime($end_hh , $end_mm , 0, 1, 1, 2000 ); 106 $s_mm = substr($bef_dt, 5, 2); 107 $now_dt = mktime(1, 0, 0, $s_mm, 1, $s_yy ); 108 $nextmonth = mktime(1, 0, 0, date("m", $now_dt ) +1, 1, date("Y", $now_dt ) ); 125 126 $now_dt = mktime(1, 0, 0, $s_mm, 1, $s_yy ); 127 $nextmonth = mktime(1, 0, 0, date("m", $now_dt ) + $typ, 1, date("Y", $now_dt ) ); 210 //MySmartyクラスの読み込み 211 require_once($_SERVER["DOCUMENT_ROOT"]. "/../libs/MySmarty.class.php"); 212eway.php https://gitlab.com/dadangnh/sb1-bon | PHP | 291 lines
1<?php 2class ControllerExtensionPaymentEway extends Controller { 39 $data['year_expire'][] = array( 40 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 41 'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))index.php https://github.com/panterch/mapsagenda.git | PHP | 511 lines
1 <?php 2 6 7 require("config.php"); 8 27// Innerhalb des Zeitrahmens? 28if(mktime(0, 0, 0, $monat,$tag, $jahr)< 10+mktime(0, 0, 0, $_POST[date10_month],$_POST[date10_date], $_POST[date10_year]) && mktime(0, 0, 0, $monat,$tag, $jahr) > mktime(0, 0, 0, $_POST[date9_month],$_POST[date9_date], $_POST[date9_year])-10){ 29 36 37//if(mktime(0, 0, 0, $monat,'1', $jahr)-60*60*24*45< mktime(0, 0, 0, $_POST[date10_month],$_POST[date10_date], $_POST[date10_year]) && mktime(0, 0, 0, $monat,'28', $jahr)+60*60*24*45 > mktime(0, 0, 0, $_POST[date9_month],$_POST[date9_date], $_POST[date9_year])){ 38//array_unshift ($selektion2,$datei); 157 <td width="224" valign="top"><br /> 158 <a href="index.php" class="titel"> 159 MAPS AGENDA<br /> 166 <tr> 167 <td valign="top" class="untertitel"><FORM action="index.php" method="post" name="datumwahl"> 168<p>1. Zeitraum wählen:SchedulerTest.php https://gitlab.com/rsilveira1987/Expresso | PHP | 393 lines
1<?php 2/** 13 */ 14require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'TestHelper.php'; 15 18 */ 19class Scheduler_SchedulerTest extends PHPUnit_Framework_TestCase 20{ 123 $task = new Zend_Scheduler_Task(); 124 $task->setTime(mktime(23, 59, 59, 12, 31, 2006)); 125 150 $task = new Zend_Scheduler_Task(); 151 $task->setTime(mktime(23, 59, 59, 12, 31, 2006)); 152 165 $task = new Zend_Scheduler_Task(); 166 $task->setTime(mktime(23, 59, 59, 12, 31, 2006)); 167ajxCustomerActions.php https://bitbucket.org/cweiler_cik/mv2.git | PHP | 239 lines
1<?php 2 3session_start(); 4include("../../db.php"); 5include("../../fn.php"); 116 $start = $params['startTime']; 117 $finish = mktime( date("H"), date("i"), date("s"), date("m"), date("d"), date("Y") ); 118 $spId = $params['sp'];day.php https://github.com/jessfishenden/mrbs-mcr.git | PHP | 372 lines
1<?php 2# $Id$ 3 4require_once "grab_globals.inc.php"; 5include "config.inc.php"; 51$dst_change = is_dst($month,$day,$year); 52$am7=mktime($morningstarts,$morningstarts_minutes,0,$month,$day,$year,is_dst($month,$day,$year,$morningstarts)); 53$pm7=mktime($eveningends,$eveningends_minutes,0,$month,$day,$year,is_dst($month,$day,$year,$eveningends)); 61 # need to show either a select box or a normal html list, 62 # depending on the settings in config.inc.php 63 if ($area_list_format == "select") { 63 if ($area_list_format == "select") { 64 echo make_area_select_html('day.php', $area, $year, $month, $day); # from functions.inc 65 } else { 70 { 71 echo "<a href=\"day.php?year=$year&month=$month&day=$day&area=$row[0]\">"; 72 if ($row[0] == $area)session.test.php https://github.com/hack521/contenidopago.git | PHP | 385 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package cake 16 * @subpackage cake.tests.cases.libs.controller.components 17 * @since CakePHP(tm) v 1.2.0.5436 18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 368 $Session->write('Test', 'some value'); 369 $this->assertEqual($Session->sessionTime, mktime() + (100 * Configure::read('Session.timeout'))); 370 $this->assertEqual($_SESSION['Config']['timeout'], 10);inc-pdf-attestations.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 167 lines
1<?php 2include_once('inc-html.php'); 2include_once('inc-html.php'); 3include_once('inc-odb.php'); 4$tBddConf=getBddConf(); 39setlocale(LC_TIME, 'fr_FR','fr_BE.UTF8','fr_FR.UTF8'); 40$sDateDelib=html_entity_decode(utf8_decode(strftime("%A %d %B %Y", mktime(0, 0, 0, $mois, $jour, $annee)))); 41$date_attestation=trim($_REQUEST['date_attestation']); 47setlocale(LC_TIME, 'fr_FR','fr_BE.UTF8','fr_FR.UTF8'); 48$sDateAttestation=html_entity_decode(utf8_decode(strftime("%A %d %B %Y", mktime(0, 0, 0, $mois, $jour, $annee)))); 49//die($sDateConvoc); 63$pdf_dir='contrib/ezpdf/'; 64include $pdf_dir.'class.ezpdf.php'; // inclusion du code de la bibliothque 65$pdf =& new Cezpdf('A4','portrait'); // 595.28 x 841.89Date.php https://github.com/reoring/sabel.git | PHP | 389 lines
1<?php 2 9 * @copyright 2004-2008 Mori Reo <mori.reo@sabel.jp> 10 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 11 */ 109 110 $this->timestamp = mktime($h, $i, $s, $m, $d, $y); 111 } else { 180 { 181 $timestamp = mktime($this->getHour(), 182 $this->getMinute(), 251 252 $this->timestamp = mktime($this->getHour(), 253 $this->getMinute(), 265 266 $this->timestamp = mktime($this->getHour(), 267 $this->getMinute(),OrderList.php https://github.com/shryans/core.git | PHP | 263 lines
1<?php 2// vim: set ts=4 sw=4 sts=4 et: 11 * It is also available through the world-wide-web at this URL: 12 * http://opensource.org/licenses/osl-3.0.php 13 * If you did not receive a copy of the license and are unable to 16 * 17 * PHP version 5.3.0 18 * 21 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved 22 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 23 * @version GIT: $Id: 7d365c2b9b8e9386e675786474b9e68ad1de069a $ 167 ) { 168 $ordersSearch['startDate'] = mktime( 169 0, 0, 0, 183 184 $ordersSearch['startDate'] = mktime( 185 0, 0, 0,bluepay_redirect.php https://gitlab.com/hazelnuts23/unitedfoodstuff | PHP | 147 lines
1<?php 2class ControllerPaymentBluePayRedirect extends Controller { 34 $data['months'][] = array( 35 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)), 36 'value' => sprintf('%02d', $i) 45 $data['year_expire'][] = array( 46 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 47 'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))tca.php https://github.com/MCDarkMaster/TYPO3v4-Core.git | PHP | 227 lines
1<?php 2/** 129 'range' => array( 130 'upper' => mktime(0,0,0,12,31,2020), 131 )trackingfront.php https://gitlab.com/ptisky/API_prestashop | PHP | 237 lines
1<?php 2/* 9* It is also available through the world-wide-web at this URL: 10* http://opensource.org/licenses/afl-3.0.php 11* If you did not receive a copy of the license and are unable to 22* @copyright 2007-2015 PrestaShop SA 23* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 75 unset($this->context->cookie->tracking_passwd); 76 Tools::redirect(Tools::getShopDomain(true, false).__PS_BASE_URI__.'modules/trackingfront/stats.php'); 77 } 103 $this->context->cookie->tracking_passwd = $passwd; 104 Tools::redirect(Tools::getShopDomain(true, false).__PS_BASE_URI__.'modules/trackingfront/stats.php'); 105 } 138 $from = $y.'-'.$m.'-01'; 139 $to = $y.'-'.$m.date('-t', mktime(12, 0, 0, $m, 15, $y)); 140 }CounterHandler.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 361 lines
1<?php 2 3/** 4 * @file CounterHandler.inc.php 5 * 57 if ( ($i+1 > $thisMonth) && ($year == $thisYear) ) break; 58 $entryArray[$i]['start'] = date("Y-m-d", mktime(0, 0, 0, $i+1, 1, $year)); 59 $entryArray[$i]['end'] = date("Y-m-t", mktime(0, 0, 0, $i+1, 1, $year)); 62 63 $entryArray[$i]['start'] = date("Y-m-d", mktime(0, 0, 0, 1, 1, $year)); 64 $entryArray[$i]['end'] = date("Y-m-t", mktime(0, 0, 0, 12, 1, $year)); 177 178 $SOAPRequest = file_get_contents('php://input'); 179 255 256 $fp = fopen('php://output', 'wt'); 257 String::fputcsv($fp, array(Locale::translate('plugins.generic.counter.1a.title1')));pnuser.php https://github.com/planetenkiller/TimeIt-zk-12.git | PHP | 258 lines
1<?php 2 2 3Loader::includeOnce('modules/TimeIt/common.php'); 4 125 $pnRender->assign('dayNumNow', DateUtil::getDatetime(null, _DATEINPUT)); 126 $pnRender->assign('dayAsDate', DateUtil::getDatetime(mktime(0, 0, 0, $GETMonth, $GETDay, $GETYear), _DATEINPUT)); 127 127 128 $pnRender->assign('month_startDate', DateUtil::getDatetime(mktime(0, 0, 0, $GETMonth, 1, $GETYear), _DATEINPUT) ); 129 $pnRender->assign('month_endDate', DateUtil::getDatetime(mktime(0, 0, 0, $GETMonth, DateUtil::getDaysInMonth($GETMonth, $GETYear), $GETYear), _DATEINPUT) );ItemLowClass.php https://github.com/dkirsche/ItemsLow.git | PHP | 283 lines
1<?php 2 227public function DateDifference(){ 228 $today=mktime(0, 0, 0, date('m'), date('d'), date('Y')); //today's unix timestamp 229 $createdTime=strtotime($this->createdDate);//convert datecreated into unix timestamp 229 $createdTime=strtotime($this->createdDate);//convert datecreated into unix timestamp 230 $dateCreated=mktime(0, 0, 0, date('m',$createdTime), date('d',$createdTime), date('Y',$createdTime)); //we need to cleans the date so that time is omitted and only the date part is used to create the time stamp 231 $days=($today-$dateCreated)/(60*60*24);new-broadcast.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 105 lines
1<?php 2 69 70 $epoch_of_scheduled_time = mktime($send_hour,$send_minutes, 0,$month,$date,$year); 71show.php https://github.com/sangyuanyuan/fanqie.git | PHP | 333 lines
38<script> 39 total("<?php echo $category->name;?>","<?php echo $category->platform;?>"); 40</script> 70 <?php if($count==1){?> 71 <a href="/show/show.php?id=<?php echo $record_ad[0]->img_id?>" target=_blank><img src="<?php echo $record_ad[0]->src?>" width=289; height=187; border=0></a> 72 <? }else{?> 109 <div class=right> 110 <div class=top><a href="list.php?publisher=<?php echo urlencode($records[$i]->publisher);?>&type=image"><?php echo $records[$i]->publisher; ?></a></div> 111 <div class=bottom>发布了<?php echo $records[$i]->num; ?>张图片!</div> 149 ?> 150 <a class="tag<?php echo rand(1, 6);?>" href="/search/?key=<?php echo urlencode($c[$i]);?>&search_type=smg_images"><?php echo $c[$i];?></a> 151 <?php } ?> 252 ?> 253 <div class=pic><a title="<?php echo $records[$i]->title; ?>" href="show.php?id=<?php echo $records[$i]->id;?>"><img width=145 height=105 border=0 src="<?php echo $records[$i]->src_path('small');?>"></a></div> 254 <?php }?>katb_testimonial_widget.php https://bitbucket.org/murtuza88/carolina-home-stone.git | PHP | 176 lines
1<?php 2/* 37 <p>Title : 38 <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></p> 39 <p>Random or ID : 39 <p>Random or ID : 40 <input class="widefat" id="<?php echo $this->get_field_id('type'); ?>" name="<?php echo $this->get_field_name('type'); ?>" type="text" value="<?php echo $type; ?>" /></p> 41 <?php 102 $month = intval(substr($katb_date,5,2)); 103 $monthname = date("M", mktime(0, 0, 0, $month, 10)); 104 $day = intval(substr($katb_date,8,2)); 158 $month = intval(substr($katb_date,5,2)); 159 $monthname = date("M", mktime(0, 0, 0, $month, 10)); 160 $day = intval(substr($katb_date,8,2));