PageRenderTime 39ms queryTime 36ms sortTime 16ms getByIdsTime 363ms findMatchingLines 61ms

100+ results results for 'php gmdate' (39 ms)

Not the results you expected?
ParallelTransfer.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 124 lines
                    
1<?php
                    
2/**
                    
95                    'Size'         => (int) $command->getResponse()->getHeader('Content-Length', true),
                    
96                    'LastModified' => gmdate(DateFormat::RFC2822)
                    
97                )));
                    
                
generateJqueryMsgData.php https://gitlab.com/link233/bootmw | PHP | 148 lines
                    
1<?php
                    
2/**
                    
18 * <code>
                    
19	QUnit.test( 'Output matches PHP parser', mw.libs.phpParserData.tests.length, function ( assert ) {
                    
20		mw.messages.set( mw.libs.phpParserData.messages );
                    
20		mw.messages.set( mw.libs.phpParserData.messages );
                    
21		$.each( mw.libs.phpParserData.tests, function ( i, test ) {
                    
22			QUnit.stop();
                    
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 ) {
                    
63
                    
64require __DIR__ . '/../../../maintenance/Maintenance.php';
                    
65
                    
137				. "\n"
                    
138				. 'mediaWiki.libs.phpParserData = ' . FormatJson::encode( $phpParserData, true ) . ";\n";
                    
139
                    
                
CookieTest.php https://github.com/comfortablynumb/symfony.git | PHP | 151 lines
                    
1<?php
                    
2
                    
21 */
                    
22class CookieTest extends \PHPUnit_Framework_TestCase
                    
23{
                    
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    }
                    
                
Stitcher.php http://jojocms.googlecode.com/svn/trunk/ | PHP | 331 lines
                    
1<?php
                    
2/**
                    
132        header('Pragma: ');
                    
133        header('Last-Modified: ' . gmdate('D, d M Y H:i:s \G\M\T',$this->modified));
                    
134        header('Expires: ');
                    
150
                    
151    /* TODO - a simple php4 JS optimisation function, which removes extra characters */
                    
152    function optimizeJS($js)
                    
155
                    
156        /* JSMin will only work on PHP5+ */
                    
157        require_once(_BASEPLUGINDIR . '/jojo_core/external/jsmin/jsmin.php');
                    
301    {
                    
302        // A PHP implementation of conditional get, see
                    
303        //   http://fishbowl.pastiche.org/archives/001132.html
                    
304        if (empty($timestamp)) $timestamp = time();
                    
305        $last_modified = gmdate('D, d M Y H:i:s', $timestamp).' GMT';//substr(date('r', $timestamp), 0, -5) . 'GMT';
                    
306        $etag = '"'.md5($last_modified) . '"';
                    
                
CookieTest.php https://github.com/ingvar/symfony.git | PHP | 151 lines
                    
1<?php
                    
2
                    
21 */
                    
22class CookieTest extends \PHPUnit_Framework_TestCase
                    
23{
                    
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    }
                    
                
class.videopress-cli.php https://gitlab.com/remyvianne/krowkaramel | PHP | 167 lines
                    
1<?php
                    
2
                    
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
                    
104			} else {
                    
105				WP_CLI::success( sprintf( __( 'Cron will run at: %s GMT', 'jetpack' ), gmdate( 'Y-m-d H:i:s', $time ) ) );
                    
106			}
                    
                
DeliveryScheduler.php https://bitbucket.org/amruthaviswanath/mls-qa-tool.git | PHP | 306 lines
                    
144                    $firstTime = false;
                    
145                    Common::logger("Date:". gmdate('Y-m-d H:i:s') . "scheduler classes count: ".mysqli_num_rows($resultScheduleServerClasses), 'scheduler_log.txt');
                    
146                    while ($rowServerClass = mysqli_fetch_assoc($resultScheduleServerClasses)) {
                    
164                            if ($this->getPhpProcessesCount() < $this->_maxNoOfProcesses) {
                    
165                                $command = "php Scripts/iCanDeliveryLive_new.php '{$rowServerClass['server_name']}' '{$rowServerClass['class_name']}' '{$rowServerClass['provider_name']}' '{$rowServerClass['customer_name']}'";
                    
166                                //Log data extraction details and errors
                    
204    {
                    
205        $phpProcessCount = $this->getPhpProcessesCount();
                    
206        $ramAvailable    = $this->getAvailableFreeMemory();
                    
207        if ($phpProcessCount >= $this->_maxNoOfProcesses) {
                    
208            $warningsArr[] = "Max number of processes ($phpProcessCount/$this->_maxNoOfProcesses) reached";
                    
209            $warningsArr[] = "Waiting for processor to finish any of the currently running processes";
                    
294    {
                    
295        return substr_count(shell_exec("ps aux | grep php"), 'php index.php');
                    
296    }
                    
                
func_attachments.php https://github.com/lewellyn/TrellisDesk.git | PHP | 260 lines
                    
1<?php
                    
2
                    
248
                    
249        header( "Expires: ". gmdate( 'D, d M Y H:i:s', time() ) ." GMT" );
                    
250
                    
                
CookieJarTest.php https://bitbucket.org/hill2steve/mobileroom.git | PHP | 191 lines
                    
1<?php
                    
2
                    
17
                    
18class CookieJarTest extends \PHPUnit_Framework_TestCase
                    
19{
                    
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));
                    
95        $barCookie = $cookieJar->get('bar', '/', '.blog.symfony.com');
                    
96        $phpCookie = $cookieJar->get('PHPSESSID');
                    
97
                    
99        $this->assertInstanceOf('Symfony\Component\BrowserKit\Cookie', $barCookie);
                    
100        $this->assertInstanceOf('Symfony\Component\BrowserKit\Cookie', $phpCookie);
                    
101        $this->assertEquals('foo', $fooCookie->getValue());
                    
102        $this->assertEquals('bar', $barCookie->getValue());
                    
103        $this->assertEquals('id', $phpCookie->getValue());
                    
104        $this->assertEquals($timestamp, $fooCookie->getExpiresTime());
                    
                
date_helper.php https://gitlab.com/ricoru21/py_incidencia | PHP | 611 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
46			$now = time();
                    
47			$system_time = mktime(gmdate("H", $now), gmdate("i", $now), gmdate("s", $now), gmdate("m", $now), gmdate("d", $now), gmdate("Y", $now));
                    
48
                    
68 *
                    
69 * This function is identical to PHPs date() function,
                    
70 * except that it allows date codes to be formatted using
                    
307
                    
308		return mktime( gmdate("H", $time), gmdate("i", $time), gmdate("s", $time), gmdate("m", $time), gmdate("d", $time), gmdate("Y", $time));
                    
309	}
                    
609
                    
610/* End of file date_helper.php */
                    
611/* Location: ./system/helpers/date_helper.php */
                    
                
cookies.php https://github.com/klando/pgpiwik.git | PHP | 380 lines
                    
1<?php
                    
2    /**
                    
11     */
                    
12    require_once(dirname(__FILE__) . '/url.php');
                    
13    /**#@-*/
                    
159            }
                    
160            return gmdate("D, d M Y H:i:s", $this->_expiry) . " GMT";
                    
161        }
                    
                
php.js https://gitlab.com/ptisky/API_prestashop | JavaScript | 75 lines
                    
