61+ results for 'php readdir' (0 ms)
Not the results you expected?
Protocol.cc (https://github.com/ak2consulting/hypertable.git) C++ · 342 lines
55 "exists",
56 "delete",
57 "readdir",
58 "readdirattr",
273 }
275 CommBuf *Hyperspace::Protocol::create_readdir_request(uint64_t handle) {
276 CommHeader header(COMMAND_READDIR);
281 }
283 CommBuf *Hyperspace::Protocol::create_readdir_attr_request(uint64_t handle,
284 const std::string &name) {
285 CommHeader header(COMMAND_READDIRATTR);
User.php (https://github.com/intraweb-modules13/IWmain.git) PHP · 826 lines
perl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 604 lines
commands.php (https://github.com/lxcenter/hypervm.git) PHP · 222 lines
1 <?php
2 /*
3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
20 * == END LICENSE ==
21 *
22 * This is the File Manager Connector for PHP.
23 */
33 $oCurrentFolder = opendir( $sServerDir ) ;
35 while ( $sFile = readdir( $oCurrentFolder ) )
36 {
37 if ( $sFile != '.' && $sFile != '..' && is_dir( $sServerDir . $sFile ) )
63 $oCurrentFolder = opendir( $sServerDir ) ;
65 while ( $sFile = readdir( $oCurrentFolder ) )
66 {
67 if ( $sFile != '.' && $sFile != '..' )
files.php (https://gitlab.com/webbroteam/satisfaction-mvc) PHP · 306 lines
8 * For full copyright and license information, please see the docs/CREDITS.txt file.
9 *
10 * @author Khoa Bui (khoaofgod) <khoaofgod@gmail.com> http://www.phpfastcache.com
11 * @author Georges.L (Geolim4) <contact@geolim4.com>
12 *
13 */
15 namespace phpFastCache\Drivers;
17 use phpFastCache\Core\DriverAbstract;
18 use phpFastCache\Exceptions\phpFastCacheDriverException;
20 /**
57 * @param bool $skip
58 * @return string
59 * @throws phpFastCacheDriverException
60 */
61 private function getFilePath($keyword, $skip = false)
list_functions.php (https://gitlab.com/endomorphosis/fusenews) PHP · 127 lines
1 <?php
3 function list_jumps() {
4 global $phpiCal_config, $lang, $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>';
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>';
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>';
jarvisrc.js (https://github.com/broofa/jarvis.git) JavaScript · 171 lines
22 npr_search: {
23 doc: 'Search the NPR web site',
24 url: 'http://www.npr.org/search/index.php?searchinput={QUERY}'
25 }
51 doc: 'Go to (or search) the NPR web site'
52 url: '{NPR_ROOT}',
53 query: '{NPR_ROOT}/search/index.php?searchinput={QUERY}'
54 },
55 public_radio: 'npr {ARGS}',
67 // Build commands for the search sites in the OPENSEARCH dir
68 var RC_DIR = path.join(process.env.HOME, '.jarvisrc');
69 var files = fs.readdirSync(RC_DIR);
71 // List of sections we lookup keys in. The placeholder object @i=0 is
rsform.class.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 175 lines
1 <?php
2 /**
3 * @version 1.2.0
14 ///////////////////////////////////////////////////// SUBMISSIONS /////////////////////////////////////////////////////
16 include('submissions.class.php');
18 ///////////////////////////////////////////////////// CAPTCHA /////////////////////////////////////////////////////
20 include('captcha.class.php');
22 ///////////////////////////////////////////////////// RSINSTALLER /////////////////////////////////////////////////////
68 if (eregi( '.zip$', $archivename )) {
69 // Extract functions
70 require_once( $RSadapter->config['absolute_path'] . '/administrator/includes/pcl/pclzip.lib.php' );
71 require_once( $RSadapter->config['absolute_path'] . '/administrator/includes/pcl/pclerror.lib.php' );
Cache_File.php (https://gitlab.com/karlen/ayo_wp) PHP · 455 lines
1 <?php
2 namespace W3TC;
116 $expires_at = time() + $expire;
117 @fputs( $fp, pack( 'L', $expires_at ) );
118 @fputs( $fp, '<?php exit; ?>' );
119 @fputs( $fp, @serialize( $var ) );
120 @fclose( $fp );
314 $hash = md5( $key );
316 $path = sprintf( '%s/%s/%s.php', substr( $hash, 0, 3 ), substr( $hash, 3, 3 ), $hash );
318 return $path;
337 if ( $dir ) {
338 while ( !$size['timeout_occurred'] && ( $entry = @readdir( $dir ) ) !== false ) {
339 if ( $entry == '.' || $entry == '..' ) {
340 continue;
percentage.php (https://github.com/caprenter/IATI-Data-Spotter.git) PHP · 141 lines
1 <?php
2 /* Uses xpath to get directly to the elements in the XML
3 * Then loops through the elements to add the percentage attributes together
11 //Helps us check that we only test activity files
12 include ('functions/xml_child_exists.php');
14 //$dir = '../data/dfid/'; //needs trailing slash
34 //Write our results to the file
35 //frite($fh,$test . "\n"); //simple headers about what we are counting this time round
36 //echo $test . PHP_EOL;
37 //print_r($types);
38 if ($percentages) {
66 fwrite($fh,$test . "\nNone found\n");
67 echo $test .PHP_EOL . "None found" . PHP_EOL;
68 }
69 }
syncBusinessInfo.php (https://github.com/ciniki/core.git) PHP · 139 lines
GetFiles.php (https://github.com/staunchRobots/Symfony-Groovy-Ecom.git) PHP · 128 lines
1 <?php
2 /*
3 * CKFinder
21 * Include base XML command handler
22 */
23 require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
25 /**
68 if ($dh = @opendir($_sServerDir)) {
69 while (($file = readdir($dh)) !== false) {
70 if ($file != "." && $file != ".." && !is_dir($_sServerDir . $file)) {
71 $files[] = $file;
ubr_get_progress.php (https://gitlab.com/ppapadatis/Videolearn) PHP · 113 lines
1 <?php
2 //******************************************************************************************************
3 // ATTENTION: THIS FILE HEADER MUST REMAIN INTACT. DO NOT DELETE OR MODIFY THIS FILE HEADER.
4 //
5 // Name: ubr_get_progress.php
6 // Revision: 1.2
7 // Date: 2/18/2008 5:37:18 PM
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>");
28 //***************************************************************************************************************
38 $UPLOAD_ID = ''; // Initialize upload id
40 require 'ubr_ini.php';
41 require 'ubr_lib.php';
theme.php (https://gitlab.com/x33n/respond) PHP · 363 lines
maintain_backups.php (https://github.com/rhempen/cms.git) PHP · 135 lines
99 <table cellpadding="5" cellspacing="1" border="0" width="80%">
100 <tr class="navi_overview_titel">
101 <th width="30%"><?php echo $GLOBALS['BACKUP']['DATEI'];?></th>
102 <th width="30%"><?php echo $GLOBALS['BACKUP']['ERSTELLT'];?></th>
106 </tr>
108 <?php
109 foreach($fs as $index => $file) {
110 // Klasse, File mit Pfad, Extension
121 <tr class="<?php echo $class;?>">
122 <td><?php echo $file['datei']; ?></td>
123 <td align="right"><?php echo set_date_time($file['fmt']); ?></td>
125 <td align="center"><?php echo '<a href="'.$srcfile.'">'.$icon.'</a>'; ?></td>
126 <td align="center"><?php echo '<a href="'.$_SERVER['PHP_SELF'].'?act=delete&file='.$file['datei'].'"><img src="../gifs/delete.gif" alt="delete" title="delete" onclick="'.$jscript.'"' ?></td>
127 </tr>
128 <?php
tiffiop.h (https://bitbucket.org/Tsiannian/cocos2d-x.git) C++ Header · 367 lines
PathList.cc
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
C++ · 137 lines
✨ Summary
This C++ code defines a PathList
class that processes file paths and extensions. It reads a directory path, extracts files with a specified extension, and stores their full and shortened names in output variables. The class provides methods to retrieve these outputs, handling exceptions and errors along the way. It appears to be part of a larger system for processing and manipulating file paths.
This C++ code defines a PathList
class that processes file paths and extensions. It reads a directory path, extracts files with a specified extension, and stores their full and shortened names in output variables. The class provides methods to retrieve these outputs, handling exceptions and errors along the way. It appears to be part of a larger system for processing and manipulating file paths.
mf_install.php (https://github.com/leocaseiro/Magic-Fields-2.git) PHP · 212 lines
1 <?php
2 /**
3 * This file content the routines for install/activate uninstall/deactivate Magic Fields
8 global $wpdb;
10 require_once(ABSPATH.'wp-admin/includes/upgrade.php');
12 // Get collation info
150 if (is_dir(MF_CACHE_DIR)) {
151 if ($dh = opendir(MF_CACHE_DIR)) {
152 while (($file = readdir($dh)) !== false) {
153 if(!is_dir($file) && !in_array($file,array('.','..','.DS_Store') ) ){
154 @unlink(MF_CACHE_DIR.$file);
163 if (is_dir(MF_FILES_DIR)) {
164 if ($dh = opendir(MF_FILES_DIR)) {
165 while (($file = readdir($dh)) !== false) {
166 if(!is_dir($file) && !in_array($file,array('.','..','.DS_Store') ) ){
167 @unlink(MF_FILES_DIR.$file);
plugin.php (https://github.com/weissms/owb-mirror.git) PHP · 382 lines
1 <?php
3 function get_plugin_data( $plugin_file ) {
45 $plugins_dir = @ opendir( $plugin_root);
46 if ( $plugins_dir ) {
47 while (($file = readdir( $plugins_dir ) ) !== false ) {
48 if ( substr($file, 0, 1) == '.' )
49 continue;
51 $plugins_subdir = @ opendir( $plugin_root.'/'.$file );
52 if ( $plugins_subdir ) {
53 while (($subfile = readdir( $plugins_subdir ) ) !== false ) {
54 if ( substr($subfile, 0, 1) == '.' )
55 continue;
56 if ( substr($subfile, -4) == '.php' )
57 $plugin_files[] = "$file/$subfile";
58 }
FsExplorer.class.php (https://github.com/midnightskinhead/tubepress.git) PHP · 297 lines
1 <?php
2 /**
3 * Copyright 2006 - 2011 Eric D. Hough (http://ehough.com)
20 */
22 class_exists('org_tubepress_impl_classloader_ClassLoader') || require dirname(__FILE__) . '/../classloader/ClassLoader.class.php';
23 org_tubepress_impl_classloader_ClassLoader::loadClasses(array(
24 'org_tubepress_api_filesystem_Explorer',
76 if ($handle = opendir($dir)) {
78 while (($file = readdir($handle)) !== false) {
80 if ($file === '.' || $file === '..' || strpos($file, ".") === 0) {
121 if ($handle = opendir($dir)) {
123 while (($file = readdir($handle)) !== false) {
125 if ($file === '.' || $file === '..') {
worktree.c (https://gitlab.com/181gaming/git) C · 303 lines
PackageScaffolderAbstract.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 249 lines
1 <?php
2 /**
3 * Zend Framework
48 return;
49 }
50 file_put_contents('php://stderr', $message . ($newLine ? "\r\n" : ''));
51 }
61 $this->deleteDirectory($path);
62 $phar->extractTo($path);
63 @unlink($path . '/index.php');
64 @unlink($path . '/build.bat');
65 $this->copyDirectory($path . '/resources', $path, false);
219 }
220 @chmod($path, 0777);
221 while ($file = readdir($handleDir)) {
222 if ($file == '.' || $file == '..') {
223 continue;
MaildirMessageOldTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 192 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: MaildirMessageOldTest.php 24593 2012-01-05 20:35:02Z matthew $
21 */
24 * Zend_Mail_Storage_Maildir
25 */
26 require_once 'Zend/Mail/Storage/Maildir.php';
28 /**
29 * Zend_Config
30 */
31 require_once 'Zend/Config.php';
33 /**
HttpCacheTestCase.php (https://gitlab.com/judielsm/Handora) PHP · 176 lines
1 <?php
3 /*
18 use Symfony\Component\HttpKernel\HttpKernelInterface;
20 class HttpCacheTestCase extends \PHPUnit_Framework_TestCase
21 {
22 protected $kernel;
160 $fp = opendir($directory);
161 while (false !== $file = readdir($fp)) {
162 if (!in_array($file, array('.', '..'))) {
163 if (is_link($directory.'/'.$file)) {
AbstractPlugin.php (https://github.com/techdivision/import.git) PHP · 322 lines
1 <?php
3 /**
4 * TechDivision\Import\Plugins\AbstractPlugin
5 *
6 * PHP version 7
7 *
8 * @author Tim Wagner <t.wagner@techdivision.com>
274 // remove files/folders recursively
275 while (false !== ($file = readdir($dir))) {
276 if (($file !== '.') && ($file !== '..')) {
277 $full = $src . '/' . $file;
proc_net.c (https://github.com/gby/linux.git) C · 247 lines
165 };
167 static int proc_tgid_net_readdir(struct file *file, struct dir_context *ctx)
168 {
169 int ret;
173 net = get_proc_task_net(file_inode(file));
174 if (net != NULL) {
175 ret = proc_readdir_de(net->proc_net, file, ctx);
176 put_net(net);
177 }
182 .llseek = generic_file_llseek,
183 .read = generic_read_dir,
184 .iterate_shared = proc_tgid_net_readdir,
185 };
MaildirMessageOldTest.php (https://github.com/nbcutech/o3drupal.git) PHP · 192 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
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 */
24 * Zend_Mail_Storage_Maildir
25 */
26 require_once 'Zend/Mail/Storage/Maildir.php';
28 /**
29 * Zend_Config
30 */
31 require_once 'Zend/Config.php';
33 /**
HttpCacheTestCase.php (https://github.com/Exercise/symfony.git) PHP · 180 lines
changed10.c (https://github.com/Milkyway-at-home/nemo.git) C · 209 lines
transformations.lib.php (https://github.com/BenBE/ispCP.git) PHP · 246 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Set of functions used with the relation and pdf feature
5 *
6 * @package phpMyAdmin
7 */
72 * @access public
73 * @uses opendir()
74 * @uses readdir()
75 * @uses closedir()
76 * @uses sort()
98 }
100 while ($file = readdir($handle)) {
101 $filestack[] = $file;
102 }
readdir_r.c (https://github.com/buffygb/illumos-gate.git) C · 202 lines
38 #if !defined(_LP64)
39 #pragma weak _readdir64_r = readdir64_r
40 #endif
53 /*
54 * POSIX.1c standard version of the thread function readdir_r.
55 */
110 if (dirp->dd_size != 0) {
111 dp64 = (dirent64_t *)(uintptr_t)&dirp->dd_buf[dirp->dd_loc];
112 /* was converted by readdir and needs to be reversed */
113 if (dp64->d_ino == (ino64_t)-1) {
114 dirent_t *dp32; /* -> 32 bit directory data */
directories.php (https://github.com/Implying/tsukiboards.git) PHP · 169 lines
1 <?php
2 /**
3 * Recursively delete a directory
49 if($handle = opendir(KU_BOARDSDIR . $dir)){ /* If the folder exploration is sucsessful, continue */
50 while (false !== ($file = readdir($handle))){ /* As long as storing the next file to $file is successful, continue */
51 $path = $dir . '/' . $file;
78 /*
79 ------------ lixlpixel recursive PHP functions -------------
80 recursive_directory_size( directory, human readable format )
81 expects path to directory and optional TRUE / FALSE
82 PHP has to have the rights to read the directory you specify
83 and all files and folders inside the directory to count size
84 if you choose to get human readable format,
commands.php (https://github.com/BenBE/ispCP.git) PHP · 211 lines
1 <?php
2 /*
3 * FCKeditor - The text editor for internet
5 *
6 * Licensed under the terms of the GNU Lesser General Public License:
7 * http://www.opensource.org/licenses/lgpl-license.php
8 *
9 * For further information visit:
12 * "Support Open Source software. What about a donation today?"
13 *
14 * File Name: commands.php
15 * This is the File Manager Connector for PHP.
29 $oCurrentFolder = opendir( $sServerDir ) ;
31 while ( $sFile = readdir( $oCurrentFolder ) )
32 {
33 if ( $sFile != '.' && $sFile != '..' && is_dir( $sServerDir . $sFile ) )
controller.php (https://github.com/Hywan/atoum.git) PHP · 479 lines
1 <?php
3 namespace mageekguy\atoum\mock\streams\fs\file;
31 case 'dir_closedir':
32 case 'dir_opendir':
33 case 'dir_readdir':
34 case 'dir_rewinddir':
35 throw new exceptions\logic\invalidArgument('Unable to override streamWrapper::' . $method . '() for file');
251 if ($this->append === true) {
252 if ($contents !== '') {
253 $contents .= PHP_EOL;
254 $this->movePointer(1);
255 }
370 }
372 public function dir_readdir()
373 {
374 return false;
sink-symlink.cpp (https://github.com/nickbp/ratesync.git) C++ · 172 lines
file.idl.php (https://github.com/zsj888/hiphop-php.git) PHP · 325 lines
xpdozip.class.php (https://github.com/gbds/revolution.git) PHP · 203 lines
1 <?php
2 /*
3 * Copyright 2006, 2007, 2008, 2009, 2010 by Jason Coward <xpdo@opengeek.com>
96 if ($dh = opendir($source)) {
97 if ($source[strlen($source) - 1] !== '/') $source .= '/';
98 while (($file = readdir($dh)) !== false) {
99 if (is_dir($source . $file)) {
100 if (($file !== '.') && ($file !== '..')) {
install.copy.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 201 lines
5 // copydirr.inc.php
6 /*
7 http://de3.php.net/manual/de/function.copy.php#55130
8 26.07.2005
9 Author: Anton Makarenko
42 //* Processing
43 $handle=opendir($fromDir);
44 while (false!==($item=readdir($handle)))
45 if (!in_array($item,$exceptions))
46 {
94 * @version $Revision: 617 $
95 * @internal resource_context is not supported
96 * @since PHP 5
97 * @require PHP 4.0.1 (trigger_error)
133 * @category PHP
134 * @package PHP_Compat
135 * @link http://php.net/function.file_put_contents
file.php (https://github.com/akutaktau/feedmalaya.git) PHP · 351 lines
1 <?php
2 /**
3 * Fuel
4 *
5 * Fuel is a fast, lightweight, community driven PHP5 framework.
6 *
7 * @package Fuel
10 * @license MIT License
11 * @copyright 2010 - 2011 Fuel Development Team
12 * @link http://fuelphp.com
13 */
172 $expire = $this->time->get_timestamp() - $this->config['expiration_time'];
174 while (($file = readdir($handle)) !== false)
175 {
176 if (filetype($this->config['path'] . $file) == 'file' &&
DirectoryIterator.php (https://gitlab.com/iranjith4/hhvm) PHP · 163 lines
3 // This doc comment block generated by idl/sysdoc.php
4 /**
5 * ( excerpt from http://php.net/manual/en/class.directoryiterator.php )
6 *
7 * The DirectoryIterator class provides a simple interface for viewing the
65 // This doc comment block generated by idl/sysdoc.php
66 /**
67 * ( excerpt from http://php.net/manual/en/directoryiterator.next.php )
68 *
69 * Move forward to the next DirectoryIterator item.
135 // This doc comment block generated by idl/sysdoc.php
136 /**
137 * ( excerpt from http://php.net/manual/en/directoryiterator.isdot.php )
138 *
139 * Determines if the current DirectoryIterator item is a directory and
PhpThumb.inc.php (https://gitlab.com/julienv/joomleague) PHP · 247 lines
1 <?php
2 /**
3 * PhpThumb Library Definition File
4 *
5 * This file contains the definitions for the PhpThumb class.
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
10 *
27 /**
28 * PhpThumb Object
29 *
30 * This singleton object is essentially a function library that helps with core validation
43 * @subpackage Core
44 */
45 class PhpThumb
46 {
47 /**
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
4 */
90 };
92 MemoryFileSystem.prototype.readdirSync = function(_path) {
93 if(_path === "/") return Object.keys(this.data).filter(Boolean);
94 var path = pathToArray(_path);
101 if(!isDir(current[path[i]])) {
102 if(isFile(current[path[i]]))
103 throw new Error("Cannot readdir on file '" + _path + "'");
104 else
105 throw new Error("Path doesn't exist '" + _path + "'");
188 // async functions
190 ["stat", "readdir", "mkdirp", "mkdir", "rmdir", "unlink", "readlink"].forEach(function(fn) {
191 MemoryFileSystem.prototype[fn] = function(path, callback) {
192 try {
settings.php (https://bitbucket.org/rossberenson/michael-karas.git) PHP · 207 lines
1 <?php
3 require_once WPCF7_PLUGIN_DIR . '/includes/functions.php';
4 require_once WPCF7_PLUGIN_DIR . '/includes/deprecated.php';
5 require_once WPCF7_PLUGIN_DIR . '/includes/formatting.php';
6 require_once WPCF7_PLUGIN_DIR . '/includes/pipe.php';
7 require_once WPCF7_PLUGIN_DIR . '/includes/shortcodes.php';
8 require_once WPCF7_PLUGIN_DIR . '/includes/capabilities.php';
9 require_once WPCF7_PLUGIN_DIR . '/includes/classes.php';
11 if ( is_admin() )
12 require_once WPCF7_PLUGIN_DIR . '/admin/admin.php';
13 else
14 require_once WPCF7_PLUGIN_DIR . '/includes/controller.php';
OS_NS_dirent.h (https://github.com/sysmaniax/k17oregoncoredb.git) C Header · 153 lines
8 *
9 * @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
10 * @author Jesper S. M|ller<stophph@diku.dk>
11 * @author and a cast of thousands...
12 *
89 ACE_NAMESPACE_INLINE_FUNCTION
90 struct ACE_DIRENT *readdir (ACE_DIR *);
92 ACE_NAMESPACE_INLINE_FUNCTION
93 int readdir_r (ACE_DIR *dirp,
94 struct ACE_DIRENT *entry,
95 struct ACE_DIRENT **result);
Serializer.php (https://github.com/viggof/moodle.git) PHP · 191 lines
1 <?php
3 class HTMLPurifier_DefinitionCache_Serializer extends
44 $dir = $this->generateDirectoryPath($config);
45 $dh = opendir($dir);
46 while (false !== ($filename = readdir($dh))) {
47 if (empty($filename)) continue;
48 if ($filename[0] === '.') continue;
55 $dir = $this->generateDirectoryPath($config);
56 $dh = opendir($dir);
57 while (false !== ($filename = readdir($dh))) {
58 if (empty($filename)) continue;
59 if ($filename[0] === '.') continue;
171 $chmod = $chmod | 0070;
172 } else {
173 // PHP's probably running as nobody, so we'll
174 // need to give global permissions
175 $chmod = $chmod | 0777;
platform_posix.c (https://github.com/nmacherey/rheia.git) C · 249 lines
class.files.php (https://gitlab.com/alidz1982/pookmail) PHP · 165 lines
1 <?php
2 // ---------------------------------------------------------------------------
3 // Image Validator by Alfred Reinold Baudisch<alfred_baudisch@hotmail.com>
64 Case "pag":
65 $types_regex = "txt|htm|html|php|asp|aspx";
66 break;
89 // Starts dir navigation
90 while (false !== ($file = @readdir($dir_handle)))
91 {
92 if ($file == "." || $file == "..")
FileManager.php (https://bitbucket.org/seyar/kinda.local.git) PHP · 177 lines
1 <?php
2 /*
3 Защита от прямой загрузки
63 if (($dp = opendir(FileManager::convertToFileSystem(Manager::$conf['filesystem.files_path'].$path))) !== false){
64 while (($el = readdir($dp)) !== false){
65 if ($el != '.' && $el != '..' && !preg_match(Manager::$conf['filesystem.exclude_directory_pattern'], $el)){
66 /*
124 if (($dp = opendir($path)) !== false){
125 while (($el = readdir($dp)) !== false){
126 if ($el == '.' || $el == '..') continue;
xdr3.h (https://github.com/penberg/linux.git) C Header · 323 lines
94 };
96 struct nfsd3_readdirargs {
97 struct svc_fh fh;
98 __u64 cookie;
256 struct nfsd3_linkargs linkargs;
257 struct nfsd3_symlinkargs symlinkargs;
258 struct nfsd3_readdirargs readdirargs;
259 struct nfsd3_diropres diropres;
260 struct nfsd3_accessres accessres;
264 struct nfsd3_renameres renameres;
265 struct nfsd3_linkres linkres;
266 struct nfsd3_readdirres readdirres;
267 struct nfsd3_fsstatres fsstatres;
268 struct nfsd3_fsinfores fsinfores;
buildPackagesArray.php (https://bitbucket.org/valmy/openx.git) PHP · 123 lines
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>
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>
108 <li><a href="<?php echo logged_user()->getEditProfileUrl() ?>"><?php echo lang('update profile') ?></a></li>
109 <li><a href="<?php echo logged_user()->getEditPasswordUrl() ?>"><?php echo lang('change password') ?></a></li>
110 <?php } // if ?>
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 ?>
143 </ul>
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>
147 </div>
index.mod.php (https://github.com/Xirt/XirtCMS.git) PHP · 193 lines
mf-runtime.h
(https://bitbucket.org/freebsd/freebsd-head/)
C++ Header · 250 lines
✨ Summary
This C++ header file provides a runtime environment for monitoring and controlling the execution of programs. It defines macros to enable or disable various features, such as memory management and string manipulation. The code also includes function declarations for system calls, process control, and network operations, allowing developers to track and manage program behavior.
This C++ header file provides a runtime environment for monitoring and controlling the execution of programs. It defines macros to enable or disable various features, such as memory management and string manipulation. The code also includes function declarations for system calls, process control, and network operations, allowing developers to track and manage program behavior.
theme.class.php (https://github.com/Arkadiy-Sedelnikov/joostina-1.4.git) PHP · 524 lines
1 <?php
2 /**
3 * SPAW Editor v.2 Theme classes
9 */
11 require_once(str_replace('\\\\', '/', dirname(__FILE__)) . '/config.class.php');
13 /**
432 // load theme settings
433 if($dh = opendir($pgdir)){
434 while(($pg = readdir($dh)) !== false){
435 if(file_exists($pgdir . $pg . '/lib/theme/' . $this->name . '/config/theme.config.php')){
436 // load theme config file for each plugin
437 include($pgdir . $pg . '/lib/theme/' . $this->name . '/config/theme.config.php');
438 // load default styles for "core" only
439 if($pg == "core"){
tiffio.h (https://bitbucket.org/Tsiannian/cocos2d-x.git) C++ Header · 548 lines
342 extern int TIFFGetFieldDefaulted(TIFF* tif, uint32 tag, ...);
343 extern int TIFFVGetFieldDefaulted(TIFF* tif, uint32 tag, va_list ap);
344 extern int TIFFReadDirectory(TIFF* tif);
345 extern int TIFFReadCustomDirectory(TIFF* tif, toff_t diroff, const TIFFFieldArray* infoarray);
346 extern int TIFFReadEXIFDirectory(TIFF* tif, toff_t diroff);
main.cc
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
C++ · 627 lines
✨ Summary
This C++ code creates a graphical user interface (GUI) application called “vflow” that displays multiple documents in a multi-document interface (MDI). It initializes the GUI, sets up event handling for segmentation faults, and starts the main loop to display the GUI. The application can be run with or without specifying a document path, and it loads the specified document if provided.
This C++ code creates a graphical user interface (GUI) application called “vflow” that displays multiple documents in a multi-document interface (MDI). It initializes the GUI, sets up event handling for segmentation faults, and starts the main loop to display the GUI. The application can be run with or without specifying a document path, and it loads the specified document if provided.
UnixFileSystem.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines
1 <?php
2 /*
3 * $Id: UnixFileSystem.php 258 2007-10-21 00:46:45Z hans $
20 */
22 include_once 'phing/system/io/FileSystem.php';
24 /**
25 * UnixFileSystem class. This class encapsulates the basic file system functions
26 * for platforms using the unix (posix)-stylish filesystem. It wraps php native
27 * functions suppressing normal PHP error reporting and instead uses Exception
29 *
30 * This class is part of a oop based filesystem abstraction and targeted to run
31 * on all supported php platforms.
32 *
33 * Note: For debugging turn track_errors on in the php.ini. The error messages
UIDocument.cc
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
C++ · 653 lines
✨ Summary
This C++ code is part of a neural network simulator, specifically a user interface (UIDocument) class that manages and runs simulations. It allows users to build, run, and visualize networks using a graphical interface. The code includes functions for building networks, running simulations, generating code, and updating network information.
This C++ code is part of a neural network simulator, specifically a user interface (UIDocument) class that manages and runs simulations. It allows users to build, run, and visualize networks using a graphical interface. The code includes functions for building networks, running simulations, generating code, and updating network information.
unix.mli
(git://github.com/multani/ocaml-mirror.git)
OCaml · 1338 lines
✨ Summary
This OCaml code provides a set of functions for interacting with terminals and file descriptors, including setting terminal attributes, flushing buffers, sending break conditions, and controlling flow actions. It also includes functions for managing sessions and detaching processes from their controlling terminals. The code is likely part of an operating system or low-level library.
This OCaml code provides a set of functions for interacting with terminals and file descriptors, including setting terminal attributes, flushing buffers, sending break conditions, and controlling flow actions. It also includes functions for managing sessions and detaching processes from their controlling terminals. The code is likely part of an operating system or low-level library.
nfs3xdr.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1210 lines
✨ Summary
This C code defines a set of procedures for the Network File System (NFS) version 3 protocol. It specifies the encoding and decoding functions, argument lengths, and timer values for each procedure, including file operations like GETATTR
, SETATTR
, LOOKUP
, and others. The code also includes versions for ACL (Access Control List) procedures.
This C code defines a set of procedures for the Network File System (NFS) version 3 protocol. It specifies the encoding and decoding functions, argument lengths, and timer values for each procedure, including file operations like GETATTR
, SETATTR
, LOOKUP
, and others. The code also includes versions for ACL (Access Control List) procedures.
471 */
472 static int
473 nfs3_xdr_readdirargs(struct rpc_rqst *req, __be32 *p, struct nfs3_readdirargs *args)
474 {
475 struct rpc_auth *auth = req->rq_task->tk_msg.rpc_cred->cr_auth;
497 /*
498 * Decode the result of a readdir call.
499 * We just check for syntactical correctness.
500 */
501 static int
502 nfs3_xdr_readdirres(struct rpc_rqst *req, __be32 *p, struct nfs3_readdirres *res)
503 {
504 struct xdr_buf *rcvbuf = &req->rq_rcv_buf;
solaris_lwp.cc
(git://github.com/zpao/v8monkey.git)
C++ · 436 lines
✨ Summary
This C++ code is part of a signal handling library for the Solaris operating system. It provides functions to analyze and manipulate stack frames, including finding the context of a signal handler function call, identifying mapped addresses, and listing modules loaded by the process. The code appears to be designed for low-level debugging and analysis of signal-related issues in Solaris systems.
This C++ code is part of a signal handling library for the Solaris operating system. It provides functions to analyze and manipulate stack frames, including finding the context of a signal handler function call, identifying mapped addresses, and listing modules loaded by the process. The code appears to be designed for low-level debugging and analysis of signal-related issues in Solaris systems.
109 struct dirent *entry = NULL;
110 while ((entry = readdir(dir)) != NULL) {
111 if ((strcmp(entry->d_name, ".") != 0) &&
112 (strcmp(entry->d_name, "..") != 0)) {
248 prheader_t lphp[HEADER_MAX];
249 prheader_t lhp[HEADER_MAX];
250 prheader_t *Lphp = lphp;
251 prheader_t *Lhp = lhp;
252 lwpsinfo_t *Lpsp;
261 if (read_lfile(pid, "lstatus", Lhp) == NULL)
262 return -1;
263 if (read_lfile(pid, "lpsinfo", Lphp) == NULL) {
264 return -1;
265 }