100+ results for 'php gmdate'

Not the results you expected?

ParallelTransfer.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 124 lines

1 <?php

2 /**

3 * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.

94 'ETag' => $command->getResponse()->getHeader('ETag', true),

95 'Size' => (int) $command->getResponse()->getHeader('Content-Length', true),

96 'LastModified' => gmdate(DateFormat::RFC2822)

97 )));

98 $eventData['command'] = $command;

CookieTest.php (https://github.com/hqms/symfony.git) PHP · 151 lines

1 <?php

2

3 /*

20 * @author Hugo Hamon <hugo.hamon@sensio.com>

21 */

22 class CookieTest extends \PHPUnit_Framework_TestCase

23 {

24 public function invalidNames()

147 $cookie = new Cookie('foo', null, 1, '/admin/', '.myfoodomain.com');

148

149 $this->assertEquals('foo=deleted; expires=' . gmdate("D, d-M-Y H:i:s T", time()-31536001) . '; path=/admin/; domain=.myfoodomain.com; httponly', $cookie->__toString(), '->__toString() returns string representation of a cleared cookie if value is NULL');

150 }

151 }

class.videopress-cli.php (https://github.com/livinglab/openlab.git) PHP · 167 lines

1 <?php

2

3 if ( defined( 'WP_CLI' ) && WP_CLI ) {

65 $interval = isset( $schedules[ $cron['interval'] ]['display'] ) ? $schedules[ $cron['interval'] ]['display'] : $cron['interval'];

66 $runs_next = $scheduler->check_cron( $cron_name );

67 $status = $runs_next ? sprintf( 'Scheduled - Runs Next at %s GMT', gmdate( 'Y-m-d H:i:s', $runs_next ) ) : 'Not Scheduled';

68

69 WP_CLI::log( 'Name: ' . $cron_name );

103

104 } else {

105 WP_CLI::success( sprintf( __( 'Cron will run at: %s GMT', 'jetpack' ), gmdate( 'Y-m-d H:i:s', $time ) ) );

106 }

107 }