1editAreaLoader.load_syntax["php"] = {

                    
2	'COMMENT_SINGLE' : {1 : '//', 2 : '#'}

                    
15			'null', '__LINE__', '__FILE__',

                    
16			'false', '&lt;?php', '?&gt;', '&lt;?',

                    
17			'&lt;script language', '&lt;/script&gt;',

                    
19			'function', 'class', 'new', '&amp;new', 'this',

                    
20			'__FUNCTION__', '__CLASS__', '__METHOD__', 'PHP_VERSION',

                    
21			'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR',

                    
21			'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR',

                    
22			'PHP_EXTENSION_DIR', 'PHP_BINDIR', 'PHP_LIBDIR', 'PHP_DATADIR', 'PHP_SYSCONFDIR',

                    
23			'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT',

                    
23			'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT',

                    
24			'PHP_OUTPUT_HANDLER_END', 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE',

                    
25			'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_USER_ERROR',

                    
32			'extension_loaded', 'get_extension_funcs', 'debug_backtrace',

                    
33			'constant', 'bin2hex', 'sleep', 'usleep', 'time', 'mktime', 'gmmktime', 'strftime', 'gmstrftime', 'strtotime', 'date', 'gmdate', 'getdate', 'localtime', 'checkdate', 'flush', 'wordwrap', 'htmlspecialchars', 'htmlentities', 'html_entity_decode', 'md5', 'md5_file', 'crc32', 'getimagesize', 'image_type_to_mime_type', 'phpinfo', 'phpversion', 'phpcredits', 'strnatcmp', 'strnatcasecmp', 'substr_count', 'strspn', 'strcspn', 'strtok', 'strtoupper', 'strtolower', 'strpos', 'strrpos', 'strrev', 'hebrev', 'hebrevc', 'nl2br', 'basename', 'dirname', 'pathinfo', 'stripslashes', 'stripcslashes', 'strstr', 'stristr', 'strrchr', 'str_shuffle', 'str_word_count', 'strcoll', 'substr', 'substr_replace', 'quotemeta', 'ucfirst', 'ucwords', 'strtr', 'addslashes', 'addcslashes', 'rtrim', 'str_replace', 'str_repeat', 'count_chars', 'chunk_split', 'trim', 'ltrim', 'strip_tags', 'similar_text', 'explode', 'implode', 'setlocale', 'localeconv',

                    
34			'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',

                    
                
Controller.php https://github.com/sitengine/sitengine.git | PHP | 359 lines
                    
1<?php
                    
2
                    
17
                    
18require_once 'Sitengine/Controller/Action.php';
                    
19
                    
63        		$this->getEnv()->getMyLogsDir(),
                    
64        		gmdate('Ymd').'-sitengine.log',
                    
65        		$this->getEnv()->getLogFilterPriority(),
                    
76			
                    
77			require_once 'Sitengine/Status.php';
                    
78			$this->_status = Sitengine_Status::getInstance();
                    
78			$this->_status = Sitengine_Status::getInstance();
                    
79			require_once 'Sitengine/Env/Preferences.php';
                    
80			$this->_preferences = Sitengine_Env_Preferences::getInstance();
                    
82			$this->_permiso = $this->getFrontController()->getPermiso()->start($this->getDatabase());
                    
83			require_once 'Zend/Session/Namespace.php';
                    
84    		$this->_namespace = new Zend_Session_Namespace(get_class($this));
                    
                
MenuItem.php https://gitlab.com/x33n/respond | PHP | 263 lines
                    
1<?php
                    
2
                    
14        	$menuItemId = uniqid();
                    
15        	$timestamp = gmdate("Y-m-d H:i:s", time());
                    
16            
                    
                
datatype-date-format.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 392 lines
                    
97                var gmd_1 = new Date("" + d.getFullYear() + "/1/1 GMT");
                    
98                var gmdate = new Date("" + d.getFullYear() + "/" + (d.getMonth()+1) + "/" + d.getDate() + " GMT");
                    
99                var ms = gmdate - gmd_1;
                    
190     *   <a href="http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html">http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html</a>
                    
191     *   PHP added a few of its own, defined at <a href="http://www.php.net/strftime">http://www.php.net/strftime</a>
                    
192     *   </p>
                    
193     *   <p>
                    
194     *   This javascript implementation supports all the PHP specifiers and a few more.  The full list is below.
                    
195     *   </p>
                    
                
Cookie.php https://github.com/ibnoe/Microweber.git | PHP | 396 lines
                    
1<?php
                    
2/**
                    
6 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
                    
7 * @version $Id: Cookie.php 4302 2011-04-04 00:24:06Z vipsoft $
                    
8 *
                    
118	 * setcookie() replacement -- we don't use the built-in function because
                    
119	 * it is buggy for some PHP versions.
                    
120	 *
                    
120	 *
                    
121	 * @link http://php.net/setcookie
                    
122	 *
                    
147		$header = 'Set-Cookie: ' . rawurlencode($Name) . '=' . rawurlencode($Value)
                    
148					 . (empty($Expires) ? '' : '; expires=' . gmdate('D, d-M-Y H:i:s', $Expires) . ' GMT')
                    
149					 . (empty($Path) ? '' : '; path=' . $Path)
                    
214	/**
                    
215	 * Load the cookie content into a php array.
                    
216	 * Parses the cookie string to extract the different variables.
                    
                
sajax.php https://bitbucket.org/dgough/annamaria-daneswood-25102012.git | PHP | 416 lines
                    
1<?php
                    
2// ensure this file is being included by a parent file - Joomla! 1.0.x and 1.5 compatible
                    
30
                    
31	// Since str_split used in sajax_get_my_uri is only available on PHP 5, we have
                    
32	// to provide an alternative for those using PHP 4.x
                    
58		if ($myURI == "") {
                    
59			$myURI = $mosConfig_live_site . "/administrator/index2.php";
                    
60		}
                    
74	//global $mosConfig_live_site;
                    
75	// $sajax_remote_uri = $mosConfig_live_site . "/administrator/index2.php?option=$option&no_html=1&act=ajax";
                    
76	$sajax_remote_uri = sajax_get_my_uri();
                    
142			header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");    // Date in the past
                    
143			header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
                    
144			// always modified
                    
189		// (c) copyright 2005 modernmethod, inc
                    
190		var sajax_debug_mode = <?php echo $sajax_debug_mode ? "true" : "false"; ?>;
                    
191		var sajax_request_type = "<?php echo $t; ?>";
                    
                
session.php https://github.com/dericksaga/ibsite.git | PHP | 300 lines
                    
1<?php
                    
2/* ------ MySQL session ------
                    
2/* ------ MySQL session ------
                    
3a MySQL based session management and variable registration system for PHP3
                    
4joshua macadam, 2000
                    
7
                    
8if (phpversion() < 4) {
                    
9	// phpversion = 3
                    
26	$tableSessionVars = $cfgDbTableSessionVars;
                    
27	$cookieName = "php3SessionID";
                    
28	$php3SessionID = $$cookieName;
                    
29
                    
30	function session_destroy_php3() {
                    
31		global $db, $tableSessions, $tableSessionVars, $php3SessionID, $strNoDatabase, $cookieName;
                    
34		// delete variables associated with the sessions we're about to DELETE
                    
35		$Query = "DELETE FROM $tableSessionVars WHERE session='$php3SessionID'";
                    
36		mysql($db, $Query) or die($strNoDatabase);
                    
                
PgCacheFlush.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 440 lines
                    
1<?php
                    
2
                    
6
                    
7require_once W3TC_LIB_W3_DIR . '/PgCache.php';
                    
8
                    
13    /**
                    
14     * PHP5 Constructor
                    
15     */
                    
20    /**
                    
21     * PHP4 Constructor
                    
22     */
                    
151                $post_date = strtotime($post->post_date);
                    
152                $post_year = gmdate('Y', $post_date);
                    
153                $post_month = gmdate('m', $post_date);
                    
153                $post_month = gmdate('m', $post_date);
                    
154                $post_day = gmdate('d', $post_date);
                    
155
                    
                
Migrator.php https://bitbucket.org/salimane/ruckusing-migrations.git | PHP | 324 lines
                    
1<?php
                    
2/**
                    
75        // We only want one row but we cannot assume that we are using MySQL and use a LIMIT statement
                    
76        // as it is not part of the SQL standard. Thus we have to select all rows and use PHP to return
                    
77        // the record we need
                    
168    {
                    
169        return gmdate('YmdHis', time());
                    
170    }
                    
230            for ($i = 0; $i < $file_cnt; $i++) {
                    
231                if (preg_match('/^(\d+)_(.*)\.php$/', $files[$i], $matches)) {
                    
232                    if (count($matches) == 3) {
                    
247            $migration = $valid_files[$i];
                    
248            if (preg_match('/^(\d+)_(.*)\.php$/', $migration, $matches)) {
                    
249                $files[] = array(
                    
                
act_generate.php https://gitlab.com/pra34/excel-parse | PHP | 48 lines
                    
1<?php
                    
2include '/PHPExcel/Classes/PHPExcel.php';
                    
3include '/PHPExcel/Classes/PHPExcel/IOFactory.php';
                    
4
                    
5$excel = new PHPExcel(); 
                    
6
                    
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'); 
                    
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
                    
31$excel->getActiveSheet()->getStyle("D{$row}")->getNumberFormat()->setFormatCode( PHPExcel_Style_NumberFormat::FORMAT_TEXT );
                    
32$worksheet->getCell("D{$row}")->setValue($_POST['fourth_column_record']);
                    
                
ResponseHeaderBagTest.php https://github.com/ratasxy/symfony.git | PHP | 176 lines
                    
1<?php
                    
2
                    
16
                    
17class ResponseHeaderBagTest extends \PHPUnit_Framework_TestCase
                    
18{
                    
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    }
                    
                
rss.php http://core.svn.wordpress.org/ | PHP | 176 lines
                    
1<?php
                    
2
                    
20
                    
21	function unhtmlentities($string) { // From php.net for < 4.3 compat
                    
22		$trans_tbl = get_html_translation_table(HTML_ENTITIES);
                    
28		echo '<p>'.__('Howdy! This importer allows you to extract posts from any RSS 2.0 file into your blog. This is useful if you want to import your posts from a system that is not handled by a custom import tool. Pick an RSS file to upload and click Import.').'</p>';
                    
29		wp_import_upload_form("admin.php?import=rss&amp;step=1");
                    
30	}
                    
58
                    
59			$post_date = gmdate('Y-m-d H:i:s', $post_date);
                    
60
                    
                
function_forumlist.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 386 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: function_forumlist.php 31131 2012-07-18 09:44:21Z liulanbo $
                    
8 */
                    
39		$forum['icon'] = get_forumimg($forum['icon']);
                    
40		$forum['icon'] = '<a href="forum.php?mod=forumdisplay&fid='.$forum['fid'].'"><img src="'.$forum['icon'].'" align="left" alt="" /></a>';
                    
41	}
                    
