100+ results results for 'php time' (2950 ms)
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);}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/tomato | 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)); 344COOKBOOK-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:Curl.php https://gitlab.com/LisovyiEvhenii/ismextensions | 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 }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 dataclass.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)',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);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 }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:23WebhookTesting.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 floatpostgresql.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 .= '&goto=tbl_structure.php&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. Believeimage.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'] ) )pskc-schema.xsd https://gitlab.com/oath-toolkit/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"/>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/cpucci/oscommerce.git | PHP | 336 lines
1<?php 2/* 238 239 osc_set_time_limit(0); 240tax_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'; 188SQLiteGrammar.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.htmlSSDB.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();Config.php https://github.com/blanketCMS/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 }settings.php https://github.com/soon7/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',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(); // nowBookmarkPlugin.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']);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 parametersPage.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 Licenseindex.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. <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 }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)); 344Filesystem.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&action=dlbackup&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.');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() + 1Rss.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 {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 waspacket.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"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>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```InstallSchema.php https://gitlab.com/crazybutterfly815/magento2 | 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'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);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 arrayexceptions.php https://bitbucket.org/geoffrey_thenot/webservice.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)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; } 326Batch.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 justupgrade_slims8_akasia.sql.php https://gitlab.com/mucill/sman7 | 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\";}');"; 224adodb-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 0auth_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 {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} rbp-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' ); 356StorageServiceSettings.php https://bitbucket.org/skudatech/azure-sdk-for-php.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 */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']); 431tcp_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 */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);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:guest.php https://gitlab.com/neuser/bitrix-core | PHP | 365 lines
1<?php 2class CAllGuest 78 case "FIRST_DATE1": 79 if (CheckDateTime($val)) 80 $arSqlSearch[] = "G.FIRST_DATE >= ".$DB->CharToDateFunction($val, "SHORT"); 82 case "FIRST_DATE2": 83 if (CheckDateTime($val)) 84 $arSqlSearch[] = "G.FIRST_DATE < ".CStatistics::DBDateAdd($DB->CharToDateFunction($val, "SHORT"), 1); 86 case "LAST_DATE1": 87 if (CheckDateTime($val)) 88 $arSqlSearch[] = "G.LAST_DATE >= ".$DB->CharToDateFunction($val, "SHORT"); 90 case "LAST_DATE2": 91 if (CheckDateTime($val)) 92 $arSqlSearch[] = "G.LAST_DATE < ".CStatistics::DBDateAdd($DB->CharToDateFunction($val, "SHORT"), 1); 95 ResetFilterLogic(); 96 if (CheckDateTime($val)) 97 {Cpu.c https://bitbucket.org/incubaid/edk2.git | C | 556 lines
6which accompanies this distribution. The full text of the license may be found at 7http://opensource.org/licenses/bsd-license.php 8 172 Architectural Protocol observes in order to defer behaviour while in its 173 emulated interrupt, or timer tick. 174 324 325 This routine would support querying of an on-CPU timer. At present, 326 this code does not provide timer emulation. 330 This - Pointer to CPU Architectural Protocol interface 331 TimerIndex - Index of given CPU timer 332 TimerValue - Output of the timer 332 TimerValue - Output of the timer 333 TimerPeriod - Output of the timer period 334sitemailer_.php https://gitlab.com/nvtdn2006/azora | PHP | 384 lines
1<?php 2class SiteMailer 27 $cryptographer = Factory::getCryptographer(); 28 $this->randomHash = $cryptographer->MD5(date('r', time())); 29 $this->fromMail = $config['PRMSConfig']->noreply_mail; 52 $this->headers .= "MIME-Version: 1.0\r\n"; 53 //$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n"; 54 $this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; 90 { 91 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--"; 92 $this->msgBody .= $this->attachment; 92 $this->msgBody .= $this->attachment; 93 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--"; 94 }*/ 156 private function sendActivationToCustomer($property) { 157 /*$htmlCT = "--PHP-alt-" . $this->randomHash . "\r\n"; 158 $htmlCT .= 'Content-Type: text/html; charset="iso-8859-1"' . "\r\n";admin-sync.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 358 lines
1<?php 2 55 public function add_meta_boxes( $post_type, $post ) { 56 if ( 'post-new.php' == $GLOBALS['pagenow'] && isset( $_GET['from_post'], $_GET['new_lang'] ) && $this->model->is_translated_post_type( $post->post_type ) ) { 57 // capability check already done in post-new.php 324 // calling clean_term_cache *after* this is mandatory otherwise the $taxonomy_children option is not correctly updated 325 // before WP 3.9 clean_term_cache could be called ( efficiently ) only one time due to static array which prevented to update the option more than once 326 // this is the reason to use the edit_term filter and not edited_termEditView.php https://github.com/lukio/sugarcrm_dev.git | PHP | 349 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 45 46require_once('modules/Campaigns/utils.php'); 47 70 71//setting default flag value so due date and time not required 72if(!isset($focus->id)) $focus->date_due_flag = 1; 106}else{ 107 $params[] = "<a href='index.php?module={$focus->module_dir}&action=DetailView&record={$focus->id}'>{$focus->name}</a>"; 108 $params[] = $GLOBALS['app_strings']['LBL_EDIT_BUTTON_LABEL']; 166//Assign qsd script 167require_once('include/QuickSearchDefaults.php'); 168$qsd = new QuickSearchDefaults(); 172$xtpl->assign("CANCEL_SCRIPT", $cancel_script); 173$xtpl->assign("PRINT_URL", "index.php?".$GLOBALS['request_string']); 174$xtpl->assign("JAVASCRIPT", get_set_focus_js() . $quicksearch_js);ModificationLogTest.php https://gitlab.com/rsilveira1987/Expresso | PHP | 335 lines
19 */ 20class Tinebase_Timemachine_ModificationLogTest extends PHPUnit_Framework_TestCase 21{ 50 { 51 $suite = new PHPUnit_Framework_TestSuite('Tinebase_Timemachine_ModificationLogTest'); 52 PHPUnit_TextUI_TestRunner::run($suite); 109 'record_backend' => 'TestBackend', 110 'modification_time' => $this->_cloner($now)->addDay(-2), 111 'modification_account' => 7, 207 ); 208 $firstModificationTime = $this->_persistantLogEntries[0]->modification_time; 209 $lastModificationTime = $this->_persistantLogEntries[count($this->_persistantLogEntries)-1]->modification_time; 267 $modlog = $this->_modLogClass->getModifications('Addressbook', $contact->getId(), NULL, 'Sql', 268 Tinebase_DateTime::now()->subSecond(5), Tinebase_DateTime::now())->getFirstRecord(); 269 $this->assertTrue($modlog !== NULL);parsers.py https://github.com/trashgenerator/vkontakte-spy.git | Python | 325 lines
20 (datetime.date.today() - 21 datetime.timedelta(1)).strftime("%d %B %Y")) 22 35 def test_pageexists_true(self): 36 text = '<ul class="pageList"><li class="current">1</li><li><a href="newsfeed.php?section=&offset=50" onclick="return getPage(50)">2</a></li><li><a href="newsfeed.php?section=&offset=100" onclick="return getPage(100)">3</a></li>' 37 self.assertTrue(self.parser.pageexists(text, 50)) 39 def test_pageexists_false(self): 40 text = '<ul class="pageList"><li class="current">1</li><li><a href="newsfeed.php?section=&offset=50" onclick="return getPage(50)">2</a></li><li><a href="newsfeed.php?section=&offset=100" onclick="return getPage(100)">3</a></li>' 41 self.assertFalse(self.parser.pageexists(text, 300)) 84 lastdate = (datetime.datetime.now() - 85 datetime.timedelta(1)).replace(hour=23, minute=40, second=0, 86 microsecond=0) 91 self.vkconnector.text = texts[1] 92 lastdate = (datetime.datetime.now() - 93 datetime.timedelta(1)).replace(hour=23, minute=40, second=0,ActivitySearch.php https://github.com/nysenate/Bluebird-CRM.git | PHP | 431 lines
1<?php 2/* 114 // Activity Date range 115 $form->add('datepicker', 'start_date', ts('Activity Date From'), [], FALSE, ['time' => FALSE]); 116 $form->add('datepicker', 'end_date', ts('...through'), [], FALSE, ['time' => FALSE]); 172 activity.subject as activity_subject, 173 activity.activity_date_time as activity_date, 174 activity.status_id as activity_status_id, 227 else { 228 $sql .= 'ORDER BY contact_a.sort_name, activity.activity_date_time DESC, activity.activity_type_id, activity.status_id, activity.subject'; 229 } 328 if (!empty($this->_formValues['start_date'])) { 329 $clauses[] = "activity.activity_date_time >= '{$this->_formValues['start_date']} 00:00:00'"; 330 } 332 if (!empty($this->_formValues['end_date'])) { 333 $clauses[] = "activity.activity_date_time <= '{$this->_formValues['end_date']} 23:59:59'"; 334 }apc_pool.c https://gitlab.com/0072016/appengine-php | C | 509 lines
4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2006-2011 The PHP Group | 6 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 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 | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 17 18 This software was contributed to PHP by Yahoo! Inc. in 2008. 19install.php https://github.com/benbruscella/Grammafone.git | PHP | 426 lines
150 <p class='pad'> 151 <?php 152 switch($step){ 229 date_created datetime default NULL, 230 time int(11) default NULL, 231 songcount smallint(8) default NULL, 261 num_genres tinyint(3) unsigned NOT NULL default '0', 262 total_time varchar(12) NOT NULL default '0', 263 total_size varchar(10) NOT NULL default '0' 379 <strong>Path to Lame Encoder</strong><br/>(ex. /usr/bin/lame)<br/><input type='text' size='30' name='lamebin' /><br/><br/> 380 <strong>Path to PHP-CLI Binary</strong><br/>(ex. /usr/bin/php)<br/><input type='text' size='30' name='phpbin' /><br/><br/> 381 397 if(!installed()){ 398 $query = "UPDATE mp3act_settings SET invite_mode=$_POST[invite],sample_mode=$_POST[sample_mode],downloads=$_POST[downloads],amazonid=\"$_POST[amazonid]\",mp3bin=\"$_POST[mp3bin]\",lamebin=\"$_POST[lamebin]\",phpbin=\"$_POST[phpbin]\",jukemode=\"$_POST[jukemode]\",mpdserver=\"$_POST[mpdserver]\",mpdport=\"$_POST[mpdport]\",mpdpass=\"$_POST[mpdpass]\" WHERE id=1"; 399 mysql_query($query);index-webarte.php https://github.com/ccaballero/yachay.git | PHP | 176 lines
7 <div> 8<?php if ($this->subject->amModerator()) { ?><input type="button" name="new" value="Agregar" onclick="location.href='<?php echo $this->url(array('subject' => $this->subject->url), 'subjects_subject_assign_new') ?>'" /><input type="submit" name="unlock" value="Habilitar" /><input type="submit" name="lock" value="Deshabilitar" /><input type="submit" name="delete" value="Retirar" /><input type="button" name="import" value="Importar" onclick="location.href='<?php echo $this->url(array('subject' => $this->subject->url), 'subjects_subject_assign_import') ?>'" /><input type="button" name="export" value="Exportar" onclick="location.href='<?php echo $this->url(array('subject' => $this->subject->url), 'subjects_subject_assign_export') ?>'" /><?php } ?> 9 </div> 21 <?php if ($this->acl('users', 'view')) { ?> 22 <a href="<?php echo $this->url(array('user' => $teacher->url), 'users_user_view') ?>"><img class="photo" src="<?php echo $this->config->resources->frontController->baseUrl . '/media/users/thumbnail_small/' . $teacher->getAvatar() ?>" alt="<?php echo $teacher->getFullName() ?>" title="<?php echo $teacher->getFullName() ?>" /></a> 23 <?php } else { ?> 61 <?php if ($this->acl('users', 'view')) { ?> 62 <a href="<?php echo $this->url(array('user' => $auxiliar->url), 'users_user_view') ?>"><img class="photo" src="<?php echo $this->config->resources->frontController->baseUrl . '/media/users/thumbnail_small/' . $auxiliar->getAvatar() ?>" alt="<?php echo $auxiliar->getFullName() ?>" title="<?php echo $auxiliar->getFullName() ?>" /></a> 63 <?php } else { ?> 101 <?php if ($this->acl('users', 'view')) { ?> 102 <a href="<?php echo $this->url(array('user' => $student->url), 'users_user_view') ?>"><img class="photo" src="<?php echo $this->config->resources->frontController->baseUrl . '/media/users/thumbnail_small/' . $student->getAvatar() ?>" alt="<?php echo $student->getFullName() ?>" title="<?php echo $student->getFullName() ?>" /></a> 103 <?php } else { ?> 173 <div> 174<?php if ($this->subject->amModerator()) { ?><input type="button" name="new" value="Agregar" onclick="location.href='<?php echo $this->url(array('subject' => $this->subject->url), 'subjects_subject_assign_new') ?>'" /><input type="submit" name="unlock" value="Habilitar" /><input type="submit" name="lock" value="Deshabilitar" /><input type="submit" name="delete" value="Retirar" /><input type="button" name="import" value="Importar" onclick="location.href='<?php echo $this->url(array('subject' => $this->subject->url), 'subjects_subject_assign_import') ?>'" /><input type="button" name="export" value="Exportar" onclick="location.href='<?php echo $this->url(array('subject' => $this->subject->url), 'subjects_subject_assign_export') ?>'" /><?php } ?> 175 </div>TextArea.php https://gitlab.com/ElvisAns/tiki | PHP | 377 lines
1<?php 2 158 { 159 static $firstTime = true; 160 176 $data['element_id'] = 'area_' . uniqid(); 177 if ($firstTime && $this->getOption('wysiwyg') === 'y') { // wysiwyg 178 $is_html = '<input type="hidden" id="allowhtml" value="1" />'; 178 $is_html = '<input type="hidden" id="allowhtml" value="1" />'; 179 $firstTime = false; 180 } else {Tar.php https://bitbucket.org/acidel/buykoala.git | PHP | 372 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) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 56 * Skip first level parent directory. Example: 57 * use test/fip.php instead test/test/fip.php; 58 * 184 $header['12-size'] = $long?sprintf("%011o", strlen($nameFile)):sprintf("%011o", is_dir($file) ? 0 : filesize($file)); 185 $header['12-mtime'] = $long?'00000000000':sprintf("%011o", $infoFile['mtime']); 186 $header['8-check'] = sprintf('% 8s', ''); 272 $header['size']=octdec($header['size']); 273 $header['mtime']=octdec($header['mtime']); 274 $header['checksum']=octdec($header['checksum']);quickstart.htm https://github.com/cpg-contrib/coppermine.git | HTML | 113 lines
37<h1>CPG - Coppermine Photo Gallery Quick-Start Guide</h1> 38<p>Congratulations on downloading the most recent, most powerful, and feature rich version of Coppermine, ever. You've already made the right decision in selecting Coppermine as your photo gallery script and just about now, you're probably wondering how to get started and you want to install <acronym title="Coppermine Photo Gallery">CPG</acronym> <acronym title="as soon as possible">A.S.A.P.</acronym> Right? Before that, however, make another "right" decision and take some time out to <strong>r</strong>ead <strong>t</strong>he '<strong>f</strong>ascinating' <strong>m</strong>anuals (RTFM) that come with Coppermine.</p> 39 39 40<p>Look in the folder that you just extracted your Coppermine files into. In it, you'll find a folder called 'docs'. All the documentation for <a href="install.htm">installation</a>, <acronym title="Frequently Asked Questions">FAQ</acronym>s, <a href="administration.htm">administration</a>, troubleshooting, modifying <a href="theme.htm">themes</a>, and more is there. Familiarize yourself with the contents of the various docs to enhance your <acronym titel="Coppermine Photo Gallery">CPG</acronym> experience and create the gallery that you've always dreamed about, in the least amount of time, and with the least amount of set-backs and frustration. Read it and in no time at all, your friends and relatives will be praising you and gawking at your incredible photo-gallery.</p> 41 41 42<p>Even if you are installing this as an upgrade from an older version of Coppermine, you'll still need to read the docs for directions and to understand some of the major changes between CPG 1.5.x and all previous versions. You'll need to know what can and cannot be ported from your previous installation to this new version. It is important to note that <strong>upgrade</strong> installations are considerably different from <strong>update</strong> installations. For example, in version 1.3.5 (an 'update' to 1.3.4) the Classic theme's theme.php script was a whopping 1487 lines long. In 1.4.x, an upgrade, it's a mere 24. Nope, this is <strong>not</strong> a miss-type. So where did all that code go? Read the docs. Your custom themes from previous versions will undoubtedly need some changes made to it before you can use them in this new version. So, just how do you go about doing that? <a href="index.htm">RTFM!</a></p> 43 59<strong>Answer:</strong> You need to create a MySQL database. Using your website Control Panel or a 60tool like phpMyAdmin, create a MySQL database. Write down the database name, the username and password - you'll need it to successfully install Coppermine. If you already have a database you're using for a BBS or something else, that'll work just as well. You can use that database for Coppermine, too. If you have a BBS and plan to connect it to Coppermine install, you'll need to share the database anyway.</p> 61 62<p><strong>Question:</strong> My files are in place, permissions are set, and I have my MySQL database information. What's the next step? <br /> 63<strong>Answer:</strong> Read the... (Oops, sorry.) Now you have to run the Coppermine install. Launch your web browser and enter http://www.yousite.com/coppermine/install.php and fill in the information that is requested. If you have never used ImageMagick before, leave that line blank during the install process. You can always add that information after you have Coppermine up and running. </p> 64package-summary.html https://github.com/blt04/sfDoctrine2Plugin.git | HTML | 128 lines
5 6<meta name="generator" content="PHPDoctor 2RC4 (http://phpdoctor.sourceforge.net/)"> 7<meta name="when" content="Wed, 14 Apr 2010 15:12:03 +0000"> 42<tr><td class="name"><a href="../../../../doctrine/orm/query/ast/arithmeticterm.html">ArithmeticTerm</a></td><td class="description">ArithmeticTerm ::= ArithmeticFactor {("*" | "/") ArithmeticFactor}</td></tr> 43<tr><td class="name"><a href="../../../../doctrine/orm/query/ast/betweenexpression.html">BetweenExpression</a></td><td class="description">Description of BetweenExpression@license http://www.opensource.org/licenses/lgpl-license.php LGPL</td></tr> 44<tr><td class="name"><a href="../../../../doctrine/orm/query/ast/collectionmemberexpression.html">CollectionMemberExpression</a></td><td class="description">CollectionMemberExpression ::= EntityExpression ["NOT"] "MEMBER" ["OF"] CollectionValuedPathExpression</td></tr> 48EnumExpression ("=" | "" | "!=") (EnumExpression | QuantifiedExpression) | 49DatetimeExpression ComparisonOperator (DatetimeExpression | QuantifiedExpression) | 50EntityExpression ("=" | "") (EntityExpression | QuantifiedExpression)</td></tr> 98<tr><td class="name"><a href="../../../../doctrine/orm/query/ast/updateitem.html">UpdateItem</a></td><td class="description">UpdateItem ::= [IdentificationVariable "."] {StateField | SingleValuedAssociationField} "=" NewValue 99NewValue ::= SimpleArithmeticExpression | StringPrimary | DatetimePrimary | BooleanPrimary | 100EnumPrimary | SimpleEntityExpression | "NULL"</td></tr> 123 124<p id="footer">This document was generated by <a href="http://peej.github.com/phpdoctor/">PHPDoctor: The PHP Documentation Creator</a></p> 125lib.php https://bitbucket.org/ngmares/moodle.git | PHP | 451 lines
62 63 $data->timecreated = time(); 64 $data->timemodified = $data->timecreated; 81 82 $data->timemodified = time(); 83 $data->id = $data->instance; 134 $result->info = get_string('numviews', '', $numviews); 135 $result->time = $lastlog->time; 136 161 * @param bool $viewfullnames 162 * @param int $timestart 163 * @return bool true if there was output, or false is there was none 225 if (file_exists("$dir/lib.php")) { 226 require_once("$dir/lib.php"); 227 }user.inc.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | PHP | 202 lines
1<?php 2/** 66$_lang['user_blockedafter'] = 'Blocked After'; 67$_lang['user_blockedafter_desc'] = 'If set, the user will be blocked after this time occurs.'; 68$_lang['user_blockeduntil'] = 'Blocked Until'; 68$_lang['user_blockeduntil'] = 'Blocked Until'; 69$_lang['user_blockeduntil_desc'] = 'If set, the user will be blocked until this time.'; 70$_lang['user_changeddata'] = 'Your data has been changed. Please log in again.'; 114$_lang['user_failedlogincount'] = 'Failed Logins'; 115$_lang['user_failedlogincount_desc'] = 'The number of times this user has failed to login by entering an incorrect password.'; 116$_lang['user_fax'] = 'Fax'; 165$_lang['user_logincount'] = 'Number of Logins'; 166$_lang['user_logincount_desc'] = 'The total number of times this User has logged in.'; 167$_lang['user_male'] = 'Mand'; 175$_lang['user_prevlogin'] = 'Last Login'; 176$_lang['user_prevlogin_desc'] = 'The last time that the user successfully logged in.'; 177$_lang['user_profile_err_nf'] = 'FATAL ERROR: User profile not found.';notice.php https://gitlab.com/campus-academy/krowkaramel | PHP | 507 lines
314 315 expired_time="<?php echo ($this->expired_time); ?>" 316 dismissible="<?php echo ($this->dismissible); ?>" 318 <?php if(!empty($this->logo)):?> 319 <img class="notice-logo" style="<?php echo esc_attr($this->logo_style); ?>" src="<?php echo esc_url($this->logo);?>" /> 320 <?php endif; ?> 333 <?php foreach($this->buttons as $button): ?> 334 <a id="<?php echo (!isset($button['id']) ? '' : $button['id']); ?>" href="<?php echo esc_url($button['url']); ?>" class="wpmet-notice-button <?php echo esc_attr($button['class']); ?>"> 335 <?php if(!empty($button['icon'])) :?> 370 $dismissible = ( isset( $_POST['dismissible'] ) ) ? $_POST['dismissible'] : ''; 371 $expired_time = ( isset( $_POST['expired_time'] ) ) ? $_POST['expired_time'] : ''; 372 411 dismissible : dismissible, 412 expired_time : expired_time, 413 },index.php https://github.com/tlezotte/HCR.git | PHP | 342 lines
19 */ 20include_once('../../include/Timer.php'); 21$starttime = StartLoadTimer(); 77 <table width=100%><tr><td> <img src="/Common/images/pageloading.gif" width="200" height="45" align="absmiddle"></td></tr></table></div> 78 <?php } ?> 79 <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div> 177 ?> 178 <div align="right" class="FieldNumberDisabled"><strong><?= $language['label']['welcome']; ?> <a href="../../Administration/user_information.php" class="FieldNumberDisabled" <?php help('', 'Edit your user information', 'default'); ?>><?= ucwords(strtolower($_SESSION['fullname'])); ?></a></strong> <a href="../../logout.php" class="FieldNumberDisabled" <?php help('', 'Selecting [logout] will Log you out of the '.$default[title1].' and stop automatic cookie login', 'default'); ?>>[logout]</a> </div> 179 <?php 310 <tr> 311 <td width="50%" nowrap><!-- InstanceBeginEditable name="copyright" --><?php include('../include/copyright.php'); ?><!-- InstanceBeginEditable --></td> 312 <td width="50%"><div id="noPrint" align="right"><!-- InstanceBeginEditable name="version" --><!-- InstanceEndEditable --></div></td> 323 <div class="TrainVisited" id="noPrint"> 324 <?php StopLoadTimer(); ?> 325 <img src="../../images/spacer.gif" width="50" height="16" align="absmiddle">Move.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 364 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 3// +----------------------------------------------------------------------+ 4// | PHP version 5 | 5// +----------------------------------------------------------------------+ 9// | This LICENSE is in the BSD license style. | 10// | http://www.opensource.org/licenses/bsd-license.php | 11// | | 43// 44// $Id: Move.php 12 2007-09-17 20:20:11Z killersoft $ 45// 112 * <code> 113 * <?php 114 * require_once 'VersionControl/SVN.php'; 118 * 119 * // Set up runtime options. Will be passed to all 120 * // subclasses.tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * 6 * usally called as form action from tbl_change.php to insert or update table rows 7 * 7 * 8 * @version $Id: tbl_replace.php 12245 2009-02-23 08:36:34Z lem9 $ 9 * 54 */ 55require_once './libraries/common.inc.php'; 56 69 $GLOBALS['js_include'][] = 'tbl_change.js'; 70 require_once './libraries/header.inc.php'; 71 require './tbl_change.php'; 77 $url_params['after_insert'] = $_REQUEST['after_insert']; 78 //$GLOBALS['goto'] = 'tbl_change.php'; 79 $goto_include = 'tbl_change.php';pp_payflow_iframe.tpl https://gitlab.com/reclamare/mao | Smarty Template | 212 lines
6 <button type="submit" form="form-pp-payflow-iframe" data-toggle="tooltip" title="<?php echo $button_save; ?>" class="btn btn-primary"><i class="fa fa-save"></i></button> 7 <a href="<?php echo $cancel; ?>" data-toggle="tooltip" title="<?php echo $button_cancel; ?>" class="btn btn-default"><i class="fa fa-reply"></i></a></div> 8 <h1><?php echo $heading_title; ?></h1> 46 <div class="form-group required"> 47 <label class="col-sm-2 control-label" for="entry-password"><span data-toggle="tooltip" title="<?php echo $help_password; ?>"><?php echo $entry_password; ?></span></label> 48 <div class="col-sm-10"> 142 <div class="col-sm-10"> 143 <input type="text" name="pp_payflow_iframe_sort_order" value="<?php echo $pp_payflow_iframe_sort_order; ?>" placeholder="<?php echo $entry_sort_order; ?>" id="input-sort-order" class="form-control" /> 144 </div> 152 <?php if ($geo_zone['geo_zone_id'] == $pp_payflow_iframe_geo_zone_id) { ?> 153 <option value="<?php echo $geo_zone['geo_zone_id']; ?>" selected="selected"><?php echo $geo_zone['name']; ?></option> 154 <?php } else { ?> 154 <?php } else { ?> 155 <option value="<?php echo $geo_zone['geo_zone_id']; ?>"><?php echo $geo_zone['name']; ?></option> 156 <?php } ?>PharStreamWrapper.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 511 lines
1<?php 2namespace TYPO3\PharStreamWrapper; 19 * Internal stream constants that are not exposed to PHP, but used... 20 * @see https://github.com/php/php-src/blob/e17fc0d73c611ad0207cac8a4a01ded38251a7dc/main/php_streams.h 21 */ 258 $arguments[] = $this->context; 259 // work around https://bugs.php.net/bug.php?id=66569 260 // for including files from Phar stream with OPcache enabled 320 } 321 if ($option === STREAM_OPTION_READ_TIMEOUT) { 322 return $this->invokeInternalStreamWrapper( 322 return $this->invokeInternalStreamWrapper( 323 'stream_set_timeout', 324 $this->internalResource, 468 /** 469 * Invokes commands on the native PHP Phar stream wrapper. 470 *Index.php https://gitlab.com/tonycodes/october | PHP | 458 lines
1<?php namespace Cms\Controllers; 2 132 'templateTheme' => $this->theme->getDirName(), 133 'templateMtime' => $template->mtime 134 ]) 164 if (!Request::input('templateForceSave') && $template->mtime) { 165 if (Request::input('templateMtime') != $template->mtime) { 166 throw new ApplicationException('mtime-mismatch'); 182 'templatePath' => $template->fileName, 183 'templateMtime' => $template->mtime, 184 'tabTitle' => $this->getTabTitle($type, $template) 220 'templateTheme' => $this->theme->getDirName(), 221 'templateMtime' => null 222 ])ThreeZero.php https://github.com/ksecor/civicrm.git | PHP | 271 lines
1<?php 2 35 36require_once 'CRM/Upgrade/Form.php'; 37require_once 'CRM/Core/OptionGroup.php'; 37require_once 'CRM/Core/OptionGroup.php'; 38require_once 'CRM/Core/OptionValue.php'; 39 77 // check fields which MUST be present if a proper 2.2.* db 78 if ( ! CRM_Core_DAO::checkFieldExists( 'civicrm_activity', 'due_date_time' ) || 79 ! CRM_Core_DAO::checkFieldExists( 'civicrm_contact', 'greeting_type_id' ) || 94 if (!CRM_Core_DAO::checkFieldExists('civicrm_report_instance', 'description')) { 95 require_once 'CRM/Core/DAO/Domain.php'; 96 $domain = new CRM_Core_DAO_Domain; 109 110 //We execute some part of php after sql and then again sql 111 //So using conditions for skipping some part of sql CRM-4575Value.php https://github.com/hukumonline/zfurl.git | PHP | 401 lines
19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Value.php 12721 2008-11-20 18:21:58Z matthew $ 21 */ 30/** Zend_XmlRpc_Value_Base64 */ 31require_once 'Zend/XmlRpc/Value/Base64.php'; 32 36/** Zend_XmlRpc_Value_DateTime */ 37require_once 'Zend/XmlRpc/Value/DateTime.php'; 38 101 /** 102 * Specify that the XML-RPC native type will be auto detected from a PHP variable type 103 */ 118 const XMLRPC_TYPE_STRING = 'string'; 119 const XMLRPC_TYPE_DATETIME = 'dateTime.iso8601'; 120 const XMLRPC_TYPE_BASE64 = 'base64';config.php https://github.com/olberger/fusionforge.git | PHP | 396 lines
5 * The user-configurable settings have been moved to IniConfig.php 6 * The run-time code has been moved to lib/IniConfig.php:fix_configs() 7 */ 16define ('_DEBUG_PARSER', 4); // verbose parsing steps 17define ('_DEBUG_TRACE', 8); // test php memory usage, prints php debug backtraces 18define ('_DEBUG_INFO', 16); 242 // do reinit to purge PHP's static cache [43ms] 243 if ( ($lcfile = FindLocalizedFile("LC_MESSAGES/phpwiki.php", 'missing_ok', 'reinit')) ) { 244 include($lcfile); 295 // e.g. REQUEST_URI = /dir/?some_action got redirected 296 // to SCRIPT_NAME = /dir/index.php 297 306 307// needed < php5 308// by bradhuizenga at softhome dot net from the php docsdate.php https://github.com/chemila/kohana.git | PHP | 566 lines
28 * Timezone for formatted_time 29 * @link http://uk2.php.net/manual/en/timezones.php 30 * @var string 395 { 396 $local_timestamp = $local_timestamp === NULL ? time() : (int) $local_timestamp; 397 553 */ 554 public static function formatted_time($datetime_str = 'now', $timestamp_format = NULL, $timezone = NULL) 555 { 556 $timestamp_format = $timestamp_format == NULL ? Date::$timestamp_format : $timestamp_format; 557 $timezone = $timezone === NULL ? Date::$timezone : $timezone; 558 558 559 $time = new DateTime($datetime_str, new DateTimeZone( 560 $timezone ? $timezone : date_default_timezone_get()functions.php https://bitbucket.org/imia_de/t3ext-imia-base.git | PHP | 471 lines
1<?php 2namespace GuzzleHttp\Promise; 194 * @throws \Exception on error 195 * @throws \Throwable on error in PHP >=7 196 */ 372 * Like each, but only allows a certain number of outstanding promises at any 373 * given time. 374 *filterlib.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 365 lines
1<?php // $Id: filterlib.php,v 1.24.10.4 2009/02/18 11:02:11 stronk7 Exp $ 2 // Contains special functions that are particularly useful to filters 99 100/// Time to cycle through each phrase to be linked 101 $size = sizeof($link_array);WizardController.php https://bitbucket.org/nharland/wikl.nl.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);CachePdo.html https://github.com/TimBroddin/MegaCache.git | HTML | 367 lines
31 <p class="notes"> 32 Located in <a class="field" href="_adapters---CachePdo.php.html">/adapters/CachePdo.php</a> (line <span class="field">20</span>) 33 </p> 70 <span class="method-result">void</span> 71 <a href="#clearTimedOut" title="details" class="method-name">clearTimedOut</a> 72 () 86 <a href="#set" title="details" class="method-name">set</a> 87 (<span class="var-type">string</span> <span class="var-name">$varName</span>, <span class="var-type">mixed</span> <span class="var-name">$value</span>, [<span class="var-type"></span> <span class="var-name">$timeout</span> = <span class="var-default">0</span>], <span class="var-type">int</span> <span class="var-name">$timeout.</span>) 88 </div> 192 </div> 193<a name="methodclearTimedOut" id="clearTimedOut"><!-- --></a> 194<div class="evenrow"> 363 <p class="notes" id="credit"> 364 Documentation generated on Sat, 30 Oct 2010 10:42:46 -0500 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> 365 </p>ApiModelFactory.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 283 lines
19import org.eclipse.core.resources.ResourcesPlugin; 20import org.eclipse.core.runtime.CoreException; 21import org.eclipse.core.runtime.IPath; 21import org.eclipse.core.runtime.IPath; 22import org.eclipse.core.runtime.IProgressMonitor; 23import org.eclipse.core.runtime.Path; 23import org.eclipse.core.runtime.Path; 24import org.eclipse.core.runtime.SubMonitor; 25import org.eclipse.core.runtime.URIUtil; 147 * environment must have its execution environment specified at creation 148 * time. 149 * </p> 163 * this file is described here 164 * <code>http://wiki.eclipse.org/index.php/Execution_Environment_Descriptions</code>. 165 * </p>server.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 407 lines
9 | available through the world-wide-web at the following url: | 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 | 16 17#ifndef incl_HPHP_HTTP_SERVER_SERVER_H_ 18#define incl_HPHP_HTTP_SERVER_SERVER_H_ 22 23#include "hphp/runtime/server/takeover-agent.h" 24#include "hphp/runtime/server/transport.h" 84public: 85 explicit RequestHandler(int timeout) : m_timeout(timeout) {} 86 virtual ~RequestHandler() {} 119 120 int getDefaultTimeout() const { return m_timeout; } 121assignment_expression.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 314 lines
9 | available through the world-wide-web at the following url: | 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 | 17#include "hphp/compiler/expression/assignment_expression.h" 18#include "hphp/compiler/expression/array_element_expression.h" 19#include "hphp/compiler/expression/object_property_expression.h" 25#include "hphp/compiler/analysis/constant_table.h" 26#include "hphp/compiler/analysis/file_scope.h" 27#include "hphp/compiler/expression/unary_op_expression.h" 27#include "hphp/compiler/expression/unary_op_expression.h" 28#include "hphp/parser/hphp.tab.hpp" 29#include "hphp/compiler/code_model_enums.h" 36 37#include "hphp/runtime/base/execution-context.h" 38store.php https://github.com/totara/moodle.git | PHP | 362 lines
38 protected static $standardtolegacyfields = array( 39 'timecreated' => 'time', 40 'courseid' => 'course', 193 * @param string $ip Override the IP, should only be used for restore. 194 * @param int $time Override the log time, should only be used for restore. 195 */ 225 226 $timenow = (is_null($time)) ? time() : $time; 227 if (!empty($url)) { // Could break doing html_entity_decode on an empty var. 257 258 $log = array('time' => $timenow, 'userid' => $userid, 'course' => $courseid, 'ip' => $remoteaddr, 259 'module' => $module, 'cmid' => $cm, 'action' => $action, 'url' => $url, 'info' => $info); 276 $lasttime = get_config('admin', 'lastloginserterrormail'); 277 if (empty($lasttime) || time() - $lasttime > 60 * 60 * 24) { // Limit to 1 email per day. 278 // Using email directly rather than messaging as they may not be able to log in to access a message.view.php https://bitbucket.org/sriedel/iccrm-wip.git | PHP | 557 lines
1<?php 2/** 9 * @copyright 2010 - 2012 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 18 * 19 * Acts as an object wrapper for HTML pages with embedded PHP, called "views". 20 * Variables can be assigned with the view object and referenced locally within 24 * @category Core 25 * @link http://docs.fuelphp.com/classes/view.html 26 */ 67 */ 68 protected $extension = 'php'; 69 165 * 166 * [!!] `null` variables are not considered to be set by [isset](http://php.net/isset). 167 *DebugDirectory.cpp https://bitbucket.org/deeso/qfscanner.git | C++ | 383 lines
7* This software is licensed under the zlib/libpng License. 8* For more details see http://www.opensource.org/licenses/zlib-license.php 9* or the license information file (license.htm) in the root directory 32 ibBuffer >> iddCurr.idd.Characteristics; 33 ibBuffer >> iddCurr.idd.TimeDateStamp; 34 ibBuffer >> iddCurr.idd.MajorVersion; 115 obBuffer << m_vDebugInfo[i].idd.Characteristics; 116 obBuffer << m_vDebugInfo[i].idd.TimeDateStamp; 117 obBuffer << m_vDebugInfo[i].idd.MajorVersion; 209 /** 210 * Returns the TimeDateStamp value of a debug structure. If an invalid structure is specified 211 * by the parameter uiIndex the result will be undefined behaviour. 212 * @param uiIndex Identifies the debug structure. 213 * @return TimeDateStamp value of the debug structure. 214 **/Configuration.php https://github.com/dustin10/symfony.git | PHP | 362 lines
1<?php 2 123 ->scalarNode('password')->defaultValue('')->end() 124 ->scalarNode('lifetime')->defaultValue(86400)->end() 125 ->arrayNode('matcher') 166 ->scalarNode('name')->end() 167 ->scalarNode('lifetime')->end() 168 ->scalarNode('path')->end()route.php https://github.com/ymtn/core.git | PHP | 589 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 139 * Saves or loads the route cache. If your routes will remain the same for 140 * a long period of time, use this to reload the routes from the cache 141 * rather than redefining them on every page load. 288 * The $uri parameter can either be a string for basic regex matching or it 289 * can be a valid callback or anonymous function (php 5.3+). If you use a 290 * callback or anonymous function, your method should return an arrayCore.class.php https://gitlab.com/adamlwalker/generatedata | PHP | 511 lines
46 // left as public, because they're often modified / accessed, and it's just too fussy otherwise. The 47 // PHPDoc helps my IDE figure out what the hell each of them are 48 136 } 137 if ($runtimeContext == "ui" || $runtimeContext == "generation") { 138 self::initCountries(); 138 self::initCountries(); 139 self::initExportTypes($runtimeContext); 140 self::initDataTypes($runtimeContext); 141 } 142 if (in_array($runtimeContext, array("ui", "generation", "resetPlugins"))) { 143 self::initUser(); 145 146 set_time_limit(self::$timeout); 147 }Indicators.class.php https://github.com/bgerp/bgerp.git | PHP | 440 lines
1<?php 2 51 */ 52 public $refreshRowsTime = 25000; 53 106 $this->FLD('value', 'double(minDecimals=0, maxDecimals=4, smartRound)', 'caption=Стойност,smartCenter,input=none'); 107 $this->FLD('lastValue', 'datetime', 'caption=Към момент,oldFieldName=time,input=none'); 108 $this->FLD('lastUpdate', 'datetime', 'caption=Обновяване,column=none,input=none'); 249 */ 250 public static function setValue($controllerId, $port, $value, $time) 251 { 271 // Ако имаме повторение на последните данни - не правим запис 272 if (($rec->value == $value && $rec->lastValue == $time) || ($rec->lastValue > $time)) { 273 281 $rec->uom = $uom; 282 $rec->lastValue = $time; 283 $rec->lastUpdate = $time;file_helper.php https://gitlab.com/bipsahu/ptcs | PHP | 479 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 240 241 // foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast 242 while (FALSE !== ($file = readdir($fp))) 307 case 'date': 308 $fileinfo['date'] = filemtime($file); 309 break; 334 * 335 * Translates a file extension into a mime type based on config/mimes.php. 336 * Returns FALSE if it can't determine the type, or open the mime config file 354 { 355 if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes.php')) 356 {rpcconsole.cpp https://gitlab.com/Quetzalcoatl/VekitaCoin | C++ | 433 lines
2// Distributed under the MIT/X11 software license, see the accompanying 3// file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 11 12#include <QTime> 13#include <QThread> 268 ui->buildDate->setText(model->formatBuildDate()); 269 ui->startupTime->setText(model->formatClientStartupTime()); 270 321{ 322 QTime time = QTime::currentTime(); 323 QString timeString = time.toString(); 324 QString out; 325 out += "<table><tr><td class=\"time\" width=\"65\">" + timeString + "</td>"; 326 out += "<td class=\"icon\" width=\"32\"><img src=\"" + categoryClass(category) + "\"></td>";file_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 479 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 240 241 // foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast 242 while (FALSE !== ($file = readdir($fp))) 307 case 'date': 308 $fileinfo['date'] = filemtime($file); 309 break; 334 * 335 * Translates a file extension into a mime type based on config/mimes.php. 336 * Returns FALSE if it can't determine the type, or open the mime config file 477 478/* End of file file_helper.php */ 479/* Location: ./system/helpers/file_helper.php */user.inc.php https://github.com/goldsky/revolution.git | PHP | 202 lines
1<?php 2/** 66$_lang['user_blockedafter'] = 'Blocked After'; 67$_lang['user_blockedafter_desc'] = 'If set, the user will be blocked after this time occurs.'; 68$_lang['user_blockeduntil'] = 'Blocked Until'; 68$_lang['user_blockeduntil'] = 'Blocked Until'; 69$_lang['user_blockeduntil_desc'] = 'If set, the user will be blocked until this time.'; 70$_lang['user_changeddata'] = 'Your data has been changed. Please log in again.'; 114$_lang['user_failedlogincount'] = 'Failed Logins'; 115$_lang['user_failedlogincount_desc'] = 'The number of times this user has failed to login by entering an incorrect password.'; 116$_lang['user_fax'] = 'Fax'; 165$_lang['user_logincount'] = 'Number of Logins'; 166$_lang['user_logincount_desc'] = 'The total number of times this User has logged in.'; 167$_lang['user_male'] = 'Male'; 175$_lang['user_prevlogin'] = 'Last Login'; 176$_lang['user_prevlogin_desc'] = 'The last time that the user successfully logged in.'; 177$_lang['user_profile_err_nf'] = 'FATAL ERROR: User profile not found.';model.php https://github.com/Lesso/forkcms.git | PHP | 493 lines
1<?php 2 159 // utf8 compliance & MySQL-timezone 160 $db->execute('SET CHARACTER SET utf8, NAMES utf8, time_zone = "+0:00"'); 161 298 * @param string[optional] $format The format wherin the data will be returned, if not provided we will return it in MySQL-datetime-format. 299 * @param int[optional] $timestamp A UNIX-timestamp that will be used as base. 300 */ 300 */ 301 public static function getUTCDate($format = null, $timestamp = null) 302 { 305 306 // no timestamp given 307 if($timestamp === null) return gmdate($format); 308 309 // timestamp given 310 return gmdate($format, (int) $timestamp);api_test.php https://bitbucket.org/moodle/moodle.git | PHP | 254 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 154 $expected = $params + ['sortorder' => 0, 'id' => $c1->get('id'), 'description' => '', 'descriptionformat' => 0]; 155 $actual = array_intersect_key((array)$c1->to_record(), $expected); // Ignore timecreated, timemodified. 156 ksort($expected);ForumTest.php https://github.com/lenix/silverstripe-forum.git | PHP | 358 lines
1<?php 2 108 $inheritedForum_loggedInOnly = $this->objFromFixture('Forum', 'inheritedForum_loggedInOnly'); 109 SS_Datetime::set_mock_now('2011-10-10 12:00:00'); 110