PageRenderTime 156ms queryTime 23ms sortTime 6ms getByIdsTime 27ms findMatchingLines 32ms

100+ results results for 'php strtotime' (156 ms)

Not the results you expected?
date.php git://github.com/ronan-gloo/plex-over.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  Date
                    
                
sk_basic_plugins.php http://spam-karma.googlecode.com/svn/trunk/ | PHP | 253 lines
                    
1<?php
                    
2/**********************************************************************************************
                    
14************************************************************************************************/
                    
15?><?php
                    
16// Basic plugins
                    
164	{
                    
165		$post_ts = strtotime($cmt_object->post_date . " GMT");
                    
166		$post_timesince = sk_time_since($post_ts);
                    
                
ImapSocket.php git://github.com/infinitas/infinitas.git | PHP | 417 lines
                    
1<?php
                    
2App::uses('EmailSocket', 'Emails.Network');
                    
4/**
                    
5 * A pop3 driver for the email socket to recive emails without the php-imap extention
                    
6 *
                    
168						$return[$type] = array(
                    
169							'date_time' => date('Y-m-d H:i:s', strtotime($matches[1])),
                    
170							'time_zone' => $timezone[1]
                    
                
currency.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 460 lines
                    
1<?php 
                    
2class ControllerLocalisationCurrency extends Controller {
                    
188				'value'         => $result['value'],
                    
189				'date_modified' => date($this->language->get('date_format_short'), strtotime($result['date_modified'])),
                    
190				'selected'      => isset($this->request->post['selected']) && in_array($result['currency_id'], $this->request->post['selected']),
                    
                
cache.php http://skygames.googlecode.com/svn/trunk/ | PHP | 520 lines
                    
3/**
                    
4 * Caching for CakePHP.
                    
5 *
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
                    
10 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
16 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
17 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
18 * @package       cake
                    
19 * @subpackage    cake.cake.libs
                    
20 * @since         CakePHP(tm) v 1.2.0.4933
                    
21 * @version       $Revision: 7847 $
                    
                
PageCacheTest.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 250 lines
                    
1<?php
                    
2
                    
123
                    
124    $this->drupalGet('', array(), array('If-Modified-Since: ' . gmdate(DATE_RFC822, strtotime($last_modified)), 'If-None-Match: ' . $etag));
                    
125    $this->assertResponse(304, 'Conditional request with obsolete If-Modified-Since date returned 304 Not Modified.');
                    
126
                    
127    $this->drupalGet('', array(), array('If-Modified-Since: ' . gmdate(DATE_RFC850, strtotime($last_modified)), 'If-None-Match: ' . $etag));
                    
128    $this->assertResponse(304, 'Conditional request with obsolete If-Modified-Since date returned 304 Not Modified.');
                    
135
                    
136    $this->drupalGet('', array(), array('If-Modified-Since: ' . gmdate(DATE_RFC1123, strtotime($last_modified) + 1), 'If-None-Match: ' . $etag));
                    
137    $this->assertResponse(200, 'Conditional request with new a If-Modified-Since date newer than Last-Modified returned 200 OK.');
                    
205   *
                    
206   * The test should pass even if zlib.output_compression is enabled in php.ini,
                    
207   * .htaccess or similar, or if compression is done outside PHP, e.g. by the
                    
                
cp_man.php https://gitlab.com/BGCX261/zjrenju-svn-to-git.git | PHP | 457 lines
                    
82	{
                    
83		if(($enddate=strtotime($enddate))===-1)
                    
84			ACP_MessageBox('时间不正确');
                    
166
                    
167	require_once('../include/txt_func.php');
                    
168	$description=CSubStr($description,0,65533);
                    
173
                    
174	require_once('../include/m_func.php');
                    
175	$players=array();
                    
288	$buf.="</h5>";
                    
289	$buf.="<h5>Totally $total games, $finished finished. [<a href=\"g_search.php?&action=list&cp_id=$cp_id\">view</a>] [<a href=\"g_search.php?&action=list&cp_id=$cp_id&packdown=1\">download</a>]  </h5>";
                    
290			
                    
324		$buf.='<b>Group '.chr(65+$num)." ($str_status)</b>";
                    
325		$buf.="</td><td align=\"right\">$finished/$total finished.[<a href=\"g_search.php?&action=list&group_id=$gpdata[group_id]\">view</a>] [<a href=\"g_search.php?&action=list&group_id=$gpdata[group_id]&packdown=1\">download</a>]</td></tr></table>";
                    
326		//生成表格
                    
                
vote.php https://gitlab.com/BGCX261/zishashop-svn-to-git.git | PHP | 399 lines
                    
1<?php
                    
2
                    
12 * $Author: testyang $
                    
13 * $Id: vote.php 15013 2008-10-23 09:31:42Z testyang $
                    
14*/
                    
17
                    
18require(dirname(__FILE__) . '/includes/init.php');
                    
19
                    
39    $smarty->assign('ur_here',      $_LANG['list_vote']);
                    
40    $smarty->assign('action_link',  array('text' => $_LANG['add_vote'], 'href'=>'vote.php?act=add'));
                    
41    $smarty->assign('full_page',    1);
                    
79    /* 日期初始化 */
                    
80    $vote = array('start_time' => local_date('Y-m-d'), 'end_time' => local_date('Y-m-d', local_strtotime('+2 weeks')));
                    
81
                    
83    $smarty->assign('ur_here',      $_LANG['add_vote']);
                    
84    $smarty->assign('action_link',  array('href'=>'vote.php?act=list', 'text' => $_LANG['list_vote']));
                    
85
                    
                
video.php git://github.com/joomla/joomla-platform.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.
                    
                
BaseCobrectra.php https://github.com/cidesa/roraima.git | PHP | 526 lines
                    
1<?php
                    
2
                    
78    } elseif (!is_int($this->fecrec)) {
                    
79            $ts = adodb_strtotime($this->fecrec);
                    
80      if ($ts === -1 || $ts === false) {         throw new PropelException("Unable to parse value of [fecrec] as date/time value: " . var_export($this->fecrec, true));
                    
153    if ($v !== null && !is_int($v)) {
                    
154      $ts = adodb_strtotime($v);
                    
155      if ($ts === -1 || $ts === false) {         throw new PropelException("Unable to parse date/time value for [fecrec] from input: " . var_export($v, true));
                    
347	
                    
348	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
                    
349	{
                    
384	
                    
385	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
                    
386	{
                    
400	
                    
401	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
                    
402	{
                    
                
BaseCobdestra.php https://github.com/cidesa/roraima.git | PHP | 526 lines
                    
1<?php
                    
2
                    
78    } elseif (!is_int($this->fecdes)) {
                    
79            $ts = adodb_strtotime($this->fecdes);
                    
80      if ($ts === -1 || $ts === false) {         throw new PropelException("Unable to parse value of [fecdes] as date/time value: " . var_export($this->fecdes, true));
                    
153    if ($v !== null && !is_int($v)) {
                    
154      $ts = adodb_strtotime($v);
                    
155      if ($ts === -1 || $ts === false) {         throw new PropelException("Unable to parse date/time value for [fecdes] from input: " . var_export($v, true));
                    
347	
                    
348	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
                    
349	{
                    
384	
                    
385	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
                    
386	{
                    
400	
                    
401	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
                    
402	{
                    
                
password.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 116 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*  @version  Release: $Revision: 7086 $
                    
24*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25*  International Registered Trademark & Property of PrestaShop SA
                    
29
                    
30include(PS_ADMIN_DIR.'/../config/config.inc.php');
                    
31include(PS_ADMIN_DIR.'/functions.php');
                    
32
                    
33$cookie = new Cookie('psAdmin', substr($_SERVER['PHP_SELF'], strlen(__PS_BASE_URI__), -10));
                    
34
                    
38$iso = strtolower(Language::getIsoById((int)$id_lang));
                    
39include(_PS_TRANSLATIONS_DIR_.$iso.'/admin.php');
                    
40
                    
                
password.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 116 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*  @version  Release: $Revision: 7541 $
                    
24*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25*  International Registered Trademark & Property of PrestaShop SA
                    
29
                    
30include(PS_ADMIN_DIR.'/../config/config.inc.php');
                    
31include(PS_ADMIN_DIR.'/functions.php');
                    
32
                    
33$cookie = new Cookie('psAdmin', substr($_SERVER['PHP_SELF'], strlen(__PS_BASE_URI__), -10));
                    
34
                    
38$iso = strtolower(Language::getIsoById((int)$id_lang));
                    
39include(_PS_TRANSLATIONS_DIR_.$iso.'/admin.php');
                    
40
                    
                
index.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 250 lines
                    
1<?php
                    
2/*
                    
16$strSetupDir = (is_dir("setup/{$strSetupDir}")) ? $strSetupDir . '/' : "";
                    
17$strSettingScript = "setup" . $strSetupDir . "setting.php";
                    
18include_once $strSettingScript;
                    
18include_once $strSettingScript;
                    
19//include_once 'ebpls5501.php';
                    
20require_once "lib/ebpls.lib.php";
                    
20require_once "lib/ebpls.lib.php";
                    
21include'includes/variables.php';
                    
22include_once("lib/multidbconnection.php");                                                                                                
                    
52
                    
53$ses = isset($_COOKIE['PHPSESSID'])?$_COOKIE['PHPSESSID']:'';  //2008.05.06
                    
54
                    
85		
                    
86			$lastlog = strtotime(date("Y-m-d h:i:s")) - strtotime($getses['date_input']) ;
                    
87			
                    
                
view.php https://gitlab.com/mahara-contrib/janrain-auth.git | PHP | 297 lines
                    
33
                    
34require(dirname(dirname(__FILE__)) . '/init.php');
                    
35
                    
35
                    
36require_once(get_config('libroot') . 'view.php');
                    
37require_once(get_config('libroot') . 'collection.php');
                    
37require_once(get_config('libroot') . 'collection.php');
                    
38require_once('group.php');
                    
39safe_require('artefact', 'comment');
                    
96    if ($view->get('submittedtime')) {
                    
97        $text = get_string('viewsubmittedtogroupon', 'view', get_config('wwwroot') . 'group/view.php?id=' . $submittedgroup->id, hsc($submittedgroup->name), format_date(strtotime($view->get('submittedtime'))));
                    
98    }
                    
99    else {
                    
100        $text = get_string('viewsubmittedtogroup', 'view', get_config('wwwroot') . 'group/view.php?id=' . $submittedgroup->id, hsc($submittedgroup->name));
                    
101    }
                    
                
class.I18NformatDate.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 410 lines
                    
1<?php
                    
2/**
                    
4*/
                    
5require_once 'class.I18Nbase.inc.php';
                    
6
                    
9* @author Michael Wimmer <flaimo@gmail.com>
                    
10* @category flaimo-php
                    
11* @example  ../www_root/i18n_example_script.php  i18n example script
                    
12* @license GNU General Public License v3
                    
13* @link http://code.google.com/p/flaimo-php/
                    
14* @package i18n
                    
143	public static function ISOdateToUnixtimestamp($date = '1900-01-01') {
                    
144		return strtotime($date);
                    
145	} // end function
                    
147	public static function ISOdatetimeToUnixtimestamp($date = '1900-01-01 00:00:00') {
                    
148		return strtotime($date);
                    
149	} // end function
                    
                
home.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 255 lines
                    
133					if ($query->num_rows) {
                    
134						$data['order']['data'][]  = array(date('G', strtotime('-' . (int)$i . ' hour')), (int)$query->row['total']);
                    
135					} else {
                    
146			
                    
147					$data['xaxis'][] = array(date('G', strtotime('-' . (int)$i . ' hour')), date('H', strtotime('-' . (int)$i . ' hour')));
                    
148				}					
                    
169					
                    
170					$data['xaxis'][] = array(date('d', strtotime('-' . (int)$i . ' day')), date('d/m', strtotime('-' . (int)$i . ' day')));
                    
171				}			
                    
193					
                    
194					$data['xaxis'][] = array(date('d', strtotime('-' . (int)$i . ' day')), date('d/m', strtotime('-' . (int)$i . ' day')));
                    
195				}
                    
214					
                    
215					$data['xaxis'][] = array(date('n', strtotime('-' . (int)$i . ' month')), date('m', strtotime('-' . (int)$i . ' month')));
                    
216				}			
                    
                
TimeHelper.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 409 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       Cake.View.Helper
                    
29 * @package       Cake.View.Helper
                    
30 * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html
                    
31 * @see CakeTime
                    
215 * @return string Partial SQL string.
                    
216 * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#formatting
                    
217 */
                    
239 * @return boolean True if datetime string is within current week
                    
240 * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#testing-time
                    
241 */
                    
                
CronObserver.php https://bitbucket.org/premcgvak/scarlet-changes.git | PHP | 271 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-2014 X.commerce, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
169        foreach ($history->getIterator() as $record) {
                    
170            if (strtotime($record->getExecutedAt()) < $now-$historyLifetimes[$record->getStatus()]) {
                    
171                $record->delete();
                    
198            $now = time();
                    
199            $time = strtotime($schedule->getScheduledAt());
                    
200            if ($time > $now) {
                    
                
SqlCompatibleTest.php git://github.com/ichikaway/cakephp-mongodb.git | PHP | 438 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
17 * @since         v 1.0 (14-Dec-2010)
                    
18 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
                    
19 */
                    
395		$expected = '2011-Nov-22 00:00:00';
                    
396		$data = array('title' => 'date', 'created_at' => new MongoDate(strtotime('2011-11-22 00:00:00')));
                    
397		$this->Post->save($data);
                    
412		$expected = '2011-11-22 00:00:00';
                    
413		$data = array('title' => 'date', 'created_at' => new MongoDate(strtotime('2011-11-22 00:00:00')));
                    
414		$this->Post->save($data);
                    
                
home.php https://bitbucket.org/vsepessarii/vsepessarii.git | PHP | 406 lines
                    
1<?php   
                    
2class ControllerCommonHome extends Controller {   
                    
184				'status'     => $result['status'],
                    
185				'date_added' => date($this->language->get('date_format_short'), strtotime($result['date_added'])),
                    
186				'time_added' => date($this->language->get('H:i:s'), strtotime($result['date_added'])),
                    
247			case 'week':
                    
248				$date_start = strtotime('-' . date('w') . ' days'); 
                    
249				
                    
268		
                    
269					$data['xaxis'][] = array($i, date('D', strtotime($date)));
                    
270				}
                    
293					
                    
294					$data['xaxis'][] = array($i, date('j', strtotime($date)));
                    
295				}
                    
                
date.php git://github.com/joomla/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	 */
                    
                
complete_order.php https://bitbucket.org/shehan_jay/invoice_mgt.git | PHP | 218 lines
                    
115                <div class="top-box <?php if($cm_products[$k]['enq_read']==0){?>new-message<?php }?>" >
                    
116                    <div class="expand-deal">   <strong> <a class="pending_" data-target="#view_Model" data-student="en_comp<?php echo $cen;?><?php echo $encorder_id; ?>" itemid="<?php echo $cm_products[$k]['id'];?>" data-toggle="modal"> <?php echo $cm_products[$k]['id']; echo $cm_products[$k]['pname']; ?></a></strong></div>
                    
117                    <div class="expand-deal"> <?php echo date('d/m/Y', strtotime($cm_products[$k]['o_date'])); ?></div> 
                    
121
                    
122                          <button class="btn btn-warning del_cmp_enq" data-id="en_comp<?php echo $cen;?><?php echo $encorder_id; ?>" itemid="<?php echo $cm_products[$k]['pro_ref_no']; ?>"><i class="fa fa-trash-o"></i></button>
                    
123                        <?php } ?> 
                    
133                                    ?>
                    
134                                    <a href="<?php echo site_url(); ?>profile/<?php echo $uniq_id; ?> "><?php echo $pro_user[0]['company_name']; ?></a>
                    
135                                    <?php
                    
163                                ?>
                    
164                                <span <?php if ($msg_list->sent_by == $id) { ?> class="messanger"  <?php } else { ?>   class="sender" <?php } ?>>   
                    
165                                    <label>
                    
188                                               
                    
189                        <form name="send_msg_enq" id="enqqus_<?php echo $cen; ?><?php echo $encorder_id;?>" class="send_msg_enq" method="post">
                    
190                        
                    
                
scheduler_task_save.php http://scalr.googlecode.com/svn/ | PHP | 311 lines
                    
1<?php	
                    
2// functions adds new task to scheduler task table or edits 
                    
295
                    
296		$checkingDate1 = strtotime($date1);	
                    
297		
                    
298		if($date2)	
                    
299			$checkingDate2 = strtotime($date2); // get compareing time	
                    
300		else		
                    
                
performance.php https://bitbucket.org/nando123/unj-iamperform.git | PHP | 299 lines
                    
133							<h5 class="flight-card-title white-text" style="text-shadow: 0px 0px 0px #ffffff;"><b><?php echo $nama_user?></b></h5>
                    
134							<p class="flight-card-date white-text" style="text-shadow: 0px 0px 0px #ffffff;"><?php echo $group_name ?> - <?php echo $no_event ?></p>
                    
135							<p class="flight-card-date white-text" style="text-shadow: 0px 0px 0px #ffffff;">Performance Profiling</p>
                    
151<div class="fixed-action-btn" style="bottom: 45px; right: 24px;">
                    
152	<a class="btn-floating btn-large red" href="<?php echo base_url();?>index.php/performance/ChooseAtlet/data/<?php echo $type ?>">
                    
153	  <i class="large mdi-editor-mode-edit"></i>
                    
161			type : 'POST',
                    
162			url  : '<?php echo base_url();?>index.php/performance/showPopUp',
                    
163			data : {d_id:d_id,komponen:komponen,messo:messo,current:current,benchmark:benchmark},
                    
266			type : 'POST',
                    
267			url  : '<?php echo base_url();?>index.php/performance/viewGrafik',
                    
268			data : {id_performance:id_performance},
                    
287			type : 'POST',
                    
288			url  : '<?php echo base_url();?>index.php/performance/viewTable',
                    
289			data : {id_performance:id_performance},
                    
                
ModelRecovery.php https://bitbucket.org/nando123/iamperform.git | PHP | 304 lines
                    
1<?php
                    
2class ModelRecovery extends CI_Model {	
                    
18				$e['title'] = $point." Point";
                    
19				$e['start'] = date("Y-m-d", strtotime($date));
                    
20
                    
98
                    
99				$ret .="<tr><td>".date("d M Y",strtotime($row->recovery_dttm))."</td><td>$row->recovery_point Pts</td><td>$recoveryPlan Pts</td></tr>";
                    
100				$total = $total+$row->recovery_point;
                    
                
QueriesComponentTest.php git://github.com/yandod/candycane.git | PHP | 483 lines
                    
1<?php
                    
2App::uses('QueriesComponent', 'Controller/Component');
                    
474                0 => array(
                    
475                    'Issue.created_on >' => date('Y-m-d 23:59:59',  strtotime('-3 days')),
                    
476                ),
                    
                
Orders.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 305 lines
                    
1<?php
                    
2/**
                    
18
                    
19require_once( 'OrdersDetails.class.php' );
                    
20
                    
254					$today = date( 'Y-m-d' );
                    
255					$expires_at = date ( 'Y-m-d', strtotime( date( 'Y-m-d', strtotime( $today ) ) . " +$days_to_expire day" ) );
                    
256					OrdersDetails::edit_downloadable_data( $detail->order_detail_id, $expires_at );
                    
                
dashboard.php https://github.com/gabelula/Ushahidi_Web.git | PHP | 275 lines
                    
63						<ul class="inf" style="margin-bottom:10px;">
                    
64							<li class="none-separator"><?php echo Kohana::lang('ui_main.view');?>:<a href="<?php echo url::site() ?>members/dashboard/?range=1"><?php echo Kohana::lang('ui_main.today');?></a></li>
                    
65							<li><a href="<?php echo url::site() ?>members/dashboard/?range=31"><?php echo Kohana::lang('ui_main.past_month');?></a></li>
                    
84							<ul>
                    
85								<li class="none-separator"><a href="<?php echo url::site() . 'members/reports' ?>"><?php echo Kohana::lang('ui_main.view_all');?></a></li>
                    
86								<li><a href="#" class="rss-icon"><?php echo Kohana::lang('ui_main.rss');?></a></li>
                    
147									<li><a href="#" class="<?php echo $incident_approved; ?>"><?php echo strtoupper(Kohana::lang('ui_main.approved'));?>:</a></li>
                    
148									<li><a href="#" class="<?php echo $incident_verified ?>"><?php echo strtoupper(Kohana::lang('ui_main.verified'));?>:</a></li>
                    
149									<li class="last"><a href="#" class="<?php echo $submit_mode; ?>"><?php echo strtoupper(Kohana::lang('ui_main.source'));?>:</a></li>
                    
150								</ul>
                    
151								<h4><strong><?php echo $incident_date; ?></strong><a href="<?php echo url::site() . 'members/reports/edit/' . $incident_id; ?>"><?php echo $incident_title; ?></a></h4>
                    
152								<p><?php echo $incident_description; ?></p>
                    
246								<ul>
                    
247									<li><a href="<?php echo url::site() . 'members/reports?status=a' ?>"><?php echo Kohana::lang('ui_main.not_approved');?></a><strong>(<?php echo $reports_unapproved; ?>)</strong></li>
                    
248
                    
                
class.Formater.php http://scalr.googlecode.com/svn/ | PHP | 349 lines
                    
2    /**
                    
3     * This file is a part of LibWebta, PHP class library.
                    
4     *
                    
60	    {
                    
61			$time = strtotime($string);
                    
62	        return (self::FuzzyTimeString($time));
                    
106	    {
                    
107	        return strtotime($string);
                    
108	    }
                    
                
FetcherComponentTest.php git://github.com/yandod/candycane.git | PHP | 276 lines
                    
105        $this->Component->fetch($user['User'], array('project' => $this->Project->data));
                    
106        $events = $this->Component->events(date('Y-m-d', strtotime('-30 day')), date('Y-m-d', strtotime('+1 day')));
                    
107        $this->assertNotNull($events);
                    
118            $this->assertTrue(
                    
119                strtotime($events[$i]['datetime']) >= strtotime($events[$i + 1]['datetime']),
                    
120                "Compare dates {$events[$i]['datetime']} > {$events[$i + 1]['datetime']}"
                    
122            $this->assertFalse(
                    
123                (strtotime($events[$i]['datetime']) == strtotime($events[$i + 1]['datetime']) &&
                    
124                    $events[$i]['type'] == $events[$i + 1]['type'] &&
                    
139        $this->Component->fetch($user['User'], array('project' => $this->Project->data, 'with_subprojects' => 1));
                    
140        $events = $this->Component->events(date('Y-m-d', strtotime('-30 day')), date('Y-m-d', strtotime('+1 day')));
                    
141        $this->assertNotNull($events);
                    
161        $this->Component->fetch($user['User']);
                    
162        $events = $this->Component->events(date('Y-m-d', strtotime('-30 day')), date('Y-m-d', strtotime('+1 day')));
                    
163        $this->assertNotNull($events);
                    
                
Verifier.php http://ipmanger.googlecode.com/svn/trunk/ | PHP | 374 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////////////////
                    
2/////////////////////////////////////////////////////////////////////////////
                    
3// FleaPHP Framework
                    
4//
                    
7// ??????????????? LICENSE.txt ???
                    
8// ???? http://www.fleaphp.org/ ???????
                    
9/////////////////////////////////////////////////////////////////////////////
                    
16 * @package Core
                    
17 * @version $Id: Verifier.php,v 1.1 2008/09/10 03:00:12 jiang Exp $
                    
18 */
                    
177            case 'D': // ??
                    
178                $test = @strtotime($value);
                    
179                if ($test === false || $test === -1) { return $ret; }
                    
279    {
                    
280        $test = @strtotime($value);
                    
281        return $test !== -1 && $test !== false;
                    
                
Date.php https://bitbucket.org/rlm3/rlm3_dev | PHP | 398 lines
                    
94
                    
95        return date($format, strtotime("+1 day"));
                    
96    }
                    
129
                    
130        $until = strtotime(date('Y-m-d', strtotime($until)));
                    
131        $time = strtotime(date("Y-m-d", $this->_time));
                    
165        $currentTimestamp = strtotime(date('Y-m-d', $this->_time));
                    
166        $endTimestamp = strtotime(date('Y-m-d', strtotime($until)));
                    
167        $dayCount = 0;
                    
197
                    
198                $dateTime = strtotime(date('H:i', strtotime($date)));
                    
199                if ($dateTime < $dayStartTime)
                    
369
                    
370        $this->_time = strtotime("-{$value} {$unit}", $this->_time);
                    
371        return $this;
                    
                
eventlist.php http://wowroster-addons.googlecode.com/svn/trunk/ | PHP | 287 lines
                    
1<?php
                    
2
                    
14 * @version    1.0.3
                    
15 * @svn        SVN: $Id: eventlist.php 171 2007-07-07 18:19:39Z PoloDude $
                    
16 * @author     PoloDude
                    
27
                    
28require_once 'lib/wowdb.php';
                    
29
                    
57if (isset($lastdate)){
                    
58	if (date("j",$lastdate) != date("j",strtotime($row['date']))){
                    
59		for ($i = 1; $i < 8; $i++){				
                    
77		}
                    
78		if (date("j",$resetdate)==date("j",strtotime($row['date']))) {break;}
                    
79		}
                    
89echo '<td class="membersRow'.$rownum.'">';
                    
90echo '<a href="addon.php?roster_addon_name=EventCalendar&event='.$row['eventid'].'">';
                    
91if($addon_conf['EventCalendar']['ShowIcon'])
                    
                
rss.test.php git://github.com/abalonepaul/eav_behavior.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,
                    
                
MmPeer.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 309 lines
                    
1<?php
                    
2
                    
64	$serial['title']       = $rs->getString(5);
                    
65	$serial['publicdate']  = date('d/m/Y', strtotime($rs->getTimestamp(6)));
                    
66	$serial['recorddate']  = date('d/m/Y', strtotime($rs->getTimestamp(7)));
                    
                
MediaView.php git://github.com/cakephp/cakephp.git | PHP | 250 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)
                    
26 *
                    
27 * An example use comes from the CakePHP internals. MediaView is used to serve plugin and theme assets,
                    
28 * as they are not normally accessible from an application's webroot.  Unlike other views, MediaView
                    
                
mini_day_calendar.class.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 147 lines
                    
1<?php
                    
2namespace common\libraries;
                    
5/**
                    
6 * $Id: mini_day_calendar.class.php
                    
7 * @package application.common
                    
8 */
                    
9require_once ('day_calendar.class.php');
                    
10/**
                    
55    {
                    
56        return strtotime(date('Y-m-d ' . $this->get_start_hour() . ':00:00', $this->get_display_time()));
                    
57    }
                    
64    {
                    
65        return strtotime(date('Y-m-d ' . ($this->get_end_hour() - 1) . ':59:59', $this->get_display_time()));
                    
66    }
                    
85            $table_start_date = mktime($hour, 0, 0, date('m', $this->get_display_time()), date('d', $this->get_display_time()), date('Y', $this->get_display_time()));
                    
86            $table_end_date = strtotime('+' . $this->get_hour_step() . ' hours', $table_start_date);
                    
87            $cell_contents = $hour . 'u - ' . ($hour + $this->get_hour_step()) . 'u <br />';
                    
                
pdh.blade.php https://bitbucket.org/mproctor-artba/sctpp.git | PHP | 349 lines
                    
93                			<li></li>
                    
94							<li>All hours must be submitted no later than @php $days = Auth::user()->certificate->daysToRecertify() - 15; @endphp {{ date('m-d-Y', strtotime("+$days days")) }}</li>
                    
95						</ul>
                    
312			contentType: false,
                    
313			success: function(data) { // je récupère la réponse du fichier PHP
                    
314                if(data == 200){
                    
                
ActividadIngreso.php https://code.google.com/p/ss-cup-autogestion-site/ | PHP | 146 lines
                    
1<?php
                    
2
                    
110	{
                    
111		$this->actividadingreso_creado = ($this->actividadingreso_creado != '0000-00-00 00:00:00' && !is_null($this->actividadingreso_creado))?date('d/m/Y H:i:s', strtotime(str_replace('-','/',$this->actividadingreso_creado))):'';
                    
112		$this->actividadingreso_modificado = ($this->actividadingreso_modificado != '0000-00-00 00:00:00' && !is_null($this->actividadingreso_modificado))?date('d/m/Y H:i:s', strtotime(str_replace('-','/',$this->actividadingreso_modificado))):'';
                    
125			{
                    
126				$this->actividadingreso_creado = date('Y-m-d H:i:s', strtotime(str_replace('/','-',$this->actividadingreso_creado)));
                    
127			}
                    
                
print_view_excel.php https://bitbucket.org/bo_hmb/bo_hmb.git | PHP | 238 lines
                    
1<?php
                    
2
                    
53    <tr>           
                    
54        <th style="border:0px solid #000;"><img src="<?php echo base_url() ?>assets/img/logokop.png" class="img-responsive" alt="" height="50" width="50"></th>
                    
55        <th style="border:0px solid #000; width: 300PX"></th>
                    
94                <td style="border:0px solid #000;width: 150px;font-size: 14px;"> 
                    
95                    <h5><?php echo date('d-m-Y  H:m:d', strtotime($master->arrival_date));?></h5>
                    
96                </td>
                    
191                <td style="border:0px solid #000;width: 150px;font-size: 14px;"> 
                    
192                    <h5><?php echo $master->email_addres;?></h5>
                    
193                </td>
                    
230           <td style="border:1px solid #000;"><?php echo $row->meals_program ?></td>  
                    
231           <!-- <td style="border:1px solid #000;"><?php echo date('d-m-Y', strtotime($row->exp_pasport))?></td> -->
                    
232           <!-- <td style="border:1px solid #000;"></td>       -->
                    
233        </tr>   
                    
234    <?php $nomor++;}?> 
                    
235</table>
                    
                
RedisTest.php git://github.com/UnionOfRAD/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');
                    
117
                    
                
skin_contest_rules.php https://github.com/azeckoski/az-php-sandbox.git | PHP | 194 lines
                    
9<?php
                    
10require_once 'include/tool_vars.php';
                    
11
                    
18// check authentication
                    
19require $ACCOUNTS_PATH.'include/check_authentic.php';
                    
20
                    
24
                    
25<?php include $ACCOUNTS_PATH.'include/top_header.php'; // INCLUDE THE HTML HEAD ?>
                    
26<script>
                    
29</script>
                    
30<?php include 'include/header.php'; // INCLUDE THE HEADER ?>
                    
31
                    
190	<li>Firefox Web Developer Extension - <a href="http://chrispederick.com/work/webdeveloper/" target="_new">http://chrispederick.com/work/webdeveloper/</a></li>
                    
191	<li>Firebug (CSS debugging) - <a href="https://addons.mozilla.org/extensions/moreinfo.php?application=firefox&amp;id=1843" target="_new">https://addons.mozilla.org/extensions/moreinfo.php?application=firefox&amp;id=1843</a></li>
                    
192</ul>
                    
193
                    
194<?php include 'include/footer.php'; // Include the FOOTER ?>
                    
                
rss.test.php git://github.com/Datawalke/Coordino.git | PHP | 593 lines
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2012, 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,
                    
                
BinaryStream.php https://bitbucket.org/saqlainkadiri/hellosam.git | PHP | 442 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @package php-font-lib
                    
4 * @link    https://github.com/PhenX/php-font-lib
                    
13 *
                    
14 * @package php-font-lib
                    
15 */
                    
106    if ($allow_memory) {
                    
107      $f = fopen("php://temp", "rb+");
                    
108    }
                    
278    # PHP_INT_MIN isn't defined in PHP < 7.0
                    
279    $php_int_min = defined("PHP_INT_MIN") ? PHP_INT_MIN : ~PHP_INT_MAX;
                    
280
                    
280
                    
281    if (is_string($date) || $date > PHP_INT_MAX || $date < $php_int_min) {
                    
282      $date = 0;
                    
                
usercp_viewprofile.php http://torrentpier2.googlecode.com/svn/trunk/ | PHP | 241 lines
                    
1<?php
                    
2
                    
4
                    
5require(INC_DIR .'bbcode.php');
                    
6
                    
49{
                    
50	$email_uri = ($bb_cfg['board_email_form']) ? 'profile.php?mode=email&amp;'. POST_USERS_URL .'='. $profiledata['user_id'] : 'mailto:'. $profiledata['user_email'];
                    
51	$email = '<a class="editable" href="'. $email_uri .'">'. $profiledata['user_email'] .'</a>';
                    
61//
                    
62include(INC_DIR ."functions_report.php");
                    
63$report_user = report_modules('name', 'report_user');
                    
68	$template->assign_vars(array(
                    
69		'U_REPORT_USER' => 'report.php?mode='. $report_user->mode .'&amp;id='. $profiledata['user_id'],
                    
70		'L_REPORT_USER' => $report_user->lang['WRITE_REPORT'])
                    
142	'TRAF_STATS'           => !(IS_AM || $profile_user_id),
                    
143	'U_MANAGE'             => (IS_ADMIN) ? "profile.php?mode=editprofile&amp;u={$profiledata['user_id']}" : 'profile.php?mode=editprofile',
                    
144));
                    
                
licencia_edit.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 149 lines
                    
1<?php
                    
2
                    
3// Load the QCubed Development Framework
                    
4require('../qcubed.inc.php');
                    
5
                    
5
                    
6require(__FORMBASE_CLASSES__ . '/LicenciaEditFormBase.class.php');
                    
7
                    
17 * NOTE: This file is overwritten on any code regenerations.  If you want to make
                    
18 * permanent changes, it is STRONGLY RECOMMENDED to move both licencia_edit.php AND
                    
19 * licencia_edit.tpl.php out of this Form Drafts directory.
                    
99
                    
100        //$newdate = strtotime ( '+180 day' , strtotime ( $date ) ) ;
                    
101        if ($this->lstPROCESOIdPROCESOObject) {
                    
102            $Proceso = Proceso::LoadByIdPROCESO((int)$this->lstPROCESOIdPROCESOObject->Text);
                    
103            $newdate = date( 'j M Y' , strtotime ( '+'.$Proceso->Duracion.' day' ,strtotime($date)));
                    
104            $this->calFechaFin->Text= $newdate;
                    
                
DateTimeTest.php git://github.com/drupal/drupal.git | PHP | 228 lines
                    
1<?php
                    
2
                    
55    $this->drupalCreateContentType(array('type' => 'article'));
                    
56    $node1 = $this->drupalCreateNode(array('created' => strtotime($date1), 'type' => 'article'));
                    
57    $node2 = $this->drupalCreateNode(array('created' => strtotime($date2), 'type' => 'article'));
                    
                
edit.php http://kandidat-cms.googlecode.com/svn/trunk/ | PHP | 139 lines
                    
1<?php
                    
2$path=substr(str_replace('\\','/',dirname(__FILE__)),0,-6);
                    
61	if(!save($myFile,$somecontent,'w'))$errormessage.='<li>?????????? ?????? ? ???? ('.$myFile.')</li>';
                    
62	if($for_menu == 1)if(!savedata(ENGINE.'menudb.php',array('page'=>($linkinfo.'/'.$whatpage.'.html'),'head'=>$title)))
                    
63         $errormessage.='<li>?????????? ???????? ???? ????</li>';
                    
82}elseif($_REQUEST['action']=='go'){
                    
83	$url=$_SERVER['PHP_SELF'] . $editpage.$whatpage;
                    
84	@$contentcenter .=  '<h3>??????? ????????</h3> ????????: <b>'.$title.'</b><br /><br />
                    
87	<a href="'.$url.'">???????????? ? ?????????????? ????????</a><br /><br />
                    
88	<a href="index.php'.$editpage.'">????????? ? ????????? ????????</a><br /><br />
                    
89	<a href="menueditor.php">??????? ? ?????? ?????????????? ????</a>';
                    
96	$templatedrop=get_templatepage($templatepage);
                    
97	$get_kan_phpfile=get_kan_phpfile($myinclude);
                    
98
                    
111		<textarea name="editor" id="editor" cols=99 rows=25>$content</textarea><br />
                    
112		<label  title="???????? ??? - ??? ???????? ????? (??? ??????? ?? .php), ???????????? ? ???????? /mycode, ? ??????? ?????????? ???, ??????? ????? ?????????? ????? ????????? ?????? ??????????? ????????. ??? ???????? ???????? ?????? ? ?????????? ??????????? ??? <b>main</b>, ???? ?????????? ??????? ???????? ?? ??????? ????? ???????? ????? ???????? ?????, ???????????? ??????? ??????????, ????????, ????? ? ????? ???????, ?????????? ??????? <b>feedback</b>. ?? ?????? ??????? ? ?????? ????, ??????? ?????????? ?????????? ? ???????? <b>/mycode</b> ? ????? ??????????; ?? ????? ??????? ? ????????? ?????? ??????????? ????????. ?????? ?????? ?????? ????????? //phpfile"><b>??? php-????:</b>&nbsp;&nbsp;&nbsp;
                    
113		<span class="select-and-input">
                    
                
ModelMonotony.php https://bitbucket.org/nando123/iamperform.git | PHP | 295 lines
                    
1<?php
                    
2class ModelMonotony extends CI_Model {
                    
102					
                    
103				$w 		= date('w', 		strtotime($StartDay. ' +'.($i).' day'));
                    
104				// $Date 	= date('Y-m-d', 	strtotime($StartDay. ' +'.($i).' day'));
                    
135					
                    
136				$w 		= date('w', 		strtotime($StartDay. ' +'.($i).' day'));
                    
137					
                    
                
sitemapxml_ezpages.php http://daocart.googlecode.com/svn/trunk/ | PHP | 126 lines
                    
1<?php
                    
2/**
                    
9* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                    
10* @version $Id: sitemapxml_ezpages.php, v 2.1.0 30.04.2009 10:35 AndrewBerezin $
                    
11*/
                    
96      } else {
                    
97        if (basename($parse_url['path']) == 'index.php') {
                    
98          $query_string = explode('&', str_replace('&amp;', '&', $parse_url['query']));
                    
116      if (isset($page_query->fields['last_date']) && $page_query->fields['last_date'] != null) {
                    
117        $last_date = strtotime($page_query->fields['last_date']);
                    
118      } else {
                    
                
seg_licencia.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 236 lines
                    
1<?php
                    
2
                    
3// Load the QCubed Development Framework
                    
4require('../qcubed.inc.php');
                    
5
                    
5
                    
6require(__CONFIGURATION__ . '/headerAdmin.inc.php');
                    
7
                    
23    $day = 86400;
                    
24    $sTime = strtotime(date("j F Y")); // Start as time
                    
25    $eTime = strtotime($objLicencia->VencimientoCNP); // End as time
                    
86                $day = 86400;
                    
87                $sTime = strtotime(date("j F Y")); // Start as time
                    
88                $eTime = strtotime($objLicencia->VencimientoCNP); // End as time
                    
143            $day = 86400;
                    
144            $sTime = strtotime($FaseLicObj->FASEFechaInicio); // Start as time
                    
145            $eTime = strtotime($FaseLicObj->FASEFechaFin); // End as time
                    
                
CSVImporter.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 434 lines
                    
1<?php
                    
2/**
                    
6 * 
                    
7 * PHP version 5
                    
8 * LICENSE: This source file is subject to LGPL license
                    
198		// If the date is not in proper date format
                    
199		if (!strtotime($row['INCIDENT DATE']))
                    
200		{
                    
252		$incident->incident_description = isset($row['DESCRIPTION']) ? $row['DESCRIPTION'] : '';
                    
253		$incident->incident_date = date("Y-m-d H:i:s",strtotime($row['INCIDENT DATE']));
                    
254		$incident->incident_dateadd = $this->time;
                    
                
example5.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 213 lines
                    
1<?php
                    
2    /**
                    
3    * o------------------------------------------------------------------------------o
                    
4    * | This package is licensed under the Phpguru license. A quick summary is       |
                    
5    * | that for commercial use, there is a small one-time licensing fee to pay. For |
                    
8    * |                                                                              |
                    
9    * |                  http://www.phpguru.org/static/license.html                  |
                    
10    * o------------------------------------------------------------------------------o
                    
21    */
                    
22    require_once('RGrid.php');
                    
23    
                    
26    $params['password'] = 'datagrid';
                    
27    $params['database'] = 'phpguru';
                    
28
                    
95    {
                    
96        $row['actions'] = sprintf('<a href="http://www.phpguru.org/article.php/%d#comment_%d" target="_blank">View</a>', $row['cm_neid'], $row['cm_id']);
                    
97
                    
                
twitter.js git://github.com/appcelerator/KitchenSink.git | JavaScript | 319 lines
                    
7function strtotime (str, now) {
                    
8	// Emlulates the PHP strtotime function in JavaScript
                    
9	// obtained from http://phpjs.org/functions/strtotime:554
                    
18	} else if (now) {
                    
19		now = new Date(now*1000); // Accept PHP-style seconds
                    
20	} else {
                    
143		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]+'';
                    
144		return parseInt(this.strtotime(s[2] + ' ' + s[1] + ' ' + s[0] + ' ' + match[2])+(match[4] ? match[4]/1000 : ''), 10);
                    
145	}
                    
229				var avatar = tweets[c].user.profile_image_url;
                    
230				var created_at = prettyDate(strtotime(tweets[c].created_at));
                    
231				var bgcolor = (c % 2) == 0 ? '#fff' : '#eee';
                    
                
print_view_excel.php https://bitbucket.org/bo_hmb/bo_hmb.git | PHP | 160 lines
                    
68                <td style="border:0px solid #000;width: 120px;font-size: 14px;background-color: #FFFF00"> 
                    
69                    <h5>: <?php echo date('d-m-Y', strtotime($master->dep_date));?></h5>
                    
70                </td>
                    
98                <td style="border:0px solid #000;width: 120px;font-size: 14px;"> 
                    
99                    <h5>: <?php echo date('d-m-Y H:m:s', strtotime($master->update_at)) ?></h5>
                    
100                </td>
                    
137        <?php if ($row->no_pasport == "") $no_pasport="-"; else $no_pasport=$row->no_pasport; ?>
                    
138        <?php if ($row->exp_pasport == "0000-00-00") $exp_pas="-"; else $exp_pas=date('d-M-Y', strtotime($row->exp_pasport)); ?>
                    
139        
                    
139        
                    
140        <?php $create_pas="-"; if ($row->create_pasport == "0000-00-00") $exp_pas="-"; else $create_pas=date('d-M-Y', strtotime($row->create_pasport)); ?>
                    
141        <tr>                                                
                    
145           <td style="border:1px solid #000;"><?php echo $no_pasport ?></td>
                    
146           <td style="border:1px solid #000;"><?php echo $x="'".date('d-M-Y', strtotime($row->tgl_lahir))?></td>
                    
147           <td style="text-transform: uppercase; border:1px solid #000;"><?php echo strtoupper($row->tmp_lahir) ?></td>
                    
                
BaseTests.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 573 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: BaseTests.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
31 */
                    
32abstract class Zend_Service_Simpy_BaseTests extends PHPUnit_Framework_TestCase
                    
33{
                    
49        'accessType'  => 'public',
                    
50        'tags'        => array('zend', 'framework', 'php'),
                    
51        'urlNickname' => 'Zend Framework web site',
                    
93             */
                    
94            require_once 'Zend/Service/Simpy/Link.php';
                    
95
                    
134        $this->assertNotEquals(
                    
135            strtotime($link->getModDate()),
                    
136            false,
                    
                
php.js git://github.com/forkcms/forkcms.git | JavaScript | 141 lines
                    
32    atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),
                    
33    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 hex2bin 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 http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"),
                    
34    multiLineStrings: true,
                    
63    var htmlMode = CodeMirror.getMode(config, "text/html");
                    
64    var phpMode = CodeMirror.getMode(config, phpConfig);
                    
65
                    
91        return style;
                    
92      } else if (isPHP && state.php.tokenize == null && stream.match("?>")) {
                    
93        state.curMode = htmlMode;
                    
112        var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
                    
113            php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur;
                    
114        if (state.curMode == htmlMode) cur = htmlNew;
                    
138  CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
                    
139  CodeMirror.defineMIME("text/x-php", phpConfig);
                    
140});
                    
                
UnsubscribeTor.php https://bitbucket.org/hfab/webservice.git | PHP | 127 lines
                    
1<?php
                    
2
                    
40        $datedujour = date('Ymd');
                    
41        $hier = date("Ymd",strtotime("-1 day")); // for Mindbaz, because their files are generated at 5:00 AM
                    
42
                    
55            $url = $s . 'mailexport/unsubscribe/phoenix/unsubscribe_ph_' . $datedujour . '.csv';
                    
56            $url_name = parse_url($s, PHP_URL_HOST);
                    
57            $test_url = get_headers($url);
                    
68            $url = $s . 'mailexport/unsubscribe/maildrop/unsubscribe_md_' . $datedujour . '.csv';
                    
69            $url_name = parse_url($s, PHP_URL_HOST);
                    
70            $test_url = get_headers($url);
                    
81            $url = $s . 'mailexport/unsubscribe/smessage/unsubscribe_sm_' . $datedujour . '.csv';
                    
82            $url_name = parse_url($s, PHP_URL_HOST);
                    
83            $test_url = get_headers($url);
                    
94            $url = $s . 'mailexport/unsubscribe/smessage/unsubscribe_m4y_' . $datedujour . '.csv';
                    
95            $url_name = parse_url($s, PHP_URL_HOST);
                    
96            $test_url = get_headers($url);
                    
                
SignupController.php https://bitbucket.org/awylie199/s5t.git | PHP | 364 lines
                    
1<?php
                    
2
                    
134            $user = $this->getDi()->userTable->load((int)$this->getSession()->signup_member_id, false);
                    
135            if ($user && ((($this->getDi()->time - strtotime($user->added)) < 24*3600) && ($user->status == User::STATUS_PENDING)))
                    
136            {
                    
                
rosterdkp_logparse.php http://wowroster-addons.googlecode.com/svn/trunk/ | PHP | 601 lines
                    
1<?php
                    
2/******************************
                    
14 *
                    
15 * $Id: rosterdkp_logparse.php 64 2007-02-11 23:36:30Z mathos $
                    
16 *
                    
18
                    
19require_once('xml_helper.php');
                    
20
                    
342				$this->players[$currentplayer['name']]['leaves'][]=$currentplayer['time'];
                    
343				if(strtotime($currentplayer['time']) > $last_leave) $last_leave = $currentplayer['time'];
                    
344			}
                    
368		// Calculate on time threshold value
                    
369		$players_ontimethreshold = strtotime(substr($this->start, 0, 10).' '.$this->raid_start);
                    
370
                    
371		// Calculate end of raid threshold value
                    
372		$raid_endthreshold  = strtotime(substr($this->start, 0, 10).' '.$this->raid_end);
                    
373		if($raid_endthreshold < $players_ontimethreshold)
                    
                
template-settings-tab-debug.php https://bitbucket.org/GraphicFusion/crafti-landing.git | PHP | 258 lines
                    
1<?php
                    
2
                    
10$period_days = (int) 14;
                    
11$period_start_date = DateTime::createFromFormat( 'U', strtotime( "-$period_days days" ) );
                    
12$period_end_date = DateTime::createFromFormat( 'U', time() );
                    
                
TicketsController.php https://bitbucket.org/nextleveltechus/nextleveltech.git | PHP | 284 lines
                    
1<?php
                    
2
                    
93        $input = $request->all();
                    
94        ($input['startDate']) ? $input['startDate'] = strtotime($input['startDate']) : NULL;
                    
95        ($input['endDate']) ? $input['endDate'] = strtotime($input['endDate']) : NULL;
                    
183        $input = $request->except(['_method','_token','fileTitle','userId']);
                    
184        ($input['startDate']) ? $input['startDate'] = strtotime($input['startDate']) : NULL;
                    
185        ($input['endDate']) ? $input['endDate'] = strtotime($input['endDate']) : NULL;
                    
                
CookieTest.php git://github.com/kriswallsmith/Buzz.git | PHP | 152 lines
                    
1<?php
                    
2
                    
7
                    
8class CookieTest extends \PHPUnit_Framework_TestCase
                    
9{
                    
12        $cookie = new Cookie();
                    
13        $cookie->fromSetCookieHeader('SESSION=asdf; expires='.date('r', strtotime('2000-01-01 00:00:00')).'; path=/; domain=.example.com; secure', 'www.example.com');
                    
14
                    
17        $this->assertEquals(array(
                    
18            'expires' => date('r', strtotime('2000-01-01 00:00:00')),
                    
19            'path'    => '/',
                    
68        $cookie = new Cookie();
                    
69        $cookie->setCreatedAt(strtotime('-1 hour'));
                    
70        $cookie->setAttribute('max-age', 60);
                    
77        $cookie = new Cookie();
                    
78        $cookie->setAttribute('expires', date('r', strtotime('+1 week')));
                    
79
                    
                
UserController.php https://bitbucket.org/inets_company/erb_payment.git | PHP | 378 lines
                    
1<?php
                    
2
                    
148        } else if ($request->user == 'schedule') {
                    
149            \App\Model\Schedule::create(array_merge($request->except('days', 'time'), ['days' => implode(',', $request->days), 'time' => date('Y-m-d h:i', strtotime($request->time))]));
                    
150        } else if ($request->user == 'payment') {
                    
                
ModelLogin.php https://bitbucket.org/nando123/iamperform.git | PHP | 163 lines
                    
1<?php
                    
2	class ModelLogin extends CI_Model {
                    
37			$salt = $hash["salt"]; // salt
                    
38			$birthDttm = date("Y-m-d", strtotime($birth));
                    
39			
                    
                
EditableModel.class.php http://plant.googlecode.com/svn/trunk/ | PHP | 191 lines
                    
1<?php
                    
2
                    
3	/**
                    
4	 * EditableModel.class.php
                    
5	 *
                    
97						if (!isset($data[$field]) || !is_string($data[$field])) throw new Exception("'" . $field . "' needs to be a valid string!");
                    
98						$this->$field = strtotime($data[$field]);
                    
99						break;
                    
                
bug_update.php git://pkgs.fedoraproject.org/mantis | PHP | 227 lines
                    
1<?php
                    
2# MantisBT - a php based bugtracking system
                    
27	  */
                    
28	require_once( 'core.php' );
                    
29
                    
29
                    
30	require_once( 'bug_api.php' );
                    
31	require_once( 'bugnote_api.php' );
                    
31	require_once( 'bugnote_api.php' );
                    
32	require_once( 'custom_field_api.php' );
                    
33
                    
88		} else {
                    
89			$t_bug_data->due_date = strtotime( $t_due_date );
                    
90		}		
                    
166	if ( ( $t_old_bug_status != $t_bug_data->status ) && ( FALSE == $f_update_mode ) ) {
                    
167		# handle status transitions that come from pages other than bug_*update_page.php
                    
168		# this does the minimum to act on the bug and sends a specific message
                    
                
class-wpms-am-notification.php https://bitbucket.org/babinkochana/triptrills.git | PHP | 455 lines
                    
1<?php
                    
2
                    
95
                    
96		$last_checked = get_option( '_amn_' . $this->plugin . '_last_checked', strtotime( '-1 week' ) );
                    
97
                    
97
                    
98		if ( $last_checked < strtotime( 'today midnight' ) ) {
                    
99			$plugin_notifications = $this->get_plugin_notifications( 1 );
                    
205				?>
                    
206				<div class="am-notification am-notification-<?php echo absint( $notification->ID ); ?> notice notice-<?php echo esc_attr( $type ); ?><?php echo $dismissable ? ' is-dismissible' : ''; ?>">
                    
207					<?php echo wp_kses_post( $notification->post_content ); ?>
                    
242			if ( ! in_array( 'everywhere', $location, true ) ) {
                    
243				if ( in_array( 'index.php', $location, true ) && 'index.php' === $pagenow ) {
                    
244					$continue = true;
                    
246
                    
247				if ( in_array( 'plugins.php', $location, true ) && 'plugins.php' === $pagenow ) {
                    
248					$continue = true;
                    
                
CookieTest.php git://github.com/fabpot/symfony.git | PHP | 215 lines
                    
1<?php
                    
2
                    
13
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\BrowserKit\Cookie;
                    
20    {
                    
21        $cookie = new Cookie('foo', 'bar', strtotime('Fri, 20-May-2011 15:25:52 GMT'), '/', '.myfoodomain.com', true);
                    
22        $this->assertEquals('foo=bar; expires=Fri, 20 May 2011 15:25:52 GMT; domain=.myfoodomain.com; path=/; secure; httponly', (string) $cookie, '->__toString() returns string representation of the cookie');
                    
23
                    
24        $cookie = new Cookie('foo', 'bar with white spaces', strtotime('Fri, 20-May-2011 15:25:52 GMT'), '/', '.myfoodomain.com', true);
                    
25        $this->assertEquals('foo=bar%20with%20white%20spaces; expires=Fri, 20 May 2011 15:25:52 GMT; domain=.myfoodomain.com; path=/; secure; httponly', (string) $cookie, '->__toString() encodes the value of the cookie according to RFC 3986 (white space = %20)');
                    
                
gentuan.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 63 lines
                    
1<?php
                    
2header('Content-Type: application/xml; charset=UTF-8');
                    
2header('Content-Type: application/xml; charset=UTF-8');
                    
3include(dirname(dirname(__FILE__)).'/plugins/loader.php');
                    
4include(dirname(dirname(__FILE__)).'/plugins/functions/output.php');
                    
4include(dirname(dirname(__FILE__)).'/plugins/functions/output.php');
                    
5$daytime = strtotime(date('Y-m-d'));
                    
6//echo $token=$system->getConf('system.shopname');exit;
                    
25	
                    
26	$team['begin_time'] = strtotime(date('Y-m-d',$team['begin_time']));
                    
27	if($team['begin_time'] > $daytime) continue;
                    
27	if($team['begin_time'] > $daytime) continue;
                    
28	$team['end_time'] = strtotime(date('Y-m-d',$team['end_time']));
                    
29	if(($team['end_time'] == $team['begin_time'])){ //??????
                    
                
ResponseTransformer.php git://github.com/cakephp/cakephp.git | PHP | 238 lines
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         3.3.0
                    
12 * @since         3.3.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
23/**
                    
24 * This class converts PSR7 responses into CakePHP ones and back again.
                    
25 *
                    
33    /**
                    
34     * Convert a PSR7 Response into a CakePHP one.
                    
35     *
                    
                
single.blade.php https://bitbucket.org/inets_company/erb_payment.git | PHP | 240 lines
                    
22                        <div style="">
                    
23                            <?php if ($invoice->status <> 1) { ?>  <a href="<?= url('payment/add?id=' . $invoice->id) ?>" class="btn btn-danger btn-sm"><i class="fa fa-money"></i> Add Payment </a>
                    
24                            <?php } ?>
                    
73                                        <div class="col-md-4 col-sm-5 inv-label">Date #</div>
                    
74                                        <div class="col-md-8 col-sm-7"><?= date('d M Y', strtotime($invoice->date)) ?></div>
                    
75                                    </div>
                    
82                                            <td data-title="">
                    
83                                                <?php
                    
84                                                $am = $invoice->invoiceFee()->sum('amount');
                    
97                            </div>
                    
98                            <?php
                    
99                            $invoice_fee = $invoice->invoiceFee()->get();
                    
112                                    <tbody>
                    
113                                        <?php
                    
114                                        $x = 1;
                    
                
tags.php https://gitlab.com/BGCX261/zillatek-project-svn-to-git.git | PHP | 367 lines
                    
1<?php
                    
2/**
                    
167					$article['nb_found'] = $knum[$key] = $num;
                    
168					$kdate[$key] = strtotime($article['date']);
                    
169				}
                    
                
bills.ctl.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 281 lines
                    
1<?php
                    
2
                    
140		$data['account_id'] = intval($this->getPost('account_id'));
                    
141        $data['bill_time'] = strtotime($this->getPost('bill_time'));
                    
142		$data['desc'] = safe_convert($this->getPost('desc'));
                    
197		$data['account_id'] = intval($this->getPost('account_id'));
                    
198        $data['bill_time'] = strtotime($this->getPost('bill_time'));
                    
199		$data['desc'] = safe_convert($this->getPost('desc'));
                    
                
logs.php git://github.com/concrete5/concrete5.git | PHP | 212 lines
                    
1<?php
                    
2namespace Concrete\Controller\SinglePage\Dashboard\Reports;
                    
116
                    
117                $fp = fopen('php://output', 'w');
                    
118
                    
186        if ($date_from != '' && $date->toDB($date_from) !== false) {
                    
187            $list->filterByTime(strtotime($date_from), '>=');
                    
188        }
                    
189        if ($date_to != '' && $date->toDB($date_to) !== false) {
                    
190            $list->filterByTime(strtotime($date_to), '<=');
                    
191        }
                    
                
dashtrends.php https://bitbucket.org/Yanachkov/updatepanda18.git | PHP | 351 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-2016 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
                    
91		{
                    
92			$from = strtotime($date_from.' 00:00:00');
                    
93			$to = min(time(), strtotime($date_to.' 23:59:59'));
                    
93			$to = min(time(), strtotime($date_to.' 23:59:59'));
                    
94			for ($date = $from; $date <= $to; $date = strtotime('+1 day', $date))
                    
95			{
                    
127
                    
128		$from = strtotime($date_from.' 00:00:00');
                    
129		$to = min(time(), strtotime($date_to.' 23:59:59'));
                    
                
print_rekap.php https://bitbucket.org/bo_hmb/bo_hmb.git | PHP | 225 lines
                    
54        <th style="border:0px solid #000; width: 80%"> 
                    
55            <!-- <h5 style="text-align: center;">Start <?php echo $x=date('d-m-Y', strtotime($date_star)) ?>  to <?php echo $x=date('d-m-Y', strtotime($date_to)).' From '.$bank.' Bank' ?></h5> -->
                    
56        </th>
                    
93           <td style="border:1px solid #000;"><?php echo $row->nm_lengkap ?></td>
                    
94           <td style="border:1px solid #000;"><?php echo $x=date('d-m-Y', strtotime($row->tgl_bayar)) ?></td>
                    
95           <td style="border:1px solid #000;text-align: right;"><?php echo 'Rp. '.$t=number_format($row->jml_bayar,0,',','.') ?></td>
                    
95           <td style="border:1px solid #000;text-align: right;"><?php echo 'Rp. '.$t=number_format($row->jml_bayar,0,',','.') ?></td>
                    
96           <td style="border:1px solid #000;"><?php echo $row->catatan ?> <?php echo $tgl ?></td>
                    
97           <td style="border:1px solid #000;"><?php echo $row->nm_marketing ?></td>
                    
138           <!-- <td style="border:1px solid #000;text-align: center;"><?php echo $nomor ?></td> -->
                    
139           <td style="border:1px solid #000;"><?php echo $row->nm_jadwal ?></td>     
                    
140           <td style="border:1px solid #000;text-align: right;"><?php echo 'Rp. '.$t=number_format($row->count_jml_bayar,0,',','.') ?></td>      
                    
170           <td style="border:1px solid #000;"><?php echo $nomor ?></td>
                    
171           <td style="border:1px solid #000;"><?php echo $x=date('d-m-Y', strtotime($row->tgl_faktur)) ?></td>
                    
172           <td style="border:1px solid #000;"><?php echo $row->jenis ?></td>
                    
                
class.p3-profiler-reader.php https://bitbucket.org/lpservice-it/ljmc.git | 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				LJMC_PLUGIN_DIR . "/$plugin.php",
                    
330				LJMC_PLUGIN_DIR . "/$plugin/$plugin.php",
                    
330				LJMC_PLUGIN_DIR . "/$plugin/$plugin.php",
                    
331				LJMCMU_PLUGIN_DIR . "/$plugin.php"
                    
332			);
                    
                
Notices.php https://bitbucket.org/djmdigital/total-auto-care-wordpress.git | PHP | 273 lines
                    
1<?php if ( ! defined( 'ABSPATH' ) ) exit;
                    
2
                    
5 *
                    
6 * Can be simply used be adding another line into the nf_admin_notices() function under notices.php
                    
7 *
                    
94                $start = ( isset( $admin_notices[ $slug ][ 'start' ] ) ? $admin_notices[ $slug ][ 'start' ] : $current_date );
                    
95                $start = date( "n/j/Y", strtotime( $start ) );
                    
96                $date_array = explode( '/', $start );
                    
121                // Ensure the notice hasn't been hidden and that the current date is after the start date
                    
122                if ( $admin_display_check == 0 && strtotime( $admin_display_start ) <= strtotime( $current_date ) ) {
                    
123
                    
                
ArchiveComponent.php git://github.com/zuha/Zuha.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(
                    
                
update_hook.php http://wowroster.googlecode.com/svn/trunk/ | PHP | 284 lines
                    
1<?php
                    
2/**
                    
7 * @license    http://www.gnu.org/licenses/gpl.html   Licensed under the GNU General Public License v3.
                    
8 * @version    SVN: $Id: update_hook.php 2222 2010-12-05 10:05:37Z c.treyce@gmail.com $
                    
9 * @link       http://www.wowroster.net
                    
155			$playerName = $playerInfo['name'];
                    
156			$playerDate = date('Y-m-d G:i:s', strtotime($playerInfo['date']));
                    
157			$playerRealm = ( isset($playerInfo['realm']) ? $playerInfo['realm'] : '' );
                    
270
                    
271		$date_str = strtotime($date);
                    
272		$p2newdate = date('Y-m-d H:i:s',$date_str);
                    
                
show.blade.php https://bitbucket.org/tpomaster/thepeoplesoptions.git | PHP | 226 lines
                    
36              <span class="info-title">Start Date: </span>
                    
37              <span class="pull-right">{{ $package->start_date ? date('M. d, Y', strtotime( $package->start_date )) : 'Pending' }}</span>
                    
38            </li>
                    
41              <span class="info-title">End Date: </span>
                    
42              <span class="pull-right">{{ $package->end_date ? date('M. d, Y', strtotime( $package->end_date )) : 'Pending' }}</span>
                    
43            </li>
                    
157                        <div class="panel-wrap">
                    
158                          @php
                    
159                            $management_fee = unserialize($package->management_fee);
                    
159                            $management_fee = unserialize($package->management_fee);
                    
160                          @endphp
                    
161
                    
182                        <div class="panel-wrap">
                    
183                          @php
                    
184                            $tier_config = unserialize($package->tier_config);
                    
                
Backup.php https://bitbucket.org/matthewselby/wpdev.git | PHP | 505 lines
                    
1<?php
                    
2
                    
176		if ( ! function_exists( 'get_plugins' ) ) {
                    
177			require_once ABSPATH . 'wp-admin/includes/plugin.php';
                    
178		}
                    
183
                    
184		return ! empty( $plugins['wpmudev-updates/update-notifications.php'] );
                    
185	}
                    
270		$times = array();
                    
271		$midnight = strtotime( date( "Y-m-d 00:00:00" ) );
                    
272		$tf = get_option( 'time_format' );
                    
350		} else if ('monthly' === $frequency) {
                    
351			$offset = strtotime(date('Y-m-01 00:00:00', $timestamp));
                    
352			$next = $base > 1 ? ($base - 1) * DAY_IN_SECONDS : 0;
                    
                
S3ClientInterface.php https://bitbucket.org/matthewselby/wpdev.git | PHP | 322 lines
                    
1<?php
                    
2namespace ILAB_Aws\S3;
                    
18     *                                      expire. This can be a Unix
                    
19     *                                      timestamp, a PHP DateTime object,
                    
20     *                                      or a string that can be evaluated
                    
20     *                                      or a string that can be evaluated
                    
21     *                                      by strtotime().
                    
22     *
                    
133     * @param mixed  $body    Object data to upload. Can be a
                    
134     *                        StreamInterface, PHP stream resource, or a
                    
135     *                        string of data to upload.
                    
155     * @param mixed  $body    Object data to upload. Can be a
                    
156     *                        StreamInterface, PHP stream resource, or a
                    
157     *                        string of data to upload.
                    
                
Schedule_group_movement.php https://bitbucket.org/bo_hmb/bo_hmb.git | PHP | 291 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
92                // selisih hari data-id="'.$r->id.'"
                    
93                // $lama_hari = ((abs(strtotime($r->tgl_kepulangan) - strtotime($r->tgl_keberangkatan)))/(60*60*24));
                    
94
                    
98                    $r->nm_jadwal,
                    
99                    $x=date('d-m-Y', strtotime($r->tgl_keberangkatan)),
                    
100                    $x=date('d-m-Y', strtotime($r->tgl_kepulangan)),
                    
                
adminCore.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 238 lines
                    
1<?php
                    
2require(CORE_DIR.'/kernel.php');
                    
2require(CORE_DIR.'/kernel.php');
                    
3require(CORE_DIR.'/func_ext.php');
                    
4
                    
16    function adminCore(){
                    
17        define('PHP_SELF',dirname($_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']));
                    
18        parent::kernel();
                    
18        parent::kernel();
                    
19        if(file_exists(BASE_DIR.'/upgrade.php')){
                    
20            $upgrade = $this->loadModel('system/upgrade');
                    
45                foreach($_POST['_DTYPE_DATE'] as $k){
                    
46                    $_POST[$k] = empty($_POST[$k])?$_POST[$k]:strtotime($_POST[$k]);    //php4?php5?strtotime('')????????????
                    
47                }
                    
62                    if($_POST[$k]){
                    
63                        $_POST[$k] = empty($_POST[$k])?$_POST[$k]:strtotime($_POST[$k]);    //php4?php5?strtotime('')????????????
                    
64                        if(isset($_POST['_DTIME_']['H'][$k])){
                    
                
giveobject.act.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 117 lines
                    
2
                    
3	require_once($kapenta->installPath . 'modules/p2p/models/peer.mod.php');
                    
4
                    
69			$local = $db->getObject($objAry['model'], $objAry['fields']['UID']);
                    
70			$localTime = $kapenta->strtotime($local['editedOn']);
                    
71			$newTime = $kapenta->strtotime($objAry['fields']['editedOn']);
                    
                
SoftDeleteBehavior.php git://github.com/CakeDC/utils.git | PHP | 369 lines
                    
1<?php
                    
2/**
                    
8 * @copyright Copyright 2009 - 2013, Cake Development Corporation (http://cakedc.com)
                    
9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10 */
                    
236 * @param object $model
                    
237 * @param mixed $expiration anything parseable by strtotime(), by default '-90 days'
                    
238 * @return integer
                    
253 * @param object $model
                    
254 * @param mixed $expiration anything parseable by strtotime(), by default '-90 days'
                    
255 * @return boolean if there were some outdated records
                    
275 * @param object $model
                    
276 * @param mixed $expiration anything parseable by strtotime(), by default '-90 days'
                    
277 * @return array
                    
279	protected function _purgeDeletedConditions($model, $expiration = '-90 days') {
                    
280		$purgeDate = date('Y-m-d H:i:s', strtotime($expiration));
                    
281		$conditions = array();
                    
                
CookieTest.php git://github.com/symfony/symfony.git | PHP | 366 lines
                    
1<?php
                    
2
                    
13
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\HttpFoundation\Cookie;
                    
158        $cookie = Cookie::create('foo', 'bar', $value);
                    
159        $expire = strtotime($value);
                    
160
                    
241        $expected = 'foo=bar; expires=Fri, 20-May-2011 15:25:52 GMT; Max-Age=0; path=/; domain=.myfoodomain.com; secure; httponly';
                    
242        $cookie = Cookie::create('foo', 'bar', $expire = strtotime('Fri, 20-May-2011 15:25:52 GMT'), '/', '.myfoodomain.com', true, true, false, null);
                    
243        $this->assertEquals($expected, (string) $cookie, '->__toString() returns string representation of the cookie');
                    
246            ->withValue('bar')
                    
247            ->withExpires(strtotime('Fri, 20-May-2011 15:25:52 GMT'))
                    
248            ->withDomain('.myfoodomain.com')
                    
253        $expected = 'foo=bar%20with%20white%20spaces; expires=Fri, 20-May-2011 15:25:52 GMT; Max-Age=0; path=/; domain=.myfoodomain.com; secure; httponly';
                    
254        $cookie = Cookie::create('foo', 'bar with white spaces', strtotime('Fri, 20-May-2011 15:25:52 GMT'), '/', '.myfoodomain.com', true, true, false, null);
                    
255        $this->assertEquals($expected, (string) $cookie, '->__toString() encodes the value of the cookie according to RFC 3986 (white space = %20)');
                    
                
edit-form-comment.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 148 lines
                    
41<div id="preview-action">
                    
42<a class="preview button" href="<?php echo get_comment_link(); ?>" target="_blank"><?php _e('View Comment'); ?></a>
                    
43</div>
                    
49<div class="misc-pub-section" id="comment-status-radio">
                    
50<label class="approved"><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php /* translators: comment type radio button */ _ex('Approved', 'adjective') ?></label><br />
                    
51<label class="waiting"><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php /* translators: comment type radio button */ _ex('Pending', 'adjective') ?></label><br />
                    
51<label class="waiting"><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php /* translators: comment type radio button */ _ex('Pending', 'adjective') ?></label><br />
                    
52<label class="spam"><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php /* translators: comment type radio button */ _ex('Spam', 'adjective'); ?></label>
                    
53</div>
                    
61?>
                    
62<span id="timestamp"><?php printf($stamp, $date); ?></span>&nbsp;<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>
                    
63<div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0, 5); ?></div>
                    
70<div id="delete-action">
                    
71<?php echo "<a class='submitdelete deletion' href='" . wp_nonce_url("comment.php?action=" . ( !EMPTY_TRASH_DAYS ? 'deletecomment' : 'trashcomment' ) . "&amp;c=$comment->comment_ID&amp;_wp_original_http_referer=" . urlencode(wp_get_referer()), 'delete-comment_' . $comment->comment_ID) . "'>" . ( !EMPTY_TRASH_DAYS ? __('Delete Permanently') : __('Move to Trash') ) . "</a>\n"; ?>
                    
72</div>
                    
                
sohu_team.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 63 lines
                    
1<?php
                    
2header('Content-Type: application/xml; charset=UTF-8');
                    
2header('Content-Type: application/xml; charset=UTF-8');
                    
3include(dirname(dirname(__FILE__)).'/plugins/loader.php');
                    
4include(dirname(dirname(__FILE__)).'/plugins/functions/output.php');
                    
25	
                    
26	$one['begin_time'] = strtotime(date('Y-m-d',$one['begin_time']));
                    
27	if($one['begin_time'] > $daytime) continue;
                    
27	if($one['begin_time'] > $daytime) continue;
                    
28	$one['end_time'] = strtotime(date('Y-m-d',$one['end_time']));
                    
29	if(($one['end_time'] == $one['begin_time'])){
                    
                
bayar.php http://kosimpin.googlecode.com/svn/trunk/ | PHP | 66 lines
                    
6    <table>
                    
7	<tr><td>Untuk Pinjaman</td><td>:</td><td><b><?php echo date("d-M-y",strtotime($pinjaman->tgl_transaksi));?></b></td></tr>
                    
8	<tr><td>Saldo Hutang</td><td>:</td><td><b><?php echo number_format($pinjaman->saldo,0); ?></b></td></tr>
                    
10	<br/>
                    
11	<?php echo form_open("cpinjaman/bayar/$id_pinjaman/$id_anggota"); ?>
                    
12	<table>
                    
15		<?php echo bulan_combo("bulan"); ?>
                    
16		<?php echo tahun_combo("tahun"); ?>				
                    
17		</td></tr>
                    
33	</tr>
                    
34	<?php 
                    
35		$total_bayar = 0;
                    
44		<td align='center'><?php echo $c?>.</td>
                    
45		<td><?php echo date("d-M-y",strtotime($byr->tgl_transaksi)); ?></td>
                    
46		<td align='center'><?php echo $byr->jenis_pembayaran; ?></td>
                    
                
reports.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 255 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>
                    
238													<?php } else {?>
                    
239													<a href="#" onclick="reportAction('a','APPROVE', '<?php echo $incident_id; ?>');"><?php echo Kohana::lang('ui_main.approve');?></a>
                    
240													<?php } ?>	
                    
241												</li>
                    
242												<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>
                    
243												<li><a href="#" class="del" onclick="reportAction('d','DELETE', '<?php echo $incident_id; ?>');"><?php echo Kohana::lang('ui_main.delete');?></a></li>
                    
                
cinema_subscribers.php https://bitbucket.org/kostyantyn_kyyashko/kino-teatr.ua.git | PHP | 346 lines
                    
1<?
                    
2require_once('../init.php');
                    
3if(!$task['id'])
                    
140		$result[$obj['cinema_id']]['title']=$obj['cinema'];
                    
141		if(strtotime($obj['notice_begin'])<time() && time()<strtotime($obj['notice_end']))
                    
142		{
                    
                
Cookie.php git://github.com/kriswallsmith/Buzz.git | PHP | 215 lines
                    
1<?php
                    
2
                    
35        // domain
                    
36        if (!$this->matchesDomain(parse_url($request->getHost(), PHP_URL_HOST))) {
                    
37            return false;
                    
67        $expires = $this->getAttribute(static::ATTR_EXPIRES);
                    
68        if ($expires && strtotime($expires) < time()) {
                    
69            return true;
                    
                
users.php https://gitlab.com/kidaa/quantum.git | PHP | 200 lines
                    
1<?php
                    
2namespace A;
                    
75            $this->engine->db->escape($_POST['description']) . "', `birth`='" .
                    
76            $this->engine->db->escape(strtotime($_POST['birth'])) . "'" . $query . " WHERE id=" . (int)$_GET['id']);
                    
77        $_SESSION['msg'] = 'success';
                    
85            "', '" . $this->engine->db->escape($_POST["group"]) . "', '" . $this->engine->db->escape($_POST["description"]) .
                    
86            "', '" . $this->engine->db->escape(strtotime($_POST["birth"])) . "', '" . strtotime('now') . "', '" .
                    
87            $this->engine->db->escape($_POST["pass"]) . "');");
                    
88        $_SESSION['msg'] = 'success';
                    
89        $this->engine->url->redirect(PRTCL . "://" . $this->engine->host . ADM_PATH . "index.php?page=users&view=tiny&id=" .
                    
90            $this->engine->db->getLastId());
                    
172                'caption'   => $this->language['users'],
                    
173                'link'      => 'index.php?page=users'
                    
174            );
                    
                
sweetcron.php https://code.google.com/p/lifepress/ | PHP | 371 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct access allowed.');
                    
2/**
                    
33 * @link http://sweetcron/ Sweetcron
                    
34 * @license http://www.opensource.org/licenses/gpl-2.0.php GPL License
                    
35 */
                    
47		if(!ini_get('safe_mode')){
                    
48			//requires php to not be running in "safe mode"
                    
49			set_time_limit(0);
                    
83			$new->item_status = 'publish';
                    
84			$new->item_date = strtotime($item->get_date());
                    
85			$new->item_title = $this->CI->input->xss_clean(trim(strip_tags($item->get_title())));
                    
116			$class = str_replace('.', '_', $feed_domain);
                    
117			$plugin = BASEPATH.'application/plugins/'.$class.'.php';
                    
118			if (file_exists($plugin)) {
                    
214		if (version_compare(PHP_VERSION, '5.0.0', '<')) {
                    
215			die('Sorry, Sweetcron is for PHP5 and above.  Your version of PHP is lower than that.  Time to upgrade?');
                    
216		}
                    
                
list.blade.php https://bitbucket.org/coredeveloper2013/navipi-test.git | PHP | 107 lines
                    
1<?php
                    
2/**
                    
58                                        <td>{!! $row->email !!}</td>
                    
59                                        <td>{!! date('d-m-Y',strtotime($row->created_at)) !!}</td>
                    
60                                        <?php
                    
                
class-bulk-delete-users.php https://gitlab.com/eita/encontre-consumo-responsavel.git | PHP | 248 lines
                    
32                    <input name="smbdu_roles[]" value = "<?php echo $role; ?>" type = "checkbox">
                    
33                    <label for="smbdu_roles"><?php echo $role; ?> (<?php echo $count . " "; _e( 'Users', 'bulk-delete' ); ?>)</label>
                    
34                </td>
                    
44
                    
45<?php
                    
46        if ( !Bulk_Delete_Util::is_simple_login_log_present() ) {
                    
55                    <?php _e( 'Only restrict to users who have not logged in the last ', 'bulk-delete' );?>
                    
56                    <input type ="textbox" name="smbdu_login_days" id="smbdu_login_days" value ="0" maxlength="4" size="4" <?php echo $disabled; ?> ><?php _e( 'days', 'bulk-delete' );?>
                    
57<?php
                    
96?>
                    
97                        <option value = "<?php echo $key; ?>"><?php echo $value['display']; ?></option>
                    
98<?php
                    
195                    if ( $last_login != NULL ) {
                    
196                        if ( strtotime( $last_login ) > strtotime( '-' . $login_days . 'days' ) ) {
                    
197                            continue;
                    
                
helpers.js https://bitbucket.org/hiolen/dev-deedel.git | JavaScript | 339 lines
                    
115         * Return the string length using PHP function
                    
116         * http://php.net/manual/en/function.strlen.php
                    
117         * http://phpjs.org/functions/strlen/
                    
193            if (format == null) {
                    
194                timeValue = this.strtotime(value);
                    
195            } else {
                    
217         * Returns Unix timestamp based on PHP function strototime
                    
218         * http://php.net/manual/es/function.strtotime.php
                    
219         * http://phpjs.org/functions/strtotime/
                    
230         * Returns if value is numeric
                    
231         * http://php.net/manual/es/var.is_numeric.php
                    
232         * http://phpjs.org/functions/is_numeric/
                    
242         * Returns Array diff based on PHP function array_diff
                    
243         * http://php.net/manual/es/function.array_diff.php
                    
244         * http://phpjs.org/functions/array_diff/
                    
                
ZOrder.class.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 206 lines
                    
1<?php
                    
2class ZOrder {
                    
85		if($check){
                    
86			$today = strtotime(date('Y-m-d'));				
                    
87			foreach($orderitems as $k=>$item){ 
                    
                
ajax.php http://scruwp.googlecode.com/svn/trunk/ | PHP | 478 lines
                    
1<?php
                    
2require_once('config.php');
                    
2require_once('config.php');
                    
3require_once('functions.php');
                    
4header('Content-type: text/x-json;');
                    
129			$endDate = date( 'Y-m-d',(
                    
130				strtotime( toMysql($_REQUEST['beginDate']) ) + ( 604800 * $_REQUEST['duration'] )
                    
131			) );
                    
                
ctl.salescount.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 173 lines
                    
20            $day_st=$_GET['search_year'].'-'.($_GET['search_month']+1).'-01';
                    
21            $day_en=date("Y-m-01",strtotime("+1 month",strtotime($day_st)));
                    
22        }else{
                    
26            $day_st=date("Y-m-01");
                    
27            $day_en=date("Y-m-01",strtotime("+1 month",strtotime($day_st)));
                    
28        }
                    
52        if($_GET['dosearch']){
                    
53            $dateFrom=strtotime($_GET['searchfrom']);
                    
54            $dateTo=strtotime($_GET['searchto']);
                    
60        }else {
                    
61            $dateFrom=strtotime(date("Y").'-01-01');
                    
62            $dateTo=strtotime("+1 year",$dateFrom);
                    
98        }else{
                    
99            $dateFrom=strtotime(date("Y").'-01-01');
                    
100            $dateTo=strtotime("+1 year",$dateFrom);
                    
                
monotony_data.php https://bitbucket.org/nando123/unj-iamperform.git | PHP | 349 lines
                    
1<?php 
                    
2	$data 		= "";
                    
22			$detVolume[$num]	= $row->detail_volume;
                    
23			$day[$num] 			= date("D",strtotime($mdldate[$num]));
                    
24			$hari				= $day[$num];
                    
36			$RIGHT = ($num==0)?'[TrainingMonotoryLeft][TrainingMonotoryRight][TrainingStrainLeft][TrainingStrainRight]':'';
                    
37			$data .="<tr><td>$dayHari - ".($num+1)."</td><td>".date("d M Y", strtotime($mdldate[$num]))."</td>"
                    
38				   ."<td>$sessType[$num]</td><td class='text-center'>$detIntensity[$num]</td>"
                    
80							<h5 class="flight-card-title black-text" style="text-shadow: 1px 1px 1px #ffffff;"><b><?php echo $nama_user?></b></h5>
                    
81							<p class="flight-card-date black-text" style="text-shadow: 1px 1px 1px #ffffff;"><?php echo $group_name ?> - <?php echo $no_event ?></p>
                    
82							<p class="flight-card-date black-text" style="text-shadow: 1px 1px 1px #ffffff;">Training Load</p>
                    
220			type : 'POST',
                    
221			url  : '<?php echo base_url();?>index.php/monotony/viewGrafik',
                    
222			data : {monotony_id:monotony_id},
                    
331			type : 'POST',
                    
332			url  : '<?php echo base_url();?>index.php/monotony/viewGrafikDay',
                    
333			data : {monotony_id:monotony_id},
                    
                
checkupdate.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 327 lines
                    
1<?php
                    
2
                    
33    {
                    
34        include ( NV_ROOTDIR . "/includes/class/geturl.class.php" );
                    
35        $getContent = new UrlGetContents( $global_config );
                    
74        $new_version = ( $i == 'sysUpd' ) ? nv_geVersion( 28800 ) : nv_geVersion( 120 );
                    
75        $values['onlineVersion'] = sprintf( $lang_module['newVersion_detail'], ( string )$new_version->version, ( string )$new_version->name, nv_date( "d-m-Y H:i", strtotime( $new_version->date ) ) );
                    
76        $xtpl->assign( 'VALUE', $values );
                    
100            unset( $onlineModules[$name]['date'] );
                    
101            $onlineModules[$name]['pubtime'] = strtotime( $m['date'] );
                    
102        }
                    
322
                    
323include ( NV_ROOTDIR . "/includes/header.php" );
                    
324echo nv_admin_theme( $contents );
                    
324echo nv_admin_theme( $contents );
                    
325include ( NV_ROOTDIR . "/includes/footer.php" );
                    
326
                    
                
CookieComponent.php https://bitbucket.org/gowthami_gk/inventory_management.git | PHP | 534 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
                    
6 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
                    
13 * @link          https://cakephp.org CakePHP(tm) Project
                    
14 * @package       Cake.Controller.Component
                    
14 * @package       Cake.Controller.Component
                    
15 * @since         CakePHP(tm) v 1.2.0.4213
                    
16 * @license       https://opensource.org/licenses/mit-license.php MIT License
                    
28 * @package       Cake.Controller.Component
                    
29 * @link https://book.cakephp.org/2.0/en/core-libraries/components/cookie.html
                    
30 */
                    
211 * @param int|string $expires Can be either the number of seconds until a cookie
                    
212 *   expires, or a strtotime compatible time offset.
                    
213 * @return void
                    
                
ebpls_fishery_list.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 230 lines
                    
1<?php                                  
                    
2require_once("../lib/ebpls.utils.php");
                    
3define('FPDF_FONTPATH','font/');
                    
4require('../ebpls-php-lib/html2pdf_lib/fpdf.php');     
                    
5include("../lib/phpFunctions-inc.php");
                    
5include("../lib/phpFunctions-inc.php");
                    
6include("../includes/variables.php");
                    
7include("../lib/multidbconnection.php");
                    
125$date_from = str_replace("/", "", $date_from);
                    
126$idate = strtotime($date_from);
                    
127//$idate = $idate - (60*60*24);
                    
129$date_to = str_replace("/", "", $date_to);
                    
130$xdate = strtotime($date_to);
                    
131$xdate = $xdate + (60*60*24);
                    
223$report_desc='Business Establishment';
                    
224//include '../report_signatories_footer1.php';
                    
225
                    
                
homeprezzo-embed.php https://bitbucket.org/homeprezzo/homeprezzo-wp-embed.git | PHP | 445 lines
                    
1<?php
                    
2
                    
57        : get_site_url()
                    
58      ) . '/index.php?homeprezzo-embed';
                    
59
                    
165  public function rewrites() {
                    
166    add_rewrite_rule('^homeprezzo-embed/?', 'index.php?homeprezzo-embed', 'top');
                    
167    add_rewrite_rule('^homeprezzo-embed/prezzos/?', 'index.php?homeprezzo-embed=0&f=prezzos', 'top');
                    
187      }
                    
188      /*var_dump(strtotime(self::getSetting('accessTokenExpiry')),
                    
189      self::getSetting('accessTokenExpiry'),
                    
191      date("Y-m-d H:i:s", time()),
                    
192      (strtotime(self::getSetting('accessTokenExpiry')) - time()));
                    
193      exit;*/
                    
193      exit;*/
                    
194      if ((strtotime(self::getSetting('accessTokenExpiry')) - time()) < 3600) {
                    
195        self::refreshToken();
                    
                
apiCorpClasses.php http://ooe.googlecode.com/svn/trunk/ | PHP | 213 lines
                    
1<?php
                    
2
                    
29            $this->name = (string)$member['name'];
                    
30            $this->startDateTime = strtotime((string)$member['startDateTime']) + $acc->timeOffset;
                    
31            $this->baseID = (int)$member['baseID'];
                    
32            $this->title = (string)$member['title'];
                    
33            $this->logonDateTime = strtotime((string)$member['logonDateTime']) + $acc->timeOffset;
                    
34            $this->logoffDateTime = strtotime((string)$member['logoffDateTime']) + $acc->timeOffset;
                    
111            $this->state = (int)$starbase['state'];
                    
112            $this->stateTimestamp = strtotime((string)$starbase['stateTimestamp']) + $acc->timeOffset;
                    
113            $this->onlineTimestamp = strtotime((string)$starbase['onlineTimestamp']) + $acc->timeOffset;
                    
145                    $this->state = (int)$starbaseData->data->result->state;
                    
146                    $this->stateTimestamp = strtotime((string)$starbaseData->data->result->stateTimestamp) + $acc->timeOffset;
                    
147                    $this->onlineTimestamp = strtotime((string)$starbaseData->data->result->onlineTimestamp) + $acc->timeOffset;
                    
                
DiningWebModule.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 359 lines
                    
1<?php
                    
2
                    
43      // if starts more than one day before, put the date
                    
44      if ($eventStart < strtotime('-1 day', $beginningOfDay)) {
                    
45        $startDate = DateFormatter::formatDate($eventStart, DateFormatter::SHORT_STYLE, DateFormatter::NO_STYLE);
                    
53      // if ends more than one day after, put the date
                    
54      if ($eventEnd > strtotime('+1 day', $endOfDay)) {
                    
55        $endDate = DateFormatter::formatDate($eventEnd, DateFormatter::SHORT_STYLE, DateFormatter::NO_STYLE);
                    
240    $current = $this->getArg('time', time(), FILTER_VALIDATE_INT);
                    
241    $next    = strtotime("+1 day", $current);
                    
242    $prev    = strtotime("-1 day", $current);
                    
                
srv_status.php git://pkgs.fedoraproject.org/zabbix | PHP | 193 lines
                    
1<?php
                    
2/*
                    
20?>
                    
21<?php
                    
22require_once dirname(__FILE__).'/include/config.inc.php';
                    
22require_once dirname(__FILE__).'/include/config.inc.php';
                    
23require_once dirname(__FILE__).'/include/triggers.inc.php';
                    
24require_once dirname(__FILE__).'/include/services.inc.php';
                    
26$page['title'] = _('IT services');
                    
27$page['file'] = 'srv_status.php';
                    
28$page['scripts'] = array();
                    
32
                    
33include_once('include/page_header.php');
                    
34?>
                    
34?>
                    
35<?php
                    
36// VAR	TYPE	OPTIONAL	FLAGS	VALIDATION	EXCEPTION
                    
                
mot_backtax.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 270 lines
                    
1<?php
                    
2$yeartoday = date('Y');
                    
73						//echo "$backtotalfee<br>";
                    
74						$d = date('m',strtotime($lastpaydateyear."-".$getpended['renewaldate1'])); //setting date
                    
75						$s = date('m'); //curretn date
                    
215							
                    
216								$d = date('m',strtotime($lastpaydateyear."-".$nmrenewaldate)); //setting date
                    
217								$s = date('m'); //curretn date
                    
                
class-wpml-tm-dashboard-document-row.php https://bitbucket.org/oriaxx/wenco.git | PHP | 269 lines
                    
100		?>
                    
101		<tr id="row_<?php echo sanitize_html_class( $current_document->ID ); ?>" data-word_count="<?php echo $count; ?>">
                    
102			<td scope="row">
                    
105				?>
                    
106				<input type="checkbox" value="<?php echo $current_document->ID ?>" name="<?php echo $check_field_name; ?>[<?php echo $current_document->ID; ?>][checked]" <?php echo $checked; ?> />
                    
107				<input type="hidden" value="<?php echo $element_type; ?>" name="<?php echo $check_field_name; ?>[<?php echo $current_document->ID; ?>][type]"/>
                    
131					</label>
                    
132                    <textarea id="post_note_<?php echo $current_document->ID ?>" rows="5"><?php echo $note ?></textarea>
                    
133					<table width="100%">
                    
146            <td scope="row" class="manage-column wpml-column-type">
                    
147				<?php
                    
148				if ( isset( $this->post_types[ $this->get_type() ] ) ) {
                    
198                        <i class="<?php echo $status_icon_class; ?>"
                    
199                           title="<?php echo $lang[ 'display_name' ]; ?>: <?php echo $translation_status_text ?>"></i>
                    
200                	</span>
                    
                
IngresoCurso.php https://code.google.com/p/ss-cup-autogestion-site/ | PHP | 151 lines
                    
1<?php
                    
2
                    
137	{ 
                    
138		$this->ingresocurso_inicio = date('Y-m-d', strtotime(str_replace('/','-',$this->ingresocurso_inicio)));
                    
139		$this->ingresocurso_fin = date('Y-m-d', strtotime(str_replace('/','-',$this->ingresocurso_fin)));
                    
144	{
                    
145		$this->ingresocurso_inicio = date('d/m/Y', strtotime($this->ingresocurso_inicio));
                    
146		$this->ingresocurso_fin = date('d/m/Y', strtotime($this->ingresocurso_fin)); 
                    
                
revisions.fn.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 80 lines
                    
2
                    
3	require_once($kapenta->installPath . 'modules/projects/models/membership.mod.php');
                    
4	require_once($kapenta->installPath . 'modules/projects/models/revision.mod.php');
                    
4	require_once($kapenta->installPath . 'modules/projects/models/revision.mod.php');
                    
5	require_once($kapenta->installPath . 'modules/projects/models/project.mod.php');
                    
6	require_once($kapenta->installPath . 'modules/projects/inc/diff.inc.php');
                    
47			$revisionLink = '/projects/revision/' . $row['UID'];
                    
48			$revisionDate = date('Y-m-d', $kapenta->strtotime($row['editedOn']));
                    
49
                    
                
InfiniTimeHelperTest.php git://github.com/infinitas/infinitas.git | PHP | 247 lines
                    
1<?php
                    
2App::uses('CakeSession', 'Model/Datasource');
                    
94		$result = $this->InfiniTime->fromString('2007-09-10 18:00:00');
                    
95		$expected = strtotime('2007-09-10 18:00:00') + 3600;
                    
96		$this->assertEqual($result, $expected);
                    
99		$result = $this->InfiniTime->fromString('2007-09-10 18:00:00', 5);
                    
100		$expected = strtotime('2007-09-10 18:00:00') + (3600 * 5);
                    
101		$this->assertEqual($result, $expected);
                    
162
                    
163		$monday = date('Y-m-d', strtotime('-' . (date('N')-1) . 'DAY'));
                    
164		$this->assertFalse($this->InfiniTime->isThisWeek($monday . ' 01:00:00'));
                    
177
                    
178		$this->assertFalse($this->InfiniTime->isTomorrow(date('Y-m-d', strtotime('+1 DAY')) . ' 01:00:00'));
                    
179		$this->assertTrue($this->InfiniTime->isTomorrow(date('Y-m-d', strtotime('+1 DAY')) . ' 10:00:00'));
                    
213
                    
214		$result = $this->InfiniTime->timeAgoInWords(strtotime('-2 hours'));
                    
215		$this->AssertEqual('2 hours ago', $result);
                    
                
CampagneTokensOld.php https://bitbucket.org/hfab/webservice.git | PHP | 368 lines
                    
1<?php namespace App\Console\Commands;
                    
2
                    
64        // on charge les "déja destinataires"
                    
65        $dateOffset = date('Y-m-d', strtotime("-7 days"));
                    
66
                    
                
linkeddataapigraph.class.php http://puelia-php.googlecode.com/svn/trunk/ | PHP | 368 lines
                    
1<?php
                    
2require_once 'graphs/pueliagraph.class.php';
                    
138        } else if(isset($object['datatype']) AND $object['datatype'] == XSD.'dateTime'){
                    
139            $target = date(DATE_COOKIE, strtotime($object['value']));
                    
140        } else if(isset($object['datatype']) AND $object['datatype'] == XSD.'date'){
                    
140        } else if(isset($object['datatype']) AND $object['datatype'] == XSD.'date'){
                    
141            $target = date(DATE_W3C, strtotime($object['value']));
                    
142        } else if($this->has_resource_triple($object['value'], RDF_TYPE, RDF_LIST)){
                    
                
08_reportes_hoy.php https://bitbucket.org/webdev_pe/dmejiasoft.git | PHP | 200 lines
                    
1<?php
                    
2require("../../poo/clases/getConection.php");
                    
4$cod=$_POST['cod']; $cdc=$_POST['cdc']; $nom=$_POST['nom']; 
                    
5$dsd=($_POST['dsd']!="")?date("Y-m-d",strtotime($_POST['dsd'])):"";
                    
6$hst=($_POST['hst']!="")?date("Y-m-d",strtotime($_POST['hst'])):"";
                    
53      "bServerSide": true,
                    
54      "sAjaxSource": "content/scripts/propiedades.php",*/
                    
55	  'bJQueryUI': true,
                    
87	  var new_tab=window.open("","_blank");		
                    
88	 	<?php
                    
89$cod=$_POST['cod']; $cdc=$_POST['cdc']; $nom=$_POST['nom']; 
                    
89$cod=$_POST['cod']; $cdc=$_POST['cdc']; $nom=$_POST['nom']; 
                    
90$dsd=($_POST['dsd']!="")?date("Y-m-d",strtotime($_POST['dsd'])):"";
                    
91$hst=($_POST['hst']!="")?date("Y-m-d",strtotime($_POST['hst'])):"";
                    
93		?>
                    
94	  new_tab.location="sicpri/01_cobranzas/reporte.php?s="+s+"&cp=<?=base64_encode($cod)?>&cc=<?=base64_encode($cdc)?>&nc=<?=base64_encode($nom)?>&fd=<?=base64_encode($dsd)?>&fh=<?=base64_encode($hst)?>&tp=<?=base64_encode($tip)?>&op=<?=base64_encode($otx)?>&zn=<?=base64_encode($ztx)?>&gl=<?=base64_encode($gtx)?>";
                    
95	});
                    
                
DateUtils.php http://smartbook.googlecode.com/svn/trunk/ | PHP | 82 lines
                    
1<?php
                    
2/*
                    
5 * To change the template for this generated file go to
                    
6 * Window - Preferences - PHPeclipse - PHP - Code Templates
                    
7 */
                    
15			
                    
16	  		$sec =  strtotime($dateNow) - strtotime($date); 
                    
17//	  		echo "\nnum secs : " . $sec;
                    
                
ProductUpgrade.php https://bitbucket.org/awylie199/s5t.git | PHP | 237 lines
                    
1<?php
                    
2/**
                    
121            $date = $p->addTo($date);
                    
122            $days_diff = intval((strtotime($date . ' 00:00:00') - strtotime('today 00:00:00')) / (3600*24));
                    
123            $newItem->first_period = "{$days_diff}d";
                    
167    {
                    
168        return round((strtotime("$date2 12:00:00")  
                    
169                    - strtotime("$date1 12:00:00")) / 86400);
                    
194            $pn = new Am_Period($period_n);
                    
195            $days_o = strtotime($po->addTo('2012-04-01') . ' 00:00:00')
                    
196                     - strtotime('2012-04-01 00:00:00');
                    
197            $days_o = intval($days_o/(3600*24));
                    
198            $days_n = strtotime($pn->addTo('2012-04-01') . ' 00:00:00')
                    
199                     - strtotime('2012-04-01 00:00:00');
                    
                
bju_helper.php https://bitbucket.org/bo_hmb/bo_hmb.git | PHP | 323 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
96
                    
97		$hitung = strtotime(gmdate ("Y-m-d H:i:s", time () +60 * 60 * 8))-$wkt;
                    
98		$hasil = array();
                    
                
main.php https://bitbucket.org/bo_hmb/bo_hmb.git | PHP | 121 lines
                    
73                                                <option value=""></option>                                                
                    
74                                                <?php 
                    
75                                                    $packet = Modules::run('packet/get_where', array('paket.active' => '1','paket.kd_cabang'=>$this->kode_cabang))->result();
                    
76                                                    foreach ($packet as $row) { ?> 
                    
77                                                    <option value="<?php echo $row->nm_paket; ?>"><?php echo $row->nm_paket; ?> | <?php echo $row->nm_jadwal; ?></option>    
                    
78                                                <?php } ?>
                    
83                                                <option value=""></option>                                                
                    
84                                                <?php
                    
85                                                 $schedule= Modules::run('schedule/get_schedule_where', array('active' => '1'))->result(); 
                    
86                                                foreach ($schedule as $row) { ?>
                    
87                                                <option value="<?php echo $row->tgl_keberangkatan; ?>"><?php echo $x=date('d-m-Y', strtotime($row->tgl_keberangkatan)); ?></option>   
                    
88                                                <?php
                    
                
TrackingController.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 224 lines
                    
1<?php
                    
2
                    
4
                    
5namespace PhpMyAdmin\Controllers\Table;
                    
6
                    
6
                    
7use PhpMyAdmin\DbTableExists;
                    
8use PhpMyAdmin\Message;
                    
8use PhpMyAdmin\Message;
                    
9use PhpMyAdmin\ResponseRenderer;
                    
10use PhpMyAdmin\Template;
                    
10use PhpMyAdmin\Template;
                    
11use PhpMyAdmin\Tracker;
                    
12use PhpMyAdmin\Tracking;
                    
12use PhpMyAdmin\Tracking;
                    
13use PhpMyAdmin\Url;
                    
14use PhpMyAdmin\Util;
                    
                
root_oldlogins.php http://bitsand.googlecode.com/svn/trunk/ | PHP | 152 lines
                    
1<?php
                    
2/*
                    
20
                    
21include ('../inc/inc_head_db.php');
                    
22require ('../inc/inc_admin.php');
                    
22require ('../inc/inc_admin.php');
                    
23require ('../inc/inc_root.php');
                    
24
                    
30//Set age
                    
31if (isset ($_POST ['btnUpdate']) && CheckReferrer ('root_oldlogins.php'))
                    
32	$iAge = (int) $_POST ['txtAge'];
                    
32	$iAge = (int) $_POST ['txtAge'];
                    
33elseif (isset ($_POST ['hAge']) && CheckReferrer ('root_oldlogins.php'))
                    
34	$iAge = (int) $_POST ['hAge'];
                    
36	$iAge = 18;
                    
37$sDate = date ("Y-m-d", strtotime ("-$iAge months"));
                    
38
                    
                
lib.date.php https://bitbucket.org/dotclear/dotclear/ | PHP | 260 lines
                    
1<?php
                    
2# -- BEGIN LICENSE BLOCK ---------------------------------------
                    
24	* Returns a date formated like PHP 
                    
25	* {@link http://www.php.net/manual/en/function.strftime.php strftime}
                    
26	* function.
                    
69	{
                    
70		return dt::str($p,strtotime($dt),$tz);
                    
71	}
                    
                
comunas_controller.php https://github.com/pvalencia/CoordinaChile.git | PHP | 231 lines
                    
1<?php
                    
2class ComunasController extends AppController {
                    
104		foreach($operativos as $fecha_llegada => $list_operativo){
                    
105			$time_inicio = strtotime($fecha_llegada);
                    
106			foreach($list_operativo as $key => $duracion){
                    
110					//$time_fin = mktime(0, 0, 0, date('m', $time_inicio), date('d', $time_inicio)+$duracion, date('Y', $time_inicio));
                    
111					$time_fin =  strtotime($fecha_llegada)+(($duracion-1)*24*60*60);
                    
112					if($now >= $time_inicio && $now <= $time_fin){
                    
                
ReplacesAttributes.php https://bitbucket.org/dothessay/fanaka.git | PHP | 508 lines
                    
1<?php
                    
2
                    
387    {
                    
388        if (! strtotime($parameters[0])) {
                    
389            return str_replace(':date', $this->getDisplayableAttribute($parameters[0]), $message);
                    
                
cdn_config.php https://bitbucket.org/alex_poluektov/itech_test.git | PHP | 495 lines
                    
1<?php
                    
2IncludeModuleLangFile(__FILE__);
                    
91			$this->active = intval($node->getAttribute("active"));
                    
92			$this->expires = strtotime($node->getAttribute("expires"));
                    
93		}
                    
                
TimeField.php git://github.com/silverstripe/sapphire.git | PHP | 268 lines
                    
1<?php
                    
2require_once 'Zend/Date.php';
                    
11 *    through {@link Zend_Locale_Format::getTimeFormat()}.
                    
12 * - 'use_strtotime' (boolean): Accept values in PHP's built-in strtotime() notation, in addition
                    
13 *    to the format specified in `timeformat`. Example inputs: 'now', '11pm', '23:59:59'.
                    
31		'timeformat' => null,
                    
32		'use_strtotime' => true,
                    
33		'datavalueformat' => 'HH:mm:ss'
                    
115
                    
116		// Fuzzy matching through strtotime() to support a wider range of times,
                    
117		// e.g. 11am. This means that validate() might not fire.
                    
118		// Note: Time formats are assumed to be less ambiguous than dates across locales.
                    
119		if($this->getConfig('use_strtotime') && !empty($val)) {
                    
120			if($parsedTimestamp = strtotime($val)) {
                    
                
lastRSS.php https://github.com/amanai/next24.git | PHP | 229 lines
                    
1<?php
                    
2/*
                    
5 
                    
6 Simple yet powerfull PHP class to parse RSS files.
                    
7 
                    
31* lastRSS
                    
32* Simple yet powerfull PHP class to parse RSS files.
                    
33*/
                    
159			// If date_format is specified and lastBuildDate is valid
                    
160			if ($this->date_format != '' && ($timestamp = strtotime($result['lastBuildDate'])) !==-1) {
                    
161						// convert lastBuildDate to specified date format
                    
209					// If date_format is specified and pubDate is valid
                    
210					if ($this->date_format != '' && ($timestamp = strtotime($result['items'][$i]['pubDate'])) !==-1) {
                    
211						// convert pubDate to specified date format
                    
                
mdl.refund.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 233 lines
                    
1<?php
                    
2
                    
2
                    
3require_once('shopObject.php');
                    
4
                    
105        if ($filter['start_date']&&$filter['end_date'])
                    
106            $where[] = ' (t_ready>='.strtotime($filter['start_date']).' AND t_ready<='.strtotime($filter['end_date'].' 23:59:59').') ';
                    
107        elseif ($filter['start_date'])
                    
107        elseif ($filter['start_date'])
                    
108            $where[] = "t_ready>=".strtotime($filter['start_date']);
                    
109        elseif ($filter['end_date'])
                    
109        elseif ($filter['end_date'])
                    
110            $where[] = "t_ready<=".strtotime($filter['end_date'].' 23:59:59');
                    
111        return parent::_filter($filter).' and '.implode($where,' AND ');
                    
                
SugarAuthenticate.php https://bitbucket.org/hatim_alam/sugar-8.git | PHP | 372 lines
                    
1<?php
                    
2/*
                    
33	    // check in custom dir first, in case someone want's to override an auth controller
                    
34	    SugarAutoLoader::requireWithCustom('modules/Users/authentication/'.$this->authenticationDir.'/' . $this->userAuthenticateClass . '.php');
                    
35
                    
73                // Bug # 45922 - calculating the expiretime properly
                    
74                $stim = strtotime($logout_time);
                    
75                $mins = $res['lockoutexpirationtime']*$res['lockoutexpirationtype'];
                    
82			        $_SESSION['login_error'] .= $app_strings['LBL_LOGIN_LOGIN_TIME_ALLOWED'] . ' ';
                    
83			        $lol= strtotime($expiretime)-strtotime(TimeDate::getInstance()->nowDb());
                    
84					        switch (true) {
                    
116		if ($this->userAuthenticate->loadUserOnLogin($username, $password, $fallback, $PARAMS)) {
                    
117			require_once('modules/Users/password_utils.php');
                    
118            if (hasPasswordExpired($username, true)) {
                    
218				}
                    
219				header("Location: index.php?action=Login&module=Users&loginErrorMessage=LBL_SESSION_EXPIRED");
                    
220				sugar_cleanup(true);				
                    
                
UpdateRepository.php https://bitbucket.org/sergiu-tot-fb/vendors.git | PHP | 256 lines
                    
1<?php
                    
2/**
                    
21 * Class UpdateRepository
                    
22 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
23 */
                    
171                $this->resource->load($oldUpdate, $id);
                    
172                if (strtotime($entity->getStartTime()) != strtotime($oldUpdate->getStartTime())) {
                    
173                    if ($id <= $this->versionHistory->getCurrentId()) {
                    
221    {
                    
222        $timestamp = strtotime($entity->getStartTime());
                    
223        try {
                    
                
Rule.php https://bitbucket.org/sergiu-tot-fb/vendors.git | PHP | 284 lines
                    
1<?php
                    
2/**
                    
18/**
                    
19 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
20 */
                    
94     * @param null $connectionName
                    
95     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
96     */
                    
207        if (is_string($date)) {
                    
208            $date = strtotime($date);
                    
209        }
                    
225     * @return $this
                    
226     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
                    
227     */
                    
                
BaseAdapter.php git://github.com/ihumanable/prosper-lib.git | PHP | 342 lines
                    
1<?php
                    
2/**
                    
84  /**
                    
85   * Wrapper for the adapters add slashes function, defaults to using php's 
                    
86   * addslashes built-in
                    
312  function mktime($timestamp) {
                    
313    return strtotime($timestamp);
                    
314  }
                    
                
BF_date_helper.php git://github.com/ci-bonfire/Bonfire.git | PHP | 266 lines
                    
1<?php defined('BASEPATH') || exit('No direct script access allowed');
                    
2/**
                    
33     * @param mixed  $start    The start date as a unix timestamp or in a format
                    
34     * which can be used within strtotime().
                    
35     * @param mixed  $end      The ending date as a unix timestamp or in a
                    
35     * @param mixed  $end      The ending date as a unix timestamp or in a
                    
36     * format which can be used within strtotime().
                    
37     * @param string $interval A string with the interval to use. Valid values
                    
38     * are 'week', 'day', 'hour', or 'minute'.
                    
39     * @param bool   $reformat If TRUE, will reformat the time using strtotime().
                    
40     *
                    
61        if ($reformat === true) {
                    
62            $start = strtotime($start);
                    
63            $end   = strtotime($end);
                    
226     *
                    
227     * For supported timezones visit - http://php.net/manual/timezones.php
                    
228     * For accepted formats visit - http://php.net/manual/function.date.php
                    
                
controller.php git://github.com/concrete5/concrete5.git | PHP | 414 lines
                    
1<?php
                    
2
                    
65        if ($dateFrom) {
                    
66            $dateFrom = date('Y-m-d', strtotime($dateFrom));
                    
67            $list->filterByAttribute($this->attributeKey->getAttributeKeyHandle(), $dateFrom, '>=');
                    
69        if ($dateTo) {
                    
70            $dateTo = date('Y-m-d', strtotime($dateTo));
                    
71            $list->filterByAttribute($this->attributeKey->getAttributeKeyHandle(), $dateTo, '<=');
                    
179            if (!($value instanceof DateTime)) {
                    
180                $timestamp = strtotime($value);
                    
181                $value = new DateTime(date('Y-m-d H:i:s', $timestamp));
                    
205                    } elseif ($this->akDateDisplayMode === 'date_text') {
                    
206                        $format = $dh->getPHPDatePattern();
                    
207                    } else {
                    
207                    } else {
                    
208                        $format = $dh->getPHPDateTimePattern();
                    
209                    }
                    
                
export_excel.php https://bitbucket.org/bo_hmb/bo_hmb.git | PHP | 35 lines
                    
1            <form role="form" method="POST" action="<?php echo base_url(); ?>registrasi/cetak_excel" target="_blank" class="form-horizontal" id="form-export">
                    
2            
                    
10                                <option></option>                               
                    
11                                <?php
                    
12                                foreach ($schedule as $row) { ?>
                    
12                                foreach ($schedule as $row) { ?>
                    
13                                <option value="<?php echo $row->id; ?>"><?php echo $x=date('d-m-Y', strtotime($row->tgl_keberangkatan)) ?></option>   
                    
14                                <?php
                    
27                                <button type="submit" class="btn btn-outline green submit" target="_blank"><i class="fa fa-file-pdf-o"></i> Export</button>
                    
28                                <!-- <a type="submit" class="btn btn-outline green" href="<?php echo base_url(); ?>spending/export1" target="_blank"><i class="fa fa-file-pdf-o"></i> Export</a> -->
                    
29                                <button type="button" class="btn red btn-outline" data-dismiss="modal"><i class="fa fa-times"></i> Exit</button>
                    
                
CampaignController.php https://bitbucket.org/generaltechnology/sticar-trip.git | PHP | 388 lines
                    
1<?php
                    
2
                    
347                        'status'          => 'closed',
                    
348                        'createdAt'       => date("Y-m-d H:i:s", mt_rand(strtotime($startDate), strtotime($endDate)))
                    
349                    ]);
                    
370                    'status'          => 'closed',
                    
371                    'createdAt'       => date("Y-m-d H:i:s", mt_rand(strtotime($startDate), strtotime($endDate)))
                    
372                ]);
                    
                
201610.php https://bitbucket.org/kamegai_mp/dai-ichi-seimei.git | PHP | 194 lines
                    
1<?php
                    
2//現在の月とMTから出力される月を比較するフラグをたてる
                    
5	$nowmonth = date('Ym');
                    
6	$forwardmonth = date('Ym', strtotime("+ 3 month"));
                    
7
                    
140<tbody><tr>
                    
141<td width="38" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_06.gif" width="38" height="21" border="0"></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
143<td width="305" align="right" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201611.php"><font color="#FFFFFF" class="text1">11月へ</font></a><?php endif; ?></td>
                    
144<td width="42" align="right" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201611.php"><img src="../img_cmn/schedule_06_3.gif" width="42" height="21" border="0"></a><?php endif; ?></td>
                    
153
                    
154<td width="31" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_07_1.gif" width="31" height="20" border="0"></a><?php endif;?></td>
                    
155<td width="309" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text2">5月へ</font></a><?php endif;?></td>
                    
156
                    
157<td width="315" align="right" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201611.php"><font color="#FFFFFF" class="text2">11月へ</font></a><?php endif;?></td>
                    
158<td width="32" align="right" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201611.php"><img src="../img_cmn/schedule_07_3.gif" width="32" height="20" border="0"></a><?php endif;?></td>
                    
                
201609.php https://bitbucket.org/kamegai_mp/dai-ichi-seimei.git | PHP | 194 lines
                    
1<?php
                    
2//現在の月とMTから出力される月を比較するフラグをたてる
                    
5	$nowmonth = date('Ym');
                    
6	$forwardmonth = date('Ym', strtotime("+ 3 month"));
                    
7
                    
140<tbody><tr>
                    
141<td width="38" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_06.gif" width="38" height="21" border="0"></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
143<td width="305" align="right" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201610.php"><font color="#FFFFFF" class="text1">10月へ</font></a><?php endif; ?></td>
                    
144<td width="42" align="right" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201610.php"><img src="../img_cmn/schedule_06_3.gif" width="42" height="21" border="0"></a><?php endif; ?></td>
                    
153
                    
154<td width="31" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_07_1.gif" width="31" height="20" border="0"></a><?php endif;?></td>
                    
155<td width="309" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text2">5月へ</font></a><?php endif;?></td>
                    
156
                    
157<td width="315" align="right" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201610.php"><font color="#FFFFFF" class="text2">10月へ</font></a><?php endif;?></td>
                    
158<td width="32" align="right" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201610.php"><img src="../img_cmn/schedule_07_3.gif" width="32" height="20" border="0"></a><?php endif;?></td>
                    
                
201607.php https://bitbucket.org/kamegai_mp/dai-ichi-seimei.git | PHP | 194 lines
                    
1<?php
                    
2//現在の月とMTから出力される月を比較するフラグをたてる
                    
5	$nowmonth = date('Ym');
                    
6	$forwardmonth = date('Ym', strtotime("+ 3 month"));
                    
7
                    
140<tbody><tr>
                    
141<td width="38" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_06.gif" width="38" height="21" border="0"></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
143<td width="305" align="right" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201608.php"><font color="#FFFFFF" class="text1">8月へ</font></a><?php endif; ?></td>
                    
144<td width="42" align="right" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201608.php"><img src="../img_cmn/schedule_06_3.gif" width="42" height="21" border="0"></a><?php endif; ?></td>
                    
153
                    
154<td width="31" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_07_1.gif" width="31" height="20" border="0"></a><?php endif;?></td>
                    
155<td width="309" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text2">5月へ</font></a><?php endif;?></td>
                    
156
                    
157<td width="315" align="right" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201608.php"><font color="#FFFFFF" class="text2">8月へ</font></a><?php endif;?></td>
                    
158<td width="32" align="right" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201608.php"><img src="../img_cmn/schedule_07_3.gif" width="32" height="20" border="0"></a><?php endif;?></td>
                    
                
201605.php https://bitbucket.org/kamegai_mp/dai-ichi-seimei.git | PHP | 194 lines
                    
1<?php
                    
2//現在の月とMTから出力される月を比較するフラグをたてる
                    
5	$nowmonth = date('Ym');
                    
6	$forwardmonth = date('Ym', strtotime("+ 3 month"));
                    
7
                    
140<tbody><tr>
                    
141<td width="38" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_06.gif" width="38" height="21" border="0"></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
143<td width="305" align="right" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201606.php"><font color="#FFFFFF" class="text1">6月へ</font></a><?php endif; ?></td>
                    
144<td width="42" align="right" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201606.php"><img src="../img_cmn/schedule_06_3.gif" width="42" height="21" border="0"></a><?php endif; ?></td>
                    
153
                    
154<td width="31" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_07_1.gif" width="31" height="20" border="0"></a><?php endif;?></td>
                    
155<td width="309" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text2">5月へ</font></a><?php endif;?></td>
                    
156
                    
157<td width="315" align="right" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201606.php"><font color="#FFFFFF" class="text2">6月へ</font></a><?php endif;?></td>
                    
158<td width="32" align="right" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201606.php"><img src="../img_cmn/schedule_07_3.gif" width="32" height="20" border="0"></a><?php endif;?></td>
                    
                
201604.php https://bitbucket.org/kamegai_mp/dai-ichi-seimei.git | PHP | 194 lines
                    
1<?php
                    
2//現在の月とMTから出力される月を比較するフラグをたてる
                    
5	$nowmonth = date('Ym');
                    
6	$forwardmonth = date('Ym', strtotime("+ 3 month"));
                    
7
                    
140<tbody><tr>
                    
141<td width="38" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_06.gif" width="38" height="21" border="0"></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
143<td width="305" align="right" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201605.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
144<td width="42" align="right" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201605.php"><img src="../img_cmn/schedule_06_3.gif" width="42" height="21" border="0"></a><?php endif; ?></td>
                    
153
                    
154<td width="31" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_07_1.gif" width="31" height="20" border="0"></a><?php endif;?></td>
                    
155<td width="309" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text2">5月へ</font></a><?php endif;?></td>
                    
156
                    
157<td width="315" align="right" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201605.php"><font color="#FFFFFF" class="text2">5月へ</font></a><?php endif;?></td>
                    
158<td width="32" align="right" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201605.php"><img src="../img_cmn/schedule_07_3.gif" width="32" height="20" border="0"></a><?php endif;?></td>
                    
                
201603.php https://bitbucket.org/kamegai_mp/dai-ichi-seimei.git | PHP | 194 lines
                    
1<?php
                    
2//現在の月とMTから出力される月を比較するフラグをたてる
                    
5	$nowmonth = date('Ym');
                    
6	$forwardmonth = date('Ym', strtotime("+ 3 month"));
                    
7
                    
140<tbody><tr>
                    
141<td width="38" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_06.gif" width="38" height="21" border="0"></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
143<td width="305" align="right" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201604.php"><font color="#FFFFFF" class="text1">4月へ</font></a><?php endif; ?></td>
                    
144<td width="42" align="right" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201604.php"><img src="../img_cmn/schedule_06_3.gif" width="42" height="21" border="0"></a><?php endif; ?></td>
                    
153
                    
154<td width="31" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_07_1.gif" width="31" height="20" border="0"></a><?php endif;?></td>
                    
155<td width="309" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text2">5月へ</font></a><?php endif;?></td>
                    
156
                    
157<td width="315" align="right" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201604.php"><font color="#FFFFFF" class="text2">4月へ</font></a><?php endif;?></td>
                    
158<td width="32" align="right" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201604.php"><img src="../img_cmn/schedule_07_3.gif" width="32" height="20" border="0"></a><?php endif;?></td>
                    
                
201601.php https://bitbucket.org/kamegai_mp/dai-ichi-seimei.git | PHP | 194 lines
                    
1<?php
                    
2//現在の月とMTから出力される月を比較するフラグをたてる
                    
5	$nowmonth = date('Ym');
                    
6	$forwardmonth = date('Ym', strtotime("+ 3 month"));
                    
7
                    
140<tbody><tr>
                    
141<td width="38" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_06.gif" width="38" height="21" border="0"></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
143<td width="305" align="right" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201602.php"><font color="#FFFFFF" class="text1">2月へ</font></a><?php endif; ?></td>
                    
144<td width="42" align="right" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201602.php"><img src="../img_cmn/schedule_06_3.gif" width="42" height="21" border="0"></a><?php endif; ?></td>
                    
153
                    
154<td width="31" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_07_1.gif" width="31" height="20" border="0"></a><?php endif;?></td>
                    
155<td width="309" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text2">5月へ</font></a><?php endif;?></td>
                    
156
                    
157<td width="315" align="right" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201602.php"><font color="#FFFFFF" class="text2">2月へ</font></a><?php endif;?></td>
                    
158<td width="32" align="right" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201602.php"><img src="../img_cmn/schedule_07_3.gif" width="32" height="20" border="0"></a><?php endif;?></td>
                    
                
201511.php https://bitbucket.org/kamegai_mp/dai-ichi-seimei.git | PHP | 194 lines
                    
1<?php
                    
2//現在の月とMTから出力される月を比較するフラグをたてる
                    
5	$nowmonth = date('Ym');
                    
6	$forwardmonth = date('Ym', strtotime("+ 3 month"));
                    
7
                    
140<tbody><tr>
                    
141<td width="38" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_06.gif" width="38" height="21" border="0"></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
143<td width="305" align="right" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201512.php"><font color="#FFFFFF" class="text1">12月へ</font></a><?php endif; ?></td>
                    
144<td width="42" align="right" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201512.php"><img src="../img_cmn/schedule_06_3.gif" width="42" height="21" border="0"></a><?php endif; ?></td>
                    
153
                    
154<td width="31" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_07_1.gif" width="31" height="20" border="0"></a><?php endif;?></td>
                    
155<td width="309" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text2">5月へ</font></a><?php endif;?></td>
                    
156
                    
157<td width="315" align="right" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201512.php"><font color="#FFFFFF" class="text2">12月へ</font></a><?php endif;?></td>
                    
158<td width="32" align="right" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201512.php"><img src="../img_cmn/schedule_07_3.gif" width="32" height="20" border="0"></a><?php endif;?></td>
                    
                
201510.php https://bitbucket.org/kamegai_mp/dai-ichi-seimei.git | PHP | 194 lines
                    
1<?php
                    
2//現在の月とMTから出力される月を比較するフラグをたてる
                    
5	$nowmonth = date('Ym');
                    
6	$forwardmonth = date('Ym', strtotime("+ 3 month"));
                    
7
                    
140<tbody><tr>
                    
141<td width="38" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_06.gif" width="38" height="21" border="0"></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
143<td width="305" align="right" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201511.php"><font color="#FFFFFF" class="text1">11月へ</font></a><?php endif; ?></td>
                    
144<td width="42" align="right" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201511.php"><img src="../img_cmn/schedule_06_3.gif" width="42" height="21" border="0"></a><?php endif; ?></td>
                    
153
                    
154<td width="31" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_07_1.gif" width="31" height="20" border="0"></a><?php endif;?></td>
                    
155<td width="309" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text2">5月へ</font></a><?php endif;?></td>
                    
156
                    
157<td width="315" align="right" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201511.php"><font color="#FFFFFF" class="text2">11月へ</font></a><?php endif;?></td>
                    
158<td width="32" align="right" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201511.php"><img src="../img_cmn/schedule_07_3.gif" width="32" height="20" border="0"></a><?php endif;?></td>
                    
                
201509.php https://bitbucket.org/kamegai_mp/dai-ichi-seimei.git | PHP | 194 lines
                    
1<?php
                    
2//現在の月とMTから出力される月を比較するフラグをたてる
                    
5	$nowmonth = date('Ym');
                    
6	$forwardmonth = date('Ym', strtotime("+ 3 month"));
                    
7
                    
140<tbody><tr>
                    
141<td width="38" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_06.gif" width="38" height="21" border="0"></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
143<td width="305" align="right" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201510.php"><font color="#FFFFFF" class="text1">10月へ</font></a><?php endif; ?></td>
                    
144<td width="42" align="right" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201510.php"><img src="../img_cmn/schedule_06_3.gif" width="42" height="21" border="0"></a><?php endif; ?></td>
                    
153
                    
154<td width="31" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_07_1.gif" width="31" height="20" border="0"></a><?php endif;?></td>
                    
155<td width="309" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text2">5月へ</font></a><?php endif;?></td>
                    
156
                    
157<td width="315" align="right" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201510.php"><font color="#FFFFFF" class="text2">10月へ</font></a><?php endif;?></td>
                    
158<td width="32" align="right" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201510.php"><img src="../img_cmn/schedule_07_3.gif" width="32" height="20" border="0"></a><?php endif;?></td>
                    
                
201508.php https://bitbucket.org/kamegai_mp/dai-ichi-seimei.git | PHP | 194 lines
                    
1<?php
                    
2//現在の月とMTから出力される月を比較するフラグをたてる
                    
5	$nowmonth = date('Ym');
                    
6	$forwardmonth = date('Ym', strtotime("+ 3 month"));
                    
7
                    
140<tbody><tr>
                    
141<td width="38" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_06.gif" width="38" height="21" border="0"></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
143<td width="305" align="right" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201509.php"><font color="#FFFFFF" class="text1">9月へ</font></a><?php endif; ?></td>
                    
144<td width="42" align="right" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201509.php"><img src="../img_cmn/schedule_06_3.gif" width="42" height="21" border="0"></a><?php endif; ?></td>
                    
153
                    
154<td width="31" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_07_1.gif" width="31" height="20" border="0"></a><?php endif;?></td>
                    
155<td width="309" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text2">5月へ</font></a><?php endif;?></td>
                    
156
                    
157<td width="315" align="right" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201509.php"><font color="#FFFFFF" class="text2">9月へ</font></a><?php endif;?></td>
                    
158<td width="32" align="right" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201509.php"><img src="../img_cmn/schedule_07_3.gif" width="32" height="20" border="0"></a><?php endif;?></td>
                    
                
201512.php https://bitbucket.org/kamegai_mp/dai-ichi-seimei.git | PHP | 194 lines
                    
1<?php
                    
2//現在の月とMTから出力される月を比較するフラグをたてる
                    
5	$nowmonth = date('Ym');
                    
6	$forwardmonth = date('Ym', strtotime("+ 3 month"));
                    
7
                    
140<tbody><tr>
                    
141<td width="38" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_06.gif" width="38" height="21" border="0"></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text1">5月へ</font></a><?php endif; ?></td>
                    
143<td width="305" align="right" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201601.php"><font color="#FFFFFF" class="text1">1月へ</font></a><?php endif; ?></td>
                    
144<td width="42" align="right" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><a href="./201601.php"><img src="../img_cmn/schedule_06_3.gif" width="42" height="21" border="0"></a><?php endif; ?></td>
                    
153
                    
154<td width="31" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><img src="../img_cmn/schedule_07_1.gif" width="31" height="20" border="0"></a><?php endif;?></td>
                    
155<td width="309" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201505.php"><font color="#FFFFFF" class="text2">5月へ</font></a><?php endif;?></td>
                    
156
                    
157<td width="315" align="right" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201601.php"><font color="#FFFFFF" class="text2">1月へ</font></a><?php endif;?></td>
                    
158<td width="32" align="right" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><a href="./201601.php"><img src="../img_cmn/schedule_07_3.gif" width="32" height="20" border="0"></a><?php endif;?></td>
                    
                
Certificado_parcial.php https://bitbucket.org/claudia_33/proyecto-divino.git | PHP | 214 lines
                    
1<?php 
                    
2    require_once APPPATH.'/controllers/Panel.php';    
                    
67                        if(strstr($n,'fecha')){
                    
68                            $v = date("d/m/Y",strtotime($v));
                    
69                        }
                    
166                                        $v = $m->fecha==null?$v:$m->fecha;
                    
167                                        $v = date("d-m-Y",strtotime($v));
                    
168                                    }
                    
                
201807.php https://bitbucket.org/kamegai_mp/dai-ichi-seimei.git | PHP | 266 lines
                    
1<?php
                    
2//現在の月とMTから出力される月を比較するフラグをたてる
                    
5	$nowmonth = date('Ym');
                    
6	$forwardmonth = date('Ym', strtotime(date("Ym01")."+ 3 month"));
                    
7
                    
140<tbody><tr>
                    
141<td width="38" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201708.php"><img src="../img_cmn/schedule_06.gif" width="38" height="21" border="0"></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201708.php"><font color="#FFFFFF" class="text1">8月へ</font></a><?php endif; ?></td>
                    
142<td width="302" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($prevflag != 1):?><a href="./201708.php"><font color="#FFFFFF" class="text1">8月へ</font></a><?php endif; ?></td>
                    
143<td width="305" align="right" valign="middle" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><?php endif; ?></td>
                    
144<td width="42" align="right" background="../img_cmn/schedule_06_2.gif"><?php if($nextflag != 1):?><?php endif; ?></td>
                    
225
                    
226<td width="31" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201708.php"><img src="../img_cmn/schedule_07_1.gif" width="31" height="20" border="0"></a><?php endif;?></td>
                    
227<td width="309" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($prevflag != 1):?><a href="./201708.php"><font color="#FFFFFF" class="text2">8月へ</font></a><?php endif;?></td>
                    
228
                    
229<td width="315" align="right" valign="middle" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><?php endif;?></td>
                    
230<td width="32" align="right" background="../img_cmn/schedule_07_2.gif"><?php if($nextflag != 1):?><?php endif;?></td>
                    
                
PhabricatorRepositoryMercurialCommitDiscoveryDaemon.php git://github.com/facebook/phabricator.git | PHP | 138 lines
                    
1<?php
                    
2
                    
126        '{date|rfc822date}');
                    
127      $epoch = strtotime($stdout);
                    
128
                    
                
s_feeds.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 147 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 * LICENSE: This source file is subject to LGPL license 
                    
31		// Today's Date
                    
32		$today = strtotime('now');
                    
33		
                    
58					// Maybe combination of Title + Date? (Kinda Heavy on the Server :-( )
                    
59					$dupe_count = ORM::factory('feed_item')->where('item_title',$title)->where('item_date',date("Y-m-d H:i:s",strtotime($date)))->count_all();
                    
60
                    
90						{
                    
91							$newitem->item_date = date("Y-m-d H:i:s",strtotime($date));
                    
92						}
                    
142			// Set feed update date
                    
143			$feed->feed_update = strtotime('now');
                    
144			$feed->save();
                    
                
print_view.php https://bitbucket.org/bo_hmb/bo_hmb.git | PHP | 209 lines
                    
57                <td style="border:1px solid #000;width: 250px;font-size: 14px;background-color: #FFFF00"> 
                    
58                    <h5>UPDATING : <?php echo date('d-m-Y H:m:s', strtotime($master->update_at)) ?></h5>
                    
59                </td>
                    
80                <td style="border:0px solid #000;width: 150px;font-size: 14px;"> 
                    
81                    <h5><?php echo date('d-m-Y', strtotime($master->dep_date));?></h5>
                    
82                </td>
                    
100                <td style="border:0px solid #000;width: 150px;font-size: 14px;"> 
                    
101                    <h5><?php echo date('d-m-Y', strtotime($master->return_date));?></h5>
                    
102                </td>
                    
195           <td style="border:1px solid #000;"><?php echo $row->no_pasport ?></td>
                    
196           <td style="border:1px solid #000;"><?php echo date('d-m-Y', strtotime($row->tgl_lahir))?></td>
                    
197           <td style="border:1px solid #000;"><?php echo $row->tmp_lahir ?></td>
                    
197           <td style="border:1px solid #000;"><?php echo $row->tmp_lahir ?></td>
                    
198           <td style="border:1px solid #000;"><?php echo date('d-m-Y', strtotime($row->exp_pasport))?></td>
                    
199           <td style="border:1px solid #000;"><?php echo $row->nm_cabang ?></td>
                    
                
MassAddressAction.php git://github.com/forkcms/forkcms.git | PHP | 141 lines
                    
1<?php
                    
2
                    
132                'email' => $email,
                    
133                'created_on' => strtotime($address['created_on']),
                    
134            );
                    
                
 

Source

Language