57	if($lastpost['tid']) {
                    
58		$lastpost['dateline'] = dgmdate($lastpost['dateline'], 'u');
                    
59		$lastpost['authorusername'] = $lastpost['author'];
                    
60		if($lastpost['author']) {
                    
61			$lastpost['author'] = '<a href="home.php?mod=space&username='.rawurlencode($lastpost['author']).'">'.$lastpost['author'].'</a>';
                    
62		}
                    
136				if($fid != $_G['forum']['fid']) {
                    
137					$visitedforums .= '<li><a href="forum.php?mod=forumdisplay&fid='.$fid.'">'.$_G['cache']['forums'][$fid]['name'].'</a></li>';
                    
138					if(++$count >= $_G['setting']['visitedforums']) {
                    
                
MessageFormatter.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 156 lines
                    
1<?php
                    
2
                    
91                case 'date_iso_8601':
                    
92                    $result = \gmdate('c');
                    
93                    break;
                    
                
index.php https://github.com/angelogarcia/chits.git | PHP | 312 lines
                    
19header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
                    
20header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
                    
21header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
                    
24// standard class includes
                    
25include "../class.mysqldb.php";
                    
26include "../class.user.php";
                    
26include "../class.user.php";
                    
27include "../class.site.php";
                    
28include "../class.module.php";
                    
28include "../class.module.php";
                    
29include "../class.datanode.php";
                    
30
                    
32// courtesy of http://www.fpdf.org/
                    
33include "../class.fpdf.php";
                    
34include "../class.pdf.php";
                    
                
HTTP.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 343 lines
                    
8// | to obtain it through the world-wide-web, please send a note to       |
                    
9// | license@php.net so we can mail you a copy immediately.               |
                    
10// +----------------------------------------------------------------------+
                    
11// | Authors: Stig Bakken <ssb@fast.no>                                   |
                    
12// |          Sterling Hughes <sterling@php.net>                          |
                    
13// |          Tomas V.V.Cox <cox@idecnet.com>                             |
                    
27 * @category    HTTP
                    
28 * @license     PHP License
                    
29 * @access      public
                    
161     *                  or PEAR error on failure.
                    
162     * @param   string  $url A valid URL, e.g.: http://pear.php.net/credits.php
                    
163     * @param   integer $timeout Timeout in seconds (default = 10)
                    
338    {
                    
339        require_once 'PEAR.php';
                    
340        return PEAR::raiseError($error, $code);
                    
                
SetCookieTest.php https://github.com/bate/zf2.git | PHP | 329 lines
                    
1<?php
                    
2/**
                    
14
                    
15class SetCookieTest extends \PHPUnit_Framework_TestCase
                    
16{
                    
246            array(
                    
247                'Set-Cookie: domain=unittests; expires=' . gmdate('D, d-M-Y H:i:s', $now) . ' GMT; domain=example.com; path=/some%20value/',
                    
248                array(
                    
256                ),
                    
257                'domain=unittests; Expires=' . gmdate('D, d-M-Y H:i:s', $now) . ' GMT; Domain=example.com; Path=/some%20value/'
                    
258            ),
                    
259            array(
                    
260                'Set-Cookie: path=indexAction; path=/; domain=.foo.com; expires=' . gmdate('D, d-M-Y H:i:s', $yesterday) . ' GMT',
                    
261                array(
                    
269                ),
                    
270                'path=indexAction; Expires=' . gmdate('D, d-M-Y H:i:s', $yesterday) . ' GMT; Domain=.foo.com; Path=/'
                    
271            ),
                    
                
gravatar-hovercards.php https://github.com/chopsuei3/oscc.git | PHP | 271 lines
                    
20	add_action( 'load-users.php',              'grofiles_admin_cards' );
                    
21	add_action( 'load-edit-comments.php',      'grofiles_admin_cards' );
                    
22	add_action( 'load-options-discussion.php', 'grofiles_admin_cards_forced' );
                    
28function gravatar_hovercards_configuration_load() {
                    
29	wp_safe_redirect( admin_url( 'options-discussion.php#gravatar-hovercard-options' ) );
                    
30	exit;
                    
84</script>
                    
85	<p id="grav-profile-example" class="hide-if-no-js"<?php if ( !$checked ) echo ' style="display:none"'; ?>><?php echo get_avatar( $current_user->ID, 64 ); ?> <span><?php _e( 'Put your mouse over your Gravatar to check out your profile.', 'jetpack' ); ?> <br class="clear" /></span></p>
                    
86<?php
                    
208	<div style="display:none">
                    
209<?php
                    
210	foreach ( grofiles_gravatars_to_append() as $author )
                    
232<?php	foreach ( $data as $key => $value ) : ?>
                    
233		<span class="<?php echo esc_attr( $key ); ?>"><?php echo esc_html( $value ); ?></span>
                    
234<?php	endforeach; ?>
                    
                
php_date.h https://gitlab.com/envieidoc/tomato | C Header | 203 lines
                    
123
                    
124typedef struct _php_date_obj php_date_obj;
                    
125typedef struct _php_timezone_obj php_timezone_obj;
                    
125typedef struct _php_timezone_obj php_timezone_obj;
                    
126typedef struct _php_interval_obj php_interval_obj;
                    
127typedef struct _php_period_obj php_period_obj;
                    
190/* Mechanism to set new TZ database */
                    
191PHPAPI void php_date_set_tzdb(timelib_tzdb *tzdb);
                    
192PHPAPI timelib_tzinfo *get_timezone_info(TSRMLS_D);
                    
194/* Grabbing CE's so that other exts can use the date objects too */
                    
195PHPAPI zend_class_entry *php_date_get_date_ce(void);
                    
196PHPAPI zend_class_entry *php_date_get_timezone_ce(void);
                    
199PHPAPI zval *php_date_instantiate(zend_class_entry *pce, zval *object TSRMLS_DC);
                    
200PHPAPI 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);
                    
201
                    
                
Session.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 246 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
91    {
                    
92        return gmdate('Y-m-d H:i:s', time() - Mage::helper('persistent')->getLifeTime($store));
                    
93    }
                    
218                $websiteId,
                    
219                gmdate('Y-m-d H:i:s', time() - $lifetime)
                    
220            );
                    
242    {
                    
243        $this->setUpdatedAt(gmdate('Y-m-d H:i:s'));
                    
244        return parent::save();
                    
                
index.tpl https://github.com/robeendey/ce.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;
                    
25        <?php endif;?>
                    
26        <?php
                    
27          if ($item->photo_id) echo $this->htmlLink($item->getHref(), $this->itemPhoto($item, 'thumb.normal'));
                    
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">
                    
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):?>
                    
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; ?>
                    
                
doku2sites.php https://github.com/cpierret/doku2sites.git | PHP | 314 lines
                    
52    		$host = $value;
                    
53    		$rpcurl = 'https://'.$host.'/wiki/lib/exe/xmlrpc.php';
                    
54    	}
                    
79if (empty($rpcurl))
                    
80	$rpcurl = "https://localhost/wiki/lib/exe/xmlrpc.php";
                    
81
                    
93{
                    
94	echo "php doku2sites.php -u DOKU_USERNAME -p DOKU_PASSWORD [-h DOKU_HOSTNAME] [-d DIRECTORY] [-s DOKU_URL] [-a AUTHOR] [-m AUTHOR_EMAIL] [-?]\n";
                    
95	echo "Options:\n";
                    
98	echo '  -h DOKU_HOSTNAME the DokuWiki host name ( as in https://${DOKU_HOSTNAME}/wiki/lib/exe/xmlrpc.php).'."\n";
                    
99	echo '  -s DOKU_URL the DokuWiki XML RPC URL, for example https://myserver.com/wiki/lib/exe/xmlrpc.php'."\n";
                    
100	echo '  -d DIRECTORY an empty directory in which files will be generated (ensure you rince it before use)'."\n";
                    
201	// fix quirk in Tidy (preserves PHP code)
                    
202	$result = str_replace('<?php','&lt;?php',$result);
                    
203	$result = str_replace('?>','?&gt;',$result);
                    
                
upload.php https://bitbucket.org/gente21apps/arouesty.git | PHP | 162 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * upload.php
                    
4 *
                    
19header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
                    
20header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
                    
21header("Cache-Control: no-store, no-cache, must-revalidate");
                    
140} else {	
                    
141	if (!$in = @fopen("php://input", "rb")) {
                    
142		die('{"jsonrpc" : "2.0", "error" : {"code": 101, "message": "Failed to open input stream."}, "id" : "id"}');
                    
                
showinframesmin.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 152 lines
                    
1<?php
                    
2/* For licensing terms, see /license.txt */
                    
13$language_file[] = 'document';
                    
14require_once '../inc/global.inc.php';
                    
15
                    
18
                    
19$noPHP_SELF = true;
                    
20$header_file = Security::remove_XSS($_GET['file']);
                    
70header('Expires: Wed, 01 Jan 1990 00:00:00 GMT');
                    
71//header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
                    
72header('Last-Modified: Wed, 01 Jan 2100 00:00:00 GMT');
                    
                
api_alipay.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 296 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: api_alipay.php 30091 2012-05-10 03:26:33Z zhengqingpeng $
                    
8 */
                    
29
                    
30	$orderid = dgmdate(TIMESTAMP, 'YmdHis').random(18);
                    
31
                    
36		'partner' 		=> DISCUZ_PARTNER,
                    
37		'notify_url' 		=> $_G['siteurl'].'api/trade/notify_credit.php',
                    
38		'return_url' 		=> $_G['siteurl'].'api/trade/notify_credit.php',
                    
61
                    
62	$orderid = dgmdate(TIMESTAMP, 'YmdHis').random(18);
                    
63
                    
68		'partner' 		=> DISCUZ_PARTNER,
                    
69		'notify_url' 		=> $_G['siteurl'].'api/trade/notify_invite.php',
                    
70		'return_url' 		=> $_G['siteurl'].'api/trade/notify_invite.php',
                    
                
notes.php https://gitlab.com/Gashler/sg | PHP | 184 lines
                    
1<?php
                    
2/**
                    
11
                    
12if ( !defined( 'JETPACK_NOTES__CACHE_BUSTER' ) ) define( 'JETPACK_NOTES__CACHE_BUSTER', JETPACK__VERSION . '-' . gmdate( 'oW' ) );
                    
13
                    
173	var wpNotesIsJetpackClient = true;
                    
174<?php if ( $link_accounts_url ) : ?>
                    
175	var wpNotesLinkAccountsURL = '<?php print $link_accounts_url; ?>';
                    
175	var wpNotesLinkAccountsURL = '<?php print $link_accounts_url; ?>';
                    
176<?php endif; ?>
                    
177/* ]]> */
                    
178</script>
                    
179<?php
                    
180	}
                    
                
PostObject.php https://gitlab.com/treighton/wpgit | PHP | 275 lines
                    
1<?php
                    
2/**
                    
125        $policy = array(
                    
126            'expiration' => gmdate(DateFormat::ISO8601_S3, $ttd),
                    
127            'conditions' => array(array('bucket' => $this->bucket))
                    
                
calendar.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 178 lines
                    
19<div class="calendar">
                    
20  <h2><?php echo clean(lang(sprintf('month %u', $month))); ?> <?php echo $year; ?></h2>
                    
21<?php
                    
62  $lastDayOfWeek = 8;
                    
63  $firstDayOfMonth = gmdate('w', $thisMonth);  // Sunday = 0, Monday = 1, ... Saturday = 6
                    
64  if ($firstDayOfMonth == 0) {
                    
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>
                    
                
network-simulator.php https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | PHP | 186 lines
                    
1<?php
                    
2require_once 'portabilityLayer.php';
                    
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));
                    
                
weblink.php https://github.com/ponlue/abktours.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: weblink.php 14401 2010-01-26 14:10:00Z louis $
                    
4 * @package		Joomla
                    
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
                    
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.
                    
212		// Create the timestamp for the date
                    
213		$row->date = gmdate('Y-m-d H:i:s');
                    
214
                    
                
post.php https://github.com/allysha/Loggix.git | PHP | 186 lines
                    
1<?php
                    
2/**
                    
14$pathToIndex = '../..';
                    
15require_once $pathToIndex . '/lib/Loggix/Module/Comment.php';
                    
16
                    
83    if ($checkRow > 1) {
                    
84        header('Location: ' . $pathToIndex . '/index.php?id=' . $referId . '#comments');
                    
85        exit;
                    
91    if ((!isset($_SERVER['HTTP_REFERER'])) &&
                    
92        (!stristr($_SERVER['HTTP_REFERER'], 'comment/post.php'))
                    
93       ) {
                    
93       ) {
                    
94        header('Location: ' . $pathToIndex . '/index.php?id=' . $referId . '#comments');
                    
95        exit;
                    
108       ) {
                    
109        header('Location: ' . $pathToIndex . '/index.php?id=' . $referId . '#comments');
                    
110    } else {
                    
                
members.inc.php https://github.com/AlexChien/EY_BBS.git | PHP | 259 lines
                    
1<?php
                    
2
                    
6
                    
7$Id: members.inc.php 16746 2008-11-17 07:59:46Z tiger $
                    
8*/
                    
24			if(!empty($clearavatar)) {
                    
25				require_once DISCUZ_ROOT.'./uc_client/client.php';
                    
26				uc_user_deleteavatar($member['uid']);
                    
28
                    
29			require_once DISCUZ_ROOT.'./include/discuzcode.func.php';
                    
30
                    
60
                    
61		require_once DISCUZ_ROOT.'./include/editor.func.php';
                    
62		$bio = explode("\t\t\t", $member['bio']);
                    
126
                    
127	require_once DISCUZ_ROOT.'./include/misc.func.php';
                    
128
                    
                
global.func.php https://github.com/gcao/bbs.git | PHP | 216 lines
                    
1<?php
                    
2
                    
6
                    
7	$Id: global.func.php 18537 2009-06-11 01:36:49Z monkey $
                    
8*/
                    
18	header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
                    
19	header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
                    
20	header("Cache-Control: no-cache, must-revalidate");
                    
34	global $discuz_uid, $discuz_user, $lang, $action, $settings, $timestamp, $timeoffset, $wapdateformat, $timeformat;
                    
35	echo 	"<p>".gmdate("$wapdateformat $timeformat", $timestamp + ($timeoffset * 3600))."<br />".
                    
36		($action != 'home' ? "<anchor title=\"confirm\"><prev/>$lang[return]</anchor> <a href=\"index.php\">$lang[home_page]</a><br />" : '').
                    
36		($action != 'home' ? "<anchor title=\"confirm\"><prev/>$lang[return]</anchor> <a href=\"index.php\">$lang[home_page]</a><br />" : '').
                    
37		($discuz_uid ? "<a href=\"index.php?action=login&amp;logout=yes&amp;formhash=".FORMHASH."\">$discuz_user:$lang[logout]</a>" : "<a href=\"index.php?action=login\">$lang[login]</a> <a href=\"index.php?action=register\">$lang[register]</a>")."<br /><br />\n".
                    
38		"<small>Powered by Discuz!</small></p>\n".
                    
                
Sqs.php https://github.com/rgranadino/magento-mirror.git | PHP | 465 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Sqs.php 22984 2010-09-21 02:52:48Z matthew $
                    
21 */
                    
25 */
                    
26#require_once 'Zend/Service/Amazon/Abstract.php';
                    
27
                    
30 */
                    
31#require_once 'Zend/Crypt/Hmac.php';
                    
32
                    
118                } else {
                    
119                    #require_once 'Zend/Service/Amazon/Sqs/Exception.php';
                    
120                    throw new Zend_Service_Amazon_Sqs_Exception($result->Error->Code);
                    
144        if ($result->Error->Code !== null) {
                    
145            #require_once 'Zend/Service/Amazon/Sqs/Exception.php';
                    
146            throw new Zend_Service_Amazon_Sqs_Exception($result->Error->Code);
                    
                
SetCookie.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 410 lines
                    
1<?php
                    
2
                    
93                if ($k == 'Expires') {
                    
94                    $str .= 'Expires=' . gmdate('D, d M Y H:i:s \G\M\T', $v) . '; ';
                    
95                } else {
                    
                
UtilTest.php https://bitbucket.org/caasjj/dnr.git | PHP | 388 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Slim - a micro PHP 5 framework
                    
4 *
                    
32
                    
33class SlimHttpUtilTest extends PHPUnit_Framework_TestCase
                    
34{
                    
238        $expires = '2 days';
                    
239        $expiresFormat = gmdate('D, d-M-Y H:i:s e', strtotime($expires));
                    
240        $header = array();
                    
256        $expires = strtotime('2 days');
                    
257        $expiresFormat = gmdate('D, d-M-Y H:i:s e', $expires);
                    
258        $header = array();
                    
291        $expires = strtotime('2 days');
                    
292        $expiresFormat = gmdate('D, d-M-Y H:i:s e', $expires);
                    
293        $secure = true;
                    
                
shBrushPhp.js git://github.com/antono/sh2.git | JavaScript | 62 lines
                    
1SyntaxHighlighter.brushes.Php = function()
                    
2{
                    
25					'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
                    
26					'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
                    
27					'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
                    
57
                    
58	this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
                    
59};
                    
61SyntaxHighlighter.brushes.Php.prototype	= new SyntaxHighlighter.Highlighter();
                    
62SyntaxHighlighter.brushes.Php.aliases	= ['php'];
                    
63
                    
                
class.bertasecurity.php https://github.com/raphaelbastide/berta.git | PHP | 230 lines
                    
1<?php
                    
2
                    
217			header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); 
                    
218			header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); 
                    
219			header("Cache-Control: no-store, no-cache, must-revalidate"); 
                    
                
Model.php git://github.com/forkcms/forkcms.git | PHP | 349 lines
                    
1<?php
                    
2
                    
203        if ($timestamp === null) {
                    
204            return gmdate($format);
                    
205        }
                    
206
                    
207        return gmdate($format, $timestamp);
                    
208    }
                    
227
                    
228        $year = gmdate('Y', $date->getTimestamp());
                    
229        $month = gmdate('m', $date->getTimestamp());
                    
229        $month = gmdate('m', $date->getTimestamp());
                    
230        $day = gmdate('j', $date->getTimestamp());
                    
231        $hour = 0;
                    
                
messagequeue.php https://github.com/mozilla/byob.git | PHP | 453 lines
                    
1<?php
                    
2/**
                    
235            'owner'         => $owner,
                    
236            'created'       => gmdate('c'),
                    
237            'modified'      => gmdate('c'),
                    
266            // priority and FIFO.
                    
267            $now = gmdate('c');
                    
268            $msg = $this->db->query("
                    
294                // Update the timestamp to reserve the message.
                    
295                $msg['reserved_at'] = gmdate('c');
                    
296                $this->db->update(
                    
298                    array(
                    
299                        'modified'    => gmdate('c'),
                    
300                        'reserved_at' => $msg['reserved_at']
                    
335            array(
                    
336                'modified'    => gmdate('c'),
                    
337                'finished_at' => gmdate('c')
                    
                
SignatureV4.php https://github.com/ocStore/ocStore.git | PHP | 424 lines
                    
1<?php
                    
2namespace Aws\Signature;
                    
86    ) {
                    
87        $ldt = gmdate(self::ISO8601_BASIC);
                    
88        $sdt = substr($ldt, 0, 8);
                    
160        $payload = $this->getPresignedPayload($request);
                    
161        $httpDate = gmdate(self::ISO8601_BASIC, $startTimestamp);
                    
162        $shortDate = substr($httpDate, 0, 8);
                    
169        $parsed['query']['X-Amz-Credential'] = $credential;
                    
170        $parsed['query']['X-Amz-Date'] = gmdate('Ymd\THis\Z', $startTimestamp);
                    
171        $parsed['query']['X-Amz-SignedHeaders'] = implode(';', $this->getPresignHeaders($parsed['headers']));
                    
                
DefaultRevalidationTest.php https://gitlab.com/x33n/respond | PHP | 246 lines
                    
1<?php
                    
2
                    
26    {
                    
27        return gmdate(ClientInterface::HTTP_DATE, strtotime($time));
                    
28    }
                    
170        $client = new Client($this->getServer()->getUrl());
                    
171        $lm = gmdate('c', time() - 60);
                    
172        $mock = new MockPlugin(array(
                    
192    {
                    
193        $lm = gmdate('c', time() - 60);
                    
194        $mock = new MockPlugin(array(
                    
                
mass_email_script.php https://github.com/matszpk/native-boinc-for-android.git | PHP | 329 lines
                    
1#! /usr/bin/env php
                    
2
                    
2
                    
3<?php
                    
4// This file is part of BOINC.
                    
38//
                    
39// see http://boinc.berkeley.edu/mass_email.php for info
                    
40
                    
75        echo "unrecognized option $argv[$i]\n";
                    
76        echo "usage: mass_email_script.php [--userid N] [--show_mail] [--explain] [--send]\n";
                    
77        exit (1);
                    
168        $user->name,
                    
169        gmdate('d F Y', $user->create_time),
                    
170        number_format($user->total_credit, 0),
                    
305
                    
306if (!$USE_PHPMAILER) {
                    
307    echo "You must use PHPMailer.\n";
                    
                
class-ms-gateway-stripe-api.php https://gitlab.com/najomie/fit-hippie | PHP | 444 lines
                    
1<?php
                    
2/**
                    
43		if ( ! $Stripe_Loaded ) {
                    
44			require_once MS_Plugin::instance()->dir . '/lib/stripe-php/lib/Stripe.php';
                    
45
                    
167				'card_exp',
                    
168				gmdate( 'Y-m-d', strtotime( "{$card->exp_year}-{$card->exp_month}-01" ) )
                    
169			);
                    
                
SignatureV4.php https://gitlab.com/github-cloud-corp/aws-sdk-php | PHP | 339 lines
                    
1<?php
                    
2namespace Aws\Signature;
                    
37    ) {
                    
38        $ldt = gmdate(self::ISO8601_BASIC);
                    
39        $sdt = substr($ldt, 0, 8);
                    
73        $payload = $this->getPresignedPayload($request);
                    
74        $httpDate = gmdate(self::ISO8601_BASIC, time());
                    
75        $shortDate = substr($httpDate, 0, 8);
                    
79        $parsed['query']['X-Amz-Credential'] = $credential;
                    
80        $parsed['query']['X-Amz-Date'] = gmdate('Ymd\THis\Z', time());
                    
81        $parsed['query']['X-Amz-SignedHeaders'] = 'host';
                    
                
reports-performance-indicators.php https://github.com/woothemes/woocommerce.git | PHP | 335 lines
                    
1<?php
                    
2/**
                    
98			array(
                    
99				'before' => gmdate( 'Y-m-d 23:59:59', $time ),
                    
100				'after'  => gmdate( 'Y-m-d H:00:00', $time - ( 7 * DAY_IN_SECONDS ) ),
                    
139			array(
                    
140				'before' => gmdate( 'Y-m-d 23:59:59', $time ),
                    
141				'after'  => gmdate( 'Y-m-d H:00:00', $time - ( 7 * DAY_IN_SECONDS ) ),
                    
311				array(
                    
312					gmdate( 'Y-m-d' ),
                    
313					10,
                    
                
grade_export_txt.php https://github.com/kpike/moodle.git | PHP | 120 lines
                    
1<?php
                    
2
                    
17
                    
18require_once($CFG->dirroot.'/grade/export/lib.php');
                    
19
                    
60            @header('Cache-Control: max-age=10');
                    
61            @header('Expires: '. gmdate('D, d M Y H:i:s', 0) .' GMT');
                    
62            @header('Pragma: ');
                    
64            @header('Cache-Control: private, must-revalidate, pre-check=0, post-check=0, max-age=0');
                    
65            @header('Expires: '. gmdate('D, d M Y H:i:s', 0) .' GMT');
                    
66            @header('Pragma: no-cache');
                    
                
module.php https://gitlab.com/campus-academy/krowkaramel | PHP | 355 lines
                    
1<?php
                    
2namespace Elementor\Modules\System_Info;
                    
158		<div id="elementor-system-info">
                    
159			<h3 class="wp-heading-inline"><?php echo esc_html__( 'System Info', 'elementor' ); ?></h3>
                    
160			<div><?php $this->print_report( $reports, 'html' ); ?></div>
                    
160			<div><?php $this->print_report( $reports, 'html' ); ?></div>
                    
161			<h3><?php echo esc_html__( 'Copy & Paste Info', 'elementor' ); ?></h3>
                    
162			<div id="elementor-system-info-raw">
                    
162			<div id="elementor-system-info-raw">
                    
163				<label id="elementor-system-info-raw-code-label" for="elementor-system-info-raw-code"><?php echo esc_html__( 'You can copy the below info as simple text with Ctrl+C / Ctrl+V:', 'elementor' ); ?></label>
                    
164				<textarea id="elementor-system-info-raw-code" readonly>
                    
164				<textarea id="elementor-system-info-raw-code" readonly>
                    
165					<?php
                    
166						$this->print_report( $reports, 'raw' );
                    
178			<hr>
                    
179			<form action="<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>" method="post">
                    
180				<input type="hidden" name="action" value="elementor_system_info_download_file">
                    
                
type_date.php https://github.com/VSEphpbb/phpbb.git | PHP | 374 lines
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
13
                    
14namespace phpbb\profilefields\type;
                    
15
                    
19	* Request object
                    
20	* @var \phpbb\request\request
                    
21	*/
                    
31	* User object
                    
32	* @var \phpbb\user
                    
33	*/
                    
42	*/
                    
43	public function __construct(\phpbb\request\request $request, \phpbb\template\template $template, \phpbb\user $user)
                    
44	{
                    
                
header.php https://github.com/karpenoktem/punbb.git | PHP | 316 lines
                    
1<?php
                    
2/**
                    
16header('Expires: Thu, 21 Jul 1977 07:30:00 GMT');	// When yours truly first set eyes on this world! :)
                    
17header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
                    
18header('Cache-Control: post-check=0, pre-check=0', false);
                    
118// Include stylesheets
                    
119require FORUM_ROOT.'style/'.$forum_user['style'].'/'.$forum_user['style'].'.php';
                    
120
                    
                
pkg.php https://gitlab.com/VxMxPx/mysli | PHP | 171 lines
                    
1<?php namespace sys;
                    
2
                    
163    $packages = self::enabled();
                    
164    $nowdata = gmdate('c');
                    
165    foreach ($packages as $pkg) {
                    
                
Versions.php https://bitbucket.org/jonphipps/elefant-vocabhub.git | PHP | 195 lines
                    
1<?php
                    
2
                    
31 *
                    
32 *     <?php
                    
33 *     
                    
82			'user' => (! User::$user) ? 0 : User::val ('id'),
                    
83			'ts' => gmdate ('Y-m-d H:i:s'),
                    
84			'serialized' => json_encode ($obj->data)
                    
                
statistiquesBB.html https://bitbucket.org/pombredanne/spip-zone-treemap.git | HTML | 137 lines
                    
29<!-- Lien vers le backend pour navigateurs eclaires -->
                    
30<link rel="alternate" type="application/rss+xml" title="<:syndiquer_site:>" href="spip.php?page=backend">
                    
31
                    
35<?php 
                    
36 require("bbclone/var/access.php");
                    
37 $totalvisits   = $access["stat"]["totalvisits"];
                    
57<p class="nav"><a href="#URL_RUBRIQUE">[(#TITRE|supprimer_numero)]</a></p>
                    
58<p style="float:right;margin-bottom: 1em; padding-top:10px ; margin-right:10px"><a href="spip.php?page=nouveaux_messages&amp;id_rubrique=#ID_RUBRIQUE"><:phpbb:voir_messages:></a></p>
                    
59
                    
74			<tr class="salon">
                    
75				<td colspan="2" class="salontitre" style="text-align:center"> <?php echo $totalcount ; ?> </td>
                    
76				<td class="salonreste" style="text-align:center"><?php echo $visitorstoday ?></td>
                    
123	</div>
                    
124	<?php }else{?><div style="text-align:center;margin:10px"><a href="http://www.bbclone.de">BBclone</a></div> <?php } ?>
                    
125	<!-- END switch_user_logged_out -->
                    
                
AlfrescoWebService.php https://github.com/pauln/moodle.git | PHP | 111 lines
                    
1<?php
                    
2
                    
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")));
                    
                
cache_html.php https://github.com/enigma1/i-metrics-cms.git | PHP | 293 lines
                    
1<?php
                    
2/*
                    
53      }
                    
54      $gmt_time = gmdate('D, d M Y H:i:s', $newtime).' GMT';
                    
55      return $gmt_time;
                    
                
ImageController.php https://gitlab.com/billyprice1/MFAdmin | PHP | 148 lines
                    
1<?php namespace App\Http\Controllers;
                    
2
                    
101				$etag = md5($file_modified_time . $image_data['path']);
                    
102				$time = gmdate('r', $file_modified_time);
                    
103				$expires = gmdate('r', $file_modified_time + $lifetime);
                    
                
options-general.php https://github.com/socialplanning/opencore-wordpress-mu.git | PHP | 114 lines
                    
37<br />
                    
38<p><?php _e('This address is used only for admin purposes.') ?> <?php _e('If you change this we will send you an email at your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>') ?></p>
                    
39</td> 
                    
75<td><input name="gmt_offset" type="text" id="gmt_offset" size="2" value="<?php form_option('gmt_offset'); ?>" /> 
                    
76<?php _e('hours') ?> (<?php _e('Your timezone offset, for example <code>-6</code> for Central Time.'); ?>)</td>
                    
77</tr>
                    
80<td><input name="date_format" type="text" id="date_format" size="30" value="<?php form_option('date_format'); ?>" /><br />
                    
81<?php _e('Output:') ?> <strong><?php echo mysql2date(get_option('date_format'), current_time('mysql')); ?></strong></td>
                    
82</tr>
                    
85<td><input name="time_format" type="text" id="time_format" size="30" value="<?php form_option('time_format'); ?>" /><br />
                    
86<?php _e('Output:') ?> <strong><?php echo gmdate(get_option('time_format'), current_time('timestamp')); ?></strong></td>
                    
87</tr> 
                    
113
                    
114<?php include('./admin-footer.php') ?>
                    
115
                    
                
Sajax.php https://github.com/Shigaru/shigaru.git | PHP | 1476 lines
                    
1<?php 
                    
2
                    
413
                    
414			header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
                    
415
                    
585
                    
586		var sajax_debug_mode = <?php echo $sajax_debug_mode ? "true" : "false"; ?>;
                    
587
                    
589
                    
590		var sajax_request_type = "<?php echo $t; ?>";
                    
591
                    
597
                    
598		var sajax_failure_redirect = "<?php echo $sajax_failure_redirect; ?>";
                    
599
                    
801
                    
802			<?php echo "uri = \"".sajax_get_my_uri()."\";"; ?>
                    
803
                    
                
cookies.php https://gitlab.com/x33n/platform | PHP | 380 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage WebTester
                    
6 *  @version    $Id: cookies.php 2011 2011-04-29 08:22:48Z pp11 $
                    
7 */
                    
11 */
                    
12require_once(dirname(__FILE__) . '/url.php');
                    
13/**#@-*/
                    
159        }
                    
160        return gmdate("D, d M Y H:i:s", $this->expiry) . " GMT";
                    
161    }
                    
                
search_blog.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 158 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: search_blog.php 29236 2012-03-30 05:34:47Z chenmengshu $
                    
8 */
                    
78				$value['subject'] = bat_highlight($value['subject'], $keyword);
                    
79				$value['dateline'] = dgmdate($value['dateline']);
                    
80				$value['pic'] = pic_cover_get($value['pic'], $value['picflag']);
                    
85		}
                    
86		$multipage = multi($index['num'], $_G['tpp'], $page, "search.php?mod=blog&searchid=$searchid&orderby=$orderby&ascdesc=$ascdesc&searchsubmit=yes");
                    
87
                    
87
                    
88		$url_forward = 'search.php?mod=blog&'.$_SERVER['QUERY_STRING'];
                    
89
                    
101			} elseif($_G['adminid'] != '1' && $index['flood']) {
                    
102				showmessage('search_ctrl', 'search.php?mod=blog', array('searchctrl' => $_G['setting']['search']['blog']['searchctrl']));
                    
103			}
                    
                
WindowsInstance.php https://github.com/Exercise/zf2.git | PHP | 193 lines
                    