generateJqueryMsgData.php (https://gitlab.com/link233/bootmw) PHP · 148 lines

17 * @example QUnit

18 * <code>

19 QUnit.test( 'Output matches PHP parser', mw.libs.phpParserData.tests.length, function ( assert ) {

20 mw.messages.set( mw.libs.phpParserData.messages );

21 $.each( mw.libs.phpParserData.tests, function ( i, test ) {

22 QUnit.stop();

23 getMwLanguage( test.lang, function ( langClass ) {

38 describe( 'match output to output from PHP parser', function () {

39 mw.messages.set( mw.libs.phpParserData.messages );

40 $.each( mw.libs.phpParserData.tests, function ( i, test ) {

136 . "//jscs:disable\n"

137 . "\n"

138 . 'mediaWiki.libs.phpParserData = ' . FormatJson::encode( $phpParserData, true ) . ";\n";

139

140 $fp = file_put_contents( $dataSpecFile, $output );

CookieTest.php (https://github.com/renegare/symfony.git) PHP · 151 lines

1 <?php

2

3 /*

20 * @author Hugo Hamon <hugo.hamon@sensio.com>

21 */

22 class CookieTest extends \PHPUnit_Framework_TestCase

23 {

24 public function invalidNames()

147 $cookie = new Cookie('foo', null, 1, '/', '.myfoodomain.com');

148

149 $this->assertEquals('foo=deleted; expires=' . gmdate("D, d-M-Y H:i:s T", time()-31536001) . '; path=/; domain=.myfoodomain.com; httponly', $cookie->__toString(), '->__toString() returns string representation of a cleared cookie if value is NULL');

150 }

151 }

func_attachments.php (https://github.com/ACCORD5/TrellisDesk.git) PHP · 260 lines

1 <?php

2

3 /**

247 }

248

249 header( "Expires: ". gmdate( 'D, d M Y H:i:s', time() ) ." GMT" );

250

251 readfile( $file );

CookieJarTest.php (https://bitbucket.org/AdriVanHoudt/school.git) PHP · 191 lines

1 <?php

2

3 /*

16 use Symfony\Component\BrowserKit\Response;

17

18 class CookieJarTest extends \PHPUnit_Framework_TestCase

19 {

20 public function testSetGet()

86 {

87 $timestamp = time() + 3600;

88 $date = gmdate('D, d M Y H:i:s \G\M\T', $timestamp);

89 $setCookies = array(sprintf('foo=foo; expires=%s; domain=.symfony.com; path=/, bar=bar; domain=.blog.symfony.com, PHPSESSID=id; expires=%s', $date, $date));

94 $fooCookie = $cookieJar->get('foo', '/', '.symfony.com');

95 $barCookie = $cookieJar->get('bar', '/', '.blog.symfony.com');

96 $phpCookie = $cookieJar->get('PHPSESSID');

97

98 $this->assertInstanceOf('Symfony\Component\BrowserKit\Cookie', $fooCookie);

MenuItem.php (https://gitlab.com/x33n/respond) PHP · 263 lines

1 <?php

2

3 // MenuItem DAO

13

14 $menuItemId = uniqid();

15 $timestamp = gmdate("Y-m-d H:i:s", time());

16

17 $q = "INSERT INTO MenuItems (MenuItemId, Name, CssClass, Type, Url, PageId, Priority, SiteId, LastModifiedBy, LastModifiedDate)

PgCacheFlush.php (https://github.com/sharpmachine/wakeupmedia.com.git) PHP · 440 lines

1 <?php

2

3 /**

5 */

6

7 require_once W3TC_LIB_W3_DIR . '/PgCache.php';

8

9 /**

12 class W3_PgCacheFlush extends W3_PgCache {

13 /**

14 * PHP5 Constructor

15 */

16 function __construct() {

19

20 /**

21 * PHP4 Constructor

22 */

23 function W3_PgCacheFlush() {

MessageFormatter.php (https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br) PHP · 156 lines

1 <?php

2

3 namespace YoastSEO_Vendor\GuzzleHttp;

90 case 'ts':

91 case 'date_iso_8601':

92 $result = \gmdate('c');

93 break;

94 case 'date_common_log':

act_generate.php (https://gitlab.com/pra34/excel-parse) PHP · 48 lines

1 <?php

2 include '/PHPExcel/Classes/PHPExcel.php';

3 include '/PHPExcel/Classes/PHPExcel/IOFactory.php';

4

5 $excel = new PHPExcel();

6

7 $worksheet = $excel->getActiveSheet();

9 // Set the column styles as the first thing

10 // from A1 to D1, for 4 column

11 $worksheet->getStyle('A1:D1')->getFill()->setFillType(PHPExcel_Style_Fill::FILL_SOLID);

12 $worksheet->getStyle('A1:D1')->getFill()->getStartColor()->setRGB('E0E0E0');

13

26 $worksheet->getCell("B{$row}")->setValue($_POST['second_column_record']);

27

28 $excel->getActiveSheet()->getStyle("C{$row}")->getNumberFormat()->setFormatCode( PHPExcel_Style_NumberFormat::FORMAT_TEXT );

29 $worksheet->getCell("C{$row}")->setValue($_POST['third_column_record']);

30

ResponseHeaderBagTest.php (https://github.com/ratasxy/symfony.git) PHP · 176 lines

1 <?php

2

3 /*

15 use Symfony\Component\HttpFoundation\Cookie;

16

17 class ResponseHeaderBagTest extends \PHPUnit_Framework_TestCase

18 {

19 public function testCacheControlHeader()

74 $bag->clearCookie('foo');

75

76 $this->assertContains("Set-Cookie: foo=deleted; expires=".gmdate("D, d-M-Y H:i:s T", time() - 31536001)."; httponly", explode("\r\n", $bag->__toString()));

77 }

78

css-281d157f0ad30728d38dde6be2ff9544.php (https://bitbucket.org/elijahvsjesus/tandava.git) PHP · 15 lines

1 <?php

2 ob_start ("ob_gzhandler");

3 header("Content-type: text/css; charset= UTF-8");

6 $offset = 60 * $expires_time ;

7 $ExpStr = "Expires: " .

8 gmdate("D, d M Y H:i:s",

9 time() + $offset) . " GMT";

10 header($ExpStr);

weblink.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 293 lines

1 <?php

2 /**

3 * @version $Id: weblink.php 10752 2008-08-23 01:53:31Z eddieajau $

5 * @subpackage Content

6 * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.

7 * @license GNU/GPL, see LICENSE.php

8 * Joomla! is free software. This version may have been modified pursuant to the

9 * GNU General Public License, and as distributed it includes or is derivative

10 * of works licensed under the GNU General Public License or other free or open

11 * source software licenses. See COPYRIGHT.php for copyright notices and

12 * details.

13 */

211

212 // Create the timestamp for the date

213 $row->date = gmdate('Y-m-d H:i:s');

214

215 // if new item, order last in appropriate group

signup_model.php (https://github.com/iNextrix/ASTPP.git) PHP · 135 lines

1 <?php

2

3 // ##############################################################################

50 unset($data['agreeCheck']);

51 unset($data['key_unique']);

52 $data['creation'] = gmdate('Y-m-d H:i:s');

53 $data['expiry'] = date('Y-m-d H:i:s', strtotime('+10 years'));

54 $data['type'] = 0;

post.php (https://github.com/GunioRobot/Loggix.git) PHP · 186 lines

1 <?php

2 /**

3 * Post Comment Controller

13 */

14 $pathToIndex = '../..';

15 require_once $pathToIndex . '/lib/Loggix/Module/Comment.php';

16

17 $app = new Loggix_Module_Comment;

82

83 if ($checkRow > 1) {

84 header('Location: ' . $pathToIndex . '/index.php?id=' . $referId . '#comments');

85 exit;

86 }

90 // Deny by Referer

91 if ((!isset($_SERVER['HTTP_REFERER'])) &&

92 (!stristr($_SERVER['HTTP_REFERER'], 'comment/post.php'))

93 ) {

94 header('Location: ' . $pathToIndex . '/index.php?id=' . $referId . '#comments');

weblink.php (https://bitbucket.org/stager94/skmz-joomla.git) PHP · 293 lines

1 <?php

2 /**

3 * @version $Id: weblink.php 14401 2010-01-26 14:10:00Z louis $

5 * @subpackage Content

6 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.

7 * @license GNU/GPL, see LICENSE.php

8 * Joomla! is free software. This version may have been modified pursuant to the

9 * GNU General Public License, and as distributed it includes or is derivative

10 * of works licensed under the GNU General Public License or other free or open

11 * source software licenses. See COPYRIGHT.php for copyright notices and

12 * details.

13 */

211

212 // Create the timestamp for the date

213 $row->date = gmdate('Y-m-d H:i:s');

214

215 // if new item, order last in appropriate group

Session.php (https://gitlab.com/vincent.perdereau/picandparts) PHP · 246 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

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

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_Persistent

23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

90 public function getExpiredBefore($store = null)

91 {

92 return gmdate('Y-m-d H:i:s', time() - Mage::helper('persistent')->getLifeTime($store));

93 }

94

php_date.h (https://gitlab.com/envieidoc/advancedtomato2) C Header · 203 lines

31 PHP_FUNCTION(idate);

32 PHP_FUNCTION(gmdate);

33 PHP_FUNCTION(strtotime);

122 PHP_MINFO_FUNCTION(date);

123

124 typedef struct _php_date_obj php_date_obj;

125 typedef struct _php_timezone_obj php_timezone_obj;

126 typedef struct _php_interval_obj php_interval_obj;

127 typedef struct _php_period_obj php_period_obj;

193

194 /* Grabbing CE's so that other exts can use the date objects too */

195 PHPAPI zend_class_entry *php_date_get_date_ce(void);

196 PHPAPI zend_class_entry *php_date_get_timezone_ce(void);

197

index.tpl (https://github.com/shopaholiccompany/shopaholic.git) Smarty Template · 50 lines

20 <?php

21 if( $item->duration>360 ) $duration = gmdate("H:i:s", $item->duration); else $duration = gmdate("i:s", $item->duration);

22 if ($duration[0] =='0') $duration = substr($duration,1); echo $duration;

23 ?>

25 <?php endif;?>

26 <?php

27 if ($item->photo_id) echo $this->htmlLink($item->getHref(), $this->itemPhoto($item, 'thumb.normal'));

28 else echo '<img alt="" src="application/modules/Video/externals/images/video.png">';

31 <a class="video_title" href='<?php echo $item->getHref();?>'><?php echo $item->getTitle();?></a>

32 <div class="video_author"><?php echo $this->translate('By');?> <?php echo $this->htmlLink($item->getOwner()->getHref(), $item->getOwner()->getTitle()) ?></div>

33 <div class="video_stats">

34 <span class="video_views"><?php echo $item->view_count;?> <?php echo $this->translate('views');?></span>

35 <?php if($item->rating>0):?>

36 <?php for($x=1; $x<=$item->rating; $x++): ?><span class="rating_star_generic rating_star"></span><?php endfor; ?><?php if((round($item->rating)-$item->rating)>0):?><span class="rating_star_generic rating_star_half"></span><?php endif; ?>

37 <?php endif; ?>

class-ewwwio-relative-migration.php (https://github.com/livinglab/openlab.git) PHP · 202 lines

1 <?php

2 /**

3 * Class file for EWWWIO_Relative_Migration

91 $this->offset = (int) get_option( 'ewww_image_optimizer_relative_migration_offset' );

92 $records = $this->get_records();

93 ewwwio_debug_message( 'starting at ' . gmdate( 'Y-m-d H:i:s', $this->started ) . " with offset $this->offset" );

94 while ( ! empty( $records ) ) {

95 foreach ( $records as $record ) {

tb.php (https://github.com/GunioRobot/Loggix.git) PHP · 182 lines

1 <?php

2 /**

3 * Receiving Trackback Ping

14 */

15 $pathToIndex = '../..';

16 require_once $pathToIndex . '/lib/Loggix/Module/Trackback.php';

17

18 $trackback = new Loggix_Module_Trackback;

94 ) {

95 //echo 'You Are A Spammer!';

96 header('Location: ' . $pathToIndex . '/index.php?id=' . $articleId);

97 exit;

98 }

139 ($checkRow2 == 0)) {

140 // $trackback->db->query('BEGIN;');

141 $fdate = gmdate('Y-m-d H:i:s', time() + ($config['tz'] * 3600));

142 $sql = 'INSERT INTO '

143 . TRACKBACK_TABLE . ' '

calendar.php (https://gitlab.com/x33n/ProjectPier-Core) PHP · 178 lines

18 ?>

19 <div class="calendar">

20 <h2><?php echo clean(lang(sprintf('month %u', $month))); ?> <?php echo $year; ?></h2>

21 <?php

76 }

77 ?>

78 <th class="<?php echo $dow_class; ?>"><?php echo clean(lang(sprintf('weekday short %u', $dow ))); ?></th>

79 <?php

113 <td class="<?php echo $dow_class; ?>">

114 <div class="date"><?php echo $dom; ?></div>

115 <?php

175 <div class="prev-month"><a href="<?php echo get_url('milestone', 'calendar', gmdate('Ym', $prevMonth)); ?>"><?php echo clean(lang(sprintf('month %u', gmdate('m', $prevMonth)))); ?> <?php echo gmdate('Y', $prevMonth); ?></a></div>

176 <div class="next-month"><a href="<?php echo get_url('milestone', 'calendar', gmdate('Ym', $nextMonth)); ?>"><?php echo clean(lang(sprintf('month %u', gmdate('m', $nextMonth)))); ?> <?php echo gmdate('Y', $nextMonth); ?></a></div>

177 </div>

178 </div>

network-simulator.php (https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk) PHP · 186 lines

1 <?php

2 require_once 'portabilityLayer.php';

77

78 if (file_exists($path)) {

79 header("Last-Modified: " . gmdate("D, d M Y H:i:s T", filemtime($path)));

80 header("Content-Type: " . contentType($path));

81

SetCookie.php (https://gitlab.com/wuhang2003/rainloop-webmail) PHP · 410 lines

1 <?php

2

3 namespace GuzzleHttp\Cookie;

92 if ($k != 'Name' && $k != 'Value'&& $v !== null && $v !== false) {

93 if ($k == 'Expires') {

94 $str .= 'Expires=' . gmdate('D, d M Y H:i:s \G\M\T', $v) . '; ';

95 } else {

96 $str .= ($v === true ? $k : "{$k}={$v}") . '; ';

Versions.php (https://bitbucket.org/jonphipps/elefant-vocabhub.git) PHP · 195 lines

1 <?php

2

3 /**

30 * Usage:

31 *

32 * <?php

33 *

34 * // saving a new version

81 'pkey' => $obj->{$obj->key},

82 'user' => (! User::$user) ? 0 : User::val ('id'),

83 'ts' => gmdate ('Y-m-d H:i:s'),

84 'serialized' => json_encode ($obj->data)

85 ));

files.php (https://github.com/genievn/pyrocms.git) PHP · 200 lines

1 <?php defined('BASEPATH') OR exit('No direct script access allowed');

2 /**

3 * @package PyroCMS

118 header("Pragma: public");

119 header("Cache-Control: public");

120 header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expire) . ' GMT');

121 }

122

183 {

184 // Send 304 back to browser if file has not beeb changed

185 header('Last-Modified: '.gmdate('D, d M Y H:i:s', filemtime($image_thumb)).' GMT', true, 304);

186 exit();

187 }

188

189 header('Content-type: ' . $file->mimetype);

190 header('Last-Modified: ' . gmdate('D, d M Y H:i:s', filemtime($image_thumb)) . ' GMT');

191 readfile($image_thumb);

192 }

sfc-getcomm.php (https://github.com/elleeott/WPOC-boilerplate.git) PHP · 150 lines

1 <?php

2

3 // gets comments from FB for the post, based on the auto-published post

29 $nc->comment_author = $fbcomm['from']['name'];

30 $nc->comment_author_email = '';

31 $nc->comment_author_url = 'http://www.facebook.com/profile.php?id='.$fbcomm['from']['id'];

32 $nc->comment_author_IP = '';

33 $time = strtotime ($fbcomm['created_time']);

34 $nc->comment_date = date('Y-m-d H:i:s', $time);

35 $nc->comment_date_gmt = gmdate('Y-m-d H:i:s', $time);;

36 $nc->comment_content = $fbcomm['message'];

37 $nc->comment_karma = 0;

62 $nc->comment_author = $fbcomm['from']['name'];

63 $nc->comment_author_email = '';

64 $nc->comment_author_url = 'http://www.facebook.com/profile.php?id='.$fbcomm['from']['id'];

65 $nc->comment_author_IP = '';

66 $time = strtotime ($fbcomm['created_time']);

AlfrescoWebService.php (https://github.com/jfilip/moodle.git) PHP · 111 lines

1 <?php

2

3 /*

80 // Construct Timestamp Header

81 $timeStamp = $dom->createElementNS($this->wsUtilityNS, "Timestamp");

82 $createdDate = gmdate("Y-m-d\TH:i:s\Z", gmmktime(gmdate("H"), gmdate("i"), gmdate("s"), gmdate("m"), gmdate("d"), gmdate("Y")));

83 $expiresDate = gmdate("Y-m-d\TH:i:s\Z", gmmktime(gmdate("H")+1, gmdate("i"), gmdate("s"), gmdate("m"), gmdate("d"), gmdate("Y")));

pkg.php (https://gitlab.com/VxMxPx/mysli) PHP · 171 lines

1 <?php namespace sys;

2

3 use \sys\arr;

162 $list = "# package;version;date\n";

163 $packages = self::enabled();

164 $nowdata = gmdate('c');

165 foreach ($packages as $pkg) {

166 $date = $pkg->date ? $pkg->date : $nowdata;

log.php (https://gitlab.com/VTTE/sitios-vtte) PHP · 388 lines

1 <?php

2

3 class RE_Log {

109 header( 'Content-Disposition: attachment; filename="' . $filename . '"' );

110

111 $stdout = fopen( 'php://output', 'w' );

112

113 fputcsv( $stdout, array( 'date', 'source', 'target', 'ip', 'referrer', 'agent' ) );

240 header( 'Content-Disposition: attachment; filename="' . $filename . '"' );

241

242 $stdout = fopen( 'php://output', 'w' );

243

244 fputcsv( $stdout, array( 'date', 'source', 'ip', 'referrer', 'useragent' ) );

293 'id' => intval( $item->id, 10 ),

294 'created' => date_i18n( get_option( 'date_format' ), $item->created ),

295 'created_time' => gmdate( get_option( 'time_format' ), $item->created ),

296 'url' => $item->url,

297 'agent' => $item->agent,

cli.php (https://github.com/ot2sen/Molajo.git) PHP · 258 lines

1 <?php

2 /**

3 * @package Joomla.Platform

67

68 // Set the execution datetime and timestamp;

69 $this->set('execution.datetime', gmdate('Y-m-d H:i:s'));

70 $this->set('execution.timestamp', time());

71

229

230 /**

231 * Method to load a PHP configuration class file based on convention and return the instantiated data object. You

232 * will extend this method in child classes to provide configuration data from whatever data source is relevant

233 * for your specific application.

240 {

241 // Set the configuration file name.

242 $file = JPATH_BASE.'/configuration.php';

243

244 // Import the configuration file.

ImageController.php (https://gitlab.com/billyprice1/MFAdmin) PHP · 148 lines

1 <?php namespace App\Http\Controllers;

2

3 use Intervention\Image\ImageManagerStatic;

100 $file_modified_time = filemtime($image_data['path']);

101 $etag = md5($file_modified_time . $image_data['path']);

102 $time = gmdate('r', $file_modified_time);

103 $expires = gmdate('r', $file_modified_time + $lifetime);

Time.php (https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git) PHP · 198 lines

1 <?php

2 class qCal_Time {

3

36

37 if (is_null($hour)) {

38 $hour = gmdate("H");

39 }

40 if (is_null($minute)) {

41 $minute = gmdate("i");

42 }

43 if (is_null($second)) {

44 $second = gmdate("s");

45 }

46 if (is_null($rollover)) $rollover = false;

gzip.php (https://github.com/skygreen2001/betterlife.git) PHP · 130 lines

1 <?php

2

3 /**

4 * @see http://mrthink.net/ue-php-gzip-function/

5 */

6

7 require_once(dirname(__FILE__) . "/../../init.php");

8

9 UtilAjax::init();

14 header("Cache-Control: must-revalidate");

15 $offset = 60 * 60 * 24 * 3;

16 $ExpStr = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT";

17 header($ExpStr);

18 ob_start("compress");

registration.php (https://github.com/socialplanning/opencore-wordpress-mu.git) PHP · 184 lines

1 <?php

2

3 function username_exists( $username ) {

84

85 if ( empty($user_registered) )

86 $user_registered = gmdate('Y-m-d H:i:s');

87

88 if ( $update ) {

Cookie.php (https://gitlab.com/Isaki/le331.fr) PHP · 190 lines

1 <?php

2

3 /*

42 public function __construct($name, $value = null, $expire = 0, $path = '/', $domain = null, $secure = false, $httpOnly = true)

43 {

44 // from PHP source code

45 if (preg_match("/[=,; \t\r\n\013\014]/", $name)) {

46 throw new \InvalidArgumentException(sprintf('The cookie name "%s" contains invalid characters.', $name));

81

82 if ('' === (string) $this->getValue()) {

83 $str .= 'deleted; expires='.gmdate('D, d-M-Y H:i:s T', time() - 31536001);

84 } else {

85 $str .= urlencode($this->getValue());

86

87 if ($this->getExpiresTime() !== 0) {

88 $str .= '; expires='.gmdate('D, d-M-Y H:i:s T', $this->getExpiresTime());

89 }

90 }

detail.php (https://gitlab.com/hop23typhu/doan_tienganh) PHP · 122 lines

53 <td>Địa chỉ</td>

54 <td>

55 <b><?php if($detail->address!='') echo $detail->address; else echo "Trống"; ?></b>

56 </td>

57 </tr>

91 <td>Lần cuối đăng nhập</td>

92 <td>

93 <b><?php if($detail->logined !='0000-00-00 00:00:00' && $detail->logined !='') echo gmdate('d-m-Y H:i A ', strtotime($detail->logined)); else echo '-'; ?></b>

94 </td>

95 </tr>

112 <td></td>

113 <td>

114 <a href="<?php echo $url; ?>index.php?page=user&action=edit&form=1&id=<?php echo $detail->id; ?>&redirect=<?php echo base64_encode($lib->fullurl());?>" class="btn btn-info">Chỉnh sửa</a>

115 </td>

116 </tr>

Meta.php (https://github.com/dweexfuad/roojax.git) PHP · 105 lines

33 * @package PHPPowerPoint_Writer_ODPresentation

34 * @copyright Copyright (c) 2009 - 2010 PHPPowerPoint (http://www.codeplex.com/PHPPowerPoint)

35 */

36 class PHPPowerPoint_Writer_ODPresentation_Meta extends PHPPowerPoint_Writer_ODPresentation_WriterPart

50 $objWriter = new PHPPowerPoint_Shared_XMLWriter(PHPPowerPoint_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());

51 } else {

52 $objWriter = new PHPPowerPoint_Shared_XMLWriter(PHPPowerPoint_Shared_XMLWriter::STORAGE_MEMORY);

53 }

54

77 $objWriter->writeElement('dc:creator', $pPHPPowerPoint->getProperties()->getLastModifiedBy());

78 // dc:date

79 $objWriter->writeElement('dc:date', gmdate('Y-m-d\TH:i:s.000' ,$pPHPPowerPoint->getProperties()->getModified()));

80 // dc:description

81 $objWriter->writeElement('dc:description', $pPHPPowerPoint->getProperties()->getDescription());

85 $objWriter->writeElement('dc:title', $pPHPPowerPoint->getProperties()->getTitle());

86 // meta:creation-date

87 $objWriter->writeElement('meta:creation-date', gmdate('Y-m-d\TH:i:s.000' ,$pPHPPowerPoint->getProperties()->getCreated()));

88 // meta:initial-creator

89 $objWriter->writeElement('meta:initial-creator', $pPHPPowerPoint->getProperties()->getCreator());

logConversion.delivery.php (https://bitbucket.org/valmy/openx.git) PHP · 92 lines

1 <?php

2

3 /*

58 'server_ip' => $serverRawIp,

59 'tracker_id' => $trackerId,

60 'date_time' => gmdate('Y-m-d H:i:s', $time),

61 'action_date_time' => gmdate('Y-m-d H:i:s', $aConversion['dt']),

ResponseTest.php (https://github.com/brtriver/sukonv.git) PHP · 169 lines

1 <?php

2 /**

3 * Lithium: the most rad php framework

4 *

5 * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org)

6 * @license http://opensource.org/licenses/bsd-license.php The BSD License

7 */

8

52 $headers = array (

53 'HTTP/1.1 200 OK',

54 'Expires: ' . gmdate('D, d M Y H:i:s', $expires) . ' GMT',

55 'Cache-Control: max-age=' . ($expires - time()),

56 'Pragma: cache'

65 $headers = array (

66 'HTTP/1.1 200 OK',

67 'Expires: ' . gmdate('D, d M Y H:i:s', strtotime($expires)) . ' GMT',

68 'Cache-Control: max-age=' . (strtotime($expires) - time()),

69 'Pragma: cache'

dbEventQueue.php (https://github.com/sseshachala/Open-Web-Analytics.git) PHP · 187 lines

1 <?php

2

3 //

18

19 if ( ! class_exists( 'eventQueue' ) ) {

20 require_once( OWA_BASE_CLASS_DIR.'eventQueue.php' );

21 }

22 /**

142 }

143

144 return gmdate("Y-m-d H:i:s", $time);

145 }

146

lovewall_listmsg.php (https://gitlab.com/BGCX262/zyyhong-svn-to-git.git) PHP · 49 lines

1 <?php

2 if(!defined('IN_DISCUZ')) {

3 exit('Access Denied');

23 loveidcache();

24 for($i=1; $i<$lovek; $i++) {

25 @unlink(DISCUZ_ROOT."./extend/lovewall/cache_lovewall_$i.php");

26 }

27 }

32 $query = $db->query("select COUNT(*) from `".$tablepre."lovewall`");

33 $qcount = $db->result($query, 0);

34 $multipage = multi($qcount, $tpp, $page, "lovewall.php?index=listmsg", $threadmaxpages);

35

36 $query = $db->query("select * FROM `".$tablepre."lovewall` ORDER BY `id` desc limit $start_limit,$tpp");

37 while($rowlove = $db->fetch_array($query)) {

38 $rowlove['lovetime'] = gmdate("$dateformat $timeformat", $rowlove['lovetime'] + 3600 * $timeoffset);

39 $rowlove['lovesay'] = dhtmlspecialchars($rowlove['lovesay']);

40 $rowlove['lovesay'] = nl2br(str_replace(array("\t", ' ', ' ', "\r\n"), array('&nbsp; &nbsp; &nbsp; &nbsp; ', '&nbsp; &nbsp;', '&nbsp;&nbsp;', '<br>'), $rowlove['lovesay']));

CookieTest.php (https://gitlab.com/judielsm/Handora) PHP · 147 lines

1 <?php

2

3 /*

14 use Symfony\Component\HttpFoundation\Cookie;

15

16 require_once __DIR__.'/ClockMock.php';

17

18 /**

22 * @author Hugo Hamon <hugo.hamon@sensio.com>

23 */

24 class CookieTest extends \PHPUnit_Framework_TestCase

25 {

26 public function invalidNames()

140

141 $cookie = new Cookie('foo', null, 1, '/admin/', '.myfoodomain.com');

142 $this->assertEquals('foo=deleted; expires='.gmdate('D, d-M-Y H:i:s T', time() - 31536001).'; path=/admin/; domain=.myfoodomain.com; httponly', $cookie->__toString(), '->__toString() returns string representation of a cleared cookie if value is NULL');

143

144 $cookie = new Cookie('foo', 'bar', 0, '/', '');

DateTimeItem.php (https://gitlab.com/andecode/theme-spark) PHP · 139 lines

1 <?php

2

3 namespace Drupal\datetime\Plugin\Field\FieldType;

110 $timestamp = REQUEST_TIME - mt_rand(0, 86400 * 365);

111 if ($type == DateTimeItem::DATETIME_TYPE_DATE) {

112 $values['value'] = gmdate(static::DATE_STORAGE_FORMAT, $timestamp);

113 }

114 else {

115 $values['value'] = gmdate(static::DATETIME_STORAGE_FORMAT, $timestamp);

116 }

117 return $values;

SetCookie.php (https://gitlab.com/x33n/respond) PHP · 373 lines

1 <?php

2 namespace GuzzleHttp\Cookie;

3

91 if ($k != 'Name' && $k != 'Value' && $v !== null && $v !== false) {

92 if ($k == 'Expires') {

93 $str .= 'Expires=' . gmdate('D, d M Y H:i:s \G\M\T', $v) . '; ';

94 } else {

95 $str .= ($v === true ? $k : "{$k}={$v}") . '; ';

makeLanguageSpec.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 114 lines

1 <?php

2

3 /**

4 * This PHP script defines the spec that the Javascript message parser should conform to.

5 *

6 * It does this by looking up the results of various string kinds of string parsing, with various languages,

17 $maintenanceDir = dirname( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) ) . '/maintenance';

18

19 require( "$maintenanceDir/Maintenance.php" );

20

21 class MakeLanguageSpec extends Maintenance {

87 $json = new Services_JSON;

88 $json->pretty = true;

89 $javascriptPrologue = "// This file stores the results from the PHP parser for certain messages and arguments,\n"

90 . "// so we can test the equivalent Javascript libraries.\n"

91 . '// Last generated with ' . join(' ', $arguments) . ' at ' . gmdate('c') . "\n\n";

SharedKeyLite.php (https://github.com/praveensingh85/MyEventDashboard1.git) PHP · 166 lines

1 <?php

2 /**

3 * Zend Framework

17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

18 * @license http://framework.zend.com/license/new-bsd New BSD License

19 * @version $Id: SharedKeyLite.php 22773 2010-08-03 07:18:27Z maartenba $

20 */

21

23 * @see Zend_Service_WindowsAzure_Credentials_CredentialsAbstract

24 */

25 require_once 'Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php';

26

27 /**

28 * @see Zend_Service_WindowsAzure_Storage

29 */

30 require_once 'Zend/Service/WindowsAzure/Storage.php';

31

32 /**

rss.php (https://github.com/kelios/imshop.git) PHP · 135 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2

3 /**

48 $category = $this->lib_category->get_category($pages[$i]['category']);

49 $pages[$i]['title'] = $category['name'] .' / '. $pages[$i]['title'];

50 $pages[$i]['publish_date'] = gmdate('D, d M Y H:i:s', $pages[$i]['publish_date']).' GMT';

51 }

52 }

57 'title' => $this->settings['title'],

58 'description' => $this->settings['description'],

59 'pub_date' => gmdate('D, d M Y H:i:s', time()).' GMT',

60 'items' => $pages,

61 );

133 }

134

135 /* End of file sample_module.php */

136

print_exam_permit_helper.php (https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework) PHP · 184 lines

1 <?php

2

3 function print_html($enrollments,$setting,$permit_setting,$gmdate,$max){

101 <tr>

102 <td style="font-size:7px; text-align:left;">

103 Time: '.date("h:i A",$gmdate).',

104 </td>

105 <td style="font-size:7px; text-align:left;">

106 Date: '.date("F d, Y",$gmdate).',

107 </td>

108 <td style="font-size:7px; text-align:left;">

Logger_Backend_File.class.php (https://gitlab.com/x33n/ProjectPier-Core) PHP · 153 lines

1 <?php

2

3 /**

91 $counter = 0;

92

93 $output = 'Session "' . $session->getName() . '" started at ' . gmdate(DATE_ISO8601, floor($session->getSessionStart())) . "\n";

94 if ($session->isEmpty()) {

95 $output .= 'Empty session';

117 function getLogFile() {

118 if (trim($this->log_file) && !is_file($this->log_file)) {

119 file_put_contents($this->log_file, '<?php die(); ?>');

120 } // if

121 return $this->log_file;

dataCommon.delivery.php (https://github.com/orchestra-io/sample-openx.git) PHP · 80 lines

1 <?php

2

3 /*

23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |

24 +---------------------------------------------------------------------------+

25 $Id: dataCommon.delivery.php 33425 2009-03-07 01:38:49Z chris.nutting $

26 */

27

58 $time = $GLOBALS['_MAX']['NOW'];

59 $oi = $GLOBALS['_MAX']['CONF']['maintenance']['operationInterval'];

60 $GLOBALS['_MAX']['deliveryData']['interval_start'] = gmdate('Y-m-d H:i:s', $time - $time % ($oi * 60));

61 $GLOBALS['_MAX']['deliveryData']['ip_address'] = $_SERVER['REMOTE_ADDR'];

62 }

dataCommon.delivery.php (https://github.com/orchestra-io/sample-openx.git) PHP · 80 lines

1 <?php

2

3 /*

23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |

24 +---------------------------------------------------------------------------+

25 $Id: dataCommon.delivery.php 33995 2009-03-18 23:04:15Z chris.nutting $

26 */

27

58 $time = $GLOBALS['_MAX']['NOW'];

59 $oi = $GLOBALS['_MAX']['CONF']['maintenance']['operationInterval'];

60 $GLOBALS['_MAX']['deliveryData']['interval_start'] = gmdate('Y-m-d H:i:s', $time - $time % ($oi * 60));

61 $GLOBALS['_MAX']['deliveryData']['ip_address'] = $_SERVER['REMOTE_ADDR'];

62 }

ApiCacheParserTest.php (https://bitbucket.org/insigngmbh/googlephpapi.git) PHP · 225 lines

1 <?php

2 /**

3 * Licensed to the Apache Software Foundation (ASF) under one

18 * under the License.

19 */

20 require_once 'io/Google_CacheParser.php';

21

22 class ApiCacheParserTest extends BaseTest {

141 $resp->setResponseHttpCode('200');

142 $resp->setResponseHeaders(array(

143 'Expires' => gmdate('D, d M Y H:i:s', $future) . ' GMT',

144 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT',

150 $resp->setResponseHttpCode('200');

151 $resp->setResponseHeaders(array(

152 'Expires' => gmdate('D, d M Y H:i:s', $now + 2) . ' GMT',

153 'Date' => gmdate('D, d M Y H:i:s', $now) . ' GMT',

base.php (https://gitlab.com/unofficial-mirrors/moodle) PHP · 137 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

90 header('Pragma: no-cache');

91 }

92 header('Expires: '. gmdate('D, d M Y H:i:s', 0) .' GMT');

93 header("Content-Type: $this->mimetype\n");

94 $filename = $this->filename . $this->get_extension();

php_date.h (https://github.com/gmphp/PHP.git) C Header · 188 lines

108 typedef struct _php_timezone_obj php_timezone_obj;

109 typedef struct _php_interval_obj php_interval_obj;

110 typedef struct _php_period_obj php_period_obj;

170 #define _php_strftime php_strftime

171 PHPAPI void php_strftime(INTERNAL_FUNCTION_PARAMETERS, int gm);

172 #endif

173 PHPAPI char *php_format_date(char *format, int format_len, time_t ts, int localtime TSRMLS_DC);

178

179 /* Grabbing CE's so that other exts can use the date objects too */

180 PHPAPI zend_class_entry *php_date_get_date_ce(void);

181 PHPAPI zend_class_entry *php_date_get_timezone_ce(void);

184 PHPAPI zval *php_date_instantiate(zend_class_entry *pce, zval *object TSRMLS_DC);

185 PHPAPI int php_date_initialize(php_date_obj *dateobj, /*const*/ char *time_str, int time_str_len, char *format, zval *timezone_object, int ctor TSRMLS_DC);

186

187

breezyarchiveshandler.php (https://github.com/somefool/habari-extras.git) PHP · 132 lines

1 <?php

2 class BreezyArchivesHandler extends ActionHandler

3 {

122 header('Content-type: text/javascript');

123 // header('ETag: ' . md5($out));

124 // header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 315360000) . ' GMT');

125 // header('Cache-Control: max-age=315360000');

126 $this->theme->assign('habari_url', Site::get_url('habari', TRUE));

thread_activity.php (https://github.com/sichen/hrmmdiscuz.git) PHP · 95 lines

1 <?php

2

3 /**

5 * This is NOT a freeware, use is subject to license terms

6 *

7 * $Id: thread_activity.php 20005 2011-01-27 10:10:01Z zhangguosheng $

8 */

9

28 $activity = DB::fetch_first("SELECT * FROM ".DB::table('forum_activity')." WHERE tid='$_G[tid]'");

29 $activityclose = $activity['expiration'] ? ($activity['expiration'] > TIMESTAMP ? 0 : 1) : 0;

30 $activity['starttimefrom'] = dgmdate($activity['starttimefrom'], 'u');

31 $activity['starttimeto'] = $activity['starttimeto'] ? dgmdate($activity['starttimeto']) : 0;

32 $activity['expiration'] = $activity['expiration'] ? dgmdate($activity['expiration']) : 0;

33 $activity['attachurl'] = $activity['thumb'] = '';

34 if($activity['ufield']) {

DateFormatTransformationsPlugin.php (https://gitlab.com/luyxtran264/myproject) PHP · 166 lines

1 <?php

2 /* vim: set expandtab sw=4 ts=4 sts=4: */

3 /**

4 * Abstract class for the date format transformations plugins

5 *

6 * @package PhpMyAdmin-Transformations

7 * @subpackage DateFormat

8 */

15 * Provides common methods for all of the date format transformations plugins.

16 *

17 * @package PhpMyAdmin

18 */

19 abstract class DateFormatTransformationsPlugin extends TransformationsPlugin

34 . ' UTC one (use "local" or "utc" strings) for that. According to'

35 . ' that, date format has different value - for "local" see the'

36 . ' documentation for PHP\'s strftime() function and for "utc" it'

37 . ' is done using gmdate() function.'

Memcache.php (https://bitbucket.org/tumivn/phpexamples.git) PHP · 227 lines

1 <?php

2 /**

3 * Memcache Wrapper

141 $ns_key = $this->addNameSpace($key, $partition);

142

143 $this->memcache->set($ns_key.'_metadata', json_encode((object) array("modified" => gmdate('D, d M Y H:i:s') . ' GMT', 'slabs' => sizeof($value))), MEMCACHE_COMPRESSED, $expires);

144

145 // If our value is split, we need to store it in mulitple keys

XML.php (https://gitlab.com/BeS/io.schiessle.org) PHP · 137 lines

1 <?php

2 /**

3 * Part of XML_XRD

4 *

5 * PHP version 5

6 *

7 * @category XML

8 * @package XML_XRD

9 * @author Christian Weiske <cweiske@php.net>

10 * @license http://www.gnu.org/copyleft/lesser.html LGPL

11 * @link http://pear.php.net/package/XML_XRD

17 * @category XML

18 * @package XML_XRD

19 * @author Christian Weiske <cweiske@php.net>

20 * @license http://www.gnu.org/copyleft/lesser.html LGPL

21 * @version Release: @package_version@

lockable.php (https://github.com/raeldc/nooku-server.git) PHP · 187 lines

1 <?php

2 /**

3 * @version $Id$

79 {

80 $this->locked_by = (int) JFactory::getUser()->get('id');

81 $this->locked_on = gmdate('Y-m-d H:i:s');

82 $this->save();

83 }

122 {

123 $locked = strtotime($this->locked_on);

124 $current = strtotime(gmdate('Y-m-d H:i:s'));

125

126 //Check if the lock has gone stale

two_tables.php (https://bitbucket.org/mkirby91/tritontime.git) PHP · 227 lines

1 <?php

2 header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );

3 header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );

19 <script type="text/javascript" language="javascript" src="../../js/jquery.dataTables.js"></script>

20 <script type="text/javascript" language="javascript" src="../unit_test.js"></script>

21 <?php

22 $aScripts = explode( ":", $_GET['scripts'] );

23 for ( $i=0 ; $i<count($aScripts) ; $i++ )

ResponseTest.php (https://github.com/kiranatama/sagalaya.git) PHP · 181 lines

1 <?php

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 */

8

51 $headers = array (

52 'HTTP/1.1 200 OK',

53 'Expires: ' . gmdate('D, d M Y H:i:s', $expires) . ' GMT',

54 'Cache-Control: max-age=' . ($expires - time()),

55 'Pragma: cache'

64 $headers = array (

65 'HTTP/1.1 200 OK',

66 'Expires: ' . gmdate('D, d M Y H:i:s', strtotime($expires)) . ' GMT',

67 'Cache-Control: max-age=' . (strtotime($expires) - time()),

68 'Pragma: cache'

ezhttpheader.php (https://github.com/GunioRobot/ezpublish.git) PHP · 156 lines

1 <?php

2 /**

3 * File containing the eZHTTPHeader class.

10

11 /*!

12 \class eZHTTPHeader ezhttpheader.php

13 \brief The class eZHTTPHeader does

14

119 if ( $header == 'Expires' )

120 {

121 $headerValue = gmdate( 'D, d M Y H:i:s', time() + $headerValue ) . ' GMT';

122 }

123

magmi.php (https://bitbucket.org/deniskulikouski/belvg.deniska.git) PHP · 86 lines

8 require_once("header.php");

9 require_once("magmi_config.php");

10 require_once("magmi_statemanager.php");

48 if($state=="running" || (isset($mode) && $mode=="import"))

49 {

50 require_once("magmi_import_run.php");

51 }

52 else

53 {

54 Magmi_StateManager::setState("idle",true);

55 require_once("magmi_config_setup.php");

56 require_once("magmi_choose_engine.php");

81 }

82 ?>

83 <?php require_once("footer.php");?>

84 <div id="overlay" style="display:none">

85 <div id="overlaycontent"></div>

projectindividual.php (https://github.com/mermandamus/Joomla-Tracks.git) PHP · 271 lines

1 <?php

2 /**

3 * @version $Id: projectindividual.php 23 2008-02-15 08:36:46Z julienv $

4 * @package JoomlaTracks

5 * @copyright Copyright (C) 2008 Julien Vonthron. All rights reserved.

6 * @license GNU/GPL, see LICENSE.php

7 * Joomla Tracks is free software. This version may have been modified pursuant

8 * to the GNU General Public License, and as distributed it includes or

9 * is derivative of works licensed under the GNU General Public License or

10 * other free or open source software licenses.

11 * See COPYRIGHT.php for copyright notices and details.

12 */

13

17

18 jimport('joomla.application.component.model');

19 require_once (JPATH_COMPONENT.DS.'models'.DS.'item.php');

20

21 /**

Annotations.php (https://github.com/matomo-org/wp-matomo.git) PHP · 88 lines

1 <?php

2 /**

3 * Matomo - free/libre analytics platform

75 $note = esc_html__( 'Published:', 'matomo' ) . ' ' . $post->post_title . ' - URL: ' . get_permalink( $post->ID );

76 \Piwik\Plugins\Annotations\API::unsetInstance();// make sure latest instance will be loaded with all up to date dependencies... mainly needed for tests

77 $id = \Piwik\Plugins\Annotations\API::getInstance()->add( $idsite, gmdate( 'Y-m-d' ), $note );

78 $logger->log( 'Add post annotation. ' . $note . ' - ' . wp_json_encode( $id ) );

79 }

upload.php (https://github.com/roverwolf/plupload.git) PHP · 115 lines

1 <?php

2 /**

3 * upload.php

13 header('Content-type: text/plain; charset=UTF-8');

14 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

15 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

16 header("Cache-Control: no-store, no-cache, must-revalidate");

17 header("Cache-Control: post-check=0, pre-check=0", false);

98 if ($out) {

99 // Read binary input stream and append it to temp file

100 $in = fopen("php://input", "rb");

101

102 if ($in) {

debug-bar-panel.php (https://gitlab.com/axminenko/rocks-tools) PHP · 135 lines

1 <?php

2

3 if ( !class_exists('PluginUpdateCheckerPanel', false) && class_exists('Debug_Bar_Panel', false) ) {

120

121 private function formatTimestamp($unixTime) {

122 return gmdate('Y-m-d H:i:s', $unixTime + (get_option('gmt_offset') * 3600));

123 }

124

jResponse.class.php (https://github.com/foxmask/Booster.git) PHP · 148 lines

1 <?php

2 /**

3 * @package jelix

74 // if accept text/html

75 if (isset($_SERVER['HTTP_ACCEPT']) && strstr($_SERVER['HTTP_ACCEPT'],'text/html')) {

76 require_once(JELIX_LIB_CORE_PATH.'responses/jResponseBasicHtml.class.php');

77 $response = new jResponseBasicHtml();

78 $response->outputErrors();

140 /*

141 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

142 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

143 header("Cache-Control: no-store, no-cache, must-revalidate");

144 header("Cache-Control: post-check=0, pre-check=0", false);

Cookie.php (https://gitlab.com/pr0055/symfonypizza) PHP · 203 lines

1 <?php

2

3 /*

44 public function __construct($name, $value = null, $expire = 0, $path = '/', $domain = null, $secure = false, $httpOnly = true, $raw = false)

45 {

46 // from PHP source code

47 if (preg_match("/[=,; \t\r\n\013\014]/", $name)) {

48 throw new \InvalidArgumentException(sprintf('The cookie name "%s" contains invalid characters.', $name));

84

85 if ('' === (string) $this->getValue()) {

86 $str .= 'deleted; expires='.gmdate('D, d-M-Y H:i:s T', time() - 31536001);

87 } else {

88 $str .= urlencode($this->getValue());

89

90 if ($this->getExpiresTime() !== 0) {

91 $str .= '; expires='.gmdate('D, d-M-Y H:i:s T', $this->getExpiresTime());

92 }

93 }

Util.php (https://github.com/coder-int21h/noses.git) PHP · 110 lines

1 <?php

2

3 /**

45

46 if (ctype_digit($timestamp)) {

47 return gmdate('Y-m-d\TH:i:sP', $timestamp);

48 } elseif (preg_match($rfc3339, $timestamp) > 0) {

49 // timestamp is already properly formatted

52 $ts = strtotime($timestamp);

53 if ($ts === false) {

54 require_once 'Zend/Gdata/App/InvalidArgumentException.php';

55 throw new Zend_Gdata_App_InvalidArgumentException("Invalid timestamp: $timestamp.");

56 }

76 // Sanity check: Make sure that the collection isn't empty

77 if (sizeof($collection) == 0) {

78 require_once 'Zend/Gdata/App/Exception.php';

79 throw new Zend_Gdata_App_Exception("Empty namespace collection encountered.");

80 }

App.php (https://github.com/cordoval/genghis.git) PHP · 200 lines

1 <?php

2

3 class App

73 $filename = basename($_SERVER['SCRIPT_FILENAME']);

74

75 foreach (array('SCRIPT_NAME', 'PHP_SELF', 'ORIG_SCRIPT_NAME') as $key) {

76 if (isset($_SERVER[$key]) && basename($_SERVER[$key]) == $filename) {

77 $baseUrl = $_SERVER[$key];

81

82 if (!isset($baseUrl)) {

83 $path = isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : '';

84 $file = isset($_SERVER['SCRIPT_FILENAME']) ? $_SERVER['SCRIPT_FILENAME'] : '';

85 $chunks = array_reverse(explode('/', trim($file, '/')));

177 if (isset($this->assets[$name])) {

178 return new AssetResponse($name, $this->assets[$name], array(

179 'Last-Modified' => gmdate("D, d M Y H:i:s", filemtime(__FILE__))." GMT",

180 'Etag' => sprintf('"%s"', $this->assetEtags[$name]),

181 ));

ConfigGenerator.php (git://github.com/phpmyadmin/phpmyadmin.git) PHP · 202 lines

1 <?php

2 /**

3 * Config file generator

6 declare(strict_types=1);

7

8 namespace PhpMyAdmin\Setup;

9

10 use PhpMyAdmin\Config\ConfigFile;

11 use PhpMyAdmin\Version;

12

13 use function array_keys;

14 use function count;

15 use function gmdate;

16 use function implode;

17 use function is_array;

style.css.php (https://github.com/sandijs/berta.git) PHP · 363 lines

3 $SITE_ROOT = '../../';

4 $IS_CSS_FILE = true;

5 include('../../engine/inc.page.php');

6 $s =& $berta->template->settings;

7 $isEngineView = $berta->security->userLoggedIn;

10 header('Pragma: public');

11 header('Cache-Control: max-age=' . $expires);

12 header('Expires: ' . gmdate('D, d M Y H:i:s', time() + $expires) . ' GMT');

13 if($lastMod = $berta->settings->get('berta', 'lastUpdated')) {

14 header('Last-Modified: ' . $lastMod);

HessianFactory.php (http://hessianphp.googlecode.com/svn/trunk/) PHP · 220 lines

1 <?php

2 /*

3 * This file is part of the HessianPHP package.

8 */

9

10 include_once 'HessianInterfaces.php';

11 include_once 'HessianExceptions.php';

12 include_once 'HessianParsing.php';

13 include_once 'HessianOptions.php';

14 include_once 'HessianUtils.php';

15 include_once 'HessianCallbackHandler.php';

16 include_once 'HessianReferenceMap.php';

17 include_once 'HessianTypeMap.php';

User.php (https://github.com/Sa-ryong/Stadioom-php.git) PHP · 333 lines

1 <?php

2

3 namespace Entities;

303 */

304 public function prePersist() {

305 // $gmt = strtotime(gmdate("M d Y H:i:s", time()));

306 $gmt = new \DateTime("now", new \DateTimeZone("GMT"));

307

316 */

317 public function preUpdate() {

318 // $gmt = strtotime(gmdate("M d Y H:i:s", time()));

319 $gmt = new \DateTime("now", new \DateTimeZone("GMT"));

320

Util.php (https://bitbucket.org/haichau59/manga.git) PHP · 112 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Util.php 24648 2012-02-25 22:06:01Z adamlundrigan $

22 */

23

47

48 if (ctype_digit((string)$timestamp)) {

49 return gmdate('Y-m-d\TH:i:sP', $timestamp);

50 } elseif (preg_match($rfc3339, $timestamp) > 0) {

51 // timestamp is already properly formatted

54 $ts = strtotime($timestamp);

55 if ($ts === false) {

56 //require_once 'Zend/Gdata/App/InvalidArgumentException.php';

57 throw new Zend_Gdata_App_InvalidArgumentException("Invalid timestamp: $timestamp.");

58 }

install.php (https://github.com/geekbuntu/forkcms.git) PHP · 133 lines

1 <?php

2

3 /**

69 $form['success_message'] = $this->getLocale('ContactMessageSent', 'core', $language, 'msg', 'frontend');

70 $form['identifier'] = 'contact-' . $language;

71 $form['created_on'] = gmdate('Y-m-d H:i:s');

72 $form['edited_on'] = gmdate('Y-m-d H:i:s');

jlm_packager.php (https://github.com/ButuzGOL/inside_wildflowercms.git) PHP · 166 lines

1 <?php

2 class JlmPackagerComponent {

3

40 header("Date: " . date("D, j M Y G:i:s ", $modifiedTime) . 'GMT');

41 header('Content-type: ' . $type);

42 header("Expires: " . gmdate("D, j M Y H:i:s", time() + DAY) . " GMT");

43 header("Cache-Control: cache");

44 header("Pragma: cache");

SMTPMailSender.class.php (https://github.com/KomHunter2/WCF.git) PHP · 214 lines

1 <?php

2 namespace wcf\system\mail;

3 use wcf\system\exception\SystemException;

9 * @author Michael Schaefer

10 * @copyright 2001-2011 WoltLab GmbH

11 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>

12 * @package com.woltlab.wcf

13 * @subpackage data.mail

148

149 $header =

150 "Date: ".gmdate('r').Mail::$crlf

151 ."To: ".$mail->getToString().Mail::$crlf

152 ."Message-ID: <".md5(uniqid())."@".$_SERVER['SERVER_NAME'].">".Mail::$crlf

table_comment.php (https://github.com/zyx0814/dzzoffice.git) PHP · 172 lines

1 <?php

2 /*

3 * @copyright Leyun internet Technology(Shanghai)Co.,Ltd

35 if($arr['module']){

36

37 @include_once DZZ_ROOT.'./dzz/'.$arr['module'].'/class/table/table_'.$arr['idtype'].'.php';

38 }else{

39 @include_once DZZ_ROOT.'./core/class/table/table_'.$arr['idtype'].'.php';

66 C::t('comment_attach')->delete_by_cid($delcids);

67 if($data['module']){

68 @include_once DZZ_ROOT.'dzz/'.$data['module'].'/class/table/table_'.$data['idtype'].'.php';

69 }else{

70 @include_once DZZ_ROOT.'core/class/table/table_'.$data['idtype'].'.php';

108 foreach(DB::fetch_all("select * from %t where id=%s and idtype=%s and pcid=0 order by dateline DESC $limitsql",array($this->_table,$id,$idtype)) as $value){

109 $value['message']=dzzcode($value['message']);

110 $value['dateline']=dgmdate($value['dateline'],'u');

111 $value['replies']=DB::result_first("select COUNT(*) from %t where pcid=%d",array($this->_table,$value['cid']));

112 $value['replys']=self::fetch_all_by_pcid($value['cid'],5);

V2.php (https://github.com/eschabell/openshift-zendframework.git) PHP · 138 lines

1 <?php

2 /**

3 * Zend Framework

23 * @see Zend_Service_Amazon_Authentication

24 */

25 require_once 'Zend/Service/Amazon/Authentication.php';

26

27 /**

28 * @see Zend_Crypt_Hmac

29 */

30 require_once 'Zend/Crypt/Hmac.php';

31

32 /**

68 $parameters['SignatureMethod'] = $this->_signatureMethod;

69 if(!isset($parameters['Timestamp'])) {

70 $parameters['Timestamp'] = gmdate('Y-m-d\TH:i:s\Z', time()+10);

71 }

72

EntityDescriptor.php (https://bitbucket.org/sahkoinenaanestys/sahkoinenaanestys.git) PHP · 252 lines

1 <?php

2

3 /**

4 * Class representing SAML 2 EntityDescriptor element.

5 *

6 * @package simpleSAMLphp

7 * @version $Id$

8 */

216

217 if (isset($this->validUntil)) {

218 $e->setAttribute('validUntil', gmdate('Y-m-d\TH:i:s\Z', $this->validUntil));

219 }

220

Rss.php (https://gitlab.com/geeta7/drupal) PHP · 171 lines

1 <?php

2

3 /**

114 array(

115 'key' => 'pubDate',

116 'value' => gmdate('r', $node->getCreatedTime()),

117 ),

118 array(

Stats.php (https://github.com/tortuvshin/newsfeed.git) PHP · 145 lines

1 <?php

2

3 namespace App;

43 return false;

44 }

45 $date = empty($date) ? gmdate('Y-m-d') : $date;

46

47 $raw_stats = $this->raw_stats;

maintain_backups.php (https://github.com/rhempen/cms.git) PHP · 135 lines

99 <table cellpadding="5" cellspacing="1" border="0" width="80%">

100 <tr class="navi_overview_titel">

101 <th width="30%"><?php echo $GLOBALS['BACKUP']['DATEI'];?></th>

102 <th width="30%"><?php echo $GLOBALS['BACKUP']['ERSTELLT'];?></th>

106 </tr>

107

108 <?php

109 foreach($fs as $index => $file) {

110 // Klasse, File mit Pfad, Extension

121 <tr class="<?php echo $class;?>">

122 <td><?php echo $file['datei']; ?></td>

123 <td align="right"><?php echo set_date_time($file['fmt']); ?></td>

125 <td align="center"><?php echo '<a href="'.$srcfile.'">'.$icon.'</a>'; ?></td>

126 <td align="center"><?php echo '<a href="'.$_SERVER['PHP_SELF'].'?act=delete&file='.$file['datei'].'"><img src="../gifs/delete.gif" alt="delete" title="delete" onclick="'.$jscript.'"' ?></td>

127 </tr>

128 <?php

bp-em-activity.php (https://gitlab.com/Blueprint-Marketing/interoccupy.net) PHP · 128 lines

1 <?php

2 // This file handles hooks/filter requiring activity stream publications

3

22 'item_id' => false,

23 'secondary_item_id' => false,

24 'recorded_time' => gmdate( "Y-m-d H:i:s" ),

25 'hide_sitewide' => false

26 );

cqgiveItemToPNJ.inc.php (https://gitlab.com/nacridan/Nacridan) PHP · 150 lines

1 <?php

2

3 class CQGiveItemToPNJ extends HTMLObject

103 $equip->set("id_Player", $_POST["owner_id"]);

104 $equip->set("id_BasicEquipment", $dbc->get("id"));

105 $equip->set("date", gmdate("Y-m-d H:i:s"));

106 $equip->set("collected", gmdate("Y-m-d H:i:s"));

lmbHttpCache.class.php (https://github.com/limb-php-framework/limb-app-buildman.git) PHP · 203 lines

1 <?php

2 /**

3 * Limb Web Application Framework

7 * @copyright Copyright &copy; 2004-2007 BIT

8 * @license LGPL http://www.gnu.org/copyleft/lesser.html

9 * @version $Id: lmbHttpCache.class.php 5001 2007-02-08 15:36:45Z pachanga $

10 * @package net

11 */

12 //inspired by http://alexandre.alapetite.net/doc-alex/php-http-304/

13

14 define('LIMB_HTTP_CACHE_TYPE_PRIVATE', 0);

136 protected function _formatGmtTime($time)

137 {

138 return gmdate('D, d M Y H:i:s \G\M\T', $time);

139 }

140

V2.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 138 lines

1 <?php

2 /**

3 * Zend Framework

23 * @see Zend_Service_Amazon_Authentication

24 */

25 // require_once 'Zend/Service/Amazon/Authentication.php';

26

27 /**

28 * @see Zend_Crypt_Hmac

29 */

30 // require_once 'Zend/Crypt/Hmac.php';

31

32 /**

68 $parameters['SignatureMethod'] = $this->_signatureMethod;

69 if(!isset($parameters['Timestamp'])) {

70 $parameters['Timestamp'] = gmdate('Y-m-d\TH:i:s\Z', time()+10);

71 }

72

lockable.php (https://github.com/Macsmice/nooku.git) PHP · 187 lines

1 <?php

2 /**

3 * @version $Id$

79 {

80 $this->locked_by = (int) KFactory::get('lib.joomla.user')->get('id');

81 $this->locked_on = gmdate('Y-m-d H:i:s');

82 $this->save();

83 }

122 {

123 $locked = strtotime($this->locked_on);

124 $current = strtotime(gmdate('Y-m-d H:i:s'));

125

126 //Check if the lock has gone stale

PunchTimeAPI.php (https://github.com/orangehrm/OrangeHRM.git) PHP · 142 lines

1 <?php

2

3 /**

112 public function getCurrentUTCTime()

113 {

114 return gmdate('Y-m-d H:i');

115 }

116

Form.php (https://gitlab.com/dram1008/galaxysss) PHP · 83 lines

1 <?php

2

3 namespace app\modules\Comment;

54 }

55

56 $fields['date_insert'] = gmdate('YmdHis');

57 $fields['id_string'] = Str::rus2translit($fields['header']);

58 $fields['date'] = gmdate('Y-m-d');

tiiapipost.class.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 240 lines

1 <?php

2 /**

3 * API Assignment

126 $url .= "&version=".TII_VERSION;

127 if (TII_LOGGING) {

128 require_once("logger.class.php");

129 $logger = new Logger;

130 $logger->log("API:".$url);

195

196 function get_gmtime() {

197 return substr(gmdate('YmdHi'), 0, -1);

198 }

199

CookieTest.php (https://github.com/homer6/symfony.git) PHP · 144 lines

1 <?php

2

3 /*

20 * @author Hugo Hamon <hugo.hamon@sensio.com>

21 */

22 class CookieTest extends \PHPUnit_Framework_TestCase

23 {

24 public function invalidNames()

140 $cookie = new Cookie('foo', null, 1, '/admin/', '.myfoodomain.com');

141

142 $this->assertEquals('foo=deleted; expires='.gmdate("D, d-M-Y H:i:s T", time()-31536001).'; path=/admin/; domain=.myfoodomain.com; httponly', $cookie->__toString(), '->__toString() returns string representation of a cleared cookie if value is NULL');

143 }

144 }

two_tables.php (https://github.com/backr3ap/Rhynn.git) PHP · 227 lines

1 <?php

2 header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );

3 header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );

19 <script type="text/javascript" language="javascript" src="../../js/jquery.dataTables.js"></script>

20 <script type="text/javascript" language="javascript" src="../unit_test.js"></script>

21 <?php

22 $aScripts = split( ":", $_GET['scripts'] );

23 for ( $i=0 ; $i<count($aScripts) ; $i++ )

treemenu.php (https://github.com/alafon/eztags.git) PHP · 168 lines

1 <?php

2

3 eZExpiryHandler::registerShutdownFunction();

89 {

90 header( $_SERVER['SERVER_PROTOCOL'] . ' 304 Not Modified' );

91 header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + MAX_AGE ) . ' GMT' );

92 header( 'Cache-Control: max-age=' . MAX_AGE );

93 header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s', strtotime( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) ) . ' GMT' );

154 }

155

156 header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + MAX_AGE ) . ' GMT' );

157 header( 'Cache-Control: cache, max-age=' . MAX_AGE . ', post-check=' . MAX_AGE . ', pre-check=' . MAX_AGE );

158 header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s', ( $tag instanceof eZTagsObject ) ? (int) $tag->attribute( 'modified' ) : time() ) . ' GMT' );

Cookie.php (https://bitbucket.org/Maron1/taqman.git) PHP · 208 lines

1 <?php

2

3 /*

44 public function __construct($name, $value = null, $expire = 0, $path = '/', $domain = null, $secure = false, $httpOnly = true)

45 {

46 // from PHP source code

47 if (preg_match("/[=,; \t\r\n\013\014]/", $name)) {

48 throw new \InvalidArgumentException(sprintf('The cookie name "%s" contains invalid characters.', $name));

83

84 if ('' === (string) $this->getValue()) {

85 $str .= 'deleted; expires='.gmdate("D, d-M-Y H:i:s T", time() - 31536001);

86 } else {

87 $str .= urlencode($this->getValue());

88

89 if ($this->getExpiresTime() !== 0) {

90 $str .= '; expires='.gmdate("D, d-M-Y H:i:s T", $this->getExpiresTime());

91 }

92 }

postgres8_date_module.inc (http://pacercms.googlecode.com/svn/trunk/) PHP · 316 lines

1 <?php

2 /**

3 * ADOdb Lite Date Module for Postgres 8

7 if (!defined('TIMESTAMP_FIRST_YEAR')) define('TIMESTAMP_FIRST_YEAR',100);

8

9 @include(ADODB_DIR . '/adodb-time.inc.php');

10

11 eval('class postgres8_date_EXTENDER extends '. $last_module . '_ADOConnection { }');

168 }

169

170 return ($gmt) ? adodb_gmdate($fmt, $tt) : adodb_date($fmt, $tt);

171 }

172

178 # strlen(14) allows YYYYMMDDHHMMSS format

179 if (is_numeric($v) && strlen($v)<14)

180 return ($gmt) ? adodb_gmdate($fmt,$v) : adodb_date($fmt,$v);

181

182 $tt = $this->UnixTimeStamp($v);

postgres7_date_module.inc (http://pacercms.googlecode.com/svn/trunk/) PHP · 316 lines

1 <?php

2 /**

3 * ADOdb Lite Date Module for Postgres 7

7 if (!defined('TIMESTAMP_FIRST_YEAR')) define('TIMESTAMP_FIRST_YEAR',100);

8

9 @include(ADODB_DIR . '/adodb-time.inc.php');

10

11 eval('class postgres7_date_EXTENDER extends '. $last_module . '_ADOConnection { }');

168 }

169

170 return ($gmt) ? adodb_gmdate($fmt, $tt) : adodb_date($fmt, $tt);

171 }

172

178 # strlen(14) allows YYYYMMDDHHMMSS format

179 if (is_numeric($v) && strlen($v)<14)

180 return ($gmt) ? adodb_gmdate($fmt,$v) : adodb_date($fmt,$v);

181

182 $tt = $this->UnixTimeStamp($v);

postgres64_date_module.inc (http://pacercms.googlecode.com/svn/trunk/) PHP · 316 lines

1 <?php

2 /**

3 * ADOdb Lite Date Module for Postgres 64

7 if (!defined('TIMESTAMP_FIRST_YEAR')) define('TIMESTAMP_FIRST_YEAR',100);

8

9 @include(ADODB_DIR . '/adodb-time.inc.php');

10

11 eval('class postgres64_date_EXTENDER extends '. $last_module . '_ADOConnection { }');

168 }

169

170 return ($gmt) ? adodb_gmdate($fmt, $tt) : adodb_date($fmt, $tt);

171 }

172

178 # strlen(14) allows YYYYMMDDHHMMSS format

179 if (is_numeric($v) && strlen($v)<14)

180 return ($gmt) ? adodb_gmdate($fmt,$v) : adodb_date($fmt,$v);

181

182 $tt = $this->UnixTimeStamp($v);

Util.php (https://github.com/timglabisch/pimcore.git) PHP · 112 lines

1 <?php

2

3 /**

19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

20 * @license http://framework.zend.com/license/new-bsd New BSD License

21 * @version $Id: Util.php 24643 2012-02-25 21:35:32Z adamlundrigan $

22 */

23

47

48 if (ctype_digit((string)$timestamp)) {

49 return gmdate('Y-m-d\TH:i:sP', $timestamp);

50 } elseif (preg_match($rfc3339, $timestamp) > 0) {

51 // timestamp is already properly formatted

54 $ts = strtotime($timestamp);

55 if ($ts === false) {

56 // require_once 'Zend/Gdata/App/InvalidArgumentException.php';

57 throw new Zend_Gdata_App_InvalidArgumentException("Invalid timestamp: $timestamp.");

58 }