100+ results results for 'php strtotime' (290 ms)
38 </a><br> 39 <a href="../I18N_Arabic/_Arabic---CompressStr.php.html"> CompressStr.php 40 </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> 68 </a><br> 69 <a href="../I18N_Arabic/_Arabic---StrToTime.php.html"> StrToTime.php 70 </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>DefaultRevalidationTest.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 246 lines
1<?php 2 26 { 27 return gmdate(ClientInterface::HTTP_DATE, strtotime($time)); 28 }date.php https://github.com/mzkrelx/milm-search-ui-php.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 */ 63 { 64 if ($ts = strtotime($input)) 65 { 112 * @param int UNIX timestamp from current server 113 * @param string valid PHP timezone from www.php.net/timezones 114 * @return Datedate.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 319 lines
25 * @param bool $display_time If true shows date and time, if false only shows date 26 * @param string $date_format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php) 27 * 68 * @param string $date The date to find the beginning of the day, defaults to today 69 * @param string $format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php) 70 * 102 * @param string $date The date to find the end of the day, defaults to today 103 * @param string $format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php) 104 * 159 * @param int $event (optional) 160 * @param string $date_format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php) 161 * @param string $timezone Timezone in which to present the date/time (or default behaviour if not set) 203 * @param int $event (optional) 204 * @param string $date_format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php) 205 * @param string $timezone Timezone in which to present the date/time (or default behaviour if not set)view_feeds.php https://gitlab.com/diva-lab/essam-labs | PHP | 243 lines
38 39 require_once("../layout/header.php"); 40?> 43 <!--sidebar start--> 44 <?php require_once("../layout/navigation.php");?> 45 168 <label class="checkbox-inline"> 169 <input type="radio" name="status" class="radio" value="publish" <?php if(isset($_GET["status"])){ 170 if($status == "publish") echo "checked";} ?>> 177 <div class="checkboxes"> 178 <?php 179 242 <!--footer start--> 243 <?php require_once("../layout/footer.php");?> 244image.php https://bitbucket.org/technicise/wordpress.git | PHP | 412 lines
1<?php 2/** 147 148 return strtotime( "{$y}-{$m}-{$d} {$time}" ); 149} 223 if ( ! empty( $iptc['2#055'][0] ) and ! empty( $iptc['2#060'][0] ) ) // created date and time 224 $meta['created_timestamp'] = strtotime( $iptc['2#055'][0] . ' ' . $iptc['2#060'][0] ); 2251416863327-migrate-reports.php https://gitlab.com/e0/X2CRM | PHP | 315 lines
1<?php 2/*********************************************************************************** 52 case 'thisWeek': 53 $dateRange['start'] = strtotime('mon this week'); // first of this month 54 $dateRange['end'] = time(); // now 60 case 'lastWeek': 61 $dateRange['start'] = strtotime('mon last week'); // first of last month 62 $dateRange['end'] = strtotime('mon this week') - 1; // first of this monthsum_enhance_log.php https://gitlab.com/xusasuke6/Slg_php | PHP | 297 lines
1<?php 2 3define('IN_DATANG_SYSTEM', true); 4include "../../../config/config.php"; 5include SYSDIR_ADMIN."/include/global.php"; 52} 53$u_date_start = strtotime($date_start_temp); 54$u_end_start = strtotime($date_end_temp); 229 //生成某一天所在星期的星期一的日期 230 $weekday = date('N',strtotime($start)); 231 $startday = date('Y-m-d',strtotime($start)-($weekday-1)*60*60*24); 234 //生成某一天所在星期的星期天的日期 235 $weekday= date('N',strtotime($end)); 236 $endday = date('Y-m-d',strtotime($end)+(7-$weekday)*60*60*24); 238 239 $stamp = strtotime($startday); 240 $etamp = strtotime($endday);end_vevent.php https://gitlab.com/endomorphosis/fusenews | PHP | 386 lines
1<?php 2/* end_vevent.php 125 # UNTIL must be in UTC 126 $until = date("YmdHis",strtotime($val)); 127 ereg ('([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})', $until, $regs); 178} 179# convert wkst to a 3 char day for strtotime to work 180$wkst3char = two2threeCharDays($wkst); 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 205$end_range_unixtime = $mArray_end+60*60*24; 206$start_date_unixtime = strtotime($start_date); 207$next_range_unixtime = $start_date_unixtime;chargeEdit.php https://github.com/karlom/gameadmin.git | PHP | 278 lines
1<?php 2include_once '../../../protected/config/config.php'; 2include_once '../../../protected/config/config.php'; 3include_once SYSDIR_ADMIN_INCLUDE . '/global.php'; 4global $lang; 76 if ( $value['fromOnlineDate'] == '1' ){ 77 if ( strtotime(transDateForm($value['showTimeEnd'])) < time() ){ 78 $arr = array( 85 } else { 86 if ( strtotime($value['showTimeEnd']) < time() ){ 87 $arr = array( 259 $tmp = explode('-', $a); 260 $tmp[0] = date('Y-m-d', strtotime("+$tmp[0] day", strtotime(ONLINEDATE))); 261 $result = implode(' ', $tmp);functions.inc.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 346 lines
1<?php 2 181 182 $newDate = strtotime($myDateTime); 183 $newDate1 = strtotime($myDateTime1); 195 /* 196 $newDate = strtotime($start_day); 197 $newDate1 = strtotime($daylight);DobTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 429 lines
1<?php 2/** 14 15class DobTest extends \PHPUnit_Framework_TestCase 16{ 25 26 // Value of date('d', strtotime(self::DATE)) 27 const MONTH = '01'; 28 29 // Value of date('m', strtotime(self::DATE)) 30 const YEAR = '2014'; 31 32 // Value of date('Y', strtotime(self::DATE)) 33 const DATE_FORMAT = 'M/d/yy'; 44 45 /** @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Customer\Api\Data\AttributeMetadataInterface */ 46 private $attribute;filing_costs.php https://bitbucket.org/amitholkar/zenfile-18-05.git | PHP | 198 lines
39 ?> 40 <div class="finance_country <?php echo $status ?> custom_accordion" ref="filing_cost_country_<?php echo $invoice->id ?>"><?php echo $invoice->country ?></div> 41 45 <div> 46 <h2><?php echo $invoice->country ?> - <?php echo $invoice->fa_invoice_status ?></h2> 47 </div> 96 <input type="hidden" name="additional_fee_id[]" value="<?php echo $additional_fee->additional_fee_id ?>"> 97 <?php echo $currency_sign ?><input title="<?php echo $additional_fee->additional_fee_description_by_fa ?>" name="additional_fee_corrected_by_pm[]" value="<?php echo $additional_fee_value ?>" type="text"/> 98 </div> 116 <?php foreach($invoice->invoices as $file) { ?> 117 <a href="<?php echo base_url() ?>cases/download_file/<?php echo $file->file_id ?>"><?php echo $file->filename ?></a> 118 <?php } ?> 122 <div class="float_left"> 123 Estimated by PM on <?php echo date('m/d/y' , strtotime($case['estimate_saved_by_pm'])) ?> 124class.p3-profiler-reader.php https://gitlab.com/mattswann/launch-housing | PHP | 374 lines
1<?php 2if ( !defined('P3_PATH') ) 62 /** 63 * Number of plugin related function calls (does not include php internal 64 * calls due to a limitation of how the tick handler works) 196 if ( empty( $this->report_date ) ) { 197 $this->report_date = strtotime( $o->date ); 198 $scheme = parse_url( $o->url, PHP_URL_SCHEME ); 198 $scheme = parse_url( $o->url, PHP_URL_SCHEME ); 199 $host = parse_url( $o->url, PHP_URL_HOST ); 200 $path = parse_url( $o->url, PHP_URL_PATH ); 328 $possible_paths = array( 329 WP_PLUGIN_DIR . "/$plugin.php", 330 WP_PLUGIN_DIR . "/$plugin/$plugin.php", 330 WP_PLUGIN_DIR . "/$plugin/$plugin.php", 331 WPMU_PLUGIN_DIR . "/$plugin.php" 332 );Abstract.php https://github.com/rgranadino/magento-mirror.git | PHP | 499 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 258 259 if (is_scalar($from) && strtotime($from)) { 260 $collection->addAttributeToFilter($attrCode, array('from' => $from, 'date' => true)); 261 } 262 if (is_scalar($to) && strtotime($to)) { 263 $collection->addAttributeToFilter($attrCode, array('to' => $to, 'date' => true));twitter.js https://github.com/Val9/KitchenSink.git | JavaScript | 309 lines
32 var avatar = tweets[c].user.profile_image_url; 33 var created_at = prettyDate(strtotime(tweets[c].created_at)); 34 var bgcolor = (c % 2) == 0 ? '#fff' : '#eee'; 115function strtotime (str, now) { 116 // Emlulates the PHP strtotime function in JavaScript 117 // obtained from http://phpjs.org/functions/strtotime:554 126 } else if (now) { 127 now = new Date(now*1000); // Accept PHP-style seconds 128 } else { 251 s[0] = (s[0] >= 0 && s[0] <= 69) ? '20'+(s[0] < 10 ? '0'+s[0] : s[0]+'') : (s[0] >= 70 && s[0] <= 99) ? '19'+s[0] : s[0]+''; 252 return parseInt(this.strtotime(s[2] + ' ' + s[1] + ' ' + s[0] + ' ' + match[2])+(match[4] ? match[4]/1000 : ''), 10); 253 }class-wc-tracker.php https://gitlab.com/webkod3r/tripolis | PHP | 393 lines
47 $last_send = self::get_last_send_time(); 48 if ( $last_send && $last_send > apply_filters( 'woocommerce_tracker_last_send_interval', strtotime( '-1 week' ) ) ) { 49 return; 183 if ( function_exists( 'phpversion' ) ) { 184 $server_data['php_version'] = phpversion(); 185 } 187 if ( function_exists( 'ini_get' ) ) { 188 $server_data['php_post_max_size'] = size_format( wc_let_to_num( ini_get( 'post_max_size' ) ) ); 189 $server_data['php_time_limt'] = ini_get( 'max_execution_time' ); 190 $server_data['php_max_input_vars'] = ini_get( 'max_input_vars' ); 191 $server_data['php_suhosin'] = extension_loaded( 'suhosin' ) ? 'Yes' : 'No'; 192 } 196 197 $server_data['php_max_upload_size'] = size_format( wp_max_upload_size() ); 198 $server_data['php_default_timezone'] = date_default_timezone_get();calendar.class.php https://github.com/ardowz/Thesis-SideB.git | PHP | 417 lines
1<?php 2/* 2/* 3 * @version $Id: calendar.class.php 14684 2011-06-11 06:32:40Z remi $ 4 ------------------------------------------------------------------------- 177 AND MONTH(`end_date`)*100 + DAY(`end_date`) 178 >= ".date('nd',strtotime($date))." 179 AND MONTH(`begin_date`)*100 + DAY(`begin_date`) 179 AND MONTH(`begin_date`)*100 + DAY(`begin_date`) 180 <= ".date('nd',strtotime($date))." 181 ) 208 209 $timestart = strtotime($start); 210 $timeend = strtotime($end); 276 277 $actualtime = strtotime($start); 278 $timestart = strtotime($start);rss.test.php https://github.com/cgajardo/repositorium.git | PHP | 593 lines
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.view.helpers 17 * @since CakePHP(tm) v 1.2.0.4206 18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 432 'category' => array('domain' => 'http://www.cakephp.org'), 433 '<![CDATA[CakePHP]]', 434 '/category', 441 array( 442 'value' => 'CakePHP', 443 'cdata' => true,Message.php https://github.com/balupton/balphp.git | PHP | 402 lines
1<?php 2 10 * @author ##NAME## <##EMAIL##> 11 * @version SVN: $Id: Builder.php 6820 2009-11-30 17:27:49Z jwage $ 12 */ 262 # Send 263 if ( $Message->id && empty($Message->sent_on) && strtotime($Message->send_on) <= time() ) { 264 # We want to send now or earlierPerksManageController.php https://gitlab.com/melentev-av/perki.dev | PHP | 229 lines
1<?php 2 3/** 4 * Created by PhpStorm. 5 * User: sinersis 27 $oGiftCode->id, 28 Carbon::createFromTimestamp(strtotime($oGiftCode->created_at))->format(trans('interface.offer.format.valid_by')), 29 $oGiftCode->offer->sid, 75 $oGiftCode->id, 76 Carbon::createFromTimestamp(strtotime($oGiftCode->created_at))->format(trans('interface.offer.format.valid_by')), 77 $oGiftCode->offer_id,CrosswikiBlock.page.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 374 lines
1<?php 2 131 } else { 132 # Convert GNU-style date, on error returns -1 for PHP <5.1 and false for PHP >=5.1 133 $expiry = strtotime( $str );rss.test.php https://github.com/hack521/contenidopago.git | PHP | 593 lines
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.view.helpers 17 * @since CakePHP(tm) v 1.2.0.4206 18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 432 'category' => array('domain' => 'http://www.cakephp.org'), 433 '<![CDATA[CakePHP]]', 434 '/category', 441 array( 442 'value' => 'CakePHP', 443 'cdata' => true,Properties.php https://github.com/tmccormi/openemr.git | PHP | 629 lines
1<?php 2 2 3namespace PhpOffice\PhpSpreadsheet\Document; 4 182 } else { 183 $time = strtotime($time); 184 } 216 } else { 217 $time = strtotime($time); 218 } 486 /** 487 * Implement PHP __clone to create a deep clone, not just a shallow copy. 488 */ 541 case 'filetime': // File Time 542 return strtotime($propertyValue); 543PageStabilityForm.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 438 lines
1<?php 2/** 92 $unix = strtotime( $value ); 93 # On error returns -1 for PHP <5.1 and false for PHP >=5.1 94 if ( !$unix || $unix === -1 ) {module.php https://github.com/kjavitz/SalesIgniter1.git | PHP | 215 lines
1<?php 2class OrderPaymentDotpay extends StandardPaymentModule { 54 55 $nextBillDate = strtotime('+' . $membershipMonths . ' month +' . $membershipDays . ' day'); 56 if (isset($paymentTerm)){ 57 if ($paymentTerm == 'M'){ 58 $nextBillDate = strtotime('+1 month'); 59 }elseif ($paymentTerm == 'Y'){ 59 }elseif ($paymentTerm == 'Y'){ 60 $nextBillDate = strtotime('+12 month'); 61 } 67 if ($rentalPlan['free_trial'] > 0){ 68 $nextBillDate = strtotime('+'.$freeTrialPeriod.' day'); 69 $freeTrialEnds = strtotime('+'.$freeTrialPeriod.' day'); 184 tep_draw_hidden_field('vmodule', '6.0.3') . 185 tep_draw_hidden_field('URLC', tep_href_link('ext/modules/payment/dotpay/dotpay.php','','SSL')) . 186 tep_draw_hidden_field('return_url', itw_app_link(null, 'checkout', 'success', 'SSL')) .Cache.php https://bitbucket.org/d1rk/lithium.git | PHP | 295 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2012, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 91 * @param mixed $data Data to be cached 92 * @param string $expiry A strtotime() compatible cache time 93 * @param mixed $options Options for the method, filters and strategies.video.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 149 lines
1<?php 2/** 44 * @param integer $offset The object's number on the page. 45 * @param string $until A unix timestamp or any date accepted by strtotime. 46 * @param string $since A unix timestamp or any date accepted by strtotime. 95 * @param integer $offset The object's number on the page. 96 * @param string $until A unix timestamp or any date accepted by strtotime. 97 * @param string $since A unix timestamp or any date accepted by strtotime.MappingInfo.php https://gitlab.com/cserobiul/BITM-LabMs-New | PHP | 517 lines
1<?php 2 16 public function __construct() { 17 if (session_status() == PHP_SESSION_NONE) { 18 session_start(); 52 $originalDate = $data['start_date']; 53 $newDate = date("Y-m-d", strtotime($originalDate)); 54 $this->start_date = $newDate; 58 $ending_date = $data['ending_date']; 59 $ending_date = date("Y-m-d", strtotime($ending_date)); 60 $this->ending_date = $ending_date;sale.php https://gitlab.com/reclamare/mao | PHP | 438 lines
1<?php 2class ModelReportSale extends Model { 57 58 $date_start = strtotime('-' . date('w') . ' days'); 59 62 63 $order_data[date('w', strtotime($date))] = array( 64 'day' => date('D', strtotime($date)), 71 foreach ($query->rows as $result) { 72 $order_data[date('w', strtotime($result['date_added']))] = array( 73 'day' => date('D', strtotime($result['date_added'])), 92 93 $order_data[date('j', strtotime($date))] = array( 94 'day' => date('d', strtotime($date)), 101 foreach ($query->rows as $result) { 102 $order_data[date('j', strtotime($result['date_added']))] = array( 103 'day' => date('d', strtotime($result['date_added'])),CookieTest.php https://bitbucket.org/laborautonomo/laborautonomo-site.git | PHP | 144 lines
1<?php 2 21 */ 22class CookieTest extends \PHPUnit_Framework_TestCase 23{ 93 $cookie = new Cookie('foo', 'bar', $value); 94 $expire = strtotime($value); 95 135 { 136 $cookie = new Cookie('foo', 'bar', strtotime('Fri, 20-May-2011 15:25:52 GMT'), '/', '.myfoodomain.com', true); 137footer.blade.php https://gitlab.com/fayimora/pp | PHP | 187 lines
59@if (!env('TWITTER_ANDREA', false)) 60 <?php 61 $poochieTwitter = new \App\Classes\twitterFeed; 69 <span class="bitebut-tweet-content">{{ $twitter_feed->text }}</span> 70 <p class="bitebug-tweet-time">{{ date('d/m/Y H:i', strtotime($twitter_feed->created_at)) }}</p> 71 </div>DBFile.class.php https://github.com/Krassmus/tsc.git | PHP | 241 lines
1<?php 2 2 3require_once dirname(__file__)."/vendor/qqUpload.php"; 4require_once dirname(__file__)."/Cache.class.php"; 50 * Liefert die aktuelle Datei aus, wenn der Nutzer das Recht zum Sehen hat. 51 * Ignoriert alle anderen Ausgaben von PHP und beendet das Programm, sodass nur die Datei 52 * zurückgegeben werden kann! 67 } 68 if ($_SERVER['HTTP_IF_MODIFIED_SINCE'] && $file_data[$this->date_field] < strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE'])) { 69 //cache-control:CookieJar.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 385 lines
21 * 22 * @file CAS/CookieJar.php 23 * @category Authentication 23 * @category Authentication 24 * @package PhpCAS 25 * @author Adam Franco <afranco@middlebury.edu> 26 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 27 * @link https://wiki.jasig.org/display/CASC/phpCAS 28 */ 38 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 39 * @link https://wiki.jasig.org/display/CASC/phpCAS 40 */ 127 * Parse Cookies without PECL 128 * From the comments in http://php.net/manual/en/function.http-parse-cookie.php 129 *output.php https://github.com/myiek/swopr.ca.git | PHP | 234 lines
72 <a href="<? $doc->POD->podRoot(); ?>/admin/people/?id=<? echo $doc->creator('id'); ?>"><? echo $doc->creator('nick'); ?></a><br /> 73 <a href="<? $doc->POD->podRoot(); ?>/admin/content/search.php?userId=<? $doc->creator()->write('id'); ?>" class="tool">More from this person...</a><br /> 74 </p> 81 <a href="<? $doc->POD->podRoot(); ?>/admin/people/?id=<? echo $doc->author('id'); ?>"><? echo $doc->author('nick'); ?></a><br /> 82 <a href="<? $doc->POD->podRoot(); ?>/admin/content/search.php?userId=<? $doc->author()->write('id'); ?>" class="tool">More from this person...</a><br /> 83 </p> 95 <label>Last Modified:</label> 96 <?= date('M j, Y \@ H:i',strtotime($doc->get('changeDate'))); ?> 97 </p> 113 <li><a href="#children" class="tool"><? echo $doc->children()->totalCount(); ?> <? echo $this->POD->pluralize($doc->children()->totalCount(),'Child post','Child posts'); ?></a></li> 114 <li><a href="<? $doc->POD->podRoot(); ?>/admin/files/index.php?contentId=<? $doc->write('id'); ?>" class="tool"><? echo $doc->files()->totalCount(); ?> <? echo $this->POD->pluralize($doc->files()->totalCount(),'File','Files'); ?></a></li> 115 <li><a href="<? $doc->POD->podRoot(); ?>/admin/flags/index.php?contentId=<? $doc->write('id'); ?>" class="tool">Flags</a></li>index_old8172011.php https://github.com/jamesming/stage_beta.git | PHP | 272 lines
1<?php 2 33 34include('osmin_header.php'); 35 37 38$wed = strtotime("August 17, 2011 8:00am"); 39 40if($_GET[wed]) { 41 $now = strtotime("August 17, 2011 8:01am"); 42} 188 <div style="float: left; padding-top: 8px;"> 189 <a href="therecruits.php?recruit=8"><img src="images/small-LOUISA.png" /></a> 190 </div> 191 <div style="float: left; padding-left: 15px; font-weight: bold; padding-top: 5px;"> 192 <a style="color:#000000;" href="therecruits.php?recruit=8">LOUISA</a> 193 </div>index.php https://bitbucket.org/ricktaylord/osclass.git | PHP | 144 lines
56 <li> 57 <a href="<?php echo osc_admin_base_url(true); ?>?page=items&catId=<?php echo $c['pk_i_id'] ; ?>"><?php echo $c['s_name'] ; ?></a> 58 <?php echo "(" . $c['i_num_items'] . " " . ( ( $c['i_num_items'] == 1 ) ? __('Item') : __('Items') ) . ")" ; ?> 61 <li> 62 <a href="<?php echo osc_admin_base_url(true); ?>?page=items&catId=<?php echo $subc['pk_i_id'];?>"><?php echo $subc['s_name'] ; ?></a> 63 <?php echo "(" . $subc['i_num_items'] . " " . ( ( $subc['i_num_items'] == 1 ) ? __('Item') : __('Items') ) . ")" ; ?> 100 <li> 101 <strong><?php echo $c['s_author_name'] ; ?></strong> <?php _e('Commented on item') ; ?> <em><a title="<?php echo $c['s_body'] ; ?>" target='_blank' href='<?php echo osc_base_url(true) . '?page=item&id=' . $c['fk_i_item_id'] ; ?>' id='dt_link'><?php echo $c['s_title'] ; ?></a></em> 102 </li> 117 <?php foreach ($newsList as $list) { ?> 118 <?php $new = ( strtotime($list['pubDate']) > strtotime('-1 week') ? true : false ) ; ?> 119 <li> 141 <!-- /container --> 142 <?php osc_current_admin_theme_path('footer.php') ; ?> 143 </body>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 178 public static function getRFCDate($date = null) { 179 $time = $date ? is_int($date) ? $date : strtotime($date) : time(); 180 $tz = date('Z', $time); 286 public static function getTimeStamp($dateTime = null) { 287 return $dateTime ? is_int($dateTime) ? $dateTime : strtotime($dateTime) : time(); 288 } 324 self::format('m-d H:i', $time), $result); 325 } elseif (strtotime(self::format('Y', $time)) == strtotime(self::format('Y', $timestamp))) { 326 return 1 == $type ? array(self::format('m-d', $time), $result) : array(self::format('m-d H:i', $time),MailScannerInfo.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 414 lines
1<?php 2/********************************************************************************* 10 ********************************************************************************/ 11require_once('modules/Settings/MailConverter/handlers/MailScannerRule.php'); 12/** 64 function __crypt($password, $encrypt=true) { 65 require_once('include/utils/encryption.php'); 66 $cryptobj = new Encryption(); 149 list ($tzhours, $tzminutes) = explode(':', trim($this->timezone)); 150 $returnDate = date($format, strtotime(sprintf("%s hours %s minutes", $tzhours, $tzminutes))); 151 date_default_timezone_set($currentTZ); 153 // Search email one-day before to overcome timezone differences. 154 $returnDate = date($format, strtotime("-1 day")); 155 }CalendarUtil.php https://github.com/lenix/EventCalendar.git | PHP | 319 lines
109 '03' => self::i18n_date($key,strtotime('2000-03-01')), 110 '04' => self::i18n_date($key,strtotime('2000-04-01')), 111 '05' => self::i18n_date($key,strtotime('2000-05-01')), 111 '05' => self::i18n_date($key,strtotime('2000-05-01')), 112 '06' => self::i18n_date($key,strtotime('2000-06-01')), 113 '07' => self::i18n_date($key,strtotime('2000-07-01')), 113 '07' => self::i18n_date($key,strtotime('2000-07-01')), 114 '08' => self::i18n_date($key,strtotime('2000-08-01')), 115 '09' => self::i18n_date($key,strtotime('2000-09-01')), 300 return 0; 301 else if(strtotime($a->StartTime) > strtotime($b->StartTime)) 302 return 1; 305 } 306 else if(strtotime($a->StartDate) > strtotime($b->StartDate)) 307 return 1;Cache.php https://github.com/marcghorayeb/lithium.git | PHP | 294 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2013, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 91 * @param mixed $data Data to be cached 92 * @param string $expiry A strtotime() compatible cache time 93 * @param mixed $options Options for the method, filters and strategies.admin.php https://github.com/sarriaroman/Cronos-Aion.git | PHP | 333 lines
1<?php 2 7 8require_once( dirname(dirname(__FILE__)) . "/engine/start.php" ); 9 196 case "restorekey": 197 require_once('restoreemail.php'); 198 222 case "changekey": 223 require_once('restoreemail.php'); 224 272 close_session("admin"); 273 header("Location: " . base_url . "admin.php"); 274 319 $ERROR = array_merge($ERROR, array("result" => "ok")); 320 $ERROR = array_merge($ERROR, array("tit" => strftime('%Y-%B-%d %H:%M', strtotime($post->created)). ' '.$post->title)); 321 $ERROR = array_merge($ERROR, array("cont" => $post->content));customer_online.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 143 lines
1<?php 2class ControllerReportCustomerOnline extends Controller { 92 'referer' => $result['referer'], 93 'date_added' => date('d/m/Y H:i:s', strtotime($result['date_added'])), 94 'action' => $actionreports.php https://github.com/yamamoto123/Ushahidi_Web.git | PHP | 246 lines
24 <li> 25 <a href="?status=0" <?php if ($status != 'a' AND $status !='v') echo "class=\"active\""; ?>><?php echo Kohana::lang('ui_main.show_all');?></a> 26 </li> 26 </li> 27 <li><a href="?status=a" <?php if ($status == 'a') echo "class=\"active\""; ?>><?php echo Kohana::lang('ui_main.awaiting_approval');?></a></li> 28 <li><a href="?status=v" <?php if ($status == 'v') echo "class=\"active\""; ?>><?php echo Kohana::lang('ui_main.awaiting_verification');?></a></li> 58 <div class="green-box" id="submitStatus"> 59 <h3><?php echo Kohana::lang('ui_main.reports');?> <?php echo $form_action; ?> <a href="#" id="hideMessage" class="hide">hide this message</a></h3> 60 </div> 220 <ul class="links"> 221 <li class="none-separator"><?php echo Kohana::lang('ui_main.categories');?>:<?php echo $incident_category; ?></li> 222 </ul> 233 <li class="none-separator"><a href="#"<?php if ($incident_approved) echo " class=\"status_yes\"" ?> onclick="reportAction('a','APPROVE', '<?php echo $incident_id; ?>');"><?php echo Kohana::lang('ui_main.approve');?></a></li> 234 <li><a href="#"<?php if ($incident_verified) echo " class=\"status_yes\"" ?> onclick="reportAction('v','VERIFY', '<?php echo $incident_id; ?>');"><?php echo Kohana::lang('ui_main.verify');?></a></li> 235 <li><a href="#" class="del" onclick="reportAction('d','DELETE', '<?php echo $incident_id; ?>');"><?php echo Kohana::lang('ui_main.delete');?></a></li>admin.php https://github.com/kadoshmt/Pyro-Deals.git | PHP | 535 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2 161 { 162 $created_on = strtotime(sprintf('%s %s:%s', $this->input->post('created_on'), $this->input->post('created_on_hour'), $this->input->post('created_on_minute'))); 163 } 240 { 241 $created_on = strtotime(sprintf('%s %s:%s', $this->input->post('created_on'), $this->input->post('created_on_hour'), $this->input->post('created_on_minute'))); 242 }BaseFcrepfis.php https://github.com/cidesa/siga-universitario.git | PHP | 719 lines
1<?php 2 84 } elseif (!is_int($this->fecrep)) { 85 $ts = adodb_strtotime($this->fecrep); 86 if ($ts === -1 || $ts === false) { throw new PropelException("Unable to parse value of [fecrep] as date/time value: " . var_export($this->fecrep, true)); 157 } elseif (!is_int($this->fecrec)) { 158 $ts = adodb_strtotime($this->fecrec); 159 if ($ts === -1 || $ts === false) { throw new PropelException("Unable to parse value of [fecrec] as date/time value: " . var_export($this->fecrec, true)); 204 if ($v !== null && !is_int($v)) { 205 $ts = adodb_strtotime($v); 206 if ($ts === -1 || $ts === false) { throw new PropelException("Unable to parse date/time value for [fecrep] from input: " . var_export($v, true)); 291 if ($v !== null && !is_int($v)) { 292 $ts = adodb_strtotime($v); 293 if ($ts === -1 || $ts === false) { throw new PropelException("Unable to parse date/time value for [fecrec] from input: " . var_export($v, true)); 485 486 public function getByName($name, $type = BasePeer::TYPE_PHPNAME) 487 {ClientInvitationController.php https://gitlab.com/haroldv22/tupadrino | PHP | 287 lines
1<?php 2 16use yii\web\UploadedFile; 17use moonland\phpexcel\Excel; 18 75 76 $excel = new Excel(); // Phpexcel 77 $errorEmail = ''; 119 $modelClientInv->id_status = Yii::$app->params['invi_espera']; 120 $modelClientInv->date_exp = date("Y-m-d", strtotime("$fecha +15 days")); // Fecha de Expiracion 121 209 $model->id_status = Yii::$app->params['invi_espera']; 210 $model->date_exp = date("Y-m-d", strtotime("$fecha +15 days")); // Fecha de Expiracion 211 $model->date_add = $fecha;report.class.php https://github.com/easysoft/zentaopms.git | PHP | 542 lines
1<?php 2class reportTest 81 82 $begin = $begin != 0 ? date('Y-m-d', strtotime(date('Y-m-d') . $begin)) : 0; 83 $end = $end != 0 ? date('Y-m-d', strtotime(date('Y-m-d') . $end)) : 0; 129 { 130 $begin = date('Y-m-d', strtotime(date('Y-m-d') . $begin)); 131 $end = date('Y-m-d', strtotime(date('Y-m-d') . $end));MockDocumentSource.php https://github.com/brtriver/sukonv.git | PHP | 151 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 70 'date' => function($v) { 71 $v = is_numeric($v) ? intval($v) : strtotime($v); 72 return (time() == $v) ? new MongoDate() : new MongoDate($v);callback-methods.rst https://gitlab.com/albertkeba/docs | ReStructuredText | 230 lines
3 4If you want to sneak in some logic just before or after a CakePHP 5model operation, use model callbacks. These functions can be 67 Code expecting ``$primary`` to be true will probably get a "Cannot 68 use string offset as an array" fatal error from PHP if a recursive 69 find is used. 85 public function dateFormatAfterFind($dateString) { 86 return date('d-m-Y', strtotime($dateString)); 87 } 144 public function dateFormatBeforeSave($dateString) { 145 return date('Y-m-d', strtotime($dateString)); 146 } 185 186 // using app/Model/ProductCategory.php 187 // In the following example, do not let a product category be deleted if itInvoice.php https://bitbucket.org/OSdave/spanishformatinvoice.git | PHP | 385 lines
1<?php 2 164 } 165 //$page->drawText(Mage::helper('sales')->__('Order Date: ') . date( 'D M j Y', strtotime( $order->getCreatedAt() ) ), 35, 760, 'UTF-8'); 166 $page->drawText(Mage::helper('sales')->__('Order Date: ') . Mage::helper('core')->formatDate($order->getCreatedAtStoreDate(), 'medium', false), 35, 760, 'UTF-8');show.blade.php https://gitlab.com/maudebo/tpdemarde | PHP | 296 lines
99 100 <?php $critiqueUser = true; ?> {{-- Quelle syntaxe remplace le php Laravel dans ce cas-ci? --}} 101 189 190 <p class="col date"> ajoutée le {{ date('d F Y', strtotime($critique->created_at)) }}</p> 191 223 224 <p class="col date"> ajoutée le {{ date('d F Y', strtotime($critique->created_at)) }}</p> 225 255 256 <h5 class="col"> {{ date('d F Y', strtotime($critique->created_at)) }} </h5> 257 282 283 <h5 class="col"> {{ date('d F Y', strtotime($critique->created_at)) }} </h5> 284comments.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 178 lines
33 <a href="#comment-<?php comment_ID() ?>" class="counter" title="Permanent Link to this Comment"><?php echo $count_pings; $count_pings++; ?></a> 34 <span class="commentauthor fn" style="font-weight: bold;"><?php comment_author_link() ?></span><small class="commentmetadata"> on <a href="#comment-<?php comment_ID() ?>" title="<?php if (function_exists('time_since')) { $comment_datetime = strtotime($comment->comment_date); echo time_since($comment_datetime) ?> ago<?php } else { ?>Permalink to Comment<?php } ?>"><?php comment_date() ?></a> said:</small> 35 <?php if ( $user_ID ) { edit_comment_link('<img src="'.get_bloginfo(template_directory).'/images/pencil.png" alt="Edit Link" />','<span class="commentseditlink">','</span>'); } ?> 57?> 58<li <?php comment_class(empty( $args['has_children'] ) ? 'item' : 'item parent') ?> id="comment-<?php comment_ID() ?>"> 59 <a href="#comment-<?php comment_ID() ?>" title="Permanent Link to this Comment" class="counter"><?php echo $count_pings; $count_pings++; ?></a> 74 <span class="commentsrsslink"><?php comments_rss_link('Feed for this Entry'); ?></span> 75 <?php if (pings_open()) { ?><span class="trackbacklink"><a href="<?php trackback_url() ?>" title="Copy this URI to trackback this entry.">Trackback Address</a></span><?php } ?> 76 </div> 132 133 <p>You must <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">log in</a> to post a comment.</p> 134 139 140 <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>">Logout »</a></p> 141helper.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 909 lines
1<?php 2 52 53require_once (JPATH_SITE . DS . 'components' . DS . 'com_content' . DS . 'helpers' . DS . 'route.php'); 54 259 260 $lists [$i]->date = strtotime ( $row->modified ) ? $row->created : $row->modified; 261 512 513 script.setAttribute('href', '<?php 514 540 541<?php 542archive.php https://github.com/sc0ttyd/utils.git | PHP | 170 lines
1<?php 2/** 8 * @copyright Copyright 2007-2010, Cake Development Corporation (http://cakedc.com) 9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 10 */ 119 $date = $element[$modelName][$this->dateField]; 120 $year = date('Y', strtotime($date)); 121 $month = date('m', strtotime($date)); 153 $startDate = sprintf('%s-%s-%s', $year, $month, $day); 154 if (strtotime($startDate) > time()) { 155 $this->cakeError('error', array(SoftDeleteBehavior.php https://github.com/bmcclure/CakePHP-Utils-Plugin.git | PHP | 336 lines
1<?php 2/** 8 * @copyright Copyright 2007-2010, Cake Development Corporation (http://cakedc.com) 9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 10 */ 205 * @param object $model 206 * @param mixed $expiration anything parseable by strtotime(), by default '-90 days' 207 * @return integer 219 * @param object $model 220 * @param mixed $expiration anything parseable by strtotime(), by default '-90 days' 221 * @return boolean if there were some outdated records 241 * @param object $model 242 * @param mixed $expiration anything parseable by strtotime(), by default '-90 days' 243 * @return array 245 protected function _purgeDeletedConditions($model, $expiration = '-90 days') { 246 $purgeDate = date('Y-m-d H:i:s', strtotime($expiration)); 247 $conditions = array();RequestTest.php https://github.com/EvanDotPro/zf2.git | PHP | 343 lines
1<?php 2/** 18 */ 19class RequestTest extends \PHPUnit_Framework_TestCase 20{ 110 $this->assertTrue(isset($param->{$type}), var_export($param, 1)); 111 $this->assertEquals($time, strtotime((string) $param->{$type})); 112 }TestOfFixtureBuilder.php https://github.com/dagda/ThinkUp.git | PHP | 299 lines
1<?php 2require_once THINKUP_ROOT_PATH.'webapp/config.inc.php'; 2require_once THINKUP_ROOT_PATH.'webapp/config.inc.php'; 3require_once THINKUP_ROOT_PATH.'tests/config.tests.inc.php'; 4require_once THINKUP_ROOT_PATH.'webapp/_lib/extlib/simpletest/autorun.php'; 4require_once THINKUP_ROOT_PATH.'webapp/_lib/extlib/simpletest/autorun.php'; 5require_once 'webapp/model/class.Config.php'; 6require_once THINKUP_ROOT_PATH.'tests/fixtures/class.FixtureBuilder.php'; 96 $builder3 = FixtureBuilder::build(self::TEST_TABLE, $date_fixture_data); 97 $mysql_date = strtotime( $builder3->columns['date_created'] ); 98 $match_date = time() + (60 * 60 * 24); 226 $date_text = $this->builder->genDate('+3d'); 227 $mysql_date = strtotime( $date_text ); 228 $match_date = time() + (3 * 60 * 60 * 24); 231 $date_text = $this->builder->genDate('-3d'); 232 $mysql_date = strtotime( $date_text ); 233 $match_date = time() - (3 * 60 * 60 * 24);Array_Helper.php https://gitlab.com/jeamar1234/medicloud | PHP | 277 lines
1<?php 2 125 126 $findDoctorAvailability = General_Library::FindCurrentDayAvailableTimes(2,$findDoctor->DoctorID,$findWeek,strtotime($currentDate)); 127 $doctorHoliday = General_Library::FindPartyFullDayHolidays(2,$findDoctor->DoctorID,$currentDate); 133 $doctorDetail['holidays'] = self::ReturnHolidayArray($doctorDayHolidays); 134 $doctorDetail['existingappointments'] = General_Library::FindAllExistingAppointments($findDoctor->DoctorID, strtotime($currentDate)); 135 $doctorlist[] = $doctorDetail; 147 148 $findDoctorAvailability = General_Library::FindCurrentDayAvailableTimes(2,$findDoctor->DoctorID,$findWeek,strtotime($currentDate)); 149 $doctorHoliday = General_Library::FindPartyFullDayHolidays(2,$findDoctor->DoctorID,$currentDate); 155 $doctorDetail['holidays'] = self::ReturnHolidayArray($doctorDayHolidays); 156 $doctorDetail['existingappointments'] = General_Library::FindAllExistingAppointments($findDoctor->DoctorID, strtotime($currentDate)); 157 $doctorlist[] = $doctorDetail; 169 170 $findDoctorAvailability = General_Library::FindCurrentDayAvailableTimes(2,$doctorid,$findWeek,strtotime($currentDate)); 171 $doctorHoliday = General_Library::FindPartyFullDayHolidays(2,$doctorid,$currentDate);calendar_form.php https://github.com/DanGodfrey/Advanced_Event_Registration.git | PHP | 452 lines
1<?php 2require_once('includes/tc_calendar.php'); 3 4$thispage = $_SERVER['PHP_SELF']; 5 83 84//$startdate = $cobj->getDayNum(date('D', strtotime($y."-".$m."-1"))); 85$startdate = date('w', strtotime($y."-".$m."-1")); 338 339 $is_selected = strtotime($y."-".$m."-".$day) - strtotime($sly."-".$slm."-".$sld); 340 if($is_selected == 0) $htmlClass[] = "select"; 432 if($previous_year >= $year_start && $show_previous){ 433 ?><a href="javascript:move('<?php echo(str_pad($previous_month, 2, "0", STR_PAD_LEFT));?>', '<?php echo($previous_year);?>');">< Previous</a><?php 434 }else echo(" "); 439 if($next_year <= $year_end && $show_next){ 440 ?><a href="javascript:move('<?php echo(str_pad($next_month, 2, "0", STR_PAD_LEFT));?>', '<?php echo($next_year);?>');">Next ></a><?php 441 }else echo(" ");sfWidgetFormTime.class.php https://github.com/coolpink/CpSymfony.git | PHP | 105 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfWidgetFormTime.class.php 29674 2010-05-30 12:35:21Z Kris.Wallsmith $ 18 */ 72 { 73 $value = ctype_digit($value) ? (integer) $value : strtotime($value); 74 if (false === $value)sfValidatorDateTest.php https://github.com/bheneka/gitta.git | PHP | 246 lines
1<?php 2 10 11require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); 12 22 23// validate strtotime formats 24$t->diag('validate strtotime formats'); 24$t->diag('validate strtotime formats'); 25$t->is($v->clean('18 october 2005'), '2005-10-18', '->clean() accepts dates parsable by strtotime'); 26$t->is($v->clean('+1 day'), date('Y-m-d', time() + 86400), '->clean() accepts dates parsable by strtotime'); 30 $v->clean('This is not a date'); 31 $t->fail('->clean() throws a sfValidatorError if the date is a string and is not parsable by strtotime'); 32 $t->skip('', 1); 35{ 36 $t->pass('->clean() throws a sfValidatorError if the date is a string and is not parsable by strtotime'); 37 $t->is($e->getCode(), 'invalid', '->clean() throws a sfValidatorError');reprint.php https://github.com/joelbrock/is4c_nofc.git | PHP | 201 lines
1<?php 2/******************************************************************************* 28 29if (!function_exists("pDataConnect")) include("connect.php"); 30if (!function_exists("tDataConnect")) include("connect.php"); 30if (!function_exists("tDataConnect")) include("connect.php"); 31if (!function_exists("gohome")) include("maindisplay.php"); 32if (!function_exists("writeLine")) include("printLib.php"); 32if (!function_exists("writeLine")) include("printLib.php"); 33if (!function_exists("blueLine")) include("session.php"); 34 63 $dateTimeStamp = $headerRow["dateTimeStamp"]; 64 $dateTimeStamp = strtotime($dateTimeStamp); 65DoctrineDbalSpec.php https://github.com/Rohea/Gaufrette.git | PHP | 208 lines
1<?php 2 4 5//hack - mock php built-in functions 6require_once 'functions.php'; 7 8use PhpSpec\ObjectBehavior; 9use Prophecy\Argument; 71 '"content"' => 'some content', 72 '"mtime"' => strtotime('2012-10-10 23:10:10'), 73 '"checksum"' => '9893532233caff98cd083a116b013c0b', 96 '"content"' => 'some content', 97 '"mtime"' => strtotime('2012-10-10 23:10:10'), 98 '"checksum"' => '9893532233caff98cd083a116b013c0b',migrate_plus.migration.beer_user.yml https://gitlab.com/guillaumev/alkarama | YAML | 105 lines
39 # Another new process plugin - callback. This allows us to filter an incoming 40 # source value through an arbitrary PHP function. The function called must 41 # have one required argument. 46 source: registered 47 callable: strtotime 48RedisTest.php https://bitbucket.org/d1rk/lithium.git | PHP | 395 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2012, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 69 $expiry = '+5 seconds'; 70 $time = strtotime($expiry); 71 91 $expiry = '+1 minute'; 92 $time = strtotime($expiry); 93 115 $data = 'value'; 116 $time = strtotime('+5 seconds'); 117QueryTest.php https://github.com/weaverryan/mongodb-odm.git | PHP | 212 lines
1<?php 2 4 5require_once __DIR__ . '/../../../../../TestInit.php'; 6 202 $query->field('createdAt')->range( 203 new \MongoDate(strtotime('1985-09-01 01:00:00')), 204 new \MongoDate(strtotime('1985-09-04'))index.php https://gitlab.com/Kille250/myimouto | PHP | 135 lines
8 9 <?php /* If we're searching for a specific object, omit the id/name' column and 10 show it once at the top. */ ?> 10 show it once at the top. */ ?> 11 <?php if ($this->options['specific_object'] && $this->changes->any()) : ?> 12 <li> 36 <th></th> 37 <?php if ($this->options['specific_object']) : ?> 38 <?php elseif ($this->options['show_name']) : ?> 54 <?php foreach ($this->changes as $change) : ?> 55 <?php $new_user = (time() - strtotime($change->user->created_at) < 60*60*24*3) ?> 56 <tr class="<?= $this->cycle('even', 'odd') ?>" id="r<?= $change->id ?>"> 58 <td><?= $this->humanize($this->singularize($change->group_by_table)) ?></td> 59 <?php endif ?> 60document.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 203 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 116 public static function import_time_from_engine($time) { 117 return strtotime($time); 118 }monitoring_result.php https://gitlab.com/Rad1calDreamer/honey | PHP | 394 lines
1<?php 2interface CBitrixCloudMonitoring_Access extends Iterator, ArrayAccess 86 $node->getAttribute("status") == 2? CBitrixCloudMonitoringResult::RED_LAMP: CBitrixCloudMonitoringResult::GREEN_LAMP, 87 strtotime($node->getAttribute("time")), 88 $node->getAttribute("uptime"),MediaView.php https://github.com/gustavor/lore.git | PHP | 248 lines
1<?php 2/** 4 * 5 * PHP 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 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://cakephp.org CakePHP(tm) Project 15 * @package Cake.View 15 * @package Cake.View 16 * @since CakePHP(tm) v 1.2.0.5714 17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 25 * 26 * An example use comes from the CakePHP internals. MediaView is used to serve plugin and theme assets, 27 * as they are not normally accessible from an application's webroot. Unlike other views, MediaViewsarkaspip_balises.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 248 lines
1<?php 2// ======================================================================================================================================= 32// ======================================================================================================================================= 33// Balise : #VERSION_PHP 34// ======================================================================================================================================= 38// 39function balise_VERSION_PHP($p) { 40 $p->code = 'phpversion()'; 55 $p->code = 'calcul_visiteurs_connectes()'; 56 $p->statut = 'php'; 57 return $p; 78 $p->code = 'calcul_visites_site('.$jour.')'; 79 $p->statut = 'php'; 80 return $p; 87 if ( $j == 'aujourdhui' ) { 88 $auj = date('Y-m-d',strtotime(date('Y-m-d'))); 89 $select = array('visites');login.php https://gitlab.com/hazelnuts23/unitedfoodstuff | PHP | 111 lines
1<?php 2class ControllerCheckoutLogin extends Controller { 59 60 if ($login_info && ($login_info['total'] >= $this->config->get('config_login_attempts')) && strtotime('-1 hour') < strtotime($login_info['date_modified'])) { 61 $json['error']['warning'] = $this->language->get('error_attempts');VebayController.php https://gitlab.com/vincent.perdereau/picandparts | PHP | 102 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 */ 47 48 $from = strtotime($_REQUEST['DateFrom']); 49 $to = strtotime($_REQUEST['DateTo']);publications.php https://bitbucket.org/seyar/kinda.local.git | PHP | 256 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2 133 $this->view->assign('obj', $obj); 134 $obj_datetime = strtotime($obj['pub_date']); 135review.php https://github.com/ocStore/ocStore.git | PHP | 447 lines
1<?php 2namespace Opencart\Admin\Controller\Catalog; 171 'status' => ($result['status']) ? $this->language->get('text_enabled') : $this->language->get('text_disabled'), 172 'date_added' => date($this->language->get('date_format_short'), strtotime($result['date_added'])), 173 'edit' => $this->url->link('catalog/review|form', 'user_token=' . $this->session->data['user_token'] . '&review_id=' . $result['review_id'] . $url)ReplacesAttributes.php https://gitlab.com/madwanz64/laravel | PHP | 508 lines
1<?php 2 387 { 388 if (! strtotime($parameters[0])) { 389 return str_replace(':date', $this->getDisplayableAttribute($parameters[0]), $message);products.php https://gitlab.com/saalmanhussain/scayle_repo | PHP | 362 lines
1<?php 2 135 $rows[7] = "$".$row->price; 136 $rows[8] = date('Y-M-d', strtotime($row->created)); 137 $response['aaData'][] = $rows; 202 $rows[4] = $row->dealer; 203 $rows[5] = date('Y-M-d', strtotime($row->created)); 204 $rows[6] = $status;customer.php https://gitlab.com/hazelnuts23/unitedfoodstuff | PHP | 390 lines
1<?php 2class ModelReportCustomer extends Model { 27 28 $date_start = strtotime('-' . date('w') . ' days'); 29 32 33 $order_data[date('w', strtotime($date))] = array( 34 'day' => date('D', strtotime($date)), 41 foreach ($query->rows as $result) { 42 $customer_data[date('w', strtotime($result['date_added']))] = array( 43 'day' => date('D', strtotime($result['date_added'])), 56 57 $customer_data[date('j', strtotime($date))] = array( 58 'day' => date('d', strtotime($date)), 65 foreach ($query->rows as $result) { 66 $customer_data[date('j', strtotime($result['date_added']))] = array( 67 'day' => date('d', strtotime($result['date_added'])),GraphOAP.php https://github.com/orchestra-io/sample-openx.git | PHP | 117 lines
1<?php 2 24+---------------------------------------------------------------------------+ 25$Id: GraphOAP.php 47145 2009-12-05 02:27:22Z nick.conrad $ 26*/ 27 28require_once MAX_PATH . '/lib/OA/Dashboard/Graph.php'; 29require_once MAX_PATH . '/lib/OA/Admin/Statistics/Factory.php'; 108 $row = $doDsah->toArray(); 109 $aStats[0][date('D', strtotime($row['day']))] = $row['total_impressions']; 110 $aStats[1][date('D', strtotime($row['day']))] = $row['total_clicks'];beranda-admin.php https://gitlab.com/TKBasdat_A11/TK_Tahap_2 | PHP | 136 lines
1<?php 2 //daftar sidang template 2 //daftar sidang template 3 require_once("models/jadwalSidang.php"); 4 $page = (isset($_GET['page']) ? $_GET['page'] : 1); 19 <div id="test1" class="col s12 grey darken-2"> 20 <form action="search.php" method="GET"> 21 <input type="hidden" name="type" value="jadwal"> 46 <div id="test2" class="col s12 grey darken-2"> 47 <form action="search.php" method="GET"> 48 <br> 74 <tbody> 75 <?php while($row = pg_fetch_assoc($jadwals)):?> 76 <tr> 80 <td> 81 <?php 82 $dosBing = retrieveDosenPembimbing($db, $row['idmks']);class-mb-custom-taxonomy-register.php https://gitlab.com/code26/selah | PHP | 235 lines
1<?php 2/** 203 // translators: %s: Date and time of the revision. 204 9 => sprintf( __( 'Taxonomy scheduled for: <strong>%s</strong>.', 'mb-custom-taxonomy' ), date_i18n( __( 'M j, Y @ G:i', 'mb-custom-taxonomy' ), strtotime( $post->post_date ) ) ), 205 10 => __( 'Taxonomy draft updated.', 'mb-custom-taxonomy' ),class-wc-download-handler.php https://gitlab.com/webkod3r/tripolis | PHP | 426 lines
1<?php 2 118 private static function check_download_expiry( $download_data ) { 119 if ( $download_data->access_expires > 0 && strtotime( $download_data->access_expires ) < strtotime( 'midnight', current_time( 'timestamp' ) ) ) { 120 self::download_error( __( 'Sorry, this download has expired', 'woocommerce' ), '', 403 ); 338 } 339 if ( function_exists( 'get_magic_quotes_runtime' ) && get_magic_quotes_runtime() && version_compare( phpversion(), '5.4', '<' ) ) { 340 set_magic_quotes_runtime( 0 ); 369 * 370 * Reads file in chunks so big downloads are possible without changing PHP.INI - http://codeigniter.com/wiki/Download_helper_for_large_files/. 371 *send_interview.php https://github.com/pennsong/ShiyishiWeb.git | PHP | 397 lines
1<?php 2//企业面试 136 $enddate = $this->_get('enddate'); 137 $info['interview_date'] = strtotime($startdate." ".$starttime); 138 $interview['starttime'] = strtotime($startdate." ".$starttime.":00"); 138 $interview['starttime'] = strtotime($startdate." ".$starttime.":00"); 139 $interview['endtime'] = strtotime($enddate." ".$endtime.":00"); 140 $info['interview_enddate'] = $interview['endtime']; 227 if($aid){ 228 $ainfo['starttime'] = strtotime($startdate_p[$k]." ".$starttime_p[$k].":00"); 229 $ainfo['endtime'] = strtotime($enddate_p[$k]." ".$endtime_p[$k].":00");Etag.php https://github.com/usagi-project/mynets1.git | PHP | 188 lines
1<?php 2 12 13//20091202 PHP5.3対応のため、eregをpreg_matchに変更 14//KUNIHARU Tsujioka Usagi Project 129 $date["year"] = $temp_date[7]; 130 } elseif (@strtotime($string_date) > 0) { 131 $date["timestamp"] = strtotime($string_date);PgCacheFlush.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 440 lines
1<?php 2 6 7require_once W3TC_LIB_W3_DIR . '/PgCache.php'; 8 13 /** 14 * PHP5 Constructor 15 */ 20 /** 21 * PHP4 Constructor 22 */ 150 if ($this->_config->get_boolean('pgcache.purge.archive.daily') && $post) { 151 $post_date = strtotime($post->post_date); 152 $post_year = gmdate('Y', $post_date); 174 if ($this->_config->get_boolean('pgcache.purge.archive.monthly') && $post) { 175 $post_date = strtotime($post->post_date); 176 $post_year = gmdate('Y', $post_date);class.hooks.php https://github.com/Dykam/Garden.git | PHP | 202 lines
1<?php if (!defined('APPLICATION')) exit(); 2/* 91 public function SearchController_Search_Handler($Sender) { 92 include_once(dirname(__FILE__).DS.'..'.DS.'models'.DS.'class.vanillasearchmodel.php'); 93 $SearchModel = new VanillaSearchModel(); 104 // Number of New Discussions in the last day 105 $Sender->BuzzData[T('New discussions in the last day')] = number_format($DiscussionModel->GetCount(array('d.DateInserted >=' => Gdn_Format::ToDateTime(strtotime('-1 day'))))); 106 // Number of New Discussions in the last week 106 // Number of New Discussions in the last week 107 $Sender->BuzzData[T('New discussions in the last week')] = number_format($DiscussionModel->GetCount(array('d.DateInserted >=' => Gdn_Format::ToDateTime(strtotime('-1 week'))))); 108 114 // Number of New Comments in the last day 115 $Sender->BuzzData[T('New comments in the last day')] = number_format($CommentModel->GetCountWhere(array('DateInserted >=' => Gdn_Format::ToDateTime(strtotime('-1 day'))))); 116 // Number of New Comments in the last week 116 // Number of New Comments in the last week 117 $Sender->BuzzData[T('New comments in the last week')] = number_format($CommentModel->GetCountWhere(array('DateInserted >=' => Gdn_Format::ToDateTime(strtotime('-1 week'))))); 118 }DiscographyController.php https://bitbucket.org/kdeberna/akalepse.git | PHP | 363 lines
1<?php 2 168 $xmlData .= "\t\t<artist></artist>\n"; 169 $xmlData .= "\t\t<date>" . date("F d, Y", strtotime($album->release_date)) . "</date>\n"; 170 $xmlData .= "\t\t<trackInfo>" . $count . " tracks</trackInfo>\n"; 207 $form->addElement('hidden', 'album_back_cover_image', array('value' => $entry->album_back_cover)); 208 $data['release_date'] = date('Y-m-d', strtotime($entry->release_date)); 209 $data['shortdesc'] = stripslashes($entry->shortdesc); 299 APPLICATION_PATH . '/../html/releases/tmp/' . $fn, 300 file_get_contents('php://input') 301 ); 342 APPLICATION_PATH . '/../html/releases/tmp/' . $fn, 343 file_get_contents('php://input') 344 );Util.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 358 lines
1<?php 2/*+*********************************************************************************** 51 public static function formatDateDiffInStrings($dateTime) { 52 // http://www.php.net/manual/en/datetime.diff.php#101029 53 $currentDateTime = date('Y-m-d H:i:s'); 54 55 $seconds = strtotime($currentDateTime) - strtotime($dateTime); 56 151 $today = Vtiger_Date_UIType::getDisplayDateValue(date('Y-m-d H:i:s')); 152 $tomorrow = Vtiger_Date_UIType::getDisplayDateValue(date('Y-m-d H:i:s', strtotime('tomorrow'))); 153 167 * For more referrences 168 * http://php.net/manual/en/datetime.formats.date.php 169 */ 227 * For more referrences 228 * http://php.net/manual/en/datetime.formats.date.php 229 */custom-portfolio-posts.php https://bitbucket.org/joelkriteman/argento.git | PHP | 140 lines
1<?php 2 56 8 => sprintf(__('Portfolio Item Submitted. <a target="_blank" href="%s">Preview Portfolio</a>', 'inLEAGUE'), esc_url( add_query_arg('preview', 'true', get_permalink($post_ID)))), 57 9 => sprintf(__('Portfolio Item Scheduled For: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview Portfolio Item</a>', 'inLEAGUE'), date_i18n( __( 'M j, Y @ G:i', 'inLEAGUE' ), strtotime($post->post_date)), esc_url(get_permalink($post_ID))), 58 10 => sprintf(__('Portfolio Item Draft Updated. <a target="_blank" href="%s">Preview Portfolio</a>', 'inLEAGUE'), esc_url( add_query_arg('preview', 'true', get_permalink($post_ID)))), 111 112 <?php 113 $website = ($website == '') ? 'http://' : $website; 116 <div> 117 <label>Project Link: </label><input name="website" value="<?php echo $website ?>" /> 118 </div> 124 125<?php 126}AdminRepository.php https://gitlab.com/tetrapak07/vimm-me | PHP | 162 lines
1<?php namespace App\Repositories\Admin; 2 101 File::delete($fileThisDel); 102 $contentMain = $contentMain . '<sitemap>' . "\n" . '<loc>' . $domain . '/sitemap-' . $i . '.xml</loc>' . "\n" . '<lastmod>' . date('Y-m-d\TH:i:sP', strtotime($timestamp)) . '</lastmod>' . "\n" . '</sitemap>' . "\n"; 103 }date.php https://github.com/Hackwar/joomla-platform.git | PHP | 464 lines
1<?php 2/** 75 * 76 * @param string $date String in a format accepted by strtotime(), defaults to "now". 77 * @param mixed $tz Time zone to be used for the date. Might be a string or a DateTimeZone object. 206 * 207 * @param string $date String in a format accepted by strtotime(), defaults to "now". 208 * @param mixed $tz Time zone to be used for the date. 252 * 253 * @param string $format The date format specification string (see {@link PHP_MANUAL#date}) 254 * @param boolean $local True to return the date string in the local time zone, false to return it in GMT. 268 * 269 * @param string $format The date format specification string (see {@link PHP_MANUAL#date}) 270 * @param boolean $local True to return the date string in the local time zone, false to return it in GMT. 391 * @since 11.1 392 * @note This method can't be type hinted due to a PHP bug: https://bugs.php.net/bug.php?id=61483 393 */skip_future_documents_iterator_test.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 250 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 43 public function test_iterator_all_in_past() { 44 $past = strtotime('2017-11-01'); 45 $documents = [ 80 public function test_iterator_some_in_future() { 81 $past = strtotime('2017-11-01'); 82 $future = time() + 1000; 108 public function test_iterator_some_false() { 109 $past = strtotime('2017-11-01'); 110 $documents = [ 135 public function test_iterator_past_false_and_future() { 136 $past = strtotime('2017-11-01'); 137 $future = time() + 1000;actions.class.php https://github.com/dada888/phpcollab3.git | PHP | 291 lines
1<?php 2/** 2/** 3 * This file is part of the phpCollab3 package. 4 * (c) 2009 Ideato s.r.l. <phpcollab@ideato.it> 10 * 11 * @package phpCollab3 12 * @subpackage idProjectManagementPlugin Modules 17 * 18 * @package phpCollab3 19 * @subpackage idProjectManagementPlugin Modules 83 { 84 $from_date = date('Y-m-d H:i:s', strtotime($project_filters['created_at']['year']."-".$project_filters['created_at']['month']."-".$project_filters['created_at']['day'])); 85 }dmFormFilterDoctrine.php https://github.com/xdade/diem.git | PHP | 228 lines
1<?php 2 202 sprintf('%s.%s >= ?', $this->getRootAlias($query, $fieldName), $fieldName), 203 date('Y-m-d H:i:s', strtotime('-1 day')) 204 ); 208 sprintf('%s.%s >= ?', $this->getRootAlias($query, $fieldName), $fieldName), 209 date('Y-m-d H:i:s', strtotime('-1 week')) 210 ); 214 sprintf('%s.%s >= ?', $this->getRootAlias($query, $fieldName), $fieldName), 215 date('Y-m-d H:i:s', strtotime('-1 month')) 216 ); 220 sprintf('%s.%s >= ?', $this->getRootAlias($query, $fieldName), $fieldName), 221 date('Y-m-d H:i:s', strtotime('-1 year')) 222 );posts.php https://gitlab.com/Ltaimao/wecenter | PHP | 514 lines
1<?php 2/* 218 { 219 $add_time = strtotime('-' . $day . ' Day'); 220 }AbstractDateFilter.php https://gitlab.com/cuza/Clinic_Recods | PHP | 188 lines
1<?php 2 117 if ($this->getOption('input_type') === 'timestamp') { 118 $endValue = strtotime('+1 day', $data['value']); 119 } else {ical.php https://bitbucket.org/anneivycat/ebcookhouse.git | PHP | 133 lines
1<?php 2 49 if (empty($data->end_time)) $data->end_time = '17:00'; 50 $start_date = strtotime($data->start_date . ' ' . $data->event_time); 51 $end_date = strtotime($data->end_date . ' ' . $data->end_time); 95 $contact = ($data->alt_email == '') ? $org_options['contact_email'] : $data->alt_email . ',' . $org_options['contact_email']; 96 $start_date = strtotime($data->start_date . ' 09:00'); 97 $end_date = strtotime($data->end_date . ' 17:00');QueryTest.php https://github.com/jmikola/mongodb-odm.git | PHP | 444 lines
1<?php 2 19use function iterator_to_array; 20use function strtotime; 21 328 $qb->field('createdAt')->range( 329 new UTCDateTime(strtotime('1985-09-01 01:00:00') * 1000), 330 new UTCDateTime(strtotime('1985-09-04') * 1000)WebController.php https://gitlab.com/AernBau/robot-battles | PHP | 126 lines
1<?php 2 64 foreach(json_decode($previous_fights) as $fight){ 65 if(strtotime($fight->created_at) > strtotime('-1 day', strtotime(date('Y-m-d H:i:s')))){ 66 $fights_in_past_day++;registration-times.inc.php https://gitlab.com/pankajmohale/chef2go | PHP | 113 lines
1<?php 2// @codingStandardsIgnoreFile 78 { 79 return apply_filters("ws_plugin__s2member_registration_time", strtotime($user->user_registered), get_defined_vars()); 80 }avgDetailedDay.php https://github.com/joelbrock/is4c_nofc.git | PHP | 224 lines
1<?php # avgDetailedDay.php - For getting average info about one day of the week over a period of time. 2 31 32 echo "<p>Detailed Daily Report For {$days[$day]} From: " . date('l F jS, Y', strtotime($date1)) . " to " . date('l F jS, Y', strtotime($date2)) . "</p>"; 33 191 $page_title = "Fannie - Reports Module"; 192 include ('../src/header.php'); 193 echo '<p>The following errors were noted: </p><ul>'; 197 echo '</ul><br /><br />'; 198 include ('../src/footer.php'); 199 } 204 $page_title = "Fannie - Reports Module"; 205 include ('../src/header.php'); 206 209 echo '<script src="../src/CalendarControl.js" language="javascript"></script> 210 <form method="post" action="avgDetailedDay.php" target="_blank"> 211 <p>Which day would you like the report for? <select name="day">';security-component.rst https://bitbucket.org/cakephp/docs.git | ReStructuredText | 332 lines
37 created and managed by the FormHelper (especially those created in 38 :php:meth:`~FormHelper::create()` and :php:meth:`~FormHelper::end()`). 39 Dynamically altering the fields that are submitted in a POST request (e.g. 87 88.. php:method:: requirePost() 89 130 131.. php:attr:: allowedControllers 132 155 unlocked either in the Component, or with 156 :php:meth:`FormHelper::unlockField()`. Fields that have been unlocked are 157 not required to be part of the POST and hidden unlocked fields do not have 279The csrfExpires property can be any value that is compatible with 280`strtotime() <http://php.net/manual/en/function.strtotime.php>`_. By default the 281:php:class:`FormHelper` will add a ``data[_Token][key]`` containing the CSRFdate.php https://gitlab.com/Alzakath/icagenda | PHP | 166 lines
1<?php 2/** 76// { 77// $year = date('Y', strtotime($date)); 78// $month = date('m', strtotime($date)); 78// $month = date('m', strtotime($date)); 79// $day = date('d', strtotime($date)); 80// $time = date('H:i', strtotime($date));user_model.old.php https://github.com/mkhairul/Presta.git | PHP | 307 lines
1<?php 2class User_model extends Model { 105 'email' => 'admin@myprojectlog.com', 106 'timecreated' => strtotime('now') 107 );copy_scene_check.php https://github.com/karlom/gameadmin.git | PHP | 289 lines
1<?php 2include_once '../../../protected/config/config.php'; 2include_once '../../../protected/config/config.php'; 3include_once SYSDIR_ADMIN_INCLUDE . '/global.php'; 4include_once SYSDIR_ADMIN_DICT.'/dict.php'; 4include_once SYSDIR_ADMIN_DICT.'/dict.php'; 5include_once SYSDIR_ADMIN_DICT.'/arrItemsAll.php'; 6global $lang; 36 37$startDateStamp = strtotime($startDate . ' 0:0:0'); 38$endDateStamp = strtotime($endDate . ' 23:59:59'); 38$endDateStamp = strtotime($endDate . ' 23:59:59'); 39$openTimestamp = strtotime( ONLINEDATE ); 40if($startDateStamp < $openTimestamp) 48 $accountName2 = SS($_POST['an']); 49 $sTime2 = strtotime(SS($_POST['st'])); 50 $eTime2 = strtotime(SS($_POST['et']));index.php https://gitlab.com/nahoor/public | PHP | 337 lines
1<?php 2 2 3require 'core.php'; 4 36 $lastclaim = fetch_one($lastclaim_query); 37 $lastclaim = strtotime($lastclaim); 38 if ($lastclaim + $dispenseTime > time()) { 109 $app->view()->setData('dispenseTimeText', $dispenseTimeText); 110 $app->render('main.php', array('title' => 'Home')); 111})->name('root'); 113$app->get("/about", function () use ($app) { 114 $app->render('about.php', array('title' => 'About')); 115})->name('about'); 148 $app->view()->setData('serverbalance', number_format(getserverbalance())); 149 $app->render('admin.php', array('title' => 'Admin')); 150 }PageCache.php https://gitlab.com/mohamed_hussein/prodt | PHP | 365 lines
1<?php 2 148 // See if the client has provided the required HTTP headers. 149 $if_modified_since = $request->server->has('HTTP_IF_MODIFIED_SINCE') ? strtotime($request->server->get('HTTP_IF_MODIFIED_SINCE')) : FALSE; 150 $if_none_match = $request->server->has('HTTP_IF_NONE_MATCH') ? stripslashes($request->server->get('HTTP_IF_NONE_MATCH')) : FALSE;date.php https://bitbucket.org/codeyash/bootstrap.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 */ 63 { 64 if ($ts = strtotime($input)) 65 { 112 * @param int UNIX timestamp from current server 113 * @param string valid PHP timezone from www.php.net/timezones 114 * @return Datedate_functions.php https://gitlab.com/endomorphosis/fusenews | PHP | 302 lines
2require_once(BASE."functions/is_daylight.php"); 3// date_functions.php 4// functions for returning or comparing dates 26 $week_start_day = 'Sunday'; 27 if (isset($phpiCal_config->week_start_day)) $week_start_day = $phpiCal_config->week_start_day; 28 $timestamp = strtotime($Ymd); 30 $start_day_time = strtotime((date('w',$timestamp)==$num ? "$week_start_day" : "last $week_start_day"), $timestamp); 31 $ret_unixtime = strtotime($day,$start_day_time); 32 // Fix for 992744 32 // Fix for 992744 33 // $ret_unixtime = strtotime('+12 hours', $ret_unixtime); 34 $ret_unixtime += (12 * 60 * 60); 229 230See:http://phpicalendar.org/documentation/index.php/Property_Value_Data_Types#4.3.5___Date-Time 231*/cdn_config.php https://gitlab.com/Rad1calDreamer/honey | PHP | 495 lines
1<?php 2IncludeModuleLangFile(__FILE__); 91 $this->active = intval($node->getAttribute("active")); 92 $this->expires = strtotime($node->getAttribute("expires")); 93 }topic.php https://github.com/mkfmn/cake-forum.git | PHP | 467 lines
1<?php 2/** 6 * @copyright Copyright 2006-2010, Miles Johnson, Inc. 7 * @license http://opensource.org/licenses/mit-license.php - Licensed under The MIT License 8 * @link http://milesj.me/resources/script/forum-plugin 194 $topics = $this->Session->read('Forum.topics'); 195 $pastHour = strtotime('-1 hour'); 196 248 if (!is_int($start)) { 249 $start = strtotime($start); 250 } 252 if (!is_int($finish)) { 253 $finish = strtotime($finish); 254 } 453 454 if ($lock && $lastTime && (strtotime($lastTime) < strtotime('-'. $autoLock .' days'))) { 455 $result['Topic']['status'] = 1;submitoffer.php https://github.com/deviltry/qmigo.git | PHP | 425 lines
1<?php 2//var_dump($_POST); // troubleshoot what gets submitted to browser 15# Get our site info 16require "siteinfo.php"; 17 25######################################################### 26require "info_session.php"; 27 40if ($_SESSION["logged-in"]!=1 || $_SESSION["userid"]<1) 41{ header("Location: login.php?err=notloggedin"); 42 exit; 379 380 <select name="<?PHP echo $offerDurationName ?>"> <!-- duration availability drop-down with php --> 381 <option value="1">1 HR</option> 407 408 <input type="submit" name="<?PHP echo $submitOffer ?>" value="<?PHP echo $submitNewOfferValue ?>"> 409fireeagle.php https://github.com/nemein/openpsa.git | PHP | 145 lines
1<?php 2/** 40 41 require_once(MIDCOM_ROOT . '/external/fireeagle.php'); 42 44 45 // Note: this must be C so we get floats correctly from JSON. See http://bugs.php.net/bug.php?id=41403 46 setlocale(LC_NUMERIC, 'C'); 76 77 $position['date'] = strtotime($best_position->located_at); 78SourceCgit.php https://github.com/cocox/source-integration.git | PHP | 372 lines
1<?php 2/** 9if ( !defined('testing') ) { 10 if ( false === include_once( config_get( 'plugin_path' ) . 'Source/MantisSourcePlugin.class.php' ) ) { 11 return; 13 14 require_once( config_get( 'core_path' ) . 'url_api.php' ); 15} 94?> 95<tr <?php echo helper_alternate_class() ?>> 96<td class="category"><?php echo plugin_lang_get( 'cgit_root' ) ?></td> 96<td class="category"><?php echo plugin_lang_get( 'cgit_root' ) ?></td> 97<td><input name="cgit_root" maxlength="250" size="40" value="<?php echo string_attribute( $t_cgit_root ) ?>"/></td> 98</tr> 98</tr> 99<tr <?php echo helper_alternate_class() ?>> 100<td class="category"><?php echo plugin_lang_get( 'cgit_project' ) ?></td>EventController.php https://github.com/grandison/budo16.git | PHP | 383 lines
1<?php 2/** 8 * @license http://www.socialengine.net/license/ 9 * @version $Id: EventController.php 8015 2010-12-09 21:42:51Z jung $ 10 * @author John 78 // Convert and re-populate times 79 $start = strtotime($event->starttime); 80 $end = strtotime($event->endtime); 105 date_default_timezone_set($viewer->timezone); 106 $start = strtotime($values['starttime']); 107 $end = strtotime($values['endtime']);MediaCommentController.php https://gitlab.com/makkooz/nikestreetbeat | PHP | 218 lines
1<?php 2/** 90 if ($model->load(Yii::$app->request->post())) { 91 $model->date = date('Y-m-d H:i:s', strtotime($model->date)); 92 if ($model->save()) {return.php https://gitlab.com/shapcy/opencart | PHP | 238 lines
1<?php 2class ModelSaleReturn extends Model { 182 $message = $this->language->get('text_return_id') . ' ' . $return_id . "\n"; 183 $message .= $this->language->get('text_date_added') . ' ' . date($this->language->get('date_format_short'), strtotime($return_query->row['date_added'])) . "\n\n"; 184 $message .= $this->language->get('text_return_status') . "\n";calendarcontrol.php https://github.com/exponentcms/exponent-cms.git | PHP | 272 lines
1<?php 2 98 if (is_string($this->default)) 99 $this->default = strtotime($this->default); 100 // parse out date into calendarcontrol fields 105 } 106 $this->default = strtotime($this->default_date . ' ' . $this->default_hour . ':' . $this->default_min . ' ' . $this->default_ampm); 107 $default = date('n/j/Y g:i a', $this->default); 177 if (!empty($values['date-' . $name])) { 178 $date = strtotime($values['date-' . $name]); 179 $time = 0; 195 } elseif (!empty($values[$name])) { 196 return strtotime($values[$name]); 197 } else {