PageRenderTime 2645ms queryTime 368ms sortTime 31ms getByIdsTime 1400ms findMatchingLines 529ms

100+ results results for 'php readdir repo:p13t3rm/wpaustralia' (2645 ms)

Not the results you expected?
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 *
                    
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 file
                    
                
FAQ.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>
                    
                
function_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' => '');
                    
                
Filesystem.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');
                    
                
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/yousafsyed/easternglamor | 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');
                    
                
upload.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' );
                    
197
                    
                
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 ='';
                    
                
Filesystem.php https://gitlab.com/luisrepo/ClienteWS | 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;
                    
                
MaildirFolderTest.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;
                    
                
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    }
                    
                
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 == '.')) {
                    
                
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)) {
                    
                
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.'&amp;getdate='.$today.'">'.$lang['l_goday'].'</option>';
                    
9	$return .= '<option value="week.php?cal='.$calName.'&amp;getdate='.$today.'">'.$lang['l_goweek'].'</option>';
                    
9	$return .= '<option value="week.php?cal='.$calName.'&amp;getdate='.$today.'">'.$lang['l_goweek'].'</option>';
                    
10	$return .= '<option value="month.php?cal='.$calName.'&amp;getdate='.$today.'">'.$lang['l_gomonth'].'</option>';
                    
11	$return .= '<option value="year.php?cal='.$calName.'&amp;getdate='.$today.'">'.$lang['l_goyear'].'</option>';
                    
15function list_calcolors() {
                    
16	global $phpiCal_config, $master_array;
                    
17	$return = '';
                    
                
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)) {
                    
                
list.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	:   {
                    
                
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>
                    
                
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');
                    
                
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',
                    
                
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			{
                    
                
Stream.php https://gitlab.com/luisrepo/ClienteWS | 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    {
                    
                
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)),
                    
286
                    
                
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'];
                    
                
commands.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | 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	{
                    
                
theme.php https://gitlab.com/x33n/respond | PHP | 363 lines
                    
1<?php
                    
2
                    
22		    // walk through directories
                    
23		    while (false !== ($file = readdir($handle))) {
                    
24		    
                    
                
glob.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));
                    
                
form.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) {
                    
                
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',
                    
                
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&amp;mode=highlight_php&amp;dir=' . $this->dir . '&amp;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))
                    
                
Filesystem.php https://github.com/csinitiative/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;
                    
                
PackageScaffolderAbstract.php https://gitlab.com/fabiorf/curso-zend1-aula1 | 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 == '..') {
                    
                
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     *
                    
                
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 );
                    
                
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 */
                    
                
HttpCacheTestCase.php https://gitlab.com/fabian.morales/marlon_becerra | 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('.', '..'))) {
                    
                
superfish-widget.php https://gitlab.com/Gashler/sg | PHP | 271 lines
                    
60					<?php if('on' == $home){ ?>						
                    
61						<li class="page_item cat-item blogtab <?php if ( is_front_page() && !is_paged() ){ ?>current_page_item current-cat<?php } ?>"><a href="<?php echo get_option('home'); ?>/"><span><?php _e('Home', 'shailan-sf-dropdown'); ?></span></a></li>	
                    
62					<?php } ?>
                    
118			
                    
119		<p><?php _e('Type:'); ?> <label for="Pages"><input type="radio" id="Pages" name="<?php echo $this->get_field_name('type'); ?>" value="Pages" <?php if($type=='Pages'){ echo 'checked="checked"'; } ?> /> <?php _e('Pages', 'shailan-sf-dropdown'); ?></label> <label for="Categories"><input type="radio" id="Categories" name="<?php echo $this->get_field_name('type'); ?>" value="Categories" <?php if($type=='Categories'){ echo 'checked="checked"'; } ?>/> <?php _e('Categories', 'shailan-sf-dropdown'); ?></label></p>
                    
120			
                    
129	
                    
130		<p><label for="<?php echo $this->get_field_id('exclude'); ?>"><?php _e('Exclude:', 'shailan-sf-dropdown'); ?> <input class="widefat" id="<?php echo $this->get_field_id('exclude'); ?>" name="<?php echo $this->get_field_name('exclude'); ?>" type="text" value="<?php echo $exclude; ?>" /></label><br /> 
                    
131		<small>Page IDs, separated by commas.</small></p>
                    
170		
                    
171		<p><label for="<?php echo $this->get_field_id('min_width'); ?>"><?php _e('Minimum Width:', 'shailan-sf-dropdown'); ?> <input id="<?php echo $this->get_field_id('min_width'); ?>" name="<?php echo $this->get_field_name('min_width'); ?>" type="text" value="<?php echo $min_width; ?>" size="6" />em</label><br /> 
                    
172		<small>Minimum width of sub menus.</small></p>
                    
173		
                    
174		<p><label for="<?php echo $this->get_field_id('max_width'); ?>"><?php _e('Maximum width:', 'shailan-sf-dropdown'); ?> <input id="<?php echo $this->get_field_id('max_width'); ?>" name="<?php echo $this->get_field_name('max_width'); ?>" type="text" value="<?php echo $max_width; ?>" size="6" />em</label><br /> 
                    
175		<small>Maximum width of sub menus.</small></p>
                    
                
utilscontroller.php https://gitlab.com/eneiluj/gpxedit-oc | PHP | 371 lines
                    
1<?php
                    
