84+ results for 'php opendir repo:ogsteam/ogspy' (2243 ms)
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 125 126 if ( ! $current_dir = @opendir($path)) 127 { 179 180 if ($fp = @opendir($source_dir)) 181 { 231 232 if ($fp = @opendir($source_dir)) 233 { 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)))MaildirFolderTest.php https://github.com/Shreef/zf2.git | PHP | 444 lines
1<?php 2/** 36 */ 37class MaildirFolderTest extends \PHPUnit_Framework_TestCase 38{ 63 $count = 0; 64 $dh = opendir($this->_tmpdir); 65 while (readdir($dh) !== false) { 86 mkdir($this->_tmpdir . $dir . '/' . $subdir); 87 $dh = opendir($this->_originalDir . $dir . '/' . $subdir); 88 while (($entry = readdir($dh)) !== false) { 106 } 107 $dh = opendir($this->_tmpdir . $dir . '/' . $subdir); 108 while (($entry = readdir($dh)) !== false) { 203 try { 204 // explicit call of __toString() needed for PHP < 5.2 205 $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');count.pl https://github.com/ulisses/Static-Code-Analyzer.git | Perl | 381 lines
63 }, 64 "php" => {"nrFiles" => 0, "nrLines" => 0, "comments" => sub { return shift =~ m/(\*(.|\n|\r)*?\*)|(^[ \t\n]*\/\/.*)/; }, "nrComments" => 0, 65 "percentageNrFiles" => 0, "percentageNrLines" => 0, "percentageNrComments" => 0 354 355 opendir (DIR, $path) or warn "can't open $path\n"; 356upload.php https://gitlab.com/plusplusminus/isissoftware | PHP | 245 lines
1<?php 2 7/** 8 * upload.php 9 * 138 if ( $cleanup_target_dir ) { 139 if ( is_dir( $target_dir ) && ( $dir = opendir( $target_dir ) ) ) { 140 while ( ( $file = readdir( $dir ) ) !== false ) { 195 // Read binary input stream and append it to temp file 196 $in = @fopen( 'php://input', 'rb' ); 197cache.php https://github.com/weissms/owb-mirror.git | PHP | 429 lines
1<?php 2function wp_cache_add($key, $data, $flag = '', $expire = 0) { 52 53define('CACHE_SERIAL_HEADER', "<?php\n/*"); 54define('CACHE_SERIAL_FOOTER', "*/\n?".">"); 149 150 $cache_file = $this->cache_dir.$this->get_group_dir($group)."/".$this->hash($id).'.php'; 151 if (!file_exists($cache_file)) { 203 204 if (!file_exists($this->cache_dir.$make_dir."index.php")) { 205 $file_perms = $perms & 0000666; 205 $file_perms = $perms & 0000666; 206 @ touch($this->cache_dir.$make_dir."index.php"); 207 @ chmod($this->cache_dir.$make_dir."index.php", $file_perms); 224 225 $dh = @ opendir($dir); 226 if (!$dh)theme.php https://gitlab.com/x33n/respond | PHP | 363 lines
1<?php 2 17 // open themes direcotry 18 if($handle = opendir(APP_LOCATION.THEMES_FOLDER)){ 19class.utils.php https://gitlab.com/sokeara/Tribal_Education | PHP | 351 lines
1<?php 2// Exit if accessed directly 95 /** 96 * PHP_SAPI for fcgi requires a data flush of at least 256 97 * bytes every 40 seconds or else it forces a script hault 327 //FALL BACK: Windows XP has bug with glob, 328 //add secondary check for PHP lameness 329 if ($dh = opendir('.'))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); 236 237 if ($handleThemes = opendir($this->getThemesPath())) { 238 // check for themes directoryQpContentEncoderAcceptanceTest.php https://gitlab.com/techniconline/kmc | PHP | 156 lines
1<?php 2 2 3class Swift_Mime_ContentEncoder_QpContentEncoderAcceptanceTest extends \PHPUnit_Framework_TestCase 4{ 15 { 16 $sampleFp = opendir($this->_samplesDir); 17 while (false !== $encodingDir = readdir($sampleFp)) { 29 if (is_dir($sampleDir)) { 30 $fileFp = opendir($sampleDir); 31 while (false !== $sampleFile = readdir($fileFp)) { 62 { 63 $sampleFp = opendir($this->_samplesDir); 64 while (false !== $encodingDir = readdir($sampleFp)) { 74 if (is_dir($sampleDir)) { 75 $fileFp = opendir($sampleDir); 76 while (false !== $sampleFile = readdir($fileFp)) {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 */ 254 if (!$dir) { 255 throw new phpFastCacheDriverException("Can't read PATH:" . $path, 94); 256 }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 */ 59 */ 60 public function dir_opendir($path, $options) 61 { 61 { 62 $this->assert($path, Behavior::COMMAND_DIR_OPENDIR); 63 $this->internalResource = $this->invokeInternalStreamWrapper( 63 $this->internalResource = $this->invokeInternalStreamWrapper( 64 'opendir', 65 $path, 258 $arguments[] = $this->context; 259 // work around https://bugs.php.net/bug.php?id=66569 260 // for including files from Phar stream with OPcache enabledpropal.lang.php https://bitbucket.org/speedealing/speedealing.git | PHP | 120 lines
1<?php 2/* Copyright (C) 2012 Regis Houssin <regis.houssin@capnetworks.com> 78 'AssociatedDocuments' => 'Documentos Associados ao Orçamento :', 79 'ErrorCantOpenDir' => 'Impossivel Abrir a Pasta', 80 'DatePropal' => 'Data da proposta',Filesystem.php https://bitbucket.org/babanesma/mysimpleadmin.git | PHP | 363 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Filesystem.php 23964 2011-05-03 14:20:58Z adamlundrigan $ 21 */ 24/** Zend_Search_Lucene_Storage_Directory */ 25require_once 'Zend/Search/Lucene/Storage/Directory.php'; 26 118 if (file_exists($path)) { 119 require_once 'Zend/Search/Lucene/Exception.php'; 120 throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory'); 122 if (!self::mkdirs($path)) { 123 require_once 'Zend/Search/Lucene/Exception.php'; 124 throw new Zend_Search_Lucene_Exception("Can't create directory '$path'."); 156 157 $dirContent = opendir( $this->_dirPath ); 158 while (($file = readdir($dirContent)) !== false) {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'."); 158 159 $dirContent = opendir( $this->_dirPath ); 160 while (($file = readdir($dirContent)) !== false) { 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; 151 } 152 if ($dh = opendir($subdir)) { 153 while (FALSE !== ($entry = readdir($dh))) { 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'."); 158 159 $dirContent = opendir( $this->_dirPath ); 160 while (($file = readdir($dirContent)) !== false) { 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');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 57 $count = 0; 58 $dh = opendir($this->_tmpdir); 59 while (readdir($dh) !== false) {fileoptionslist.php https://github.com/bfritz/fusionpbx.git | PHP | 288 lines
1<?php 2/* 25*/ 26include "root.php"; 27require_once "includes/config.php"; 27require_once "includes/config.php"; 28require_once "includes/checkauth.php"; 29if (ifgroup("admin")) { 35} 36require_once "config.php"; 37require_once "header.php"; 56 $htmlfilelist = ''; 57 $dirlist = opendir($dir); 58 while ($file = readdir ($dirlist)) { 75 //$htmldirlist .= space(count($level))." <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD nowrap WIDTH=12></TD><TD nowrap><A onClick=\"Toggle(this)\"><IMG SRC=\"images/plus.gif\"> <IMG SRC=\"images/gear.png\"> Tools </A><DIV style='display:none'>\n"; 76 //$htmldirlist .= space(count($level))." <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD nowrap WIDTH=12></TD><TD nowrap align='bottom'><IMG SRC=\"images/file.png\"><a href='foldernew.php?folder=".urlencode($newpath)."' title=''>New Folder </a><DIV style='display:none'>\n"; //parent.document.getElementById('file').value='".urlencode($newpath)."' 77 //$htmldirlist .= space(count($level))." </DIV></TD></TR></TABLE>\n";Filesystem.php https://bitbucket.org/ealexandru/jobeet.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'."); 156 157 $dirContent = opendir( $this->_dirPath ); 158 while (($file = readdir($dirContent)) !== false) {Theme_Manager.class.php https://bitbucket.org/graaaf/garant.git | PHP | 380 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 4 * 5 * @package PhpMyAdmin 6 */ 9 * 10 * @package PhpMyAdmin 11 */ 202 // force a change of a dummy session variable to avoid problems 203 // with the caching of phpmyadmin.css.php 204 $GLOBALS['PMA_Config']->set('theme-update', $this->theme->id); 234 235 if ($handleThemes = opendir($this->getThemesPath())) { 236 // check for themes directory 253 trigger_error( 254 'phpMyAdmin-ERROR: cannot open themes folder: ' . $this->getThemesPath(), 255 E_USER_WARNING);MaildirTest.php https://github.com/thomasweidner/zf2.git | PHP | 444 lines
1<?php 2/** 36 */ 37class MaildirTest extends \PHPUnit_Framework_TestCase 38{ 61 $count = 0; 62 $dh = opendir($this->_tmpdir); 63 while (readdir($dh) !== false) { 76 mkdir($this->_tmpdir . $dir); 77 $dh = opendir($this->_originalMaildir . $dir); 78 while (($entry = readdir($dh)) !== false) { 91 foreach (array('cur', 'new') as $dir) { 92 $dh = opendir($this->_tmpdir . $dir); 93 while (($entry = readdir($dh)) !== false) {php.js https://gitlab.com/juanito.abelo/nlmobile | JavaScript | 132 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 130 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 131 CodeMirror.defineMIME("text/x-php", phpConfig); 132})();RouteTest.php https://github.com/popovag/kohana_core.git | PHP | 447 lines
1<?php defined('SYSPATH') OR die('Kohana bootstrap needs to be included before tests run'); 2 11 * @copyright (c) 2008-2009 Kohana Team 12 * @license http://kohanaphp.com/license 13 */ 40 { 41 $cache_dir = opendir(Kohana::$cache_dir); 42 47 { 48 $cache = opendir(Kohana::$cache_dir.'/'.$dir); 49PhpStreamWrapperInterface.php https://gitlab.com/geeta7/drupal | PHP | 228 lines
1<?php 2 4 * @file 5 * Contains \Drupal\Core\StreamWrapper\PhpStreamWrapperInterface. 6 */ 12 * 13 * @see http://www.php.net/manual/class.streamwrapper.php 14 */ 66 * @see stream_select() 67 * @see http://php.net/manual/streamwrapper.stream-cast.php 68 */ 118 * 119 * @see http://www.php.net/manual/streamwrapper.stream-metadata.php 120 */ 152 * 153 * @see http://php.net/manual/streamwrapper.stream-seek.php 154 */index.php https://github.com/mysociety/theyworkforyou.git | PHP | 406 lines
1<?php 2 2 3include_once '../../includes/easyparliament/init.php'; 4 5$dir = RAWDATA . 'scrapedxml/regmem'; 6$dh = opendir($dir); 7$files = array(); 33</style> 34<?php 35$f = get_http_var('f'); 82<tr><th width="50%">Removed</th><th width="50%">Added</th></tr> 83<?php 84 } 307<p>This page shows the Register of Members' Interests as released on <?=$d_pretty ?>, in alphabetical order by MP. 308<?php if ($d_iso > '2002-05-14') { ?><a href="./?f=<?=$d_iso ?>">Compare this edition with the one before it</a></p><?php } ?> 309<div id="regmem">Filesystem.php https://github.com/tedkulp/cmsmadesimple-2-0.git | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Filesystem.php 18954 2009-11-12 20:01:33Z alexander $ 21 */ 24/** Zend_Search_Lucene_Storage_Directory */ 25require_once 'Zend/Search/Lucene/Storage/Directory.php'; 26 118 if (file_exists($path)) { 119 require_once 'Zend/Search/Lucene/Exception.php'; 120 throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory'); 122 if (!self::mkdirs($path)) { 123 require_once 'Zend/Search/Lucene/Exception.php'; 124 throw new Zend_Search_Lucene_Exception("Can't create directory '$path'."); 156 157 $dirContent = opendir( $this->_dirPath ); 158 while (($file = readdir($dirContent)) !== false) {Ftp.php https://github.com/AlastairDewar/wash.git | PHP | 618 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 425 426 // Permissions can only be set when running PHP 5 427 if ( ! function_exists('ftp_chmod')) 489 // Open the local file path 490 if ($fp = @opendir($locpath)) 491 { 559 'text', 560 'php', 561 'phps', 561 'phps', 562 'php4', 563 'js',Registry.php https://bitbucket.org/acidel/buykoala.git | PHP | 364 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 29{ 30 const PACKAGE_PEAR_DIR = 'pearlib/php/.registry'; 31 280 281 $dp = opendir($channelDirectory); 282 if (!$dp) {Directory.cxx https://github.com/arnaudgelas/ITK.git | C++ | 253 lines
207support and glibc/Linux system headers: 208http://www.pgroup.com/userforum/viewtopic.php? 209p=1992&sid=f16167f51964f1a68fe5041b8eb213b6 221 222 DIR* dir = opendir(name.c_str()); 223 239{ 240 DIR* dir = opendir(name.c_str()); 241WinFsStreamWrapper.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 70 71 function dir_opendir($path, $options) 72 {index.php https://github.com/rbolliger/otokou.git | PHP | 186 lines
1<?php if ( isset($_GET["Action"]) && $_GET["Action"] == "ViewPHP") { $Script = $_GET["Script"]; highlight_file($Script); exit(); } ?> 2<?php if ( isset($_GET["Action"]) && $_GET["Action"] == "ViewHTML") { $Script = $_GET["Script"]; writeHTML($Script); exit(); } ?> 46 if ( !in_array($FileName,$Exclusion)) 47 $Tree[] = str_replace(".php","",$FileName); 48 } 69 <table style='border: 2px solid #FFFFFF;'><tr><td> 70 <div style='font-size: 11px; padding: 2px; color: #FFFFFF; background-color: #666666; border-bottom: 3px solid #484848; width: 222px;'> Release <?php echo $Version; ?></div> 71 <div style='border: 3px solid #D0D0D0; border-top: 1px solid #FFFFFF; background-color: #FAFAFA; width: 220px; overflow: auto'> 127 <script><br/> 128 addImage("testPicture","pictureMap","draw.php?ImageMap=get");<br/> 129 </script><br/> 153 document.getElementById("render").innerHTML = "<img src='scripts/"+FileName+".php?Seed="+Math.random(100)+"' id='testPicture' alt='' class='pChartPicture'/>"; 154 viewPHP("scripts/"+FileName+".php"); 155 166 167 URL = "index.php?Action=ViewPHP&Script=" + URL; 168Filesystem.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'."); 150 151 $dirContent = opendir($this->_dirPath); 152 while (($file = readdir($dirContent)) !== false) {package.cpp https://github.com/zsj888/hiphop-php.git | C++ | 474 lines
12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 35 36using namespace HPHP; 37using namespace std; 173 174void Package::findNonPHPFiles(vector<string> &out, const char *path, 175 bool exclude) { 179 string fullPath = m_root + path; 180 DIR *dir = opendir(fullPath.c_str()); 181 if (dir == NULL) { 464 q.filterBy("run = %d", runId); 465 q.filterBy("kind IN ('PHPInclude', 'PHPTemplate')"); 466 q.execute();css.php https://github.com/caillou/dokuwiki-jQuery.git | PHP | 333 lines
1<?php 2/** 11if(!defined('DOKU_DISABLE_GZIP_OUTPUT')) define('DOKU_DISABLE_GZIP_OUTPUT',1); // we gzip ourself here 12require_once(DOKU_INC.'inc/init.php'); 13 237 $exts = array(); 238 if($dh = opendir(DOKU_INC.'lib/images/fileicons')){ 239 while(false !== ($file = readdir($dh))){captcha_helper.php https://gitlab.com/piratemovin/piratesite | PHP | 341 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 109 110 $current_dir = @opendir($img_path); 111 while ($filename = @readdir($current_dir)) 131 132 // PHP7 or a suitable polyfill 133 if (function_exists('random_int')) 234 // Create image 235 // PHP.net recommends imagecreatetruecolor(), but it isn't always available 236 $im = function_exists('imagecreatetruecolor')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" 103 104 /* rely on opendir failing for nondirectory objects */ 105 dir = opendir(*d ? d : "."); 107 if (!dir) { 108 /* this is not an error -- we let opendir call stat for us */ 109 if (error == ENOTDIR) return 0;ChainedBlockStream.php https://gitlab.com/team_fsn/fsn-php | PHP | 230 lines
20 * 21 * @category PHPExcel 22 * @package PHPExcel_Shared_OLE 28/** 29 * PHPExcel_Shared_OLE_ChainedBlockStream 30 * 31 * Stream wrapper for reading data stored in an OLE file. Implements methods 32 * for PHP's stream_wrapper_register(). For creating streams using this 33 * wrapper, use PHPExcel_Shared_OLE_PPS_File::getStream(). 34 * 35 * @category PHPExcel 36 * @package PHPExcel_Shared_OLE 165// $eof = $this->pos >= strlen($this->data); 166// // Workaround for bug in PHP 5.0.x: http://bugs.php.net/27508 167// if (version_compare(PHP_VERSION, '5.0', '>=') &&CFileHelper.php https://gitlab.com/irvanresna/sensasi | PHP | 311 lines
1<?php 2/** 21 * Returns the extension name of a file path. 22 * For example, the path "path/to/something.php" would return "php". 23 * @param string $path the file path 140 141 $folder=opendir($src); 142 while(($file=readdir($folder))!==false) 181 $list=array(); 182 $handle=opendir($dir); 183 while(($file=readdir($handle))!==false) 237 * @param string $magicFile name of a magic database file, usually something like /path/to/magic.mime. 238 * This will be passed as the second parameter to {@link http://php.net/manual/en/function.finfo-open.php finfo_open}. 239 * Magic file format described in {@link http://linux.die.net/man/5/magic man 5 magic}, note that this file does not 239 * Magic file format described in {@link http://linux.die.net/man/5/magic man 5 magic}, note that this file does not 240 * contain a standard PHP array as you might suppose. Specified magic file will be used only when fileinfo 241 * PHP extension is available. This parameter has been available since version 1.1.3.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>index.php https://github.com/grotevoet/phpbb-gallery.git | PHP | 463 lines
21 22$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../'; 23$phpEx = substr(strrchr(__FILE__, '.'), 1); 27include($phpbb_root_path . 'includes/acp/acp_bbcodes.' . $phpEx); 28include($phpbb_root_path . 'includes/db/db_tools.' . $phpEx); 29include($phpbb_root_path . 'includes/message_parser.' . $phpEx); 286 $cat = strtolower($cat); 287 $url = append_sid("{$phpbb_root_path}install/index.$phpEx", "mode=$cat"); 288 303 $option = strtolower($option); 304 $url = append_sid("{$phpbb_root_path}install/index.$phpEx", 'mode=' . $this->mode . "&sub=$option"); 305 392 echo ' <div id="page-footer">'; 393 echo ' Powered by phpBB © 2000, 2002, 2005, 2007 <a href="http://www.phpbb.com/">phpBB Group</a>'; 394 echo ' </div>';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 334 private function dirsize( $path, $size, $timeout_time ) { 335 $dir = @opendir( $path ); 336 409 @fputs( $fp, pack( 'L', $expires_at ) ); 410 @fputs( $fp, '<?php exit; ?>' ); 411 @fputs( $fp, (int)$value );Filesystem.php https://github.com/bhaumik25/zend-framework.git | PHP | 363 lines
1<?php 2/** 23/** Zend_Search_Lucene_Storage_Directory */ 24require_once 'Zend/Search/Lucene/Storage/Directory.php'; 25 26/** Zend_Search_Lucene_Storage_File_Filesystem */ 27require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php'; 28 156 157 $dirContent = opendir( $this->_dirPath ); 158 while (($file = readdir($dirContent)) !== false) { 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 }list_functions.php https://gitlab.com/endomorphosis/fusenews | PHP | 127 lines
1<?php 2 3function list_jumps() { 4 global $phpiCal_config, $lang, $cal; 5 $calName = join(',', array_map("getCalendarName", split(',', $cal))); 5 $calName = join(',', array_map("getCalendarName", split(',', $cal))); 6 $today = date('Ymd', time() + $phpiCal_config->second_offset); 7 $return = '<option value="#">'.$lang['l_jump'].'</option>'; 7 $return = '<option value="#">'.$lang['l_jump'].'</option>'; 8 $return .= '<option value="day.php?cal='.$calName.'&getdate='.$today.'">'.$lang['l_goday'].'</option>'; 9 $return .= '<option value="week.php?cal='.$calName.'&getdate='.$today.'">'.$lang['l_goweek'].'</option>'; 9 $return .= '<option value="week.php?cal='.$calName.'&getdate='.$today.'">'.$lang['l_goweek'].'</option>'; 10 $return .= '<option value="month.php?cal='.$calName.'&getdate='.$today.'">'.$lang['l_gomonth'].'</option>'; 11 $return .= '<option value="year.php?cal='.$calName.'&getdate='.$today.'">'.$lang['l_goyear'].'</option>'; 15function list_calcolors() { 16 global $phpiCal_config, $master_array; 17 $return = '';Filesystem.php https://github.com/constructions-incongrues/vanilla-miner.git | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Filesystem.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 24/** Zend_Search_Lucene_Storage_Directory */ 25require_once 'Zend/Search/Lucene/Storage/Directory.php'; 26 118 if (file_exists($path)) { 119 require_once 'Zend/Search/Lucene/Exception.php'; 120 throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory'); 122 if (!self::mkdirs($path)) { 123 require_once 'Zend/Search/Lucene/Exception.php'; 124 throw new Zend_Search_Lucene_Exception("Can't create directory '$path'."); 156 157 $dirContent = opendir( $this->_dirPath ); 158 while (($file = readdir($dirContent)) !== false) {plugin_interface.lib.php https://bitbucket.org/graaaf/garant.git | PHP | 314 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * 6 * @package PhpMyAdmin 7 */ 21 $plugin_list = array(); 22 if ($handle = @opendir($plugins_dir)) { 23 while ($file = @readdir($handle)) { 24 // In some situations, Mac OS creates a new file for each file 25 // (for example ._csv.php) so the following regexp 26 // matches a file which does not start with a dot but ends 26 // matches a file which does not start with a dot but ends 27 // with ".php" 28 if (is_file($plugins_dir . $file) && preg_match('@^[^\.](.)*\.php$@i', $file)) {view.html.php https://github.com/DanielTichy/plagat.com.git | PHP | 316 lines
1<?php 2defined( '_JEXEC' ) or die( 'Restricted access' ); 182 183 if ($hd = opendir($path)) { 184 $files = array();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; 91 92 if (($dir = opendir(dirname(__FILE__) . '/Fetchmail'))) { 93 while (false !== ($file = readdir($dir))) { 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');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); 43 44 if (!$handle = @opendir($absolutePath)) 45 return $arWizardTemplates; 56 57 if (file_exists($absolutePath."/".$dirName."/description.php")) 58 {AbstractSyncBuilder.php https://gitlab.com/x33n/respond | PHP | 435 lines
1<?php 2/** 22use Aws\S3\S3Client; 23use Aws\S3\Iterator\OpendirIterator; 24use Guzzle\Common\Event; 402 * 403 * @return OpendirIterator 404 */ 409 410 // Calculate the opendir() bucket and optional key prefix location 411 $dir = "s3://{$this->bucket}"; 415 416 // Use opendir so that we can pass stream context to the iterator 417 $dh = opendir($dir, stream_context_create(array( 427 428 // Add the trailing slash for the OpendirIterator concatenation 429 if (!$this->keyPrefix) {perl.php https://gitlab.com/billyprice1/php-pastebin-v3 | PHP | 167 lines
1<?php 2/************************************************************************************* 2/************************************************************************************* 3 * perl.php 4 * -------- 84 'localtime', 'log', 'lstat', 'm', 'map', 'mkdir', 'msgctl', 'msgget', 85 'msgrcv', 'msgsnd', 'my', 'next', 'no', 'oct', 'open', 'opendir', 86 'ord', 'our', 'pack', 'package', 'pipe', 'pop', 'pos', 'print',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"; 53 54$handle = opendir(_CENTREON_PATH_ . 'www/widgets/'); 55$widgets = array(); 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 : {index.php https://gitlab.com/novadeviator/distrokid-analytics | PHP | 226 lines
58 59 <?php 60 64 if (is_dir($dir)) { 65 if ($dh = opendir($dir)) { 66 while (($file = readdir($dh)) !== false) { 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){sqlite.php https://gitlab.com/webbroteam/satisfaction-mvc | PHP | 484 lines
9 * 10 * @author Khoa Bui (khoaofgod) <khoaofgod@gmail.com> http://www.phpfastcache.com 11 * @author Georges.L (Geolim4) <contact@geolim4.com> 14 15namespace phpFastCache\Drivers; 16 16 17use phpFastCache\Core\DriverAbstract; 18use PDO; 19use PDOException; 20use phpFastCache\Exceptions\phpFastCacheDriverException; 21 23 * Class sqlite 24 * @package phpFastCache\Drivers 25 */server.php https://gitlab.com/sokeara/Tribal_Education | PHP | 185 lines
25 $dup_tests['PHP']['SAFE_MODE'] = $safe_ini != 'on' || $safe_ini != 'yes' || $safe_ini != 'true' || ini_get("safe_mode") != 1 ? 'Pass' : 'Fail'; 26 $dup_tests['PHP']['VERSION'] = DUP_Util::$on_php_529_plus ? 'Pass' : 'Fail'; 27 $dup_tests['PHP']['ZIP'] = class_exists('ZipArchive') ? 'Pass' : 'Fail'; 74 $php_test1 = ini_get("open_basedir"); 75 $php_test1 = empty($php_test1) ? true : false; 76 $php_test2 = ini_get("max_execution_time"); 76 $php_test2 = ini_get("max_execution_time"); 77 $php_test2 = ($php_test2 > DUPLICATOR_SCAN_TIMEOUT) || (strcmp($php_test2 , 'Off') == 0 || $php_test2 == 0) ? true : false; 78 $php_test3 = function_exists('mysqli_connect'); 82 $checks['SRV']['PHP']['mysqli'] = $php_test3; 83 $checks['SRV']['PHP']['ALL'] = ($php_test1 && $php_test2 && $php_test3) ? 'Good' : 'Warn'; 84 134 return array( 135 DUPLICATOR_INSTALL_PHP => DUPLICATOR_WPROOTPATH . DUPLICATOR_INSTALL_PHP, 136 DUPLICATOR_INSTALL_BAK => DUPLICATOR_WPROOTPATH . DUPLICATOR_INSTALL_BAK,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* 246 { 247 if ($dir = @opendir($upload_dir)) 248 { 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 {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 46 47 $handle = @$GLOBALS['nx_File']->opendir(get_abs_dir($dir)); 48 if($handle===false) return; // unable to open dir 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'];MboxFolderTest.php https://github.com/christophervalles/Zend-Framework-Skeleton.git | PHP | 417 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: MboxFolderTest.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26require_once 'Zend/Mail/Storage/Folder/Mbox.php'; 27 30 */ 31require_once 'Zend/Config.php'; 32 41 */ 42class Zend_Mail_MboxFolderTest extends PHPUnit_Framework_TestCase 43{ 62 $count = 0; 63 $dh = opendir($this->_tmpdir); 64 while (readdir($dh) !== false) {wpseo-non-ajax-functions.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 181 lines
1<?php 2 5 6 $dir = @opendir( $path ); 7 if ($dir) { 10 if( in_array($entry, $allowed_plugins) && is_readable($full_dir_path) && is_dir($full_dir_path) ) { 11 $module_dir = @opendir( $full_dir_path ); 12 if ($module_dir) { 13 while (($module_entry = @readdir($module_dir)) !== false) { 14 if (strrchr($module_entry, '.') === '.php') { 15 require $full_dir_path . '/' . $module_entry; 87 88 require_once (ABSPATH . 'wp-admin/includes/class-pclzip.php'); 89 112 113 $wp_admin_bar->add_menu( array( 'id' => 'wpseo-menu', 'title' => __( 'SEO' ), 'href' => get_admin_url('admin.php?page=wpseo_dashboard'), ) ); 114fileoptionslist.php https://github.com/bfritz/fusionpbx.git | PHP | 288 lines
1<?php 2/* 25*/ 26include "root.php"; 27require_once "includes/config.php"; 27require_once "includes/config.php"; 28require_once "includes/checkauth.php"; 29if (ifgroup("superadmin")) { 36 37require_once "header.php"; 38 56 $htmlfilelist = ''; 57 $dirlist = opendir($dir); 58 while ($file = readdir ($dirlist)) { 75 //$htmldirlist .= space(count($level))." <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD nowrap WIDTH=12></TD><TD nowrap><A onClick=\"Toggle(this)\"><IMG SRC=\"images/plus.gif\"> <IMG SRC=\"images/gear.png\"> Tools </A><DIV style='display:none'>\n"; 76 //$htmldirlist .= space(count($level))." <TABLE BORDER=0 cellpadding='0' cellspacing='0'><TR><TD nowrap WIDTH=12></TD><TD nowrap align='bottom'><IMG SRC=\"images/file.png\"><a href='foldernew.php?folder=".urlencode($newpath)."' title=''>New Folder </a><DIV style='display:none'>\n"; //parent.document.getElementById('file').value='".urlencode($newpath)."' 77 //$htmldirlist .= space(count($level))." </DIV></TD></TR></TABLE>\n";Upgrade.php https://github.com/rkabir/Ushahidi_Web.git | PHP | 553 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 169 170 $dirHandle=opendir($source); 171 while($file=readdir($dirHandle)) 260 // Are we already in the Ushahidi directory? 261 if ($this->ftp->is_exists("application/config/config.php")) 262 { 275 $ftp_base .= $value."/"; 276 if ($this->ftp->is_exists($ftp_base."application/config/config.php")) 277 { // We've arrived at the right folder 284 // Verify once again that we're in the right directory 285 if ($this->ftp->is_exists($ftp_base."application/config/config.php")) 286 { // We've arrived at the right folder 398 399 $dirHandle=opendir($source); 400 while($file=readdir($dirHandle))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( 75 $toReturn = array(); 76 if ($handle = opendir($dir)) { 77 120 $toReturn = array(); 121 if ($handle = opendir($dir)) { 122calendar_functions.php https://gitlab.com/endomorphosis/fusenews | PHP | 277 lines
21 unset($http_user); 22 if ((isset($_SERVER['PHP_AUTH_USER'])) && ($phpiCal_config->allow_login == 'yes')) { 23 $http_user = $_SERVER['PHP_AUTH_USER']; 70 // used to identify the calendar filename. 71 if ($find_all || $phpiCal_config->recursive_path == 'yes' || $phpiCal_config->support_ical == 'yes') { 72 // Open the directory. 101 if (!is_file($file)) continue; 102 // Remove any php files. 103 if (preg_match("/^.*\.php$/i", $file)) continue; 270 if ($cal == $phpiCal_config->ALL_CALENDARS_COMBINED) { 271 $return .= "<option value=\"$current_view.php?cal=$phpiCal_config->ALL_CALENDARS_COMBINED&getdate=$getdate\" selected=\"selected\">$all_cal_comb_lang</option>"; 272 } else { 272 } else { 273 $return .= "<option value=\"$current_view.php?cal=$phpiCal_config->ALL_CALENDARS_COMBINED&getdate=$getdate\">$all_cal_comb_lang</option>"; 274 }tools_webftp.php git://github.com/FSB/Fire-Soft-Board-2.git | PHP | 555 lines
64 */ 65 public $edit_file = array('php', 'php3', 'php4', 'php5', 'htm', 'html', 'tpl', 'txt', 'css', 'js', 'xml', 'rss', 'htaccess'); 66 113 'mode' => array( 114 'highlight_php' => 'page_php_highlight', 115 'codepress' => 'page_codepress', 192 { 193 $u_dir = sid('index.' . PHPEXT . '?p=tools_webftp&mode=highlight_php&dir=' . $this->dir . '&phpfile=' . $value['name']); 194 } 219 * Converti des permissions (octal) en permissions symboliques (rwx) 220 * http://fr.php.net/manual/fr/function.fileperms.php 221 * 497 { 498 $phpfile = Http::request('phpfile'); 499 if (file_exists(ROOT . $this->dir . $phpfile))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&subpage=upgrade-purchase-logs'; 15 ?> 49 <li> 50 <a href='?page=wpsc-debug&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 }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'); 214 if (is_dir($path) ) { 215 $handleDir = @opendir($path); 216 }SMTP.php https://gitlab.com/staging06/myproject | PHP | 452 lines
1<?php 2 10 11require_once dirname(__FILE__) . "/../ClassLoader.php"; 12Swift_ClassLoader::load("Swift_ConnectionBase"); 211 * See the constants ENC_TLS, ENC_SSL and ENC_OFF 212 * NOTE: PHP needs to have been compiled with OpenSSL for SSL and TLS to work 213 * NOTE: Some PHP installations will not have the TLS stream wrapper 356 $dir = dirname(__FILE__) . "/../Authenticator"; 357 $handle = opendir($dir); 358 while (false !== $file = readdir($handle)) 359 { 360 if (preg_match("/^[A-Za-z0-9-]+\\.php\$/", $file) && $file != "index.php") 361 {Filesystem.php https://bitbucket.org/baruffaldi/cms-php-bfcms.git | PHP | 362 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 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'."); 158 159 $dirContent = opendir( $this->_dirPath ); 160 while (($file = readdir($dirContent)) !== false) {GetFiles.php https://bitbucket.org/webpolis/liiv.git | PHP | 128 lines
1<?php 2/* 22 */ 23require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php"; 24 67 68 if ($dh = @opendir($_sServerDir)) { 69 while (($file = readdir($dh)) !== false) {istorage.php https://gitlab.com/wuhang2003/core | PHP | 457 lines
83 /** 84 * see http://php.net/manual/en/function.opendir.php 85 * 92 /** 93 * see http://php.net/manual/en/function.is-dir.php 94 * 194 /** 195 * see http://php.net/manual/en/function.file_exists.php 196 * 212 /** 213 * see http://php.net/manual/en/function.file_get_contents.php 214 * 231 /** 232 * see http://php.net/manual/en/function.unlink.php 233 *archive.php https://gitlab.com/endomorphosis/go_event_reg | PHP | 193 lines
1<?php 2// copies files to archive directory. Appends file date and replaces folders delimiters with @ signs 57 if (!empty($excludestr)) $exclude_strings = explode(',',$excludestr); 58 $dir = opendir("$url/"); 59 while (false !== ($file = readdir($dir))) { 89<head> 90 <title>Archive — <?php echo $TITLE; ?></title> 91 <style type="text/css"> 104 105<form method="post" action="<?php echo $REQUEST_URI; ?>"> 106<div id="info"> 106<div id="info"> 107<?php 108 $info = "<b>FROM:</b> $FOLDER_TO_ARCHIVE<br /><b>TO:</b> $ARCHIVE_FOLDER"; 115<input type="submit" value="List Archive" name="LISTARCHIVE" /> 116<input type="text" value="<?php echo $INCLUDE; ?>" name="INCLUDE" /> 117</div>Zip.php https://github.com/ComputerScienceHouse/Electronic-Evals.git | PHP | 359 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 * 21 * This class is based on a library I found at Zend: 22 * http://www.zend.com/codex.php?id=696&single=1 23 * 237 { 238 if ($fp = @opendir($path)) 239 { 357 358/* End of file Zip.php */ 359/* Location: ./system/libraries/Zip.php */order_export.php https://gitlab.com/Rad1calDreamer/honey | PHP | 180 lines
1<? 2require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3 10$arAvailableExports = array( 11// "excel" => "excel.php", 12 "csv" => "csv.php", 12 "csv" => "csv.php", 13 "commerceml" => "commerceml.php", 14 "commerceml2" => "commerceml2.php", 16 17$strPath2Export = BX_PERSONAL_ROOT."/php_interface/include/sale_export/"; 18$strPath2Export1 = "/bitrix/modules/sale/export/"; 20CheckDirPath($_SERVER["DOCUMENT_ROOT"].$strPath2Export); 21if ($handle = opendir($_SERVER["DOCUMENT_ROOT"].$strPath2Export)) 22{Stream.php https://bitbucket.org/ksekar/campus.git | 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 520 */ 521 public function dir_opendir($path, $options) 522 {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{ 62 if(file_exists($path) && is_dir($path)){ 63 $dirHandle = opendir($path); 64 while (false !== ($file = readdir($dirHandle))){ 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>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);form-display.functions.php https://github.com/evadne/wp-e-commerce.git | PHP | 215 lines
1<?php 2function nzshpcrt_country_list($selected_country = null) { 98 99 $dir = @opendir(WPSC_FILE_DIR); 100 $num = 0; 139 $num++; 140 $deletion_url = wp_nonce_url("admin.php?wpsc_admin_action=delete_file&file_id=".$file['file_id'], 'delete_file_'.absint($file['file_id'])); 141ubr_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 92 if(is_dir($temp_upload_dir) && is_file($temp_upload_dir . '/' . $flength_file)){ 93 if($handle = opendir($temp_upload_dir)){ 94 while(false !== ($file_name = readdir($handle))){Zip.php https://gitlab.com/rezaul007/Hospital-information-bank | PHP | 484 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 43 * This class is based on a library I found at Zend: 44 * http://www.zend.com/codex.php?id=696&single=1 45 * 346 $path = rtrim($path, '/\\').DIRECTORY_SEPARATOR; 347 if ( ! $fp = @opendir($path)) 348 {MaildirMessageOldTest.php https://github.com/christophervalles/Zend-Framework-Skeleton.git | PHP | 192 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: MaildirMessageOldTest.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26require_once 'Zend/Mail/Storage/Maildir.php'; 27 30 */ 31require_once 'Zend/Config.php'; 32 58 */ 59class Zend_Mail_MaildirMessageOldTest extends PHPUnit_Framework_TestCase 60{ 83 $count = 0; 84 $dh = opendir($this->_tmpdir); 85 while (readdir($dh) !== false) {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 *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 * 530 // Open the local file path 531 if ($fp = @opendir($locpath)) 532 { 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 */GlobTest.php https://gitlab.com/gregtyka/frankenserver | PHP | 359 lines
36 $handle = uniqid(); 37 $this->expectOpenDir($path, $handle); 38 $this->expectReadDir($handle, $files); 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'); 148 Glob::doGlob(); // Not enough arguments 149 $this->setExpectedException('PHPUnit_Framework_Error_Warning'); 150 Glob::doGlob("*", GLOB_ERR, 2); // Too many arguments 303 304 private function expectOpenDir($dirname, $handle) { 305 $GLOBALS['opendir'][] = ['name' => $dirname, 'handle' => $handle]; 329function opendir($dirname) { 330 assert(isset($GLOBALS['opendir']), 'opendir called when not expected.'); 331FileList.inc.php https://gitlab.com/tetrapak07/vimm-me | PHP | 209 lines
1<?php 2 3ob_start(); 4require_once('XmlValidator.inc.php'); 5require_once('FileInfo.inc.php'); 5require_once('FileInfo.inc.php'); 6require_once('Writer.inc.php'); 7ob_end_clean(); 96 97 $response['meta'] = array('type' => 'getFileList', 'status' => 'inProcess', 'phpError' => $php_errormsg); 98 $response['data'] = array(); 105 // output result for ajax processing 106 $response['meta'] = array('type' => 'error', 'phpError' => $php_errormsg); 107 $response['data'] = array('Cannot write to file ' . $this->logFilename); 146 147 $response['meta'] = array('type' => 'getFileList', 'status' => 'finished', 'phpError' => $php_errormsg); 148 $response['data'] = array();form-display.functions.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 229 lines
1<?php 2function nzshpcrt_country_list($selected_country = null) { 98 99 $dir = @opendir(WPSC_FILE_DIR); 100 $num = 0; 153 } 154 $deletion_url = wp_nonce_url("admin.php?wpsc_admin_action=delete_file&file_id=".$file['file_id'], 'delete_file_'.absint($file['file_id'])); 155