PageRenderTime 379ms queryTime 32ms sortTime 5ms getByIdsTime 102ms findMatchingLines 181ms

100+ results results for 'php filemtime repo:KOLANICH/SabreDAV' (379 ms)

Not the results you expected?
lastRSS.php https://github.com/Lucky65/phpBB-Portal-XL-5.0-italian.git | PHP | 220 lines
                    
1<?php
                    
2/*
                    
5 
                    
6 Simple yet powerfull PHP class to parse RSS files.
                    
7 
                    
31* lastRSS
                    
32* Simple yet powerfull PHP class to parse RSS files.
                    
33*/
                    
59			$cache_file = $this->cache_dir . '/rsscache_' . md5($rss_url) . '.dat';
                    
60			$timedif = @(time() - filemtime($cache_file));
                    
61			if ($timedif < $this->cache_time) {
                    
                
cache.php https://github.com/micz/elencode.git | PHP | 289 lines
                    
1<?php
                    
2/**
                    
9if(!defined('DOKU_INC')) die('meh.');
                    
10require_once(DOKU_INC.'inc/io.php');
                    
11require_once(DOKU_INC.'inc/pageutils.php');
                    
11require_once(DOKU_INC.'inc/pageutils.php');
                    
12require_once(DOKU_INC.'inc/parserutils.php');
                    
13
                    
67    if (!empty($this->depends['purge'])) return false;              // purge requested?
                    
68    if (!($this->_time = @filemtime($this->cache))) return false;   // cache exists?
                    
69
                    
74      foreach ($this->depends['files'] as $file) {
                    
75        if ($this->_time < @filemtime($file)) return false;         // cache older than files it depends on?
                    
76      }
                    
190    $files = array($this->file,                                     // ... source
                    
191                   DOKU_INC.'inc/parser/parser.php',                // ... parser
                    
192                   DOKU_INC.'inc/parser/handler.php',               // ... handler
                    
                
compresseur_fonctions.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 154 lines
                    
1<?php
                    
2
                    
46
                    
47		if ((@filemtime($f) > @filemtime($source))
                    
48		AND (!defined('_VAR_MODE') OR _VAR_MODE != 'recalcul'))
                    
                
maintenance_fixerrors.class.php https://github.com/Shigaru/shigaru.git | PHP | 153 lines
                    
1<?php
                    
2/**
                    
52
                    
53		$cachefile_created = (@file_exists($cachefile)) ? @filemtime($cachefile) : 0;
                    
54		@clearstatcache();
                    
                
xhprof_runs.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 166 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
127
                    
128    // Use PHP serialize function to store the XHProf's
                    
129    // raw profiler data.
                    
153        $files = glob("{$this->dir}/*.{$this->suffix}");
                    
154        usort($files, create_function('$a,$b', 'return filemtime($b) - filemtime($a);'));
                    
155        foreach ($files as $file) {
                    
160                . htmlentities(basename($file)) . "</a><small> "
                    
161                . date("Y-m-d H:i:s", filemtime($file)) . "</small></li>\n";
                    
162        }
                    
                
settings.yml https://github.com/bb-dev/OpenPNE3.git | YAML | 108 lines
                    
11  .settings:
                    
12    error_reporting:        <?php echo (E_ALL)."\n" ?>
                    
13    web_debug:              true
                    
19  .settings:
                    
20    error_reporting:        <?php echo ((E_ALL) ^ E_NOTICE)."\n" ?>
                    
21    cache:                  false
                    
28    # Form security secret (CSRF protection)
                    
29    csrf_secret:       <?php sfConfig::has('op_csrf_secret') ? print sfConfig::get('op_csrf_secret') : print filemtime(__FILE__)."\n" ?>     # Unique secret to enable CSRF protection or false to disable
                    
30
                    
53#    check_symfony_version:  off       # Enable check of symfony version for every request. Set to on to have symfony clear the cache automatically when the framework is upgraded. Set to off if you always clear the cache after an upgrade.
                    
54#    compressed:             off       # Enable PHP response compression. Set to on to compress the outgoing HTML via the PHP handler.
                    
55#    check_lock:             off       # Enable the application lock system triggered by the clear-cache and disable tasks. Set to on to have all requests to disabled applications redirected to the $sf_symfony_data_dir/web/errors/unavailable.php page.
                    
72#    web_debug:              off       # Enable the web debug toolbar
                    
73#    error_reporting:        <?php echo (E_PARSE | E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_USER_ERROR)."\n" ?> # Determines which events are logged.
                    
74#
                    
                
squeeze.php https://github.com/ratbird/hope.git | PHP | 138 lines
                    
1<?php
                    
2
                    
49
                    
50            $config_time = filemtime($configFile);
                    
51
                    
55                    $dest = $configuration['package_path'] . '/' . $package . '-' . $file;
                    
56                    if (!file_exists($dest) || (max($config_time, filemtime($src)) > filemtime($dest))) {
                    
57                        $contents = file_get_contents($src);
                    
                
cache.php https://github.com/eosc/EosC-2.3.git | PHP | 160 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3  $Id: cache.php,v 1.11 2003/07/01 14:34:54 hpdl Exp $
                    
4
                    
48      $now = time();
                    
49      $filetime = filemtime($filename);
                    
50      $difference = $now - $filetime;
                    
106      ob_start();
                    
107      include(DIR_WS_BOXES . 'categories.php');
                    
108      $cache_output = ob_get_contents();
                    
130      ob_start();
                    
131      include(DIR_WS_BOXES . 'manufacturers.php');
                    
132      $cache_output = ob_get_contents();
                    
                
HTMLFileCache.php https://github.com/daevid/MWFork.git | PHP | 250 lines
                    
1<?php
                    
2/**
                    
9 * Handles talking to the file cache, putting stuff in and taking it back out.
                    
10 * Mostly called from Article.php for the emergency abort/fallback to cache.
                    
11 *
                    
44			} else {
                    
45				throw new MWException( 'Please set $wgCacheDirectory in LocalSettings.php if you wish to use the HTML file cache' );
                    
46			}
                    
78	public function fileCacheTime() {
                    
79		return wfTimestamp( TS_MW, filemtime( $this->fileCacheName() ) );
                    
80	}
                    
193		if( !$wgUseFileCache || strlen( $text ) < 512 ) {
                    
194			// Disabled or empty/broken output (OOM and PHP errors)
                    
195			return $text;
                    
                
JsCollectionOptimizer.php https://gitlab.com/reasonat/test8 | PHP | 190 lines
                    
1<?php
                    
2
                    
182      // Default stale file threshold is 30 days.
                    
183      if (REQUEST_TIME - filemtime($uri) > \Drupal::config('system.performance')->get('stale_file_threshold')) {
                    
184        file_unmanaged_delete($uri);
                    
                
class-archive.php https://gitlab.com/billyprice1/h5ai | PHP | 183 lines
                    
1<?php
                    
2
                    
30        if (count($this->dirs) === 0 && count($this->files) === 0) {
                    
31            if ($type === 'php-tar') {
                    
32                $this->add_dir($this->base_path, '/');
                    
37
                    
38        if ($type === 'php-tar') {
                    
39            return $this->php_tar($this->dirs, $this->files);
                    
59
                    
60    private function php_tar($dirs, $files) {
                    
61        $filesizes = [];
                    
75        foreach ($dirs as $real_dir => $archived_dir) {
                    
76            echo $this->php_tar_header($archived_dir, 0, @filemtime($real_dir . DIRECTORY_SEPARATOR . "."), 5);
                    
77        }
                    
81
                    
82            echo $this->php_tar_header($archived_file, $size, @filemtime($real_file), 0);
                    
83            $this->print_file($real_file);
                    
                
autoload.php https://bitbucket.org/marsl/marsl.git | PHP | 201 lines
                    
18  *     3. Any custom integration code. If you use any global variables
                    
19  *        here, they can be accessed in config.php via $GLOBALS array.
                    
20  *        It's recommended to use constants instead.
                    
23
                    
24// PHP VERSION CHECK
                    
25if (substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.')) < 5)
                    
25if (substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.')) < 5)
                    
26    die("You are using PHP " . PHP_VERSION . " when KCFinder require at least version 5! Some systems has an option to change the active PHP version. Please refer to your hosting provider or upgrade your PHP distribution.");
                    
27
                    
41    switch ($_GET['cms']) {
                    
42        case "drupal": require "integration/drupal.php";
                    
43    }
                    
49    if ($class == "uploader")
                    
50        require "core/uploader.php";
                    
51    elseif ($class == "browser")
                    
                
lessen.tpl.d17.php https://github.com/jonathanslenders/balancirk-website.git | PHP | 361 lines
                    
1<?php
                    
2/* template head */
                    
6'';// checking for modification in file:templates/base.tpl
                    
7if (!("1300639476" == filemtime('templates/base.tpl'))) { ob_end_clean(); return false; };?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
                    
8<html xmlns="http://www.w3.org/1999/xhtml"> 
                    
251
                    
252				<?php if ((isset($this->scope["authenticated"]) ? $this->scope["authenticated"] : null)) {
                    
253?>
                    
253?>
                    
254					<?php echo Dwoo_Plugin_include($this, "templates/_edit.tpl", null, null, null, '_root', null);?>
                    
255
                    
255
                    
256				<?php 
                    
257}?>
                    
358 
                    
359<?php  /* end template body */
                    
360return $this->buffer . ob_get_clean();
                    
                
CacheDependency.php https://gitlab.com/link233/bootmw | PHP | 265 lines
                    
1<?php
                    
2/**
                    
186			# This is a valid concept!
                    
187			$this->timestamp = filemtime( $this->filename );
                    
188			MediaWiki\restoreWarnings();
                    
196		MediaWiki\suppressWarnings();
                    
197		$lastmod = filemtime( $this->filename );
                    
198		MediaWiki\restoreWarnings();
                    
                
BinaryFile.php https://bitbucket.org/wirbelwild/kiwa-core.git | PHP | 215 lines
                    
1<?php
                    
2
                    
74
                    
75        if (false !== $lastModified = DateTime::createFromFormat('U', (string) filemtime($file))) {
                    
76            $this->lastModified = $lastModified;
                    
130
                    
131        if (false !== strpos($file, '.php')) {
                    
132            try {
                    
137                $output = (string) $exception;
                    
138                $output.= PHP_EOL.PHP_EOL;
                    
139                $output.= ob_get_clean();
                    
                
Cache.php https://gitlab.com/tigefa/composer | PHP | 226 lines
                    
1<?php
                    
2
                    
141            try {
                    
142                touch($this->root . $file, filemtime($this->root . $file), time());
                    
143            } catch (\ErrorException $e) {
                    
                
Homebanners.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 156 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 */
                    
86                $itemXmlObj->addCustomChild('image', $bannerUrl, array(
                    
87                    'modification_time' => filemtime($originalFile)
                    
88                ));
                    
                
rsslib.php https://github.com/hit-moodle/moodle.git | PHP | 168 lines
                    
1<?php
                    
2    //This file adds support to rss feeds generation
                    
44        if (file_exists($cachedfilepath)) {
                    
45            $cachedfilelastmodified = filemtime($cachedfilepath);
                    
46        }
                    
71                $item->pubdate = $rec->entrytimecreated;
                    
72                $item->link = $CFG->wwwroot."/mod/glossary/showentry.php?courseid=".$glossary->course."&eid=".$rec->entryid;
                    
73
                    
73
                    
74                $definition = file_rewrite_pluginfile_urls($rec->entrydefinition, 'pluginfile.php',
                    
75                    $modcontext->id, 'mod_glossary', 'entry', $rec->entryid);
                    
81            $header = rss_standard_header(format_string($glossary->name,true),
                    
82                                          $CFG->wwwroot."/mod/glossary/view.php?g=".$glossary->id,
                    
83                                          format_string($glossary->intro,true));
                    
                
smarty_internal_config.php https://bitbucket.org/icefish/smarty-3.git | PHP | 302 lines
                    
1<?php
                    
2/**
                    
53    /**
                    
54     * Filemtime of compiled config Filemtime
                    
55     *
                    
119        $_compile_dir = $this->smarty->getCompileDir();
                    
120        return $_compile_dir . $_filepath . '.' . basename($this->source->name) . '.config' . '.php';
                    
121    }
                    
130        return $this->compiled_timestamp === null
                    
131            ? ($this->compiled_timestamp = (file_exists($this->getCompiledFilepath())) ? filemtime($this->getCompiledFilepath()) : false)
                    
132            : $this->compiled_timestamp;
                    
                
Filesystem.php https://gitlab.com/jatasya/Slim_framework | PHP | 239 lines
                    
1<?php
                    
2
                    
165    {
                    
166        return filemtime($this->findTemplate($name)) <= $time;
                    
167    }
                    
                
module.archive.gzip.php https://gitlab.com/x33n/ampache | PHP | 281 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////
                    
10//                                                             //
                    
11// module.archive.gzip.php                                     //
                    
12// module for analyzing GZIP files                             //
                    
38
                    
39		if ($info['php_memory_limit'] && ($info['filesize'] > $info['php_memory_limit'])) {
                    
40			$info['error'][] = 'File is too large ('.number_format($info['filesize']).' bytes) to read into memory (limit: '.number_format($info['php_memory_limit'] / 1048576).'MB)';
                    
82			$attr = unpack($unpack_header, substr($buff, 0, $start_length));
                    
83			$thisInfo['filemtime']      = getid3_lib::LittleEndian2Int($attr['mtime']);
                    
84			$thisInfo['raw']['id1']     = ord($attr['cmethod']);
                    
                
class.image.php https://gitlab.com/ppapadatis/Videolearn | PHP | 162 lines
                    
1<?php
                    
2
                    
45		
                    
46		return (!is_file($file)) ? FALSE : (filemtime($file) > $last_modification_time);
                    
47	}
                    
                
photogallery.php https://gitlab.com/cherian/xmec.git | PHP | 349 lines
                    
1<?php 
                    
2
                    
16/*
                    
17	See http://tuma.stc.cx/gallery.php for more info
                    
18*/
                    
19
                    
20require("photogallery-config.php");
                    
21require("compare.php");
                    
31		array_push($pictures, array("name" => $entry,
                    
32																 "date" => filemtime("$thumbdir/$entry"),
                    
33																 "size" => filesize("$thumbdir/$entry")));
                    
338	echo "<BR><BR><SMALL>Generated by " .
                    
339		"<A HREF=\"http://tuma.stc.cx/gallery.php\">photogallery script</A> $version.</SMALL></CENTER>";
                    
340	$othumbdir->close();
                    
                
file.php https://github.com/rietn/minima.git | PHP | 580 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: file.php 20228 2011-01-10 00:52:54Z eddieajau $
                    
4 * @package		Joomla.Framework
                    
38
                    
39	// NOTE: raw php calls are up to 100 times faster than JFile or JFolder
                    
40
                    
60					// Remove the initial die() statement
                    
61					$data = str_replace('<?php die("Access Denied"); ?>#x#', '', $data);
                    
62				}
                    