2/**
                    
35    $dh = opendir($path);
                    
36    while (($file = readdir($dh)) !== false) {
                    
37        if (substr($file, 0, 1) === '.') continue;
                    
                
WinFsStreamWrapper.php https://gitlab.com/oytunistrator/92five | PHP | 400 lines
                    
1<?php // vi: set fenc=utf-8 ts=4 sw=4 et:
                    
2/*
                    
18 *
                    
19 * See also https://code.google.com/p/php-wfio/ for a PHP extension
                    
20 * and comments on http://www.rooftopsolutions.nl/blog/filesystem-encoding-and-php
                    
94
                    
95    function dir_readdir()
                    
96    {
                    
                
DirectoryIterator.php https://gitlab.com/iranjith4/hhvm | PHP | 163 lines
                    
4/**
                    
5 * ( excerpt from http://php.net/manual/en/class.directoryiterator.php )
                    
6 *
                    
18  /**
                    
19   * ( excerpt from http://php.net/manual/en/directoryiterator.construct.php
                    
20   * )
                    
66  /**
                    
67   * ( excerpt from http://php.net/manual/en/directoryiterator.next.php )
                    
68   *
                    
123  /**
                    
124   * ( excerpt from http://php.net/manual/en/directoryiterator.valid.php )
                    
125   *
                    
136  /**
                    
137   * ( excerpt from http://php.net/manual/en/directoryiterator.isdot.php )
                    
138   *
                    
                
file_helper.php https://gitlab.com/strongpapazola/gempabmkg | PHP | 454 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
60	 * @todo	Remove in version 3.1+.
                    
61	 * @deprecated	3.0.0	It is now just an alias for PHP's native file_get_contents().
                    
62	 * @param	string	$file	Path to file
                    
137
                    
138		while (FALSE !== ($filename = @readdir($current_dir)))
                    
139		{
                    
147				}
                    
148				elseif ($htdocs !== TRUE OR ! preg_match('/^(\.htaccess|index\.(html|htm|php)|web\.config)$/i', $filename))
                    
149				{
                    
190
                    
191			while (FALSE !== ($file = readdir($fp)))
                    
192			{
                    
                
display-debug.page.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 355 lines
                    
1<?php
                    
2/**
                    
13	global $wpdb;
                    
14	$fixpage = get_option('siteurl').'/wp-admin/admin.php?page=wpsc-sales-logs&amp;subpage=upgrade-purchase-logs';
                    
15	?>
                    
49			<li>
                    
50				<a href='?page=wpsc-debug&amp;wpsc_debug_action=phpinfo'>Display phpinfo</a>
                    
51			</li>
                    
58			<li>
                    
59				<a href='<?php echo $fixpage; ?>'>Fix Purchaselogs</a>
                    
60			</li>
                    
61		</ul>
                    
62		<?php
                    
63		if (defined('WPSC_ADD_DEBUG_PAGE') && (constant('WPSC_ADD_DEBUG_PAGE') == true)) {
                    
82			</ul>
                    
83			<?php
                    
84		}
                    
                
logout.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 204 lines
                    
1<?php
                    
2
                    
6
                    
7require_once("../../config.php");
                    
8
                    
8
                    
9require_once($CFG->dirroot."/auth/shibboleth/auth.php");
                    
10
                    
25// Front channel logout.
                    
26$inputstream = file_get_contents("php://input");
                    
27if ($action == 'logout' && !empty($redirect)) {
                    
40    // Set SOAP header.
                    
41    $server = new SoapServer($protocol.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'/LogoutNotification.wsdl');
                    
42    $server->addFunction("LogoutNotification");
                    
113          <port name="LogoutNotificationPort" binding="notify:LogoutNotificationBinding">
                    
114            <soap:address location="{$protocol}{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}"/>
                    
115          </port>
                    
                
transformations.lib.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 209 lines
                    
1<?php
                    
2/* $Id: transformations.lib.php 8340 2006-01-19 15:39:29Z cybot_tm $ */
                    
42
                    