1<?php
                    
2/**
                    
41 */
                    
42<<<<<<< HEAD:library/Zend/Service/Amazon/Ec2/Instance/Windows.php
                    
43class Zend_Service_Amazon_Ec2_Instance_Windows extends Zend_Service_Amazon_Ec2_AbstractService
                    
45class WindowsInstance extends AbstractEc2
                    
46>>>>>>> merges/farazdagi:library/Zend/Service/Amazon/Ec2/WindowsInstance.php
                    
47{
                    
173        $arrParams = array();
                    
174        $arrParams['expiration'] = gmdate("Y-m-d\TH:i:s.\\0\\0\\0\\Z", (time() + ($expireInMinutes * 60)));
                    
175        $arrParams['conditions'][] = array('bucket' => $bucketName);
                    
                
response.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 294 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: response.php 77 2010-10-21 06:55:09Z nikosdion $
                    
4 * @package		Joomla.Framework
                    
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
                    
11 * other free or open source software licenses.
                    
12 * See COPYRIGHT.php for copyright notices and details.
                    
13 *
                    
209				JResponse::setHeader( 'Expires', 'Mon, 1 Jan 2001 00:00:00 GMT', true ); 				// Expires in the past
                    
210				JResponse::setHeader( 'Last-Modified', gmdate("D, d M Y H:i:s") . ' GMT', true ); 		// Always modified
                    
211				JResponse::setHeader( 'Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0', false );
                    
                
php.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 131 lines
                    
23    atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),
                    
