PageRenderTime 1138ms queryTime 94ms sortTime 462ms getByIdsTime 81ms findMatchingLines 77ms

100+ results results for 'php time repo:Forbin/cakephp2x' (1138 ms)

Not the results you expected?
Period.php https://github.com/quarkness/piwik.git | PHP | 418 lines
                    
326		
                    
327    	$bind = array($this->getStartDatetimeUTC(), $this->getEndDatetimeUTC(), $this->idsite);
                    
328    	
                    
348		
                    
349		// we shall purge temporary archives after their timeout is finished, plus an extra 2 hours 
                    
350		// in case archiving is disabled and is late to run, we give it this extra time to run and re-process more recent records
                    
350		// in case archiving is disabled and is late to run, we give it this extra time to run and re-process more recent records
                    
351		$temporaryArchivingTimeout = self::getTodayArchiveTimeToLive();
                    
352		$purgeEveryNSeconds = $temporaryArchivingTimeout + 2 * 3600;
                    
358			&& (!$timestamp 
                    
359				|| $timestamp < time() - $purgeEveryNSeconds))
                    
360		{
                    
362			
                    
363			$purgeArchivesOlderThan = Piwik_Date::factory(time() - $purgeEveryNSeconds)->getDateTime();
                    
364			$result = Piwik_FetchAll("
                    
                
fckeditor.css https://gitlab.com/ptisky/API_prestashop | CSS | 536 lines
                    
99/*      forms                */

                    
100.inputMtime{width:55px; height:14px; font-size:9px;}

                    
101.radio{

                    
266span.fileFlash, span.fileVideo, span.filePicture,

                    
267span.filePPT, span.fileExcel, span.filePhp,

                    
268span.fileMusic, span.fileExe, span.fileAcrobat,

                    
289span.fileExcel{background-image:url(../images/small_icon/fileExcel.png);}

                    
290span.filePhp{background-image:url(../images/small_icon/filePhp.png);}

                    
291span.fileMusic{background-image:url(../images/small_icon/fileMusic.png);}

                    
301dt.fileFlash, dt.fileVideo,

                    
302dt.filePPT, dt.fileExcel, dt.filePhp,

                    
303dt.fileMusic, dt.fileExe, dt.fileAcrobat,

                    
328dt.fileExcel{background-image:url(../images/big_icon/fileExcel.png);}

                    
329dt.filePhp{background-image:url(../images/big_icon/filePhp.png);}

                    
330dt.fileMusic{background-image:url(../images/big_icon/fileMusic.png);}

                    
                
main2.php https://github.com/MyITCRM/myitcrm1.git | PHP | 373 lines
                    
1<?php
                    
2require('include.php');
                    
2require('include.php');
                    
3if(!xml2php("schedule")) {
                    
4	$smarty->assign('error_msg',"Error in language file");
                    
46
                    
47/* load start time from setup */
                    
48$q = "SELECT OFFICE_HOUR_START,OFFICE_HOUR_END FROM ".PRFX."SETUP";
                    
56if(empty($H) || empty($E)) {
                    
57	force_page('core', 'error&error_msg=You must first set a start and stop times in the control center');
                    
58	exit;
                    
76/* this will be pulled from the database later */
                    
77$business_start = mktime($H,0,0,$m,$d,$y); 
                    
78$business_end = mktime($E,0,0,$m,$d,$y); 
                    
108$i = 0;
                    
109$start = mktime($H,0,0,$m,$d,$y);
                    
110//$start = mktime($H,$d,$m,$y);
                    
                
PerformanceScenarioTest.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 438 lines
                    
29
                    
30#define DELAY_TIME              4
                    
31#define STAT_TIME               3
                    
77    listener->onTouchesMoved = CC_CALLBACK_2(ScenarioTest::onTouchesMoved, this);
                    
78    _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this);
                    
79
                    
361    if (isStating) {
                    
362        totalStatTime += dt;
                    
363        statCount++;
                    
385    // record test data
                    
386    auto avgStr = genStr("%.2f", (float) statCount / totalStatTime);
                    
387    Profile::getInstance()->addTestResult(genStrVector(genStr("%d", _spriteArray.size()).c_str(),
                    
431    schedule(CC_SCHEDULE_SELECTOR(ScenarioTest::beginStat), DELAY_TIME);
                    
432    schedule(CC_SCHEDULE_SELECTOR(ScenarioTest::endStat), DELAY_TIME + STAT_TIME);
                    
433}
                    
                
CheckOut.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 319 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Created by PhpStorm.
                    
4 * User: THANH
                    
5 * Date: 13/07/2016
                    
6 * Time: 11:28 SA
                    
7 */
                    
56                        'birthday' => '',
                    
57                        'regdate'=>CURRENT_TIME,
                    
58                        'gender' => '1',
                    
213            $invoice['invoice_status']= 1;
                    
214            $invoice['add_time']=CURRENT_TIME;
                    
215            $invoice['edit_time']=CURRENT_TIME;
                    
282                    $invoice['payment'] = Input::Post('payment',1);
                    
283                    $invoice['edit_time']= CURRENT_TIME;
                    
284                    $update = DB::Query('invoice')->Where('invoice_id','=',$id)->Update($invoice);
                    
                
date_helper.php https://gitlab.com/ricoru21/py_incidencia | PHP | 611 lines
                    
50			{
                    
51				$system_time = time();
                    
52				log_message('error', 'The Date class could not set a proper GMT timestamp so the local time() value was used.');
                    
307
                    
308		return mktime( gmdate("H", $time), gmdate("i", $time), gmdate("s", $time), gmdate("m", $time), gmdate("d", $time), gmdate("Y", $time));
                    
309	}
                    
335
                    
336		$time += timezones($timezone) * 3600;
                    
337
                    
396	{
                    
397		$r  = date('Y', $time).'-'.date('m', $time).'-'.date('d', $time).' ';
                    
398
                    
400		{
                    
401			$r .= date('h', $time).':'.date('i', $time);
                    
402		}
                    
                
sysvmsg.c https://gitlab.com/envieidoc/advancedtomato2 | C | 477 lines
                    
92	PHP_FE(msg_send,					arginfo_msg_send)
                    
93	PHP_FE(msg_receive,					arginfo_msg_receive)
                    
94	PHP_FE(msg_remove_queue,			arginfo_msg_remove_queue)
                    
147	php_info_print_table_row(2, "sysvmsg support", "enabled");
                    
148	php_info_print_table_row(2, "Revision", "$Id: adf1d2d6be849c46eed3c3ee6f1cbebd1448d6e5 $");
                    
149	php_info_print_table_end();
                    
217		add_assoc_long(return_value, "msg_perm.mode", stat.msg_perm.mode);
                    
218		add_assoc_long(return_value, "msg_stime",  stat.msg_stime);
                    
219		add_assoc_long(return_value, "msg_rtime",  stat.msg_rtime);
                    
219		add_assoc_long(return_value, "msg_rtime",  stat.msg_rtime);
                    
220		add_assoc_long(return_value, "msg_ctime",  stat.msg_ctime);
                    
221		add_assoc_long(return_value, "msg_qnum",   stat.msg_qnum);
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
                
COOKBOOK-FIXERS.md https://gitlab.com/I-NOZex/quiz | Markdown | 466 lines
                    
9In order to be able to create a new fixer, you need some background.
                    
10PHP CS Fixer is a transcompiler which takes valid PHP code and pretty
                    
11print valid PHP code. It does all transformations in multiple passes,
                    
23If possible, try to get acquainted with the public interface for the
                    
24[Symfony/CS/Tokenizer/Tokens.php](Symfony/CS/Tokenizer/Tokens.php)
                    
25and [Symfony/CS/Tokenizer/Token.php](Symfony/CS/Tokenizer/Token.php)
                    
30* You are familiar with Test Driven Development.
                    
31* Forked FriendsOfPHP/PHP-CS-Fixer into your own Github Account.
                    
32* Cloned your forked repository locally.
                    
32* Cloned your forked repository locally.
                    
33* Downloaded PHP CS Fixer and have executed `php composer.phar
                    
34install`.
                    
47Create a new file in
                    
48`PHP-CS-Fixer/Symfony/CS/Fixer/Contrib/RemoveCommentsFixer.php`.
                    
49Put this content inside:
                    
                
OLE.php https://bitbucket.org/blackriver/openx.git | PHP | 410 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP Version 4                                                        |
                    
5// +----------------------------------------------------------------------+
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2002 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 2.02 of the PHP license,      |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/2_02.txt.                                 |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
14// | license@php.net so we can mail you a copy immediately.               |
                    
15// +----------------------------------------------------------------------+
                    
                
migration_tables_core_538.php https://bitbucket.org/blackriver/openx.git | PHP | 318 lines
                    
1<?php
                    
2
                    
24+---------------------------------------------------------------------------+
                    
25$Id: migration_tables_core_538.php 81772 2012-09-11 00:07:29Z chris.nutting $
                    
26*/
                    
27
                    
28require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');
                    
29
                    
36
                    
37		$this->aTaskList_constructive[] = 'beforeAddField__data_intermediate_ad__date_time';
                    
38		$this->aTaskList_constructive[] = 'afterAddField__data_intermediate_ad__date_time';
                    
80
                    
81		$this->aObjectMap['data_intermediate_ad']['date_time'] = array('fromTable'=>'data_intermediate_ad', 'fromField'=>'date_time');
                    
82		$this->aObjectMap['data_summary_ad_hourly']['date_time'] = array('fromTable'=>'data_summary_ad_hourly', 'fromField'=>'date_time');
                    
302	    if ($this->oDBH->dbsyntax == 'pgsql') {
                    
303    	    $query = "UPDATE {$tableName} SET date_time = {$tableName}.day::timestamp + ({$tableName}.hour || ' hours')::interval";
                    
304	    } else {
                    
                
fa.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 313 lines
                    
1<?php
                    
2$translations = array(
                    
16	'No extension' => 'پسوند نامعتبر',
                    
17	'None of the supported PHP extensions (%s) are available.' => ' پسوند پی اچ پی در دسترس نیست (%s) تعداد',
                    
18	'Session support must be enabled.' => 'پشتيباني از نشست بايستي فعال گردد',
                    
19	'Session expired, please login again.' => 'نشست پايان يافته، لطفا دوباره وارد شويد',
                    
20	'%s version: %s through PHP extension %s' => 'نسخه %s : %s توسعه پی اچ پی %s',
                    
21	'Refresh' => 'بازيابي',
                    
51	'Show only errors' => 'فقط نمايش خطاها',
                    
52	// sprintf() format for time of the command
                    
53	'%.3f s' => '%.3f s',
                    
133	'Create event' => 'ایجاد رویداد',
                    
134	'At given time' => 'زمان معین',
                    
135	'Every' => 'همه',
                    
210	'Create trigger' => 'ایجاد تریگر',
                    
211	'Time' => 'زمان',
                    
212	'Event' => 'رویداد',
                    
                
derivative.inc.php https://gitlab.com/team_fsn/fsn-php | PHP | 540 lines
                    
1<?php
                    
2// +-----------------------------------------------------------------------+
                    
2// +-----------------------------------------------------------------------+
                    
3// | Piwigo - a PHP based photo gallery                                    |
                    
4// +-----------------------------------------------------------------------+
                    
71      $this->flags |= self::IS_MIMETYPE;
                    
72      if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false)
                    
73      {
                    
74        $this->rel_path = 'themes/default/icon/mimetypes/unknown.png';
                    
75        $size = getimagesize(PHPWG_ROOT_PATH.$this->rel_path);
                    
76      }
                    
364    {
                    
365      $mtime = @filemtime(PHPWG_ROOT_PATH.$rel_path);
                    
366      if ($mtime===false or $mtime < $params->last_mod_time)
                    
379      $rel_url = 'i';
                    
380      if ($conf['php_extension_in_urls']) $rel_url .= '.php';
                    
381      if ($conf['question_mark_in_urls']) $rel_url .= '?';
                    
                
Client.php https://bitbucket.org/cryofrost/portal.git | PHP | 489 lines
                    
1<?php
                    
2
                    
16use Symfony\Component\DomCrawler\Form;
                    
17use Symfony\Component\Process\PhpProcess;
                    
18use Symfony\Component\BrowserKit\Request;
                    
80     *
                    
81     * @throws \RuntimeException When Symfony Process Component is not installed
                    
82     *
                    
88            // @codeCoverageIgnoreStart
                    
89            throw new \RuntimeException('Unable to isolate requests as the Symfony Process Component is not installed.');
                    
90            // @codeCoverageIgnoreEnd
                    
226
                    
227        return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles());
                    
228    }
                    
236     * @param array   $files         The files
                    
237     * @param array   $server        The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does)
                    
238     * @param string  $content       The raw body data
                    
                
class.evstat.html https://bitbucket.org/thncr/manuals.git | HTML | 359 lines
                    
11 <div class="up"><a href="book.ev.html">Ev</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="class.evstat" class="reference">
                    
24    on that path in regular intervals(or when the OS signals it changed) and
                    
25    sees if it changed compared to the last time, invoking the callback if it
                    
26    did.
                    
357 <div class="up"><a href="book.ev.html">Ev</a></div>
                    
358 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
359</div></body></html>
                    
                
CurrentEmployer.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 394 lines
                    
1<?php
                    
2/*
                    
114            'title' => ts('Age'),
                    
115            'dbAlias' => 'TIMESTAMPDIFF(YEAR, contact_civireport.birth_date, CURDATE())',
                    
116          ],
                    
                
Account.php https://github.com/grandison/budo16.git | PHP | 317 lines
                    
1<?php
                    
2
                    
9 * @license    http://www.socialengine.net/license/
                    
10 * @version    $Id: Account.php 8913 2011-05-02 18:03:07Z shaun $
                    
11 * @author     John
                    
154
                    
155    // Element: timezone
                    
156    $this->addElement('Select', 'timezone', array(
                    
156    $this->addElement('Select', 'timezone', array(
                    
157      'label' => 'Timezone',
                    
158      'value' => $settings->getSetting('core.locale.timezone'),
                    
159      'multiOptions' => array(
                    
160        'US/Pacific' => '(UTC-8) Pacific Time (US & Canada)',
                    
161        'US/Mountain' => '(UTC-7) Mountain Time (US & Canada)',
                    
161        'US/Mountain' => '(UTC-7) Mountain Time (US & Canada)',
                    
162        'US/Central' => '(UTC-6) Central Time (US & Canada)',
                    
163        'US/Eastern' => '(UTC-5) Eastern Time (US & Canada)',
                    
                
Config.php https://github.com/mrbanzai/zf2.git | PHP | 536 lines
                    
1<?php
                    
2/**
                    
211    /**
                    
212     * Support isset() overloading on PHP 5.1
                    
213     *
                    
222    /**
                    
223     * Support unset() overloading on PHP 5.1
                    
224     *
                    
474            if ($this->_extends[$extendedSectionCurrent] == $extendingSection) {
                    
475                throw new Exception\RuntimeException('Illegal circular inheritance detected');
                    
476            }
                    
                
sysvmsg.c https://bitbucket.org/luobailiang/php-src.git | C | 477 lines
                    
92	PHP_FE(msg_send,					arginfo_msg_send)
                    
93	PHP_FE(msg_receive,					arginfo_msg_receive)
                    
94	PHP_FE(msg_remove_queue,			arginfo_msg_remove_queue)
                    
147	php_info_print_table_row(2, "sysvmsg support", "enabled");
                    
148	php_info_print_table_row(2, "Revision", "$Id: 6360183f0075ec66a3dfa01633b2ed808dd482af $");
                    
149	php_info_print_table_end();
                    
217		add_assoc_long(return_value, "msg_perm.mode", stat.msg_perm.mode);
                    
218		add_assoc_long(return_value, "msg_stime",  stat.msg_stime);
                    
219		add_assoc_long(return_value, "msg_rtime",  stat.msg_rtime);
                    
219		add_assoc_long(return_value, "msg_rtime",  stat.msg_rtime);
                    
220		add_assoc_long(return_value, "msg_ctime",  stat.msg_ctime);
                    
221		add_assoc_long(return_value, "msg_qnum",   stat.msg_qnum);
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
                
Curl.php https://bitbucket.org/mkrasuski/magento-ce.git | PHP | 576 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 */
                    
99    /**
                    
100     * Request timeout
                    
101     * @var intunknown_type
                    
102     */
                    
103    protected $_timeout = 300;
                    
104
                    
396        if($this->_timeout) {
                    
397            $this->curlOption(CURLOPT_TIMEOUT, $this->_timeout);
                    
398        }
                    
                
Network.php https://gitlab.com/Skull3x/GladiatorMine | PHP | 366 lines
                    
1<?php
                    
2
                    
74use pocketmine\network\protocol\SetSpawnPositionPacket;
                    
75use pocketmine\network\protocol\SetTimePacket;
                    
76use pocketmine\network\protocol\StartGamePacket;
                    
297	/**
                    
298	 * Blocks an IP address from the main interface. Setting timeout to -1 will block it forever
                    
299	 *
                    
300	 * @param string $address
                    
301	 * @param int    $timeout
                    
302	 */
                    
302	 */
                    
303	public function blockAddress($address, $timeout = 300) {
                    
304		foreach ($this->advancedInterfaces as $interface) {
                    
316		$this->registerPacket(ProtocolInfo::TEXT_PACKET, TextPacket::class);
                    
317		$this->registerPacket(ProtocolInfo::SET_TIME_PACKET, SetTimePacket::class);
                    
318		$this->registerPacket(ProtocolInfo::START_GAME_PACKET, StartGamePacket::class);
                    
                
TbInput.php https://bitbucket.org/haichau59/manga.git | PHP | 588 lines
                    
1<?php
                    
2/**
                    
5 * @copyright Copyright &copy; Christoffer Niska 2011-
                    
6 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
7 * @package bootstrap.widgets.input
                    
37	const TYPE_CKEDITOR = 'ckeditor';
                    
38	const TYPE_TIMEPICKER = 'timepicker';
                    
39	const TYPE_SELECT2 = 'select2';
                    
274
                    
275			// Adding timepicker (Sergii)
                    
276			case self::TYPE_TIMEPICKER:
                    
276			case self::TYPE_TIMEPICKER:
                    
277				$this->timepickerField();
                    
278				break;
                    
576	/**
                    
577	 * Renders a timepicker field.
                    
578	 * @return string the rendered content
                    
                
MysqlPlatform.php https://github.com/kelios/imshop.git | PHP | 547 lines
                    
1<?php
                    
2
                    
10
                    
11require_once dirname(__FILE__) . '/DefaultPlatform.php';
                    
12
                    
40		$this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "LONGTEXT"));
                    
41		$this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, "DATETIME"));
                    
42	}
                    
229
                    
230		// Special handling of TIMESTAMP/DATETIME types ...
                    
231		// See: http://propel.phpdb.org/trac/ticket/538
                    
231		// See: http://propel.phpdb.org/trac/ticket/538
                    
232		if ($sqlType == 'DATETIME') {
                    
233			$def = $domain->getDefaultValue();
                    
233			$def = $domain->getDefaultValue();
                    
234			if ($def && $def->isExpression()) { // DATETIME values can only have constant expressions
                    
235				$sqlType = 'TIMESTAMP';
                    
                
fileform.php https://github.com/projectfork/Projectfork.git | PHP | 431 lines
                    
1<?php
                    
2/**
                    
159     * @param     string     $key       The name of the primary key of the URL variable.
                    
160     * @param     string     $urlVar    The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
                    
161     *
                    
181        $record_id = JRequest::getInt($urlVar);
                    
182        $link_base = 'index.php?option=' . $this->option . '&view=';
                    
183        $link_list = $link_base . $this->view_list . $this->getRedirectToListAppend();
                    
424        if (empty($return) || !JUri::isInternal(base64_decode($return))) {
                    
425            return JRoute::_('index.php?option=com_pfrepo&view=' . $this->view_list . $append, false);
                    
426        }
                    
                
Entry.php https://bitbucket.org/skudatech/azure-sdk-for-php.git | PHP | 630 lines
                    
1<?php
                    
2
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   WindowsAzure\Common\Internal\Atom
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
22 * @link      https://github.com/WindowsAzure/azure-sdk-for-php
                    
23 */
                    
34 * @package   WindowsAzure\Common\Internal\Atom
                    
35 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
36 * @copyright 2012 Microsoft Corporation
                    
38 * @version   Release: @package_version@
                    
39 * @link      https://github.com/WindowsAzure/azure-sdk-for-php
                    
40 */
                    
                
MantenimientosController.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 382 lines
                    
1<?php
                    
2
                    
39			if (Input::has('fechadesde') && Input::has('fechahasta')) {
                    
40        		$datedesde = DateTime::createFromFormat('d/m/Y', Input::get('fechadesde'));
                    
41            	$datehasta = DateTime::createFromFormat('d/m/Y', Input::get('fechahasta'));
                    
109		            	if (Input::get('fechadesde') != "") {
                    
110		            		$date = DateTime::createFromFormat('d/m/Y', Input::get('fechadesde'));
                    
111		            		$query->where('fecha', '>=', $date->format('Y-m-d'));
                    
113		                if (Input::get('fechahasta') != "") {
                    
114		                	$date = DateTime::createFromFormat('d/m/Y', Input::get('fechahasta'));
                    
115		            		$query->where('fecha', '<=', $date->modify('+1 day')->format('Y-m-d'));
                    
190			    ob_start();
                    
191			    include(app_path().'/views/pdf/informemantenimiento.php');
                    
192			    $content = ob_get_clean();
                    
194			    // convert to PDF
                    
195			    require_once(public_path().'/packages/html2pdf/html2pdf.class.php');
                    
196		        $html2pdf = new HTML2PDF('P', 'A4', 'es');
                    
                
BasePhysicalObjectI18n.php https://github.com/mikesname/ehri-ica-atom.git | PHP | 563 lines
                    
359
                    
360    // Convert to DateTime or SQL zero special case
                    
361    if (isset($value) && $column->isTemporal() && !$value instanceof DateTime)
                    
375
                    
376      // Convert to DateTime if not SQL zero special case: year plus
                    
377      // separator plus zero to twelve (possibly zero padded) plus
                    
409        {
                    
410          if ('createdAt' == $column->getPhpName() || 'updatedAt' == $column->getPhpName())
                    
411          {
                    
411          {
                    
412            $this->values[$column->getPhpName()] = new DateTime;
                    
413          }
                    
438          $columns = $table->getPrimaryKeyColumns();
                    
439          $this->values[$columns[0]->getPhpName()] = $this->keys[$columns[0]->getPhpName()] = $id;
                    
440        }
                    
                
Banners.php https://github.com/orchestra-io/sample-openx.git | PHP | 322 lines
                    
1<?php
                    
2
                    
24+---------------------------------------------------------------------------+
                    
25$Id: Banners.php 44998 2009-10-20 16:15:30Z matthieu.aubry $
                    
26*/
                    
31require_once 'DB_DataObjectCommon.php';
                    
32include_once MAX_PATH . '/www/admin/lib-banner.inc.php';
                    
33include_once MAX_PATH . '/www/admin/lib-storage.inc.php';
                    
80    public $comments;                        // TEXT() => openads_text => 34
                    
81    public $updated;                         // DATETIME() => openads_datetime => 142
                    
82    public $acls_updated;                    // DATETIME() => openads_datetime => 142
                    
125                'alt_contenttype' => 'gif',
                    
126                'updated' => '%DATE_TIME%',
                    
127                'acls_updated' => '%NO_DATE_TIME%',
                    
161            if ($doBanner->getRowCount() == 1) {
                    
162                phpAds_ImageDelete ($storageType, $fileName);
                    
163            }
                    
                
core.clj https://github.com/tavisrudd/trammel.git | Clojure | 367 lines
                    
7; and distribution terms for this software are covered by the Eclipse
                    
8; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
                    
9; which can be found in the file COPYING the root of this
                    
145
                    
146   And then running these functions will be checked against the contract at runtime:
                    
147
                    
234  arity is constrained to the number of expected fields and an ArityException
                    
235  will be thrown at runtime if the actual arg count does not match."
                    
236  [nom classname fields invariants chk]
                    
                
Item.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 447 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-2020 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
126        $entryId = $this->getEntry()->getId();
                    
127        $published = $this->gBaseDate2DateTime($this->getEntry()->getPublished()->getText());
                    
128        $this->getItem()
                    
132        if ($expires = $this->_getAttributeValue('expiration_date')) {
                    
133            $expires = $this->gBaseDate2DateTime($expires);
                    
134            $this->getItem()->setExpires($expires);
                    
436    /**
                    
437     * Convert Google Base date format to unix timestamp
                    
438     * Ex. 2008-12-08T16:57:23Z -> 2008-12-08 16:57:23
                    
                
pskc-schema.xsd https://gitlab.com/ssbarnea/oath-toolkit | XML Schema | 307 lines
                    
92) Make AlgorithmParameter a sequence not a choice.
                    
10   <http://www.rfc-editor.org/errata_search.php?eid=2759>
                    
11
                    
81               <xs:element name="StartDate"
                    
82                    type="xs:dateTime" minOccurs="0"/>
                    
83               <xs:element name="ExpiryDate"
                    
83               <xs:element name="ExpiryDate"
                    
84                    type="xs:dateTime" minOccurs="0"/>
                    
85               <xs:element name="PINPolicy"
                    
101                    type="pskc:longDataType" minOccurs="0"/>
                    
102               <xs:element name="Time"
                    
103                    type="pskc:intDataType" minOccurs="0"/>
                    
103                    type="pskc:intDataType" minOccurs="0"/>
                    
104               <xs:element name="TimeInterval"
                    
105                    type="pskc:intDataType" minOccurs="0"/>
                    
                
WebhookTesting.php https://gitlab.com/cividesk-civicrm/com.cividesk.payment.braintree | PHP | 391 lines
                    
1<?php
                    
2namespace Braintree;
                    
71        }
                    
72        $timestamp = self::_timestamp();
                    
73        return "
                    
74        <notification>
                    
75            <timestamp type=\"datetime\">{$timestamp}</timestamp>
                    
76            <kind>{$kind}</kind>
                    
380
                    
381    private static function _timestamp()
                    
382    {
                    
382    {
                    
383        $originalZone = date_default_timezone_get();
                    
384        date_default_timezone_set('UTC');
                    
384        date_default_timezone_set('UTC');
                    
385        $timestamp = strftime('%Y-%m-%dT%TZ');
                    
386        date_default_timezone_set($originalZone);
                    
                
klarnapclass.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 546 lines
                    
1<?php
                    
2defined('_JEXEC') or die('Restricted access');
                    
101     *
                    
102     * @ignore Do not show in PHPDoc.
                    
103     * @var string
                    
109     *
                    
110     * @ignore Do not show in PHPDoc.
                    
111     * @var int
                    
117     *
                    
118     * @ignore Do not show in PHPDoc.
                    
119     * @var float
                    
125     *
                    
126     * @ignore Do not show in PHPDoc.
                    
127     * @var float
                    
133     *
                    
134     * @ignore Do not show in PHPDoc.
                    
135     * @var float
                    
                
postgresql.php https://gitlab.com/ricardosanchez/prueba | PHP | 641 lines
                    
1<?php
                    
2/**
                    
301	/**
                    
302	 * Gets the current date and time.
                    
303	 *
                    
307	 */
                    
308	public function currentTimestamp()
                    
309	{
                    
595	/**
                    
596	 * Add to the current date and time in Postgresql.
                    
597	 * Usage:
                    
600	 *
                    
601	 * @param   datetime  $date      The date to add to
                    
602	 * @param   string    $interval  The string representation of the appropriate number of units
                    
608	 * @note    Not all drivers support all units. Check appropriate references
                    
609	 * @link    http://www.postgresql.org/docs/9.0/static/functions-datetime.html.
                    
610	 */
                    
                
tbl_structure.php https://gitlab.com/ctheilman92/Aging-In-Place | PHP | 469 lines
                    
13require_once 'libraries/common.inc.php';
                    
14require_once 'libraries/mysql_charsets.lib.php';
                    
15
                    
18 */
                    
19require_once 'libraries/structure.lib.php';
                    
20require_once 'libraries/index.lib.php';
                    
42if (isset($_REQUEST['change_column'])) {
                    
43    PMA_displayHtmlForColumnChange($db, $table, null, 'tbl_structure.php');
                    
44    exit;
                    
137require_once 'libraries/tbl_common.inc.php';
                    
138$url_query .= '&amp;goto=tbl_structure.php&amp;back=tbl_structure.php';
                    
139$url_params['goto'] = 'tbl_structure.php';
                    
332
                    
333    // here, we have a TIMESTAMP that SHOW FULL COLUMNS reports as having the
                    
334    // NULL attribute, but SHOW CREATE TABLE says the contrary. Believe
                    
                
image.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 412 lines
                    
147
                    
148	return strtotime( "{$y}-{$m}-{$d} {$time}" );
                    
149}
                    
154 * Retrieves the EXIF metadata aperture, credit, camera, caption, copyright, iso
                    
155 * created_timestamp, focal_length, shutter_speed, and title.
                    
156 *
                    
158 * and time, caption, copyright, and title. Also includes FNumber, Model,
                    
159 * DateTimeDigitized, FocalLength, ISOSpeedRatings, and ExposureTime.
                    
160 *
                    
223			if ( ! empty( $iptc['2#055'][0] ) and ! empty( $iptc['2#060'][0] ) ) // created date and time
                    
224				$meta['created_timestamp'] = strtotime( $iptc['2#055'][0] . ' ' . $iptc['2#060'][0] );
                    
225
                    
262		if ( ! empty($exif['DateTimeDigitized'] ) )
                    
263			$meta['created_timestamp'] = wp_exif_date2ts($exif['DateTimeDigitized'] );
                    
264		if ( ! empty($exif['FocalLength'] ) )
                    
                
schedules_custom.php https://github.com/freedenizen/mythweb.git | PHP | 240 lines
                    
65                    <label for="record_always"><?php echo t('rectype-long: always') ?></label></li>
                    
66                <li><input type="radio" class="radio" name="record" value="<?php echo rectype_finddaily ?>" id="rectype_finddaily"<?php
                    
67                        if ($schedule->type == rectype_finddaily) echo ' CHECKED' ?> />
                    
89                    <label for="searchtype_keyword"><?php echo t('Keyword Search') ?></label></li>
                    
90                <li><input type="radio" class="radio" name="searchtype" value="<?php echo searchtype_people ?>" id="searchtype_people"<?php
                    
91                        if ($schedule->search == searchtype_people) echo ' CHECKED'
                    
93                    <label for="searchtype_people"><?php echo t('People Search') ?></label></li>
                    
94                <li><input type="radio" class="radio" name="searchtype" value="<?php echo searchtype_power ?>" id="searchtype_power"<?php
                    
95                        if ($schedule->search == searchtype_power) echo ' CHECKED'
                    
126        <div id="find_date_options">
                    
127            <h3><?php echo t('Find Date & Time Options') ?>:</h3>
                    
128            <dl class="clearfix">
                    
131               <dt><?php echo t('Find Time') ?>:</dt>
                    
132               <dd><input type="text" name="findtime" value="<?php echo html_entities($schedule->findtime) ?>" /></dd>
                    
133            </dl>
                    
                
userpay.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 437 lines
                    
153			'orderAmount'		=> ($number*100),
                    
154			'orderTime'			=> get_date($timestamp,'YmdHis'),
                    
155			'productName'		=> getLangInfo('other','userpay_content'),
                    
243		$stimeView = $stime;
                    
244		!is_numeric($stime) && $stime = PwStrtoTime($stime);
                    
245		$sqladd .= " AND adddate>".S::sqlEscape($stime);
                    
248	if ($etime) {
                    
249		$etimeView = $etime;
                    
250		!is_numeric($etime) && $etime = PwStrtoTime($etime);
                    
250		!is_numeric($etime) && $etime = PwStrtoTime($etime);
                    
251		if ($etime == $stime) $etime = $etime + 86400;
                    
252		$sqladd .= " AND adddate<".S::sqlEscape($etime);
                    
252		$sqladd .= " AND adddate<".S::sqlEscape($etime);
                    
253		$urladd .= "etime=$etime&";
                    
254	}
                    
                
categories.php https://github.com/jongleur/oscommerce.git | PHP | 336 lines
                    
1<?php
                    
2/*
                    
238
                    
239        osc_set_time_limit(0);
                    
240
                    
                
tax_watch_export_pdf(3).php https://gitlab.com/vince.omega/PDF-PHP-Scripts | PHP | 534 lines
                    
1<?php
                    
2ini_set('max_execution_time', 0); //300 seconds = 5 minutes
                    
2ini_set('max_execution_time', 0); //300 seconds = 5 minutes
                    
3require_once('fpdf/fpdf/fpdf.php');
                    
4require_once('../../header.inc.php');
                    
7@author: Larry Stanfield
                    
8PHP PDF generation script written by Larry Stanfield
                    
9Contact @ vince.omega@gmail.com
                    
9Contact @ vince.omega@gmail.com
                    
10Powered by the open source pdf php class fpdf
                    
11www.fpdf.org
                    
186
                    
187$filename = 'c:/php_temp/download_' . preg_replace('/[^a-z0-9]/i', '_', $DB->cleanString($_GET['custcodes'])) . '.pdf';
                    
188
                    
                
settings.php https://github.com/plamba95/Ushahidi-Localizations.git | PHP | 204 lines
                    
1<?php
                    
2	$lang = array(
                    
35	),
                    
36	'cache_pages_lifetime' => array(
                    
37		'in_array' => 'Поле время жизни кеша заполенно неверно.',
                    
41		'clean_url_disabled' => 'Сервер не настроен для "красивой" адресной строки. <a href="http://forums.ushahidi.com/topic/server-configuration-for-apache-mod-rewrite" target="_blank">Более подробная информация</a>',
                    
42		'clean_url_enabled' => 'Эта опция позволит заходить на Ushahidi без "index.php" в адресной строке.',
                    
43		'enable_clean_url' => 'Включить "Красивый" URL',
                    
133		'cache_pages' => 'Включить кэширование?',
                    
134		'cache_pages_lifetime' => 'Время жизни кэша',
                    
135		'checkins' => 'Проверка',
                    
176		'clickatell_password' => 'Введите ваш Clickatell пароль',
                    
177		'clickatell_text_1' => 'Подключитесь к услуге Clickatell в <a href="https://www.clickatell.com/central/user/client/step1.php?prod_id=2" target="_blank">clicking here</a>',
                    
178		'clickatell_text_2' => 'Введите вашу информацию Clickatell внизу',
                    
181		'flsms_download' => 'Скачайте Frontline SMS и установите на ваш компьютер',
                    
182		'flsms_instructions' => 'Сообщения полученные в FrontlineSMS можно синхронизировать с Ushahidi. Информацию о том как это сделать можно найти в <strong><a href="http://wiki.ushahididev.com/doku.php?id=how_to_use_ushahidi_alpha#how_to_setup_frontlinesms_to_sync_with_ushahidi" target="_blank">here</a></strong>. Вы должны получить ключ по ссылке чтобы синхронизироваться с FrontlineSMS',
                    
183		'flsms_key' => 'Это ключ синхронизации Ushahidi',
                    
                
SQLiteGrammar.php https://gitlab.com/kimting254/wbms | PHP | 611 lines
                    
1<?php namespace Illuminate\Database\Schema\Grammars;
                    
2
                    
489	/**
                    
490	 * Create the column definition for a date-time type.
                    
491	 *
                    
494	 */
                    
495	protected function typeDateTime(Fluent $column)
                    
496	{
                    
496	{
                    
497		return 'datetime';
                    
498	}
                    
500	/**
                    
501	 * Create the column definition for a date-time type.
                    
502	 *
                    
502	 *
                    
503	 * Note: "SQLite does not have a storage class set aside for storing dates and/or times."
                    
504	 * @link https://www.sqlite.org/datatype3.html
                    
                
SSDB.php https://gitlab.com/dleonov/my-framework-two | PHP | 576 lines
                    
64	function __construct($host, $port, $timeout_ms=2000){
                    
65		$timeout_f = (float)$timeout_ms/1000;
                    
66		$this->sock = @stream_socket_client("$host:$port", $errno, $errstr, $timeout_f);
                    
70		$timeout_sec = intval($timeout_ms/1000);
                    
71		$timeout_usec = ($timeout_ms - $timeout_sec * 1000) * 1000;
                    
72		@stream_set_timeout($this->sock, $timeout_sec, $timeout_usec);
                    
78	function set_timeout($timeout_ms){
                    
79		$timeout_sec = intval($timeout_ms/1000);
                    
80		$timeout_usec = ($timeout_ms - $timeout_sec * 1000) * 1000;
                    
80		$timeout_usec = ($timeout_ms - $timeout_sec * 1000) * 1000;
                    
81		@stream_set_timeout($this->sock, $timeout_sec, $timeout_usec);
                    
82	}
                    
513					}else{
                    
514						throw new SSDBTimeoutException('Connection timeout');
                    
515					}
                    
                
StatementPrefetch.php https://gitlab.com/reasonat/test8 | PHP | 537 lines
                    
1<?php
                    
2
                    
153    if (!empty($logger)) {
                    
154      $query_start = microtime(TRUE);
                    
155    }
                    
187    if (!empty($logger)) {
                    
188      $query_end = microtime(TRUE);
                    
189      $logger->log($this, $args, $query_end - $query_start);
                    
464    $result = array();
                    
465    // Traverse the array as PHP would have done.
                    
466    while (isset($this->currentRow)) {
                    
483      $result = array();
                    
484      // Traverse the array as PHP would have done.
                    
485      while (isset($this->currentRow)) {
                    
506    $result = array();
                    
507    // Traverse the array as PHP would have done.
                    
508    while (isset($this->currentRow)) {
                    
                
lessen.tpl.d17.php https://github.com/jonathanslenders/balancirk-website.git | PHP | 361 lines
                    
1<?php
                    
2/* template head */
                    
6'';// checking for modification in file:templates/base.tpl
                    
7if (!("1300639476" == filemtime('templates/base.tpl'))) { ob_end_clean(); return false; };?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
                    
8<html xmlns="http://www.w3.org/1999/xhtml"> 
                    
251
                    
252				<?php if ((isset($this->scope["authenticated"]) ? $this->scope["authenticated"] : null)) {
                    
253?>
                    
253?>
                    
254					<?php echo Dwoo_Plugin_include($this, "templates/_edit.tpl", null, null, null, '_root', null);?>
                    
255
                    
255
                    
256				<?php 
                    
257}?>
                    
358 
                    
359<?php  /* end template body */
                    
360return $this->buffer . ob_get_clean();
                    
                
zbzippclzip.php https://bitbucket.org/anneivycat/california-tour.git | PHP | 406 lines
                    
1<?php
                    
2/**
                    
118			
                    
119				$pclzip_file = ABSPATH . 'wp-admin/includes/class-pclzip.php';
                    
120				pb_backupbuddy::status( 'details', 'PCLZip class not found. Attempting to load from `' . $pclzip_file . '`.' );
                    
204			pb_backupbuddy::status( 'message', __('Using Compatibility Mode.','it-l10n-backupbuddy' ) );
                    
205			pb_backupbuddy::status( 'message', __('If your backup times out in Compatibility Mode try disabling zip compression in Settings.','it-l10n-backupbuddy' ) );
                    
206			
                    
212				
                    
213				$pclzip_file = ABSPATH . 'wp-admin/includes/class-pclzip.php';
                    
214				pb_backupbuddy::status( 'details', 'PCLZip class not found. Attempting to load from `' . $pclzip_file . '`.' );
                    
                
lib.php https://bitbucket.org/ngmares/moodle.git | PHP | 383 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
37     *
                    
38     * We are not using single instance parameter because sometimes
                    
39     * we might want to prevent icon repetition when multiple instances
                    
54
                    
55    public function enrol_user(stdClass $instance, $userid, $roleid = NULL, $timestart = 0, $timeend = 0, $status = NULL) {
                    
56        // no real enrolments here!
                    
69     * @param stdClass $instance course enrol instance
                    
70     * @return bool|int false means no guest access, integer means end of cached time
                    
71     */
                    
89            load_temp_course_role($context, $CFG->guestroleid);
                    
90            return ENROL_MAX_TIMESTAMP;
                    
91        }
                    
310                        $instance->status       = $data->{'enrol_guest_status_'.$i};
                    
311                        $instance->timemodified = time();
                    
312                        if ($instance->status == ENROL_INSTANCE_ENABLED) {
                    
                
class-wp-locale.php https://gitlab.com/campus-academy/krowkaramel | PHP | 369 lines
                    
1<?php
                    
2/**
                    
13 * @since 2.1.0
                    
14 * @since 4.6.0 Moved to its own file from wp-includes/locale.php.
                    
15 */
                    
196		// Numbers formatting.
                    
197		// See https://www.php.net/number_format
                    
198
                    
361	public function _strings_for_pot() {
                    
362		/* translators: Localized date format, see https://www.php.net/manual/datetime.format.php */
                    
363		__( 'F j, Y' );
                    
363		__( 'F j, Y' );
                    
364		/* translators: Localized time format, see https://www.php.net/manual/datetime.format.php */
                    
365		__( 'g:i a' );
                    
365		__( 'g:i a' );
                    
366		/* translators: Localized date and time format, see https://www.php.net/manual/datetime.format.php */
                    
367		__( 'F j, Y g:i a' );
                    
                
upgrade.php https://github.com/totara/moodle.git | PHP | 324 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
40    if ($oldversion < 2012032100) {
                    
41        unset_config('updatetime', 'scorm');
                    
42        upgrade_mod_savepoint(true, 2012032100, 'scorm');
                    
48
                    
49        $field = new xmldb_field('completionstatusrequired', XMLDB_TYPE_INTEGER, '1', XMLDB_UNSIGNED, null, null, null, 'timemodified');
                    
50        if (!$dbman->field_exists($table, $field)) {
                    
85    if ($oldversion < 2013081301) {
                    
86        require_once($CFG->dirroot . '/mod/scorm/lib.php');
                    
87        $scorms = $DB->get_recordset('scorm', array('scormtype' => 'imsrepository'));
                    
166        if (!empty($hide)) {
                    
167            require_once($CFG->dirroot . '/mod/scorm/lib.php');
                    
168            set_config('nav', SCORM_NAV_DISABLED, 'scorm');
                    
236        foreach ($scorms as $scorm) {
                    
237            upgrade_set_timeout(60);  // Increase execution time just in case. (60 sec is minimum but prob excessive here).
                    
238            $originallaunch = $scorm->launch;
                    
                
Dispatcher.cpp https://github.com/simplecoin/simplecoin.git | C++ | 419 lines
                    
130    auto end = timers.end();
                    
131    while (timerContextPair != end && timerContextPair->first <= currentTime) {
                    
132      pushContext(timerContextPair->second);
                    
132      pushContext(timerContextPair->second);
                    
133      timerContextPair = timers.erase(timerContextPair);
                    
134    }
                    
141
                    
142    DWORD timeout = timers.empty() ? INFINITE : static_cast<DWORD>(std::min(timers.begin()->first - currentTime, static_cast<uint64_t>(INFINITE - 1)));
                    
143    OVERLAPPED_ENTRY entry;
                    
269    auto end = timers.end();
                    
270    while (timerContextPair != end && timerContextPair->first <= currentTime) {
                    
271      timerContextPair->second->interruptProcedure = nullptr;
                    
272      pushContext(timerContextPair->second);
                    
273      timerContextPair = timers.erase(timerContextPair);
                    
274    }
                    
                
1416863327-migrate-reports.php https://gitlab.com/e0/X2CRM | PHP | 315 lines
                    
1<?php
                    
2/***********************************************************************************
                    
52            case 'thisWeek':
                    
53                $dateRange['start'] = strtotime('mon this week'); // first of this month
                    
54                $dateRange['end'] = time(); // now
                    
56            case 'thisMonth':
                    
57                $dateRange['start'] = mktime(0, 0, 0, date('n'), 1); // first of this month
                    
58                $dateRange['end'] = time(); // now
                    
60            case 'lastWeek':
                    
61                $dateRange['start'] = strtotime('mon last week'); // first of last month
                    
62                $dateRange['end'] = strtotime('mon this week') - 1;  // first of this month
                    
64            case 'lastMonth':
                    
65                $dateRange['start'] = mktime(0, 0, 0, date('n') - 1, 1); // first of last month
                    
66                $dateRange['end'] = mktime(0, 0, 0, date('n'), 1) - 1;  // first of this month
                    
68            case 'thisYear':
                    
69                $dateRange['start'] = mktime(0, 0, 0, 1, 1);  // first of the year
                    
70                $dateRange['end'] = time(); // now
                    
                
BookmarkPlugin.php https://gitlab.com/BeS/io.schiessle.org | PHP | 442 lines
                    
1<?php
                    
2/**
                    
7 *
                    
8 * PHP version 5
                    
9 *
                    
129        $m->connect('api/bookmarks/:id.:format',
                    
130                    array('action' => 'ApiTimelineBookmarks',
                    
131                          'id' => Nickname::INPUT_FMT,
                    
260                          // TRANS: Menu item title in sample plugin.
                    
261                          _m('A list of your bookmarks'), false, 'nav_timeline_bookmarks');
                    
262        return true;
                    
389
                    
390        if ($nf == 'never' || ($nf == 'sometimes' and $out instanceof ShowstreamAction)) {
                    
391            $attrs['rel'] = 'external';
                    
                
takeeditcp.php https://github.com/Bigjoos/U-232-V1.git | PHP | 302 lines
                    
1<?php
                    
2/**
                    
18*/
                    
19require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'bittorrent.php');
                    
20require_once(INCL_DIR.'user_functions.php');
                    
20require_once(INCL_DIR.'user_functions.php');
                    
21require_once(INCL_DIR.'page_verify.php');
                    
22require_once(INCL_DIR.'password_functions.php');
                    
203    $body = str_replace(array('<#USERNAME#>', '<#SITENAME#>', '<#USEREMAIL#>', '<#IP_ADDRESS#>', '<#CHANGE_LINK#>'),
                    
204    array($CURUSER['username'], $TBDEV['site_name'], $email, $_SERVER['REMOTE_ADDR'], "{$TBDEV['baseurl']}/confirmemail.php?uid={$CURUSER['id']}&key=$hash&email=$obemail"),
                    
205    $lang['takeeditcp_email_body']);
                    
240     $status_archive[] = array('status'=>$CURUSER['last_status'],'date'=>$CURUSER['last_update']);
                    
241     sql_query('INSERT INTO ustatus(userid,last_status,last_update,archive) VALUES('.$CURUSER['id'].','.sqlesc($status).','.TIME_NOW.','.sqlesc(serialize($status_archive)).') ON DUPLICATE KEY UPDATE last_status=values(last_status),last_update=values(last_update),archive=values(archive)') or sqlerr(__FILE__,__LINE__);
                    
242    }
                    
257    $updateset[] = "shoutboxbg = " . sqlesc($shoutboxbg);
                    
258    if(isset($_POST["user_timezone"]) && preg_match('#^\-?\d{1,2}(?:\.\d{1,2})?$#', $_POST['user_timezone']))
                    
259    $updateset[] = "time_offset = " . sqlesc($_POST['user_timezone']);
                    
                
exceptions.php https://bitbucket.org/koronios/cakephp.git | PHP | 625 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Exceptions file. Contains the various exceptions CakePHP will throw until they are
                    
4 * moved into their permanent location.
                    
5 *
                    
6 * PHP 5
                    
7 *
                    
7 *
                    
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
9 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://book.cakephp.org/2.0/en/development/testing.html
                    
17 * @package       Cake.Error
                    
17 * @package       Cake.Error
                    
18 * @since         CakePHP(tm) v 2.0
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
                
main.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 396 lines
                    
1<?php
                    
2/*
                    
89	/**
                    
90	 * Turns out I use this a couple times so let's make it a utility function
                    
91	 * Authenticates a user based on the contents of the login and password parameters
                    
                
Page.php https://bitbucket.org/baruffaldi/webapp-urltube.git | PHP | 395 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once 'Zend/Cache/Core.php';
                    
27
                    
65     *       if false, the cache id won't be dependent of the content of this superglobal array
                    
66     *     - (int) specific_lifetime : cache specific lifetime 
                    
67     *                                (false => global lifetime is used, null => infinite lifetime, 
                    
67     *                                (false => global lifetime is used, null => infinite lifetime, 
                    
68     *                                 integer => this lifetime is used), this "lifetime" is probably only 
                    
69     *                                usefull when used with "regexps" array
                    
99            'cache' => true,
                    
100            'specific_lifetime' => false,
                    
101            'tags' => array(),
                    
323        );
                    
324        $this->save($array, null, $this->_activeOptions['tags'], $this->_activeOptions['specific_lifetime'], $this->_activeOptions['priority']);
                    
325        return $data;
                    
                
exceptions.php https://bitbucket.org/vishallogiciel/admin-bootstrap.git | PHP | 624 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Exceptions file. Contains the various exceptions CakePHP will throw until they are
                    
4 * moved into their permanent location.
                    
5 *
                    
6 * PHP 5
                    
7 *
                    
7 *
                    
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
9 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://book.cakephp.org/2.0/en/development/testing.html
                    
17 * @package       Cake.Error
                    
17 * @package       Cake.Error
                    
18 * @since         CakePHP(tm) v 2.0
                    
19 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
                
index.html https://bitbucket.org/sprakdata/wright.git | HTML | 93 lines
                    
25				<li><a href="#2f">Learning Javascript</a></li>
                    
26				<li><a href="#2g">Learning PHP</a></li>
                    
27			</ol>
                    
44		<h5><a name="1b">1b. Why did we make it?</a></h5>
                    
45		<div>We found that we repeated ourselves regularly by writing a lot of the same code. Over time we developed some tools that helped reduce the code that we had to rewrite, which has the major benefit of lowering the number of bugs as well as making our development more efficient. Over time we found our tools needed more work, and more importantly that they needed to work together, in order to provide a better product as well as more features.&nbsp;<br>
                    
46		</div>
                    
64		<h5><a name="2g">2g. Learning PHP</a></h5>
                    
65		PHP is the programming language that Joomla is built upon. It is a very popular and practical language, which is one of the easiest to learn. That said, it can also be easy to learn the basics and accidentally break more complex code. We recommend avoiding simple 'tweaking' to any PHP code unless you are properly trained in the language. If you want to learn, the best thing to do is to get a book. PHP5 is the current standard, and PHP6 has an uncertain future. So if you choose to get a book, realize PHP6 is not the standard, and publishers got ahead of themselves. However, PHP6 books are likely to sync well with PHP 5.3+, but on the other hand Joomla 1.5 has trouble running on 5.3. So in few words you see its not as simple as reading some basic tutorials online and changing code, so be prepared but don't be overwhelmed. Reading a lot of documentation on the Joomla documentation wiki will also shed light into PHP tips and tricks, especially how they relate to Joomla. Joomla 1.5 is somewhat of a legacy codebase. It works still on PHP4, but PHP4 has not been supported by PHP since end of 2007. Many servers still use PHP4, and that is the reason for the support. However Joomla 1.6 and beyond will require PHP 5.2 or greater.<br>
                    
66		<h3><a name="3">3. Making Customizations</a></h3>
                    
69		<h5><a name="3b">3b. Customizing HTML without altering the template</a></h5>
                    
70		<div>This is the most common thing people do, and we have designed our templates for you to be able to edit your own template freely. If you look at the template directory, you will see template.php. This is the file that is loaded and handles the HTML output. Rather than making changes directly in this file, you can copy it and rename it to custom.php. If you include custom.php in your template directory, it will be used instead of template.php. This will prevent your changes from getting overridden.</div>
                    
71		<h5><a name="3c">3c. Customizing CSS without altering the template</a></h5>
                    
83		<h5><a name="3e">3e. Adding custom PHP</a></h5>
                    
84		<div>We think it is bad practice to put a lot of PHP code into your template directly. It makes it hard to read. That is why you can use the functions.php file to write any PHP code you need. It will be loaded before the template, so any variables will be available in the template. For example, if you want to add some code to check what menu item the current page is in order to provide some unique functionality, you can put the PHP logic in the functions.php file and save a boolean variable to use in the template.</div>
                    
85		<h3><a name="4">4. FAQs</a></h3>
                    
                
Git.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 329 lines
                    
1<?php
                    
2
                    
65        if (!is_array($protocols)) {
                    
66            throw new \RuntimeException('Config value "github-protocols" must be an array, got '.gettype($protocols));
                    
67        }
                    
173
                    
174                    $this->io->writeError('    Authentication required (<info>'.parse_url($url, PHP_URL_HOST).'</info>):');
                    
175                    $auth = array(
                    
254        if (ini_get('safe_mode') && false === strpos(ini_get('safe_mode_allowed_env_vars'), 'GIT_ASKPASS')) {
                    
255            throw new \RuntimeException('safe_mode is enabled and safe_mode_allowed_env_vars does not contain GIT_ASKPASS, can not set env var. You can disable safe_mode with "-dsafe_mode=0" when running composer');
                    
256        }
                    
301    {
                    
302        // git might delete a directory when it fails and php will not know
                    
303        clearstatcache();
                    
305        if (0 !== $this->process->execute('git --version', $ignoredOutput)) {
                    
306            throw new \RuntimeException(self::sanitizeUrl('Failed to clone '.$url.', git was not found, check that it is installed and in your PATH env.' . "\n\n" . $this->process->getErrorOutput()));
                    
307        }
                    
                
structure.php https://github.com/DMeganoski/Gallery-Designer.git | PHP | 322 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
54   ->Column('Vanilla2', 'tinyint(1)', '1')
                    
55   ->Column('DateInserted', 'datetime')
                    
56   ->Column('DateUpdated', 'datetime', TRUE)
                    
70   ->Column('Format', 'varchar(20)', TRUE)
                    
71   ->Column('DateInserted', 'datetime')
                    
72   ->Set($Explicit, $Drop);
                    
85   ->Column('InsertUserID', 'int', FALSE, 'key')
                    
86   ->Column('DateInserted', 'datetime')
                    
87   ->Column('DateReviewed', 'datetime', TRUE)
                    
95   ->Column('File', 'varchar(200)')
                    
96   ->Column('DateInserted', 'datetime')
                    
97   ->Set($Explicit, $Drop);
                    
101   ->Column('AddonID', 'int', FALSE, 'key')
                    
102   ->Column('DateInserted', 'datetime')
                    
103   ->Column('RemoteIp', 'varchar(50)', TRUE)
                    
                
user_add3.php https://bitbucket.org/droidzone/i-mscp.git | PHP | 456 lines
                    
177		$backup, $dns, $software_allowed, $phpini_system, $phpini_al_allow_url_fopen,
                    
178		$phpini_al_display_errors, $phpini_al_disable_functions, $phpini_post_max_size,
                    
179		$phpini_upload_max_filesize, $phpini_max_execution_time,
                    
179		$phpini_upload_max_filesize, $phpini_max_execution_time,
                    
180		$phpini_max_input_time, $phpini_memory_limit, $external_mail
                    
181	) = array_pad(explode(';', $props), 24, 'no');
                    
262							$phpini_system, $phpini_al_allow_url_fopen,
                    
263							$phpini_al_display_errors, $phpini_al_disable_functions, $external_mail));
                    
264
                    
285		$phpini->setData('phpiniSystem', 'yes');
                    
286		$phpini->setData('phpiniPostMaxSize', $phpini_post_max_size);
                    
287		$phpini->setData('phpiniUploadMaxFileSize', $phpini_upload_max_filesize);
                    
288		$phpini->setData('phpiniMaxExecutionTime', $phpini_max_execution_time);
                    
289		$phpini->setData('phpiniMaxInputTime', $phpini_max_input_time);
                    
290		$phpini->setData('phpiniMemoryLimit', $phpini_memory_limit);
                    
                
sysvmsg.c https://gitlab.com/0072016/appengine-php | C | 477 lines
                    
92	PHP_FE(msg_send,					arginfo_msg_send)
                    
93	PHP_FE(msg_receive,					arginfo_msg_receive)
                    
94	PHP_FE(msg_remove_queue,			arginfo_msg_remove_queue)
                    
147	php_info_print_table_row(2, "sysvmsg support", "enabled");
                    
148	php_info_print_table_row(2, "Revision", "$Id: a57e25e6c32775fb53ad02fa294f63e934911815 $");
                    
149	php_info_print_table_end();
                    
217		add_assoc_long(return_value, "msg_perm.mode", stat.msg_perm.mode);
                    
218		add_assoc_long(return_value, "msg_stime",  stat.msg_stime);
                    
219		add_assoc_long(return_value, "msg_rtime",  stat.msg_rtime);
                    
219		add_assoc_long(return_value, "msg_rtime",  stat.msg_rtime);
                    
220		add_assoc_long(return_value, "msg_ctime",  stat.msg_ctime);
                    
221		add_assoc_long(return_value, "msg_qnum",   stat.msg_qnum);
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
                
Filesystem.php https://gitlab.com/pthapa81/MeroSaaman-1.0 | PHP | 573 lines
                    
1<?php
                    
2
                    
391    /**
                    
392     * Get a file's timestamp.
                    
393     *
                    
397     *
                    
398     * @return string|false timestamp or FALSE when fails
                    
399     *                      to fetch timestamp from existing file
                    
400     */
                    
401    public function getTimestamp($path)
                    
402    {
                    
405
                    
406        if (! $object = $this->adapter->getTimestamp($path)) {
                    
407            return false;
                    
409
                    
410        return $object['timestamp'];
                    
411    }
                    
                
backupdb.php https://gitlab.com/Conors99/ppm-1.8 | PHP | 484 lines
                    
128			flash_message($lang->error_backup_not_deleted, 'error');
                    
129			admin_redirect("index.php?module=tools-backupdb");
                    
130		}
                    
195
                    
196		$time = date('dS F Y \a\t H:i', TIME_NOW);
                    
197		$header = "-- MyBB Database Backup\n-- Generated: {$time}\n-- -------------------------------------\n\n";
                    
295
                    
296			$file_from_admindir = 'index.php?module=tools-backupdb&amp;action=dlbackup&amp;file='.basename($file).$ext;
                    
297			flash_message("<span><em>{$lang->success_backup_created}</em></span><p>{$lang->backup_saved_to}<br />{$file}{$ext} (<a href=\"{$file_from_admindir}\">{$lang->download}</a>)</p>", 'success');
                    
442						"file" => $file,
                    
443						"time" => @filemtime(MYBB_ADMIN_DIR.'backups/'.$file),
                    
444						"type" => $ext
                    
465		{
                    
466			$time = my_date('relative', $backup['time']);
                    
467		}
                    
                
cake.php https://github.com/adivik2000/nigraha.git | PHP | 511 lines
                    
2<?php
                    
3/* SVN FILE: $Id: cake.php 5318 2007-06-20 09:01:21Z phpnut $ */
                    
4/**
                    
10 *
                    
11 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
                    
12 * Copyright 2005-2007,	Cake Software Foundation, Inc.
                    
20 * @copyright		Copyright 2005-2007, Cake Software Foundation, Inc.
                    
21 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
22 * @package			cake
                    
148		}
                    
149		define('PHP5', (phpversion() >= 5));
                    
150		define('DS', DIRECTORY_SEPARATOR);
                    
165		if (!isset($this->args[0]) || !isset($this->params['working'])) {
                    
166			$this->stdout("\nCakePHP Console: ");
                    
167			$this->stdout('This file has been loaded incorrectly and cannot continue.');
                    
                
CPgsqlSchema.php https://bitbucket.org/aagraz/yii.git | PHP | 425 lines
                    
1<?php
                    
2/**
                    
32		'decimal' => 'numeric',
                    
33		'datetime' => 'timestamp',
                    
34		'timestamp' => 'timestamp',
                    
34		'timestamp' => 'timestamp',
                    
35		'time' => 'time',
                    
36		'date' => 'date',
                    
                
adodb-session.php https://github.com/CORE-POS/IS4C.git | PHP | 440 lines
                    
10
                    
11  Latest version of ADODB is available at http://php.weblogs.com/adodb
                    
12  ======================================================================
                    
108
                    
109 /* if database time and system time is difference is greater than this, then give warning */
                    
110 define('ADODB_SESSION_SYNCH_SECS',60);
                    
112 /*
                    
113	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
                    
114*/
                    
158
                    
159	$ADODB_SESS_LIFE = ini_get('session.gc_maxlifetime');
                    
160	if ($ADODB_SESS_LIFE <= 1) {
                    
161	 // bug in PHP 4.0.3 pl 1  -- how about other versions?
                    
162	 //print "<h3>Session Error: PHP.INI setting <i>session.gc_maxlifetime</i>not set: $ADODB_SESS_LIFE</h3>";
                    
163	 	$ADODB_SESS_LIFE=1440;
                    
                
possiotion_responsiblity_information.php https://gitlab.com/varsha_evonix/intranet | PHP | 206 lines
                    
1<div class='feedback'>
                    
2<?php if($this->session->flashdata('sucess'))
                    
3 echo "
                    
18
                    
19<div class="tab-pane fade <?php if( $this->session->userdata("page_name")=="page_responsiblities")  { echo "in active"; $this->session->unset_userdata("page_name");}else {} ?>" id="possiotionOrResponsiblityInformation">
                    
20<form role="form" id="poss_res_info" method="post" action="<?php echo base_url().'student/addResponsblity/'.$this->session->userdata('stud_id').'/page_responsiblities/';?>" enctype="multipart/form-data">  
                    
21<h4 class="page-header">Position or Responsibility Information</h4>
                    
22<?php if($resposiblity)
                    
23 {    ?>
                    
44                                                <th>Check Status by Placement team</th>
                    
45                                               <?php if($this->session->userdata("role") == "PLACEMENT_TEAM") {echo "<th>Delete</th> ";} else{
                    
46                                               	 if( visiblityStatus_empty($this->session->userdata("role"),$form_status[10]) )echo "<th>Delete</th> "; }  ?>
                    
49                                        <tbody>
                    
50                                           <?php $counter=0; foreach ($resposiblity as $r ) {
                    
51                                                  $counter ++;
                    
                
ajax.js https://gitlab.com/phamngsinh/baitaplon_sinhvien | JavaScript | 533 lines
                    
68	var sec = dte.getSeconds();
                    
69	ajaxLoad('aindex.php?act=dathangmoi&t=1&sid='+hrs+''+min+''+sec+'','dathang');
                    
70}
                    
80	var sec = dte.getSeconds();
                    
81	ajaxLoad('aindex.php?act=dathangmoi&t=0&sid='+hrs+''+min+''+sec+'','dathang');
                    
82}
                    
220        {
                    
221        Load2('aindex.php?act=action&stv=checkso&sosim='+field.value+'');	
                    
222        }
                    
224        {
                    
225        Load2('aindex.php?act=action&stv=checkso&sosim='+field.value+'');	
                    
226        }
                    
229{
                    
230	var currentTime = new Date()
                    
231	var month = currentTime.getMonth() + 1
                    
                
Rss.php https://github.com/vtiger-jp/vtigercrm-5.1.x-ja.git | PHP | 464 lines
                    
1<?php
                    
2/*********************************************************************************
                    
16
                    
17require_once('data/CRMEntity.php');
                    
18require_once('include/database/PearDatabase.php');
                    
19// Require the xmlParser class
                    
20//require_once('include/feedParser/xmlParser.php');
                    
21
                    
22// Require the feedParser class
                    
23//require_once('include/feedParser/feedParser.php');
                    
24
                    
28{
                    
29	var $rsscache_time = 1200;
                    
30	
                    
177			}
                    
178			$shtml .= "<td class=\"rssTitle\"><a href=\"index.php?module=Rss&action=ListView&record=$allrssrow[rssid]
                    
179				\" class=\"rssTitle\">".$allrssrow[rsstitle]."</a></td>";
                    
                
Store.php https://gitlab.com/ealexis.t/trends | PHP | 707 lines
                    
1<?php
                    
2
                    
196    {
                    
197        return sha1(uniqid('', true).Str::random(25).microtime(true));
                    
198    }
                    
218     */
                    
219    public function invalidate($lifetime = null)
                    
220    {
                    
222
                    
223        return $this->migrate(true, $lifetime);
                    
224    }
                    
228     */
                    
229    public function migrate($destroy = false, $lifetime = null)
                    
230    {
                    
                
ez_sql_core.php https://github.com/LamCiuLoeng/BookShare.git | PHP | 552 lines
                    
325				// Only use this cache file if less than 'cache_timeout' (hours)
                    
326				if ( (time() - filemtime($cache_file)) > ($this->cache_timeout*3600) )
                    
327				{
                    
527		{
                    
528			$this->timers[$timer_name] = $this->timer_get_cur();
                    
529		}
                    
532		{
                    
533			return round($this->timer_get_cur() - $this->timers[$timer_name],2);
                    
534		}
                    
542					'query' => $this->last_query,
                    
543					'time' => $this->timer_elapsed($timer_name)
                    
544				);
                    
546			
                    
547			$this->total_query_time += $this->timer_elapsed($timer_name);
                    
548		}
                    
                
StorageServiceSettings.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 485 lines
                    
1<?php
                    
2
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   WindowsAzure\Common\Internal
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
22 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
23 */
                    
35 * @package   WindowsAzure\Common\Internal
                    
36 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
37 * @copyright 2012 Microsoft Corporation
                    
39 * @version   Release: @package_version@
                    
40 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
41 */
                    
                
Particle3DTest.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 480 lines
                    
41    ADD_TEST_CASE(Particle3DAdvancedLodSystemDemo);
                    
42    ADD_TEST_CASE(Particle3DTimeShiftDemo);
                    
43    ADD_TEST_CASE(Particle3DUVAnimDemo);
                    
78    listener->onTouchesEnded = CC_CALLBACK_2(Particle3DTestDemo::onTouchesEnded, this);
                    
79    _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this);
                    
80
                    
220
                    
221std::string Particle3DTimeShiftDemo::subtitle() const 
                    
222{
                    
222{
                    
223    return "TimeShift";
                    
224}
                    
225
                    
226bool Particle3DTimeShiftDemo::init()
                    
227{
                    
                
DatabaseBackend.php https://gitlab.com/geeta7/drupal | PHP | 485 lines
                    
1<?php
                    
2
                    
128
                    
129    // Check expire time.
                    
130    $cache->valid = $cache->expire == Cache::PERMANENT || $cache->expire >= REQUEST_TIME;
                    
209        'expire' => $item['expire'],
                    
210        'created' => round(microtime(TRUE), 3),
                    
211        'tags' => implode(' ', $item['tags']),
                    
304        $this->connection->update($this->bin)
                    
305          ->fields(array('expire' => REQUEST_TIME - 1))
                    
306          ->condition('cid', $cids_chunk, 'IN')
                    
320      $this->connection->update($this->bin)
                    
321        ->fields(array('expire' => REQUEST_TIME - 1))
                    
322        ->execute();
                    
335        ->condition('expire', Cache::PERMANENT, '<>')
                    
336        ->condition('expire', REQUEST_TIME, '<')
                    
337        ->execute();
                    
                
action.js https://gitlab.com/Rad1calDreamer/honey | JavaScript | 511 lines
                    
178
                    
179		BX.Scale.AdminFrame.timeIntervalId = setInterval(BX.proxy(this.checkAsyncState, this), BX.Scale.AdminFrame.timeAsyncRefresh);
                    
180
                    
324					this.timeToCompleteInterval = window.setInterval(function(){
                    
325						var timePeriod = _this.makeTimeToCompleteString(_this.timeToComplete);
                    
326						if(timePeriod)
                    
461			timePeriod = availableDateTime - serverNow,
                    
462			timeToComplete = now.getTime() + timePeriod;
                    
463
                    
464			if(now > timeToComplete)
                    
465				timeToComplete.setTime(now.getTime()+timePeriod);
                    
466
                    
473	 */
                    
474	BX.Scale.Action.prototype.makeTimeToCompleteString = function(timeToComplete)
                    
475	{
                    
                
ProjectsLocationsMemberships.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 283 lines
                    
1<?php
                    
2/*
                    
60   * For example, consider a situation where you make an initial request and the
                    
61   * request times out. If you make the request again with the same request ID,
                    
62   * the server can check if original operation with the same request ID was
                    
89   * For example, consider a situation where you make an initial request and the
                    
90   * request times out. If you make the request again with the same request ID,
                    
91   * the server can check if original operation with the same request ID was
                    
225   * For example, consider a situation where you make an initial request and the
                    
226   * request times out. If you make the request again with the same request ID,
                    
227   * the server can check if original operation with the same request ID was
                    
                
packet.cpp https://gitlab.com/iranjith4/hhvm | C++ | 432 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com)     |
                    
6   | Copyright (c) 1997-2010 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 of the PHP license,      |
                    
9   | that is bundled with this package in the file LICENSE, and is        |
                    
16*/
                    
17#include "hphp/runtime/ext/soap/packet.h"
                    
18
                    
19#include <memory>
                    
20#include "hphp/runtime/ext/soap/ext_soap.h"
                    
21#include "hphp/util/hash-map-typedefs.h"
                    
                
upgrade_slims8_akasia.sql.php https://gitlab.com/mucill/majalengka | PHP | 269 lines
                    
1<?php
                    
2
                    
32  `code2` char(1) COLLATE utf8_unicode_ci NOT NULL,
                    
33  `input_date` datetime NOT NULL,
                    
34  `last_update` datetime NOT NULL
                    
106  `code2` char(1) COLLATE utf8_unicode_ci NOT NULL,
                    
107  `input_date` datetime NOT NULL,
                    
108  `last_update` datetime NOT NULL
                    
150  `code2` char(1) COLLATE utf8_unicode_ci NOT NULL,
                    
151  `input_date` datetime NOT NULL,
                    
152  `last_update` datetime NOT NULL
                    
222$sql['insert'][] = "INSERT IGNORE INTO `setting` (`setting_name`, `setting_value`) VALUES
                    
223('shortcuts_1', 'a:6:{i:0;s:42:\"Daftar Bibliografi|/bibliography/index.php\";i:1;s:61:\"Tambah Bibliografi Baru|/bibliography/index.php?action=detail\";i:2;s:51:\"Mulai Transaksi|/circulation/index.php?action=start\";i:3;s:48:\"Pengembalian Kilat|/circulation/quick_return.php\";i:4;s:42:\"Lihat Daftar Anggota|/membership/index.php\";i:5;s:37:\"Shortcut Setting|/system/shortcut.php\";}');";
                    
224
                    
                
twitter-timeline.php https://gitlab.com/hunt9310/ras | PHP | 470 lines
                    
1<?php
                    
2
                    
3/*
                    
4 * Based on Evolution Twitter Timeline
                    
5 * (https://wordpress.org/extend/plugins/evolution-twitter-timeline/)
                    
65		if ( 'widgets.php' === $hook ) {
                    
66			wp_enqueue_script( 'twitter-timeline-admin', plugins_url( 'twitter-timeline-admin.js', __FILE__ ) );
                    
67		}
                    
135		 *
                    
136		 * @param string $timeline_placeholder Timeline placeholder text.
                    
137		 */
                    
137		 */
                    
138		$timeline_placeholder = apply_filters( 'jetpack_twitter_timeline_placeholder', $timeline_placeholder );
                    
139
                    
452			<label for="<?php echo $this->get_field_id( 'theme' ); ?>">
                    
453				<?php _e( 'Timeline Theme:', 'jetpack' ); ?>
                    
454			</label>
                    
                
InstallSchema.php https://gitlab.com/yousafsyed/easternglamor | PHP | 407 lines
                    
1<?php
                    
2/**
                    
19     * {@inheritdoc}
                    
20     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
21     */
                    
323            'updated_at',
                    
324            \Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
                    
325            null,
                    
325            null,
                    
326            ['nullable' => true, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_UPDATE],
                    
327            'Last Update Timestamp'
                    
                
eventapi.html.md https://gitlab.com/ggsaavedra/PredictionIO | Markdown | 412 lines
                    
366
                    
367- `startTime`: time in ISO8601 format. Return events with `eventTime >= startTime`.
                    
368- `untilTime`: time in ISO8601 format. Return events with `eventTime < untilTime`.
                    
384```
                    
385$ curl -i -X GET "http://localhost:7070/events.json?accessKey=<your_accessKey>&startTime=<time in ISO8601 format>"
                    
386```
                    
390```
                    
391$ curl -i -X GET "http://localhost:7070/events.json?accessKey=<your_accessKey>&untilTime=<time in ISO8601 format>"
                    
392```
                    
393
                    
394For example, get all events of an app with `eventTime >= startTime` and `eventTime < untilTime`:
                    
395
                    
396```
                    
397$ curl -i -X GET "http://localhost:7070/events.json?accessKey=<your_accessKey>&startTime=<time in ISO8601 format>&untilTime=<time in ISO8601 format>"
                    
398```
                    
                
WizardController.php https://github.com/rgranadino/magento-mirror.git | PHP | 464 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
164        $locale = $this->getRequest()->getParam('locale');
                    
165        $timezone = $this->getRequest()->getParam('timezone');
                    
166        $currency = $this->getRequest()->getParam('currency');
                    
168            Mage::getSingleton('install/session')->setLocale($locale);
                    
169            Mage::getSingleton('install/session')->setTimezone($timezone);
                    
170            Mage::getSingleton('install/session')->setCurrency($currency);
                    
                
Advertiser.php https://bitbucket.org/blackriver/openx.git | PHP | 371 lines
                    
1<?php
                    
2
                    
35// Required classes
                    
36require_once MAX_PATH . '/lib/OA/Dal/Statistics.php';
                    
37
                    
77                SUM(s.total_revenue) AS revenue,
                    
78                DATE_FORMAT(s.date_time, '%Y-%m-%d') AS day,
                    
79                HOUR(s.date_time) AS hour
                    
                
Descarte.php https://gitlab.com/SFMSP/Hagape | PHP | 346 lines
                    
1<?php
                    
2
                    
132            //Formata os dados para serem salvos
                    
133            $data['dataDescarte'] = new \DateTime($this->dateTimeFormat->formatUs($data['dataDescarte']));
                    
134            $data['estoqueOrigem'] = $this->getEm()->getReference("Admin\Entity\Estoque", $this->dadosUser['filtrosSelecionados']['estoque']['id']);
                    
168                    $dadosMovimentacao['valorTotal'] = $itemExcluido->getValorTotal();
                    
169                    $dadosMovimentacao['dataMovimentacao'] = new \DateTime('now');
                    
170                    $dadosMovimentacao['tipoMovimentacao'] = MovimentacaoEntity::TIPO_MOVIMENTACAO_ENTRADA;
                    
214                        $dadosMovimentacao['valorTotal'] = $data['valor-total'][$key];
                    
215                        $dadosMovimentacao['dataMovimentacao'] = new \DateTime('now');
                    
216                        $dadosMovimentacao['tipoMovimentacao'] = MovimentacaoEntity::TIPO_MOVIMENTACAO_SAIDA;
                    
                
Canvas.java https://github.com/neelance/swt4ruby.git | Java | 407 lines
                    
36 * @see <a href="http://www.eclipse.org/swt/snippets/#canvas">Canvas snippets</a>
                    
37 * @see <a href="http://www.eclipse.org/swt/examples.php">SWT Example: ControlExample</a>
                    
38 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
                    
112 * the programmer must hide and show the caret when
                    
113 * drawing in the window any other time.
                    
114 * </p>
                    
144 */
                    
145public IME getIME () {
                    
146	checkWidget ();
                    
342 * the programmer must hide and show the caret when
                    
343 * drawing in the window any other time.
                    
344 * </p>
                    
389 */
                    
390public void setIME (IME ime) {
                    
391	checkWidget ();
                    
                
game.php https://github.com/galitush2005/RTL-BIDI-Hebrew-Moodle-Plugins.git | PHP | 275 lines
                    
1<?PHP // $Id: game.php,v 1.2 2008/10/05 09:15:00 bdaloukas Exp $ 
                    
2//Translated by Paweł Strzałkowski
                    
72$string[ 'sudoku_win'] = 'Gratulacje !!!';
                    
73$string[ 'timefinish'] = 'Koniec gry';
                    
74$string[ 'timelastattempt'] = 'Ostatnia próba';
                    
74$string[ 'timelastattempt'] = 'Ostatnia próba';
                    
75$string[ 'timestart'] = 'Start';
                    
76$string[ 'and'] = 'i';
                    
88$string['numattempts'] = '$a->studentnum studentów dokonało $a->attemptnum prób';
                    
89$string['timecompleted'] = 'Ukończono';
                    
90$string['marks'] = 'Oceny';
                    
97$string['temporaryblocked'] = 'Tymczasowo nie masz prawa ponownego podjęcia gry.<br />Będziesz mógł podjąć kolejną próbę: ';
                    
98$string['confirmstartattempttimelimit'] = 'Ta gra ma ograniczenie czasowe i limit $a prób. Za chwilę rozpoczniesz nową próbę. Czy chcesz kontynuować?';
                    
99$string['confirmstarttimelimit'] = 'Ta gra ma ograniczenie czasowe. Czy na pewno chcesz rozpocząć?';
                    
113$string[ 'snakes_new'] = 'Nowa gra';
                    
114$string[ 'formatdatetime'] = '%%d %%b %%Y, %%I:%%M %%p';
                    
115$string['gametimelimit'] = 'Limit czasu: $a';
                    
                
admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
2
                    
3require_once(APPPATH.'controllers/project.php');
                    
4
                    
126		$datestring = "%Y-%m-%d %h:%i:%s";
                    
127		$time = time();
                    
128		$review_date = mdate($datestring, $time);
                    
460		$datestring = "%Y-%m-%d %H:%i:%s";
                    
461		$time = time();			
                    
462		$now =  mdate($datestring, $time);
                    
                
WizardController.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 464 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
164        $locale = $this->getRequest()->getParam('locale');
                    
165        $timezone = $this->getRequest()->getParam('timezone');
                    
166        $currency = $this->getRequest()->getParam('currency');
                    
168            Mage::getSingleton('install/session')->setLocale($locale);
                    
169            Mage::getSingleton('install/session')->setTimezone($timezone);
                    
170            Mage::getSingleton('install/session')->setCurrency($currency);
                    
                
rating_test.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 241 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
17/**
                    
18 * Unit tests for rating/lib.php
                    
19 *
                    
20 * @package    core_ratings
                    
21 * @category   phpunit
                    
22 * @copyright  2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
                    
60            //user 1's items. Average == 2
                    
61            array('contextid'=>$ctxid ,'component'=>'mod_forum','ratingarea'=>'post','itemid'=>1 ,'scaleid'=>10 ,'rating'=>1 ,'userid'=>2 ,'timecreated'=>1 ,'timemodified'=>1),
                    
62            array('contextid'=>$ctxid ,'component'=>'mod_forum','ratingarea'=>'post','itemid'=>1 ,'scaleid'=>10 ,'rating'=>3 ,'userid'=>3 ,'timecreated'=>1 ,'timemodified'=>1),
                    
63            //user 2's items. Average == 3
                    
64            array('contextid'=>$ctxid ,'component'=>'mod_forum','ratingarea'=>'post','itemid'=>2 ,'scaleid'=>10 ,'rating'=>1 ,'userid'=>1 ,'timecreated'=>1 ,'timemodified'=>1),
                    
65            array('contextid'=>$ctxid ,'component'=>'mod_forum','ratingarea'=>'post','itemid'=>2 ,'scaleid'=>10 ,'rating'=>5 ,'userid'=>3 ,'timecreated'=>1 ,'timemodified'=>1),
                    
66            //user 3's items. Average == 4
                    
67            array('contextid'=>$ctxid ,'component'=>'mod_forum','ratingarea'=>'post','itemid'=>3 ,'scaleid'=>10 ,'rating'=>3 ,'userid'=>1 ,'timecreated'=>1 ,'timemodified'=>1),
                    
68            array('contextid'=>$ctxid ,'component'=>'mod_forum','ratingarea'=>'post','itemid'=>3 ,'scaleid'=>10 ,'rating'=>5 ,'userid'=>2 ,'timecreated'=>1 ,'timemodified'=>1)
                    
                
PorterStemmer.class.php https://github.com/mori-dev/emacs-symfony.git | PHP | 446 lines
                    
1<?php
                    
2    /**
                    
2    /**
                    
3    * Copyright (c) 2005 Richard Heyes (http://www.phpguru.org/)
                    
4    *
                    
21    /**
                    
22    * PHP5 Implementation of the Porter Stemmer algorithm. Certain elements
                    
23    * were borrowed from the (broken) implementation by Jon Abernathy.
                    
49        * Cache for mass stemmings. Do not use for mass stemmings of *different* words. Use for
                    
50        * stemming words from documents for example, where the same word may crop up multiple times.
                    
51        * @var array
                    
                
index_002.php https://github.com/robert-fu-berlin/Exercises-Web-based-Information-Systems.git | PHP | 458 lines
                    
12  height : 400,
                    
13  timeout : 5000,
                    
14  zoom : -1,
                    
21  coordurls : [
                    
22                'http://stable.toolserver.org/geohack/geohack.php?',
                    
23                'http://stable.ts.wikimedia.org/geohack/geohack.php?',
                    
23                'http://stable.ts.wikimedia.org/geohack/geohack.php?',
                    
24                'http://toolserver.org/~magnus/geo/geohack.php?',
                    
25                'http://toolserver.org/~geohack/geohack.php?',
                    
315
                    
316  startTime = (new Date()).getTime();
                    
317
                    
324   // check for timeout (every 10 links only)
                    
325   if( key % 10 === 9 && (new Date()).getTime() > startTime + wc.timeout ) { break; }
                    
326
                    
                
Batch.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 514 lines
                    
1<?php
                    
2
                    
68   *
                    
69   * @var datetime
                    
70   */
                    
82   *
                    
83   * @var datetime
                    
84   */
                    
136  /**
                    
137   * @var datetime
                    
138   */
                    
254          'name' => 'created_date',
                    
255          'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
                    
256          'title' => ts('Batch Created Date'),
                    
280          'name' => 'modified_date',
                    
281          'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
                    
282          'title' => ts('Batch Modified Date'),
                    
                
core.php https://bitbucket.org/daveschwan/ronin-group.git | PHP | 385 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @package       app.Config
                    
190 * - `Session.cookie` - The name of the cookie to use. Defaults to 'CAKEPHP'
                    
191 * - `Session.timeout` - The number of minutes you want sessions to live for. This timeout is handled by CakePHP
                    
192 * - `Session.cookieTimeout` - The number of minutes you want session cookies to live for.
                    
232/**
                    
233 * Apply timestamps with the last modified time to static assets (js, css, images).
                    
234 * Will append a query string parameter containing the time the file was modified. This is
                    
273 * `Config.timezone` is available in which you can set users' timezone string.
                    
274 * If a method of CakeTime class is called with $timezone parameter as null and `Config.timezone` is set,
                    
275 * then the value of `Config.timezone` will be used. This feature allows you to set users' timezone just
                    
                
pearcmd.php https://github.com/ianbogda/FileZ.git | PHP | 445 lines
                    
28if ('/usr/share/php' != '@'.'include_path'.'@') {
                    
29    ini_set('include_path', '/usr/share/php');
                    
30    $raw = false;
                    
59if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) {
                    
60    echo 'ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini';
                    
61    exit(1);
                    
132// this is used in the error handler to retrieve a relative path
                    
133$_PEAR_PHPDIR = $config->get('php_dir');
                    
134$ui->setConfig($config);
                    
166                );
                    
167                $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php');
                    
168                $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data');
                    
377        return "PEAR Version: ".$GLOBALS['pear_package_version'].
                    
378               "\nPHP Version: ".phpversion().
                    
379               "\nZend Engine Version: ".zend_version().
                    
                
adodb-informix72.inc.php https://github.com/umbecr/camilaframework.git | PHP | 475 lines
                    
1<?php
                    
2/*
                    
26	var $fmtDate = "'Y-m-d'";
                    
27	var $fmtTimeStamp = "'Y-m-d H:i:s'";
                    
28	var $hasInsertID = true;
                    
53	var $sysDate = 'TODAY';
                    
54	var $sysTimeStamp = 'CURRENT';
                    
55	var $cursorType = IFX_SCROLL; // IFX_SCROLL or IFX_HOLD or 0
                    
                
auth_tkt.py https://bitbucket.org/eaviles/gobierno.git | Python | 380 lines
                    
39
                    
40import time as time_mod
                    
41try:
                    
92        if time is None:
                    
93            self.time = time_mod.time()
                    
94        else:
                    
94        else:
                    
95            self.time = time
                    
96        self.cookie_name = cookie_name
                    
170    digest0 = md5(
                    
171        encode_ip_timestamp(ip, timestamp) + secret + userid + '\0'
                    
172        + tokens + '\0' + user_data).hexdigest()
                    
175
                    
176def encode_ip_timestamp(ip, timestamp):
                    
177    ip_chars = ''.join(map(chr, map(int, ip.split('.'))))
                    
                
NetClient.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 629 lines
                    
165	 */
                    
166	public function SetTimeOuts($iConnectTimeOut = 10, $iSocketTimeOut = 10)
                    
167	{
                    
168		$this->iConnectTimeOut = 5 < $iConnectTimeOut ? $iConnectTimeOut : 5;
                    
169		$this->iSocketTimeOut = 5 < $iSocketTimeOut ? $iSocketTimeOut : 5;
                    
170	}
                    
304			{
                    
305				@\stream_set_timeout($this->rConnect, $this->iSocketTimeOut);
                    
306			}
                    
348			{
                    
349				$this->writeLog((\microtime(true) - $this->iStartConnectTime).' (net session)',
                    
350					\MailSo\Log\Enumerations\Type::TIME);
                    
502			$aSocketStatus = @\stream_get_meta_data($this->rConnect);
                    
503			if (isset($aSocketStatus['timed_out']) && $aSocketStatus['timed_out'])
                    
504			{
                    
                
PersistentTokenBasedRememberMeServicesTest.php https://github.com/jdewit/symfony.git | PHP | 329 lines
                    
1<?php
                    
2
                    
26
                    
27class PersistentTokenBasedRememberMeServicesTest extends \PHPUnit_Framework_TestCase
                    
28{
                    
71        $userProvider = $this->getProvider();
                    
72        $service = $this->getService($userProvider, array('name' => 'foo', 'path' => null, 'domain' => null, 'always_remember_me' => true, 'lifetime' => 3600, 'secure' => false, 'httponly' => false));
                    
73        $request = new Request;
                    
79            ->method('loadTokenBySeries')
                    
80            ->will($this->returnValue(new PersistentToken('fooclass', 'fooname', 'fooseries', 'foovalue', new \DateTime())))
                    
81        ;
                    
106            ->method('loadTokenBySeries')
                    
107            ->will($this->returnValue(new PersistentToken('fooclass', 'foouser', 'fooseries', 'anotherFooValue', new \DateTime())))
                    
108        ;
                    
294        $this->assertTrue($cookie->isHttpOnly());
                    
295        $this->assertTrue($cookie->getExpiresTime() > time() + 3590 && $cookie->getExpiresTime() < time() + 3610);
                    
296        $this->assertEquals('myfoodomain.foo', $cookie->getDomain());
                    
                
upgrade.php https://github.com/plymouthstate/moodle.git | PHP | 350 lines
                    
1<?php
                    
2
                    
21 *
                    
22 * Sometimes, changes between versions involve
                    
23 * alterations to database structures and other
                    
35 *
                    
36 * Please do not forget to use upgrade_set_timeout()
                    
37 * before any action that may take longer time to finish.
                    
114                $i++;
                    
115                upgrade_set_timeout(60); // set up timeout, may also abort execution
                    
116                $pbar->update($i, $count, "Migrating forum posts - $i/$count.");
                    
268        if ($dbman->table_exists($table)) {
                    
269            //forum ratings only have a single time column so use it for both time created and modified
                    
270            $sql = "INSERT INTO {rating} (contextid, scaleid, itemid, rating, userid, timecreated, timemodified)
                    
271
                    
272                    SELECT cxt.id, f.scale, r.post AS itemid, r.rating, r.userid, r.time AS timecreated, r.time AS timemodified
                    
273                      FROM {forum_ratings} r
                    
                
directories.php https://github.com/projectfork/Projectfork.git | PHP | 420 lines
                    
1<?php
                    
2/**
                    
43                'a.checked_out',
                    
44                'a.checked_out_time',
                    
45                'a.access', 'access_level'
                    
75                'a.id, a.project_id, a.title, a.alias, a.description, a.checked_out, '
                    
76                . 'a.checked_out_time, a.created, a.access, a.created_by, a.parent_id, '
                    
77                . 'a.lft, a.rgt, a.level, a.path, a.protected, a.attribs'
                    
270        }
                    
271        catch (RuntimeException $e) {
                    
272            $this->setError($e->getMessage());
                    
292        }
                    
293        catch (RuntimeException $e) {
                    
294            $this->setError($e->getMessage());
                    
314        }
                    
315        catch (RuntimeException $e) {
                    
316            $this->setError($e->getMessage());
                    
                
CookieJar.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 441 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once "Zend/Uri.php";
                    
27/**
                    
29 */
                    
30require_once "Zend/Http/Cookie.php";
                    
31/**
                    
33 */
                    
34require_once "Zend/Http/Response.php";
                    
35
                    
142        } else {
                    
143            require_once 'Zend/Http/Exception.php';
                    
144            throw new Zend_Http_Exception( 'Supplient argument is not a valid cookie string or object' );
                    
199     * @param int                  $ret_as Whether to return cookies as objects of Zend_Http_Cookie or as strings
                    
200     * @param int                  $now Override the current time when checking for expiry time
                    
201     *
                    
                
bp-loader.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 487 lines
                    
1<?php
                    
2/**
                    
40	 * Do not directly reference the variables below in your code. Their names
                    
41	 * and locations in the BuddyPress class are subject to change at any time.
                    
42	 *
                    
42	 *
                    
43	 * Most of them have reference functions located in bp-core-functions.php.
                    
44	 * The ones that don't can be accessed via their respective WordPress API's.
                    
260		// Place your custom code (actions/filters) in a file called
                    
261		// '/plugins/bp-custom.php' and it will be loaded before anything else.
                    
262		if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) )
                    
262		if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) )
                    
263			require( WP_PLUGIN_DIR . '/bp-custom.php' );
                    
264
                    
354		// Load the WP abstraction file so BuddyPress can run on all WordPress setups.
                    
355		require( BP_PLUGIN_DIR . '/bp-core/bp-core-wpabstraction.php' );
                    
356
                    
                
Ntp.php https://github.com/Exercise/zf2.git | PHP | 434 lines
                    
29 *
                    
30 * @uses      \Zend\TimeSync\TimeSync
                    
31 * @uses      \Zend\TimeSync\Exception
                    
54    {
                    
55        $this->_timeserver = 'udp://' . $timeserver;
                    
56        if ($port !== null) {
                    
214            throw new Exception('could not connect to ' .
                    
215                "'$this->_timeserver' on port '$this->_port', reason: 'server timed out'");
                    
216        }
                    
247        fwrite($this->_socket, $data);
                    
248        stream_set_timeout($this->_socket, TimeSync::$options['timeout']);
                    
249    }
                    
429        $this->_info['offset'] /= 2;
                    
430        $time = (time() - $this->_info['offset']);
                    
431
                    
                
tcp_cubic.c https://gitlab.com/karrei/inel-imx6-kernel | C | 497 lines
                    
87	u32	last_cwnd;	/* the last snd_cwnd */
                    
88	u32	last_time;	/* time when updated last_cwnd */
                    
89	u32	bic_origin_point;/* origin point of bic function */
                    
124#if HZ < 1000
                    
125	return ktime_to_ms(ktime_get_real());
                    
126#else
                    
214	if (ca->last_cwnd == cwnd &&
                    
215	    (s32)(tcp_time_stamp - ca->last_time) <= HZ / 32)
                    
216		return;
                    
218	ca->last_cwnd = cwnd;
                    
219	ca->last_time = tcp_time_stamp;
                    
220
                    
221	if (ca->epoch_start == 0) {
                    
222		ca->epoch_start = tcp_time_stamp;	/* record the beginning of an epoch */
                    
223		ca->ack_cnt = 1;			/* start counting */
                    
                
block_scope.h https://github.com/tstarling/hiphop-php.git | C Header | 374 lines
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
19
                    
20#include "hphp/compiler/hphp.h"
                    
21
                    
21
                    
22#include "hphp/util/bits.h"
                    
23#include "hphp/util/lock.h"
                    
23#include "hphp/util/lock.h"
                    
24#include "hphp/runtime/base/macros.h"
                    
25
                    
32
                    
33namespace HPHP {
                    
34///////////////////////////////////////////////////////////////////////////////
                    
                
settings.php https://github.com/ushahidi/Ushahidi-Localizations.git | PHP | 213 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2// DO NOT EDIT
                    
40	) ,
                    
41	'cache_pages_lifetime' => array(
                    
42		'in_array' => 'ظاهرا فیلد طول عمر صفحات مخزن شامل یک مقدار معتبر نمی باشد.',
                    
46		'clean_url_disabled' => 'به نظر می رسد سرور شما برای به کار بردن URL های پاک تنظیم نشده است. باید تنظیمات سرور خود را تغییر دهید تا URL های پاک را فعال کنید.  برای دریافت اطلاعات بیشتر از چگونگی فعال سازی URL  های پاک  به این پست <a href="http://forums.ushahidi.com/topic/server-configuration-for-apache-mod-rewrite" target="_blank"> رجوع کنید. </a>',
                    
47		'clean_url_enabled' => 'این گزینه  امکان دسترسی به یوشهیدی توسط URL های پاک را فعال می کند (بدون "index.php" در URL)',
                    
48		'enable_clean_url' => 'فعال کردن URL  های پاک',
                    
126	) ,
                    
127	'map_timeline' => 'محور زمانی نقشه ',
                    
128	'map_settings' => 'تنظیمات نقشه',
                    
141		'cache_pages' => 'صفحات مخزن',
                    
142		'cache_pages_lifetime' => 'طول عمر صفحات مخزن',
                    
143		'checkins' => 'فعال کردن ورودها',
                    
169		'tagline' => 'برچسب سایت',
                    
170		'timezone' => 'منطقه ی زمانی',
                    
171		'title' => 'تنظیمات سایت',
                    
                
DateTimeConverterTest.php https://github.com/TYPO3/TYPO3.CMS.git | PHP | 392 lines
                    
72                ->method('getConfigurationValue')
                    
73                ->with(DateTimeConverter::class, DateTimeConverter::CONFIGURATION_DATE_FORMAT)
                    
74                ->willReturn(null);
                    
121                    ->method('getConfigurationValue')
                    
122                    ->with(DateTimeConverter::class, DateTimeConverter::CONFIGURATION_DATE_FORMAT)
                    
123                    ->willReturn($dateFormat);
                    
192        $this->expectExceptionCode(1308003914);
                    
193        $this->converter->convertFrom(['hour' => '12', 'minute' => '30'], 'DateTime');
                    
194    }
                    
298            'dateFormat' => 'Y-m-d',
                    
299            'timezone' => 'Invalid/Timezone',
                    
300        ];
                    
357                    ->method('getConfigurationValue')
                    
358                    ->with(DateTimeConverter::class, DateTimeConverter::CONFIGURATION_DATE_FORMAT)
                    
359                    ->willReturn($dateFormat);
                    
                
package.cpp https://github.com/kevlund/hiphop-php.git | C++ | 414 lines
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
107
                    
108void Package::addPHPDirectory(const char *path, bool force) {
                    
109  vector<string> files;
                    
322      m_discoveredStaticFiles.find(fileName) == m_discoveredStaticFiles.end()) {
                    
323    if (Option::CachePHPFile) {
                    
324      m_discoveredStaticFiles[fileName] = fullPath;
                    
404    q.filterBy("run = %d", runId);
                    
405    q.filterBy("kind IN ('PHPInclude', 'PHPTemplate')");
                    
406    q.execute();
                    
                
SF_FormEdit.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 376 lines
                    
1<?php
                    
2/**
                    
85	static function makeRandomNumber() {
                    
86		srand( time() );
                    
87		return rand() % 1000000;
                    
284						'wpSummary' => $wgRequest->getVal( 'wpSummary' ),
                    
285						'wpStarttime' => $wgRequest->getVal( 'wpStarttime' ),
                    
286						'wpEdittime' => $wgRequest->getVal( 'wpEdittime' ),
                    
323						wfRunHooks( 'sfWritePageData', array( $form_name, $target_title, &$data_text ) );
                    
324						$text = SFUtils::printRedirectForm( $target_title, $data_text, $wgRequest->getVal( 'wpSummary' ), $save_page, $preview_page, $diff_page, $wgRequest->getCheck( 'wpMinoredit' ), $wgRequest->getCheck( 'wpWatchthis' ), $wgRequest->getVal( 'wpStarttime' ), $wgRequest->getVal( 'wpEdittime' ) );
                    
325					} else {
                    
336					wfRunHooks( 'sfWritePageData', array( $form_name, $target_title, &$data_text ) );
                    
337					$text = SFUtils::printRedirectForm( $target_title, $data_text, $wgRequest->getVal( 'wpSummary' ), $save_page, $preview_page, $diff_page, $wgRequest->getCheck( 'wpMinoredit' ), $wgRequest->getCheck( 'wpWatchthis' ), $wgRequest->getVal( 'wpStarttime' ), $wgRequest->getVal( 'wpEdittime' ) );  // extract its data
                    
338				}
                    
                
hostkreskoweczki.py https://gitlab.com/Ghoz/iptvplayer-for-e2 | Python | 318 lines
                    
16###################################################
                    
17from datetime import timedelta
                    
18import time
                    
60        self.MAIN_URL      = 'http://www.kreskoweczki.pl/'
                    
61        self.SEARCH_URL    = self.MAIN_URL + 'search.php?keywords='
                    
62        self.DEFAULT_ICON  = "http://www.kreskoweczki.pl/uploads/custom-logo.png"
                    
179            
                    
180        videoData = self.cm.ph.getSearchGroups(videoUrl, "/embed/proxy[^.]+?.php")
                    
181        if '' != videoData:
                    
                
 

Source

Language