43    while (($file = readdir($handle)) != false) {
                    
44        $filestack[$file] = $file;
                    
52
                    
53            if (preg_match('|^.*__.*\.inc\.php$|', trim($file))) {
                    
54                // File contains transformation functions.
                    
54                // File contains transformation functions.
                    
55                $base = explode('__', str_replace('.inc.php', '', $file));
                    
56                $mimetype = str_replace('_', '/', $base[0]);
                    
61
                    
62            } elseif (preg_match('|^.*\.inc\.php$|', trim($file))) {
                    
63                // File is a plain mimetype, no functions.
                    
199
                    
200    // This value can also contain a 'php3' value, in which case we map this filename to our new 'php' variant
                    
201    $testfile = preg_replace('@\.inc\.php3$@', '.inc.php', $include_file);
                    
                
Stream.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 565 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://todo     name_todo
                    
20 * @version    $Id: Stream.php 24594 2012-01-05 21:27:01Z matthew $
                    
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    {
                    
                
MemoryFileSystem.js https://gitlab.com/ricky1477/twitter-clone | JavaScript | 225 lines
                    
1/*
                    
2	MIT License http://www.opensource.org/licenses/mit-license.php
                    
3	Author Tobias Koppers @sokra
                    
91
                    
92MemoryFileSystem.prototype.readdirSync = function(_path) {
                    
93	if(_path === "/") return Object.keys(this.data).filter(Boolean);
                    
102		if(isFile(current[path[i]]))
                    
103			throw new Error("Cannot readdir on file '" + _path + "'");
                    
104		else
                    
189
                    
190["stat", "readdir", "mkdirp", "mkdir", "rmdir", "unlink", "readlink"].forEach(function(fn) {
                    
191	MemoryFileSystem.prototype[fn] = function(path, callback) {
                    
                
CLocale.php https://gitlab.com/muthuvel.ns/imp-file | PHP | 470 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);
                    
99		$dataPath=self::$dataPath===null ? dirname(__FILE__).DIRECTORY_SEPARATOR.'data' : self::$dataPath;
                    
100		$dataFile=$dataPath.DIRECTORY_SEPARATOR.$this->_id.'.php';
                    
101		if(is_file($dataFile))
                    
                
PhpThumb.inc.php https://gitlab.com/julienv/joomleague | PHP | 247 lines
                    
2/**
                    
3 * PhpThumb Library Definition File
                    
4 * 
                    
7 * PHP Version 5 with GD 2.0+
                    
8 * PhpThumb : PHP Thumb Library <http://phpthumb.gxdlabs.com>
                    
9 * Copyright (c) 2009, Ian Selby/Gen X Design
                    
17 * @copyright Copyright (c) 2009 Gen X Design
                    
18 * @link http://phpthumb.gxdlabs.com
                    
19 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
                    
27/**
                    
28 * PhpThumb Object
                    
29 * 
                    
36 * can't create one via the new keyword):
                    
37 * <code>$pt = PhpThumb::getInstance();</code>
                    
38 * 
                    
                
Filesystem.php https://github.com/jorgenils/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
                    
157        $dirContent = opendir( $this->_dirPath );
                    
158        while (($file = readdir($dirContent)) !== false) {
                    
159            if (($file == '..')||($file == '.'))   continue;
                    
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        }
                    
                
MaildirTest.php git://github.com/zendframework/zf2.git | PHP | 445 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;
                    
                
SkyWarsConfiguration.php https://gitlab.com/Skull3x/WorkingInProgress-Plugins-Sourcecode-For-Dev | PHP | 239 lines
                    
1<?php
                    
2
                    
122		$handler = opendir ( $path );
                    
123		while ( ($filename = readdir ( $handler )) !== false ) {
                    
124			$this->log ( "file - " . $filename );
                    
185		$handler = opendir ( $path );
                    
186		while ( ($filename = readdir ( $handler )) !== false ) {
                    
187			$this->log ( "file - " . $filename );
                    
                
UpgradeWizard.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 356 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
41
                    
42require_once('modules/Administration/UpgradeWizardCommon.php');
                    
43require_once('ModuleInstall/PackageManager/PackageManagerDisplay.php');
                    
43require_once('ModuleInstall/PackageManager/PackageManagerDisplay.php');
                    
44require_once('ModuleInstall/ModuleScanner.php');
                    
45global $mod_strings;
                    
101        if(isset($_REQUEST['release_id']) && $_REQUEST['release_id'] != ""){
                    
102            require_once('ModuleInstall/PackageManager.php');
                    
103            $pm = new PackageManager();
                    
170	    		$target_path = "$base_upgrade_dir/$upgrade_zip_type/$base_filename";
                    
171			    $target_manifest = remove_file_extension( $target_path ) . "-manifest.php";
                    
172
                    
219	//rrs
                    
220	$form = '<form name="move_form" action="index.php?module=Administration&view=module&action=UpgradeWizard" method="post"  ><input type=hidden name="run" value="upload" /><input type=hidden name="load_module_from_dir" id="load_module_from_dir" value="'.$GLOBALS['sugar_config']['common_ml_dir'].'" /><input type=hidden name="upgrade_zip_escaped" value="" />';
                    
221	$form .= '<br>'.$mod_strings['LBL_MODULE_UPLOAD_DISABLE_HELP_TEXT'].'</br>';
                    
                
functions.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 441 lines
                    
77			// goto theme edit page
                    
78			header("Location: themes.php?page=functions.php&saved=true");
                    
79			die;
                    
108			// goto theme edit page
                    
109			header("Location: themes.php?page=functions.php&reset=true");
                    
110			die;
                    
122	
                    
123	include( "scripts/bm_helpers.php" );
                    
124	
                    
131	
                    
132	<h2><?php echo $bmTheme; ?></h2>
                    
133	
                    
241		// Open a known directory, and proceed to read its contents
                    
242	    while (false !== ( $bm_adsFolder = readdir( $bm_adsDir ) ) ) {
                    
243	    	if( $bm_adsFolder != "." && $bm_adsFolder != ".." ) {
                    
                
upload.php https://gitlab.com/dkiller1/rapidleech | PHP | 220 lines
                    
1<?php
                    
2
                    
2
                    
3require_once('rl_init.php');
                    
4ignore_user_abort(true);
                    
7
                    
8include(CLASS_DIR.'http.php');
                    
9
                    
19$d = opendir ( HOST_DIR . "upload/" );
                    
20while ( false !== ($modules = readdir ( $d )) ) {
                    
21	if ($modules != "." && $modules != "..") {
                    
22		if (is_file ( HOST_DIR . "upload/" . $modules )) {
                    
23			if (strpos ( $modules, ".index.php" ))
                    
24				include_once (HOST_DIR . "upload/" . $modules);
                    
203if (isset($_GET['auul'])) {
                    
204?><script type="text/javascript">parent.nextlink<?php echo $_GET['auul']; ?>();</script><?php
                    
205	// Write links to a file
                    
                
ConfigTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 381 lines
                    
1<?php
                    
2/**
                    
9
                    
10class ConfigTest extends \PHPUnit_Framework_TestCase
                    
11{
                    
24    /**
                    
25     * @var \Magento\Email\Model\Template\Config\Data|\PHPUnit_Framework_MockObject_MockObject
                    
26     */
                    
29    /**
                    
30     * @var \Magento\Framework\Module\Dir\Reader|\PHPUnit_Framework_MockObject_MockObject
                    
31     */
                    
34    /**
                    
35     * @var \Magento\Framework\View\FileSystem|\PHPUnit_Framework_MockObject_MockObject
                    
36     */
                    
39    /**
                    
40     * @var \Magento\Framework\View\Design\Theme\ThemePackageList|\PHPUnit_Framework_MockObject_MockObject
                    
41     */
                    
                
Theme_Manager.class.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 383 lines
                    
1<?php
                    
2/* $Id: Theme_Manager.class.php 9831 2007-01-09 09:49:30Z nijel $ */
                    
4
                    
5require_once './libraries/Theme.class.php';
                    
6
                    
203    /**
                    
204     * old PHP 4 constructor
                    
205     */
                    
240            // check for themes directory
                    
241            while (false !== ($PMA_Theme = readdir($handleThemes))) {
                    
242                if (array_key_exists($PMA_Theme, $this->themes)) {
                    
255            trigger_error(
                    
256                'phpMyAdmin-ERROR: cannot open themes folder: ' . $this->getThemesPath(),
                    
257                E_USER_WARNING);
                    
288        if ($form) {
                    
289            $select_box .= '<form name="setTheme" method="post" action="index.php"'
                    
290                .' target="_parent">';
                    
                
user_box.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 148 lines
                    
8<?php if (logged_user()->canManageProjects()) { ?>
                    
9        <li><a href="<?php echo get_url('project', 'add') ?>"><?php echo lang('add project') ?></a></li>
                    
10        <li><a href="<?php echo get_url('project', 'copy') ?>"><?php echo lang('copy project') ?></a></li>
                    
44<?php if (isset($_userbox_projects) && is_array($_userbox_projects) && count($_userbox_projects)) { ?>
                    
45    <li><a href="<?php echo get_url('dashboard', 'my_tasks') ?>"><?php echo lang('my tasks') ?></a>
                    
46      <ul>
                    
91        <li class="header"><a href="<?php echo get_url('administration', 'tools') ?>"><?php echo lang('administration tools') ?></a></li>
                    
92        <li><a href="<?php echo get_url('administration', 'tool_mass_mailer') ?>"><?php echo lang('administration tool name mass_mailer' ) ?></a></li>
                    
93        <li class="header"><a href="<?php echo get_url('administration', 'upgrade') ?>"><?php echo lang('upgrade') ?></a></li>
                    
111<?php  if (logged_user()->canUpdatePermissions(logged_user())) { ?>
                    
112        <li><a href="<?php echo logged_user()->getUpdatePermissionsUrl() ?>"><?php echo lang('update permissions') ?></a></li>
                    
113<?php  } // if ?>
                    
144    </li>
                    
145    <li><a id="logout" class="js-confirm" href="<?php echo get_url('access', 'logout') ?>" title="<?php echo lang('confirm logout') ?>"><?php echo lang('logout') ?></a></li>
                    
146  </ul>
                    
                
ThemeManager.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 528 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
3/**
                    
4 * phpMyAdmin theme manager
                    
5 *
                    
5 *
                    
6 * @package PhpMyAdmin
                    
7 */
                    
12/**
                    
13 * phpMyAdmin theme manager
                    
14 *
                    
14 *
                    
15 * @package PhpMyAdmin
                    
16 */
                    
265        // force a change of a dummy session variable to avoid problems
                    
266        // with the caching of phpmyadmin.css.php
                    
267        $GLOBALS['PMA_Config']->set('theme-update', $this->theme->id);
                    
                
ZMusicBox.php https://gitlab.com/Skull3x/ZMusicBox | PHP | 239 lines
                    
1<?php
                    
2
                    
114		if ($dir = @opendir($folder)){
                    
115			while($file = readdir($dir)){
                    
116				if (!preg_match('/^\.+$/', $file) and
                    
                
functions_admin.php https://gitlab.com/bulwye/reliquerunt | PHP | 550 lines
                    
1<?php
                    
2/** 
                    
4* @package attachment_mod
                    
5* @version $Id: functions_admin.php,v 1.4 2006/04/22 16:21:09 acydburn Exp $
                    
6* @copyright (c) 2002 Meik Sievertsen
                    
6* @copyright (c) 2002 Meik Sievertsen
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
                    
8*
                    
248		{
                    
249			while ($file = @readdir($dir))
                    
250			{
                    
250			{
                    
251				if ($file != 'index.php' && $file != '.htaccess' && !is_dir($upload_dir . '/' . $file) && !is_link($upload_dir . '/' . $file))
                    
252				{
                    
290			
                    
291			if ($dirinfo[0] != 1 && $dirinfo[4] != 'index.php' && $dirinfo[4] != '.htaccess')
                    
292			{
                    
                
gulpfile.js https://gitlab.com/jyrkidn/test-dev | JavaScript | 259 lines
                    
31function getFolders(dir) {
                    
32    return fs.readdirSync(dir)
                    
33        .filter(function(file) {
                    
236
                    
237    // Add php and ctp watch here, because it breaks if we do this in the watch task
                    
238    gulp.watch('app/**/*.{php,ctp}').on('change', browserSync.reload);
                    
                
directory.js https://gitlab.com/darkarchon92/portfolio2.0 | JavaScript | 227 lines
                    
81      // fetch files
                    
82      fs.readdir(path, function(err, files){
                    
83        if (err) return next(err);
                    
220  , '.cc': 'page_white_cplusplus.png'
                    
221  , '.php': 'page_white_php.png'
                    
222  , '.rb': 'page_white_ruby.png'
                    
                
Mbox.php https://gitlab.com/devtoannh/cafe | PHP | 264 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Mbox.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Mail/Storage/Folder.php';
                    
28
                    
31 */
                    
32require_once 'Zend/Mail/Storage/Folder/Interface.php';
                    
33
                    
36 */
                    
37require_once 'Zend/Mail/Storage/Mbox.php';
                    
38
                    
88             */
                    
89            require_once 'Zend/Mail/Storage/Exception.php';
                    
90            throw new Zend_Mail_Storage_Exception('use Zend_Mail_Storage_Mbox for a single file');
                    
                
MemoryFileSystem.js https://gitlab.com/sogeta_albazi/books-and-movies | JavaScript | 335 lines
                    
1/*
                    
2	MIT License http://www.opensource.org/licenses/mit-license.php
                    
3	Author Tobias Koppers @sokra
                    
118
                    
119	readdirSync(_path) {
                    
120		if(_path === "/") return Object.keys(this.data).filter(Boolean);
                    
125			if(!isDir(current[path[i]]))
                    
126				throw new MemoryFileSystemError(errors.code.ENOENT, _path, "readdir");
                    
127			current = current[path[i]];
                    
130			if(isFile(current[path[i]]))
                    
131				throw new MemoryFileSystemError(errors.code.ENOTDIR, _path, "readdir");
                    
132			else
                    
132			else
                    
133				throw new MemoryFileSystemError(errors.code.ENOENT, _path, "readdir");
                    
134		}
                    
                
commands.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 211 lines
                    
1<?php 
                    
2/*
                    
6 * Licensed under the terms of the GNU Lesser General Public License:
                    
7 * 		http://www.opensource.org/licenses/lgpl-license.php
                    
8 * 
                    
13 * 
                    
14 * File Name: commands.php
                    
15 * 	This is the File Manager Connector for PHP.
                    
30
                    
31	while ( $sFile = readdir( $oCurrentFolder ) )
                    
32	{
                    
60
                    
61	while ( $sFile = readdir( $oCurrentFolder ) )
                    
62	{
                    
                
Filesystem.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | 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;
                    
                
fs.js https://gitlab.com/ahmad.jamal/sally | JavaScript | 326 lines
                    
1/*
                    
2	MIT License http://www.opensource.org/licenses/mit-license.php
                    
3	Author Tobias Koppers @sokra
                    
91 * @property {function(string, Callback): void} mkdir
                    
92 * @property {function(string, DirentArrayCallback): void=} readdir
                    
93 * @property {function(string, Callback): void=} rmdir
                    
106 * @property {function(string, BufferOrStringCallback): void} readlink
                    
107 * @property {function(string, DirentArrayCallback): void} readdir
                    
108 * @property {function(string, StatsCallback): void} stat
                    
                
Zip.php https://gitlab.com/ricoru21/py_incidencia | 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.1.6 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 */
                    
                
Jakefile.js https://gitlab.com/kaouech/theme | JavaScript | 249 lines
                    
43			[
                    
44				path.join(src, 'php', 'elFinder.class.php'),
                    
45				path.join(src, 'php', 'elFinderConnector.class.php'),
                    
46				path.join(src, 'php', 'elFinderVolumeDriver.class.php'),
                    
47				path.join(src, 'php', 'elFinderVolumeLocalFileSystem.class.php'),
                    
48				path.join(src, 'php', 'elFinderVolumeMySQL.class.php'),
                    
48				path.join(src, 'php', 'elFinderVolumeMySQL.class.php'),
                    
49				path.join(src, 'php', 'mime.types'),
                    
50				path.join(src, 'php', 'MySQLStorage.sql')
                    
188
                    
189// IMG + I18N + PHP
                    
190desc('copy misc files')
                    
208	// connector
                    
209	var cs = path.join(src, 'php', 'connector.minimal.php');
                    
210	var cd = path.join('php', 'connector.php');
                    
                
Tarz.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 196 lines
                    
17* @copyright  2004-2006 Claudio Bustos
                    
18* @link     http://pear.php.net/package/PHP_Beautifier
                    
19* @link     http://beautifyphp.sourceforge.net
                    
19* @link     http://beautifyphp.sourceforge.net
                    
20* @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
21* @version    CVS: $Id:$
                    
35* @copyright  2004-2006 Claudio Bustos
                    
36* @link     http://pear.php.net/package/PHP_Beautifier
                    
37* @link     http://beautifyphp.sourceforge.net
                    
40*/
                    
41class PHP_Beautifier_StreamWrapper_Tarz implements PHP_Beautifier_StreamWrapper_Interface {
                    
42    public $oTar;
                    
102        // DON'T USE EOF. Use ... another option :P
                    
103        if (version_compare(PHP_VERSION, '5.0.0.RC.1', ">=") and version_compare(PHP_VERSION, '5.0.0.RC.4', "<")) {
                    
104            return !($this->iSeek >= strlen($this->sText));
                    
                
base_override.php https://gitlab.com/ricardosanchez/prueba | PHP | 126 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version   $Id: base_override.php 9830 2013-04-29 23:56:49Z btowles $
                    
4 * @author    RocketTheme http://www.rockettheme.com
                    
21		if ($handle = opendir($dir)) {
                    
22			while (false !== ($entry = readdir($handle))) {
                    
23				if ($entry != "." && $entry != ".." && preg_match(sprintf('/^%s\./', $family), $entry) && is_dir($dir . '/' . $entry)) {
                    
114	$go_bPath = JPATH_BASE . '/modules/' . $module->module . '/tmpl/' . basename($go_backtrace[0]['file']);
                    
115	$go_dPath = JPATH_BASE . '/modules/' . $module->module . '/tmpl/default.php';
                    
116
                    
                
cp.js https://gitlab.com/romanvenicagcba/Cordova | JavaScript | 210 lines
                    
50// Licensed under the MIT License
                    
51// http://www.opensource.org/licenses/mit-license.php
                    
52function cpdirSyncRecursive(sourceDir, destDir, opts) {
                    
63
                    
64  var files = fs.readdirSync(sourceDir);
                    
65
                    
                
ExportController.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 319 lines
                    
1<?php
                    
2
                    
2
                    
3include_once(ROOT . DS . "libraries" . DS . "backend" . DS . "CreateZipFile" . DS . "CreateDirZip.php");
                    
4include_once(ROOT . DS . "libraries" . DS . "backend" . DS . "pclzip" . DS . "pclzip.lib.php");
                    
13			if (get_class ( $element ) == "Slide") {
                    
14				$slides_to_string = $slides_to_string.'<div class="slide" id="tree-'.$element->deck.'-slide-'.$element->id.'-'.$element->position.'-view">'.$element->content.'</div>'.PHP_EOL;
                    
15                        }else{
                    
63                $dirHandle = opendir($path);
                    
64                while (false !== ($file = readdir($dirHandle))){
                    
65                    if ($file!='.' && $file!='..'){
                    
250		<script src=\"codemirror/mode/css/css.js\"></script>
                    
251		<script src=\"codemirror/mode/php/php.js\"></script>
                    
252		<script src=\"codemirror/mode/ntriples/ntriples.js\"></script>
                    
                
Filesystem.php https://gitlab.com/rsilveira1987/Expresso | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
27/** Zend_Search_Lucene_Storage_File_Filesystem */
                    
28require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php';
                    
29
                    
121            if (file_exists($path)) {
                    
122                require_once 'Zend/Search/Lucene/Exception.php';
                    
123                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
125                if (!self::mkdirs($path)) {
                    
126                    require_once 'Zend/Search/Lucene/Exception.php';
                    
127                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
                
fun_search.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 152 lines
                    
1<?php
                    
2/** ensure this file is being included by a parent file */
                    
14
                    
15     The Original Code is fun_search.php, released on 2003-03-31.
                    
16
                    
46	
                    
47	while(($new_item=readdir($handle))!==false) {
                    
48		if(!@file_exists(get_abs_item($dir, $new_item))) continue;
                    
148// -->
                    
149</script><?php
                    
150}
                    
                
index.php https://gitlab.com/novadeviator/distrokid-analytics | PHP | 226 lines
                    
58		
                    
59		<?php
                    
60
                    
65		    if ($dh = opendir($dir)) {
                    
66			while (($file = readdir($dh)) !== false) {
                    
67			    if ($file != ".") { 
                    
105		// include misspellings group file, if it exists
                    
106		//$groups = "groups.php";
                    
107		//file_exists($groups) AND include $groups; 
                    
123
                    
124			<tr><td colspan=2><?php echo $tableseparator; ?></td></tr>
                    
125			<tr><th>TITLES</th><th></th></tr>
                    
125			<tr><th>TITLES</th><th></th></tr>
                    
126			<?php
                    
127			foreach ($titles as $key => $val){
                    
                
file_temp.php https://gitlab.com/Rad1calDreamer/honey | PHP | 198 lines
                    
107
                    
108	//PHP shutdown cleanup
                    
109	public static function Cleanup()
                    
136		{
                    
137			while(($day_files_dir = readdir($handle)) !== false)
                    
138			{
                    
148							$this_hour_name = date('H');
                    
149							while(($hour_files_dir = readdir($hour_handle)) !== false)
                    
150							{
                    
179			{
                    
180				while(($file = readdir($handle)) !== false)
                    
181				{
                    
                
rm.js https://gitlab.com/boxnia/NFU_MOVIL | JavaScript | 163 lines
                    
10// Licensed under the MIT License
                    
11// http://www.opensource.org/licenses/mit-license.php
                    
12function rmdirSyncRecursive(dir, force) {
                    
14
                    
15  files = fs.readdirSync(dir);
                    
16
                    
                
english.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 278 lines
                    
30	"opendir"		=> "Unable to open directory.",
                    
31	"readdir"		=> "Unable to read directory.",
                    
32
                    
92	'chmodlink'		=> 'Change (chmod) Rights (Folder/File(s))', // new mic
                    
93	'mossysinfolink'	=> $_VERSION->PRODUCT.' System Information ('.$_VERSION->PRODUCT.', Server, PHP, mySQL)', // new mic
                    
94	'logolink'		=> 'Go to the joomlaXplorer Website (new window)', // new mic
                    
181	'siphpversion'		=> 'PHP Version',
                    
182	'siphpupdate'		=> 'INFORMATION: <span style="color: red;">The PHP version you use is <strong>not</strong> actual!</span><br />To guarantee all functions and features of Mambo and addons,<br />you should use as minimum <strong>PHP.Version 4.3</strong>!',
                    
183	'siwebserver'		=> 'Webserver',
                    
183	'siwebserver'		=> 'Webserver',
                    
184	'siwebsphpif'		=> 'WebServer - PHP Interface',
                    
185	'simamboversion'	=> $_VERSION->PRODUCT.' Version',
                    
203	'siphpinfo'			=> 'PHP Info',
                    
204	'siphpinformation'	=> 'PHP Information',
                    
205	'sipermissions'		=> 'Permissions',
                    
                
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 *
                    
118
                    
119        while (FALSE !== ($filename = @readdir($current_dir))) {
                    
120            if ($filename != "." and $filename != "..") {
                    
165
                    
166            while (FALSE !== ($file = readdir($fp))) {
                    
167                if (@is_dir($source_dir . $file) && strncmp($file, '.', 1) !== 0) {
                    
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))) {
                    
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
                    
                
AbstractStyle.php https://gitlab.com/fabiorf/chat | PHP | 159 lines
                    
1<?php
                    
2/*
                    
136            if ($handle = opendir($root_dir)) {
                    
137                while (false !== ($file = readdir($handle))) {
                    
138                    if (preg_match("/^\w+$/", $file) && is_dir("$root_dir/$file")) {
                    
                
SugarCache.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 252 lines
                    
1<?php
                    
2/*********************************************************************************
                    
67            if (sugar_is_dir($location) && $dir = opendir($location)) {
                    
68                while (($file = readdir($dir)) !== false) {
                    
69                    if ($file == ".."
                    
74                    require_once("$location/$file");
                    
75                    $cacheClass = basename($file, ".php");
                    
76                    if ( class_exists($cacheClass) && is_subclass_of($cacheClass,'SugarCacheAbstract') ) {
                    
127        if ( function_exists('xcache_clear_cache') && !ini_get('xcache.admin.enable_auth') ) {
                    
128            $max = xcache_count(XC_TYPE_PHP);
                    
129            for ($i = 0; $i < $max; $i++) {
                    
129            for ($i = 0; $i < $max; $i++) {
                    
130                if (!xcache_clear_cache(XC_TYPE_PHP, $i)) {
                    
131                    break;
                    
                
Ftp.php https://gitlab.com/MichelZuniga/neoinvoice | 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',
                    
                
admin.media.php http://miacms.googlecode.com/svn/trunk/ | PHP | 360 lines
                    
1<?php
                    
2/**
                    
4* @subpackage Media Manager
                    
5* @author MiaCMS see README.php
                    
6* @copyright see README.php
                    
6* @copyright see README.php
                    
7* See COPYRIGHT.php for copyright notices and details.
                    
8* @license GNU/GPL Version 2, see LICENSE.php
                    
19		| $acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', 'com_media' ))) {
                    
20	mosRedirect( 'index2.php', T_('You are not authorized to view this resource.') );
                    
21}
                    
38if (is_int(strpos ($listdir, "..")) && $listdir<>'') {
                    
39	mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("NO HACKING PLEASE") );
                    
40	}
                    
50		if (ini_get('safe_mode')=="On") {
                    
51			mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("Directory creation not allowed while running in SAFE MODE as this can cause problems.") );
                    
52			}
                    
                
GlobTest.php https://gitlab.com/gregtyka/frankenserver | PHP | 359 lines
                    
37    $this->expectOpenDir($path, $handle);
                    
38    $this->expectReadDir($handle, $files);
                    
39    $this->expectCloseDir($handle);
                    
145    // Match the semantics of glob as observed in
                    
146    // https://github.com/php/php-src/blob/master/ext/standard/tests/file/glob_error.phpt
                    
147    $this->setExpectedException('PHPUnit_Framework_Error_Warning');
                    
150    Glob::doGlob("*", GLOB_ERR, 2);  // Too many arguments
                    
151    $this->setExpectedException('PHPUnit_Framework_Error_Warning');
                    
152    Glob::doGlob('*', '');
                    
152    Glob::doGlob('*', '');
                    
153    $this->setExpectedException('PHPUnit_Framework_Error_Warning');
                    
154    Glob::doGlob('*', 'str');
                    
338function readdir($handle) {
                    
339  assert(isset($GLOBALS['readdir']), 'readdir called when not expected.');
                    
340  $expected = array_shift($GLOBALS['readdir']);
                    
                
Dirs.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 104 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 */
                    
60            $dh = opendir($entry);
                    
61            while (false !== $child = readdir($dh)) {
                    
62                // Ignore pointers
                    
                
class_language.php https://gitlab.com/mybbpl/ppm-1.6 | PHP | 244 lines
                    
1<?php
                    
2/**
                    
61		$language = preg_replace("#[^a-z0-9\-_]#i", "", $language);
                    
62		if(file_exists($this->path."/".$language.".php"))
                    
63		{
                    
96		$this->language = $language;
                    
97		require $this->path."/".$language.".php";
                    
98		$this->settings = $langinfo;
                    
138		{
                    
139			$lfile = $this->path."/".str_replace('/admin', '', $this->language)."/".$section.".lang.php";
                    
140		}
                    
142		{
                    
143			$lfile = $this->path."/".$this->language."/".$section.".lang.php";
                    
144		}
                    
149		}
                    
150		elseif(file_exists($this->path."/".$this->fallback."/".$section.".lang.php"))
                    
151		{
                    
                
FsExplorer.class.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 297 lines
                    
1<?php
                    
2/**
                    
21
                    
22class_exists('org_tubepress_impl_classloader_ClassLoader') || require dirname(__FILE__) . '/../classloader/ClassLoader.class.php';
                    
23org_tubepress_impl_classloader_ClassLoader::loadClasses(array(
                    
77            
                    
78            while (($file = readdir($handle)) !== false) {
                    
79
                    
122
                    
123        	while (($file = readdir($handle)) !== false) {
                    
124
                    
                
PxeBcMtftp.h https://bitbucket.org/incubaid/edk2.git | C Header | 136 lines
                    
8  which accompanies this distribution.  The full text of the license may be found at
                    
9  http://opensource.org/licenses/bsd-license.php.
                    
10
                    
126EFI_STATUS
                    
127PxeBcTftpReadDirectory (
                    
128  IN     PXEBC_PRIVATE_DATA            *Private,
                    
                
ConfigurationTest.php https://gitlab.com/goolic/PrestaShop | PHP | 404 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',
                    
                
Serializer.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 291 lines
                    
1<?php
                    
2
                    
99        $dh = opendir($dir);
                    
100        while (false !== ($filename = readdir($dh))) {
                    
101            if (empty($filename)) {
                    
121        $dh = opendir($dir);
                    
122        while (false !== ($filename = readdir($dh))) {
                    
123            if (empty($filename)) {
                    
269            } else {
                    
270                // PHP's probably running as nobody, so we'll
                    
271                // need to give global permissions
                    
                
form-display.functions.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 229 lines
                    
1<?php  
                    
2function nzshpcrt_country_list($selected_country = null) {
                    
103  } else {
                    
104		while(($file = @readdir($dir)) !== false) {
                    
105			//filter out the dots, macintosh hidden files and any backup files
                    
153	}
                    
154		$deletion_url =  wp_nonce_url("admin.php?wpsc_admin_action=delete_file&amp;file_id=".$file['file_id'], 'delete_file_'.absint($file['file_id']));
                    
155    
                    
                
QpContentEncoderAcceptanceTest.php https://gitlab.com/techniconline/kmc | PHP | 156 lines
                    
1<?php
                    
2
                    
2
                    
3class Swift_Mime_ContentEncoder_QpContentEncoderAcceptanceTest extends \PHPUnit_Framework_TestCase
                    
4{
                    
16        $sampleFp = opendir($this->_samplesDir);
                    
17        while (false !== $encodingDir = readdir($sampleFp)) {
                    
18            if (substr($encodingDir, 0, 1) == '.') {
                    
30                $fileFp = opendir($sampleDir);
                    
31                while (false !== $sampleFile = readdir($fileFp)) {
                    
32                    if (substr($sampleFile, 0, 1) == '.') {
                    
63        $sampleFp = opendir($this->_samplesDir);
                    
64        while (false !== $encodingDir = readdir($sampleFp)) {
                    
65            if (substr($encodingDir, 0, 1) == '.') {
                    
75                $fileFp = opendir($sampleDir);
                    
76                while (false !== $sampleFile = readdir($fileFp)) {
                    
77                    if (substr($sampleFile, 0, 1) == '.') {
                    
                
cachelite.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 351 lines
                    
1<?php
                    
2/**
                    
14 *
                    
15 * @see    http://pear.php.net/package/Cache_Lite/
                    
16 * @since  11.1
                    
78		{
                    
79			require_once 'Cache/Lite.php';
                    
80		}
                    
319
                    
320		while ($file = readdir($dh))
                    
321		{
                    
346	{
                    
347		@include_once 'Cache/Lite.php';
                    
348
                    
                
LuceneTest.php https://github.com/jorgenils/zend-framework.git | PHP | 315 lines
                    
1<?php
                    
2/**
                    
11 */
                    
12require_once 'Zend/Search/Lucene.php';
                    
13
                    
14/**
                    
15 * PHPUnit test case
                    
16 */
                    
16 */
                    
17require_once 'PHPUnit/Framework/TestCase.php';
                    
18
                    
24 */
                    
25class Zend_Search_Lucene_LuceneTest extends PHPUnit_Framework_TestCase
                    
26{
                    
221        $dir = opendir($indexSourceDir);
                    
222        while (($file = readdir($dir)) !== false) {
                    
223            if (is_dir($indexSourceDir . '/' . $file)) {
                    
                
accounts.php https://gitlab.com/billyprice1/ruTorrent | PHP | 279 lines
                    
1<?php
                    
2
                    
2
                    
3require_once( dirname(__FILE__)."/../../php/util.php" );
                    
4require_once( $rootPath.'/php/cache.php');
                    
4require_once( $rootPath.'/php/cache.php');
                    
5require_once( $rootPath.'/php/Snoopy.class.inc');
                    
6eval( getPluginConf( 'loginmgr' ) );
                    
150		{
                    
151			while(false !== ($file = readdir($handle)))
                    
152			{
                    
154				{
                    
155					$name = basename($file,".php");
                    
156					$this->accounts[$name] = array( "name"=>$name, "path"=>fullpath($dir.'/'.$file), "object"=>$name."Account", "login"=>'', "password"=>'', "enabled"=>0, "auto"=>0 );
                    
260				rTorrentSettings::get()->getScheduleCommand("loginmgr",1440,
                    
261					getCmd('execute').'={sh,-c,'.escapeshellarg(getPHP()).' '.escapeshellarg(dirname(__FILE__).'/update.php').' '.escapeshellarg(getUser()).' & exit 0}' ) :
                    
262				rTorrentSettings::get()->getRemoveScheduleCommand("loginmgr") );
                    
                
FileCache.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 269 lines
                    
1<?php
                    
2/**
                    
58     * @var integer the permission to be set for newly created cache files.
                    
59     * This value will be used by PHP chmod() function. No umask will be applied.
                    
60     * If not set, the permission will be determined by the current environment.
                    
64     * @var integer the permission to be set for newly created directories.
                    
65     * This value will be used by PHP chmod() function. No umask will be applied.
                    
66     * Defaults to 0775, meaning the directory is read-writable by owner and group,
                    
245        if (($handle = opendir($path)) !== false) {
                    
246            while (($file = readdir($handle)) !== false) {
                    
247                if ($file[0] === '.') {
                    
                
import.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 147 lines
                    
52<div class="wrap">
                    
53<?php screen_icon(); ?>
                    
54<h2><?php echo esc_html( $title ); ?></h2>
                    
55<?php if ( ! empty( $_GET['invalid'] ) ) : ?>
                    
56	<div class="error"><p><strong><?php _e('ERROR:')?></strong> <?php printf( __('The <strong>%s</strong> importer is invalid or is not installed.'), esc_html( $_GET['invalid'] ) ); ?></p></div>
                    
57<?php endif; ?>
                    
57<?php endif; ?>
                    
58<p><?php _e('If you have posts or comments in another system, WordPress can import those into this site. To get started, choose a system to import from below:'); ?></p>
                    
59
                    
59
                    
60<?php
                    
61
                    
71				continue;
                    
72			} elseif (substr($file, -4) == '.php') {
                    
73				require_once($import_root . '/' . $file);
                    
                
plugin_interface.lib.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 370 lines
                    
1<?php
                    
2/* $Id: plugin_interface.lib.php 9131 2006-06-25 11:42:18Z lem9 $ */
                    
15 * @uses    opendir()
                    
16 * @uses    readdir()
                    
17 * @uses    is_file()
                    
28        $is_first = 0;
                    
29        while ($file = @readdir($handle)) {
                    
30            if (is_file($plugins_dir . $file) && eregi('\.php$', $file)) {
                    
                
icalert_msg.php https://gitlab.com/Alzakath/icagenda | PHP | 192 lines
                    
1<?php
                    
2/**
                    
43		// Set Function to condition to be checked
                    
44		$events_php=$this->getList($url);
                    
45		$cal_date=$this->getCalDate($url);
                    
48		{
                    
49			$list = $events_php;
                    
50			$doc_url = 'http://www.icagenda.com/theme-pack-upgrade/3-2-8-new-option-all-dates';
                    
85				$html[]	= '<p>';
                    
86				$html[]	= '<b><i>'.JText::_( 'COM_ICAGENDA_EVENTS_PHPFILE_MISSING_PACKS_LIST' ).'</i></b><br />';
                    
87				$html[]	= $setlist;
                    
112	/**
                    
113	 * Function to check if the file 'THEME_events.php' exists in each Theme Pack
                    
114	 */
                    
122
                    
123			while (false !== ($file = readdir($handle)))
                    
124			{
                    
                
Support_AdminActions.php https://gitlab.com/karlen/ayo_wp | PHP | 202 lines
                    
1<?php
                    
2namespace W3TC;
                    
56		if ( $handle = opendir( W3TC_CONFIG_DIR ) ) {
                    
57			while ( ( $entry = @readdir( $handle ) ) !== false ) {
                    
58				if ( $entry == '.' || $entry == '..' || $entry == 'index.html' )
                    
88		/**
                    
89		 * Attach phpinfo
                    
90		 */
                    
91		ob_start();
                    
92		phpinfo();
                    
93		$php_info = ob_get_contents();
                    
96		$attachments[] = array(
                    
97			'filename' => 'php_info.html',
                    
98			'content' => $php_info
                    
133	private function self_test() {
                    
134		include W3TC_INC_DIR . '/lightbox/self_test.php';
                    
135	}
                    
                
Resolver.js https://gitlab.com/nguyenthehiep3232/marius | JavaScript | 500 lines
                    
1/*
                    
2	MIT License http://www.opensource.org/licenses/mit-license.php
                    
3	Author Tobias Koppers @sokra
                    
50 * @property {(function(string, FileSystemCallback<Buffer | string>): void) & function(string, object, FileSystemCallback<Buffer | string>): void} readFile
                    
51 * @property {(function(string, FileSystemCallback<(Buffer | string)[] | FileSystemDirent[]>): void) & function(string, object, FileSystemCallback<(Buffer | string)[] | FileSystemDirent[]>): void} readdir
                    
52 * @property {((function(string, FileSystemCallback<object>): void) & function(string, object, FileSystemCallback<object>): void)=} readJson
                    
60 * @property {function(string, object=): Buffer | string} readFileSync
                    
61 * @property {function(string, object=): (Buffer | string)[] | FileSystemDirent[]} readdirSync
                    
62 * @property {(function(string, object=): object)=} readJsonSync
                    
                
site_template.php https://gitlab.com/neuser/bitrix-core | PHP | 413 lines
                    
87						{
                    
88							$arTemplate["CONTENT"] = $APPLICATION->GetFileContent($path."/".$file."/header.php")."#WORK_AREA#".$APPLICATION->GetFileContent($path."/".$file."/footer.php");
                    
89						}
                    
249			$footer = mb_substr($arFields["CONTENT"], $p + mb_strlen("#WORK_AREA#"));
                    
250			$APPLICATION->SaveFileContent($_SERVER["DOCUMENT_ROOT"].$path."/footer.php", $footer);
                    
251		}
                    
280
                    
281		self::SaveStyleDescription($arFields["STYLES_DESCRIPTION"], $_SERVER["DOCUMENT_ROOT"].$path."/.styles.php");
                    
282
                    
387			{
                    
388				if (!isset($curStylesDesc[EscapePHPString($code)]) || !is_array($curStylesDesc[EscapePHPString($code)]))
                    
389				{
                    
389				{
                    
390					$curStylesDesc[EscapePHPString($code)] = EscapePHPString($val);
                    
391				}
                    
                
result_modifier.php https://gitlab.com/alexprowars/bitrix | PHP | 250 lines
                    
11	{
                    
12		while (($file = readdir($directory)) !== false)
                    
13		{
                    
129
                    
130	$obCache = new CPHPCache();
                    
131	if ($obCache->InitCache(36000, serialize($arFilter), "/iblock/menu"))
                    
                
package.archive.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 306 lines
                    
1<?php
                    
2if ( ! defined( 'DUPLICATOR_VERSION' ) ) exit; // Exit if accessed directly
                    
3
                    
4require_once (DUPLICATOR_PLUGIN_PATH . 'classes/package.archive.zip.php');
                    
5require_once (DUPLICATOR_PLUGIN_PATH . 'lib/forceutf8/Encoding.php');
                    
273    //Recursive function to get all Directories in a wp install
                    
274    //Older PHP logic which is more stable on older version of PHP
                    
275	//NOTE RecursiveIteratorIterator is problematic on some systems issues include:
                    
276    // - error 'too many files open' for recursion
                    
277    // - $file->getExtension() is not reliable as it silently fails at least in php 5.2.9 
                    
278    // - issues with when a file has a permission such as 705 and trying to get info (had to fallback to pathinfo)
                    
278    // - issues with when a file has a permission such as 705 and trying to get info (had to fallback to pathinfo)
                    
279	// - basic conclusion wait on the SPL libs untill after php 5.4 is a requiremnt
                    
280	// - since we are in a tight recursive loop lets remove the utiltiy call DUP_Util::SafePath("{$path}/{$file}") and 
                    
287        {
                    
288            while (($file = readdir($handle)) !== false)
                    
289            {
                    
                
BlockTypeList.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 145 lines
                    
1<?php
                    
2namespace Concrete\Core\Block\BlockType;
                    
85			$handle = opendir($dir);
                    
86			while(($file = readdir($handle)) !== false) {
                    
87				if (strpos($file, '.') === false) {
                    
                
 

Source

Language