24    builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex 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"),
                    
25    multiLineStrings: true,
                    
54    var htmlMode = CodeMirror.getMode(config, "text/html");
                    
55    var phpMode = CodeMirror.getMode(config, phpConfig);
                    
56
                    
82        return style;
                    
83      } else if (isPHP && state.php.tokenize == null && stream.match("?>")) {
                    
84        state.curMode = htmlMode;
                    
103        var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
                    
104            php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur;
                    
105        if (state.curMode == htmlMode) cur = htmlNew;
                    
129  CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
                    
130  CodeMirror.defineMIME("text/x-php", phpConfig);
                    
131})();
                    
                
rss.php https://github.com/alx/pressmark.git | PHP | 202 lines
                    
1<?php
                    
2/**
                    
32
                    
33	function unhtmlentities($string) { // From php.net for < 4.3 compat
                    
34		$trans_tbl = get_html_translation_table(HTML_ENTITIES);
                    
41		echo '<p>'.__('Howdy! This importer allows you to extract posts from an RSS 2.0 file into your blog. This is useful if you want to import your posts from a system that is not handled by a custom import tool. Pick an RSS file to upload and click Import.').'</p>';
                    
42		wp_import_upload_form("admin.php?import=rss&amp;step=1");
                    
43		echo '</div>';
                    
76
                    
77			$post_date_gmt = gmdate('Y-m-d H:i:s', $post_date_gmt);
                    
78			$post_date = get_date_from_gmt( $post_date_gmt );
                    
                
Cookie.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 190 lines
                    
1<?php
                    
2
                    
43    {
                    
44        // from PHP source code
                    
45        if (preg_match("/[=,; \t\r\n\013\014]/", $name)) {
                    
82        if ('' === (string) $this->getValue()) {
                    
83            $str .= 'deleted; expires='.gmdate('D, d-M-Y H:i:s T', time() - 31536001);
                    
84        } else {
                    
87            if ($this->getExpiresTime() !== 0) {
                    
88                $str .= '; expires='.gmdate('D, d-M-Y H:i:s T', $this->getExpiresTime());
                    
89            }
                    
                
detail.php https://gitlab.com/hop23typhu/doan_tienganh | PHP | 122 lines
                    
30                    <td>Giới tính</td>
                    
31                    <td><b><?php if($detail->sex!=''){ if($detail->sex==1) echo"Nam";else echo "Nữ";} else echo "Trống"; ?></b></td>  
                    
32                </tr>
                    
54                    <td>
                    
55                    <b><?php if($detail->address!='') echo $detail->address; else echo "Trống"; ?></b>
                    
56                    </td>  
                    
60                    <td>
                    
61                     <b><?php
                    
62						if($detail->created!= '0000-00-00 00:00:00' && $detail->created!='' ) 
                    
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>  
                    
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>
                    
                
reporter.php https://github.com/Clansuite/Clansuite.git | PHP | 476 lines
                    
1<?php
                    
2/**
                    
11 */
                    