111		$path		= $this->_getFilePath($id, $group);
                    
112		$die		= '<?php die("Access Denied"); ?>#x#';
                    
113
                    
200		foreach($files As $file) {
                    
201			$time = @filemtime($file);
                    
202			if (($time + $this->_lifetime) < $this->_now || empty($time)) {
                    
                
view.php https://bitbucket.org/tumivn/phpexamples.git | PHP | 437 lines
                    
1<?php
                    
2/**
                    
5 *
                    
6 * @copyright Copyright (C) 2009 PHPRO.ORG. All rights reserved.
                    
7 *
                    
7 *
                    
8 * @license new bsd http://www.opensource.org/licenses/bsd-license.php
                    
9 * @package Core
                    
296			clearstatcache();
                    
297			if (filemtime($filename) > (time() - $this->cache_lifetime))
                    
298			{
                    
                
file.php https://github.com/cgajardo/repositorium.git | PHP | 542 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
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://cakephp.org CakePHP(tm) Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.cake.libs
                    
17 * @since         CakePHP(tm) v 0.2.9
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
25if (!class_exists('Object')) {
                    
26	require LIBS . 'object.php';
                    
27}
                    
                
rsscache.class.php https://github.com/JoeBlow/revolution.git | PHP | 203 lines
                    
1<?php
                    
2/**
                    
123            // and whether that is longer then MAX_AGE
                    
124            $mtime = filemtime( $filename );
                    
125            $age = time() - $mtime;
                    
144        if ( file_exists( $filename ) ) {
                    
145            $mtime = filemtime( $filename );
                    
146            $age = time() - $mtime;
                    
183    function error ($errormsg, $lvl=E_USER_WARNING) {
                    
184        // append PHP's error message if track_errors enabled
                    
185        if ( isset($php_errormsg) ) {
                    
185        if ( isset($php_errormsg) ) {
                    
186            $errormsg .= " ($php_errormsg)";
                    
187        }
                    
                
view.php https://github.com/PM2D/G3.git | PHP | 168 lines
                    
1<?php
                    
2// This file is a part of GIII (g3.steelwap.org)
                    
2// This file is a part of GIII (g3.steelwap.org)
                    
3require($_SERVER['DOCUMENT_ROOT'].'/etc/main.php');
                    
4
                    
16if (file_exists($file)) {
                    
17  $mtime = filemtime($file);
                    
18} else {
                    
62		'<li>'=>'<br/>&middot; ',
                    
63		'"http:'=>'"/go.php?http:',
                    
64		'\'http:'=>'\'/go.php?http:'
                    
66  // для картинок отправляем на ресайзер
                    
67  $data = strtr($data, array('src="/go.php?'=>'src="img.php?'));
                    
68  // мега костыль для тех лент, которые не используют нормальные &amp;
                    
135      $arr[$i]['description'] .= '...';
                    
136      $arr[$i]['more'] = 'view.php?i='.($id+1).'&amp;e='.($i+$n).'&amp;'.SID;
                    
137    } else {
                    
                
Filesystem.php https://github.com/ayamyau/concrete5.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 23964 2011-05-03 14:20:58Z adamlundrigan $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
118            if (file_exists($path)) {
                    
119                require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
122                if (!self::mkdirs($path)) {
                    
123                    require_once 'Zend/Search/Lucene/Exception.php';
                    
124                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
182        unset($this->_fileHandlers[$filename]);
                    
183        require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
184        $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');
                    
                
file.php https://github.com/fektor/cakephp.git | PHP | 542 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.cake.libs
                    
17 * @since         CakePHP(tm) v 0.2.9
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
25if (!class_exists('Object')) {
                    
26	require LIBS . 'object.php';
                    
27}
                    
                
function.php https://bitbucket.org/SalesPaddockApp/salespaddock_admin.git | PHP | 101 lines
                    
19        $files = glob("$dir*.{jpg,jpe,jpeg,png,gif,ico}", GLOB_BRACE);
                    
20        usort($files, create_function('$a,$b', 'return filemtime($a) - filemtime($b);'));
                    
21        for($i=count($files)-1; $i >= 0; $i--):
                    
44                <div class="fileDiv"
                    
45                     onclick="showEditBar('<?php echo $image_url; ?>','<?php echo $image_height; ?>','<?php echo $count; ?>','<?php echo $image_basename; ?>');"
                    
46                     ondblclick="showImage('<?php echo $image_url; ?>','<?php echo $image_height; ?>','<?php echo $image_basename; ?>');"
                    
48                    <div class="imgDiv"><img class="fileImg lazy" data-original="<?php echo $image_url; ?>"></div>
                    
49                    <p class="fileDescription"><span class="fileMime"><?php echo $image_extension; ?></span> <?php echo $image_filename; ?><?php if($file_extens == "yes"){echo ".$image_extension";} ?></p>
                    
50                    <p class="fileTime"><?php echo date ("F d Y H:i", filemtime($image)); ?></p>
                    
54                <div class="fullWidthFileDiv"
                    
55                     onclick="showEditBar('<?php echo $image_url; ?>','<?php echo $image_height; ?>','<?php echo $count; ?>','<?php echo $image_basename; ?>');"
                    
56                     ondblclick="showImage('<?php echo $image_url; ?>','<?php echo $image_height; ?>','<?php echo $image_basename; ?>');"
                    
66                    <p class="fullWidthfileTime"><?php echo $filesizetemp; ?> KB</p>
                    
67                    <p class="fullWidthfileTime fullWidth30percent"><?php echo date ("F d Y H:i", filemtime($image)); ?></p>
                    
68                </div>
                    
                
smarty_internal_cacheresource_file.php https://gitlab.com/staging06/myproject | PHP | 300 lines
                    
1<?php
                    
2/**
                    
62        }
                    
63        $cached->filepath = $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php';
                    
64        $cached->timestamp = @filemtime($cached->filepath);
                    
76    {
                    
77        $cached->timestamp = @filemtime($cached->filepath);
                    
78        $cached->exists = !!$cached->timestamp;
                    
109        if (Smarty_Internal_Write_File::writeFile($_template->cached->filepath, $content, $_template->smarty) === true) {
                    
110            $_template->cached->timestamp = @filemtime($_template->cached->filepath);
                    
111            $_template->cached->exists = !!$_template->cached->timestamp;
                    
196            foreach ($_cache as $_file) {
                    
197				if (substr(basename($_file->getPathname()), 0, 1) == '.' || strpos($_file, '.svn') !== false || strpos($_file, 'index.php') !== false) {
                    
198                    continue;
                    
235                            preg_match('#\'cache_lifetime\' =>\s*(\d*)#', file_get_contents($_file), $match);
                    
236                            if ($_time < (@filemtime($_file) + $match[1])) {
                    
237                                continue;
                    
                
Zip.php https://gitlab.com/RikaPM/manik | PHP | 424 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
22 * This class is based on a library I found at Zend:
                    
23 * http://www.zend.com/codex.php?id=696&single=1
                    
24 *
                    
86	 *	@param string	path to file
                    
87	 *	@return array	filemtime/filemdate
                    
88	 */
                    
91		// filemtime() will return false, but it does raise an error.
                    
92		$date = (@filemtime($dir)) ? filemtime($dir) : getdate($this->now);
                    
93
                    
422
                    
423/* End of file Zip.php */
                    
424/* Location: ./system/libraries/Zip.php */
                    
                
filesystem.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 272 lines
                    
1<?php defined('SYSPATH') or die('No direct access allowed.');
                    
2/**
                    
10     * Recursively create a directory
                    
11     * Retrieved from http://us2.php.net/function.mkdir on July 18, 2009 by K Anderson
                    
12     *
                    
35     *
                    
36     * @author      Aidan Lister <aidan@php.net> modified by K Anderson
                    
37     * @version     1.0.1
                    
37     * @version     1.0.1
                    
38     * @link        http://aidanlister.com/repos/v/function.copyr.php
                    
39     * @param       string   $source    Source path
                    
55            {
                    
56                if (filemtime($dest) > filemtime($source))
                    
57                {
                    
215     * This function is used to test if a directory is writable
                    
216     * Retrieved from http://us.php.net/manual/en/function.is-writable.php on 6/18/2009
                    
217     * will work in despite of Windows ACLs bug NOTE: use a trailing slash for folders!!!
                    
                
VersionCheck.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 359 lines
                    
1<?php
                    
2/*
                    
65   */
                    
66  public $pingbackUrl = 'https://latest.civicrm.org/stable.php?format=summary';
                    
67
                    
103    if (!empty($this->cronJob['is_active']) &&
                    
104      (!$this->isInfoAvailable || filemtime($this->cacheFile) < $expiryTime)
                    
105    ) {
                    
161        'ufv' => $config->userSystem->getVersion(),
                    
162        'PHP' => phpversion(),
                    
163        'MySQL' => CRM_Core_DAO::singleValueQuery('SELECT VERSION()'),
                    
                
OOActiveRecord.php https://bitbucket.org/satyanagara/codeigniter-openerp-library.git | PHP | 393 lines
                    
1<?php
                    
2
                    
92		foreach ($files as $file) {
                    
93			if ((substr($file, -4) === '.php')) {
                    
94				$class = str_replace('.php','',$file);
                    
110		if (empty(self::$_mappings)) {
                    
111			$fileMapping = Yii::app()->runtimePath . '/openerp/mapping.php';
                    
112			$modelsPath = Yii::app()->getComponent('openerp')->getModelsFullPath();
                    
117			} else {
                    
118				$fileMappingDate = date("F d Y H:i:s.", filemtime($fileMapping));
                    
119				$modelsPathDate = date("F d Y H:i:s.", filemtime($modelsPath));
                    
                
reflect3.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 404 lines
                    
1<?php
                    
2	/*
                    
3		-------------------------------------------------------------------
                    
4		Easy Reflections v3 by Richard Davey, Core PHP (rich@corephp.co.uk)
                    
5		Released 13th March 2007
                    
9        I'd appreciate it if you email and tell me where you use it, thanks.
                    
10		Latest builds at: http://reflection.corephp.co.uk
                    
11        -------------------------------------------------------------------
                    
22    
                    
23	//	PHP Version sanity check
                    
24	if (version_compare('4.3.2', phpversion()) == 1)
                    
25	{
                    
26		echo 'This version of PHP is not fully supported. You need 4.3.2 or above.';
                    
27		exit();
                    
88
                    
89                if (file_exists($cache_path) && filemtime($cache_path) >= filemtime($source_image))
                    
90                {
                    
                
Filesystem.php https://gitlab.com/RonLab1987/YupePlusClear | PHP | 354 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23/** Zend_Search_Lucene_Storage_Directory */
                    
24require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
25
                    
114            if (file_exists($path)) {
                    
115                require_once 'Zend/Search/Lucene/Exception.php';
                    
116                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
118                if (!self::mkdirs($path)) {
                    
119                    require_once 'Zend/Search/Lucene/Exception.php';
                    
120                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
178        unset($this->_fileHandlers[$filename]);
                    
179        require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
180        $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');
                    
                
Widgets.php https://github.com/marcoscoelho/pyrocms.git | PHP | 497 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
101			if (file_exists($widget_file) &&
                    
102				filemtime($widget_file) > $widget->updated_on)
                    
103			{
                    
                
Email.php https://github.com/michaelmcandrew/vaw.git | PHP | 402 lines
                    
3/**
                    
4 * PHPIDS
                    
5 *
                    
7 *
                    
8 * Copyright (c) 2008 PHPIDS group (http://php-ids.org)
                    
9 *
                    
25 * @category Security
                    
26 * @package  PHPIDS
                    
27 * @author   Mario Heiderich <mario.heiderich@gmail.com>
                    
33
                    
34require_once 'IDS/Log/Interface.php';
                    
35
                    
42 * @category  Security
                    
43 * @package   PHPIDS
                    
44 * @author    Christian Matthies <ch0012@gmail.com>
                    
                
Aspect.php https://github.com/JeCat/framework.git | PHP | 368 lines
                    
7//
                    
8//  JeCat PHP框架 的正式全名是:Jellicle Cat PHP Framework。
                    
9//  “Jellicle Cat”出自 Andrew Lloyd Webber的音乐剧《猫》(《Prologue:Jellicle Songs for Jellicle Cats》)。
                    
174		$this->sAspectFilepath = $sFilepath ;
                    
175		$this->nAspectFilemtime = filemtime($sFilepath) ;
                    
176	}
                    
186		{
                    
187			if( !is_file($this->sAspectFilepath) or filemtime($this->sAspectFilepath)>$this->nAspectFilemtime )
                    
188			{
                    
209				'sAspectFilepath' => & $this->sAspectFilepath ,
                    
210				'nAspectFilemtime' => & $this->nAspectFilemtime ,
                    
211		) ) ;
                    
224		$this->sAspectFilepath =& $arrData['sAspectFilepath'] ;
                    
225		$this->nAspectFilemtime =& $arrData['nAspectFilemtime'] ;
                    
226		
                    
                
css.php https://github.com/godber/PHXdata-Website.git | PHP | 333 lines
                    
1<?php
                    
2/**
                    
11if(!defined('DOKU_DISABLE_GZIP_OUTPUT')) define('DOKU_DISABLE_GZIP_OUTPUT',1); // we gzip ourself here
                    
12require_once(DOKU_INC.'inc/init.php');
                    
13
                    
89    if(css_cacheok($cache,array_keys($files),$tplinc)){
                    
90        http_conditionalRequest(filemtime($cache));
                    
91        if($conf['allowdebug']) header("X-CacheUsed: $cache");
                    
154
                    
155    $ctime = @filemtime($cache);
                    
156    if(!$ctime) return false; //There is no cache
                    
164    foreach($files as $file){
                    
165        if(@filemtime($file) > $ctime){
                    
166            return false;
                    
                
Remote.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 367 lines
                    
1<?php
                    
2//
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP Version 4                                                        |
                    
5// +----------------------------------------------------------------------+
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2003 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 2.02 of the PHP license,      |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/2_02.txt.                                 |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
14// | license@php.net so we can mail you a copy immediately.               |
                    
15// +----------------------------------------------------------------------+
                    
                
cache.php https://github.com/vaughnpaul/NOS.git | PHP | 245 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3  $Id: cache.php,v 1.2 2008/06/23 00:18:17 datazen Exp $
                    
4
                    
42    $now = time();
                    
43    $filetime = filemtime($filename);
                    
44    $difference = $now - $filetime;
                    
96    }
                    
97    // set all possible catagories X.php names    
                    
98    ob_start();
                    
98    ob_start();
                    
99    include(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/boxes/categories.php');
                    
100    $cache_output = ob_get_contents();
                    
121    }
                    
122    //set all possible catagories X.php names    
                    
123    ob_start();
                    
                
cache.lib.php https://gitlab.com/BGCX261/zhou3liu-svn-to-git.git | PHP | 223 lines
                    
1<?php
                    
2
                    
57/**
                    
58 *    普通PHP文件缓存
                    
59 *
                    
62 */
                    
63class PhpCacheServer extends CacheServer
                    
64{
                    
73        $cache_file = $this->_get_cache_path($key);
                    
74        $cache_data = "<?php\r\n/**\r\n *  @Created By ECMall PhpCacheServer\r\n *  @Time:" . date('Y-m-d H:i:s') . "\r\n */";
                    
75        $cache_data .= $this->_get_expire_condition(intval($ttl));
                    
130
                    
131        return "\r\n\r\n" . 'if(filemtime(__FILE__) + ' . $ttl . ' < time())return false;' . "\r\n";
                    
132    }
                    
138    {
                    
139        return md5($key) . '.cache.php';
                    
140    }
                    
                
function.filemtime.html https://bitbucket.org/thncr/manuals.git | HTML | 116 lines
                    
15  <h1 class="refname">filemtime</h1>
                    
16  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">filemtime</span> &mdash; <span class="dc-title">取得文件修改时间</span></p>
                    
17
                    
18 </div>
                    
19 <div class="refsect1 description" id="refsect1-function.filemtime-description">
                    
20  <h3 class="title">说明</h3>
                    
63
                    
64 <div class="refsect1 examples" id="refsect1-function.filemtime-examples">
                    
65  <h3 class="title">范例</h3>
                    
67   <div class="example" id="example-2259">
                    
68    <p><strong>Example #1  <span class="function"><strong>filemtime()</strong></span>  例子</strong></p>
                    
69    <div class="example-contents">
                    
70<div class="phpcode"><code><span style="color: #000000">
                    
71<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//&nbsp;outputs&nbsp;e.g.&nbsp;&nbsp;somefile.txt&nbsp;was&nbsp;last&nbsp;modified:&nbsp;December&nbsp;29&nbsp;2002&nbsp;22:16:23.<br /><br /></span><span style="color: #0000BB">$filename&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'somefile.txt'</span><span style="color: #007700">;<br />if&nbsp;(</span><span style="color: #0000BB">file_exists</span><span style="color: #007700">(</span><span style="color: #0000BB">$filename</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"</span><span style="color: #0000BB">$filename</span><span style="color: #DD0000">&nbsp;was&nbsp;last&nbsp;modified:&nbsp;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">date&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"F&nbsp;d&nbsp;Y&nbsp;H:i:s."</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">filemtime</span><span style="color: #007700">(</span><span style="color: #0000BB">$filename</span><span style="color: #007700">));<br />}<br /></span><span style="color: #0000BB">?&gt;</span>
                    
72</span>
                    
                
DependencyChecker.php https://bitbucket.org/devpronitzz/healthcase.git | PHP | 176 lines
                    
73		$files = @array_map('filemtime', array_combine($files, $files)); // @ - file may not exist
                    
74		$phpFiles = @array_map('filemtime', array_combine($phpFiles, $phpFiles)); // @ - file may not exist
                    
75		return [self::VERSION, $files, $phpFiles, $classes, $functions, $hash];
                    
82	 */
                    
83	public static function isExpired($version, $files, &$phpFiles, $classes, $functions, $hash)
                    
84	{
                    
84	{
                    
85		$current = @array_map('filemtime', array_combine($tmp = array_keys($files), $tmp)); // @ - files may not exist
                    
86		$origPhpFiles = $phpFiles;
                    
86		$origPhpFiles = $phpFiles;
                    
87		$phpFiles = @array_map('filemtime', array_combine($tmp = array_keys($phpFiles), $tmp)); // @ - files may not exist
                    
88		return $version !== self::VERSION
                    
89			|| $files !== $current
                    
90			|| ($phpFiles !== $origPhpFiles && $hash !== self::calculateHash($classes, $functions));
                    
91	}
                    
                
instance.php https://github.com/mzkrelx/milm-search-ui-php.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2012 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
19 *
                    
20 * You can configure the paths by copying the core/config/asset.php
                    
21 * config file into your app/config folder and changing the settings.
                    
219
                    
220					$raw or $file = $this->_asset_url.$file.($this->_add_mtime ? '?'.filemtime($file) : '');
                    
221				}
                    
237					{
                    
238						return html_tag('style', $attr, PHP_EOL.file_get_contents($file).PHP_EOL).PHP_EOL;
                    
239					}
                    
251					{
                    
252						return html_tag('script', $attr, PHP_EOL.file_get_contents($file).PHP_EOL).PHP_EOL;
                    
253					}
                    
                
Cache_File.php https://gitlab.com/karlen/ayo_wp | PHP | 455 lines
                    
1<?php
                    
2namespace W3TC;
                    
117		@fputs( $fp, pack( 'L', $expires_at ) );
                    
118		@fputs( $fp, '<?php exit; ?>' );
                    
119		@fputs( $fp, @serialize( $var ) );
                    
297		if ( file_exists( $path ) ) {
                    
298			return @filemtime( $path );
                    
299		}
                    
315
                    
316		$path = sprintf( '%s/%s/%s.php', substr( $hash, 0, 3 ), substr( $hash, 3, 3 ), $hash );
                    
317
                    
409		@fputs( $fp, pack( 'L', $expires_at ) );
                    
410		@fputs( $fp, '<?php exit; ?>' );
                    
411		@fputs( $fp, (int)$value );
                    
                
Homebanners.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 156 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 */
                    
86                $itemXmlObj->addCustomChild('image', $bannerUrl, array(
                    
87                    'modification_time' => filemtime($originalFile)
                    
88                ));
                    
                
smarty_internal_config.php https://github.com/raphaelbastide/berta.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
45        return $this->config_timestamp === null ?
                    
46        $this->config_timestamp = filemtime($this->getConfigFilepath()) :
                    
47        $this->config_timestamp;
                    
151        } 
                    
152        return $_compile_dir . $_filepath . '.' . basename($this->config_resource_name) . '.config' . '.php';
                    
153    } 
                    
161        return $this->compiled_timestamp === null ?
                    
162        ($this->compiled_timestamp = (file_exists($this->getCompiledFilepath())) ? filemtime($this->getCompiledFilepath()) : false) :
                    
163        $this->compiled_timestamp;
                    
                
md_funcs.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 406 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Chamilo metadata/md_funcs.php -->
                    
4 * 2006/12/15
                    
11*
                    
12*   This script requires xmd.lib.php and xht.lib.php (Chamilo inc/lib).
                    
13*
                    
15*
                    
16*   ! and ~ and ,   are handled by xmd_update, see xmd.lib.php
                    
17*   ~~ !! ; and =   are handled here; note that = excludes newlines in value
                    
43    $fp = fopen($filename, 'rb'); $buffer = fread($fp, filesize($filename));
                    
44    fclose($fp); return $buffer; // file_get_contents: PHP >= 4.3.0
                    
45}
                    
93    if (file_exists(KEYWORDS_CACHE)) $kcdt =
                    
94        htmlspecialchars(date('Y/m/d H:i:s', filemtime(KEYWORDS_CACHE)), ENT_QUOTES, $charset);
                    
95
                    
                
Mbox.php https://github.com/sidealice/concrete5.git | PHP | 447 lines
                    
37 */
                    
38require_once 'Zend/Mail/Message/File.php';
                    
39
                    
206             */
                    
207            require_once 'Zend/Mail/Storage/Exception.php';
                    
208            throw new Zend_Mail_Storage_Exception('not implemented');
                    
231             */
                    
232            require_once 'Zend/Mail/Storage/Exception.php';
                    
233            throw new Zend_Mail_Storage_Exception('no valid filename given in params');
                    
296        $this->_filename = $filename;
                    
297        $this->_filemtime = filemtime($this->_filename);
                    
298
                    
431    {
                    
432        if ($this->_filemtime != @filemtime($this->_filename)) {
                    
433            $this->close();
                    
                
index.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 392 lines
                    
1<?php
                    
2!function_exists('readover') && exit('Forbidden');
                    
3$wind_in='bank';
                    
4//* require_once pwCache::getPath(D_P.'data/bbscache/bk_config.php');
                    
5pwCache::getData(D_P.'data/bbscache/bk_config.php');
                    
12
                    
13require_once(R_P.'require/credit.php');
                    
14$creditdb = $credit->get($winduid,'CUSTOM');
                    
57	!$bk_num && $bk_num=10;
                    
58	if (!$bk_per || $timestamp - pwFilemtime(D_P."data/bbscache/bank_sort.php") > $bk_per*3600) {
                    
59		$_DESPOSTDB = array();
                    
76		$wirtedb.= "\n".savearray('_DDESPOSTDB',$_DDESPOSTDB);
                    
77		pwCache::writeover(D_P.'data/bbscache/bank_sort.php',"<?php\r\n".$wirtedb.'?>');
                    
78	}
                    
78	}
                    
79	include (D_P."data/bbscache/bank_sort.php");
                    
80	require_once PrintHack('index');footer();
                    
                
Cache.php https://github.com/abirmmu/codeigniter-cache.git | PHP | 431 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
235			{
                    
236				$cache_created = filemtime($this->_path.$this->_filename.'.cache');
                    
237
                    
238				// If dependency doesn't exist or is newer than this cache, delete and return FALSE
                    
239				if (! file_exists($this->_path.$dep.'.cache') or filemtime($this->_path.$dep.'.cache') > $cache_created)
                    
240				{
                    
301			{
                    
302				// create non existing dirs, asumes PHP5
                    
303				if ( ! @mkdir($test_path, DIR_WRITE_MODE, TRUE)) return FALSE;
                    
429
                    
430/* End of file Cache.php */
                    
431/* Location: ./application/libraries/Cache.php */
                    
                
Page.php https://bitbucket.org/ndj/piecrust.git | PHP | 414 lines
                    
1<?php
                    
2
                    
119            else if ($this->date === null)
                    
120                $this->date = filemtime($this->path);
                    
121
                    
                
file_helper.php https://github.com/lckamal/FUEL-CMS.git | PHP | 470 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
307				case 'date':
                    
308					$fileinfo['date'] = filemtime($file);
                    
309					break;
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
354		{
                    
355			if ( ! require_once(APPPATH.'config/mimes.php'))
                    
356			{
                    
                
Cache.php https://gitlab.com/kubinos/writeoff | PHP | 376 lines
                    
1<?php
                    
2
                    
157			foreach (array_unique((array) $dp[self::FILES]) as $item) {
                    
158				$dp[self::CALLBACKS][] = [[__CLASS__, 'checkFile'], $item, @filemtime($item)]; // @ - stat may fail
                    
159			}
                    
372	{
                    
373		return @filemtime($file) == $time; // @ - stat may fail
                    
374	}
                    
                
file_helper.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
307				case 'date':
                    
308					$fileinfo['date'] = filemtime($file);
                    
309					break;
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
354		{
                    
355			if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))
                    
356			{
                    
                
file_helper.php https://github.com/lixinyang/weixiao001.com.git | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
307				case 'date':
                    
308					$fileinfo['date'] = filemtime($file);
                    
309					break;
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
477
                    
478/* End of file file_helper.php */
                    
479/* Location: ./system/helpers/file_helper.php */
                    
                
project_submission.php https://github.com/cmerlo441/Open-Course-Software.git | PHP | 131 lines
                    
1<?php
                    
2
                    
69            print "<pre class=\"brush:js\">";
                    
70        } else if( substr( $upload[ 'filename' ], -4, 4 ) == '.php' ) {
                    
71            print "<pre class=\"brush:php\">";
                    
113    $('span.grade').editInPlace({
                    
114        url: 'update_grade.php',
                    
115        default_text: '(No grade recorded yet)',
                    
115        default_text: '(No grade recorded yet)',
                    
116        params: "ajax=yes&assignment_id=<?php echo $assignment; ?>",
                    
117        saving_image: "<?php echo $docroot; ?>/images/ajax-loader.gif"
                    
122
                    
123<?php
                    
124} else {
                    
127
                    
128$lastmod = filemtime( $_SERVER[ 'SCRIPT_FILENAME' ] );
                    
129include( "$fileroot/_footer.inc" );
                    
                
Filesystem.php https://github.com/marc1706/customisation-db.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
118            if (file_exists($path)) {
                    
119                require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
122                if (!self::mkdirs($path)) {
                    
123                    require_once 'Zend/Search/Lucene/Exception.php';
                    
124                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
182        unset($this->_fileHandlers[$filename]);
                    
183        require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
184        $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');
                    
207
                    
208        global $php_errormsg;
                    
209        $trackErrors = ini_get('track_errors'); ini_set('track_errors', '1');
                    
                
Thumbnail.php https://github.com/ibnoe/Microweber.git | PHP | 321 lines
                    
1<?php
                    
2/*
                    
92        $rtime = isset($_SERVER["HTTP_IF_MODIFIED_SINCE"])?strtotime($_SERVER["HTTP_IF_MODIFIED_SINCE"]):0;
                    
93        $mtime =  filemtime($thumbFilePath);
                    
94        $etag = dechex($mtime) . "-" . dechex($size);
                    
214                    /*
                    
215                    * This is sad that PHP doesn't support bitmaps.
                    
216                    * Anyway, we will use our custom function at least to display thumbnails.
                    
                
list.php https://github.com/shamblett/janitor.git | PHP | 338 lines
                    
1<?php
                    
2// ensure this file is being included by a parent file
                    
4/**
                    
5 * @version $Id: list.php 105 2008-05-31 13:38:38Z soeren $
                    
6 * @package eXtplorer
                    
120				$dir_list[$new_item_name] =
                    
121					@$GLOBALS['ext_File']->filemtime($abs_new_item);
                    
122			} else {	// order == "size", "type" or "name"
                    
130				$file_list[$new_item_name] =
                    
131					@$GLOBALS['ext_File']->filemtime($abs_new_item);
                    
132			} elseif($GLOBALS["order"]=="type") {
                    
311		$scriptTag = '
                    
312		<script type="text/javascript" src="'. _EXT_URL . '/fetchscript.php?'
                    
313			.'&amp;subdir[]=scripts/editarea/&amp;file[]=edit_area_full_with_plugins.js'
                    
317		<script type="text/javascript" src="'. $GLOBALS['script_name'].'?option=com_extplorer&amp;action=include_javascript&amp;file=functions.js"></script>		
                    
318		<link rel="stylesheet" href="'. _EXT_URL . '/fetchscript.php?subdir[0]=scripts/extjs/css/&file[0]=ext-all.css&amp;subdir[1]=scripts/extjs/css/&file[1]=xtheme-aero.css&amp;gzip=1" />';
                    
319		
                    
                
String.php https://github.com/almonk/Deadweight-CMS-1.git | PHP | 497 lines
                    
1<?php
                    
2
                    
265			return $cachedFile;
                    
266		} elseif ($this->compilationEnforced !== true && file_exists($cachedFile) && ($cacheLength === -1 || filemtime($cachedFile) > ($_SERVER['REQUEST_TIME'] - $cacheLength))) {
                    
267			// cache is still valid and can be loaded
                    
355					if (class_exists('Dwoo_Compiler', false) === false) {
                    
356						include DWOO_DIRECTORY . 'Dwoo/Compiler.php';
                    
357					}
                    
424		}
                    
425		return $dwoo->getCompileDir() . $this->compileId.'.d'.Dwoo::RELEASE_TAG.'.php';
                    
426	}
                    
454	/**
                    
455	 * returns some php code that will check if this template has been modified or not
                    
456	 *
                    
487		// enforce the correct mode for all directories created
                    
488		if (strpos(PHP_OS, 'WIN') !== 0 && $baseDir !== null) {
                    
489			$path = strtr(str_replace($baseDir, '', $path), '\\', '/');
                    
                
File.php https://github.com/mhayden/lucid.git | PHP | 196 lines
                    
1<?php
                    
2/*
                    
112		else if(is_file($f)) {
                    
113			$r["modified"] = date ("F d Y H:i:s.", filemtime($f));
                    
114			$r["type"] = mime_content_type($f);
                    
                
Mbox.php https://github.com/bhaumik25/zend-framework.git | PHP | 396 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25// require_once 'Zend/Loader.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Mail/Storage/Abstract.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Mail/Message.php';
                    
36
                    
257        $this->_filename = $filename;
                    
258        $this->_filemtime = filemtime($this->_filename);
                    
259
                    
384    {
                    
385        if ($this->_filemtime != @filemtime($this->_filename)) {
                    
386            $this->close();
                    
                
LoggerDataCollector.php https://gitlab.com/jjpa2018/dashboard | PHP | 357 lines
                    
1<?php
                    
2
                    
206
                    
207        $bootTime = filemtime($file);
                    
208        $logs = [];
                    
                
statistics.php https://github.com/kennethjiang/Wolke.git | PHP | 191 lines
                    
1<?
                    
2    require(dirname(__FILE__)."/../../src/prepend.inc.php");
                    
3    Core::Load("IO/PCNTL/interface.IProcess.php"); 
                    
4
                    
5    require_once(dirname(__FILE__)."/../../cron/watchers/class.SNMPWatcher.php");
                    
6	require_once(dirname(__FILE__)."/../../cron/watchers/class.CPUSNMPWatcher.php");
                    
6	require_once(dirname(__FILE__)."/../../cron/watchers/class.CPUSNMPWatcher.php");
                    
7	require_once(dirname(__FILE__)."/../../cron/watchers/class.LASNMPWatcher.php");
                    
8	require_once(dirname(__FILE__)."/../../cron/watchers/class.MEMSNMPWatcher.php");
                    
8	require_once(dirname(__FILE__)."/../../cron/watchers/class.MEMSNMPWatcher.php");
                    
9	require_once(dirname(__FILE__)."/../../cron/watchers/class.NETSNMPWatcher.php");
                    
10    
                    
84        	clearstatcache();
                    
85	        $time = filemtime($image_path);
                    
86	        
                    
                
ck-gallery.php https://github.com/UberGallery/ck-gallery.git | PHP | 277 lines
                    
1<?php // CK-Gallery by Chris Kankiewicz <http://www.chriskankiewicz.com>
                    
2
                    
14
                    
15  // *** DO NOT EDIT ANYTHING BELOW HERE UNLESS YOU ARE A PHP NINJA ***
                    
16
                    
32  // Serve from the cache if it is younger than $cacheTime
                    
33  if (file_exists($cacheFile) && time() - $cacheTime < filemtime($cacheFile) && $cacheExpire >= 1) {
                    
34    include($cacheFile);
                    
34    include($cacheFile);
                    
35    echo "<!-- Cached page: created ".date('H:i:s', filemtime($cacheFile))." / expires ".date('H:i:s', (filemtime($cacheFile)) + $cacheTime)." -->\n";
                    
36  } else {
                    
166    if ($imgPerPage > 0 && $imgPerPage < $totalImages) {
                    
167      $pageName = basename($_SERVER["PHP_SELF"]); // Get current page file name
                    
168      echo("    <ul id=\"ck-pagination\" style=\"margin: 0 !important; padding: 0 !important;\">\r\n");
                    
196    if ($verCheck == "1") {
                    
197      $verInfo = @file("http://code.web-geek.net/ck-gallery/version-check.php?ver=$version");
                    
198      $verInfo = @implode($verInfo);
                    
                
indexer.php https://gitlab.com/kidaa/Door43 | PHP | 209 lines
                    
1<?php
                    
2/**
                    
9define('DOKU_DISABLE_GZIP_OUTPUT',1);
                    
10require_once(DOKU_INC.'inc/init.php');
                    
11session_write_close();  //close session
                    
71    if (file_exists($fn) &&
                    
72        (@filemtime($fn.'.trimmed')+86400)<time() &&
                    
73        !file_exists($fn.'_tmp')) {
                    
208// No trailing PHP closing tag - no output please!
                    
209// See Note at http://www.php.net/manual/en/language.basic-syntax.instruction-separation.php
                    
210
                    
                
file_helper.php https://gitlab.com/zanderwong/admin | PHP | 402 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
207
                    
208            // foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
209            while (FALSE !== ($file = readdir($fp))) {
                    
262                case 'date':
                    
263                    $fileinfo['date'] = filemtime($file);
                    
264                    break;
                    
289 *
                    
290 * Translates a file extension into a mime type based on config/mimes.php.
                    
291 * Returns FALSE if it can't determine the type, or open the mime config file
                    
306        if (!is_array($mimes)) {
                    
307            if (defined('ENVIRONMENT') AND is_file(APPPATH . 'config/' . ENVIRONMENT . '/mimes.php')) {
                    
308                include(APPPATH . 'config/' . ENVIRONMENT . '/mimes.php');
                    
                
live.php https://gitlab.com/mattswann/launch-housing | PHP | 416 lines
                    
1<?php
                    
2/* BackupBuddy Stash Live Parent Class
                    
24		} else {
                    
25			require_once( pb_backupbuddy::plugin_path() . '/destinations/live/live_periodic.php' );
                    
26			require_once( pb_backupbuddy::plugin_path() . '/destinations/stash2/init.php' );
                    
46	public static function queue_manual_file_scan( $directory ) {
                    
47		require_once( 'live_periodic.php' );
                    
48		
                    
106		}
                    
107		if ( false === ( $mtime = @filemtime( $activity_time_file ) ) ) {
                    
108			return -1;
                    
327	public static function send_trim_settings() {
                    
328		require_once( pb_backupbuddy::plugin_path() . '/destinations/live/live_periodic.php' );
                    
329		
                    
332		
                    
333		require_once( pb_backupbuddy::plugin_path() . '/destinations/live/init.php' );
                    
334		$response = pb_backupbuddy_destination_live::stashAPI( $destination_settings, 'tmtrim-settings', $additionalParams );
                    
                
file.php https://github.com/ot2sen/Tamka.git | PHP | 583 lines
                    
1<?php
                    
2/**
                    
37
                    
38	// NOTE: raw php calls are up to 100 times faster than JFile or JFolder
                    
39
                    
59					// Remove the initial die() statement
                    
60					$data = str_replace('<?php die("Access Denied"); ?>#x#', '', $data);
                    
61				}
                    
110		$path		= $this->_getFilePath($id, $group);
                    
111		$die		= '<?php die("Access Denied"); ?>#x#';
                    
112
                    
203			}
                    
204			$time = @filemtime($file);
                    
205			if (($time + $this->_lifetime) < $this->_now || empty($time)) {
                    
309		if (file_exists($path)) {
                    
310			$time = @filemtime($path);
                    
311			if (($time + $this->_lifetime) < $this->_now || empty($time)) {
                    
                
actions.class.php https://github.com/gaea/oms.git | PHP | 183 lines
                    
1<?php
                    
2
                    
8 * @author     Your name here
                    
9 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
                    
10 */
                    
35		$lastmodif    = isset($_GET['timestamp']) ? $_GET['timestamp'] : 0;
                    
36		$currentmodif = filemtime($filename);
                    
37		while ($currentmodif <= $lastmodif) // check if the data file has been modified
                    
40		  clearstatcache();
                    
41		  $currentmodif = filemtime($filename);
                    
42		}
                    
69			fwrite($file, "\t\t<title>OMS</title>\n");
                    
70			fwrite($file, "\t\t<link>http://localhost/www/oms/web/oms_user.php/interfaz_cliente</link>\n");
                    
71			fwrite($file, "\t\t<description>Open Music Suscriptores...</description>\n");
                    
73			fwrite($file, "\t\t\t<url>http://localhost/www/oms/web/images/oms.png</url> \n");
                    
74			fwrite($file, "\t\t\t<link>http://localhost/www/oms/web/oms_user.php/interfaz_cliente</link> \n"); // ojo que esta url hay que cambiarla
                    
75			fwrite($file, "\t\t</image>\n");
                    
                
extension.cache.mysql.php https://gitlab.com/x33n/ampache | PHP | 190 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////
                    
8//                                                             //
                    
9// extension.cache.mysql.php - part of getID3()                //
                    
10// Please see readme.txt for more information                  //
                    
23*
                    
24* Example:  (see also demo.cache.mysql.php in /demo/)
                    
25*
                    
27*
                    
28*       require_once 'getid3/getid3.php';
                    
29*       $getID3 = new getID3;
                    
35*
                    
36*       require_once 'getid3/getid3.php';
                    
37*       require_once 'getid3/getid3/extension.cache.mysql.php';
                    
61*   db3                 dbm_filename, lock_filename
                    
62*   db4                 dbm_filename, lock_filename  (PHP5 required)
                    
63*
                    
                
smarty_internal_utility.php https://github.com/raphaelbastide/berta.git | PHP | 276 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Project:     Smarty: the PHP compiling template engine
                    
5 * File:        smarty_internal_utility.php
                    
171        if (isset($resource_name)) {
                    
172            $_resource_part_1 = $resource_name . '.php';
                    
173            $_resource_part_2 = $resource_name . '.cache' . '.php';
                    
198                    if (isset($exp_time)) {
                    
199                        if (time() - @filemtime($_file) >= $exp_time) {
                    
200                            $_count += @unlink((string) $_file) ? 1 : 0;
                    
                
Product.php https://github.com/itfcfan/magento-mirror.git | PHP | 161 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) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
69            $file = Mage::helper('xmlconnect')->urlToPath($icon);
                    
70            $iconXml->addAttribute('modification_time', filemtime($file));
                    
71
                    
                
Cart.php https://bitbucket.org/kdms/sh-magento.git | PHP | 246 lines
                    
1<?php
                    
2/**
                    
71            $file = Mage::helper('xmlconnect')->urlToPath($icon);
                    
72            $iconXml->addAttribute('modification_time', filemtime($file));
                    
73            /**
                    
                
class.wsdlcache.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 209 lines
                    
1<?php
                    
2/*
                    
14* @author	Ingo Fischer <ingo@apollon.de>
                    
15* @version  $Id: class.wsdlcache.php,v 1.7 2007/04/17 16:34:03 snichol Exp $
                    
16* @access public 
                    
85 			if ($this->cache_lifetime > 0) {
                    
86				if (file_exists($filename) && (time() - filemtime($filename) > $this->cache_lifetime)) {
                    
87					unlink($filename);
                    
                
bootstrap.php https://gitlab.com/ptisky/API_prestashop | PHP | 202 lines
                    
1<?php

                    
2/**

                    
36  * which will be executed before any other. Suitable for:

                    
37  *     1. Set PHP ini settings using ini_set()

                    
38  *     2. Custom session save handler with session_set_save_handler()

                    
39  *     3. Any custom integration code. If you use any global variables

                    
40  *        here, they can be accessed in conf/config.php via $GLOBALS

                    
41  *        array. It's recommended to use constants instead.

                    
44

                    
45// PHP VERSION CHECK

                    
46if (!preg_match('/^(\d+\.\d+)/', PHP_VERSION, $ver) || ($ver[1] < 5.3))

                    
46if (!preg_match('/^(\d+\.\d+)/', PHP_VERSION, $ver) || ($ver[1] < 5.3))

                    
47    die("You are using PHP " . PHP_VERSION . " when KCFinder require at least version 5.3.0! Some systems has an option to change the active PHP version. Please refer to your hosting provider or upgrade your PHP distribution.");

                    
48

                    
51if (ini_get("safe_mode"))

                    
52    die("The \"safe_mode\" PHP ini setting is turned on! You cannot run KCFinder in safe mode.");

                    
53

                    
                
autoload.php https://github.com/LosYear/FluentCMS.git | PHP | 202 lines
                    
10  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
                    
11  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
                    
12  *      @link http://kcfinder.sunhater.com
                    
18  *     3. Any custom integration code. If you use any global variables
                    
19  *        here, they can be accessed in config.php via $GLOBALS array.
                    
20  *        It's recommended to use constants instead.
                    
23
                    
24// PHP VERSION CHECK
                    
25if (substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.')) < 5)
                    
25if (substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.')) < 5)
                    
26    die("You are using PHP " . PHP_VERSION . " when KCFinder require at least version 5! Some systems has an option to change the active PHP version. Please refer to your hosting provider or upgrade your PHP distribution.");
                    
27
                    
41    switch ($_GET['cms']) {
                    
42        case "drupal": require "integration/drupal.php"; break;
                    
43		case "yii": require "integration/yii.php"; break;
                    
                
helper.php https://github.com/kosenconf/kcweb.git | PHP | 291 lines
                    
1<?php
                    
2/**
                    
127        $data = array();
                    
128        $phptime = ini_get('max_execution_time');
                    
129        @set_time_limit(0);
                    
233        // php info
                    
234        $data['os'] = PHP_OS;
                    
235        $data['webserver'] = $_SERVER['SERVER_SOFTWARE'];
                    
235        $data['webserver'] = $_SERVER['SERVER_SOFTWARE'];
                    
236        $data['php_version'] = phpversion();
                    
237        $data['php_sapi'] = php_sapi_name();
                    
238        $data['php_memory'] = $this->_to_byte(ini_get('memory_limit'));
                    
239        $data['php_exectime'] = $phptime;
                    
240        $data['php_extension'] = get_loaded_extensions();
                    
270     * @author <gilthans dot NO dot SPAM at gmail dot com>
                    
271     * @link   http://de3.php.net/manual/en/ini.core.php#79564
                    
272     */
                    
                
infoutils.php https://github.com/godber/PHXdata-Website.git | PHP | 386 lines
                    
26    // check if new messages needs to be fetched
                    
27    if($lm < time()-(60*60*24) || $lm < @filemtime(DOKU_INC.'doku.php')){
                    
28        $http = new DokuHTTPClient();
                    
106    if(version_compare(phpversion(),'5.1.2','<')){
                    
107        msg('Your PHP version is too old ('.phpversion().' vs. 5.1.2+ needed)',-1);
                    
108    }else{
                    
114        if($mem < 16777216){
                    
115            msg('PHP is limited to less than 16MB RAM ('.$mem.' bytes). Increase memory_limit in php.ini',-1);
                    
116        }elseif($mem < 20971520){
                    
116        }elseif($mem < 20971520){
                    
117            msg('PHP is limited to less than 20MB RAM ('.$mem.' bytes), you might encounter problems with bigger pages. Increase memory_limit in php.ini',-1);
                    
118        }elseif($mem < 33554432){
                    
118        }elseif($mem < 33554432){
                    
119            msg('PHP is limited to less than 32MB RAM ('.$mem.' bytes), but that should be enough in most cases. If not, increase memory_limit in php.ini',0);
                    
120        }else{
                    
                
modscript.class.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 175 lines
                    
1<?php
                    
2/**
                    
5/**
                    
6 * An element representing executable PHP script content.
                    
7 *
                    
39                $v= substr($v, 2);
                    
40                if (strncmp($v, 'php', 3) == 0) $v= substr($v, 3);
                    
41            }
                    
125    public function loadScript() {
                    
126        $includeFilename = $this->xpdo->getCachePath() . 'includes/' . $this->getScriptCacheKey() . '.include.cache.php';
                    
127        $result = file_exists($includeFilename);
                    
129        if ($result && $this->isStatic()) {
                    
130            $includeMTime = filemtime($includeFilename);
                    
131            $sourceMTime = filemtime($this->getSourceFile());
                    
139                    xPDO::OPT_CACHE_HANDLER => $this->xpdo->getOption('cache_scripts_handler', null, $this->xpdo->getOption(xPDO::OPT_CACHE_HANDLER)),
                    
140                    xPDO::OPT_CACHE_FORMAT => (integer) $this->xpdo->getOption('cache_scripts_format', null, $this->xpdo->getOption(xPDO::OPT_CACHE_FORMAT, null, xPDOCacheManager::CACHE_PHP)),
                    
141                ));
                    
                
file.php https://github.com/enygma/fuel.git | PHP | 274 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * Fuel is a fast, lightweight, community driven PHP5 framework.
                    
6 *
                    
11 * @copyright	2010 Dan Horrigan
                    
12 * @link		http://fuelphp.com
                    
13 */
                    
135			{
                    
136				$filemtime = filemtime($file);
                    
137				if ($filemtime === false || $filemtime > $this->created)
                    
141			{
                    
142				$filemtime = filemtime($file);
                    
143				if ($filemtime === false || $filemtime > $this->created)
                    
273
                    
274/* End of file file.php */
                    
275
                    
                
File.php https://bitbucket.org/mad3linux/bigbox.git | PHP | 247 lines
                    
1<?php
                    
2/*
                    
60    if ($expiration) {
                    
61      $mtime = filemtime($storageFile);
                    
62      if ((time() - $mtime) >= $expiration) {
                    
                
edit.php https://github.com/Bigjoos/U-232-V2.git | PHP | 261 lines
                    
1<?php
                    
2/**
                    
8 **/
                    
9require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'bittorrent.php');
                    
10require_once(INCL_DIR.'user_functions.php');
                    
10require_once(INCL_DIR.'user_functions.php');
                    
11require_once INCL_DIR.'html_functions.php';
                    
12require_once INCL_DIR.'bbcode_functions.php';
                    
12require_once INCL_DIR.'bbcode_functions.php';
                    
13require_once CLASS_DIR.'page_verify.php';
                    
14
                    
28unlink($modfile);
                    
29$returl = "details.php?id=$id";
                    
30if (isset($_POST["returnto"]))
                    
65    $modfile = 'cache/details/'.$id.'_moddin.txt';
                    
66    if (file_exists($modfile) && filemtime($modfile) > (time() - $expire)) {
                    
67    $modcache = fopen($modfile, "r");
                    
                
FileStorage.php https://github.com/vohnicky/treeview.git | PHP | 451 lines
                    
1<?php
                    
2
                    
6 * @copyright  Copyright (c) 2004, 2010 David Grudl
                    
7 * @license    http://nettephp.com/license  Nette license
                    
8 * @link       http://nettephp.com
                    
125				// meta[file] was added by readMeta()
                    
126				if (filemtime($meta[self::FILE]) + $meta[self::META_DELTA] < time()) break;
                    
127				touch($meta[self::FILE]);
                    
228		$head = serialize($meta) . '?>';
                    
229		$head = '<?php //netteCache[01]' . str_pad((string) strlen($head), 6, '0', STR_PAD_LEFT) . $head;
                    
230		$headLen = strlen($head);
                    
358			if (is_array($meta)) {
                    
359				fseek($handle, $size + self::META_HEADER_LEN); // needed by PHP < 5.2.6
                    
360				$meta[self::FILE] = $file;
                    
                
index.php https://gitlab.com/ankitpati/coderush | PHP | 322 lines
                    
1<?php
                    
2
                    
10
                    
11<!-- index.php -->
                    
12<!-- Date  : 13 November 2016
                    
27
                    
28<?php
                    
29    function login($reason)
                    
32        <div id="superset">
                    
33<?php
                    
34        if(isset($reason)) {
                    
36            <div id="note"><?= htmlspecialchars($reason) ?></div>
                    
37<?php
                    
38        }
                    
40            <h2>Login</h2>
                    
41            <form method="post" action="<?= htmlspecialchars($_SERVER["PHP_SELF"]) ?>" enctype="multipart/form-data" autocomplete="on">
                    
42                <input placeholder="Username" name="username" required="required" />
                    
                
logging.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 211 lines
                    
2
                    
3	require_once(DUPLICATOR_PLUGIN_PATH . '/assets/js/javascript.php'); 
                    
4	require_once(DUPLICATOR_PLUGIN_PATH . '/views/inc.header.php'); 
                    
7	if ($logs != false && count($logs)) {
                    
8		usort($logs, create_function('$a,$b', 'return filemtime($b) - filemtime($a);'));
                    
9		@chmod(DUP_Util::SafePath($logs[0]), 0644);
                    
128			Duplicator.Tools.RefreshAuto();
                    
129		<?php endif; ?>	
                    
130	<?php endif; ?>	
                    
145		<?php _e("Reasons for log file not showing", 'duplicator') ?>: <br/>
                    
146		- <?php _e("The web server does not support returning .log file extentions", 'duplicator') ?>. <br/>
                    
147		- <?php _e("The snapshots directory does not have the correct permissions to write files.  Try setting the permissions to 755", 'duplicator') ?>. <br/>
                    
147		- <?php _e("The snapshots directory does not have the correct permissions to write files.  Try setting the permissions to 755", 'duplicator') ?>. <br/>
                    
148		- <?php _e("The process that PHP runs under does not have enough permissions to create files.  Please contact your hosting provider for more details", 'duplicator') ?>. <br/>
                    
149	</div>
                    
                
smarty_internal_cacheresource_file.php https://gitlab.com/adamlwalker/generatedata | PHP | 264 lines
                    
1<?php
                    
2/**
                    
62        }
                    
63        $cached->filepath = $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php';
                    
64        $cached->timestamp = @filemtime($cached->filepath);
                    
75    {
                    
76        $cached->timestamp = @filemtime($cached->filepath);
                    
77        $cached->exists = !!$cached->timestamp;
                    
102        if (Smarty_Internal_Write_File::writeFile($_template->cached->filepath, $content, $_template->smarty) === true) {
                    
103            $_template->cached->timestamp = filemtime($_template->cached->filepath);
                    
104            $_template->cached->exists = !!$_template->cached->timestamp;
                    
210                    // expired ?
                    
211                    if (isset($exp_time) && $_time - @filemtime($_file) < $exp_time) {
                    
212                        continue;
                    
229    {
                    
230        if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
                    
231            clearstatcache(true, $cached->lock_id);
                    
                
ClassCollectionLoader.php https://bitbucket.org/wayfarer/verse.git | PHP | 129 lines
                    
1<?php
                    
2namespace Symfony\Component\ClassLoader;
                    
5    static private $loaded;
                    
6    static public function load($classes, $cacheDir, $name, $autoReload, $adaptive = false, $extension = '.php')
                    
7    {
                    
22            } else {
                    
23                $time = filemtime($cache);
                    
24                $meta = unserialize(file_get_contents($metadata));
                    
28                    foreach ($meta[0] as $resource) {
                    
29                        if (!is_file($resource) || filemtime($resource) > $time) {
                    
30                            $reload = true;
                    
48            $files[] = $r->getFileName();
                    
49            $c = preg_replace(array('/^\s*<\?php/', '/\?>\s*$/'), '', file_get_contents($r->getFileName()));
                    
50                        if (!$r->inNamespace()) {
                    
52            } else {
                    
53                $c = self::fixNamespaceDeclarations('<?php '.$c);
                    
54                $c = preg_replace('/^\s*<\?php/', '', $c);
                    
                
Mbox.php https://bitbucket.org/haichau59/manga.git | PHP | 447 lines
                    
37 */
                    
38//require_once 'Zend/Mail/Message/File.php';
                    
39
                    
206             */
                    
207            //require_once 'Zend/Mail/Storage/Exception.php';
                    
208            throw new Zend_Mail_Storage_Exception('not implemented');
                    
231             */
                    
232            //require_once 'Zend/Mail/Storage/Exception.php';
                    
233            throw new Zend_Mail_Storage_Exception('no valid filename given in params');
                    
296        $this->_filename = $filename;
                    
297        $this->_filemtime = filemtime($this->_filename);
                    
298
                    
431    {
                    
432        if ($this->_filemtime != @filemtime($this->_filename)) {
                    
433            $this->close();
                    
                
DefaultController.php https://bitbucket.org/reredesign/bitrix-module.git | PHP | 235 lines
                    
1<?php
                    
2/**
                    
29                if ($this->register())
                    
30                    $this->result(array('success', 'PHPSESSID', Yii::app()->session->sessionID));
                    
31                else {
                    
50                if (Yii::app()->user->isGuest && !$this->register()) break;
                    
51                $fileData = file_get_contents("php://input");
                    
52                if (empty($fileData))
                    
77                }
                    
78                $this->timestamp = filemtime($dir . $filename);
                    
79                if (!$xml = new XMLReader())
                    
127        $model->attributes = array(
                    
128            'email' => $_SERVER['PHP_AUTH_USER'],
                    
129            'password' => $_SERVER['PHP_AUTH_PW'],
                    
130        );
                    
131        return ($model->validate() && $model->login($_SERVER['PHP_AUTH_PW']));
                    
132    }
                    
                
WCAdminAssets.php https://github.com/woothemes/woocommerce.git | PHP | 382 lines
                    
1<?php
                    
2/**
                    
99		if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
                    
100			return filemtime( WC_ADMIN_ABSPATH . self::get_path( $ext ) );
                    
101		}
                    
115		$minification_supported = Features::exists( 'minified-js' );
                    
116		$script_min_filename    = $file . '.min.asset.php';
                    
117		$script_nonmin_filename = $file . '.asset.php';
                    
                
DirectFilesystem.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 500 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * @file DirectFilesystem.php
                    
7 * @ingroup Deployment
                    
17/**
                    
18 * Filesystem class for direct PHP file and folder manipulation.
                    
19 * 
                    
281		wfSuppressWarnings();
                    
282		$result = filemtime( $file );
                    
283		wfRestoreWarnings();		
                    
426	public function makeDir( $path, $chmod = false, $chown = false, $chgrp = false ) {
                    
427		// Safe mode fails with a trailing slash under certain PHP versions.
                    
428		$path = rtrim( $path, '/' );
                    
                
Filesystem.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25#require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
118            if (file_exists($path)) {
                    
119                #require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
122                if (!self::mkdirs($path)) {
                    
123                    #require_once 'Zend/Search/Lucene/Exception.php';
                    
124                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
182        unset($this->_fileHandlers[$filename]);
                    
183        #require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
184        $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');
                    
                
kodaks_controller.php https://github.com/bartcc/app.todos.git | PHP | 177 lines
                    
1<?php
                    
2
                    
141    $specs = getimagesize($path_to_cache);
                    
142    $mtime = filemtime($path_to_cache);
                    
143    $etag = md5($path_to_cache . $mtime);
                    
149
                    
150      if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && (strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= filemtime($path_to_cache))) {
                    
151        header("HTTP/1.1 304 Not Modified");
                    
165      header('Expires: ' . gmdate('D, d M Y H:i:s', strtotime('+1 year')));
                    
166      header('Last-Modified: ' . gmdate('D, d M Y H:i:s', filemtime($path_to_cache)));
                    
167      header('ETag: ' . $etag);
                    
                
Cart.php https://github.com/arush/desparation-deprecated.git | PHP | 246 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
71            $file = Mage::helper('xmlconnect')->urlToPath($icon);
                    
72            $iconXml->addAttribute('modification_time', filemtime($file));
                    
73            /**
                    
                
ezwebdavfileserver.php https://github.com/lserwatka/ezpublish.git | PHP | 468 lines
                    
1<?php
                    
2//
                    
2//
                    
3// This is the index_webdav.php file. Manages WebDAV sessions.
                    
4//
                    
31/*!
                    
32  \class eZWebDAVFileServer ezwebdavfileserver.php
                    
33  \ingroup eZWebDAV
                    
205        $fileInfo["ctime"] = filectime( $realPath.'/.' );
                    
206        $fileInfo["mtime"] = filemtime( $realPath.'/.' );
                    
207
                    
213        $fileInfo["ctime"] = filectime( $realPath );
                    
214        $fileInfo["mtime"] = filemtime( $realPath );
                    
215
                    
                
JSCompressor.php https://bitbucket.org/cidious/raise.org.git | PHP | 288 lines
                    
1<?php
                    
2/**
                    
67
                    
68		$mtime = @filemtime($path);
                    
69
                    
114			// Build request URL
                    
115			$url = $_SERVER["PHP_SELF"];
                    
116
                    
130		// Use cached file
                    
131		if ($this->_settings['disk_cache'] && file_exists($cacheFile) && @filemtime($cacheFile) == $this->_lastUpdate) {
                    
132			if ($supportsGzip)
                    
                
Filesystem.php https://gitlab.com/mdabutaleb/sentinel | PHP | 464 lines
                    
1<?php
                    
2
                    
245    {
                    
246        return filemtime($path);
                    
247    }
                    
                
resource.php https://github.com/chregu/fluxcms.git | PHP | 322 lines
                    
1<?php
                    
2
                    
217        if (isset($this->props['fileuri'])) {
                    
218            $this->props['lastmodified'] = @filemtime($this->props['fileuri']);
                    
219            return $this->props['lastmodified'];
                    
                
javascript.php https://github.com/tcubansk/moodle.git | PHP | 191 lines
                    
1<?php
                    
2
                    
30
                    
31// we need just the values from config.php and minlib.php
                    
32define('ABORT_AFTER_CONFIG', true);
                    
32define('ABORT_AFTER_CONFIG', true);
                    
33require('../config.php'); // this stops immediately at the beginning of lib/setup.php
                    
34
                    
43
                    
44if (file_exists("$CFG->dirroot/theme/$themename/config.php")) {
                    
45    // exists
                    
45    // exists
                    
46} else if (!empty($CFG->themedir) and file_exists("$CFG->themedir/$themename/config.php")) {
                    
47    // exists
                    
75
                    
76require("$CFG->dirroot/lib/setup.php");
                    
77// setup include path
                    
                
CustomSource.wiki.md https://gitlab.com/flyhope/Hiblog | Markdown | 136 lines
                    
30
                    
31To change minifier, set `minifier` to a [callback](http://php.net/manual/en/language.pseudo-types.php)`*` or the empty string (for none):
                    
32
                    
32
                    
33**`*`Prepare for `groupsConfig.php` to be executed more than once.** (This is likely if you're using the functions in `/min/utils.php`.) In practice this just means making sure functions are conditionally defined if they don't already exist, etc.
                    
34
                    
53  * **`id `** a unique string id for this source. (e.g. `'my source'`)
                    
54  * **`getContentFunc `** a [callback](http://php.net/manual/en/language.pseudo-types.php) that returns the content. The function is only called when the cache is rebuilt.
                    
55  * **`contentType `** `Minify::TYPE_JS` or `Minify::TYPE_CSS`
                    
91
                    
92If you wish to keep `groupsConfig.php` "clean", you can alternately create a separate PHP script that manually sets up sources, caching, options, and calls Minify::serve().
                    
93
                    
120    'lastModified' => max(
                    
121        filemtime('/path/to/javascript.php'),
                    
122        filemtime('/path/to/javascript_input.js')
                    
                
view_details.php https://github.com/dingwen/ZenHouse-Media-Template.git | PHP | 136 lines
                    
1<?php
                    
2/*
                    
27
                    
28require_once('functions.php');
                    
29
                    
59			$image_info = getimagesize($filename);
                    
60			$file_modified = date($datetimeFormat, filemtime($filename));
                    
61			$file_size = filesize($filename);
                    
85			$filename = DOCUMENTROOT.$selectedpath.$key;
                    
86			$file_modified = date($datetimeFormat, filemtime($filename));
                    
87			$file_size = filesize($filename);
                    
111		$foldername = DOCUMENTROOT.$selectedpath.$key;
                    
112		$folder_modified = date($datetimeFormat, filemtime($foldername));
                    
113								
                    
                
CacheDependency.php https://gitlab.com/qiusct/mediawiki-i.git | PHP | 265 lines
                    
1<?php
                    
2/**
                    
188			} else {
                    
189				$this->timestamp = filemtime( $this->filename );
                    
190			}
                    
208		} else {
                    
209			$lastmod = filemtime( $this->filename );
                    
210			if ( $lastmod > $this->timestamp ) {
                    
                
file.php https://github.com/matejudo/prospekta.git | PHP | 279 lines
                    
1<?php
                    
2/* SVN FILE: $Id: file.php 5135 2007-05-20 06:50:08Z phpnut $ */
                    
3/**
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
                    
10 * Copyright 2005-2007, Cake Software Foundation, Inc.
                    
18 * @copyright		Copyright 2005-2007, Cake Software Foundation, Inc.
                    
19 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
20 * @package			cake
                    
21 * @subpackage		cake.cake.libs.cache
                    
22 * @since			CakePHP(tm) v 1.2.0.4933
                    
23 * @version			$Revision: 5135 $
                    
                
functions.php https://gitlab.com/ricardosanchez/prueba | PHP | 647 lines
                    
1<?php
                    
2/**
                    
13
                    
14require_once __DIR__ . '/cache.php';
                    
15
                    
51
                    
52		JFactory::getDocument()->addScript($url . '?' . filemtime(JPATH_SITE . $url));
                    
53	}
                    
73
                    
74		JFactory::getDocument()->addStyleSheet($url . '?' . filemtime(JPATH_SITE . $url));
                    
75	}
                    
257		if (
                    
258			strpos($url, 'download.regularlabs.com/extensions.php') === false
                    
259			&& strpos($url, 'download.regularlabs.com/extensions.json') === false
                    
490			case 'component':
                    
491				if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_' . $extension . '/' . $extension . '.php')
                    
492					|| JFile::exists(JPATH_ADMINISTRATOR . '/components/com_' . $extension . '/admin.' . $extension . '.php')
                    
                
parsing2.ml https://github.com/facebook/pfff.git | OCaml | 412 lines
                    
51  | Js  of Parse_js.program_and_tokens
                    
52  | Php of Parse_php.program_with_comments
                    
53  | Opa of Parse_opa.program_and_tokens
                    
74  Common.profile_code "View.parse_cache" (fun () ->
                    
75    let mtime = Common2.filemtime file in
                    
76    let recompute = 
                    
99  match () with
                    
100  (* note that because my PHP object analysis have some threshold
                    
101   * on the number of callers (see threshold_callers_indirect_db)
                    
200  match ftype with
                    
201  | FT.PL (FT.Web (FT.Php _)) ->
                    
202      tokens_with_categ_of_file_helper 
                    
203        { parse = (parse_cache (fun file ->
                    
204          Common.save_excursion Flag_parsing_php.error_recovery true (fun () ->
                    
205            let ((ast, toks), _stat) = Parse_php.parse file in
                    
                
File.php https://github.com/kervin/kyzstudio.git | PHP | 218 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: File.php 23330 2010-11-14 20:08:09Z mabe $
                    
21 */
                    
26 */
                    
27#require_once 'Zend/Cache/Core.php';
                    
28
                    
112        foreach ($masterFiles as $masterFile) {
                    
113            $mtime = @filemtime($masterFile);
                    
114
                    
193                // MODE_AND
                    
194                foreach($this->_masterFile_mtimes as $masterFileMTime) {
                    
195                    if ($masterFileMTime) {
                    
195                    if ($masterFileMTime) {
                    
196                        if ($lastModified > $masterFileMTime) {
                    
197                            return $lastModified;
                    
                
Mbox.php https://github.com/sidealice/zf2.git | PHP | 407 lines
                    
1<?php
                    
2/**
                    
57     */
                    
58    protected $_filemtime;
                    
59
                    
268        $this->_filename = $filename;
                    
269        $this->_filemtime = filemtime($this->_filename);
                    
270
                    
381    {
                    
382        return array('_filename', '_positions', '_filemtime');
                    
383    }
                    
395    {
                    
396        if ($this->_filemtime != @filemtime($this->_filename)) {
                    
397            $this->close();
                    
                
xhprof_runs.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 166 lines
                    
1<?php
                    
2//
                    
125
                    
126    // Use PHP serialize function to store the XHProf's
                    
127    // raw profiler data.
                    
152        usort($files, function($a, $b) {
                    
153            return filemtime($b) - filemtime($a);
                    
154        });
                    
160                . htmlentities(basename($file)) . "</a><small> "
                    
161                . date("Y-m-d H:i:s", filemtime($file)) . "</small></li>\n";
                    
162        }
                    
                
Filesystem.php https://github.com/bhaumik25/zend-framework.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
23/** Zend_Search_Lucene_Storage_Directory */
                    
24require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
25
                    
26/** Zend_Search_Lucene_Storage_File_Filesystem */
                    
27require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
28
                    
184
                    
185        global $php_errormsg;
                    
186        $trackErrors = ini_get('track_errors'); ini_set('track_errors', '1');
                    
188            ini_set('track_errors', $trackErrors);
                    
189            throw new Zend_Search_Lucene_Exception($php_errormsg);
                    
190        }
                    
210
                    
211        global $php_errormsg;
                    
212        $trackErrors = ini_get('track_errors'); ini_set('track_errors', '1');
                    
                
spektakels.tpl.d17.php https://github.com/jonathanslenders/balancirk-website.git | PHP | 337 lines
                    
1<?php
                    
2/* template head */
                    
6'';// checking for modification in file:templates/base.tpl
                    
7if (!("1300637056" == filemtime('templates/base.tpl'))) { ob_end_clean(); return false; };?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
                    
8<html xmlns="http://www.w3.org/1999/xhtml"> 
                    
273
                    
274				<?php if ((isset($this->scope["authenticated"]) ? $this->scope["authenticated"] : null)) {
                    
275?>
                    
275?>
                    
276					<?php echo Dwoo_Plugin_include($this, "templates/_edit.tpl", null, null, null, '_root', null);?>
                    
277
                    
277
                    
278				<?php 
                    
279}?>
                    
334 
                    
335<?php  /* end template body */
                    
336return $this->buffer . ob_get_clean();
                    
                
file.php https://bitbucket.org/sriedel/iccrm-wip.git | PHP | 329 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2012 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
126			{
                    
127				$filemtime = filemtime($file);
                    
128				if ($filemtime === false || $filemtime > $this->created)
                    
134			{
                    
135				$filemtime = filemtime($file);
                    
136				if ($filemtime === false || $filemtime > $this->created)
                    
                
App.class.php https://github.com/liujinsong668/epptime.git | PHP | 177 lines
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
39            // 运行模式无需载入项目编译缓存
                    
40        }elseif(is_file(RUNTIME_PATH.'~app.php')  && (!is_file(CONFIG_PATH.'config.php') || filemtime(RUNTIME_PATH.'~app.php')>filemtime(CONFIG_PATH.'config.php'))) {
                    
41            // 直接读取编译后的项目文件
                    
83        if(is_file(COMMON_PATH.'common.php')) {
                    
84            include COMMON_PATH.'common.php';
                    
85            if(!$debug) { // 编译文件
                    
85            if(!$debug) { // 编译文件
                    
86                $common   .= compile(COMMON_PATH.'common.php');
                    
87            }
                    
116                $content .= $common."\nreturn ".var_export(C(),true).';';
                    
117                file_put_contents(RUNTIME_PATH.'~allinone.php',strip_whitespace('<?php '.$content));
                    
118            }else{
                    
                
Filesystem.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25// require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
118            if (file_exists($path)) {
                    
119                // require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
122                if (!self::mkdirs($path)) {
                    
123                    // require_once 'Zend/Search/Lucene/Exception.php';
                    
124                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
182        unset($this->_fileHandlers[$filename]);
                    
183        // require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
184        $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');
                    
                
CJzip.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 357 lines
                    
1<?php
                    
2
                    
69        $this->siteRoot = str_replace( '\\', '/', realpath( dirname( __file__ ) ) );
                    
70        $base_siteurl = pathinfo( $_SERVER['PHP_SELF'], PATHINFO_DIRNAME );
                    
71        if ( $base_siteurl == '\\' or $base_siteurl == '/' ) $base_siteurl = '';
                    
75        	$base_siteurl = preg_replace( "/^[\/]*(.*)$/", '/\\1', $base_siteurl );
                    
76        	$base_siteurl = preg_replace( "#/index\.php(.*)$#", '', $base_siteurl );
                    
77        }
                    
83        $this->file['path'] = $this->siteRoot . '/' . $filename;
                    
84        $this->file['lastmod'] = @filemtime( $this->file['path'] );
                    
85        if ( ! $this->file['lastmod'] )
                    
                
class-wp-filesystem-direct.php https://gitlab.com/webkod3r/tripolis | PHP | 517 lines
                    
1<?php
                    
2/**
                    
9/**
                    
10 * WordPress Filesystem Class for direct PHP file and folder manipulation.
                    
11 *
                    
386	public function mtime($file) {
                    
387		return @filemtime($file);
                    
388	}
                    
425	public function mkdir($path, $chmod = false, $chown = false, $chgrp = false) {
                    
426		// Safe mode fails with a trailing slash under certain PHP versions.
                    
427		$path = untrailingslashit($path);
                    
                
 

Source

Language