100+ results results for 'php mktime' (583 ms)
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 46 $now = time(); 47 $system_time = mktime(gmdate("H", $now), gmdate("i", $now), gmdate("s", $now), gmdate("m", $now), gmdate("d", $now), gmdate("Y", $now)); 48 68 * 69 * This function is identical to PHPs date() function, 70 * except that it allows date codes to be formatted using 307 308 return mktime( gmdate("H", $time), gmdate("i", $time), gmdate("s", $time), gmdate("m", $time), gmdate("d", $time), gmdate("Y", $time)); 309 } 368 // YYYYMMDDHHMMSS 369 return mktime( 370 substr($time, 8, 2),event_log.php https://gitlab.com/alexprowars/bitrix | PHP | 354 lines
1<?php 2/** 72 $arDate = localtime(time()); 73 $date = mktime(0, 0, 0, $arDate[4]+1, $arDate[3]-$cleanup_days, 1900+$arDate[5]); 74 $DB->Query("DELETE FROM b_event_log WHERE TIMESTAMP_X <= ".$DB->CharToDateFunction(ConvertTimeStamp($date, "FULL")));requests.php https://gitlab.com/grimkirill/mb-base | PHP | 297 lines
1<?php 2 29 $this->AddContent(View_Element::Space(2).'|'.View_Element::Space(2)); 30 $tommorow = date('d-m-Y', mktime(0,0,0,date("m"),date("d")+1,date("Y"))); 31 $this->AddContent(View_Element::Link('Завтра', CLASSPATH.'?servicer='.$form->return_values['servicer'].'&type=0&date_start='.$tommorow.'&date_stop='.$tommorow.'&done='.$form->return_values['done'].'&form_submit=Принять')); 85 { 86 $tommorow = date('d-m-Y', mktime(0,0,0,date("m"),date("d")+1,date("Y"))); 87 $this->AddContent(View_Element::Link('Завтра', CLASSPATH.'?servicer=0&type=0&date_start='.$tommorow.'&date_stop='.$tommorow.'&done=0&form_submit=Принять'));1416863327-migrate-reports.php https://gitlab.com/e0/X2CRM | PHP | 315 lines
1<?php 2/*********************************************************************************** 56 case 'thisMonth': 57 $dateRange['start'] = mktime(0, 0, 0, date('n'), 1); // first of this month 58 $dateRange['end'] = time(); // now 64 case 'lastMonth': 65 $dateRange['start'] = mktime(0, 0, 0, date('n') - 1, 1); // first of last month 66 $dateRange['end'] = mktime(0, 0, 0, date('n'), 1) - 1; // first of this month 68 case 'thisYear': 69 $dateRange['start'] = mktime(0, 0, 0, 1, 1); // first of the year 70 $dateRange['end'] = time(); // now 72 case 'lastYear': 73 $dateRange['start'] = mktime(0, 0, 0, 1, 1, date('Y') - 1); // first of last year 74 $dateRange['end'] = mktime(0, 0, 0, 1, 1, date('Y')) - 1; // first of this yearend_vevent.php https://gitlab.com/endomorphosis/fusenews | PHP | 386 lines
1<?php 2/* end_vevent.php 127 ereg ('([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})', $until, $regs); 128 $until_unixtime = mktime($regs[4],@$regs[5],@$regs[6],$regs[2],$regs[3],$regs[1]); 129 $recur_array[($start_date)][($hour.$minute)][$uid]['recur'][$key] = localizeDate($dateFormat_week,$until); 191If COUNT is not set (default is 1,000,000) then we don't have to start at start_date; we can start at the minimum interval for the view. 192variables ending in date are in phpical date format: YYYYMMDD 193variables ending with time are in phpical time format: HHMM 195 196mArray_begin and mArray_end are set in initialization by date_range.php and may be overwritten by rss_common.php. 197 243 $month = date('m', $next_range_unixtime); 244 $time = mktime(12,0,0,$month,date("d",$start_unixtime),$year); 245 switch ($freq_type){ 252 case 'month': 253 if(!empty($bymonthday)) $time = mktime(12,0,0,$month,1,$year); 254 $times = expand_bymonthday(array($time));#echo "\n $month exp bymonthday";dump_times($times);Date.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 337 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 */ 121 } else { 122 $timestamp += mktime(0, 0, 0, $value['month'], $value['day'], $value['year']); 123 } 124 } else { 125 $timestamp += mktime(0, 0, 0, date('m'), date('d'), date('Y')); 126 }pp_pro.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 199 lines
1<?php 2class ControllerPaymentPPPro extends Controller { 57 $this->data['months'][] = array( 58 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)), 59 'value' => sprintf('%02d', $i) 68 $this->data['year_valid'][] = array( 69 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 70 'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)) 77 $this->data['year_expire'][] = array( 78 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 79 'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))worldpay.php https://gitlab.com/shapcy/opencart | PHP | 220 lines
1<?php 2 109 110 $expiry_date = mktime(0, 0, 0, 0, (string)$response->paymentMethod->expiryMonth, (string)$response->paymentMethod->expiryYear); 111 160 $this->load->model('payment/worldpay'); 161 $message = json_decode(file_get_contents('php://input'), true); 162logs.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 336 lines
1<?php 2 24$sql = "SELECT SQL_CALC_FOUND_ROWS * FROM `" . $db_config['prefix'] . "_logs` WHERE `id`!=0"; 25$base_url = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op; 26 42 nv_insert_logs( NV_LANG_DATA, $module_name, sprintf ( $lang_module['filter_check_log'], $op ), $admin_info['username'] . " - " . $admin_info['userid'], 0 ); 43 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op ); 44 exit(); 69 { 70 $from = mktime( 0, 0, 0, $match[2], $match[1], $match[3] ); 71 $sql .= " AND `log_time` >= " . $from; 80 { 81 $to = mktime( 0, 0, 0, $match[2], $match[1], $match[3] ); 82 $sql .= " AND `log_time` <= " . $to; 278$xtpl->assign( 'URL_DEL', $base_url . "&" . NV_OP_VARIABLE . "=logs_del" ); 279$xtpl->assign( 'URL_CANCEL', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op ); 280$xtpl->assign( 'DISABLE', $disabled );date.php https://gitlab.com/vince.omega/mcb-nov-build | PHP | 405 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 4 * 5 * $Id: date.php 4316 2009-05-04 01:03:54Z kiall $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 52 53 return mktime($hrs, $min, $sec, $mon, $day, $year + 1980); 54 } 57 * Returns the offset (in seconds) between two time zones. 58 * @see http://php.net/timezones 59 * 228 // Use date to find the number of days in the given month 229 $total = date('t', mktime(1, 0, 0, $month, 1, $year)) + 1; 230generate-d7-content.sh https://gitlab.com/reasonat/test8 | Shell | 318 lines
1#!/usr/bin/env php 2<?php 12 * - Use the dump-database-d7.sh to generate the D7 file 13 * modules/simpletest/tests/upgrade/database.filled.php 14 */ 16// Define settings. 17$cmd = 'index.php'; 18define('DRUPAL_ROOT', getcwd()); 19$_SERVER['HTTP_HOST'] = 'default'; 20$_SERVER['PHP_SELF'] = '/index.php'; 21$_SERVER['REMOTE_ADDR'] = '127.0.0.1'; 24$_SERVER['QUERY_STRING'] = ''; 25$_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI'] = '/'; 26$_SERVER['HTTP_USER_AGENT'] = 'console'; 52 $mail = "test$i@example.com"; 53 $now = mktime(0, 0, 0, 1, $i + 1, 2010); 54 $query->values(array(db_next_id(), $name, user_hash_password($pass), $mail, 1, $now, $now));sale.php https://gitlab.com/firstrate/firstrate | PHP | 438 lines
1<?php 2class ModelReportSale extends Model { 121 $order_data[$i] = array( 122 'month' => date('M', mktime(0, 0, 0, $i)), 123 'total' => 0WindDate.php https://gitlab.com/wuhang2003/phpwind | PHP | 332 lines
1<?php 2/** 5 * @author Qian Su <aoxue.1988.su.qian@163.com> 6 * @copyright ©2003-2103 phpwind.com 7 * @license http://www.windframework.com 7 * @license http://www.windframework.com 8 * @version $Id: WindDate.php 2973 2011-10-15 19:22:48Z yishuo $ 9 * @package utility 128 } 129 return self::format($format, mktime($date["hours"], $date["minutes"], $date["seconds"], $date["mon"], $date["mday"], $date["year"])); 130 }component.php https://gitlab.com/alexprowars/bitrix | PHP | 189 lines
7if ($arParams["REGISTER_PAGE"] == '') 8 $arParams["REGISTER_PAGE"] = "register.php"; 9 46 { 47 $filter_date_from = date($DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")), mktime(0, 0, 0, date("m") - 3, 1, date("Y"))); 48 $filter_date_to = date($DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")), mktime(0, 0, 0, date("m"), date("d") + 1, date("Y")));frame.php git://github.com/yui/yui3.git | PHP | 0 lines
64<div id="stub"> 65<?php 66$count = ($_GET['count']) ? $_GET['count'] : 2; 86</div> 87<script type="text/javascript" src="../../build/yui/yui-debug.js?bust=<?php echo(mktime()); ?>"></script> 88<script type="text/javascript" src="js/frame.js?bust=<?php echo(mktime()); ?>"></script>php.js https://gitlab.com/juanito.abelo/nlmobile | JavaScript | 132 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 130 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 131 CodeMirror.defineMIME("text/x-php", phpConfig); 132})();Date.php https://gitlab.com/techniconline/kmc | PHP | 409 lines
1<?php 2 3/** 4 * PHPExcel 5 * 5 * 6 * Copyright (c) 2006 - 2014 PHPExcel 7 * 23 * @package PHPExcel_Shared 24 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 25 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 34 * @package PHPExcel_Shared 35 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 36 */ 138 $returnValue = round($utcDays * 86400); 139 if (($returnValue <= PHP_INT_MAX) && ($returnValue >= -PHP_INT_MAX)) { 140 $returnValue = (integer)$returnValue;Date.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 337 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) 2014 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 121 } else { 122 $timestamp += mktime(0, 0, 0, $value['month'], $value['day'], $value['year']); 123 } 124 } else { 125 $timestamp += mktime(0, 0, 0, date('m'), date('d'), date('Y')); 126 }register.php https://gitlab.com/nvtdn2006/azora | PHP | 284 lines
1<?php require_once './includes/application.php'; $this->template = 'registration'; $this->title = 'Registration'; ?> 2 107 //$activation_link = $config['PRMSConfig']->live_site . '/activate.php?atk=' . $customer['activation_key'] . '&id=' . $cryptographer->Encrypt($customer['id']); 108 $activation_link = $config['PRMSConfig']->live_site . '/activate.php?atk=' . $customer['activation_key'] . '&id=' . $customer['id']; 109 194 <td class="LabelCell Required">Name</td> 195 <td><input type="text" name="name" id="name" maxlength="255" class="input Required" value="<?php echo $customer['name']; ?>" size="20" tabindex="20" /></td> 196 </tr> 202 <td class="LabelCell">Address</td> 203 <td><input type="text" name="address" id="address" maxlength="500" class="input" value="<?php echo $customer['address']; ?>" size="20" tabindex="40" /></td> 204 </tr> 255 <td> 256 <img src="components/cool.php.captcha/captcha.php" id="captcha" /> 257 <!-- CHANGE TEXT LINK --> 258 <a href="#" onclick=" 259 document.getElementById('captcha').src='components/cool.php.captcha/captcha.php?'+Math.random(); 260 document.getElementById('captcha-form').focus();"InfiniTimeHelperTest.php git://github.com/infinitas/infinitas.git | PHP | 247 lines
1<?php 2App::uses('CakeSession', 'Model/Datasource'); 166 167 $firstDayOfMonth = date('Y-m-d', mktime(date('H'), date('i') , date('s'), date('n'), 1, date('Y'))); 168 $this->assertFalse($this->InfiniTime->isThisMonth($firstDayOfMonth . ' 01:00:00')); 170 171 $firstDayOfYear = date('Y-m-d', mktime(date('H'), date('i') , date('s'), 1, 1, date('Y'))); 172 $this->assertFalse($this->InfiniTime->isThisYear($firstDayOfYear . ' 01:00:00'));shlrsvc_pointexpiration.php https://gitlab.com/nvtdn2006/azora | PHP | 136 lines
1<?php 2/* 4 */ 5require_once './includes/service.php'; 6?> 7 8<?php 9 57 $today = getdate(); 58 $today = new DateTime(date("Y-m-d", mktime(0,0,0,$today['mon'],$today['mday'],$today['year']))); 59statistics.php https://gitlab.com/Gashler/sg | PHP | 203 lines
1<?php 2defined('WYSIJA') or die('Restricted access'); 2defined('WYSIJA') or die('Restricted access'); 3require_once(WYSIJA_CORE.'module'.DS.'statistics.php'); // @todo 4 22 */ 23 public $base_url = 'admin.php'; 24 129 'selected' => false, 130 'from' => date($this->date_format, mktime(0, 0, 0, date('m') - 1, 1, date('Y'))), 131 'to' => date($this->date_format, mktime(0, 0, 0, date('m'), 0, date('Y')))index.php https://github.com/panterch/mapsagenda.git | PHP | 511 lines
1 <?php 2 6 7 require("config.php"); 8 27// Innerhalb des Zeitrahmens? 28if(mktime(0, 0, 0, $monat,$tag, $jahr)< 10+mktime(0, 0, 0, $_POST[date10_month],$_POST[date10_date], $_POST[date10_year]) && mktime(0, 0, 0, $monat,$tag, $jahr) > mktime(0, 0, 0, $_POST[date9_month],$_POST[date9_date], $_POST[date9_year])-10){ 29 36 37//if(mktime(0, 0, 0, $monat,'1', $jahr)-60*60*24*45< mktime(0, 0, 0, $_POST[date10_month],$_POST[date10_date], $_POST[date10_year]) && mktime(0, 0, 0, $monat,'28', $jahr)+60*60*24*45 > mktime(0, 0, 0, $_POST[date9_month],$_POST[date9_date], $_POST[date9_year])){ 38//array_unshift ($selektion2,$datei); 157 <td width="224" valign="top"><br /> 158 <a href="index.php" class="titel"> 159 MAPS AGENDA<br /> 166 <tr> 167 <td valign="top" class="untertitel"><FORM action="index.php" method="post" name="datumwahl"> 168<p>1. Zeitraum wählen:Calendar.php https://gitlab.com/Riky_Lesmana/SugarSweetCakes | PHP | 506 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.2.4 or newer 6 * 108 109 if ( ! in_array('calendar_lang.php', $this->CI->lang->is_loaded, TRUE)) 110 { 192 // Set the starting day number 193 $local_date = mktime(12, 0, 0, $month, 1, $year); 194 $date = getdate($local_date); 504 505/* End of file Calendar.php */ 506/* Location: ./system/libraries/Calendar.php */trackingfront.php https://gitlab.com/ptisky/API_prestashop | PHP | 237 lines
1<?php 2/* 9* It is also available through the world-wide-web at this URL: 10* http://opensource.org/licenses/afl-3.0.php 11* If you did not receive a copy of the license and are unable to 22* @copyright 2007-2015 PrestaShop SA 23* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 75 unset($this->context->cookie->tracking_passwd); 76 Tools::redirect(Tools::getShopDomain(true, false).__PS_BASE_URI__.'modules/trackingfront/stats.php'); 77 } 103 $this->context->cookie->tracking_passwd = $passwd; 104 Tools::redirect(Tools::getShopDomain(true, false).__PS_BASE_URI__.'modules/trackingfront/stats.php'); 105 } 138 $from = $y.'-'.$m.'-01'; 139 $to = $y.'-'.$m.date('-t', mktime(12, 0, 0, $m, 15, $y)); 140 }pp_pro.php https://gitlab.com/reclamare/mao | PHP | 203 lines
1<?php 2class ControllerPaymentPPPro extends Controller { 58 $data['months'][] = array( 59 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)), 60 'value' => sprintf('%02d', $i) 69 $data['year_valid'][] = array( 70 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 71 'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)) 78 $data['year_expire'][] = array( 79 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 80 'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))new-broadcast.php https://gitlab.com/Gashler/sg | PHP | 105 lines
1<?php 2 69 70 $epoch_of_scheduled_time = mktime($send_hour,$send_minutes, 0,$month,$date,$year); 71widget-calendar.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 265 lines
1<?php 2 3if ( ! class_exists( 'WP_Widget_Calendar' ) ) { 4 require_once( ABSPATH . '/wp-includes/default-widgets.php' ); 5} 27 function widget( $args, $instance ) { 28 /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */ 29 $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? ' ' : $instance['title'], $instance, $this->id_base ); 58 if ( $cache && is_array( $cache ) && isset( $cache[ $key ] ) ) { 59 /** This filter is documented in wp-includes/general-template.php */ 60 $output = apply_filters( 'get_calendar', $cache[ $key ] ); 97 $thisyear = (int) substr( $m, 0, 4 ); 98 //it seems MySQL's weeks disagree with PHP's 99 $d = ( ( $w - 1 ) * 7 ) + 6; 112 113 $unixmonth = mktime( 0, 0 , 0, $thismonth, 1, $thisyear ); 114 $last_day = date( 't', $unixmonth );agent.php https://gitlab.com/alexprowars/bitrix | PHP | 338 lines
1<?php 2/** 14 public static function AddAgent( 15 $name, // PHP function name 16 $module = "", // module 234 { 235 $date2 = mktime(0, 0, 0, $arr["MM"], $arr["DD"]+1, $arr["YYYY"]); 236 $arSqlSearch[] = "A.LAST_EXEC>=".$DB->CharToDateFunction($DB->ForSql($val), "SHORT")." AND A.LAST_EXEC<".$DB->CharToDateFunction(ConvertTimeStamp($date2), "SHORT"); 242 { 243 $date2 = mktime(0, 0, 0, $arr["MM"], $arr["DD"]+1, $arr["YYYY"]); 244 $arSqlSearch[] = "A.NEXT_EXEC>=".$DB->CharToDateFunction($DB->ForSql($val), "SHORT")." AND A.NEXT_EXEC<".$DB->CharToDateFunction(ConvertTimeStamp($date2), "SHORT");session.test.php https://gitlab.com/hakimkal/evricaevents | PHP | 385 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package cake 16 * @subpackage cake.tests.cases.libs.controller.components 17 * @since CakePHP(tm) v 1.2.0.5436 18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 368 $Session->write('Test', 'some value'); 369 $this->assertEqual($Session->sessionTime, mktime() + (100 * Configure::read('Session.timeout'))); 370 $this->assertEqual($_SESSION['Config']['timeout'], 10);date_php4_lib.inc https://github.com/mfb/vozmob.git | Pascal | 443 lines
15 * to post 2038 versions of native php date functions. Will handle dates from 16 * the year 100 to the year 3000. Uses native php date functions when possible, 17 * alterate methods when native functions won't work. 21 * and this large file which is only parsed for dates that are out of range 22 * for native php date handling. 23 * 23 * 24 * Replace native php functions: 25 * getdate() with date_getdate() 27 * gmdate() with date_gmdate() 28 * mktime() with date_mktime() 29 * gmmktime() with gmdate_mktime() 31 * The following functions were derived from code obtained from 32 * http://phplens.com/phpeverywhere/adodb_date_library, licensed as follows: 33 *filterbar.php https://gitlab.com/futuredrive630/wp-event-list | PHP | 316 lines
1<?php 2if(!defined('ABSPATH')) { 5 6require_once( EL_PATH.'includes/db.php' ); 7require_once( EL_PATH.'includes/categories.php' ); 143 list($year, $month) = explode('-', $entry->data); 144 $elements[] = array('slug' => $entry->data, 'name' => date($options['date_format'], mktime(0,0,0,$month,1,$year))); 145 }component.php https://gitlab.com/alexprowars/bitrix | PHP | 179 lines
74 { 75 $newFromTs = mktime(date("H", $currentFromTs), date("i", $currentFromTs), 0, date("m", $instanceDateTs), date("d", $instanceDateTs), date("Y", $instanceDateTs)); 76 $arResult['EVENT']['DATE_FROM'] = CCalendar::Date($newFromTs); 150 $this->setSiteTemplateId('mobile_app'); 151 $arParams['ACTION_URL'] = SITE_DIR.'mobile/index.php?mobile_action=calendar_livefeed'; 152} 154{ 155 $arParams['ACTION_URL'] = $this->getPath().'/action.php'; 156}theme.php https://gitlab.com/sheldonels/pyrocms | PHP | 221 lines
1<?php 2 163 164 $utc = mktime(date('h') + 1, null, null, $month, $day, $year) * 1000; 165 220 221/* End of file theme.php */ClientesController.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 458 lines
1<?php 2 170 ob_start(); 171 include(app_path().'/views/pdf/factura.php'); 172 $content = ob_get_clean(); 174 // convert to PDF 175 require_once(public_path().'/packages/html2pdf/html2pdf.class.php'); 176 $html2pdf = new HTML2PDF('P', 'A4', 'es'); 207 ob_start(); 208 include(app_path().'/views/pdf/presupuesto.php'); 209 $content = ob_get_clean(); 211 // convert to PDF 212 require_once(public_path().'/packages/html2pdf/html2pdf.class.php'); 213 $html2pdf = new HTML2PDF('P', 'A4', 'es'); 242 ob_start(); 243 include(app_path().'/views/pdf/mantenimiento.php'); 244 $content = ob_get_clean();home.php https://bitbucket.org/vsepessarii/vsepessarii.git | PHP | 406 lines
1<?php 2class ControllerCommonHome extends Controller { 243 244 $data['xaxis'][] = array($i, date('H', mktime($i, 0, 0, date('n'), date('j'), date('Y')))); 245 } 314 315 $data['xaxis'][] = array($i, date('M', mktime(0, 0, 0, $i, 1, date('Y')))); 316 }calendar.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 178 lines
19<div class="calendar"> 20 <h2><?php echo clean(lang(sprintf('month %u', $month))); ?> <?php echo $year; ?></h2> 21<?php 77?> 78 <th class="<?php echo $dow_class; ?>"><?php echo clean(lang(sprintf('weekday short %u', $dow ))); ?></th> 79<?php 112?> 113 <td class="<?php echo $dow_class; ?>"> 114 <div class="date"><?php echo $dom; ?></div> 120 <ul class="entries"> 121<?php 122 foreach ($calendar[$dom] as $obj) { 175 <div class="prev-month"><a href="<?php echo get_url('milestone', 'calendar', gmdate('Ym', $prevMonth)); ?>"><?php echo clean(lang(sprintf('month %u', gmdate('m', $prevMonth)))); ?> <?php echo gmdate('Y', $prevMonth); ?></a></div> 176 <div class="next-month"><a href="<?php echo get_url('milestone', 'calendar', gmdate('Ym', $nextMonth)); ?>"><?php echo clean(lang(sprintf('month %u', gmdate('m', $nextMonth)))); ?> <?php echo gmdate('Y', $nextMonth); ?></a></div> 177 </div>admin_dashboard_ajax.php https://gitlab.com/billyprice1/cfimagehost-on-openshift | PHP | 185 lines
141 <ul> 142 <li><?php echo _T("admin_home_id");?>: <span class="number"><a href="<?php echo imageAddress(1,$mostBwImage,"di");?>" target="_blank" title="<?php echo $mostBwImage['alt'];?>" img_src="<img src='<?php echo imageAddress(3,$mostBwImage,"di");?>' />" class="imglink img_tooltip lightbox"><?php echo $mostBwImage['id'];?></a></span></li> 143 <li><?php echo _T("admin_home_name");?>: <span class="number"> <?php echo $mostBwImage['alt'];?></span></li> 143 <li><?php echo _T("admin_home_name");?>: <span class="number"> <?php echo $mostBwImage['alt'];?></span></li> 144 <li><?php echo _T("admin_home_uploaded_date");?>: <span class="number"> <?php echo date("d M Y",$mostBwImage['added']);?></span></li> 145 <li><?php echo _T("admin_home_bandwidth");?>: <span class="number"> <?php echo format_size($mostBwImage['bandwidth']);?></span></li> 151 <ul> 152 <li><?php echo _T("admin_home_id");?>: <span class="number"><a href="<?php echo imageAddress(1,$mostViewImage,"di");?>" target="_blank" title="<?php echo $mostViewImage['alt'];?>" img_src="<img src='<?php echo imageAddress(3,$mostViewImage,"di")?>' />" class="imglink img_tooltip lightbox"><?php echo $mostViewImage['id'];?></a></span></li> 153 <li><?php echo _T("admin_home_name");?>: <span class="number"> <?php echo $mostViewImage['alt'];?></span></li> 165 <ul> 166 <li><?php echo _T("admin_home_id");?>: <span class="number"><a href="<?php echo imageAddress(1,$lr_mostBwImage,"di");?>" target="_blank" title="<?php echo $lr_mostBwImage['alt'];?>" img_src="<img src='<?php echo imageAddress(3,$lr_mostBwImage,"di");?>' />" class="imglink img_tooltip lightbox"><?php echo $lr_mostBwImage['id'];?></a></span></li> 167 <li><?php echo _T("admin_home_name");?>: <span class="number"> <?php echo $lr_mostBwImage['alt'];?></span></li> 175 <ul> 176 <li><?php echo _T("admin_home_id");?>: <span class="number"><a href="<?php echo imageAddress(1,$lr_mostViewImage,"di");?>" target="_blank" title="<?php echo $lr_mostViewImage['alt'];?>" img_src="<img src='<?php echo imageAddress(3,$lr_mostViewImage,"di")?>' />" class="imglink img_tooltip lightbox"><?php echo $lr_mostViewImage['id'];?></a></span></li> 177 <li><?php echo _T("admin_home_name");?>: <span class="number"> <?php echo $lr_mostViewImage['alt'];?></span></li>CTimestamp.php http://chenjin.googlecode.com/svn/trunk/ | PHP | 378 lines
14 * Part of this class was adapted from the ADOdb Date Library 15 * {@link http://phplens.com/phpeverywhere/ ADOdb abstraction library}. 16 * The original source code was released under both BSD and GNU Lesser GPL 24 * For {@link getTimestamp}, because it is merely a wrapper of 25 * {@link mktime http://php.net/manual/en/function.mktime.php}, it may still 26 * be subject to the limit of timestamp range on certain platforms. Please refer 152 153 $TZ = mktime(0,0,0,1,2,1970) - gmmktime(0,0,0,1,2,1970); 154 return $TZ; 360 * Generates a timestamp. 361 * This is the same as the PHP function {@link mktime http://php.net/manual/en/function.mktime.php}. 362 * @param integer $hr hour 374 return $is_gmt? @gmmktime($hr,$min,$sec): @mktime($hr,$min,$sec); 375 return $is_gmt ? @gmmktime($hr,$min,$sec,$mon,$day,$year) : @mktime($hr,$min,$sec,$mon,$day,$year); 376 }paypal_direct.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 192 lines
1<?php 2class ControllerPaymentPayPalDirect extends Controller { 55 $this->data['months'][] = array( 56 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)), 57 'value' => sprintf('%02d', $i) 66 $this->data['year_valid'][] = array( 67 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 68 'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)) 75 $this->data['year_expire'][] = array( 76 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 77 'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))tipo_cambios_controller.php http://scp-soft.googlecode.com/svn/trunk/ | PHP | 359 lines
1<?php 2class TipoCambiosController extends AppController{ 155 $sunat = $sunat[count($sunat)-1]; 156 $sunat['dia'] = date('d/m/Y', mktime(0,0,0,$dateParts[1],$sunat['dia'],$dateParts[2])); 157 $result['SUNAT']=array( 243 244 $res = App::import('Vendor', 'simple_html_dom', array('file' =>'simple_html_dom'.DS.'simple_html_dom.php')); 245 282 if (empty($year)) $year = $y; 283 $from = date('d/m/Y', mktime(0, 0, 0, $month, 1, $year)); 284 $to = date('d/m/Y', mktime(0, 0, 0, $month, $day+1, $year)); 285 286 $res = App::import('Vendor', 'simple_html_dom', array('file' =>'simple_html_dom'.DS.'simple_html_dom.php')); 287 if (empty($url)) $url = $this->URL_SBS; 323 $sunat = $sunat[count($sunat)-1]; 324 $sunat['dia'] = date('d/m/Y', mktime(0,0,0,$this->periodoId(),$sunat['dia'],$this->_ejercicio['codigo'])); 325 $result['SUNAT']=array(month.php https://gitlab.com/endomorphosis/fusenews | PHP | 143 lines
5require_once(BASE.'functions/list_functions.php'); 6require_once(BASE.'functions/template.php'); 7header("Content-Type: text/html; charset=$phpiCal_config->charset"); 7header("Content-Type: text/html; charset=$phpiCal_config->charset"); 8if ($phpiCal_config->minical_view == 'current') $minical_view = 'month'; 9 10$unix_time = strtotime($getdate); 11$today_today = date('Ymd', time() + $phpiCal_config->second_offset); 12$tomorrows_date = date('Ymd', strtotime("+1 day", $unix_time)); 64$page->replace_tags(array( 65 'version' => $phpiCal_config->phpicalendar_version, 66 'charset' => $phpiCal_config->charset, 77 'rss_valid' => '', 78 'show_search' => $phpiCal_config->show_search, 79 'next_month' => $next_month,ctl.memberadvance.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 116 lines
1<?php 2require_once 'objectPage.php'; 34 function modifyDeposit() { 35 $this->begin('index.php?ctl=advance/memberadvance&act=detail&p[0]='.$_POST['member_id'].'&p[1]='.time()); 36 48 if(abs($_POST['modify_advance']) > $memberAdv){ 49 $this->splash('failed','index.php?ctl=advance/memberadvance&act=detail&p[0]='.$_POST['member_id'].'&p[1]='.time(),'??????? '.$memberAdv.' ??????????!'); 50 } 53 }else{ 54 $this->end(false, __('??ID????'),'index.php?ctl=advance/memberadvance&act=detail&p[0]='.$_POST['member_id'].'&p[1]='.time()); 55 } 56 }else{ 57 $this->end(false, __('?????????'),'index.php?ctl=advance/memberadvance&act=detail&p[0]='.$_POST['member_id'].'&p[1]='.time()); 58 } 64 if(!$_POST['freeze_money']){ 65 $this->splash('failed','index.php?ctl=advance/memberadvance&act=detail&p[0]='.$_POST['member_id'].'&p[1]='.time(),'????????'); 66 }components_lib.php https://gitlab.com/alexprowars/bitrix | PHP | 417 lines
6 { 7 $timestamp = mktime(7,30,45,2,22,2007); 8 return array( 25 ), 26 "DEFAULT" => $GLOBALS["DB"]->DateFormatToPHP(CSite::GetDateFormat("FULL")), 27 "ADDITIONAL_VALUES" => "Y", 32 { 33 $timestamp = mktime(7,30,45,2,22,2007); 34 return array( 49 ), 50 "DEFAULT" => $GLOBALS["DB"]->DateFormatToPHP(CSite::GetDateFormat("SHORT")), 51 "ADDITIONAL_VALUES" => "Y", 250 case "SHORT": 251 return FormatDate($DB->dateFormatToPHP(FORMAT_DATE), $timestamp); 252 case "FULL":date.php git://github.com/eryx/php-framework-benchmark.git | PHP | 404 lines
1<?php 2/** 9 * @copyright 2010 - 2013 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 23 * @category Core 24 * @link http://docs.fuelphp.com/classes/date.html 25 * 28 * - create_time() uses strptime and has currently a very bad hack to use strtotime for windows servers 29 * - Uses strftime formatting for dates www.php.net/manual/en/function.strftime.php 30 */ 103 104 // This really is some fugly code, but someone at PHP HQ decided strptime should 105 // output this awful array instead of a timestamp LIKE EVERYONE ELSE DOES!!! 112 * @param int UNIX timestamp from current server 113 * @param string valid PHP timezone from www.php.net/timezones 114 * @return DateDate.php http://syracava.googlecode.com/svn/trunk/ | PHP | 184 lines
1<?php 2// +----------------------------------------------------------------------+ 2// +----------------------------------------------------------------------+ 3// | PHP versions 4 and 5 | 4// +----------------------------------------------------------------------+ 9// | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB | 10// | API as well as database abstraction for PHP applications. | 11// | This LICENSE is in the BSD license style. | 44// 45// $Id: Date.php 125 2009-08-21 01:35:18Z takuji.mezawa $ 46// 55 * Several methods to convert the MDB2 native timestamp format (ISO based) 56 * to and from data structures that are convenient to worth with in side of php. 57 * For more complex date arithmetic please take a look at the Date package in PEAR 124 { 125 return MDB2_Date::unix2Mdbstamp(mktime($hour, $minute, $second, $month, $day, $year, -1)); 126 }shBrushPhp.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 91 lines
29 */ 30SyntaxHighlighter.brushes.Php = function() 31{ 54 'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+ 55 'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+ 56 'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+ 58 'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+ 59 'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+ 60 'parse_ini_file parse_str parse_url passthru pathinfo readlink realpath rewind rewinddir rmdir '+ 86 87 this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); 88}; 90SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter(); 91SyntaxHighlighter.brushes.Php.aliases = ['php']; 92BankReconciliation.php http://chronique.googlecode.com/svn/ | PHP | 394 lines
1<?php 2 2 3/* $Id: BankReconciliation.php 4735 2011-10-29 05:59:53Z daintree $*/ 4 10 11echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; 12echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; 49 /*Post the exchange difference to the last day of the month prior to current date*/ 50 $PostingDate = Date($_SESSION['DefaultDateFormat'],mktime(0,0,0, Date('m'), 0,Date('Y'))); 51 $PeriodNo = GetPeriod($PostingDate,$db); 110 </table> 111 <p>' . _('Bank Accounts have not yet been defined') . '. ' . _('You must first') . '<a href="' . $rootpath . '/BankAccounts.php">' . _('define the bank accounts') . '</a>' . ' ' . _('and general ledger accounts to be affected') . '.'; 112 include('includes/footer.inc'); 376 <p> 377 <a tabindex="4" href="' . $rootpath . '/BankMatching.php?Type=Payments&Account='.$_POST['BankAccount'].'">' . _('Match off cleared payments') . '</a> 378 </p>nganluong.class.php http://nukeviet-shop.googlecode.com/svn/trunk/ | PHP | 198 lines
1<?php 2 12 13require_once ( NV_ROOTDIR . "/includes/class/nusoap.php" ); 14 116 preg_match( $preg_match_time, $data['CREATED_TIME'], $matches ); 117 $data['CREATED_TIME'] = mktime( $matches[1], $matches[2], $matches[3], $matches[5], $matches[4], $matches[6] ); 118 120 preg_match( $preg_match_time, $data['PAID_TIME'], $matches ); 121 $data['PAID_TIME'] = mktime( $matches[1], $matches[2], $matches[3], $matches[5], $matches[4], $matches[6] ); 122 174 preg_match( $preg_match_time, $data['CREATED_TIME'], $matches ); 175 $data['CREATED_TIME'] = mktime( $matches[1], $matches[2], $matches[3], $matches[5], $matches[4], $matches[6] ); 176 178 preg_match( $preg_match_time, $data['PAID_TIME'], $matches ); 179 $data['PAID_TIME'] = mktime( $matches[1], $matches[2], $matches[3], $matches[5], $matches[4], $matches[6] ); 180home.php https://gitlab.com/anurat/earththailand | PHP | 373 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 194 $data['month'] = ( empty( $month ) )? date('n'): $month; 195 $start_date = mktime( 0, 0, 0, $data['month'], 1, $data['year'] ); 196 $end_date = mktime( 0, 0, 0, $data['month'] +1, 1, $data['year'] ) -1; 371 372/* End of file home.php */ 373/* Location: ./application/controllers/home.php */date_helper.php https://gitlab.com/MichelZuniga/neoinvoice | PHP | 611 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 46 $now = time(); 47 $system_time = mktime(gmdate("H", $now), gmdate("i", $now), gmdate("s", $now), gmdate("m", $now), gmdate("d", $now), gmdate("Y", $now)); 48 68 * 69 * This function is identical to PHPs date() function, 70 * except that it allows date codes to be formatted using 307 308 return mktime( gmdate("H", $time), gmdate("i", $time), gmdate("s", $time), gmdate("m", $time), gmdate("d", $time), gmdate("Y", $time)); 309 } 368 // YYYYMMDDHHMMSS 369 return mktime( 370 substr($time, 8, 2),date.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 303 lines
1<?php 2/** 2/** 3* @version $Id: date.php 14401 2010-01-26 14:10:00Z louis $ 4* @package Joomla.Framework 6* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 7* @license GNU/GPL, see LICENSE.php 8* Joomla! is free software. This version may have been modified pursuant 11* other free or open source software licenses. 12* See COPYRIGHT.php for copyright notices and details. 13*/ 77 } 78 $this->_date = mktime( 79 $matches[4], $matches[5], $matches[6], 113 { 114 $this->_date = mktime( 115 $matches[4], $matches[5], $matches[6],date.php git://github.com/gallery/gallery3.git | PHP | 395 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 7 * @copyright (c) 2007-2009 Kohana Team 8 * @license http://kohanaphp.com/license 9 */ 50 51 return mktime($hrs, $min, $sec, $mon, $day, $year + 1980); 52 } 55 * Returns the offset (in seconds) between two time zones. 56 * @see http://php.net/timezones 57 * 218 // Use date to find the number of days in the given month 219 $total = date('t', mktime(1, 0, 0, $month, 1, $year)) + 1; 220rosterdkp_logparse.php http://wowroster-addons.googlecode.com/svn/trunk/ | PHP | 601 lines
1<?php 2/****************************** 14 * 15 * $Id: rosterdkp_logparse.php 64 2007-02-11 23:36:30Z mathos $ 16 * 18 19require_once('xml_helper.php'); 20 374 { 375 $raid_endthreshold = mktime(date('H', $raid_endthreshold), date('i', $raid_endthreshold), date('s', $raid_endthreshold), date('m', $raid_endthreshold), (date('d', $raid_endthreshold) +1), date('Y', $raid_endthreshold)); 376 }calendarClass.php http://getk2.googlecode.com/svn/trunk/ | PHP | 421 lines
1<?php 2/** 2/** 3 * @version $Id: calendarClass.php 1492 2012-02-22 17:40:09Z joomlaworks@gmail.com $ 4 * @package K2 12 13// PHP Calendar Class Version 1.4 (5th March 2001) 14// 27// 28// URL: http://www.cascade.org.uk/software/php/calendar/ 29// Email: davidw@cascade.org.uk 244 $daysInMonth = $this->getDaysInMonth($month, $year); 245 $date = getdate(mktime(12, 0, 0, $month, 1, $year)); 246functions.php https://gitlab.com/megathrone86/SoftwareProjects | PHP | 378 lines
1<?php 2/** 19 $a = explode(BUP_DATE_DL, $date); 20 return mktime(0, 0, 0, $a[1], $a[0], $a[2]); 21 } 65 } 66 $path = BUP_CLASSES_DIR. $classFile. '.php'; 67 }template.php https://gitlab.com/alexprowars/bitrix | PHP | 286 lines
13 14 $dir = mb_substr(getLocalPath("php_interface/subscribe/templates", BX_PERSONAL_ROOT), 1); //cut leading slash 15 $abs_dir = $_SERVER["DOCUMENT_ROOT"]."/".$dir; 39 40 $strFileName= $_SERVER["DOCUMENT_ROOT"]."/".$path."/lang/".LANGUAGE_ID."/description.php"; 41 if(file_exists($strFileName)) 43 44 $strFileName= $_SERVER["DOCUMENT_ROOT"]."/".$path."/description.php"; 45 if(file_exists($strFileName)) 55 56 $dir = mb_substr(getLocalPath("php_interface/subscribe/templates", BX_PERSONAL_ROOT), 1); 57 if (mb_strpos($path, $dir."/") === 0) 98 $arSDate = localtime($last_executed); 99 $sdate = mktime(0, 0, 0, $arSDate[4]+1, $arSDate[3], $arSDate[5]+1900); 100 while($sdate < $current_time && $time_of_exec===false)10autofilter-selection-display.php https://gitlab.com/techniconline/kmc | PHP | 196 lines
22 * @package PHPExcel 23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 41echo date('H:i:s') . ' Create new PHPExcel object' . EOL; 42$objPHPExcel = new PHPExcel(); 43 78 for ($i = 1; $i <= $endDays; ++$i) { 79 $eDate = PHPExcel_Shared_Date::FormattedPHPToExcel( 80 $year, 118$objPHPExcel->getActiveSheet()->getStyle('D2:D' . $row)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDD2); 119$objPHPExcel->getActiveSheet()->getStyle('E2:F' . $row)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_USD_SIMPLE); 120$objPHPExcel->getActiveSheet()->getColumnDimension('F')->setWidth(14); 128// row, but that's not a best practise... 129$objPHPExcel->getActiveSheet()->setAutoFilter($objPHPExcel->getActiveSheet()->calculateWorksheetDimension()); 130realex_remote.php https://gitlab.com/shapcy/opencart | PHP | 348 lines
1<?php 2class ControllerPaymentRealexRemote extends Controller { 44 $data['months'][] = array( 45 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)), 46 'value' => sprintf('%02d', $i) 55 $data['year_expire'][] = array( 56 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 57 'value' => strftime('%y', mktime(0, 0, 0, 1, 1, $i))time.in.h https://gitlab.com/brian0218/rk3188_rk3066_r-box_android4.4.2_sdk | C Header | 248 lines
89# if !GNULIB_defined_struct_time_t_must_be_integral 90/* Per http://austingroupbugs.net/view.php?id=327, POSIX requires 91 time_t to be an integer type, even though C99 permits floating 126/* Return the 'time_t' representation of TP and normalize TP. */ 127# if @GNULIB_MKTIME@ 128# if @REPLACE_MKTIME@ 129# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 130# define mktime rpl_mktime 131# endif 131# endif 132_GL_FUNCDECL_RPL (mktime, time_t, (struct tm *__tp) _GL_ARG_NONNULL ((1))); 133_GL_CXXALIAS_RPL (mktime, time_t, (struct tm *__tp)); 134# else 135_GL_CXXALIAS_SYS (mktime, time_t, (struct tm *__tp)); 136# endifusers.php https://bitbucket.org/simpfc/shop.git | PHP | 295 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 202 if($u=='no such user') $u['id']=0; 203 if($this->CI->db->insert('log',array('users_id'=>$u['id'],'when'=>mktime(),'what'=>$what))) return TRUE; else return FALSE; 204 } 207 if(is_numeric($wfrom)) { 208 if($wto=='') $wto=mktime(); 209 if($user=='any') {Report.php https://gitlab.com/vincent.perdereau/picandparts | PHP | 335 lines
1<?php 2 10 * It is also available through the world-wide-web at this URL: 11 * http://opensource.org/licenses/osl-3.0.php 12 * 16 * @copyright Copyright CedCommerce (http://cedcommerce.com/) 17 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 18 */ 116 $results[$i] = array( 117 'month' => date('M', mktime(0, 0, 0, $i)), 118 'total' => 0adv_graph_1.php https://gitlab.com/alexprowars/bitrix | PHP | 132 lines
1<?php 2define("STOP_STATISTICS", true); 2define("STOP_STATISTICS", true); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 4/** @var CMain $APPLICATION */ 6if($STAT_RIGHT=="D") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); 7include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php"); 8require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php"); 37{ 38 $date = mktime(0, 0, 0, $arData["MONTH"], $arData["DAY"], $arData["YEAR"]); 39 $date_tmp = 0;polldaddy.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 403 lines
1<?php 2 86 if ( empty( $title ) ) 87 /** This filter is documented in core/src/wp-includes/general-template.php */ 88 $title = apply_filters( 'wp_title', $post->post_title, '', '' ); 170 else { 171 $cb = ( $cb == 1 ? '?cb='.mktime() : false ); 172 $margins = ''; 396 397 /** This filter is documented in modules/shortcodes/youtube.php */ 398 if ( apply_filters( 'jetpack_comments_allow_oembed', get_option( 'embed_autourls' ) ) ) {cron.php https://gitlab.com/nexxuz/phpBMS | PHP | 377 lines
1<?php 2 5 6 include("../../include/session.php"); 7 /** 7 /** 8 * tables.php for push records 9 */ 9 */ 10 include_once("../../include/tables.php"); 11 34 35 if(moduleExists("mod:b2d42220-443b-fe74-dbdb-ed2c0968c38c", $phpbms->modules)){ 36 $querystatement .= " 86 case "pushrecord": 87 include_once("../../modules/api/include/push.php"); 88Date.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 351 lines
1<?php 2 3/** 4 * PHPExcel 5 * 5 * 6 * Copyright (c) 2006 - 2011 PHPExcel 7 * 23 * @package PHPExcel_Shared 24 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) 25 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Shared 34 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 101 $returnValue = round($utcDays * 24 * 60 * 60); 102 if (($returnValue <= PHP_INT_MAX) && ($returnValue >= - PHP_INT_MAX)) 103 {authorizenet_aim.php https://gitlab.com/reclamare/mao | PHP | 190 lines
1<?php 2class ControllerPaymentAuthorizeNetAim extends Controller { 19 $data['months'][] = array( 20 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)), 21 'value' => sprintf('%02d', $i) 30 $data['year_expire'][] = array( 31 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 32 'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))day.php git://pkgs.fedoraproject.org/virtuoso-opensource | PHP | 300 lines
149<?php if ( empty ( $friendly ) ) { ?> 150<TD VALIGN="left"><A HREF="day.php?<?php echo $u_url;?>date=<?php echo $prevYmd . $caturl;?>"><img align="left" src="leftarrow.gif" width="36" height="32" border="0" alt="<?php etranslate("Previous"); ?>"></A></TD> 151<?php } ?> 173<?php if ( empty ( $friendly ) ) { ?> 174<TD VALIGN="right"><A HREF="day.php?<?php echo $u_url;?>date=<?php echo $nextYmd . $caturl;?>"><img align="right" src="rightarrow.gif" width="36" height="32" border="0" alt="<?php etranslate("Next"); ?>"></A></TD> 175<?php } ?> 211<TABLE BORDER="0" WIDTH="100%" CELLSPACING="1" CELLPADDING="2"> 212<TR><TH COLSPAN="7" BGCOLOR="<?php echo $THBG?>"><FONT SIZE="+4" COLOR="<?php echo $THFG?>"><?php echo $thisday?></FONT></TH></TR> 213<TR> 213<TR> 214<TD ALIGN="left" BGCOLOR="<?php echo $THBG?>"><A HREF="day.php?<?php echo $u_url; ?>date=<?php echo $month_ago . $caturl?>" CLASS="monthlink"><img src="leftarrowsmall.gif" width="18" height="18" border="0" ALT="<? etranslate("Previous")?>"></A></TD> 215<TH COLSPAN="5" BGCOLOR="<?php echo $THBG?>"><FONT COLOR="<?php echo $THFG?>"><?php echo date_to_str ( sprintf ( "%04d%02d01", $thisyear, $thismonth ), $DATE_FORMAT_MY, false ) ?></FONT></TH> 215<TH COLSPAN="5" BGCOLOR="<?php echo $THBG?>"><FONT COLOR="<?php echo $THFG?>"><?php echo date_to_str ( sprintf ( "%04d%02d01", $thisyear, $thismonth ), $DATE_FORMAT_MY, false ) ?></FONT></TH> 216<TD ALIGN="right" BGCOLOR="<?php echo $THBG?>"><A HREF="day.php?<?php echo $u_url; ?>date=<?php echo $month_ahead . $caturl?>" CLASS="monthlink"><img src="rightarrowsmall.gif" width="18" height="18" border="0" alt="<?php etranslate("Next") ?>"></A></TD> 217</TR>class.videopress-video.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 324 lines
1<?php 2/** 257 if ( is_array( $expires_array ) && isset( $expires_array['tm_hour'] ) && isset( $expires_array['tm_min'] ) && isset( $expires_array['tm_sec'] ) && isset( $expires_array['tm_mon'] ) && isset( $expires_array['tm_mday'] ) && isset( $expires_array['tm_year'] ) ) 258 return gmmktime( $expires_array['tm_hour'], $expires_array['tm_min'], $expires_array['tm_sec'], 1 + $expires_array['tm_mon'], $expires_array['tm_mday'], 1900 + $expires_array['tm_year'] ); 259 } 270 public static function hostname( $url ) { 271 return parse_url( esc_url_raw( $url ), PHP_URL_HOST ); 272 }class.php https://gitlab.com/nexxuz/phpBMS | PHP | 268 lines
145 ?> 146 <h3 class="tasksLinks"><?php echo $title; if($numRows) {?> <span class="small">(<?php echo $numRows?>)</span><?php } ?></h3> 147 236 237 ?><div class="taskSection"><?php echo $section["title"] ?></div><?php 238 246 247 <input class="radiochecks taskChecks" id="<?php echo $checkBoxID?>" name="<?php echo $checkBoxID?>" type="checkbox" value="1" <?php if($therecord["completed"]) echo 'checked="checked"'?> align="middle" /> 248 248 249 <a href="<?php echo $link?>"><?php echo htmlQuotes($therecord["subject"])?></a> 250 259 } else { ?> 260 <p class="small disabledtext">no <?php echo strtolower($title)?></p><?php 261 }?>class-ai1ec-importer-helper.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 255 lines
1<?php 2// 2// 3// class-ai1ec-importer-helper.php 4// all-in-one-event-calendar 92 // include ical parser 93 if( version_compare( PHP_VERSION, '5.3.0' ) >= 0 ) { 94 // Parser that requires PHP v5.3.0 or up 94 // Parser that requires PHP v5.3.0 or up 95 require_once( AI1EC_LIB_PATH . '/iCalcreator-2.10.23/iCalcreator.class.php' ); 96 require_once( AI1EC_LIB_PATH . '/iCalcreator-2.10.23//iCalUtilityFunctions.class.php' ); 97 } else { 98 // Parser that works on PHP versions below 5.3.0 99 require_once( AI1EC_LIB_PATH . '/iCalcreator-2.10/iCalcreator.class.php' ); 99 require_once( AI1EC_LIB_PATH . '/iCalcreator-2.10/iCalcreator.class.php' ); 100 require_once( AI1EC_LIB_PATH . '/iCalcreator-2.10/iCalUtilityFunctions.class.php' ); 101 }location.php https://gitlab.com/alexprowars/bitrix | PHP | 298 lines
16 array( 17 'Bitrix\\Sale\\Delivery\\Pecom\\Replacement' => 'ru/delivery/pecom/replacement.php' 18 ) 76 77 $startTime = mktime(true); 78 $imported = 0; 126 127 if($timeout > 0 && (mktime(true)-$startTime) >= $timeout) 128 return intval($key); 153 154 $jsnData = $http->get("https://www.pecom.ru/ru/calc/towns.php"); 155 $errors = $http->getError();Cron.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 217 lines
1<?php 2 133 echo '.'; 134 $date = mktime(0, 0, 0, date('n', $a_obj['search_published']), date('j', $a_obj['search_published']), date('Y', $a_obj['search_published'])); 135 $data = array(calendar.php https://gitlab.com/VTTE/sitios-vtte | PHP | 285 lines
1<?php 2/** 9 * @copyright Copyright (c) 2017, Kees Meijer 10 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 11 * @since 2.5.1 59 if ( $is_cache && $is_cache_data ) { 60 /** This filter is documented in includes/calendar.php */ 61 $output = apply_filters( 'cptda_get_calendar', $cache[ $key ], $cache_data[ $key ] ); 253 254 if ( 6 == calendar_week_mod( date( 'w', mktime( 0, 0 , 0, $thismonth, $day, $thisyear ) ) - $week_begins ) ) { 255 $newrow = true; 258 259 $pad = 7 - calendar_week_mod( date( 'w', mktime( 0, 0 , 0, $thismonth, $day, $thisyear ) ) - $week_begins ); 260 if ( $pad != 0 && $pad != 7 ) { 282 } 283 /** This filter is documented in includes/calendar.php */ 284 return apply_filters( 'cptda_get_calendar', $output, $calendar );php.js https://gitlab.com/manuvelasco/agostoliquida | JavaScript | 140 lines
32 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"), 33 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"), 34 multiLineStrings: true, 63 var htmlMode = CodeMirror.getMode(config, "text/html"); 64 var phpMode = CodeMirror.getMode(config, phpConfig); 65 91 return style; 92 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 93 state.curMode = htmlMode; 112 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 113 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 114 if (state.curMode == htmlMode) cur = htmlNew; 138 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 139 CodeMirror.defineMIME("text/x-php", phpConfig); 140});country_graph.php https://gitlab.com/alexprowars/bitrix | PHP | 100 lines
1<?php 2define("STOP_STATISTICS", true); 2define("STOP_STATISTICS", true); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 4/** @var CMain $APPLICATION */ 6if($STAT_RIGHT=="D") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); 7include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php"); 8require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php"); 40{ 41 $date = mktime(0,0,0,$arD["M"],$arD["D"],$arD["Y"]); 42 $date_tmp = 0;addads.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 156 lines
1<?php 2 30 $upload_blocked = $lang_module['upload_blocked']; 31 include ( NV_ROOTDIR . "/includes/header.php" ); 32 echo nv_site_theme( $upload_blocked ); 32 echo nv_site_theme( $upload_blocked ); 33 include ( NV_ROOTDIR . "/includes/footer.php" ); 34 exit(); 38 $xtpl->assign( 'NV_BASE_URLSITE', NV_BASE_SITEURL ); 39 $xtpl->assign( 'clientinfo_link', NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=clientinfo" ); 40 $xtpl->assign( 'clientinfo_addads', NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=addads" ); 40 $xtpl->assign( 'clientinfo_addads', NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=addads" ); 41 $xtpl->assign( 'clientinfo_stats', NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=stats" ); 42 $xtpl->parse( 'main.management' ); 74 { 75 @require_once ( NV_ROOTDIR . "/includes/class/upload.class.php" ); 76 $upload = new upload( $file_allowed_ext, $global_config['forbid_extensions'], $global_config['forbid_mimes'], NV_UPLOAD_MAX_FILESIZE, NV_MAX_WIDTH, NV_MAX_HEIGHT );globalpay_remote.php https://gitlab.com/reclamare/mao | PHP | 352 lines
1<?php 2class ControllerPaymentGlobalpayRemote extends Controller { 44 $data['months'][] = array( 45 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)), 46 'value' => sprintf('%02d', $i) 55 $data['year_expire'][] = array( 56 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 57 'value' => strftime('%y', mktime(0, 0, 0, 1, 1, $i))10autofilter-selection-1.php https://github.com/EOL/eol_php_code.git | PHP | 221 lines
33 34define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); 35 36/** Include PHPExcel */ 37require_once '../Classes/PHPExcel.php'; 38 41echo date('H:i:s').' Create new PHPExcel object'.EOL; 42$objPHPExcel = new PHPExcel(); 43 50 ->setDescription('Test document for PHPExcel, generated using PHP classes.') 51 ->setKeywords('office PHPExcel php') 52 ->setCategory('Test result file'); 204 205$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); 206$objWriter->save(str_replace('.php', '.xls', __FILE__));component.php https://gitlab.com/Rad1calDreamer/honey | PHP | 391 lines
109 "ACTIVE" => "Y", 110 ">=".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$currentMonth,1,$currentYear)), 111 "<".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$currentMonth+1,1,$currentYear)), 130 "ACTIVE" => "Y", 131 "<".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,1,1,$currentYear)), 132 "IBLOCK_ID" => $arParams["IBLOCK_ID"], 145 "ACTIVE" => "Y", 146 "<".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$currentMonth,1,$currentYear)), 147 "IBLOCK_ID" => $arParams["IBLOCK_ID"], 158 { 159 $bCheckNext = mktime(0, 0, 0 ,$currentMonth+1, 1, $currentYear) < mktime(0, 0, 0 ,$todayMonth+1, 1, $todayYear); 160 } 307 308 $tmpDate = date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$m,$d,$y)); 309 if(is_set($arDays[$tmpDate]))CTimestamp.php https://gitlab.com/zenfork/vektor | PHP | 376 lines
14 * Part of this class was adapted from the ADOdb Date Library 15 * {@link http://phplens.com/phpeverywhere/ ADOdb abstraction library}. 16 * The original source code was released under both BSD and GNU Lesser GPL 24 * For {@link getTimestamp}, because it is merely a wrapper of 25 * {@link mktime http://php.net/manual/en/function.mktime.php}, it may still 26 * be subject to the limit of timestamp range on certain platforms. Please refer 151 152 $TZ = mktime(0,0,0,1,2,1970) - gmmktime(0,0,0,1,2,1970); 153 return $TZ; 359 * Generates a timestamp. 360 * This is the same as the PHP function {@link mktime http://php.net/manual/en/function.mktime.php}. 361 * @param integer $hr hour 372 if ($mon === false) 373 return $is_gmt? @gmmktime($hr,$min,$sec): @mktime($hr,$min,$sec); 374 return $is_gmt ? @gmmktime($hr,$min,$sec,$mon,$day,$year) : @mktime($hr,$min,$sec,$mon,$day,$year);YtsTypeTransfers.yml https://gitlab.com/aegir/provision | YAML | 266 lines
9 String 10php: | 11 'String' 26 - Oh, oh yeah. Uh.. Yaml for Ruby. 27php: | 28 [ 44 the comma can, honestly, be used in most cases: [ but not in, inline collections ] 45php: | 46 [ 58 number string: !!str 192 59php: | 60 [ 76 entities: '£ me' 77php: | 78 [DateTime.cpp https://gitlab.com/garbotron/stepmania | C++ | 352 lines
260 * Refs: 261 * http://bugs.php.net/bug.php?id=10686 262 * http://sourceforge.net/tracker/download.php?group_id=37892&atid=421366&file_id=79179&aid=91133 268/* start.tm_mday += iDaysToMove; 269 time_t seconds = mktime( &start ); 270 ASSERT( seconds != (time_t)-1 ); 275 * behavior, but I'm not sure that it mattersmatters. */ 276 time_t seconds = mktime( &start ); 277 seconds += iDaysToMove*60*60*24; 303{ 304 /* If iDayInYearIndex is 200, set the date to Jan 200th, and let mktime 305 * round it. This shouldn't suffer from the OSX mktime() issue described 311 when.tm_year = iYear - 1900; 312 time_t then = mktime( &when ); 313action.class.php http://ourproject.googlecode.com/svn/trunk/ | PHP | 452 lines
5 * Link for job@phpyun.com 6 * This PHPYun.Rencai System Powered by PHPYun.com 7 */ 185 */ 186 function Get_user_login($username, $password, $urlture = 'usermanage.php', $urlfalse = 'login.php') { 187 $username = str_replace(" ", "", $username); 244 $com=$this->DB_select_once("comid","`uid`='$comuid'"); 245 $time=($com[vip_time]-mktime())/86400; 246 if($com[usertype]==2 && $time>=120 && $time<365){ 260 */ 261 function Get_com_login($username, $password, $urlture = 'commanage.php', $urlfalse = 'logins.php') { 262 $username = str_replace(" ", "", $username); 276 if($row[usertype]>1){ 277 if($row[vip_time]<mktime()){ 278 $where="`vip_time`='0',`usertype`='1',";generate-d6-content.sh https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | Shell | 207 lines
1#!/usr/bin/env php 2<?php 11 * - Use the dump-database-d6.sh to generate the D7 file 12 * modules/simpletest/tests/upgrade/database.filled.php 13 */ 15// Define settings. 16$cmd = 'index.php'; 17$_SERVER['HTTP_HOST'] = 'default'; 17$_SERVER['HTTP_HOST'] = 'default'; 18$_SERVER['PHP_SELF'] = '/index.php'; 19$_SERVER['REMOTE_ADDR'] = '127.0.0.1'; 22$_SERVER['QUERY_STRING'] = ''; 23$_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI'] = '/'; 24$_SERVER['HTTP_USER_AGENT'] = 'console'; 48 $mail = "test$i@example.com"; 49 $now = mktime(0, 0, 0, 1, $i + 1, 2010); 50 db_query("INSERT INTO {users} (name, pass, mail, status, created, access) VALUES ('%s', '%s', '%s', %d, %d, %d)", $name, $pass, $mail, 1, $now, $now);function.html_select_date.php https://gitlab.com/Shenglian/SmartyProject | PHP | 391 lines
1<?php 2/** 11 */ 12require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'); 13/** 15 */ 16require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php'); 17 41 * 42 * @link http://www.smarty.net/manual/en/language.function.html.select.date.php {html_select_date} 43 * (Smarty online manual) 61 for ($i = 1; $i <= 12; $i ++) { 62 $_month_timestamps[ $i ] = mktime(0, 0, 0, $i, 1, 2000); 63 } 81 $reverse_years = false; 82 /* Should the select boxes be part of an array when returned from PHP? 83 e.g. setting it to "birthday", would create "birthday[Day]",eway.php https://gitlab.com/dadangnh/sb1-bon | PHP | 291 lines
1<?php 2class ControllerExtensionPaymentEway extends Controller { 39 $data['year_expire'][] = array( 40 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 41 'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))gmmktime_variation2.php https://gitlab.com/iranjith4/hhvm | PHP | 95 lines
1<?php 2/* Prototype : int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]]) 3 * Description: Get UNIX timestamp for a GMT date 4 * Source code: ext/date/php_date.c 5 * Alias to functions: 7 8echo "*** Testing gmmktime() : usage variation ***\n"; 9 90 echo "\n--$key--\n"; 91 var_dump( gmmktime($hour, $value, $sec, $mon, $day, $year) ); 92};UHtml.php https://gitlab.com/Griffolion/Final-Year-Project | PHP | 190 lines
1<?php 2class UHtml extends CHtml 68 $arr = $model->$attribute; 69 $model->$attribute = mktime($arr['hour'],$arr['minute'],$arr['second'],$arr['month'],$arr['day'],$arr['year']); 70 }InlineTest.php https://gitlab.com/jalon/doadoronline | PHP | 231 lines
1<?php 2 15 16class InlineTest extends \PHPUnit_Framework_TestCase 17{ 20 foreach ($this->getTestsForParse() as $yaml => $value) { 21 $this->assertSame($value, Inline::parse($yaml), sprintf('::parse() converts an inline YAML to a PHP structure (%s)', $yaml)); 22 } 29 foreach ($testsForDump as $yaml => $value) { 30 $this->assertEquals($yaml, Inline::dump($value), sprintf('::dump() converts a PHP structure to an inline YAML (%s)', $yaml)); 31 } 142 143 '2007-10-30' => mktime(0, 0, 0, 10, 30, 2007), 144 '2007-10-30T02:59:43Z' => gmmktime(2, 59, 43, 10, 30, 2007), 144 '2007-10-30T02:59:43Z' => gmmktime(2, 59, 43, 10, 30, 2007), 145 '2007-10-30 02:59:43 Z' => gmmktime(2, 59, 43, 10, 30, 2007), 146 '1960-10-30 02:59:43 Z' => gmmktime(2, 59, 43, 10, 30, 1960),component.php https://gitlab.com/alexprowars/bitrix | PHP | 269 lines
76$arResult["ALL"] = 0; 77$cache = new CPHPCache(); 78$cache_path_main = str_replace(array(":", "//"), "/", "/".SITE_ID."/".$componentName."/"); 169 $arTTL = getdate(); 170 $TTL = mktime(0, 0, 0, $arTTL['mon'], $arTTL['mday'], $arTTL['year']); 171 if (is_array($res["arUserBirthday"]) && isset($res['timestamp']) && $TTL < ($res['timestamp']+$BIRTHDAY_CACHE_TIME)) 197 $arTTL = getdate(); 198 $TTL = mktime(0, 0, 0, $arTTL['mon'], $arTTL['mday'], $arTTL['year']); 199 $cache->EndDataCache(array(php_date.h https://gitlab.com/envieidoc/tomato | C Header | 203 lines
125typedef struct _php_timezone_obj php_timezone_obj; 126typedef struct _php_interval_obj php_interval_obj; 127typedef struct _php_period_obj php_period_obj; 181PHPAPI signed long php_parse_date(char *string, signed long *now); 182PHPAPI void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt); 183PHPAPI int php_idate(char format, time_t ts, int localtime TSRMLS_DC); 190/* Mechanism to set new TZ database */ 191PHPAPI void php_date_set_tzdb(timelib_tzdb *tzdb); 192PHPAPI timelib_tzinfo *get_timezone_info(TSRMLS_D); 194/* Grabbing CE's so that other exts can use the date objects too */ 195PHPAPI zend_class_entry *php_date_get_date_ce(void); 196PHPAPI zend_class_entry *php_date_get_timezone_ce(void); 199PHPAPI zval *php_date_instantiate(zend_class_entry *pce, zval *object TSRMLS_DC); 200PHPAPI int php_date_initialize(php_date_obj *dateobj, /*const*/ char *time_str, int time_str_len, char *format, zval *timezone_object, int ctor TSRMLS_DC); 201bluepay_redirect.php https://gitlab.com/reclamare/mao | PHP | 151 lines
1<?php 2class ControllerPaymentBluePayRedirect extends Controller { 34 $data['months'][] = array( 35 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)), 36 'value' => sprintf('%02d', $i) 45 $data['year_expire'][] = array( 46 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 47 'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))prdcr_contact_info_admin.php https://gitlab.com/Henaway/CLFC | PHP | 110 lines
1<?php 2 60 $membership_date = $row['membership_date']; 61// include("../func/show_name.php"); 62 $display .= $business_name.'<br>'; 104 $day = substr ($membership_date, 8); 105 $member_since = date('F j, Y',mktime(0, 0, 0, $month, $day, $year)); 106 $display .= 'Member since '.$member_since.'<br>';bb3countdown.php https://gitlab.com/protoneutron/bb3countdown | PHP | 192 lines
1<?php 2 6* @copyright (c) 2014 PPK 7* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 8* 16 */ 17if (!defined('IN_PHPBB')) 18{ 24 25 /** @var \phpbb\config\config */ 26 protected $config; 27 28 /** @var \phpbb\template\template */ 29 protected $template; 35 36 public function __construct(\phpbb\config\config $config, \phpbb\template\template $template, $phpbb_root_path) 37 {wp-mail.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 230 lines
1<?php 2/** 10/** Make sure that the WordPress bootstrap has run before continuing. */ 11require(dirname(__FILE__) . '/wp-load.php'); 12 16/** Allow a plugin to do a complete takeover of Post by Email **/ 17do_action('wp-mail.php'); 18 19/** Get the POP3 class with which to access the mailbox. */ 20require_once( ABSPATH . WPINC . '/class-pop3.php' ); 21 146 $time_zn = intval($date_arr[4]) * 36; 147 $ddate_U = gmmktime($ddate_H, $ddate_i, $ddate_s, $ddate_m, $ddate_d, $ddate_Y); 148 $ddate_U = $ddate_U - $time_zn;RotatingFileHandlerTest.php https://gitlab.com/Sigpot/AirSpot | PHP | 211 lines
1<?php 2 14use Monolog\TestCase; 15use PHPUnit_Framework_Error_Deprecated; 16 24 * in the `setUp` method won't be able to set it. `$this` cant't 25 * be used in the anonymous function in `setUp` because PHP 5.3 26 * does not support it. 38 $self = $this; 39 // workaround with &$self used for PHP 5.3 40 set_error_handler(function($code, $message) use (&$self) { 113 $monthCallback = function($ago) { 114 return gmmktime(0, 0, 0, date('n') + $ago, date('d'), date('Y')); 115 }; 116 $yearCallback = function($ago) { 117 return gmmktime(0, 0, 0, date('n'), date('d'), date('Y') + $ago); 118 };indexAction.class.php https://gitlab.com/selecterskyphp/58bitao.git | PHP | 419 lines
1<?php 2class indexAction extends FirstendAction { 16 17 $today_str = mktime(0,0,0,date("m"),date("d"),date("Y")); 18 $tomorr_str = mktime(0,0,0,date("m"),date("d")+1,date("Y")); 187 188 $today_str = mktime(0,0,0,date("m"),date("d"),date("Y")); 189 $tomorr_str = mktime(0,0,0,date("m"),date("d")+1,date("Y")); 329 330 $today_str = mktime(0,0,0,date("m"),date("d"),date("Y")); 331 $tomorr_str = mktime(0,0,0,date("m"),date("d")+1,date("Y"));ordine_cliente.php http://gevion.googlecode.com/svn/trunk/ | PHP | 204 lines
1<?php 2/* $Id: ordine_cliente.php,v 1.13 2010/01/01 14:15:18 devincen Exp $ 24*/ 25require('template.php'); 26 34 $this->anno = substr($this->tesdoc['datemi'],0,4); 35 $this->nomemese = ucwords(strftime("%B", mktime (0,0,0,substr($this->tesdoc['datemi'],5,2),1,0))); 36 $this->sconto = $this->tesdoc['sconto'];web_payment_software.php https://gitlab.com/dadangnh/sb1-bon | PHP | 145 lines
1<?php 2class ControllerExtensionPaymentWebPaymentSoftware extends Controller { 20 $data['months'][] = array( 21 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)), 22 'value' => sprintf('%02d', $i) 31 $data['year_expire'][] = array( 32 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 33 'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))php.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 132 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 130 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 131 CodeMirror.defineMIME("text/x-php", phpConfig); 132})();QuickForm.php git://git.savannah.nongnu.org/gcourrier.git | PHP | 507 lines
1<?php /*-*-PHP-*-*/ 2/* 160 print " "; 161 $month = mktime(0, 0, 0, $value['M'], 1, 2001); 162 print strftime('%b', $month); 184 { 185 $month = mktime(0, 0, 0, $i, 1, 2001); 186 $selected = ''; 480 { 481 print "<form id='$this->name' action='{$_SERVER['PHP_SELF']}' method='$this->method'>"; 482 print "FieldDateTest.php https://gitlab.com/reasonat/test8 | PHP | 193 lines
1<?php 2 59 foreach ($datas as $i => $data) { 60 $datas[$i]['destroyed'] = gmmktime(0, 0, 0, 1, 1, 2050); 61 } 77 'relationship' => 'none', 78 // ISO 8601 format, see http://php.net/manual/function.date.php 79 'custom_date_format' => 'c', 88 )); 89 $time = gmmktime(0, 0, 0, 1, 1, 2000); 90 129 // Check times in the future. 130 $time = gmmktime(0, 0, 0, 1, 1, 2050); 131 $formatted = $this->container->get('date.formatter')->formatTimeDiffUntil($time);component.php https://gitlab.com/alexprowars/bitrix | PHP | 230 lines
90 91 $cache = new CPHPCache; 92 $cache_id = "blog_calendar_".serialize($arParams).$strUserGroups; 181 182 $firstDate = mktime(0, 0, 0, $currentMonth, 1, $currentYear); 183 $firstDay = intval(date("w", $firstDate) - 1); 195 $arResult["CALENDAR"][$i][$j] = Array(); 196 $date = mktime(0, 0, 0, $currentMonth, 1 - $firstDay + $row + $j, $currentYear); 197 $y = intval(date("Y", $date));auxiliary.php https://gitlab.com/alexprowars/bitrix | PHP | 265 lines
1<?php 2 2 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/sale/general/auxiliary.php"); 4 171 if ($periodType == "I") 172 $deleteVal = mktime(date("H"), date("i") - $periodLength, date("s"), date("m"), date("d"), date("Y")); 173 elseif ($periodType == "H") 173 elseif ($periodType == "H") 174 $deleteVal = mktime(date("H") - $periodLength, date("i"), date("s"), date("m"), date("d"), date("Y")); 175 elseif ($periodType == "D") 175 elseif ($periodType == "D") 176 $deleteVal = mktime(date("H"), date("i"), date("s"), date("m"), date("d") - $periodLength, date("Y")); 177 elseif ($periodType == "W") 177 elseif ($periodType == "W") 178 $deleteVal = mktime(date("H"), date("i"), date("s"), date("m"), date("d") - 7 * $periodLength, date("Y")); 179 elseif ($periodType == "M")10autofilter-selection-display.php https://gitlab.com/Iftekhar_ramim/AtomicProjects_127301_B21 | PHP | 198 lines
22 * @package PHPExcel 23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 41echo date('H:i:s').' Create new PHPExcel object'.EOL; 42$objPHPExcel = new PHPExcel(); 43 79 for($i = 1; $i <= $endDays; ++$i) { 80 $eDate = PHPExcel_Shared_Date::FormattedPHPToExcel( 81 $year, 119$objPHPExcel->getActiveSheet()->getStyle('D2:D'.$row)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_DATE_YYYYMMDD2); 120$objPHPExcel->getActiveSheet()->getStyle('E2:F'.$row)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_USD_SIMPLE); 121$objPHPExcel->getActiveSheet()->getColumnDimension('F')->setWidth(14); 130// row, but that's not a best practise... 131$objPHPExcel->getActiveSheet()->setAutoFilter($objPHPExcel->getActiveSheet()->calculateWorksheetDimension()); 132calendar.php https://gitlab.com/alexprowars/bitrix | PHP | 180 lines
9 10require_once(dirname(__FILE__)."/../include/prolog_before.php"); 11IncludeModuleLangFile(__FILE__); 80{ 81 $initDate = mktime($iH, $iI, $iS, $aInitDate[1], $aInitDate[0], $aInitDate[2]); 82 $init_y = intval(date("Y", $initDate)); 101 <a class="headtext" title="<?echo GetMessage("calend_prev_mon")?>" style="text-decoration:none; color:red;" href="<?echo $sDocPath."?date=".GetTime(mktime($iH, $iI, $iS, $m1-1, 1, $y1), $dtformat).$sParam?>">«</a> 102 <a title="<?echo GetMessage("calend_per_mon")?>" href="javascript:InsertPeriod('<?echo GetTime(mktime($iH, $iI, $iS, $m1, 1, $y1), $dtformat)?>','<?echo GetTime(mktime($iH, $iI, $iS, $m1+1, 0, $y1), $dtformat)?>')" class="headtext"><?echo $aMonths[$m1-1]?></a> 103 <a class="headtext" title="<?echo GetMessage("calend_next_mon")?>" style="text-decoration:none; color:red;" href="<?echo $sDocPath."?date=".GetTime(mktime($iH, $iI, $iS, $m1+1, 1, $y1), $dtformat).$sParam?>">»</a> 106 <a class="headtext" title="<?echo GetMessage("calend_prev_year")?>" style="text-decoration:none; color:red;" href="<?echo $sDocPath."?date=".GetTime(mktime($iH, $iI, $iS, $m1, 1, $y1-1), $dtformat).$sParam?>">«</a> 107 <a title="<?echo GetMessage("calend_per_year")?>" href="javascript:InsertPeriod('<?echo GetTime(mktime($iH, $iI, $iS, 1, 1, $y1), $dtformat)?>','<?echo GetTime(mktime($iH, $iI, $iS, 1, 0, $y1+1), $dtformat)?>')" class="headtext"><?echo $y1?></a> 108 <a class="headtext" title="<?echo GetMessage("calend_next_year")?>" style="text-decoration:none; color:red;" href="<?echo $sDocPath."?date=".GetTime(mktime($iH, $iI, $iS, $m1, 1, $y1+1), $dtformat).$sParam?>">»</a> 137 echo "<tr align=\"center\">\n". 138 "<td><a title=\"".GetMessage("calend_per_week")."\" href=\"javascript:InsertPeriod('".GetTime(mktime($iH, $iI, $iS, $m1, 1-$firstDay+$row, $y1), $dtformat)."','".GetTime(mktime($iH, $iI, $iS, $m1, 1-$firstDay+$row+6, $y1), $dtformat)."')\" class=\"headtext\" style=\"text-decoration:none\">> </a></td>"; 139 for($j=0; $j<7; $j++)