12require_once(dirname(__FILE__) . '/scorer.php');
                    
13//require_once(dirname(__FILE__) . '/arguments.php');
                    
68            header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
                    
69            header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
                    
70            header("Cache-Control: no-store, no-cache, must-revalidate");
                    
126    /**
                    
127     *    Paints a PHP error.
                    
128     *    @param string $message        Message is ignored.
                    
141    /**
                    
142     *    Paints a PHP exception.
                    
143     *    @param Exception $exception        Exception to display.
                    
267    /**
                    
268     *    Paints a PHP error or exception.
                    
269     *    @param string $message        Message to be shown.
                    
                
log.php https://gitlab.com/VTTE/sitios-vtte | PHP | 388 lines
                    
1<?php
                    
2
                    
110
                    
111		$stdout = fopen( 'php://output', 'w' );
                    
112
                    
241
                    
242		$stdout = fopen( 'php://output', 'w' );
                    
243
                    
294				'created' => date_i18n( get_option( 'date_format' ), $item->created ),
                    
295				'created_time' => gmdate( get_option( 'time_format' ), $item->created ),
                    
296				'url' => $item->url,
                    
                
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
                    
7require_once(dirname(__FILE__) . "/../../init.php");
                    
8
                    
15$offset = 60 * 60 * 24 * 3;
                    
16$ExpStr = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT";
                    
17header($ExpStr);
                    
                
page.class.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 384 lines
                    
1<?php
                    
2/**
                    
5 * Each extension has a theme with a specific name -- eg. the extension Setup
                    
6 * which is stored in ext/setup/main.php will have a theme called SetupTheme
                    
7 * stored in ext/setup/theme.php. If you want to customise it, create a class
                    
7 * stored in ext/setup/theme.php. If you want to customise it, create a class
                    
8 * in the file themes/mytheme/setup.theme.php called CustomSetupTheme which
                    
9 * extends SetupTheme and overrides some of its methods.
                    
21 * make_link() function, which will take a path like "post/list" and turn it
                    
22 * into a full and correct link, eg /myboard/post/list, /foo/index.php?q=post/list,
                    
23 * etc depending on how things are set up. This should always be used to link
                    
193	/**
                    
194	 * The counterpart for get_cookie, this works like php's
                    
195	 * setcookie method, but prepends the site-wide cookie prefix to
                    
279						header("Cache-control: public, max-age=600");
                    
280						header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 600) . ' GMT');
                    
281					}
                    
                
yui_combo.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 288 lines
                    
30
                    
31// we need just the values from config.php and minlib.php
                    
32define('ABORT_AFTER_CONFIG', true);
                    
32define('ABORT_AFTER_CONFIG', true);
                    
33require('../config.php'); // this stops immediately at the beginning of lib/setup.php
                    
34
                    
60    header('HTTP/1.1 304 Not Modified');
                    
61    header('Expires: '. gmdate('D, d M Y H:i:s', time() + $lifetime) .' GMT');
                    
62    header('Cache-Control: public, max-age='.$lifetime);
                    
94            define('NO_MOODLE_COOKIES', true);
                    
95            require($CFG->libdir.'/setup.php');
                    
96        }
                    
178            // search for all images in yui2 CSS and serve them through the yui_image.php script
                    
179            $filecontent = preg_replace('/([a-z0-9_-]+)\.(png|gif)/', $relroot.'/theme/yui_image.php'.$sep.$CFG->yui2version.'/$1.$2', $filecontent);
                    
180
                    
                
CakeHtmlReporter.php https://github.com/bellthoven/cakephp.git | PHP | 350 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://cakephp.org CakePHP(tm) Project
                    
15 * @since         CakePHP(tm) v 1.2.0.4433
                    
15 * @since         CakePHP(tm) v 1.2.0.4433
                    
16 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
17 */
                    
109			header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
                    
110			header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
                    
111			header("Cache-Control: no-store, no-cache, must-revalidate");
                    
120 *
                    
121 * @param PHPUnit_Framework_TestResult $result Result object
                    
122 * @return void
                    
                
bookmark-template.php https://gitlab.com/VTTE/sitios-vtte | PHP | 324 lines
                    
1<?php
                    
2/**
                    
90					__( 'Last updated: %s' ),
                    
91					gmdate(
                    
92						get_option( 'links_updated_date_format' ),
                    
                
ResponseTest.php https://github.com/brtriver/sukonv.git | PHP | 169 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2010, Union of RAD (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
                    
7 */
                    
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()),
                    
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()),
                    
                
ref.datetime.html https://bitbucket.org/thncr/manuals.git | HTML | 366 lines
                    
