PageRenderTime 1249ms queryTime 62ms sortTime 84ms getByIdsTime 878ms findMatchingLines 137ms

80+ results for 'php opendir repo:victoralex/gameleon' (1249 ms)

Not the results you expected?
vms.c https://bitbucket.org/wallwizz/imagemagick-6.8.4-for-bb10.git | C | 271 lines
                    
25%                                                                             %
                    
26%    http://www.imagemagick.org/script/license.php                            %
                    
27%                                                                             %
                    
92%
                    
93%  opendir() opens the directory named by filename and associates a directory
                    
94%  stream with it.
                    
95%
                    
96%  The format of the opendir method is:
                    
97%
                    
97%
                    
98%      opendir(entry)
                    
99%
                    
105*/
                    
106DIR *opendir(char *name)
                    
107{
                    
                
Filesystem.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25// require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
118            if (file_exists($path)) {
                    
119                // require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
122                if (!self::mkdirs($path)) {
                    
123                    // require_once 'Zend/Search/Lucene/Exception.php';
                    
124                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
156
                    
157        $dirContent = opendir( $this->_dirPath );
                    
158        while (($file = readdir($dirContent)) !== false) {
                    
                
Filesystem.php https://bitbucket.org/haichau59/manga.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25//require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
118            if (file_exists($path)) {
                    
119                //require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
122                if (!self::mkdirs($path)) {
                    
123                    //require_once 'Zend/Search/Lucene/Exception.php';
                    
124                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
156
                    
157        $dirContent = opendir( $this->_dirPath );
                    
158        while (($file = readdir($dirContent)) !== false) {
                    
                
tsrm_virtual_cwd.h https://github.com/tstarling/hiphop-php.git | C Header | 339 lines
                    
134CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat);
                    
135# define php_sys_stat(path, buf) php_sys_stat_ex(path, buf, 0)
                    
136# define php_sys_lstat(path, buf) php_sys_stat_ex(path, buf, 1)
                    
136# define php_sys_lstat(path, buf) php_sys_stat_ex(path, buf, 1)
                    
137CWD_API int php_sys_readlink(const char *link, char *target, size_t target_len);
                    
138#else
                    
138#else
                    
139# define php_sys_stat stat
                    
140# define php_sys_lstat lstat
                    
274#define VCWD_RMDIR(pathname) virtual_rmdir(pathname TSRMLS_CC)
                    
275#define VCWD_OPENDIR(pathname) virtual_opendir(pathname TSRMLS_CC)
                    
276#define VCWD_POPEN(command, type) virtual_popen(command, type TSRMLS_CC)
                    
310#define VCWD_RMDIR(pathname) rmdir(pathname)
                    
311#define VCWD_OPENDIR(pathname) opendir(pathname)
                    
312#define VCWD_POPEN(command, type) popen(command, type)
                    
                
MaildirFolderTest.php https://github.com/caseyw/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');
                    
                
file_helper.php https://github.com/Sa-ryong/Stadioom-php.git | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
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)))
                    
                
mediamosa_integrity_check.php https://github.com/www-madcap-nl/mediamosa.git | PHP | 303 lines
                    
1<?php
                    
2// $Id$
                    
28 * @file
                    
29 * Integrity check PHP file
                    
30 */
                    
40  while (($path = getcwd()) !== '/') {
                    
41    if (file_exists('index.php') && is_dir('includes')) {
                    
42      break;
                    
113  $dir = mediamosa_configuration_storage::get_data_location();
                    
114  $dh = opendir($dir);
                    
115  $missing_db_mediafiles = array();
                    
123    // Open the sub directory.
                    
124    $fh = opendir($dir . DIRECTORY_SEPARATOR . $folder);
                    
125    while (($file = readdir($fh)) !== FALSE) {
                    
226  $dir = mediamosa_configuration_storage::get_still_location();
                    
227  $dh = opendir($dir);
                    
228
                    
                
Filesystem.php https://github.com/Enrise/Zend.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25// require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
118            if (file_exists($path)) {
                    
119                // require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
122                if (!self::mkdirs($path)) {
                    
123                    // require_once 'Zend/Search/Lucene/Exception.php';
                    
124                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
156
                    
157        $dirContent = opendir( $this->_dirPath );
                    
158        while (($file = readdir($dirContent)) !== false) {
                    
                
Compass.php https://github.com/vivid-planet/library.git | PHP | 511 lines
                    
1<?php
                    
2require_once dirname(__FILE__) . '/../ExtensionInterface.php';
                    
94            $dir = array_pop($directories);
                    
95            if ($handle = opendir($dir)) {
                    
96                while (false !== ($file = readdir($handle))) {
                    
                
ck-gallery.php https://github.com/UberGallery/ck-gallery.git | PHP | 277 lines
                    
1<?php // CK-Gallery by Chris Kankiewicz <http://www.chriskankiewicz.com>
                    
2
                    
14
                    
15  // *** DO NOT EDIT ANYTHING BELOW HERE UNLESS YOU ARE A PHP NINJA ***
                    
16
                    
59    // Clean up thumbnail directory
                    
60    if ($dirHandle = opendir($thumbsDir)) {
                    
61      while (($file = readdir($dirHandle)) !== false) {
                    
75    // Create array from gallery directory
                    
76    if ($dirHandle = opendir($galleryDir)) {
                    
77      while (($file = readdir($dirHandle)) !== false) {
                    
166    if ($imgPerPage > 0 && $imgPerPage < $totalImages) {
                    
167      $pageName = basename($_SERVER["PHP_SELF"]); // Get current page file name
                    
168      echo("    <ul id=\"ck-pagination\" style=\"margin: 0 !important; padding: 0 !important;\">\r\n");
                    
196    if ($verCheck == "1") {
                    
197      $verInfo = @file("http://code.web-geek.net/ck-gallery/version-check.php?ver=$version");
                    
198      $verInfo = @implode($verInfo);
                    
                
list_generator.php https://github.com/mackensen/moodle.git | PHP | 336 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
198        if (is_dir($directory)) {
                    
199            if ($handle = opendir($directory)) {
                    
200                $eventfiles = scandir($directory);
                    
295        // Create a link for further event detail.
                    
296        $url = new \moodle_url('eventdetail.php', array('eventname' => $eventfullpath));
                    
297        $link = \html_writer::link($url, $eventfullpath::get_name_with_info());
                    
                
MaildirTest.php https://github.com/mrbanzai/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) {
                    
                
checkbase.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 231 lines
                    
1<?php
                    
2// main global to hold our checks
                    
13	// should return true for good/okay/acceptable, false for bad/not-okay/unacceptable
                    
14	public function check( $php_files, $css_files, $other_files );
                    
15
                    
21$dir = 'checks';
                    
22foreach (glob(dirname(__FILE__). "/{$dir}/*.php") as $file) {
                    
23	include $file;
                    
25
                    
26function run_themechecks($php, $css, $other) {
                    
27	global $themechecks;
                    
30		if ($check instanceof themecheck) {
                    
31			$pass = $pass & $check->check($php, $css, $other);
                    
32		}
                    
155	if ( is_dir( $start_dir ) ) {
                    
156		$fh = opendir( $start_dir );
                    
157		while ( ( $file = readdir( $fh ) ) !== false ) {
                    
                
Ftp.php https://github.com/katzgrau/notes.git | PHP | 618 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
425
                    
426		// Permissions can only be set when running PHP 5
                    
427		if ( ! function_exists('ftp_chmod'))
                    
489		// Open the local file path
                    
490		if ($fp = @opendir($locpath))
                    
491		{
                    
559							'text',
                    
560							'php',
                    
561							'phps',
                    
561							'phps',
                    
562							'php4',
                    
563							'js',
                    
                
filebrowser.php https://bitbucket.org/chiamingyen/cmsimple-and-plugins.git | PHP | 431 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @version $Id: filebrowser.php 292 2012-09-21 16:24:11Z cmb69 $
                    
5 */
                    
139
                    
140        $handle = opendir($dir);
                    
141        if ($handle) {
                    
165
                    
166        $handle = opendir($directory);
                    
167        if ($handle) {
                    
250// 設法在 Windows 能夠儲存中文命名檔案
                    
251if (substr(php_uname(), 0, 7) == "Windows")
                    
252{
                    
307// 設法在 Windows 能夠儲存中文命名檔案
                    
308if (substr(php_uname(), 0, 7) == "Windows")
                    
309{
                    
                
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";
                    
356
                    
                
upload.php https://gitlab.com/plusplusminus/aevitas | 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' );
                    
197
                    
                
filestore_funcs.php https://github.com/Nerutiz/trades.git | PHP | 366 lines
                    
1<?php
                    
2/**
                    
70	$files = array();
                    
71	$dirHandle = opendir($rootDir."/".$dir);
                    
72	if ($dirHandle) {
                    
159		$children = array();
                    
160		$dirHandle = opendir($fullPath);
                    
161		while($cFile = readdir($dirHandle)) {
                    
301
                    
302		$dirHandle = opendir($fullDir);
                    
303		while ($file = readdir($dirHandle)) {
                    
365}
                    
366// No closing PHP tag on purpose.  Do not want it to print whitepace and thus not allow setting headers later.
                    
367
                    
                
cache.php https://github.com/weissms/owb-mirror.git | PHP | 429 lines
                    
1<?php
                    
2function wp_cache_add($key, $data, $flag = '', $expire = 0) {
                    
52
                    
53define('CACHE_SERIAL_HEADER', "<?php\n/*");
                    
54define('CACHE_SERIAL_FOOTER', "*/\n?".">");
                    
149
                    
150		$cache_file = $this->cache_dir.$this->get_group_dir($group)."/".$this->hash($id).'.php';
                    
151		if (!file_exists($cache_file)) {
                    
203
                    
204			if (!file_exists($this->cache_dir.$make_dir."index.php")) {
                    
205				$file_perms = $perms & 0000666;
                    
205				$file_perms = $perms & 0000666;
                    
206				@ touch($this->cache_dir.$make_dir."index.php");
                    
207				@ chmod($this->cache_dir.$make_dir."index.php", $file_perms);
                    
224
                    
225			$dh = @ opendir($dir);
                    
226			if (!$dh)
                    
                
view.php https://bitbucket.org/tumivn/phpexamples.git | PHP | 437 lines
                    
1<?php
                    
2/**
                    
5 *
                    
6 * @copyright Copyright (C) 2009 PHPRO.ORG. All rights reserved.
                    
7 *
                    
7 *
                    
8 * @license new bsd http://www.opensource.org/licenses/bsd-license.php
                    
9 * @package Core
                    
399
                    
400		if ($handle = opendir($deleteDir))
                    
401		{
                    
                
acp_portal_menu.php https://github.com/Lucky65/phpBB-Portal-XL-5.0-italian.git | PHP | 251 lines
                    
1<?php
                    
2/** 
                    
3*
                    
4* @name acp_portal_menu.php
                    
5* @package phpBB3 Portal XL
                    
5* @package phpBB3 Portal XL
                    
6* @version $Id: acp_portal_menu.php,v 1.1.1.1 2009/05/15 05:14:21 damysterious Exp $
                    
7*
                    
22		global $db, $user, $auth, $template, $cache;
                    
23		global $config, $portal_config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
                    
24
                    
135				*/
                    
136				if ($dir = opendir($phpbb_root_path . 'portal/images/icon_menu')) {
                    
137					$block_images = array();
                    
161				*/
                    
162				if ($dir = opendir($phpbb_root_path . 'portal/images/icon_menu')) {
                    
163					$imagescontent = array();
                    
                
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)){
                    
19        
                    
                
class.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 directory
                    
                
QpContentEncoderAcceptanceTest.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        }
                    
                
CLocale.php https://bitbucket.org/aagraz/yii.git | PHP | 472 lines
                    
1<?php
                    
2/**
                    
76			$dataPath=self::$dataPath===null ? dirname(__FILE__).DIRECTORY_SEPARATOR.'data' : self::$dataPath;
                    
77			$folder=@opendir($dataPath);
                    
78			while(($file=@readdir($folder))!==false)
                    
80				$fullPath=$dataPath.DIRECTORY_SEPARATOR.$file;
                    
81				if(substr($file,-4)==='.php' && is_file($fullPath))
                    
82					$locales[]=substr($file,0,-4);
                    
100		$dataPath=self::$dataPath===null ? dirname(__FILE__).DIRECTORY_SEPARATOR.'data' : self::$dataPath;
                    
101		$dataFile=$dataPath.DIRECTORY_SEPARATOR.$this->_id.'.php';
                    
102		if(is_file($dataFile))
                    
                
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 enabled
                    
                
Directory.cxx https://github.com/chrismullins/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());
                    
241
                    
                
Filesystem.php https://github.com/ayamyau/concrete5.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 23964 2011-05-03 14:20:58Z adamlundrigan $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
118            if (file_exists($path)) {
                    
119                require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
122                if (!self::mkdirs($path)) {
                    
123                    require_once 'Zend/Search/Lucene/Exception.php';
                    
124                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
156
                    
157        $dirContent = opendir( $this->_dirPath );
                    
158        while (($file = readdir($dirContent)) !== false) {
                    
                
propal.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',
                    
                
Artichow.class.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 321 lines
                    
1<?php
                    
2/*
                    
12// Some useful files
                    
13require_once ARTICHOW."/Component.class.php";
                    
14require_once ARTICHOW."/Image.class.php";
                    
14require_once ARTICHOW."/Image.class.php";
                    
15require_once ARTICHOW."/common.php";
                    
16
                    
16
                    
17require_once ARTICHOW."/inc/Grid.class.php";
                    
18require_once ARTICHOW."/inc/Tools.class.php";
                    
18require_once ARTICHOW."/inc/Tools.class.php";
                    
19require_once ARTICHOW."/inc/Drawer.class.php";
                    
20require_once ARTICHOW."/inc/Math.class.php";
                    
20require_once ARTICHOW."/inc/Math.class.php";
                    
21require_once ARTICHOW."/inc/Tick.class.php";
                    
22require_once ARTICHOW."/inc/Axis.class.php";
                    
                
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');
                    
                
Filesystem.php https://github.com/grjones/qframe.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
118            if (file_exists($path)) {
                    
119                require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
122                if (!self::mkdirs($path)) {
                    
123                    require_once 'Zend/Search/Lucene/Exception.php';
                    
124                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
156
                    
157        $dirContent = opendir( $this->_dirPath );
                    
158        while (($file = readdir($dirContent)) !== false) {
                    
                
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) {
                    
                
Theme_Manager.class.php https://bitbucket.org/pavolve/masterskayaludmila.git | PHP | 380 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
4 *
                    
5 * @package PhpMyAdmin
                    
6 */
                    
9 *
                    
10 * @package PhpMyAdmin
                    
11 */
                    
202        // force a change of a dummy session variable to avoid problems
                    
203        // with the caching of phpmyadmin.css.php
                    
204        $GLOBALS['PMA_Config']->set('theme-update', $this->theme->id);
                    
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);
                    
                
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";
                    
                
CFileHelper.php https://github.com/LosYear/FluentCMS.git | 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.
                    
                
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);
                    
49
                    
                
index.php https://github.com/andalit/torrents.git | PHP | 428 lines
                    
29
                    
30		"U_FORUM_INDEX" => append_sid("../index.php"),
                    
31		"U_ADMIN_INDEX" => append_sid("index.php?pane=right"))
                    
88
                    
89	if ($avatar_dir = @opendir($phpbb_root_path . $bb_cfg['avatar_path']))
                    
90	{
                    
143	// This code is heavily influenced by a similar routine
                    
144	// in phpMyAdmin 2.2.0
                    
145	//
                    
314						"U_WHOIS_IP" => "http://www.dnsstuff.com/tools/whois/?ip=$reg_ip",
                    
315						"U_USER_PROFILE" => append_sid("admin_users.php?mode=edit&amp;" . POST_USERS_URL . "=" . $onlinerow_reg[$i]['user_id']),
                    
316					));
                    
406		'S_FRAME_NAV'        => "index.php?pane=left",
                    
407		'S_FRAME_MAIN'       => "index.php?pane=right",
                    
408	));
                    
                
PhpStreamWrapperInterface.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   */
                    
                
Filesystem.php https://github.com/ParveenArora/AddressHunter.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
118            if (file_exists($path)) {
                    
119                require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
122                if (!self::mkdirs($path)) {
                    
123                    require_once 'Zend/Search/Lucene/Exception.php';
                    
124                    throw new Zend_Search_Lucene_Exception("Can't create directory '$path'.");
                    
156
                    
157        $dirContent = opendir( $this->_dirPath );
                    
158        while (($file = readdir($dirContent)) !== false) {
                    
                
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) {
                    
                
MboxFolderTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 417 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: MboxFolderTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
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) {
                    
                
Fetchmail.php https://github.com/Excito/imp.git | PHP | 457 lines
                    
1<?php
                    
2/**
                    
5 *
                    
6 * $Horde: imp/lib/Fetchmail.php,v 1.41.8.15 2009/01/06 15:24:03 jan Exp $
                    
7 *
                    
68        $driver = basename($driver);
                    
69        require_once dirname(__FILE__) . '/Fetchmail/' . $driver . '.php';
                    
70        $class = 'IMP_Fetchmail_' . $driver;
                    
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');
                    
                
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) {
                    
                
Upgrade.php https://github.com/yamamoto123/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))
                    
                
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
                    
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;'>&nbsp;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     &lt;script&gt;<br/>
                    
128     &nbsp;&nbsp;  addImage("testPicture","pictureMap","draw.php?ImageMap=get");<br/>
                    
129     &lt;/script&gt;<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;
                    
168
                    
                
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'.");
                    
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/godber/PHXdata-Website.git | PHP | 333 lines
                    
1<?php
                    
2/**
                    
11if(!defined('DOKU_DISABLE_GZIP_OUTPUT')) define('DOKU_DISABLE_GZIP_OUTPUT',1); // we gzip ourself here
                    
12require_once(DOKU_INC.'inc/init.php');
                    
13
                    
237    $exts = array();
                    
238    if($dh = opendir(DOKU_INC.'lib/images/fileicons')){
                    
239        while(false !== ($file = readdir($dh))){
                    
                
captcha_helper.php https://gitlab.com/atokkecenk/baitulmal | 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;
                    
                
fns_tinybrowser.php https://github.com/ibnoe/Microweber.git | PHP | 432 lines
                    
17	{
                    
18	?><div class="alert<?php echo $notify['type'][$i]; ?>"><?php echo $notify['message'][$i]; ?></div><br /><?php
                    
19	}
                    
164function form_open($name,$class,$url,$parameters){
                    
165?><form name="<?php echo $name; ?>" class="<?php echo $class; ?>" method="post" action="<?php echo $url.$parameters; ?>">
                    
166<?php
                    
170function form_select($options,$name,$label,$current,$auto){
                    
171if ($label) {?><label for="<?php echo $name; ?>"><?php echo $label; ?></label><?php } 
                    
172?><select name="<?php echo $name; ?>" <?php if ($auto) {?>onchange="this.form.submit();"<?php }?>>
                    
191if ($label) {?><label for="<?php echo $name; ?>"><?php echo $label; ?></label><?php } ?>
                    
192<input type="text" name="<?php echo $name; ?>" size="<?php echo $size; ?>" maxlength="<?php echo $maxlength; ?>" value="<?php echo $value; ?>" /><?php
                    
193}
                    
196function form_submit_button($name,$label,$class) {
                    
197?><button <?php if ($class) {?>class="<?php echo $class; ?>"<?php } ?>type="submit" name="<?php echo $name; ?>"><?php echo $label; ?></button>
                    
198</form>
                    
                
index.php https://github.com/marc1706/Board3-Portal-Gallery-Block.git | PHP | 462 lines
                    
25
                    
26$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../';
                    
27$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
28include($phpbb_root_path . 'common.'.$phpEx);
                    
29include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
                    
30include($phpbb_root_path . 'includes/acp/acp_modules.' . $phpEx);
                    
30include($phpbb_root_path . 'includes/acp/acp_modules.' . $phpEx);
                    
31include($phpbb_root_path . 'includes/acp/acp_bbcodes.' . $phpEx);
                    
32include($phpbb_root_path . 'includes/db/db_tools.' . $phpEx);
                    
86	{
                    
87		global $db, $config, $phpEx, $phpbb_root_path;
                    
88
                    
391		echo '	<div id="page-footer">';
                    
392		echo '		Powered by phpBB &copy; 2000, 2002, 2005, 2007 <a href="http://www.phpbb.com/">phpBB Group</a>';
                    
393		echo '	</div>';
                    
                
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', '>=') &&
                    
                
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>
                    
                
init_model.php https://github.com/ibnoe/Microweber.git | PHP | 404 lines
                    
1<?php
                    
2
                    
69
                    
70		$cache_file = $dir2.'index.php';
                    
71		if(is_file($cache_file) == true){
                    
78			touch($cache_file);
                    
79			$handle = (@opendir ( $dir ));
                    
80			//require_once ($dir . 'options.php');
                    
82				if (stristr ( $file, 'disabled' ) == false) {
                    
83					if (stristr ( $file, 'php' ) == TRUE) {
                    
84						$checksum = @md5_file ( $dir . $file );
                    
                
perl.php https://github.com/GCheung55/mootools-website.git | 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',
                    
                
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 . "&amp;sub=$option");
                    
305
                    
392		echo '	<div id="page-footer">';
                    
393		echo '		Powered by phpBB &copy; 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 );
                    
                
AdminToolsLostAndFoundPage.class.php https://github.com/TacHawkes/net.hawkes.admintools.git | PHP | 314 lines
                    
1<?php
                    
2/**
                    
19 */
                    
20require_once(WCF_DIR.'lib/page/SortablePage.class.php');
                    
21
                    
77		$this->activeSubTabMenuItem = 'filesystem';
                    
78		require_once(WCF_DIR.'lib/acp/admintools/lostandfound/BackupFilesystemLostAndFoundItem.class.php');
                    
79		BackupFilesystemLostAndFoundItem::createVirtualIDSpace();
                    
82		chdir(WCF_DIR.'acp/backup');
                    
83		$dh= opendir(WCF_DIR.'acp/backup');
                    
84		if (!$dh) {
                    
112			case 'database' :
                    
113				require_once(WCF_DIR.'lib/acp/admintools/lostandfound/AttachmentsDatabaseLostAndFoundItem.class.php');
                    
114				$this->markedItems = intval(count(AttachmentsDatabaseLostAndFoundItem::getMarkedItems('attachmentsDatabase')));
                    
141			case 'filesystem' :
                    
142				require_once(WCF_DIR.'lib/acp/admintools/lostandfound/AttachmentsFilesystemLostAndFoundItem.class.php');
                    
143				AttachmentsFilesystemLostAndFoundItem::createVirtualIDSpace();
                    
                
mf_install.php https://github.com/leocaseiro/Magic-Fields-2.git | PHP | 212 lines
                    
1<?php 
                    
2/** 
                    
9    
                    
10    require_once(ABSPATH.'wp-admin/includes/upgrade.php');
                    
11
                    
150    if (is_dir(MF_CACHE_DIR)) {
                    
151      if ($dh = opendir(MF_CACHE_DIR)) {
                    
152        while (($file = readdir($dh)) !== false) {
                    
163    if (is_dir(MF_FILES_DIR)) {
                    
164      if ($dh = opendir(MF_FILES_DIR)) {
                    
165        while (($file = readdir($dh)) !== false) {
                    
203    $current = get_option('active_plugins');
                    
204    $plugin = plugin_basename(MF_PATH.'/main.php');
                    
205    array_splice($current, array_search( $plugin, $current), 1 );
                    
208
                    
209    wp_redirect('options-general.php');
                    
210  }
                    
                
file_helper.php https://github.com/katzgrau/notes.git | PHP | 465 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
125		
                    
126		if ( ! $current_dir = @opendir($path))
                    
127			return;
                    
175				
                    
176		if ($fp = @opendir($source_dir))
                    
177		{
                    
228				
                    
229		if ($fp = @opendir($source_dir))
                    
230		{
                    
329 *
                    
330 * Translates a file extension into a mime type based on config/mimes.php. 
                    
331 * Returns FALSE if it can't determine the type, or open the mime config file
                    
                
admin.php https://github.com/nistormihai/Newscoop.git | PHP | 305 lines
                    
1<?php
                    
2
                    
28
                    
29    include_once "./common.php";
                    
30    include_once "./include/users.php";
                    
66    ob_start();
                    
67    if($module!="help") include_once "./include/admin/header.php";
                    
68    @include_once "./include/admin/$module.php";
                    
68    @include_once "./include/admin/$module.php";
                    
69    if($module!="help") include_once "./include/admin/footer.php";
                    
70    ob_end_flush();
                    
83    }
                    
84    // phorum_get_language_info and phorum_get_template_info moved to common.php (used in the cc too)
                    
85
                    
217          // read in all existing files
                    
218          $dh=opendir($upgradepath);
                    
219          $upgradefiles=array();
                    
                
file.php https://github.com/MaxLustig/phpbb3.git | PHP | 730 lines
                    
22*/
                    
23class phpbb_cache_driver_file extends phpbb_cache_driver_base
                    
24{
                    
83				global $phpbb_root_path;
                    
84				include($phpbb_root_path . 'includes/functions.' . $phpEx);
                    
85			}
                    
244	{
                    
245		global $phpEx;
                    
246
                    
699				global $phpbb_root_path;
                    
700				include($phpbb_root_path . 'includes/functions.' . $phpEx);
                    
701			}
                    
718			global $phpbb_root_path, $phpEx;
                    
719			include($phpbb_root_path . 'includes/functions.' . $phpEx);
                    
720		}
                    
                
Registry.php https://bitbucket.org/dnejedly/eaparts.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) 2012 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) {
                    
                
Makefile.PL https://github.com/trevor/ImageMagick.git | Perl | 271 lines
                    
6#
                    
7#    http://www.imagemagick.org/script/license.php
                    
8#
                    
77  foreach my $bin (@bindir) {
                    
78    opendir(my $bindir, $bin) or die qq{Cannot opendir $bin: $!};
                    
79    my @dlls = map {catfile($bin, $_)} grep /^\S*magick[^\+]\S*?\.dll$/i, readdir $bindir;
                    
103# 1) You need to have installed ImageMagick Windows binaries from
                    
104#    http://www.imagemagick.org/script/binary-releases.php#windows
                    
105#
                    
                
backup_general_helper.class.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 305 lines
                    
1<?php
                    
2
                    
31 *
                    
32 * TODO: Finish phpdocs
                    
33 */
                    
83
                    
84        if (!$dir = opendir($path)) {
                    
85            return array();
                    
281        global $CFG;
                    
282        require_once($CFG->dirroot . '/backup/util/helper/convert_helper.class.php');
                    
283
                    
                
plugin_interface.lib.php https://bitbucket.org/pavolve/masterskayaludmila.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)) {
                    
                
spx_copy_move.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 263 lines
                    
1<?php
                    
2/*------------------------------------------------------------------------------
                    
12
                    
13     The Original Code is fun_copy_move.php, released on 2003-03-31.
                    
14
                    
54	
                    
55	$handle = @opendir(get_abs_dir($dir));
                    
56	if($handle===false) return;		// unable to open dir
                    
131//-->
                    
132</script><?php
                    
133		
                    
142		// Form for Target Directory & New Names
                    
143		echo "<br /><br /><FORM name=\"selform\" method=\"post\" action=\"spip.php\"><TABLE>\n";
                    
144		list($arg, $hash) = make_hash('copy_move', $dir);
                    
230			if(@is_link($abs_item) || @is_file($abs_item)) {
                    
231				// check file-exists to avoid error with 0-size files (PHP 4.3.0)
                    
232				$ok=@copy($abs_item,$abs_new_item);	//||@file_exists($abs_new_item);
                    
                
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.'&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 = '';
                    
                
skinsExport.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 187 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * skinsExport.php
                    
5 *
                    
63
                    
64    if ($handle = opendir( $pathBase )) {
                    
65        while (false !== ($file = readdir( $handle ))) {
                    
92    //verify if plugin exists,
                    
93    $pluginClassFilename = PATH_PLUGINS . $pluginName . PATH_SEP . 'class.' . $pluginName . '.php';
                    
94    if ( !is_file ( $pluginClassFilename ) ) {
                    
102
                    
103    //$tar->createModify( $pathHome . PATH_SEP . $pluginName . '.php' ,'', $pathHome);
                    
104    addTarFolder( $tar, $pathBase, $pathHome );
                    
155$fields['PMversion'] = System::getVersion();
                    
156savePluginFile( 'skinPluginMainClass', $pathHome . $id . '.php', $fields );
                    
157
                    
                
MaildirMessageOldTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 192 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: MaildirMessageOldTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Mail/Storage/Maildir.php';
                    
27
                    
30 */
                    
31require_once 'Zend/Config.php';
                    
32
                    
58 */
                    
59class Zend_Mail_MaildirMessageOldTest extends PHPUnit_Framework_TestCase
                    
60{
                    
83            $count = 0;
                    
84            $dh = opendir($this->_tmpdir);
                    
85            while (readdir($dh) !== false) {
                    
                
 

Source

Language