100+ results results for 'php readdir' (1269 ms)
1<?php 2/** 36 */ 37class MaildirFolderTest extends \PHPUnit_Framework_TestCase 38{ 64 $dh = opendir($this->_tmpdir); 65 while (readdir($dh) !== false) { 66 ++$count; 87 $dh = opendir($this->_originalDir . $dir . '/' . $subdir); 88 while (($entry = readdir($dh)) !== false) { 89 $entry = $dir . '/' . $subdir . '/' . $entry; 107 $dh = opendir($this->_tmpdir . $dir . '/' . $subdir); 108 while (($entry = readdir($dh)) !== false) { 109 $entry = $this->_tmpdir . $dir . '/' . $subdir . '/' . $entry; 203 try { 204 // explicit call of __toString() needed for PHP < 5.2 205 $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');MaildirTest.php https://github.com/mrbanzai/zf2.git | PHP | 444 lines
1<?php 2/** 36 */ 37class MaildirTest extends \PHPUnit_Framework_TestCase 38{ 62 $dh = opendir($this->_tmpdir); 63 while (readdir($dh) !== false) { 64 ++$count; 77 $dh = opendir($this->_originalMaildir . $dir); 78 while (($entry = readdir($dh)) !== false) { 79 $entry = $dir . '/' . $entry; 92 $dh = opendir($this->_tmpdir . $dir); 93 while (($entry = readdir($dh)) !== false) { 94 $entry = $this->_tmpdir . $dir . '/' . $entry;file_helper.php https://bitbucket.org/jiji262/wechat_robot.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 * 130 131 while (FALSE !== ($filename = @readdir($current_dir))) 132 { 188 189 while (FALSE !== ($file = readdir($fp))) 190 { 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))) 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 filefile_helper.php https://github.com/kadoshmt/Pyro-Deals.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 * 130 131 while(FALSE !== ($filename = @readdir($current_dir))) 132 { 188 189 while (FALSE !== ($file = readdir($fp))) 190 { 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))) 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 fileFAQ.htm https://gitlab.com/x33n/ProjectPier-Core | HTML | 341 lines
181<br> 182<b>Warning:</b> Cannot modify header information - headers already sent by (output started at script.php:X)<br> 183<br> 189</div> 190If you still don't see it, disable zlib.output_compression in your php.ini and it should appear. 191</li> 259<div class="doc-source"> 260<pre><code>require('b.php'); 261 272<p><b>15.</b> <span class='question'>How can I send the PDF by email?</span></p> 273As any other file, but an easy way is to use <a href="http://phpmailer.codeworxtech.com">PHPMailer</a> and 274its in-memory attachment: 310<br> 311<a href="http://www.setasign.de/products/pdf-php-solutions/fpdi/" target="_blank">http://www.setasign.de/products/pdf-php-solutions/fpdi/</a><br> 312<br>Compass.php https://github.com/vivid-planet/library.git | PHP | 511 lines
1<?php 2require_once dirname(__FILE__) . '/../ExtensionInterface.php'; 95 if ($handle = opendir($dir)) { 96 while (false !== ($file = readdir($handle))) { 97 if ($file == '.' || $file == '..') {filebrowser.php https://bitbucket.org/chiamingyen/cmsimple-and-plugins.git | PHP | 431 lines
1<?php 2 3/** 4 * @version $Id: filebrowser.php 292 2012-09-21 16:24:11Z cmb69 $ 5 */ 135 136 function readDirectory() { 137 $dir = $this->browseBase . $this->currentDirectory; 141 if ($handle) { 142 while (false !== ($file = readdir($handle))) { 143 167 if ($handle) { 168 while (false !== ($file = readdir($handle))) { 169 if (strpos($file, '.') === 0) { 250// 設法在 Windows 能夠儲存中文命名檔案 251if (substr(php_uname(), 0, 7) == "Windows") 252{checkbase.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 231 lines
1<?php 2// main global to hold our checks 13 // should return true for good/okay/acceptable, false for bad/not-okay/unacceptable 14 public function check( $php_files, $css_files, $other_files ); 15 21$dir = 'checks'; 22foreach (glob(dirname(__FILE__). "/{$dir}/*.php") as $file) { 23 include $file; 25 26function run_themechecks($php, $css, $other) { 27 global $themechecks; 30 if ($check instanceof themecheck) { 31 $pass = $pass & $check->check($php, $css, $other); 32 } 156 $fh = opendir( $start_dir ); 157 while ( ( $file = readdir( $fh ) ) !== false ) { 158 # loop through the files, skipping . and .., and recursing if necessaryfunction_forumlist.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 386 lines
1<?php 2 6 * 7 * $Id: function_forumlist.php 31131 2012-07-18 09:44:21Z liulanbo $ 8 */ 39 $forum['icon'] = get_forumimg($forum['icon']); 40 $forum['icon'] = '<a href="forum.php?mod=forumdisplay&fid='.$forum['fid'].'"><img src="'.$forum['icon'].'" align="left" alt="" /></a>'; 41 } 60 if($lastpost['author']) { 61 $lastpost['author'] = '<a href="home.php?mod=space&username='.rawurlencode($lastpost['author']).'">'.$lastpost['author'].'</a>'; 62 } 136 if($fid != $_G['forum']['fid']) { 137 $visitedforums .= '<li><a href="forum.php?mod=forumdisplay&fid='.$fid.'">'.$_G['cache']['forums'][$fid]['name'].'</a></li>'; 138 if(++$count >= $_G['setting']['visitedforums']) { 167 $tid = intval($tid); 168 $cachethreaddir2 = DISCUZ_ROOT.'./'.$_G['setting']['cachethreaddir']; 169 $cache = array('filemtime' => 0, 'filename' => '');count.pl https://github.com/ulisses/Static-Code-Analyzer.git | Perl | 381 lines
63 }, 64 "php" => {"nrFiles" => 0, "nrLines" => 0, "comments" => sub { return shift =~ m/(\*(.|\n|\r)*?\*)|(^[ \t\n]*\/\/.*)/; }, "nrComments" => 0, 65 "percentageNrFiles" => 0, "percentageNrLines" => 0, "percentageNrComments" => 0 359 grep { !/^\.{1,2}$/ } 360 readdir (DIR); 361Filesystem.php https://gitlab.com/Ltaimao/wecenter | PHP | 364 lines
1<?php 2/** 24/** Zend_Search_Lucene_Storage_Directory */ 25//require_once 'Zend/Search/Lucene/Storage/Directory.php'; 26 120 if (file_exists($path)) { 121 //require_once 'Zend/Search/Lucene/Exception.php'; 122 throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory'); 124 if (!self::mkdirs($path)) { 125 //require_once 'Zend/Search/Lucene/Exception.php'; 126 throw new Zend_Search_Lucene_Exception("Can't create directory '$path'."); 159 $dirContent = opendir( $this->_dirPath ); 160 while (($file = readdir($dirContent)) !== false) { 161 if (($file == '..')||($file == '.')) continue; 184 unset($this->_fileHandlers[$filename]); 185 //require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php'; 186 $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');Filesystem.php https://github.com/grjones/qframe.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 */ 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'."); 157 $dirContent = opendir( $this->_dirPath ); 158 while (($file = readdir($dirContent)) !== false) { 159 if (($file == '..')||($file == '.')) continue;memberships.civix.php https://gitlab.com/bmnepali/CiviCRM-Membership-Module | PHP | 348 lines
1<?php 2 119function _memberships_civix_upgrader() { 120 if (!file_exists(__DIR__.'/CRM/Memberships/Upgrader.php')) { 121 return NULL; 152 if ($dh = opendir($subdir)) { 153 while (FALSE !== ($entry = readdir($dh))) { 154 $path = $subdir . DIRECTORY_SEPARATOR . $entry; 167 * 168 * Find any *.mgd.php files, merge their content, and return. 169 * 172function _memberships_civix_civicrm_managed(&$entities) { 173 $mgdFiles = _memberships_civix_find_files(__DIR__, '*.mgd.php'); 174 foreach ($mgdFiles as $file) { 216 * 217 * Find any and return any files matching "ang/*.ang.php" 218 *Filesystem.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 364 lines
1<?php 2/** 24/** Zend_Search_Lucene_Storage_Directory */ 25#require_once 'Zend/Search/Lucene/Storage/Directory.php'; 26 120 if (file_exists($path)) { 121 #require_once 'Zend/Search/Lucene/Exception.php'; 122 throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory'); 124 if (!self::mkdirs($path)) { 125 #require_once 'Zend/Search/Lucene/Exception.php'; 126 throw new Zend_Search_Lucene_Exception("Can't create directory '$path'."); 159 $dirContent = opendir( $this->_dirPath ); 160 while (($file = readdir($dirContent)) !== false) { 161 if (($file == '..')||($file == '.')) continue; 184 unset($this->_fileHandlers[$filename]); 185 #require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php'; 186 $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');filestore_funcs.php https://github.com/Nerutiz/trades.git | PHP | 366 lines
1<?php 2/** 72 if ($dirHandle) { 73 while($file = readdir($dirHandle)) { 74 if ($file) { 160 $dirHandle = opendir($fullPath); 161 while($cFile = readdir($dirHandle)) { 162 if ($cFile) { 302 $dirHandle = opendir($fullDir); 303 while ($file = readdir($dirHandle)) { 304 if ($file != "." && $file != "..") { 365} 366// No closing PHP tag on purpose. Do not want it to print whitepace and thus not allow setting headers later. 367upload.php https://gitlab.com/plusplusminus/aevitas | PHP | 245 lines
1<?php 2 7/** 8 * upload.php 9 * 139 if ( is_dir( $target_dir ) && ( $dir = opendir( $target_dir ) ) ) { 140 while ( ( $file = readdir( $dir ) ) !== false ) { 141 $tmp_file_path = $target_dir . $file; 195 // Read binary input stream and append it to temp file 196 $in = @fopen( 'php://input', 'rb' ); 197acp_portal_menu.php https://github.com/Lucky65/phpBB-Portal-XL-5.0-italian.git | PHP | 251 lines
1<?php 2/** 3* 4* @name acp_portal_menu.php 5* @package phpBB3 Portal XL 5* @package phpBB3 Portal XL 6* @version $Id: acp_portal_menu.php,v 1.1.1.1 2009/05/15 05:14:21 damysterious Exp $ 7* 8* @copyright (c) 2007, 2009 Portal XL Group 9* @license http://opensource.org/licenses/gpl-license.php GNU Public License 10* 22 global $db, $user, $auth, $template, $cache; 23 global $config, $portal_config, $phpbb_root_path, $phpbb_admin_path, $phpEx; 24 135 */ 136 if ($dir = opendir($phpbb_root_path . 'portal/images/icon_menu')) { 137 $block_images = array();Filesystem.php https://github.com/ParveenArora/AddressHunter.git | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Filesystem.php 23775 2011-03-01 17:25:24Z ralph $ 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'."); 157 $dirContent = opendir( $this->_dirPath ); 158 while (($file = readdir($dirContent)) !== false) { 159 if (($file == '..')||($file == '.')) continue;Filesystem.php https://github.com/tedkulp/cmsmadesimple-2-0.git | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Filesystem.php 18954 2009-11-12 20:01:33Z alexander $ 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'."); 157 $dirContent = opendir( $this->_dirPath ); 158 while (($file = readdir($dirContent)) !== false) { 159 if (($file == '..')||($file == '.')) continue;admin.ninjaxplorer.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 270 lines
1<?php 2// ensure this file is being included by a parent file 4/** 5 * MAIN FILE! (formerly known as index.php) 6 * 6 * 7 * @version $Id: admin.joomlaxplorer.php 99 2008-04-20 15:10:20Z soeren $ 8 * 80/*if (!$acl->acl_check( 'administration', 'config', 'users', $user->usertype )) { 81 $mainframe->redirect( 'index2.php', _NOT_AUTH ); 82} */ 86if ($myRealGid != 25) { 87 $mainframe->redirect( 'index2.php', _NOT_AUTH ); 88} 95$path = $mosConfig_absolute_path.'/administrator/components/com_joomlaxplorer'; 96$filelist = mosReadDirectory( $path, '.', true, true ); 97$contents ='';Fetchmail.php https://github.com/Excito/imp.git | PHP | 457 lines
1<?php 2/** 5 * 6 * $Horde: imp/lib/Fetchmail.php,v 1.41.8.15 2009/01/06 15:24:03 jan Exp $ 7 * 68 $driver = basename($driver); 69 require_once dirname(__FILE__) . '/Fetchmail/' . $driver . '.php'; 70 $class = 'IMP_Fetchmail_' . $driver; 92 if (($dir = opendir(dirname(__FILE__) . '/Fetchmail'))) { 93 while (false !== ($file = readdir($dir))) { 94 if (!is_dir($file)) { 94 if (!is_dir($file)) { 95 $driver = basename($file, '.php'); 96 $class = 'IMP_Fetchmail_' . $driver; 236 ($size > $GLOBALS['conf']['fetchmail']['size_limit'])) { 237 require_once 'Horde/MIME.php'; 238 $GLOBALS['notification']->push(sprintf(_("The message \"%s\" from \"%s\" (%d bytes) exceeds fetch size limit."), MIME::Decode($subject), MIME::Decode($from), $size), 'horde.warning');vms.c https://bitbucket.org/wallwizz/imagemagick-6.8.4-for-bb10.git | C | 271 lines
25% % 26% http://www.imagemagick.org/script/license.php % 27% % 152% 153% readdir() returns a pointer to a structure representing the directory entry 154% at the current position in the directory stream to which entry refers. 155% 156% The format of the readdir 157% 157% 158% readdir(entry) 159% 165*/ 166struct dirent *readdir(DIR *directory) 167{CLocale.php https://bitbucket.org/aagraz/yii.git | PHP | 472 lines
1<?php 2/** 77 $folder=@opendir($dataPath); 78 while(($file=@readdir($folder))!==false) 79 { 80 $fullPath=$dataPath.DIRECTORY_SEPARATOR.$file; 81 if(substr($file,-4)==='.php' && is_file($fullPath)) 82 $locales[]=substr($file,0,-4); 100 $dataPath=self::$dataPath===null ? dirname(__FILE__).DIRECTORY_SEPARATOR.'data' : self::$dataPath; 101 $dataFile=$dataPath.DIRECTORY_SEPARATOR.$this->_id.'.php'; 102 if(is_file($dataFile))tsrm_virtual_cwd.h https://github.com/tstarling/hiphop-php.git | C Header | 339 lines
6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 | Sascha Schumann <sascha@schumann.cx> | 17 | Pierre Joye <pierre@php.net> | 18 +----------------------------------------------------------------------+ 134CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat); 135# define php_sys_stat(path, buf) php_sys_stat_ex(path, buf, 0) 136# define php_sys_lstat(path, buf) php_sys_stat_ex(path, buf, 1)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'."); 157 $dirContent = opendir( $this->_dirPath ); 158 while (($file = readdir($dirContent)) !== false) { 159 if (($file == '..')||($file == '.')) continue;Filesystem.php https://github.com/sidealice/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'."); 157 $dirContent = opendir( $this->_dirPath ); 158 while (($file = readdir($dirContent)) !== false) { 159 if (($file == '..')||($file == '.')) continue;Filesystem.php https://bitbucket.org/haichau59/manga.git | PHP | 363 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Filesystem.php 24594 2012-01-05 21:27:01Z 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'."); 157 $dirContent = opendir( $this->_dirPath ); 158 while (($file = readdir($dirContent)) !== false) { 159 if (($file == '..')||($file == '.')) continue;mediamosa_integrity_check.php https://github.com/www-madcap-nl/mediamosa.git | PHP | 303 lines
1<?php 2// $Id$ 28 * @file 29 * Integrity check PHP file 30 */ 40 while (($path = getcwd()) !== '/') { 41 if (file_exists('index.php') && is_dir('includes')) { 42 break; 116 117 while (($folder = readdir($dh)) !== FALSE) { 118 // Is it '.' or '..'? 124 $fh = opendir($dir . DIRECTORY_SEPARATOR . $folder); 125 while (($file = readdir($fh)) !== FALSE) { 126 228 229 while (($folder = readdir($dh)) !== FALSE) { 230 // Is it '.' or '..'?fileManager.php https://github.com/pheeque/jquery.fileManager.git | PHP | 235 lines
1<?php 2/* 28* 29* Advanced users may wish to write a separate php script to control the 30* ajax features of the File Manager. Including callbacks for deleting 172 if (is_dir($targetDir) && ($dir = opendir($targetDir))) { 173 while (($file = readdir($dir)) !== false) { 174 $filePath = $targetDir . DIRECTORY_SEPARATOR . $file; 217 // Read binary input stream and append it to temp file 218 $in = fopen("php://input", "rb"); 219MaildirFolderTest.php https://github.com/bhaumik25/zend-framework.git | PHP | 438 lines
12 */ 13require_once 'Zend/Mail/Storage/Folder/Maildir.php'; 14 17 */ 18require_once 'Zend/Config.php'; 19 20/** 21 * PHPUnit test case 22 */ 22 */ 23require_once 'PHPUnit/Framework/TestCase.php'; 24 58 $dh = opendir($this->_tmpdir); 59 while (readdir($dh) !== false) { 60 ++$count;RouteTest.php https://github.com/popovag/kohana_core.git | PHP | 447 lines
1<?php defined('SYSPATH') OR die('Kohana bootstrap needs to be included before tests run'); 2 11 * @copyright (c) 2008-2009 Kohana Team 12 * @license http://kohanaphp.com/license 13 */ 42 43 while($dir = readdir($cache_dir)) 44 { 49 50 while($file = readdir($cache)) 51 {commands.php https://github.com/lxcenter/hypervm.git | PHP | 222 lines
1<?php 2/* 21 * 22 * This is the File Manager Connector for PHP. 23 */ 34 35 while ( $sFile = readdir( $oCurrentFolder ) ) 36 { 64 65 while ( $sFile = readdir( $oCurrentFolder ) ) 66 {special_cases.php https://gitlab.com/wendy-du-973/club-invest-gr2 | PHP | 241 lines
28 * @throws JsonException if the JSON cannot be decoded. 29 * @link http://www.php.net/manual/en/function.json-decode.php 30 */ 34 if (JSON_ERROR_NONE !== json_last_error()) { 35 throw JsonException::createFromPhpError(); 36 } 55 if ($success === false) { 56 throw ApcException::createFromPhpError(); 57 } 110 * To use backslash in replacement, it must be doubled 111 * ("\\\\" PHP string). 112 * 159 if (preg_last_error() !== PREG_NO_ERROR || $result === null) { 160 throw PcreException::createFromPhpError(); 161 }Fetchmail.php https://github.com/wrobel/horde-fw3.git | PHP | 457 lines
1<?php 2/** 5 * 6 * $Horde: imp/lib/Fetchmail.php,v 1.41.8.15 2009-01-06 15:24:03 jan Exp $ 7 * 68 $driver = basename($driver); 69 require_once dirname(__FILE__) . '/Fetchmail/' . $driver . '.php'; 70 $class = 'IMP_Fetchmail_' . $driver; 92 if (($dir = opendir(dirname(__FILE__) . '/Fetchmail'))) { 93 while (false !== ($file = readdir($dir))) { 94 if (!is_dir($file)) { 94 if (!is_dir($file)) { 95 $driver = basename($file, '.php'); 96 $class = 'IMP_Fetchmail_' . $driver; 236 ($size > $GLOBALS['conf']['fetchmail']['size_limit'])) { 237 require_once 'Horde/MIME.php'; 238 $GLOBALS['notification']->push(sprintf(_("The message \"%s\" from \"%s\" (%d bytes) exceeds fetch size limit."), MIME::Decode($subject), MIME::Decode($from), $size), 'horde.warning');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'."); 151 $dirContent = opendir($this->_dirPath); 152 while (($file = readdir($dirContent)) !== false) { 153 if (($file == '..') || ($file == '.')) {index.php https://github.com/mysociety/theyworkforyou.git | PHP | 406 lines
1<?php 2 2 3include_once '../../includes/easyparliament/init.php'; 4 7$files = array(); 8while ($file = readdir($dh)) { 9 if (preg_match('#^regmem#', $file)) { 33</style> 34<?php 35$f = get_http_var('f'); 82<tr><th width="50%">Removed</th><th width="50%">Added</th></tr> 83<?php 84 } 307<p>This page shows the Register of Members' Interests as released on <?=$d_pretty ?>, in alphabetical order by MP. 308<?php if ($d_iso > '2002-05-14') { ?><a href="./?f=<?=$d_iso ?>">Compare this edition with the one before it</a></p><?php } ?> 309<div id="regmem">files.php https://gitlab.com/webbroteam/satisfaction-mvc | PHP | 306 lines
3 * 4 * This file is part of phpFastCache. 5 * 14 15namespace phpFastCache\Drivers; 16 17use phpFastCache\Core\DriverAbstract; 18use phpFastCache\Exceptions\phpFastCacheDriverException; 19 58 * @return string 59 * @throws phpFastCacheDriverException 60 */ 257 258 while ($file = readdir($dir)) { 259 if ($file != '.' && $file != '..' && is_dir($path . '/' . $file)) {configuration.php https://github.com/foxbei/joomla15.git | PHP | 367 lines
1<?php 2/** 3* @package ZOO Component 4* @file configuration.php 5* @version 2.3.7 March 2011 118 119 $files = YFile::readDirectoryFiles(ZOO_ADMIN_PATH . '/helpers/exporter/', ZOO_ADMIN_PATH . '/helpers/exporter/', '/.*\.php$/', false); 120 122 foreach ($files as $file) { 123 if ($instance = ExportHelper::getInstance(basename($file, '.php'))) { 124 if ($instance->getName() != 'Zoo v2') {list_functions.php https://gitlab.com/endomorphosis/fusenews | PHP | 127 lines
1<?php 2 3function list_jumps() { 4 global $phpiCal_config, $lang, $cal; 5 $calName = join(',', array_map("getCalendarName", split(',', $cal))); 5 $calName = join(',', array_map("getCalendarName", split(',', $cal))); 6 $today = date('Ymd', time() + $phpiCal_config->second_offset); 7 $return = '<option value="#">'.$lang['l_jump'].'</option>'; 7 $return = '<option value="#">'.$lang['l_jump'].'</option>'; 8 $return .= '<option value="day.php?cal='.$calName.'&getdate='.$today.'">'.$lang['l_goday'].'</option>'; 9 $return .= '<option value="week.php?cal='.$calName.'&getdate='.$today.'">'.$lang['l_goweek'].'</option>'; 9 $return .= '<option value="week.php?cal='.$calName.'&getdate='.$today.'">'.$lang['l_goweek'].'</option>'; 10 $return .= '<option value="month.php?cal='.$calName.'&getdate='.$today.'">'.$lang['l_gomonth'].'</option>'; 11 $return .= '<option value="year.php?cal='.$calName.'&getdate='.$today.'">'.$lang['l_goyear'].'</option>'; 15function list_calcolors() { 16 global $phpiCal_config, $master_array; 17 $return = '';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 60 if ($dirHandle = opendir($thumbsDir)) { 61 while (($file = readdir($dirHandle)) !== false) { 62 if (isImage("$thumbsDir/$file")) { 76 if ($dirHandle = opendir($galleryDir)) { 77 while (($file = readdir($dirHandle)) !== false) { 78 if (isImage("$galleryDir/$file")) { 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);jarvisrc.js https://github.com/broofa/jarvis.git | JavaScript | 171 lines
23 doc: 'Search the NPR web site', 24 url: 'http://www.npr.org/search/index.php?searchinput={QUERY}' 25 } 52 url: '{NPR_ROOT}', 53 query: '{NPR_ROOT}/search/index.php?searchinput={QUERY}' 54 }, 68var RC_DIR = path.join(process.env.HOME, '.jarvisrc'); 69var files = fs.readdirSync(RC_DIR); 70Filesystem.php https://github.com/Enrise/Zend.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'."); 157 $dirContent = opendir( $this->_dirPath ); 158 while (($file = readdir($dirContent)) !== false) { 159 if (($file == '..')||($file == '.')) continue;Stream.php https://bitbucket.org/babanesma/mysimpleadmin.git | PHP | 565 lines
1<?php 2/** 19 * @license http://todo name_todo 20 * @version $Id: Stream.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26require_once 'Zend/Service/WindowsAzure/Storage/Blob.php'; 27 30 */ 31require_once 'Zend/Service/WindowsAzure/Exception.php'; 32 533 */ 534 public function dir_readdir() 535 {Theme_Manager.class.php https://gitlab.com/albert925/lading-ach | PHP | 381 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * @version $Id$ 6 * @package phpMyAdmin 7 */ 11 */ 12require_once './libraries/Theme.class.php'; 13 15 * 16 * @package phpMyAdmin 17 */ 206 // force a change of a dummy session variable to avoid problems 207 // with the caching of phpmyadmin.css.php 208 $_SESSION['PMA_Config']->set('theme-update', $this->theme->id); 238 // check for themes directory 239 while (false !== ($PMA_Theme = readdir($handleThemes))) { 240 if (array_key_exists($PMA_Theme, $this->themes)) {file.php https://github.com/kronda/kronda.git | PHP | 353 lines
1<?php 2/** 214 'upload_failed_php_error' => array( 215 'description' => __( "Uploading a file fails for PHP error", 'contact-form-7' ), 216 'default' => __( 'Failed to upload file. Error occurred.', 'contact-form-7' ) 238<table> 239<tr><td><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field?', 'contact-form-7' ) ); ?></td></tr> 240<tr><td><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?><br /><input type="text" name="name" class="tg-name oneline" /></td><td></td></tr> 244<tr> 245<td><code>id</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br /> 246<input type="text" name="id" class="idvalue oneline option" /></td> 252<tr> 253<td><?php echo esc_html( __( "File size limit", 'contact-form-7' ) ); ?> (<?php echo esc_html( __( 'bytes', 'contact-form-7' ) ); ?>) (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br /> 254<input type="text" name="limit" class="filesize oneline option" /></td> 255 256<td><?php echo esc_html( __( "Acceptable file types", 'contact-form-7' ) ); ?> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br /> 257<input type="text" name="filetypes" class="filetype oneline option" /></td>backup_general_helper.class.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 305 lines
1<?php 2 31 * 32 * TODO: Finish phpdocs 33 */ 86 } 87 while (false !== ($file = readdir($dir))) { 88 if ($file == '.' || $file == '..') { // Skip dots 281 global $CFG; 282 require_once($CFG->dirroot . '/backup/util/helper/convert_helper.class.php'); 283list.php https://gitlab.com/florianocomercial/centreon | PHP | 134 lines
1<?php 2/** 39 40require_once _CENTREON_PATH_ . "www/class/centreonWidget.class.php"; 41require_once _CENTREON_PATH_ . "www/class/centreonUtils.class.php"; 58$widgetDirs = array(); 59while (($currentDir = readdir($handle)) != false){ 60 if ($currentDir != "." && $currentDir != ".." && $currentDir != ".SVN" && $currentDir != ".svn" && $currentDir != ".CSV") { 90<script type='text/javascript'> 91var installConfirmMsg = '<?php echo _('Would you like to install this widget?');?>'; 92var uninstallConfirmMsg = '<?php echo _('Are you sure you want to uninstall this widget?');?>'; 92var uninstallConfirmMsg = '<?php echo _('Are you sure you want to uninstall this widget?');?>'; 93var upgradeConfirmMsg = '<?php echo _('Would you like to upgrade this widget?');?>'; 94var p = '<?php echo $p;?>'; 118 dataType: "xml", 119 url : "./include/options/oreon/widgets/action.php", 120 data : {Upgrade.php https://github.com/yamamoto123/Ushahidi_Web.git | PHP | 553 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 170 $dirHandle=opendir($source); 171 while($file=readdir($dirHandle)) 172 { 260 // Are we already in the Ushahidi directory? 261 if ($this->ftp->is_exists("application/config/config.php")) 262 { 275 $ftp_base .= $value."/"; 276 if ($this->ftp->is_exists($ftp_base."application/config/config.php")) 277 { // We've arrived at the right folder 284 // Verify once again that we're in the right directory 285 if ($this->ftp->is_exists($ftp_base."application/config/config.php")) 286 { // We've arrived at the right folder 399 $dirHandle=opendir($source); 400 while($file=readdir($dirHandle)) 401 {template.php https://gitlab.com/mhd_alhuda/megablogging-v5 | PHP | 224 lines
10 <title>Templates - Admin Megablogging</title> 11 <?PHP require_once(dirname(__FILE__)."/inc/css.php"); ?> 12 <link rel='stylesheet' type='text/css' href='assets/css/fileinput.css'/> 15 <div id="wrapper" <?PHP echo $c_sidebar_set; ?>> 16 <?PHP require_once(dirname(__FILE__)."/inc/navbar.php"); ?> 17 <?PHP require_once(dirname(__FILE__)."/inc/sidebar.php"); ?> 155 <ul class="styled-list"> 156 <?PHP require_once("inc/php.ini.php"); ?> 157 <li>Allowed extension only <span class='text-danger'>zip</span></li> 169 </div><!-- /main-container --> 170 <?PHP require_once(dirname(__FILE__)."/inc/footer.php"); ?> 171 </div><!-- /wrapper --> 172 <a href="#" id="scroll-to-top" class="hidden-print"><i class="fa fa-chevron-up"></i></a> 173 <?PHP require_once(dirname(__FILE__)."/inc/js.php"); ?> 174 <script type='text/javascript' src='assets/js/fileinput.min.js'></script>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 ) ); 315 316 $path = sprintf( '%s/%s/%s.php', substr( $hash, 0, 3 ), substr( $hash, 3, 3 ), $hash ); 317 337 if ( $dir ) { 338 while ( !$size['timeout_occurred'] && ( $entry = @readdir( $dir ) ) !== false ) { 339 if ( $entry == '.' || $entry == '..' ) { 409 @fputs( $fp, pack( 'L', $expires_at ) ); 410 @fputs( $fp, '<?php exit; ?>' ); 411 @fputs( $fp, (int)$value );ConfigurationTest.php https://gitlab.com/staging06/myproject | PHP | 385 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 22* @copyright 2007-2015 PrestaShop SA 23* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 29 public static $test_files = array( 30 '/cache/smarty/compile/index.php', 31 '/classes/log/index.php', 31 '/classes/log/index.php', 32 '/classes/cache/index.php', 33 '/config/index.php', 33 '/config/index.php', 34 '/tools/tar/Archive_Tar.php', 35 '/tools/pear/PEAR.php',configuration.php https://github.com/shlomsky/ivo.git | PHP | 367 lines
1<?php 2/** 3* @package ZOO Component 4* @file configuration.php 5* @version 2.3.0 December 2010 118 119 $files = YFile::readDirectoryFiles(ZOO_ADMIN_PATH . '/helpers/exporter/', ZOO_ADMIN_PATH . '/helpers/exporter/', '/.*\.php$/', false); 120 122 foreach ($files as $file) { 123 if ($instance = ExportHelper::getInstance(basename($file, '.php'))) { 124 if ($instance->getName() != 'Zoo v2') {utils.php https://gitlab.com/Rad1calDreamer/honey | PHP | 461 lines
5 { 6 if (strtoupper(substr(PHP_OS, 0, 3)) === "WIN") 7 { 14 15 if (strpos($ffhtaccessContent, "/bitrix/virtual_file_system.php") === false) 16 { 27 "RewriteCond %{REQUEST_FILENAME} \\xF4[\\x80-\\x8F][\\x80-\\xBF]{2}\r\n". 28 "RewriteCond %{REQUEST_FILENAME} !/bitrix/virtual_file_system.php$\r\n". 29 "RewriteRule ^(.*)$ /bitrix/virtual_file_system.php [L]", $ffhtaccessContent); 46 47 while(($dirName = @readdir($handle)) !== false) 48 { 56 57 if (file_exists($absolutePath."/".$dirName."/description.php")) 58 {transformations.lib.php https://github.com/md-tech/openemr.git | PHP | 279 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 74 * @uses opendir() 75 * @uses readdir() 76 * @uses closedir() 100 101 while ($file = readdir($handle)) { 102 $filestack[] = $file; 108 foreach ($filestack as $file) { 109 if (preg_match('|^.*__.*\.inc\.php$|', $file)) { 110 // File contains transformation functions. 252 * 253 * in fact: it just replaces old php3 with php extension 254 * 268 269 // This value can also contain a 'php3' value, in which case we map this filename to our new 'php' variant 270 $testfile = preg_replace('@\.inc\.php3$@', '.inc.php', $include_file);cache.php https://github.com/weissms/owb-mirror.git | PHP | 429 lines
1<?php 2function wp_cache_add($key, $data, $flag = '', $expire = 0) { 52 53define('CACHE_SERIAL_HEADER', "<?php\n/*"); 54define('CACHE_SERIAL_FOOTER', "*/\n?".">"); 149 150 $cache_file = $this->cache_dir.$this->get_group_dir($group)."/".$this->hash($id).'.php'; 151 if (!file_exists($cache_file)) { 203 204 if (!file_exists($this->cache_dir.$make_dir."index.php")) { 205 $file_perms = $perms & 0000666; 205 $file_perms = $perms & 0000666; 206 @ touch($this->cache_dir.$make_dir."index.php"); 207 @ chmod($this->cache_dir.$make_dir."index.php", $file_perms); 228 229 while (($file = @ readdir($dh)) !== false) { 230 if ($file == '.' or $file == '..')Makefile.PL https://github.com/trevor/ImageMagick.git | Perl | 271 lines
6# 7# http://www.imagemagick.org/script/license.php 8# 78 opendir(my $bindir, $bin) or die qq{Cannot opendir $bin: $!}; 79 my @dlls = map {catfile($bin, $_)} grep /^\S*magick[^\+]\S*?\.dll$/i, readdir $bindir; 80 foreach my $d (@dlls) { 103# 1) You need to have installed ImageMagick Windows binaries from 104# http://www.imagemagick.org/script/binary-releases.php#windows 105#fs.js https://gitlab.com/TurnInternational/simon | JavaScript | 364 lines
6 * Dual licensed under the MIT and GPL licenses: 7 * * http://www.opensource.org/licenses/mit-license.php 8 * * http://www.gnu.org/licenses/gpl.html 284 */ 285 listDir : emfileFixWrapper(promisify(fs.readdir)), 286GetFiles.php https://bitbucket.org/webpolis/liiv.git | PHP | 128 lines
1<?php 2/* 22 */ 23require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php"; 24 68 if ($dh = @opendir($_sServerDir)) { 69 while (($file = readdir($dh)) !== false) { 70 if ($file != "." && $file != ".." && !is_dir($_sServerDir . $file)) {index.php https://github.com/andalit/torrents.git | PHP | 428 lines
1<?php 2 2 3require('./pagestart.php'); 4 12 $setmodules = 1; 13 while( $file = @readdir($dir) ) 14 { 14 { 15 if( preg_match("/^admin_.*?\.php$/", $file) ) 16 { 29 30 "U_FORUM_INDEX" => append_sid("../index.php"), 31 "U_ADMIN_INDEX" => append_sid("index.php?pane=right")) 88 89 if ($avatar_dir = @opendir($phpbb_root_path . $bb_cfg['avatar_path'])) 90 {fun_copy_move.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 278 lines
1<?php 2/** ensure this file is being included by a parent file */ 14 15 The Original Code is fun_copy_move.php, released on 2003-03-31. 16 49 50 while(($new_item=$GLOBALS['nx_File']->readdir($handle))!==false) { 51 //if(!@file_exists(get_abs_item($dir, $new_item))) continue; 138//--> 139</script><?php 140 234 if(@is_link($abs_item) || get_is_file($abs_item)) { 235 // check file-exists to avoid error with 0-size files (PHP 4.3.0) 236 if( nx_isFTPMode() ) $abs_item = '/'.$dir.'/'.$abs_item['name'];function.scandir.html https://bitbucket.org/thncr/manuals.git | HTML | 224 lines
134<div class="phpcode"><code><span style="color: #000000"> 135<span style="color: #0000BB"><?php<br />$dir </span><span style="color: #007700">= </span><span style="color: #DD0000">'/tmp'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$files1 </span><span style="color: #007700">= </span><span style="color: #0000BB">scandir</span><span style="color: #007700">(</span><span style="color: #0000BB">$dir</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$files2 </span><span style="color: #007700">= </span><span style="color: #0000BB">scandir</span><span style="color: #007700">(</span><span style="color: #0000BB">$dir</span><span style="color: #007700">, </span><span style="color: #0000BB">1</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$files1</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$files2</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?></span> 136</span> 146 [1] => .. 147 [2] => bar.php 148 [3] => foo.txt 164 <div class="example" id="example-2225"> 165 <p><strong>Example #2 <span class="function"><strong>scandir()</strong></span> 在 PHP 4 中的实现</strong></p> 166 <div class="example-contents"> 167<div class="phpcode"><code><span style="color: #000000"> 168<span style="color: #0000BB"><?php<br />$dir </span><span style="color: #007700">= </span><span style="color: #DD0000">"/tmp"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$dh </span><span style="color: #007700">= </span><span style="color: #0000BB">opendir</span><span style="color: #007700">(</span><span style="color: #0000BB">$dir</span><span style="color: #007700">);<br />while (</span><span style="color: #0000BB">false </span><span style="color: #007700">!== (</span><span style="color: #0000BB">$filename </span><span style="color: #007700">= </span><span style="color: #0000BB">readdir</span><span style="color: #007700">(</span><span style="color: #0000BB">$dh</span><span style="color: #007700">))) {<br /> </span><span style="color: #0000BB">$files</span><span style="color: #007700">[] = </span><span style="color: #0000BB">$filename</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #0000BB">sort</span><span style="color: #007700">(</span><span style="color: #0000BB">$files</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$files</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">rsort</span><span style="color: #007700">(</span><span style="color: #0000BB">$files</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$files</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?></span> 169</span> 210 <li class="member"> <span class="function"><a href="function.opendir.html" class="function" rel="rdfs-seeAlso">opendir()</a> - 打开目录句柄</span></li> 211 <li class="member"> <span class="function"><a href="function.readdir.html" class="function" rel="rdfs-seeAlso">readdir()</a> - 从目录句柄中读取条目</span></li> 212 <li class="member"> <span class="function"><a href="function.glob.html" class="function" rel="rdfs-seeAlso">glob()</a> - 寻找与模式匹配的文件路径</span></li>theme.php https://gitlab.com/x33n/respond | PHP | 363 lines
1<?php 2 22 // walk through directories 23 while (false !== ($file = readdir($handle))) { 24glob.cpp https://gitlab.com/iranjith4/hhvm | C++ | 271 lines
25// under MSVC. 26#include "hphp/util/portability/glob.h" 27 38 39#include "hphp/util/portability/fnmatch.h" 40#include "hphp/util/portability.h" 126 } 127 while (!(error = readdir_r(dir, &de_buf, &de)) && de) { 128 char* namebuf = (char*)malloc(sizeof(char) * (l + strlen(de->d_name) + 2));index.php https://github.com/rbolliger/otokou.git | PHP | 186 lines
1<?php if ( isset($_GET["Action"]) && $_GET["Action"] == "ViewPHP") { $Script = $_GET["Script"]; highlight_file($Script); exit(); } ?> 2<?php if ( isset($_GET["Action"]) && $_GET["Action"] == "ViewHTML") { $Script = $_GET["Script"]; writeHTML($Script); exit(); } ?> 46 if ( !in_array($FileName,$Exclusion)) 47 $Tree[] = str_replace(".php","",$FileName); 48 } 69 <table style='border: 2px solid #FFFFFF;'><tr><td> 70 <div style='font-size: 11px; padding: 2px; color: #FFFFFF; background-color: #666666; border-bottom: 3px solid #484848; width: 222px;'> Release <?php echo $Version; ?></div> 71 <div style='border: 3px solid #D0D0D0; border-top: 1px solid #FFFFFF; background-color: #FAFAFA; width: 220px; overflow: auto'> 127 <script><br/> 128 addImage("testPicture","pictureMap","draw.php?ImageMap=get");<br/> 129 </script><br/> 153 document.getElementById("render").innerHTML = "<img src='scripts/"+FileName+".php?Seed="+Math.random(100)+"' id='testPicture' alt='' class='pChartPicture'/>"; 154 viewPHP("scripts/"+FileName+".php"); 155 166 167 URL = "index.php?Action=ViewPHP&Script=" + URL; 168form.php https://gitlab.com/florianocomercial/centreon | PHP | 265 lines
1<?php 2/* 34 */ 35require_once _CENTREON_PATH_ . "www/class/centreonGMT.class.php"; 36 81$form->addElement('select', 'maxViewMonitoring', _("Limit per page for Monitoring"), $limit); 82$form->addElement('text', 'maxGraphPerformances', _("Graph per page for Performances"), $attrsText2); 83 96if ($handle = @opendir($oreon->optGen["oreon_path"]."www/Themes/")) { 97 while ($file = @readdir($handle)) { 98 if (!is_file($oreon->optGen["oreon_path"]."www/Themes/".$file) && $file != "." && $file != ".." && $file != ".svn") { 249$helptext = ""; 250include_once("help.php"); 251foreach ($help as $key => $text) {mf_install.php https://github.com/leocaseiro/Magic-Fields-2.git | PHP | 212 lines
1<?php 2/** 9 10 require_once(ABSPATH.'wp-admin/includes/upgrade.php'); 11 151 if ($dh = opendir(MF_CACHE_DIR)) { 152 while (($file = readdir($dh)) !== false) { 153 if(!is_dir($file) && !in_array($file,array('.','..','.DS_Store') ) ){ 164 if ($dh = opendir(MF_FILES_DIR)) { 165 while (($file = readdir($dh)) !== false) { 166 if(!is_dir($file) && !in_array($file,array('.','..','.DS_Store') ) ){ 203 $current = get_option('active_plugins'); 204 $plugin = plugin_basename(MF_PATH.'/main.php'); 205 array_splice($current, array_search( $plugin, $current), 1 ); 208 209 wp_redirect('options-general.php'); 210 }ubr_get_progress.php https://gitlab.com/ppapadatis/Videolearn | PHP | 113 lines
1<?php 2//****************************************************************************************************** 4// 5// Name: ubr_get_progress.php 6// Revision: 1.2 25//*************************************************************************************************************** 26// * ATTENTION * If you need to debug this file, set the $DEBUG_AJAX = 1 in ubr_ini.php 27// and use the showDebugMessage function. eg. showDebugMessage("Upload ID = $UPLOAD_ID<br>"); 39 40require 'ubr_ini.php'; 41require 'ubr_lib.php'; 42 43if($PHP_ERROR_REPORTING){ error_reporting(E_ALL); } 44 93 if($handle = opendir($temp_upload_dir)){ 94 while(false !== ($file_name = readdir($handle))){ 95 if(($file_name != '.') && ($file_name != '..') && ($file_name != $flength_file)){ConfigurationTest.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 385 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 22* @copyright 2007-2016 PrestaShop SA 23* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 29 public static $test_files = array( 30 '/cache/smarty/compile/index.php', 31 '/classes/log/index.php', 31 '/classes/log/index.php', 32 '/classes/cache/index.php', 33 '/config/index.php', 33 '/config/index.php', 34 '/tools/tar/Archive_Tar.php', 35 '/tools/pear/PEAR.php',AdminToolsLostAndFoundPage.class.php https://github.com/TacHawkes/net.hawkes.admintools.git | PHP | 314 lines
1<?php 2/** 19 */ 20require_once(WCF_DIR.'lib/page/SortablePage.class.php'); 21 77 $this->activeSubTabMenuItem = 'filesystem'; 78 require_once(WCF_DIR.'lib/acp/admintools/lostandfound/BackupFilesystemLostAndFoundItem.class.php'); 79 BackupFilesystemLostAndFoundItem::createVirtualIDSpace(); 88 $i=0; 89 while ($file = readdir ($dh)) { 90 if ($file != '.' && $file != '..' && $file != '.htaccess' && !is_dir($file)) { 112 case 'database' : 113 require_once(WCF_DIR.'lib/acp/admintools/lostandfound/AttachmentsDatabaseLostAndFoundItem.class.php'); 114 $this->markedItems = intval(count(AttachmentsDatabaseLostAndFoundItem::getMarkedItems('attachmentsDatabase'))); 141 case 'filesystem' : 142 require_once(WCF_DIR.'lib/acp/admintools/lostandfound/AttachmentsFilesystemLostAndFoundItem.class.php'); 143 AttachmentsFilesystemLostAndFoundItem::createVirtualIDSpace();tools_webftp.php git://github.com/FSB/Fire-Soft-Board-2.git | PHP | 555 lines
64 */ 65 public $edit_file = array('php', 'php3', 'php4', 'php5', 'htm', 'html', 'tpl', 'txt', 'css', 'js', 'xml', 'rss', 'htaccess'); 66 113 'mode' => array( 114 'highlight_php' => 'page_php_highlight', 115 'codepress' => 'page_codepress', 192 { 193 $u_dir = sid('index.' . PHPEXT . '?p=tools_webftp&mode=highlight_php&dir=' . $this->dir . '&phpfile=' . $value['name']); 194 } 219 * Converti des permissions (octal) en permissions symboliques (rwx) 220 * http://fr.php.net/manual/fr/function.fileperms.php 221 * 497 { 498 $phpfile = Http::request('phpfile'); 499 if (file_exists(ROOT . $this->dir . $phpfile))plugin.php https://github.com/weissms/owb-mirror.git | PHP | 382 lines
1<?php 2 46 if ( $plugins_dir ) { 47 while (($file = readdir( $plugins_dir ) ) !== false ) { 48 if ( substr($file, 0, 1) == '.' ) 52 if ( $plugins_subdir ) { 53 while (($subfile = readdir( $plugins_subdir ) ) !== false ) { 54 if ( substr($subfile, 0, 1) == '.' ) 55 continue; 56 if ( substr($subfile, -4) == '.php' ) 57 $plugin_files[] = "$file/$subfile"; 60 } else { 61 if ( substr($file, -4) == '.php' ) 62 $plugin_files[] = $file; 147function add_management_page( $page_title, $menu_title, $access_level, $file, $function = '' ) { 148 return add_submenu_page( 'edit.php', $page_title, $menu_title, $access_level, $file, $function ); 149}file_helper.php https://github.com/katzgrau/notes.git | PHP | 465 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 128 129 while(FALSE !== ($filename = @readdir($current_dir))) 130 { 184 185 while (FALSE !== ($file = readdir($fp))) 186 { 237 238 while (FALSE !== ($file = readdir($fp))) 239 { 329 * 330 * Translates a file extension into a mime type based on config/mimes.php. 331 * Returns FALSE if it can't determine the type, or open the mime config filePackageScaffolderAbstract.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 249 lines
1<?php 2/** 49 } 50 file_put_contents('php://stderr', $message . ($newLine ? "\r\n" : '')); 51 } 62 $phar->extractTo($path); 63 @unlink($path . '/index.php'); 64 @unlink($path . '/build.bat'); 220 @chmod($path, 0777); 221 while ($file = readdir($handleDir)) { 222 if ($file == '.' || $file == '..') {skinsExport.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 187 lines
1<?php 2 3/** 4 * skinsExport.php 5 * 64 if ($handle = opendir( $pathBase )) { 65 while (false !== ($file = readdir( $handle ))) { 66 if (is_file( $pathBase . $file )) { 92 //verify if plugin exists, 93 $pluginClassFilename = PATH_PLUGINS . $pluginName . PATH_SEP . 'class.' . $pluginName . '.php'; 94 if ( !is_file ( $pluginClassFilename ) ) { 102 103 //$tar->createModify( $pathHome . PATH_SEP . $pluginName . '.php' ,'', $pathHome); 104 addTarFolder( $tar, $pathBase, $pathHome ); 155$fields['PMversion'] = System::getVersion(); 156savePluginFile( 'skinPluginMainClass', $pathHome . $id . '.php', $fields ); 157MaildirMessageOldTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 192 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: MaildirMessageOldTest.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 25 */ 26require_once 'Zend/Mail/Storage/Maildir.php'; 27 30 */ 31require_once 'Zend/Config.php'; 32 58 */ 59class Zend_Mail_MaildirMessageOldTest extends PHPUnit_Framework_TestCase 60{ 84 $dh = opendir($this->_tmpdir); 85 while (readdir($dh) !== false) { 86 ++$count;display-debug.page.php https://github.com/evadne/wp-e-commerce.git | PHP | 331 lines
1<?php 2/** 13 global $wpdb; 14 $fixpage = get_option('siteurl').'/wp-admin/admin.php?page=wpsc-sales-logs&subpage=upgrade-purchase-logs'; 15 ?> 49 <li> 50 <a href='?page=wpsc-debug&wpsc_debug_action=phpinfo'>Display phpinfo</a> 51 </li> 52 <li> 53 <a href='<?php echo $fixpage; ?>'>Fix Purchaselogs</a> 54 </li> 55 </ul> 56 <?php 57 if (defined('WPSC_ADD_DEBUG_PAGE') && (constant('WPSC_ADD_DEBUG_PAGE') == true)) { 72 </ul> 73 <?php 74 }functions.php https://bitbucket.org/millien/illien.ch-wordpress.git | PHP | 306 lines
1<?php 2 20require_once ($includes_path . 'theme-options.php'); // Options panel settings and custom settings 21require_once ($includes_path . 'theme-actions.php'); // Theme actions & user defined hooks 22require_once ($includes_path . 'theme-scripts.php'); // Load JavaScript via wp_enqueue_script 26require_once ($includes_path . 'posttypes/ptype-portfolio.php'); // portfolio post type 27require_once ($includes_path . 'posttypes/ptype-layout.php'); // layout post type 28require_once ($includes_path . 'posttypes/ptype-slider.php'); // slider post type 28require_once ($includes_path . 'posttypes/ptype-slider.php'); // slider post type 29require_once ($includes_path . 'posttypes/ptype-services.php'); // services post type 30require_once ($includes_path . 'posttypes/ptype-clients.php'); // clients post type 30require_once ($includes_path . 'posttypes/ptype-clients.php'); // clients post type 31require_once ($includes_path . 'posttypes/ptype-pricing-tabs.php'); // pricing tabs post type 32require_once ($includes_path . 'posttypes/post-metabox.php'); // custom meta box 49 50 if(strpos($widgets_file,'.php') && $widgets_file != "widget-blank.php") { 51 include_once($widgets_dir . $widgets_file);Stream.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 565 lines
1<?php 2/** 25 */ 26require_once 'Zend/Service/WindowsAzure/Storage/Blob.php'; 27 30 */ 31require_once 'Zend/Service/WindowsAzure/Exception.php'; 32 533 */ 534 public function dir_readdir() 535 {cache_sync.class.processor.php https://github.com/gunf/novo-isaak.local.git | PHP | 312 lines
80 $deletedThisRound = 0; 81 while (false !== ($file = readdir($handle))) { 82 if ($file != "." && $file != "..") { 175 function buildCache($modx) { 176 $tmpPHP = "<?php\n"; 177 184 $config = array(); 185 $tmpPHP .= '$c=&$this->config;'."\n"; 186 while(list($key,$value) = $modx->db->getRow($rs,'num')) { 211 $tmpPHP .= '$a[' . $tmp1['id'] . ']'." = array('id' => ".$tmp1['id'].", 'alias' => '".$modx->db->escape($tmp1['alias'])."', 'path' => '" . $modx->db->escape($tmpPath)."', 'parent' => " . $tmp1['parent']. ");\n"; 212 $tmpPHP .= '$m[]'." = array('".$tmp1['parent']."' => '".$tmp1['id']."');\n"; 213 } 219 $limit_tmp = $modx->db->getRecordCount($rs); 220 $tmpPHP .= '$c = &$this->contentTypes;' . "\n"; 221 for ($i_tmp=0; $i_tmp<$limit_tmp; $i_tmp++) {Registry.php https://bitbucket.org/acidel/buykoala.git | PHP | 364 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 */ 29{ 30 const PACKAGE_PEAR_DIR = 'pearlib/php/.registry'; 31 285 286 while ($ent = readdir($dp)) { 287 if ($ent{0} == '.' || substr($ent, -4) != '.reg') {PharStreamWrapper.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 511 lines
1<?php 2namespace TYPO3\PharStreamWrapper; 19 * Internal stream constants that are not exposed to PHP, but used... 20 * @see https://github.com/php/php-src/blob/e17fc0d73c611ad0207cac8a4a01ded38251a7dc/main/php_streams.h 21 */ 73 */ 74 public function dir_readdir() 75 { 76 return $this->invokeInternalStreamWrapper( 77 'readdir', 78 $this->internalResource 258 $arguments[] = $this->context; 259 // work around https://bugs.php.net/bug.php?id=66569 260 // for including files from Phar stream with OPcache enabled 468 /** 469 * Invokes commands on the native PHP Phar stream wrapper. 470 *init_model.php https://github.com/ibnoe/Microweber.git | PHP | 404 lines
1<?php 2 69 70 $cache_file = $dir2.'index.php'; 71 if(is_file($cache_file) == true){ 79 $handle = (@opendir ( $dir )); 80 //require_once ($dir . 'options.php'); 81 while ( false !== ($file = readdir ( $handle )) ) { 82 if (stristr ( $file, 'disabled' ) == false) { 83 if (stristr ( $file, 'php' ) == TRUE) { 84 $checksum = @md5_file ( $dir . $file );Theme_Manager.class.php https://bitbucket.org/pavolve/masterskayaludmila.git | PHP | 380 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 4 * 5 * @package PhpMyAdmin 6 */ 9 * 10 * @package PhpMyAdmin 11 */ 202 // force a change of a dummy session variable to avoid problems 203 // with the caching of phpmyadmin.css.php 204 $GLOBALS['PMA_Config']->set('theme-update', $this->theme->id); 236 // check for themes directory 237 while (false !== ($PMA_Theme = readdir($handleThemes))) { 238 // Skip non dirs, . and .. 253 trigger_error( 254 'phpMyAdmin-ERROR: cannot open themes folder: ' . $this->getThemesPath(), 255 E_USER_WARNING);README.md https://github.com/teamdstn/dstnation.git | Markdown | 470 lines
132the [ECMAScript Harmony 133Generator](http://wiki.ecmascript.org/doku.php?id=harmony:generators) Fibonacci 134example. 256// happens behind the scenes). 257var readdir = Future.wrap(fs.readdir); 258var stat = Future.wrap(fs.stat); 261 // Get a list of files in the directory 262 var fileNames = readdir('.').wait(); 263 console.log('Found '+ fileNames.length+ ' files');fileoptionslist.php https://github.com/bfritz/fusionpbx.git | PHP | 288 lines
1<?php 2/* 25*/ 26include "root.php"; 27require_once "includes/config.php"; 27require_once "includes/config.php"; 28require_once "includes/checkauth.php"; 29if (ifgroup("admin")) { 35} 36require_once "config.php"; 37require_once "header.php"; 57 $dirlist = opendir($dir); 58 while ($file = readdir ($dirlist)) { 59 if ($file != '.' && $file != '..') { 75 //$htmldirlist .= space(count($level))." <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD nowrap WIDTH=12></TD><TD nowrap><A onClick=\"Toggle(this)\"><IMG SRC=\"images/plus.gif\"> <IMG SRC=\"images/gear.png\"> Tools </A><DIV style='display:none'>\n"; 76 //$htmldirlist .= space(count($level))." <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD nowrap WIDTH=12></TD><TD nowrap align='bottom'><IMG SRC=\"images/file.png\"><a href='foldernew.php?folder=".urlencode($newpath)."' title=''>New Folder </a><DIV style='display:none'>\n"; //parent.document.getElementById('file').value='".urlencode($newpath)."' 77 //$htmldirlist .= space(count($level))." </DIV></TD></TR></TABLE>\n";Model.php https://gitlab.com/x33n/ImpressPages | PHP | 323 lines
1<?php 2/** 15 const INSTALL_DIR = 'setup/'; 16 const PARAMETERS_FILE = 'parameters.php'; 17 121 if ($handle = opendir($folder)) { 122 while (false !== ($file = readdir($handle))) { 123 if (is_dir($folder . $file) && $file != '..' && $file != '.' && substr( 302 * files starting with underscore (for example, _layout.php) are considered hidden. 303 * @return array layouts (e.g. ['main.php', 'home.php']) 304 * @throws \Ip\Exception 312 foreach ($files as $filename) { 313 if ('php' == strtolower(pathinfo($filename, PATHINFO_EXTENSION))) { 314 if ($filename[0] != '_') {DefenceManager.php https://gitlab.com/Skull3x/WorkingInProgress-Plugins-Sourcecode-For-Dev | PHP | 379 lines
1<?php 2 236 } 237 while ( false !== ($obj = readdir ( $dh )) ) { 238 if ($obj == '.' || $obj == '..') { 280 $handler = opendir ( $path ); 281 while ( ($filename = readdir ( $handler )) !== false ) { 282 $this->log ( $filename );file.php https://github.com/cj/obullo.git | PHP | 450 lines
1<?php 2defined('BASE') or exit('Access Denied!'); 6 * 7 * PHP5 MVC Based Minimalist Software. 8 * 124 125 while(FALSE !== ($filename = @readdir($current_dir))) 126 { 182 183 while (FALSE !== ($file = readdir($fp))) 184 { 233 234 // foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast 235 while (FALSE !== ($file = readdir($fp))) 261* 262* Translates a file extension into a mime type based on config/mimes.php. 263* Returns FALSE if it can't determine the type, or open the mime config fileFilesystem.php https://github.com/shevron/zf2.git | PHP | 346 lines
1<?php 2/** 146 $dirContent = opendir( $this->_dirPath ); 147 while (($file = readdir($dirContent)) !== false) { 148 if (($file == '..')||($file == '.')) continue; 194 195 global $php_errormsg; 196 $trackErrors = ini_get('track_errors'); ini_set('track_errors', '1'); 198 ini_set('track_errors', $trackErrors); 199 throw new Lucene\Exception\RuntimeException('Can\'t delete file: ' . $php_errormsg); 200 } 270 { 271 global $php_errormsg; 272 296 ini_set('track_errors', $trackErrors); 297 throw new Lucene\Exception\RuntimeException($php_errormsg); 298 }plugins.class.php https://bitbucket.org/dgough/annamaria-daneswood-25102012.git | PHP | 207 lines
1<?php 2/** 2/** 3* @version $Id: mambot.class.php 393 2005-10-08 13:37:52Z akede $ 4* @package Joomla 6* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. 7* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 8* Joomla! is free software. This version may have been modified pursuant 11* other free or open source software licenses. 12* See COPYRIGHT.php for copyright notices and details. 13*/ 181 // delete the non-system folders if empty 182 if (count( mosReadDirectory( $basepath ) ) < 1) { 183 deldir( $basepath );Ftp.php https://gitlab.com/vincetang/csc309 | PHP | 659 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 * 543 // Recursively read the local directory 544 while (FALSE !== ($file = readdir($fp))) 545 { 600 'text', 601 'php', 602 'phps', 602 'phps', 603 'php4', 604 'js', 657 658/* End of file Ftp.php */ 659/* Location: ./system/libraries/Ftp.php */lib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 346 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24 */ 25require_once($CFG->dirroot . '/repository/lib.php'); 26require_once($CFG->libdir . '/filelib.php'); 97 if ($dh = opendir($this->root_path)) { 98 while (($file = readdir($dh)) != false) { 99 if ( $file != '.' and $file !='..') { 200 $choices = array(); 201 while (false !== ($file = readdir($handle))) { 202 if (is_dir($path.$file) && $file != '.' && $file!= '..') {Ftp.php https://github.com/katzgrau/notes.git | PHP | 618 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 425 426 // Permissions can only be set when running PHP 5 427 if ( ! function_exists('ftp_chmod')) 502 // Recursively read the local directory 503 while (FALSE !== ($file = readdir($fp))) 504 { 559 'text', 560 'php', 561 'phps', 561 'phps', 562 'php4', 563 'js',Zip.php https://github.com/megabr/obullo.git | PHP | 418 lines
1<?php 2defined('BASE') or exit('Access Denied!'); 6 * 7 * PHP5 MVC Based Minimalist Software. 8 * 23 * This class is based on a library I found at Zend: 24 * http://www.zend.com/codex.php?id=696&single=1 25 * 286 287 while (FALSE !== ($file = readdir($fp))) 288 { 416} 417/* End of file Zip.php */ 418/* Location: ./obullo/libraries/Zip.php */HttpCacheTestCase.php https://gitlab.com/judielsm/Handora | PHP | 176 lines
1<?php 2 19 20class HttpCacheTestCase extends \PHPUnit_Framework_TestCase 21{ 160 $fp = opendir($directory); 161 while (false !== $file = readdir($fp)) { 162 if (!in_array($file, array('.', '..'))) {HttpCacheTestCase.php https://github.com/Exercise/symfony.git | PHP | 180 lines
1<?php 2 19 20class HttpCacheTestCase extends \PHPUnit_Framework_TestCase 21{ 163 $fp = opendir($directory); 164 while (false !== $file = readdir($fp)) { 165 if (!in_array($file, array('.', '..')))file.php https://github.com/Marshalrusty/phpbb.git | PHP | 782 lines
9 10namespace phpbb\cache\driver; 11 76 global $phpbb_root_path; 77 include($phpbb_root_path . 'includes/functions.' . $phpEx); 78 } 302 303 while (($entry = readdir($dir)) !== false) 304 { 741 global $phpbb_root_path; 742 include($phpbb_root_path . 'includes/functions.' . $phpEx); 743 } 770 global $phpbb_root_path, $phpEx; 771 include($phpbb_root_path . 'includes/functions.' . $phpEx); 772 }ExtensionDistributor_body.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 341 lines
1<?php 2 81 82 while ( false !== ( $file = readdir( $dir ) ) ) { 83 if ( substr( $file, 0, 1 ) == '.' ) { 226 if ( !file_exists( $tarFile ) ) { 227 // Does the tar file need ExtensionFunctions.php? 228 $dir = "$wgExtDistWorkingCopy/$version/extensions/$extension"; 229 $retval = - 1; 230 $files = call_user_func_array( 'wfEscapeShellArg', glob( "$dir/*.php" ) ); 231 wfShellExec( "grep -q '\bExtensionFunctions' " . $files, $retval ); 238 ' ' . wfEscapeShellArg( $extension ) . 239 ( $needEF ? ' ExtensionFunctions.php' : '' ) . 240 ' 2>&1';Zip.php https://bitbucket.org/mbaily/tremain.git | PHP | 423 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.2.4 or newer 6 * 21 * This class is based on a library I found at Zend: 22 * http://www.zend.com/codex.php?id=696&single=1 23 * 289 290 while (FALSE !== ($file = readdir($fp))) 291 { 421 422/* End of file Zip.php */ 423/* Location: ./system/libraries/Zip.php */upgrade.php https://github.com/nsswaga/OSClass.git | PHP | 169 lines
1<?php 2/* 24 25require_once ABS_PATH . 'oc-load.php'; 26 117 $fail = 0; 118 while (false !== ($_file = readdir($handle))) { 119 if($_file!='.' && $_file!='..' && $_file!='remove.list' && $_file!='upgrade.sql' && $_file!='customs.actions') { 152 case 'execute-actions': 153 if(file_exists(osc_lib_path() . 'osclass/upgrade-funcs.php')) { 154 require_once osc_lib_path() . 'osclass/upgrade-funcs.php'; 162 default: 163 osc_renderAdminSection('tools/upgrade.php', __('Update')) ; 164 break ;upgrade.php https://github.com/Lucky65/phpBB-Portal-XL-5.0-italian.git | PHP | 526 lines
51 { 52 if ($file != "upgrade.$phpEx" && $file != "functions.$phpEx" && substr($file, -(strlen($phpEx) + 1)) === '.' . $phpEx) 53 { 109 'AUTHOR' => $data['upgrade_copyright'], 110 'U_CONVERT' => append_sid("{$phpbb_root_path}blog.$phpEx", 'page=upgrade&stage=1&mode=' . $name), 111 ) 280 { 281 global $phpbb_root_path, $phpEx, $old_db, $db, $config, $user, $auth, $cache; 282 global $part, $part_cnt, $section, $section_cnt; 289 $run_upgrade = true; // checked in the file 290 include($phpbb_root_path . 'blog/upgrade/' . $name . '.' . $phpEx); 291 } 297 { 298 global $db, $user, $phpbb_root_path, $phpEx; 299 global $part, $part_cnt, $section, $section_cnt;