11 <div class="up"><a href="book.datetime.html">Date/Time</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="ref.datetime" class="reference">
                    
358
                    
359<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="function.checkdate.html">checkdate</a> — 验证一个格里高里日期</li><li><a href="function.date-add.html">date_add</a> — 别名 DateTime::add</li><li><a href="function.date-create-from-format.html">date_create_from_format</a> — 别名 DateTime::createFromFormat</li><li><a href="function.date-create.html">date_create</a> — 别名 DateTime::__construct</li><li><a href="function.date-date-set.html">date_date_set</a> — 别名 DateTime::setDate</li><li><a href="function.date-default-timezone-get.html">date_default_timezone_get</a> — 取得一个脚本中所有日期时间函数所使用的默认时区</li><li><a href="function.date-default-timezone-set.html">date_default_timezone_set</a> — 设定用于一个脚本中所有日期时间函数的默认时区</li><li><a href="function.date-diff.html">date_diff</a> — 别名 DateTime::diff</li><li><a href="function.date-format.html">date_format</a> — 别名 DateTime::format</li><li><a href="function.date-get-last-errors.html">date_get_last_errors</a> — 别名 DateTime::getLastErrors</li><li><a href="function.date-interval-create-from-date-string.html">date_interval_create_from_date_string</a> — 别名 DateInterval::createFromDateString</li><li><a href="function.date-interval-format.html">date_interval_format</a> — 别名 DateInterval::format</li><li><a href="function.date-isodate-set.html">date_isodate_set</a> — 别名 DateTime::setISODate</li><li><a href="function.date-modify.html">date_modify</a> — 别名 DateTime::modify</li><li><a href="function.date-offset-get.html">date_offset_get</a> — 别名 DateTime::getOffset</li><li><a href="function.date-parse-from-format.html">date_parse_from_format</a> — Get info about given date formatted according to the specified format</li><li><a href="function.date-parse.html">date_parse</a> — Returns associative array with detailed info about given date</li><li><a href="function.date-sub.html">date_sub</a> — 别名 DateTime::sub</li><li><a href="function.date-sun-info.html">date_sun_info</a> — Returns an array with information about sunset/sunrise and twilight begin/end</li><li><a href="function.date-sunrise.html">date_sunrise</a> — 返回给定的日期与地点的日出时间</li><li><a href="function.date-sunset.html">date_sunset</a> — 返回给定的日期与地点的日落时间</li><li><a href="function.date-time-set.html">date_time_set</a> — 别名 DateTime::setTime</li><li><a href="function.date-timestamp-get.html">date_timestamp_get</a> — 别名 DateTime::getTimestamp</li><li><a href="function.date-timestamp-set.html">date_timestamp_set</a> — 别名 DateTime::setTimestamp</li><li><a href="function.date-timezone-get.html">date_timezone_get</a> — 别名 DateTime::getTimezone</li><li><a href="function.date-timezone-set.html">date_timezone_set</a> — 别名 DateTime::setTimezone</li><li><a href="function.date.html">date</a> — 格式化一个本地时间/日期</li><li><a href="function.getdate.html">getdate</a> — 取得日期/时间信息</li><li><a href="function.gettimeofday.html">gettimeofday</a> — 取得当前时间</li><li><a href="function.gmdate.html">gmdate</a> — 格式化一个 GMT/UTC 日期/时间</li><li><a href="function.gmmktime.html">gmmktime</a> — 取得 GMT 日期的 UNIX 时间戳</li><li><a href="function.gmstrftime.html">gmstrftime</a> — 根据区域设置格式化 GMT/UTC 时间/日期</li><li><a href="function.idate.html">idate</a> — 将本地时间日期格式化为整数</li><li><a href="function.localtime.html">localtime</a> — 取得本地时间</li><li><a href="function.microtime.html">microtime</a> — 返回当前 Unix 时间戳和微秒数</li><li><a href="function.mktime.html">mktime</a> — 取得一个日期的 Unix 时间戳</li><li><a href="function.strftime.html">strftime</a> — 根据区域设置格式化本地时间/日期</li><li><a href="function.strptime.html">strptime</a> — 解析由 strftime 生成的日期/时间</li><li><a href="function.strtotime.html">strtotime</a> — 将任何英文文本的日期时间描述解析为 Unix 时间戳</li><li><a href="function.time.html">time</a> — 返回当前的 Unix 时间戳</li><li><a href="function.timezone-abbreviations-list.html">timezone_abbreviations_list</a> — 别名 DateTimeZone::listAbbreviations</li><li><a href="function.timezone-identifiers-list.html">timezone_identifiers_list</a> — 别名 DateTimeZone::listIdentifiers</li><li><a href="function.timezone-location-get.html">timezone_location_get</a> — 别名 DateTimeZone::getLocation</li><li><a href="function.timezone-name-from-abbr.html">timezone_name_from_abbr</a> — Returns the timezone name from abbreviation</li><li><a href="function.timezone-name-get.html">timezone_name_get</a> — 别名 DateTimeZone::getName</li><li><a href="function.timezone-offset-get.html">timezone_offset_get</a> — 别名 DateTimeZone::getOffset</li><li><a href="function.timezone-open.html">timezone_open</a> — 别名 DateTimeZone::__construct</li><li><a href="function.timezone-transitions-get.html">timezone_transitions_get</a> — 别名 DateTimeZone::getTransitions</li><li><a href="function.timezone-version-get.html">timezone_version_get</a> — Gets the version of the timezonedb</li></ul>
                    
360</div>
                    
364 <div class="up"><a href="book.datetime.html">Date/Time</a></div>
                    
365 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
366</div></body></html>
                    
                
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 */
                    
49		if ($this->getParentWriter()->getUseDiskCaching()) {
                    
50			$objWriter = new PHPPowerPoint_Shared_XMLWriter(PHPPowerPoint_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());
                    
51		} else {
                    
51		} else {
                    
52			$objWriter = new PHPPowerPoint_Shared_XMLWriter(PHPPowerPoint_Shared_XMLWriter::STORAGE_MEMORY);
                    
53		}
                    
78				// dc:date
                    
79				$objWriter->writeElement('dc:date', gmdate('Y-m-d\TH:i:s.000' ,$pPHPPowerPoint->getProperties()->getModified()));
                    
80				// dc:description
                    
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
                    
                
SharedKey.php https://gitlab.com/fabiorf/curso-zend1-aula1 | PHP | 173 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: SharedKey.php 24593 2012-01-05 20:35:02Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php';
                    
26
                    
78		if ($forTableStorage) {
                    
79			require_once 'Zend/Service/WindowsAzure/Credentials/Exception.php';
                    
80			throw new Zend_Service_WindowsAzure_Credentials_Exception('The Windows Azure SDK for PHP does not support SharedKey authentication on table storage. Use SharedKeyLite authentication instead.');
                    
98		} else {
                    
99		    $requestDate = gmdate('D, d M Y H:i:s', time()) . ' GMT'; // RFC 1123
                    
100		    $canonicalizedHeaders[] = Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PREFIX_STORAGE_HEADER . 'date:' . $requestDate;
                    
                
function_misc.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 509 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: function_misc.php 30988 2012-07-06 02:24:35Z chenmengshu $
                    
8 */
                    
245	}
                    
246	$thread['dateline'] = dgmdate($thread['dateline'], $timeformat);
                    
247	$thread['lastpost'] = dgmdate($thread['lastpost'], 'u');
                    
265			if(!in_array('forum_viewthread', $_G['setting']['rewritestatus'])) {
                    
266				$pagelinks .= '<a href="forum.php?mod=viewthread&tid='.$thread['tid'].'&page='.$i.($_GET['from'] ? '&from='.$_GET['from'] : '').'" target="_blank">'.$i.'</a> ';
                    
267			} else {
                    
275			if(!in_array('forum_viewthread', $_G['setting']['rewritestatus'])) {
                    
276				$pagelinks .= ' .. <a href="forum.php?mod=viewthread&tid='.$thread['tid'].'&page='.$topicpages.'" target="_blank">'.$topicpages.'</a> ';
                    
277			} else {
                    
                
mssql_extractor.php https://bitbucket.org/cmwdosp/cmwbb3.git | PHP | 415 lines
                    
1<?php
                    
2/**
                    
3*
                    
4* This file is part of the phpBB Forum Software package.
                    
5*
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
13
                    
14namespace phpbb\db\extractor;
                    
15
                    
15
                    
16use phpbb\db\extractor\exception\extractor_not_initialized_exception;
                    
17
                    
23	* @return null
                    
24	* @throws \phpbb\db\extractor\exception\extractor_not_initialized_exception when calling this function before init_extractor()
                    
25	*/
                    
                
cli.php https://github.com/ot2sen/Molajo.git | PHP | 258 lines
                    
1<?php
                    
2/**
                    
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());
                    
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
                    
241		// Set the configuration file name.
                    
242		$file = JPATH_BASE.'/configuration.php';
                    
243
                    
                
function_mail.php https://github.com/bluelovers/Discuz.git | PHP | 231 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: function_mail.php 8214 2010-04-19 06:00:47Z wangjinbo $
                    
8 */
                    
137
                    
138		$headers .= 'Message-ID: <'.gmdate('YmdHs').'.'.substr(md5($email_message.microtime()), 0, 6).rand(100000, 999999).'@'.$_SERVER['HTTP_HOST'].">{$maildelimiter}";
                    
139
                    
139
                    
140		fputs($fp, "Date: ".gmdate('r')."\r\n");
                    
141		fputs($fp, "To: ".$email_to."\r\n");
                    
                
existing-backups-table.php https://gitlab.com/code26/selah | PHP | 140 lines
                    
22	<tbody>
                    
23		<?php
                    
24
                    
55			?>
                    
56			<tr class="updraft_existing_backups_row updraft_existing_backups_row_<?php echo $key;?>" data-key="<?php echo $key;?>" data-nonce="<?php echo $nonce;?>">
                    
57
                    
57
                    
58				<td class="updraft_existingbackup_date " data-rawbackup="<?php echo $rawbackup;?>">
                    
59					<div class="backup_date_label">
                    
59					<div class="backup_date_label">
                    
60						<?php echo $date_label;?>
                    
61						<?php
                    
71									?>
                    
72									<img class="stored_icon" src="<?php echo esc_attr($image_url);?>" title="<?php echo esc_attr(sprintf(__('Stored at: %s', 'updraftplus'), $remote_storage));?>">
                    
73									<?php
                    
                
mp3act_sajax.php https://github.com/fracmak/mythweb.git | PHP | 361 lines
                    
1<?php
                    
2if (!isset($SAJAX_INCLUDED)) {
                    
96            header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");    // Date in the past
                    
97            header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
                    
98            // always modified
                    
139        // (c) copyright 2005 modernmethod, inc
                    
140        var sajax_debug_mode = <?php echo $sajax_debug_mode ? "true" : "false"; ?>;
                    
141        var sajax_request_type = "<?php echo $t; ?>";
                    
142        var sajax_target_id = "";
                    
143        var sajax_failure_redirect = "<?php echo $sajax_failure_redirect; ?>";
                    
144
                    
193
                    
194            uri = "<?php echo $sajax_remote_uri; ?>";
                    
195            if (sajax_request_type == "GET") {
                    
285
                    
286        <?php
                    
287        $html = ob_get_contents();
                    
                
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
                    
                
refresh.php https://github.com/nadavkav/MoodleTAO.git | PHP | 115 lines
                    
1<?php // $Id$
                    
2
                    
2
                    
3    require('../config.php');
                    
4
                    
26    header('Expires: Sun, 28 Dec 1997 09:32:45 GMT');
                    
27    header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
                    
28    header('Cache-Control: no-cache, must-revalidate');
                    
106  function redirect() {
                    
107    document.location.replace('refresh.php?id=<?php echo $userid ?>&name=<?php echo urlencode($userfullname) ?>&wait=<?php echo $wait ?>');
                    
108  }
                    
109
                    
110  setTimeout("redirect()", <?php echo ($wait*1000) ?>);
                    
111-->
                    
                
PublicAction.class.php http://thinkphp.googlecode.com/svn/trunk/ | PHP | 231 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
79        $info = array(
                    
80            '????'=>PHP_OS,
                    
81            '????'=>$_SERVER["SERVER_SOFTWARE"],
                    
81            '????'=>$_SERVER["SERVER_SOFTWARE"],
                    
82            'PHP????'=>php_sapi_name(),
                    
83            'ThinkPHP??'=>THINK_VERSION.' [ <a href="http://thinkphp.cn" target="_blank">??????</a> ]',
                    
86            '?????'=>date("Y?n?j? H:i:s"),
                    
87            '????'=>gmdate("Y?n?j? H:i:s",time()+8*3600),
                    
88            '?????/IP'=>$_SERVER['SERVER_NAME'].' [ '.gethostbyname($_SERVER['SERVER_NAME']).' ]',
                    
                
wc-rest-functions.php https://gitlab.com/campus-academy/krowkaramel | PHP | 364 lines
                    
1<?php
                    
2/**
                    
37	// Get timestamp before changing timezone to UTC.
                    
38	return gmdate( 'Y-m-d\TH:i:s', $utc ? $date->getTimestamp() : $date->getOffsetTimestamp() );
                    
39}
                    
81	if ( ! function_exists( 'download_url' ) ) {
                    
82		include_once ABSPATH . 'wp-admin/includes/file.php';
                    
83	}
                    
138	if ( ! function_exists( 'wp_generate_attachment_metadata' ) ) {
                    
139		include_once ABSPATH . 'wp-admin/includes/image.php';
                    
140	}
                    
                
Sqs.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 465 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26// require_once 'Zend/Service/Amazon/Abstract.php';
                    
27
                    
30 */
                    
31// require_once 'Zend/Crypt/Hmac.php';
                    
32
                    
118                } else {
                    
119                    // require_once 'Zend/Service/Amazon/Sqs/Exception.php';
                    
120                    throw new Zend_Service_Amazon_Sqs_Exception($result->Error->Code);
                    
144        if ($result->Error->Code !== null) {
                    
145            // require_once 'Zend/Service/Amazon/Sqs/Exception.php';
                    
146            throw new Zend_Service_Amazon_Sqs_Exception($result->Error->Code);
                    
162        if (isset($result->Error)) {
                    
163            // require_once 'Zend/Service/Amazon/Sqs/Exception.php';
                    
164            throw new Zend_Service_Amazon_Sqs_Exception($result->Error->Code);
                    
                
ajax.php https://github.com/vyrus/remote-edu.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
13 * Dual licensed under the MIT and GPL licenses.
                    
14 *   http://www.opensource.org/licenses/mit-license.php
                    
15 *   http://www.gnu.org/licenses/gpl.html
                    
25header('Expires: Sun, 13 Sep 2009 00:00:00 GMT');
                    
26header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
                    
27header('Cache-Control: no-store, no-cache, must-revalidate');
                    
70$cfg['deny'] = array(
                    
71	'file'		=> array('php','php3','php4','php5','phtml','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg','cgi'),
                    
72	'flash'		=> array(),
                    
116
                    
117require_once 'lib.php';
                    
118
                    
                
index_treemenu_tags.php https://bitbucket.org/netgen/eztags.git | PHP | 172 lines
                    
3// Set a default time zone if none is given. The time zone can be overriden
                    
4// in config.php or php.ini.
                    
5if ( !ini_get( 'date.timezone' ) )
                    
17    header( 'Cache-Control: max-age=' . MAX_AGE );
                    
18    header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s', strtotime( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) ) . ' GMT' );
                    
19    header( 'Pragma: ' );
                    
26// This makes ini system not check modified time so
                    
27// that index_treemenu_tags.php can assume that index.php does
                    
28// this regular enough, set in config.php to override.
                    
56
                    
57// Trick to get eZSys working with a script other than index.php (while index.php still used in generated URLs):
                    
58$_SERVER['SCRIPT_FILENAME'] = str_replace( '/index_treemenu_tags.php', '/index.php', $_SERVER['SCRIPT_FILENAME'] );
                    
58$_SERVER['SCRIPT_FILENAME'] = str_replace( '/index_treemenu_tags.php', '/index.php', $_SERVER['SCRIPT_FILENAME'] );
                    
59$_SERVER['PHP_SELF'] = str_replace( '/index_treemenu_tags.php', '/index.php', $_SERVER['PHP_SELF'] );
                    
60
                    
                
logConversion.delivery.php https://bitbucket.org/valmy/openx.git | PHP | 92 lines
                    
1<?php
                    
2
                    
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']),
                    
                
print_exam_permit_helper.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 184 lines
                    
1<?php
                    
2
                    
2
                    
3function print_html($enrollments,$setting,$permit_setting,$gmdate,$max){
                    
4$ci =& get_instance();
                    
102<td style="font-size:7px; text-align:left;">
                    
103Time: '.date("h:i A",$gmdate).',
                    
104</td>
                    
105<td style="font-size:7px; text-align:left;">
                    
106Date: '.date("F d, Y",$gmdate).',
                    
107</td>
                    
                
Time.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 198 lines
                    
1<?php
                    
2class qCal_Time {
                    
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		}
                    
51		}
                    
52		// since PHP is incapable of storing a time without a date, we use the first day of
                    
53		// the unix epoch so that we only have the amount of seconds since the zero of unix epoch
                    
58		$keys = explode("|", $formatString);
                    
59		$vals = explode("|", gmdate($formatString, $this->getTimestamp(false)));
                    
60		$this->timeArray = array_merge($this->timeArray, array_combine($keys, $vals));
                    
                
gravatar-profile.php https://gitlab.com/Gashler/sg | PHP | 331 lines
                    
182			<label for="<?php echo $this->get_field_id( 'title' ); ?>">
                    
183				<?php esc_html_e( 'Title', 'jetpack' ); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
                    
184			</label>
                    
203			<label for="<?php echo $this->get_field_id( 'email' ); ?>"><?php esc_html_e( 'Custom Email Address', 'jetpack' ); ?>
                    
204				<input class="widefat" id="<?php echo $this->get_field_id('email'); ?>" name="<?php echo $this->get_field_name( 'email' ); ?>" type="text" value="<?php echo esc_attr( $email ); ?>" />
                    
205			</label>
                    
209			<label for="<?php echo $this->get_field_id( 'show_personal_links' ); ?>">
                    
210				<input type="checkbox" name="<?php echo $this->get_field_name( 'show_personal_links' ); ?>" id="<?php echo $this->get_field_id( 'show_personal_links' ); ?>" <?php checked( $show_personal_links ); ?> />
                    
211				<?php esc_html_e( 'Show Personal Links', 'jetpack' ); ?>
                    
218			<label for="<?php echo $this->get_field_id( 'show_account_links' ); ?>">
                    
219				<input type="checkbox" name="<?php echo $this->get_field_name( 'show_account_links' ); ?>" id="<?php echo $this->get_field_id( 'show_account_links' ); ?>" <?php checked( $show_account_links ); ?> />
                    
220				<?php esc_html_e( 'Show Account Links', 'jetpack' ); ?>
                    
225
                    
226		<p><a href="<?php echo esc_url( $profile_url ); ?>" target="_blank" title="<?php esc_attr_e( 'Opens in new window', 'jetpack' ); ?>"><?php esc_html_e( 'Edit Your Profile', 'jetpack' )?></a> | <a href="http://gravatar.com" target="_blank" title="<?php esc_attr_e( 'Opens in new window', 'jetpack' ); ?>"><?php esc_html_e( "What's a Gravatar?", 'jetpack' ); ?></a></p>
                    
227
                    
                
CookieTest.php https://gitlab.com/judielsm/Handora | PHP | 147 lines
                    
1<?php
                    
2
                    
15
                    
16require_once __DIR__.'/ClockMock.php';
                    
17
                    
23 */
                    
24class CookieTest extends \PHPUnit_Framework_TestCase
                    
25{
                    
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
                    
                
 

Source

Language