PageRenderTime 441ms queryTime 37ms sortTime 24ms getByIdsTime 146ms findMatchingLines 163ms

100+ results results for 'php is_dir repo:foxadmin/ReloadCMS' (441 ms)

Not the results you expected?
Migrator.php https://bitbucket.org/salimane/ruckusing-migrations.git | PHP | 324 lines
                    
1<?php
                    
2/**
                    
75        // We only want one row but we cannot assume that we are using MySQL and use a LIMIT statement
                    
76        // as it is not part of the SQL standard. Thus we have to select all rows and use PHP to return
                    
77        // the record we need
                    
215        $valid_files = array();
                    
216        if (!is_dir($directory)) {
                    
217            printf("\n\tMigrations directory (%s doesn't exist, attempting to create.", $directory);
                    
230            for ($i = 0; $i < $file_cnt; $i++) {
                    
231                if (preg_match('/^(\d+)_(.*)\.php$/', $files[$i], $matches)) {
                    
232                    if (count($matches) == 3) {
                    
247            $migration = $valid_files[$i];
                    
248            if (preg_match('/^(\d+)_(.*)\.php$/', $migration, $matches)) {
                    
249                $files[] = array(
                    
                
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
                    
99        }
                    
100        if (is_dir($dir) || $dir === '/') {
                    
101            return true;
                    
118    {
                    
119        if (!is_dir($path)) {
                    
120            if (file_exists($path)) {
                    
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'.");
                    
                
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;
                    
147    foreach (_memberships_civix_glob("$subdir/$pattern") as $match) {
                    
148      if (!is_dir($match)) {
                    
149        $result[] = $match;
                    
155        if ($entry{0} == '.') {
                    
156        } elseif (is_dir($path)) {
                    
157          $todos[] = $path;
                    
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) {
                    
                
util.php https://gitlab.com/imxieke/XCloud | PHP | 280 lines
                    
33    $path = HOME.$path;
                    
34    if (is_dir($path)) $path = rtrim($path,'/').'/';
                    
35    return $path;
                    
133    $base_path = get_path_this(BASIC_PATH).'/'; 
                    
134    if(!function_exists('iconv')) $error.= '<li>'.$L['php_env_error_iconv'].'</li>';
                    
135    if(!function_exists('mb_convert_encoding')) $error.= '<li>'.$L['php_env_error_mb_string'].'</li>';
                    
135    if(!function_exists('mb_convert_encoding')) $error.= '<li>'.$L['php_env_error_mb_string'].'</li>';
                    
136    if(!version_compare(PHP_VERSION,'5.0','>=')) $error.= '<li>'.$L['php_env_error_version'].'</li>';
                    
137    if(!function_exists('file_get_contents')) $error.='<li>'.$L['php_env_error_file'].'</li>';
                    
138    if(!path_writable(BASIC_PATH)) $error.= '<li>'.$base_path.'	'.$L['php_env_error_path'].'</li>';
                    
139    if(!path_writable(BASIC_PATH.'data')) $error.= '<li>'.$base_path.'data	'.$L['php_env_error_path'].'</li>';
                    
140    if(!path_writable(BASIC_PATH.'data/system')) $error.= '<li>'.$base_path.'data/system	'.$L['php_env_error_path'].'</li>';
                    
140    if(!path_writable(BASIC_PATH.'data/system')) $error.= '<li>'.$base_path.'data/system	'.$L['php_env_error_path'].'</li>';
                    
141    if(!path_writable(BASIC_PATH.'data/User')) $error.= '<li>'.$base_path.'data/User	'.$L['php_env_error_path'].'</li>';
                    
142    if(!path_writable(BASIC_PATH.'data/thumb')) $error.= '<li>'.$base_path.'data/thumb	'.$L['php_env_error_path'].'</li>';
                    
                
Filesystem.php https://github.com/Doap/iCms---intelligent-Content-management-system.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
                    
97        }
                    
98        if (is_dir($dir) || $dir === '/') {
                    
99            return true;
                    
116    {
                    
117        if (!is_dir($path)) {
                    
118            if (file_exists($path)) {
                    
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');
                    
                
Filesystem.php https://gitlab.com/vincent.perdereau/picandparts | PHP | 364 lines
                    
1<?php
                    
2/**
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25#require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
99        }
                    
100        if (is_dir($dir) || $dir === '/') {
                    
101            return true;
                    
118    {
                    
119        if (!is_dir($path)) {
                    
120            if (file_exists($path)) {
                    
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'.");
                    
                
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
                    
97        }
                    
98        if (is_dir($dir) || $dir === '/') {
                    
99            return true;
                    
116    {
                    
117        if (!is_dir($path)) {
                    
118            if (file_exists($path)) {
                    
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');
                    
                
Filesystem.php https://github.com/skobbler/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
                    
97        }
                    
98        if (is_dir($dir) || $dir === '/') {
                    
99            return true;
                    
116    {
                    
117        if (!is_dir($path)) {
                    
118            if (file_exists($path)) {
                    
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');
                    
                
admin.ninjaxplorer.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 270 lines
                    
1<?php
                    
2// ensure this file is being included by a parent file
                    
4/**
                    
5 * MAIN FILE! (formerly known as index.php)
                    
6 * 
                    
6 * 
                    
7 * @version $Id: admin.joomlaxplorer.php 99 2008-04-20 15:10:20Z soeren $
                    
8 * 
                    
80/*if (!$acl->acl_check( 'administration', 'config', 'users', $user->usertype )) {
                    
81	$mainframe->redirect( 'index2.php', _NOT_AUTH );
                    
82}   */
                    
86if ($myRealGid != 25) {
                    
87    $mainframe->redirect( 'index2.php', _NOT_AUTH );
                    
88}
                    
98foreach($filelist as $file ) {
                    
99	if( is_dir( $file ) ) continue;
                    
100	$filepath = str_replace( $path.'/', '', $file );
                    
                
Catalog.php https://github.com/hukumonline/quart80.git | PHP | 297 lines
                    
1<?php
                    
2class Pandamp_Modules_Dms_Catalog_Model_Row_Catalog extends Zend_Db_Table_Row_Abstract
                    
175		try {
                    
176			if(is_dir($sDir)) {
                    
177				rmdir($sDir);
                    
177				rmdir($sDir);
                    
178				// check remote is_dir
                    
179				if(is_dir($sDir_Remote))
                    
                
gengo-import.php https://github.com/evo42/Aloha-Editor.git | PHP | 290 lines
                    
1<?php
                    
2require_once 'nls.php';
                    
250
                    
251    $out = "<?php\n\n";
                    
252    foreach ($parsed as $key => $value) {
                    
258    $path = $import_dir.$language.'/';
                    
259    if (!is_dir($path)) {
                    
260        mkdir($path);
                    
262    
                    
263    $path .= $section.'.php';
                    
264    //echo $path."\n";
                    
280    }
                    
281    $path = $import_dir.$language.'/'.$old.'.php';
                    
282    echo "\nwrite data to old path: $path \n";
                    
                
Test.php https://bitbucket.org/Nemcio/kloxo-mr.git | PHP | 275 lines
                    
18 * @copyright  1997-2006 The PHP Group
                    
19 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
20 * @version    CVS: $Id: Test.php,v 1.1.1.1 2009/05/08 18:30:19 root Exp $
                    
38 * @copyright  1997-2006 The PHP Group
                    
39 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
40 * @version    Release: 1.4.9
                    
60                    'shortopt' => 'i',
                    
61                    'doc' => 'actual string of settings to pass to php in format " -d setting=blah"',
                    
62                    'arg' => 'SETTINGS'
                    
81                    'shortopt' => 'u',
                    
82                    'doc' => 'Search parameters for AllTests.php, and use that to run phpunit-based tests',
                    
83                ),
                    
85            'doc' => '[testfile|dir ...]
                    
86Run regression tests with PHP\'s regression testing script (run-tests.php).',
                    
87            ),
                    
                
utils.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 313 lines
                    
1<?php
                    
2
                    
6    if (!file_exists($dir)) return true;
                    
7    if (!is_dir($dir)) return unlink($dir);
                    
8    foreach (scandir($dir) as $item) {
                    
44    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
45	require_once('php_image_magician.php');
                    
46	$magicianObj = new imageLib($imgfile);
                    
55    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
56	require_once('php_image_magician.php');
                    
57	$magicianObj = new imageLib($imgfile);
                    
83            $currentFile = $cleanPath . $t;
                    
84            if (is_dir($currentFile)) {
                    
85                $size = foldersize($currentFile);
                    
107function check_files_extensions_on_path($path,$ext){
                    
108    if(!is_dir($path)){
                    
109        $fileinfo = pathinfo($path);
                    
                
Test.php https://bitbucket.org/shashwat_dinasource/bitscentral.git | PHP | 275 lines
                    
18 * @copyright  1997-2006 The PHP Group
                    
19 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
20 * @version    CVS: $Id: Test.php,v 1.9 2006/02/03 22:28:08 cellog Exp $
                    
38 * @copyright  1997-2006 The PHP Group
                    
39 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
40 * @version    Release: 1.4.11
                    
60                    'shortopt' => 'i',
                    
61                    'doc' => 'actual string of settings to pass to php in format " -d setting=blah"',
                    
62                    'arg' => 'SETTINGS'
                    
81                    'shortopt' => 'u',
                    
82                    'doc' => 'Search parameters for AllTests.php, and use that to run phpunit-based tests',
                    
83                ),
                    
85            'doc' => '[testfile|dir ...]
                    
86Run regression tests with PHP\'s regression testing script (run-tests.php).',
                    
87            ),
                    
                
wp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 264 lines
                    
1<?php
                    
2// Pre-2.6 compatibility
                    
5
                    
6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) )
                    
7	return true;
                    
10
                    
11include( WPCACHEHOME . 'wp-cache-base.php');
                    
12
                    
26
                    
27require_once( WPCACHEHOME . 'wp-cache-phase2.php');
                    
28
                    
28
                    
29$plugins = glob( $wp_cache_plugins_dir . '/*.php' );
                    
30if( is_array( $plugins ) ) {
                    
48function gzip_accepted(){
                    
49	if( ini_get( 'zlib.output_compression' ) ) // don't compress WP-Cache data files when PHP is already doing it
                    
50		return false;
                    
                
TranslationDebugCommand.php https://gitlab.com/Isaki/le331.fr | PHP | 268 lines
                    
1<?php
                    
2
                    
59
                    
60  <info>php %command.full_name% en AcmeDemoBundle</info>
                    
61
                    
63
                    
64  <info>php %command.full_name% --domain=messages en AcmeDemoBundle</info>
                    
65
                    
67
                    
68  <info>php %command.full_name% --only-missing en AcmeDemoBundle</info>
                    
69
                    
71
                    
72  <info>php %command.full_name% --only-unused en AcmeDemoBundle</info>
                    
73
                    
75
                    
76  <info>php %command.full_name% en</info>
                    
77
                    
                
ez_sql_core.php https://github.com/LamCiuLoeng/BookShare.git | PHP | 552 lines
                    
1<?php
                    
2
                    
290			{
                    
291				if ( ! is_dir($this->cache_dir) )
                    
292				{
                    
                
icons.lib.php https://github.com/lhl/songclub.git | PHP | 124 lines
                    
1<?php if (!defined(JZ_SECURE_ACCESS)) die ('Security breach detected.');
                    
2	/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *     
                    
7	* Jinzora can be integrated into a CMS site, run as a standalone application, 
                    
8	* or integrated into any PHP website.  It is released under the GNU GPL.
                    
9	* 
                    
18	* Contributors:
                    
19	* Please see http://www.jinzora.org/modules.php?op=modload&name=jz_whois&file=index
                    
20	*
                    
107	if ($jinzora_skin == 'cms-theme'){
                    
108		$dis_dir = $disabled_dir;
                    
109	} else {
                    
109	} else {
                    
110		$dis_dir = $image_dir;
                    
111	}
                    
112
                    
113	$img_add_dis = '<img src="'. $dis_dir. 'add-disabled.gif" border=0 alt="'. word("Add to"). '" title="'. word("Add to"). '">';
                    
114	$img_delete_dis = '<img src="'. $dis_dir. 'delete-disabled.gif" border=0 alt="'. word("Delete"). '" title="'. word("Delete"). '">';
                    
                
MaildirFolderTest.php https://github.com/mfairchild365/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirFolderTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
47
                    
48        if (!is_dir($this->_originalDir . '/cur/')) {
                    
49            $this->markTestSkipped('You have to unpack maildir.tar in Zend/Mail/_files/test.maildir/ '
                    
203        try {
                    
204            // explicit call of __toString() needed for PHP < 5.2
                    
205            $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');
                    
235
                    
236            // explicit call of __toString() needed for PHP < 5.2
                    
237            $found_folders[$folder->__toString()] = $localName;
                    
257
                    
258            // explicit call of __toString() needed for PHP < 5.2
                    
259            $found_folders[$folder->__toString()] = $localName;
                    
                
unpack.php https://gitlab.com/milo-ft/osTicket | PHP | 270 lines
                    
46        for (;;) {
                    
47            if (is_dir($start . '/upload')) break;
                    
48            $start .= '/..';
                    
54        # Read the main.inc.php script
                    
55        $bootstrap_php = $this->destination . '/bootstrap.php';
                    
56        $lines = explode("\n", file_get_contents($bootstrap_php));
                    
75        }
                    
76        if (!file_put_contents($bootstrap_php, implode("\n", $lines)))
                    
77            die("Unable to configure location of INCLUDE_DIR in bootstrap.php\n");
                    
178                    continue;
                    
179                if (!is_dir($destination))
                    
180                    mkdir($destination, 0755, true);
                    
206        $pipes = array();
                    
207        $php = proc_open('php', array(
                    
208            0 => array('pipe', 'r'),
                    
                
Version.php https://github.com/Cesarh/symfony-sandbox.git | PHP | 326 lines
                    
1<?php
                    
2/*
                    
30 *
                    
31 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
32 * @link        www.doctrine-project.org
                    
191        }
                    
192        if (is_dir($path)) {
                    
193            $path = realpath($path);
                    
                
mkdist.php https://bitbucket.org/luobailiang/php-src.git | PHP | 548 lines
                    
15
                    
16$dist_dir = $build_dir . "/php-" . phpversion();
                    
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
                    
210/* the core dll */
                    
211copy("$build_dir/php.exe", "$dist_dir/php.exe");
                    
212copy("$build_dir/$phpdll", "$dist_dir/$phpdll");
                    
250$general_files = array(
                    
251	"php.gif"			=>	"php.gif",
                    
252);
                    
461}
                    
462copy('run-tests.php', $test_dir . '/run-test.php');
                    
463
                    
495
                    
496	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
                    
497	 * broken out of the tarballs */
                    
                
upload.php https://gitlab.com/plusplusminus/aevitas | PHP | 245 lines
                    
1<?php
                    
2
                    
7/**
                    
8 * upload.php
                    
9 *
                    
63
                    
64		if ( ! is_dir( $target_dir ) ) {
                    
65			if ( ! wp_mkdir_p( $target_dir ) ) {
                    
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
                    
                
index.php https://gitlab.com/Ltaimao/wecenter | PHP | 422 lines
                    
1<?php
                    
2/*
                    
14
                    
15require_once('../system/init.php');
                    
16
                    
18
                    
19if (file_exists(AWS_PATH . 'config/install.lock.php'))
                    
20{
                    
20{
                    
21	H::redirect_msg(load_class('core_lang')->_t('您的程序已经安装, 要重新安装请删除 system/config/install.lock.php'));
                    
22}
                    
33
                    
34		if (version_compare(PHP_VERSION, ENVIRONMENT_PHP_VERSION, '>=') AND get_cfg_var('safe_mode') == false)
                    
35		{
                    
35		{
                    
36			$system_require['php'] = TRUE;
                    
37		}
                    
                
modphpthumb.class.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 205 lines
                    
5 */
                    
6require_once MODX_CORE_PATH.'model/phpthumb/phpthumb.class.php';
                    
7/**
                    
13 */
                    
14class modPhpThumb extends phpThumb {
                    
15
                    
42        $this->setParameter('config_nohotlink_erase_image',(boolean)$this->modx->getOption('phpthumb_nohotlink_erase_image',$this->config,true));
                    
43        $this->setParameter('config_nohotlink_text_message',(string)$this->modx->getOption('phpthumb_nohotlink_text_message',$this->config,'Off-server thumbnailing is not allowed'));
                    
44        $this->setParameter('config_nooffsitelink_enabled',(boolean)$this->modx->getOption('phpthumb_nooffsitelink_enabled',$this->config,false));
                    
179            if ($getimagesize) {
                    
180                header('Content-Type: '.phpthumb_functions::ImageTypeToMIMEtype($getimagesize[2]));
                    
181            } elseif (eregi('\.ico$', $this->cache_filename)) {
                    
197        }
                    
198        $downloadfilename = phpthumb_functions::SanitizeFilename(@$_GET['sia'] ? $_GET['sia'] : (@$_GET['down'] ? $_GET['down'] : 'phpThumb_generated_thumbnail'.(@$_GET['f'] ? $_GET['f'] : 'jpg')));
                    
199        if (@$downloadfilename) {
                    
                
PropelMigrationManager.php https://gitlab.com/Isaki/le331.fr | PHP | 369 lines
                    
1<?php
                    
2
                    
10
                    
11require_once dirname(__FILE__) . '/../model/Table.php';
                    
12require_once dirname(__FILE__) . '/../model/Column.php';
                    
12require_once dirname(__FILE__) . '/../model/Column.php';
                    
13require_once dirname(__FILE__) . '/PropelSQLParser.php';
                    
14require_once dirname(__FILE__) . '/../../../runtime/lib/Propel.php';
                    
75        $adapterClass = ucfirst($adapter) . 'Platform';
                    
76        require_once sprintf('%s/../platform/%s.php',
                    
77            dirname(__FILE__),
                    
211
                    
212        if (is_dir($path)) {
                    
213            $files = scandir($path);
                    
214            foreach ($files as $file) {
                    
215                if (preg_match('/^PropelMigration_(\d+)\.php$/', $file, $matches)) {
                    
216                    $migrationTimestamps[] = (integer) $matches[1];
                    
                
Compass.php https://github.com/vivid-planet/library.git | PHP | 511 lines
                    
1<?php
                    
2require_once dirname(__FILE__) . '/../ExtensionInterface.php';
                    
100                    $file = $dir . $file;
                    
101                    if (is_dir($file)) {
                    
102                        $directory_path = $file . DIRECTORY_SEPARATOR;
                    
                
resourcelib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 281 lines
                    
1<?php
                    
2
                    
79        if (!$file = $fs->get_file_by_hash(sha1($fullpath))) {
                    
80            if ($file = $fs->get_file_by_hash(sha1("$fullpath/.")) and $file->is_directory()) {
                    
81                if ($file = $fs->get_file_by_hash(sha1("$fullpath/index.htm"))) {
                    
146    global $CFG;
                    
147    require_once("$CFG->libdir/filelib.php");
                    
148
                    
153    $matches = null;
                    
154    if (preg_match("|^(.*)/[a-z]*file.php(\?file=)?(/[^&\?#]*)|", $fullurl, $matches)) {
                    
155        // remove the special moodle file serving hacks so that the *file.php is ignored
                    
163
                    
164    if (strpos($fullurl, '.php')){
                    
165        // we do not really know what is in general php script
                    
196    $matches = null;
                    
197    if (preg_match("|^(.*)/[a-z]*file.php(\?file=)?(/.*)|", $fullurl, $matches)) {
                    
198        // remove the special moodle file serving hacks so that the *file.php is ignored
                    
                
AdminApPageBuilderPositions.php https://gitlab.com/ptisky/API_prestashop | PHP | 398 lines
                    
1<?php
                    
2/**
                    
16
                    
17require_once(_PS_MODULE_DIR_.'appagebuilder/classes/ApPageBuilderPositionsModel.php');
                    
18
                    
96
                    
97		if (!is_dir($this->position_css_folder))
                    
98		{
                    
98		{
                    
99			if (!is_dir($this->theme_dir.'css/modules/'.$this->module_name))
                    
100				mkdir($this->theme_dir.'css/modules/'.$this->module_name, 0755);
                    
102		}
                    
103		if (!is_dir($this->position_js_folder))
                    
104		{
                    
104		{
                    
105			if (!is_dir($this->theme_dir.'js/modules/'.$this->module_name))
                    
106				mkdir($this->theme_dir.'js/modules/'.$this->module_name, 0755);
                    
                
tsrm_virtual_cwd.h https://github.com/tstarling/hiphop-php.git | C Header | 339 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | PHP Version 5                                                        |
                    
4   +----------------------------------------------------------------------+
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 1997-2013 The PHP Group                                |
                    
6   +----------------------------------------------------------------------+
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
134CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat);
                    
135# define php_sys_stat(path, buf) php_sys_stat_ex(path, buf, 0)
                    
136# define php_sys_lstat(path, buf) php_sys_stat_ex(path, buf, 1)
                    
                
Filesystem.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25// require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
97        }
                    
98        if (is_dir($dir) || $dir === '/') {
                    
99            return true;
                    
116    {
                    
117        if (!is_dir($path)) {
                    
118            if (file_exists($path)) {
                    
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');
                    
                
list_generator.php https://github.com/mackensen/moodle.git | PHP | 336 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
197        $finaleventfiles = array();
                    
198        if (is_dir($directory)) {
                    
199            if ($handle = opendir($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());
                    
                
all.php https://github.com/Yannix/ImprovedZipArchive.git | PHP | 271 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
5 * Requirements:
                    
6 * - PHP 5 with extensions: spl, zip, pcre, iconv, mbstring
                    
7 * - SimpleTest (not bundled)
                    
15
                    
16if (PHP_SAPI != 'cli') {
                    
17    die("It is a very bad idea to run these tests with a non CLI sapi.");
                    
19
                    
20if (strpos(PHP_OS, 'WIN') === 0) {
                    
21    set_include_path('C:/AMP/;.'); // To find external SimpleTest
                    
54
                    
55require_once('simpletest/unit_tester.php');
                    
56require_once('simpletest/reporter.php');
                    
56require_once('simpletest/reporter.php');
                    
57require_once('simpletest/simpletest/colortext_reporter.php');
                    
58
                    
                
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
                    
97        }
                    
98        if (is_dir($dir) || $dir === '/') {
                    
99            return true;
                    
116    {
                    
117        if (!is_dir($path)) {
                    
118            if (file_exists($path)) {
                    
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');
                    
                
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;
                    
118    // Is it '.' or '..'?
                    
119    if (!is_dir($dir . DIRECTORY_SEPARATOR . $folder) || strpos($folder, '..') === 0 || strpos($folder, '.') === 0 || drupal_strlen($folder) > 1) {
                    
120      continue;
                    
230    // Is it '.' or '..'?
                    
231    if (!is_dir($dir . DIRECTORY_SEPARATOR . $folder) || strpos($folder, '..') === 0 || strpos($folder, '.') === 0 || drupal_strlen($folder) > 1) {
                    
232      continue;
                    
                
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
                    
97        }
                    
98        if (is_dir($dir) || $dir === '/') {
                    
99            return true;
                    
116    {
                    
117        if (!is_dir($path)) {
                    
118            if (file_exists($path)) {
                    
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');
                    
                
ImageModule.php https://gitlab.com/RonLab1987/YupePlusClear | PHP | 400 lines
                    
1<?php
                    
2
                    
202
                    
203        if (!is_dir($uploadPath) || !is_writable($uploadPath)) {
                    
204            $messages[WebModule::CHECK_ERROR][] = [
                    
                
MaildirTest.php https://github.com/mrbanzai/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
45        $this->_originalMaildir = __DIR__ . '/../_files/test.maildir/';
                    
46        if (!is_dir($this->_originalMaildir . '/cur/')) {
                    
47            $this->markTestSkipped('You have to unpack maildir.tar in Zend/Mail/_files/test.maildir/ '
                    
                
file.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 339 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * $Header: /repository/pear/Log/Log/file.php,v 1.46 2006/12/07 04:15:02 jon Exp $
                    
4 *
                    
12 * 
                    
13 * @author  Jon Parise <jon@php.net>
                    
14 * @author  Roman Neuhauser <neuhauser@bellavista.cz>
                    
17 *
                    
18 * @example file.php    Using the file handler.
                    
19 */
                    
26     */
                    
27    var $_filename = 'php.log';
                    
28
                    
142        } else {
                    
143            $this->_eol = (strstr(PHP_OS, 'WIN')) ? "\r\n" : "\n";
                    
144        }
                    
                
type.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 261 lines
                    
1<?php 
                    
2defined('C5_EXECUTE') or die("Access Denied.");
                    
142			$h = $this->getPackageHandle();
                    
143			$url = (is_dir(DIR_PACKAGES . '/' . $h)) ? BASE_URL . DIR_REL : ASSETS_URL; 
                    
144			$url = $url . '/' . DIRNAME_PACKAGES . '/' . $h . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' . $this->getAttributeTypeHandle() . $ff;
                    
173			$url = BASE_URL . DIR_REL . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' .  $atHandle . '/' . $_file;
                    
174		} else if ($_file == FILENAME_ATTRIBUTE_CONTROLLER && file_exists(DIR_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' .  DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php')) {
                    
175			$file = DIR_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' .  DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php';
                    
180			$pkgHandle = PackageList::getHandle($pkgID);
                    
181			$dirp = is_dir(DIR_PACKAGES . '/' . $pkgHandle) ? DIR_PACKAGES . '/' . $pkgHandle : DIR_PACKAGES_CORE . '/' . $pkgHandle;
                    
182			if (file_exists($dirp . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' .  DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '/' . $_file)) {
                    
184				$url = BASE_URL . DIR_REL . '/' .DIRNAME_PACKAGES. '/' .$pkgHandle . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' .  $atHandle . '/' . $_file;
                    
185			} else if ($_file == FILENAME_ATTRIBUTE_CONTROLLER && file_exists($dirp . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' .  DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php')) {
                    
186				$file = $dirp . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' .  DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php';
                    
193				$url = ASSETS_URL . '/' . DIRNAME_MODELS . '/' . DIRNAME_ATTRIBUTES . '/' . DIRNAME_ATTRIBUTE_TYPES . '/' .  $atHandle . '/' . $_file;
                    
194			} else if ($_file == FILENAME_ATTRIBUTE_CONTROLLER && file_exists(DIR_MODELS_CORE . '/' . DIRNAME_ATTRIBUTES . '/' .  DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php')) {
                    
195				$file = DIR_MODELS_CORE . '/' . DIRNAME_ATTRIBUTES . '/' .  DIRNAME_ATTRIBUTE_TYPES . '/' . $atHandle . '.php';
                    
                
ProjectTaskTest.php https://github.com/gustavor/lore.git | PHP | 339 lines
                    
8 *
                    
9 * CakePHP : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2011, Cake Software Foundation, Inc.
                    
15 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc.
                    
16 * @link          http://cakephp.org CakePHP Project
                    
17 * @package       Cake.Test.Case.Console.Command.Task
                    
17 * @package       Cake.Test.Case.Console.Command.Task
                    
18 * @since         CakePHP v 1.3.0
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
123		$this->assertTrue(is_dir($this->Task->args[0]), 'No project dir');
                    
124		$file = new File($path . DS  . 'webroot' . DS . 'index.php');
                    
125		$contents = $file->read();
                    
216
                    
217		$file = new File($path . 'Config' . DS . 'core.php');
                    
218		$contents = $file->read();
                    
                
ThemeController.php https://gitlab.com/makkooz/nikestreetbeat | PHP | 321 lines
                    
1<?php
                    
2/**
                    
84
                    
85        if (!is_dir($this->_dir)) {
                    
86            FileHelper::createDirectory($this->_dir, 0755);
                    
88
                    
89        if (!is_dir($this->_thumbDir)) {
                    
90            FileHelper::createDirectory($this->_thumbDir, 0755);
                    
95        foreach ($arrThemes as $theme) {
                    
96            if (is_dir($this->_dir . $theme) && $theme !== '.' && $theme !== '..' && $theme !== $installed) {
                    
97                $themes[] = $this->getConfig($theme);
                    
121
                    
122        if (!is_dir($this->_dir)) {
                    
123            FileHelper::createDirectory($this->_dir, 0755);
                    
125
                    
126        if (!is_dir($this->_tmp)) {
                    
127            FileHelper::createDirectory($this->_tmp, 0755);
                    
                
CaBundle.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 291 lines
                    
195        // Vulnerable:
                    
196        // PHP 5.3.0 - PHP 5.3.27
                    
197        // PHP 5.4.0 - PHP 5.4.22
                    
199        if (
                    
200               (PHP_VERSION_ID < 50400 && PHP_VERSION_ID >= 50328)
                    
201            || (PHP_VERSION_ID < 50500 && PHP_VERSION_ID >= 50423)
                    
201            || (PHP_VERSION_ID < 50500 && PHP_VERSION_ID >= 50423)
                    
202            || (PHP_VERSION_ID < 50600 && PHP_VERSION_ID >= 50507)
                    
203        ) {
                    
244        // Based on testcase in https://github.com/php/php-src/commit/c1224573c773b6845e83505f717fbf820fc18415
                    
245        // changes in https://github.com/php/php-src/commit/76a7fd893b7d6101300cc656058704a73254d593
                    
246        $cert = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVwRENDQTR5Z0F3SUJBZ0lKQUp6dThyNnU2ZUJjTUEwR0NTcUdTSWIzRFFFQkJRVUFNSUhETVFzd0NRWUQKVlFRR0V3SkVSVEVjTUJvR0ExVUVDQXdUVG05eVpISm9aV2x1TFZkbGMzUm1ZV3hsYmpFUU1BNEdBMVVFQnd3SApTOE9Ed3Jac2JqRVVNQklHQTFVRUNnd0xVMlZyZEdsdmJrVnBibk14SHpBZEJnTlZCQXNNRmsxaGJHbGphVzkxCmN5QkRaWEowSUZObFkzUnBiMjR4SVRBZkJnTlZCQU1NR0cxaGJHbGphVzkxY3k1elpXdDBhVzl1WldsdWN5NWsKWlRFcU1DZ0dDU3FHU0liM0RRRUpBUlliYzNSbFptRnVMbVZ6YzJWeVFITmxhM1JwYjI1bGFXNXpMbVJsTUhVWQpaREU1TnpBd01UQXhNREF3TURBd1dnQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBCkFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEKQUFBQUFBQVhEVEUwTVRFeU9ERXhNemt6TlZvd2djTXhDekFKQmdOVkJBWVRBa1JGTVJ3d0dnWURWUVFJREJOTwpiM0prY21obGFXNHRWMlZ6ZEdaaGJHVnVNUkF3RGdZRFZRUUhEQWRMdzRQQ3RteHVNUlF3RWdZRFZRUUtEQXRUClpXdDBhVzl1UldsdWN6RWZNQjBHQTFVRUN3d1dUV0ZzYVdOcGIzVnpJRU5sY25RZ1UyVmpkR2x2YmpFaE1COEcKQTFVRUF3d1liV0ZzYVdOcGIzVnpMbk5sYTNScGIyNWxhVzV6TG1SbE1Tb3dLQVlKS29aSWh2Y05BUWtCRmh0egpkR1ZtWVc0dVpYTnpaWEpBYzJWcmRHbHZibVZwYm5NdVpHVXdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCCkR3QXdnZ0VLQW9JQkFRRERBZjNobDdKWTBYY0ZuaXlFSnBTU0RxbjBPcUJyNlFQNjV1c0pQUnQvOFBhRG9xQnUKd0VZVC9OYSs2ZnNnUGpDMHVLOURaZ1dnMnRIV1dvYW5TYmxBTW96NVBINlorUzRTSFJaN2UyZERJalBqZGhqaAowbUxnMlVNTzV5cDBWNzk3R2dzOWxOdDZKUmZIODFNTjJvYlhXczROdHp0TE11RDZlZ3FwcjhkRGJyMzRhT3M4CnBrZHVpNVVhd1Raa3N5NXBMUEhxNWNNaEZHbTA2djY1Q0xvMFYyUGQ5K0tBb2tQclBjTjVLTEtlYno3bUxwazYKU01lRVhPS1A0aWRFcXh5UTdPN2ZCdUhNZWRzUWh1K3ByWTNzaTNCVXlLZlF0UDVDWm5YMmJwMHdLSHhYMTJEWAoxbmZGSXQ5RGJHdkhUY3lPdU4rblpMUEJtM3ZXeG50eUlJdlZBZ01CQUFHalFqQkFNQWtHQTFVZEV3UUNNQUF3CkVRWUpZSVpJQVliNFFnRUJCQVFEQWdlQU1Bc0dBMVVkRHdRRUF3SUZvREFUQmdOVkhTVUVEREFLQmdnckJnRUYKQlFjREFqQU5CZ2txaGtpRzl3MEJBUVVGQUFPQ0FRRUFHMGZaWVlDVGJkajFYWWMrMVNub2FQUit2SThDOENhRAo4KzBVWWhkbnlVNGdnYTBCQWNEclk5ZTk0ZUVBdTZacXljRjZGakxxWFhkQWJvcHBXb2NyNlQ2R0QxeDMzQ2tsClZBcnpHL0t4UW9oR0QySmVxa2hJTWxEb214SE83a2EzOStPYThpMnZXTFZ5alU4QVp2V01BcnVIYTRFRU55RzcKbFcyQWFnYUZLRkNyOVRuWFRmcmR4R1ZFYnY3S1ZRNmJkaGc1cDVTanBXSDErTXEwM3VSM1pYUEJZZHlWODMxOQpvMGxWajFLRkkyRENML2xpV2lzSlJvb2YrMWNSMzVDdGQwd1lCY3BCNlRac2xNY09QbDc2ZHdLd0pnZUpvMlFnClpzZm1jMnZDMS9xT2xOdU5xLzBUenprVkd2OEVUVDNDZ2FVK1VYZTRYT1Z2a2NjZWJKbjJkZz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K';
                    
269            count($output) === 3
                    
270            && $output[0] === sprintf('string(%d) "%s"', strlen(PHP_VERSION), PHP_VERSION)
                    
271            && $output[1] === 'string(27) "stefan.esser@sektioneins.de"'
                    
                
File.php https://gitlab.com/fridezlucas/utils | PHP | 268 lines
                    
1<?php
                    
2
                    
95function getFiles($dirPath = __DIR__, $fileExtension = "*") {
                    
96    if (is_dir($dirPath)) {
                    
97        $files = glob($dirPath . "/*." . $fileExtension);
                    
110function getDirs($dirPath = __DIR__) {
                    
111    if (is_dir($dirPath)) {
                    
112        $dirs = glob($dirPath . "/*", GLOB_ONLYDIR);
                    
165        $json = json_encode($xml);
                    
166        //Transforme la chaîne JSON en tableau PHP
                    
167        $xmlArray = json_decode($json, TRUE);
                    
                
Hooks.php https://github.com/chaoskaizer/CVbot-community-update.git | PHP | 231 lines
                    
1<?php
                    
2$this->AddHook('before_harvest_crops', 'Wall');
                    
23
                    
24    include('Plugins/Wall/Wall_class.php');
                    
25    $DB = new LocalDB();
                    
71     //      $vFolder = "tmp_dir/GetGift/";
                    
72     //      if (!is_dir($vFolder)) { @mkdir($vFolder, 0777, true);  }
                    
73     //      // make file name.
                    
126          // buttons  Array  
                    
127          // href  String Reference  http://apps.facebook.com/cityville/neighbors.php?uid=20
                    
128          // text  String  Send collectables!
                    
201       $vFolder = 'tmp_dir/Wall/';
                    
202       if (!is_dir($vFolder)) { @mkdir($vFolder, 0777, true);  }
                    
203       // date
                    
                
Generator.php https://github.com/raymanuk/moodle.git | PHP | 339 lines
                    
1<?php
                    
2
                    
145		// directory does not exist
                    
146		if( !is_dir($dir) ){
                    
147			// FIXME: create the dir automatically?
                    
                
Transformer.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 317 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * phpDocumentor
                    
4 *
                    
4 *
                    
5 * PHP Version 5.3
                    
6 *
                    
7 * @copyright 2010-2014 Mike van Riel / Naenius (http://www.naenius.com)
                    
8 * @license   http://www.opensource.org/licenses/mit-license.php MIT
                    
9 * @link      http://phpdoc.org
                    
11
                    
12namespace phpDocumentor\Transformer;
                    
13
                    
13
                    
14use phpDocumentor\Transformer\Event\WriterInitializationEvent;
                    
15use phpDocumentor\Transformer\Writer\Initializable;
                    
                
init_model.php https://github.com/ibnoe/Microweber.git | PHP | 404 lines
                    
1<?php
                    
2
                    
43	function db_setup($plugin_dir = false) {
                    
44		if (is_dir ( $plugin_dir ) == true) {
                    
45			$dir = $plugin_dir . '/db/';
                    
53
                    
54		if (is_dir ( $dir ) == false) {
                    
55			@mkdir_recursive ( $dir );
                    
56		}
                    
57		if (is_dir ( $dir2 ) == false) {
                    
58			@mkdir_recursive ( $dir2 );
                    
69
                    
70		$cache_file = $dir2.'index.php';
                    
71		if(is_file($cache_file) == true){
                    
75		
                    
76		if (is_dir ( $dir ) == true) {
                    
77			
                    
                
ProjectTask.php https://bitbucket.org/vishallogiciel/admin-bootstrap.git | PHP | 447 lines
                    
7 *
                    
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
9 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @since         CakePHP(tm) v 1.2
                    
69		$response = false;
                    
70		while (!$response && is_dir($project) === true && file_exists($project . 'Config' . 'core.php')) {
                    
71			$prompt = __d('cake_console', '<warning>A project already exists in this location:</warning> %s Overwrite?', $project);
                    
91			} else {
                    
92				$this->err(__d('cake_console', 'Unable to generate random seed for \'Security.cipherSeed\', you should change it in %s', APP . 'Config' . DS . 'core.php'));
                    
93				$success = false;
                    
145/**
                    
146 * Checks PHP's include_path for CakePHP.
                    
147 *
                    
                
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
                    
97        }
                    
98        if (is_dir($dir) || $dir === '/') {
                    
99            return true;
                    
116    {
                    
117        if (!is_dir($path)) {
                    
118            if (file_exists($path)) {
                    
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');
                    
                
ps_module.php https://github.com/Shigaru/shigaru.git | PHP | 387 lines
                    
1<?php
                    
2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
                    
4*
                    
5* @version $Id: ps_module.php 1660 2009-02-22 17:05:02Z tkahl $
                    
6* @package VirtueMart
                    
8* @copyright Copyright (C) 2004-2007 soeren - All rights reserved.
                    
9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
                    
10* VirtueMart is free software. This version may have been modified pursuant
                    
13* other free or open source software licenses.
                    
14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
                    
15*
                    
312		global $mosConfig_absolute_path;
                    
313		$classes = vmReadDirectory( CLASSPATH, '\.php$', false, true );
                    
314		$array = array();
                    
315		foreach ($classes as $class ) {
                    
316			if( is_dir( $class ) || $class[0] == '.' ) continue;
                    
317			$classname = basename( $class, '.php' );
                    
                
Loader.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 481 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
12 *
                    
13 * Install this file as application/third_party/MX/Loader.php
                    
14 *
                    
82			/* only add a module path if it exists */
                    
83			if (is_dir($module_path = $location.$module.'/') && ! in_array($module_path, $this->_ci_model_paths))
                    
84			{
                    
352		{
                    
353			echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
                    
354		}
                    
480/** load the CI class for Modular Separation **/
                    
481(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';
                    
                
FileStorage.php https://gitlab.com/geeta7/drupal | PHP | 340 lines
                    
1<?php
                    
2
                    
197    $dir = $this->getCollectionDirectory();
                    
198    if (!is_dir($dir)) {
                    
199      return array();
                    
202
                    
203    // glob() directly calls into libc glob(), which is not aware of PHP stream
                    
204    // wrappers. Same for \GlobIterator (which additionally requires an absolute
                    
                
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
                    
93        }
                    
94        if (is_dir($dir) || $dir === '/') {
                    
95            return true;
                    
112    {
                    
113        if (!is_dir($path)) {
                    
114            if (file_exists($path)) {
                    
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');
                    
                
Think.class.php https://gitlab.com/fangfangchen/xianpipa | PHP | 344 lines
                    
39
                    
40      $runtimefile  = RUNTIME_PATH.APP_MODE.'~runtime.php';
                    
41      if(!APP_DEBUG && Storage::has($runtimefile)){
                    
47          // 读取应用模式
                    
48          $mode   =   include is_file(CONF_PATH.'core.php')?CONF_PATH.'core.php':MODE_PATH.APP_MODE.'.php';
                    
49          // 加载核心文件
                    
80          // 加载应用行为定义
                    
81          if(is_file(CONF_PATH.'tags.php'))
                    
82              // 允许应用增加开发模式配置定义
                    
110          $module     =   defined('BIND_MODULE') ? BIND_MODULE : C('DEFAULT_MODULE');
                    
111          if(!is_dir(APP_PATH.$module) || !is_dir(LOG_PATH)){
                    
112              // 检测应用目录结构
                    
299            if(IS_CLI){
                    
300                exit(iconv('UTF-8','gbk',$e['message']).PHP_EOL.'FILE: '.$e['file'].'('.$e['line'].')'.PHP_EOL.$e['trace']);
                    
301            }
                    
                
swift.php https://gitlab.com/Red54/core | PHP | 582 lines
                    
1<?php
                    
2/**
                    
136
                    
137		if ($this->is_dir($path)) {
                    
138			return false;
                    
160
                    
161		if ($path !== '.' && $this->is_dir($path)) {
                    
162			$path .= '/';
                    
170
                    
171		if (!$this->is_dir($path) || !$this->isDeletable($path)) {
                    
172			return false;
                    
180
                    
181			if ($this->is_dir($path . '/' . $file)) {
                    
182				$this->rmdir($path . '/' . $file);
                    
238			$path = '';
                    
239		} else if ($this->is_dir($path)) {
                    
240			$path .= '/';
                    
                
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 */
                    
146                }
                    
147                if (is_dir($dir . $file)) {
                    
148                    $this->folders[] = $this->currentDirectory . $file;
                    
171                }
                    
172                if (is_dir($directory . $file)) {
                    
173                    $folders[] = str_replace($this->browseBase, '', $directory . $file);
                    
250// 設法在 Windows 能夠儲存中文命名檔案
                    
251if (substr(php_uname(), 0, 7) == "Windows")
                    
252{
                    
307// 設法在 Windows 能夠儲存中文命名檔案
                    
308if (substr(php_uname(), 0, 7) == "Windows")
                    
309{
                    
                
Tar.php https://bitbucket.org/acidel/buykoala.git | PHP | 372 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) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
56     * Skip first level parent directory. Example:
                    
57     *   use test/fip.php instead test/test/fip.php;
                    
58     *
                    
82    {
                    
83        $this->_currentFile = $file .((is_dir($file) && substr($file, -1)!=DS)?DS:'');
                    
84        return $this;
                    
104    {
                    
105        if ($this->_skipRoot && is_dir($path)) {
                    
106            $this->_currentPath = $path.(substr($path, -1)!=DS?DS:'');
                    
                
home.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 404 lines
                    
1<?php   
                    
2class ControllerCommonHome extends Controller {   
                    
38		// Check install directory exists
                    
39 		if (is_dir(dirname(DIR_APPLICATION) . '/install')) {
                    
40			$this->data['error_install'] = $this->language->get('error_install');
                    
                
Clover.php https://gitlab.com/judielsm/Handora | PHP | 284 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This file is part of the PHP_CodeCoverage package.
                    
4 *
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
11/**
                    
12 * Generates a Clover XML logfile from an PHP_CodeCoverage object.
                    
13 *
                    
15 */
                    
16class PHP_CodeCoverage_Report_Clover
                    
17{
                    
18    /**
                    
19     * @param  PHP_CodeCoverage $coverage
                    
20     * @param  string           $target
                    
                
Main.php https://gitlab.com/Skull3x/pocketmine-plugins | PHP | 368 lines
                    
1<?php
                    
2/**
                    
39	public function onEnable(){
                    
40		if (!is_dir($this->getDataFolder())) mkdir($this->getDataFolder());
                    
41		mc::plugin_init($this,$this->getFile());
                    
                
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
                    
204            $packageDir = $config->magento_root . DS . Mage_Connect_Package::PACKAGE_XML_DIR;
                    
205            if (is_dir($packageDir)) {
                    
206                $entries = scandir($packageDir);
                    
209                    $info = pathinfo($path);
                    
210                    if ($entry == '.' || $entry == '..' || is_dir($path) || $info['extension'] != 'xml') {
                    
211                        continue;
                    
                
model.php https://gitlab.com/edgarze188/sunrise | PHP | 280 lines
                    
1<?php
                    
2/**
                    
120        }
                    
121        if (is_dir($parent_dir . '/' . $file_name) == TRUE) {
                    
122          $file = array();
                    
122          $file = array();
                    
123          $file['is_dir'] = TRUE;
                    
124          $file['name'] = $file_name;
                    
135          $file = array();
                    
136          $file['is_dir'] = FALSE;
                    
137          $file['name'] = $file_name;
                    
185          $file = array();
                    
186          $file['is_dir'] = FALSE;
                    
187          $file_name_array = explode('/', $file_meta['file']);
                    
                
backuplib.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 294 lines
                    
1<?php //$Id$
                    
2    //This php script contains all the stuff to backup/restore
                    
88        $class = 'assignment_' . $assignment->assignmenttype;
                    
89        require_once($CFG->dirroot . '/mod/assignment/lib.php');
                    
90        require_once($CFG->dirroot . '/mod/assignment/type/' . $assignment->assignmenttype . '/assignment.class.php');
                    
138                $class = 'assignment_' . $assignment->assignmenttype;
                    
139                require_once($CFG->dirroot . '/mod/assignment/lib.php');
                    
140                require_once($CFG->dirroot . '/mod/assignment/type/' . $assignment->assignmenttype . '/assignment.class.php');
                    
164            //Only if it exists !! Thanks to Daniel Miksik.
                    
165            if (is_dir($CFG->dataroot."/".$preferences->backup_course."/".$CFG->moddata."/assignment")) {
                    
166                $status = backup_copy_file($CFG->dataroot."/".$preferences->backup_course."/".$CFG->moddata."/assignment",
                    
187            //Only if it exists !! Thanks to Daniel Miksik.
                    
188            if (is_dir($CFG->dataroot."/".$preferences->backup_course."/".$CFG->moddata."/assignment/".$instanceid)) {
                    
189                $status = backup_copy_file($CFG->dataroot."/".$preferences->backup_course."/".$CFG->moddata."/assignment/".$instanceid,
                    
250        //Link to the list of assignments
                    
251        $buscar="/(".$base."\/mod\/assignment\/index.php\?id\=)([0-9]+)/";
                    
252        $result= preg_replace($buscar,'$@ASSIGNMENTINDEX*$2@$',$content);
                    
                
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
                    
344
                    
345				if ( @is_dir( $full_path ) ) {
                    
346					$size = $this->dirsize( $full_path, $size, $timeout_time );
                    
409		@fputs( $fp, pack( 'L', $expires_at ) );
                    
410		@fputs( $fp, '<?php exit; ?>' );
                    
411		@fputs( $fp, (int)$value );
                    
446
                    
447		if ( !@is_dir( $dir ) ) {
                    
448			if ( !Util_File::mkdir_from( $dir, W3TC_CACHE_DIR ) )
                    
                
Autoload.php https://bitbucket.org/daveschwan/ronin-group.git | PHP | 248 lines
                    
78            'phpunit_extensions_grouptestsuite' => '/Extensions/GroupTestSuite.php',
                    
79            'phpunit_extensions_phpttestcase' => '/Extensions/PhptTestCase.php',
                    
80            'phpunit_extensions_phpttestcase_logger' => '/Extensions/PhptTestCase/Logger.php',
                    
80            'phpunit_extensions_phpttestcase_logger' => '/Extensions/PhptTestCase/Logger.php',
                    
81            'phpunit_extensions_phpttestsuite' => '/Extensions/PhptTestSuite.php',
                    
82            'phpunit_extensions_repeatedtest' => '/Extensions/RepeatedTest.php',
                    
133            'phpunit_framework_constraint_stringcontains' => '/Framework/Constraint/StringContains.php',
                    
134            'phpunit_framework_constraint_stringendswith' => '/Framework/Constraint/StringEndsWith.php',
                    
135            'phpunit_framework_constraint_stringmatches' => '/Framework/Constraint/StringMatches.php',
                    
183            'phpunit_util_log_tap' => '/Util/Log/TAP.php',
                    
184            'phpunit_util_php' => '/Util/PHP.php',
                    
185            'phpunit_util_php_default' => '/Util/PHP/Default.php',
                    
185            'phpunit_util_php_default' => '/Util/PHP/Default.php',
                    
186            'phpunit_util_php_windows' => '/Util/PHP/Windows.php',
                    
187            'phpunit_util_printer' => '/Util/Printer.php',
                    
                
Diff.php https://github.com/mlinsey/Gitdocs.git | PHP | 456 lines
                    
1<?php
                    
2/**
                    
3
                    
4http://pear.php.net/package/Text_Diff
                    
5
                    
8 *
                    
9 * The original PHP version of this code was written by Geoffrey T. Dairiki
                    
10 * <dairiki@dairiki.org>, and is used/adapted with his permission.
                    
11 *
                    
12 * $Horde: framework/Text_Diff/Diff.php,v 1.11.2.12 2009/01/06 15:23:41 jan Exp $
                    
13 *
                    
17 * See the enclosed file COPYING for license information (LGPL). If you did
                    
18 * not receive this file, see http://opensource.org/licenses/lgpl-license.php.
                    
19 *
                    
54
                    
55        require_once 'Diff/Engine/' . $engine . '.php';
                    
56        $class = 'Text_Diff_Engine_' . $engine;
                    
                
ImportMAB2.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 390 lines
                    
1<?php
                    
2/**
                    
9
                    
10	if ( !file_exists( "$IP/LocalSettings.php" ) ) {
                    
11	    $IP = dirname( __FILE__ ) . '/../../phase3';
                    
13}
                    
14require_once( "$IP/maintenance/Maintenance.php" );
                    
15
                    
153
                    
154		$dir = "php://stdin";
                    
155
                    
155
                    
156		if ( is_dir( $dir ) ) {
                    
157			$this->importDir( $dir, $recursive, $limit );
                    
178
                    
179			if ( is_dir( $dir . $file ) && $recursive ) {
                    
180				$this->importDir( $dir . $file, $recursive, $limit );
                    
                
configuration.php https://github.com/EdwinDW/DwRaidPlanner.git | PHP | 476 lines
                    
55	// check local
                    
56	include(RAIDER_BASE_PATH.'version.php');
                    
57	$local = explode('.', $version);
                    
75		if($update) {
                    
76			$update = sprintf($pLang['coUpdate'], 'http://www.phpraider.com/index.php?action=tpmod;dl=0',
                    
77			$remote[0], $remote[1], $remote[2], $local[0], $local[1], $local[2]);
                    
81	} else {
                    
82		$update = sprintf($pLang['coUpdateUndetermined'], 'http://www.phpraider.com/index.php?action=tpmod;dl=0');
                    
83	}
                    
93			if (preg_match("/^[0-9a-z]+$/si", $filename) == 1) {
                    
94				if (is_dir(RAIDER_GAME_BASE_PATH.$filename)) {
                    
95					$files[] = $filename;
                    
119	while(false != ($filename = readdir($dh))) {
                    
120		if (!is_dir(RAIDER_LANGUAGE_PATH.$filename)) {
                    
121			if (preg_match("/^([0-9a-z]+).php$/si", $filename, $language) == 1) {
                    
                
SplFileInfo.php https://github.com/tstarling/hiphop-php.git | PHP | 432 lines
                    
4/**
                    
5 * ( excerpt from http://php.net/manual/en/class.splfileinfo.php )
                    
6 *
                    
190  /**
                    
191   * ( excerpt from http://php.net/manual/en/splfileinfo.getmtime.php )
                    
192   *
                    
204  /**
                    
205   * ( excerpt from http://php.net/manual/en/splfileinfo.getctime.php )
                    
206   *
                    
293  /**
                    
294   * ( excerpt from http://php.net/manual/en/splfileinfo.isdir.php )
                    
295   *
                    
411  /**
                    
412   * ( excerpt from http://php.net/manual/en/splfileinfo.setinfoclass.php )
                    
413   *
                    
                
media.php https://github.com/PHPFrame/Mashine.git | PHP | 495 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * src/controllers/api/media.php
                    
4 *
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
6 *
                    
7 * @category   PHPFrame_Applications
                    
8 * @package    Mashine
                    
11 * @copyright  2010 E-NOISE.COM LIMITED
                    
12 * @license    http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
13 * @link       http://github.com/E-NOISE/Mashine
                    
18 *
                    
19 * @category PHPFrame_Applications
                    
20 * @package  Mashine
                    
                
FileStorage.php https://github.com/premiumcombination/nts.git | PHP | 405 lines
                    
1<?php
                    
2
                    
179		$cacheFile = $this->getCacheFile($key);
                    
180		if ($this->useDirs && !is_dir($dir = dirname($cacheFile))) {
                    
181			umask(0000);
                    
209		$head = serialize($meta) . '?>';
                    
210		$head = '<?php //netteCache[01]' . str_pad((string) strlen($head), 6, '0', STR_PAD_LEFT) . $head;
                    
211		$headLen = strlen($head);
                    
326			if (is_array($meta)) {
                    
327				fseek($handle, $size + self::META_HEADER_LEN); // needed by PHP < 5.2.6
                    
328				$meta[self::FILE] = $file;
                    
                
interface.php https://bitbucket.org/mrmustarde/manhattan-beach.git | PHP | 293 lines
                    
27			<a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&amp;hmbkp_download_backup=' . $encoded_file . '&amp;hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-download_backup' ); ?>"><?php _e( 'Download', 'hmbkp' ); ?></a> |
                    
28			<a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&amp;hmbkp_delete_backup=' . $encoded_file . '&amp;hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-delete_backup' ); ?>" class="delete-action"><?php _e( 'Delete', 'hmbkp' ); ?></a>
                    
29
                    
71		function hmbkp_safe_mode_warning() {
                    
72			echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress has detected a problem.', 'hmbkp' ) . '</strong> ' . sprintf( __( '%1$s is running in %2$s, please contact your host and ask them to disable it. BackUpWordPress may not work correctly whilst %3$s is on.', 'hmbkp' ), '<code>PHP</code>', sprintf( '<a href="%1$s">%2$s</a>', __( 'http://php.net/manual/en/features.safe-mode.php', 'hmbkp' ), __( 'Safe Mode', 'hmbkp' ) ), '<code>' . __( 'Safe Mode', 'hmbkp' ) . '</code>' ) . '</p></div>';
                    
73		}
                    
244	
                    
245	<span class="hmbkp-status"><?php echo $schedule->get_status() ? $schedule->get_status() : __( 'Starting Backup', 'hmbkp' ); ?> <a href="<?php echo add_query_arg( array( 'action' => 'hmbkp_cancel', 'hmbkp_schedule_id' => $schedule->get_id() ), HMBKP_ADMIN_URL ); ?>"><?php _e( 'cancel', 'hmbkp' ); ?></a></span>
                    
246
                    
251	<?php if ( $schedule->get_type() !== 'database' ) { ?>
                    
252		<a class="fancybox" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_edit_schedule_excludes_load', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Excludes', 'hmbkp' ); ?></a>  |
                    
253	<?php } ?>
                    
254
                    
255		<a class="hmbkp-run" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_run_schedule', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Run now', 'hmbkp' ); ?></a>  |
                    
256
                    
                
csv-to-dspace-xml.php https://github.com/ottenhoff/dspace-utils.git | PHP | 419 lines
                    
1<?php
                    
2set_time_limit(0);
                    
3
                    
4require_once 'XML/Serializer.php';
                    
5
                    
6if (floatval(phpversion()) < 5.0) {
                    
7  require_once 'PHP/Compat.php';
                    
8  require_once 'PHP/Compat/Function/file_put_contents.php';
                    
29
                    
30if( !is_dir($dir)) {
                    
31	die("Bad directory.");
                    
33
                    
34if( !is_dir($assets)) {
                    
35	die("Bad assets directory.");
                    
225
                    
226			if (!is_dir($destination_dir)) {
                    
227				mkdir ($destination_dir);
                    
                
file.php https://github.com/ot2sen/Tamka.git | PHP | 583 lines
                    
1<?php
                    
2/**
                    
37
                    
38	// NOTE: raw php calls are up to 100 times faster than JFile or JFolder
                    
39
                    
59					// Remove the initial die() statement
                    
60					$data = str_replace('<?php die("Access Denied"); ?>#x#', '', $data);
                    
61				}
                    
110		$path		= $this->_getFilePath($id, $group);
                    
111		$die		= '<?php die("Access Denied"); ?>#x#';
                    
112
                    
179			default:
                    
180				if (is_dir($this->_root.DS.$folder)) {
                    
181					$return = $this->_deleteFolder($this->_root.DS.$folder);
                    
333		// If the folder doesn't exist try to create it
                    
334		if (!is_dir($dir)) {
                    
335
                    
                
Session_files_driver.php https://gitlab.com/gundambison/secure | PHP | 363 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
115		if ( $save_path=='')return true;
                    
116		if ( ! is_dir($save_path))
                    
117		{
                    
124		{
                    
125			throw new Exception("Session: Configured save path '".$this->_config['save_path']."' is not writable by the PHP process.");
                    
126		}
                    
147	{
                    
148		// This might seem weird, but PHP 5.6 introduces session_reset(),
                    
149		// which re-reads session data
                    
152			// Just using fopen() with 'c+b' mode would be perfect, but it is only
                    
153			// available since PHP 5.2.6 and we have to set permissions for new files,
                    
154			// so we'd have to hack around this ...
                    
                
MaildirFolderTest.php https://github.com/bhaumik25/zend-framework.git | PHP | 438 lines
                    
1<?php
                    
2
                    
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
                    
30 */
                    
31class Zend_Mail_MaildirFolderTest extends PHPUnit_Framework_TestCase
                    
32{
                    
                
civicrm.php https://github.com/KatyMoon/cr.git | PHP | 248 lines
                    
1<?php
                    
2
                    
51
                    
52    if ( ! is_dir( $filesDirectory ) ) {
                    
53        mkdir( $filesDirectory, 0777 );
                    
57    $scratchDir   = $filesDirectory . DIRECTORY_SEPARATOR . 'civicrm';
                    
58    if ( ! is_dir( $scratchDir ) ) {
                    
59        mkdir( $scratchDir, 0777 );
                    
62    $compileDir        = $scratchDir . DIRECTORY_SEPARATOR . 'templates_c' . DIRECTORY_SEPARATOR;
                    
63    if ( ! is_dir( $compileDir ) ) {
                    
64        mkdir( $compileDir, 0777 );
                    
111        $siteDir  . DIRECTORY_SEPARATOR .
                    
112        'civicrm.settings.php';
                    
113
                    
121
                    
122    require_once "$crmPath/packages/DB.php";
                    
123
                    
                
main_template_vars.php https://github.com/happyxlq/lt_svn.git | PHP | 191 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 *  product_info main_template_vars.php
                    
4 *
                    
8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                    
9 * @version $Id: main_template_vars.php 6275 2007-05-02 11:46:37Z drbyte $
                    
10 */
                    
11/*
                    
12 * Extracts and constructs the data to be used in the product-type template tpl_TYPEHANDLER_info_display.php
                    
13 */
                    
32
                    
33    $tpl_page_body = '/tpl_product_info_noproduct.php';
                    
34
                    
36
                    
37    $tpl_page_body = '/tpl_print_page_display.php';
                    
38
                    
                
Theme_Manager.class.php https://github.com/drbowen/openemr.git | PHP | 453 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
4 *
                    
5 * @package PhpMyAdmin
                    
6 */
                    
6 */
                    
7if (! defined('PHPMYADMIN')) {
                    
8    exit;
                    
12 *
                    
13 * @package PhpMyAdmin
                    
14 */
                    
254        // force a change of a dummy session variable to avoid problems
                    
255        // with the caching of phpmyadmin.css.php
                    
256        $GLOBALS['PMA_Config']->set('theme-update', $this->theme->id);
                    
267    {
                    
268        if (! is_dir($folder)) {
                    
269            trigger_error(
                    
                
Main.php https://gitlab.com/Skull3x/pocketmine-plugins | PHP | 359 lines
                    
1<?php
                    
2/**
                    
41	public function onEnable(){
                    
42		if (!is_dir($this->getDataFolder())) mkdir($this->getDataFolder());
                    
43		mc::plugin_init($this,$this->getFile());
                    
47		$this->saveResource("floats.yml");
                    
48		$this->saveResource("tops.php");
                    
49
                    
200		switch (strtolower($this->signsCfg[$id]["type"])) {
                    
201			case "php":
                    
202				// It is PHP script!
                    
                
dmContext.php https://github.com/xdade/diem.git | PHP | 356 lines
                    
1<?php
                    
2
                    
132  {
                    
133    require_once(sfConfig::get('dm_core_dir').'/lib/vendor/sfService/sfServiceContainerInterface.php');
                    
134    require_once(sfConfig::get('dm_core_dir').'/lib/vendor/sfService/sfServiceContainer.php');
                    
136    $name = 'dm'.dmString::camelize(sfConfig::get('sf_app')).'ServiceContainer';
                    
137    $file = dmOs::join(sfConfig::get('dm_cache_dir'), $name.'.php');
                    
138
                    
152    $this->getFilesystem()->unlink(
                    
153      sfFinder::type('file')->name('dm*ServiceContainer.php')->in(sfConfig::get('dm_cache_dir'))
                    
154    );
                    
168    {
                    
169      if (!is_dir($dir))
                    
170      {
                    
197
                    
198    $dumper = new sfServiceContainerDumperPhp($sc);
                    
199    $baseClass = sfConfig::get('dm_service_container_base_class', 'dm'.ucfirst(sfConfig::get('dm_context_type')).'BaseServiceContainer');
                    
                
generateSitemap.php https://github.com/Seizam/seizamcore.git | PHP | 466 lines
                    
1<?php
                    
2/**
                    
28
                    
29require_once( dirname( __FILE__ ) . '/Maintenance.php' );
                    
30
                    
46	 *
                    
47	 * @link http://www.sitemaps.org/faq.php#faq_sitemap_size
                    
48	 *
                    
195		# Create directory if needed
                    
196		if ( $fspath && !is_dir( $fspath ) ) {
                    
197			wfMkdirParents( $fspath ) or die( "Can not create directory $fspath.\n" );
                    
                
general.php https://github.com/azouts/oscommerce.git | PHP | 321 lines
                    
1<?php
                    
2/*
                    
105
                    
106    if (is_dir($source)) {
                    
107      $dir = dir($source);
                    
282      if (!function_exists($function_name)) {
                    
283        include(OSCOM::BASE_DIRECTORY . 'Core/Site/Admin/includes/functions/cfg_parameters/' . $function_name . '.php');
                    
284      }
                    
                
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
                    
204            $packageDir = $config->magento_root . DS . Mage_Connect_Package::PACKAGE_XML_DIR;
                    
205            if (is_dir($packageDir)) {
                    
206                $entries = scandir($packageDir);
                    
209                    $info = pathinfo($path);
                    
210                    if ($entry == '.' || $entry == '..' || is_dir($path) || $info['extension'] != 'xml') {
                    
211                        continue;
                    
                
ConvertDoctrine1Schema.php https://github.com/nattaphat/hgis.git | PHP | 344 lines
                    
1<?php
                    
2/*
                    
76        foreach ($this->from as $path) {
                    
77            if (is_dir($path)) {
                    
78                $files = glob($path . '/*.yml');
                    
                
file_helper.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
134			{
                    
135				if (is_dir($path.DIRECTORY_SEPARATOR.$filename))
                    
136				{
                    
190			{
                    
191				if (@is_dir($source_dir.$file) && strncmp($file, '.', 1) !== 0)
                    
192				{
                    
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)))
                    
243			{
                    
244				if (@is_dir($source_dir.$file) AND strncmp($file, '.', 1) !== 0 AND $top_level_only === FALSE)
                    
245				{
                    
                
file_handling_over_ftp.php https://github.com/bermi/akelos.git | PHP | 291 lines
                    
1<?php
                    
2
                    
7    if(!function_exists('ftp_connect')){
                    
8        echo "PHP is not compiled with FTP support\n";
                    
9        return;
                    
21
                    
22require_once(dirname(__FILE__).'/../config.php');
                    
23
                    
256
                    
257    public function test_is_dir() {
                    
258        if(!RUN_FTP_TESTS) return;
                    
259        $path = 'invalid path';
                    
260        $this->assertFalse(AkFtp::is_dir($path));
                    
261
                    
264
                    
265        $this->assertFalse(AkFtp::is_dir($path));
                    
266
                    
                
t3.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 482 lines
                    
1<?php
                    
2/**
                    
36	public static function import($package){
                    
37		$path = T3_ADMIN_PATH . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . strtolower($package) . '.php';
                    
38		if (file_exists($path)) {
                    
82		foreach(array(T3_EX_BASE_PATH, T3_ADMIN_PATH) as $basedir){
                    
83			if(is_dir($basedir . '/' . $coretheme)){
                    
84
                    
84
                    
85				if(is_file($basedir . '/' . $coretheme . '/define.php')){
                    
86					include_once ($basedir . '/' . $coretheme . '/define.php');
                    
94			// get ready for the t3 core base theme
                    
95			include_once (T3_CORE_BASE_PATH . '/define.php');
                    
96		}
                    
123		}
                    
124		if (!is_dir(JPATH_ROOT.'/'.T3_DEV_FOLDER)) {
                    
125			jimport('joomla.filesystem.folder');
                    
                
Router.php https://bitbucket.org/mbaily/tremain.git | PHP | 460 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.2.4 or newer
                    
6 *
                    
87
                    
88		// Load the routes.php file.
                    
89		@include(APPPATH.'config/routes.php');
                    
220		// Does the requested controller exist in the root folder?
                    
221		if (file_exists(APPPATH.'controllers/'.$segments[0].'.php'))
                    
222		{
                    
226		// Is the controller in a sub-folder?
                    
227		if (is_dir(APPPATH.'controllers/'.$segments[0]))
                    
228		{
                    
235				// Does the requested controller exist in the sub-folder?
                    
236				if ( ! file_exists(APPPATH.'controllers/'.$this->fetch_directory().$segments[0].'.php'))
                    
237				{
                    
                
fun_copy_move.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 278 lines
                    
1<?php
                    
2/** ensure this file is being included by a parent file */
                    
14
                    
15     The Original Code is fun_copy_move.php, released on 2003-03-31.
                    
16
                    
60		}
                    
61		if(!get_is_dir( $new_item )) continue;
                    
62		
                    
138//-->
                    
139</script><?php
                    
140		
                    
234			if(@is_link($abs_item) || get_is_file($abs_item)) {
                    
235				// check file-exists to avoid error with 0-size files (PHP 4.3.0)
                    
236				if( nx_isFTPMode() ) $abs_item = '/'.$dir.'/'.$abs_item['name'];
                    
239			} 
                    
240			elseif(@get_is_dir($abs_item)) {
                    
241				$dir = nx_isFTPMode() ? '/'.$dir.'/'.$abs_item['name'].'/' : $abs_item;
                    
                
NativeSessionStorageTest.php https://gitlab.com/TouirMohamedMarwen/Symfony2 | PHP | 257 lines
                    
1<?php
                    
2
                    
30 */
                    
31class NativeSessionStorageTest extends \PHPUnit_Framework_TestCase
                    
32{
                    
38        ini_set('session.save_path', $this->savePath = sys_get_temp_dir().'/sf2test');
                    
39        if (!is_dir($this->savePath)) {
                    
40            mkdir($this->savePath);
                    
47        array_map('unlink', glob($this->savePath.'/*'));
                    
48        if (is_dir($this->savePath)) {
                    
49            rmdir($this->savePath);
                    
166    {
                    
167        if (PHP_VERSION_ID >= 50400) {
                    
168            $this->markTestSkipped('Test skipped, for PHP 5.3 only.');
                    
188    {
                    
189        if (PHP_VERSION_ID < 50400) {
                    
190            $this->markTestSkipped('Test skipped, for PHP 5.4 only.');
                    
                
mail.php https://github.com/patrickheck/concrete5.git | PHP | 405 lines
                    
114		// loads template from mail templates directory
                    
115		if (file_exists(DIR_FILES_EMAIL_TEMPLATES . "/{$template}.php")) {			
                    
116			include(DIR_FILES_EMAIL_TEMPLATES . "/{$template}.php");
                    
117		} else if ($pkgHandle != null) {
                    
118			if (is_dir(DIR_PACKAGES . '/' . $pkgHandle)) {
                    
119				include(DIR_PACKAGES . '/' . $pkgHandle . '/' . DIRNAME_MAIL_TEMPLATES . "/{$template}.php");
                    
120			} else {
                    
121				include(DIR_PACKAGES_CORE . '/' . $pkgHandle . '/' . DIRNAME_MAIL_TEMPLATES . "/{$template}.php");
                    
122			}
                    
123		} else {
                    
124			include(DIR_FILES_EMAIL_TEMPLATES_CORE . "/{$template}.php");
                    
125		}
                    
                
Loader.php https://gitlab.com/r.collas/site_central | PHP | 548 lines
                    
1<?php
                    
2/**
                    
12
                    
13require_once 'Exception.php';
                    
14
                    
63
                    
64		if(!is_dir($path) || !is_readable($path))
                    
65			throw new Yab_Exception($path.' is not a valid readable directory path');
                    
113
                    
114		if(is_dir($dirpath))
                    
115			$realpath = $dirpath;
                    
167
                    
168		return str_replace('_', DIRECTORY_SEPARATOR, $class_name).'.php';
                    
169
                    
275		$space = $is_cli ? ' ' : '&nbsp;';
                    
276		$crlf = $is_cli ? PHP_EOL : '<br />';
                    
277		
                    
                
updraftplus.php https://gitlab.com/code26/selah | PHP | 215 lines
                    
85// Load add-ons and files that may or may not be present, depending on where the plugin was distributed
                    
86if (is_file(UPDRAFTPLUS_DIR.'/autoload.php')) require_once(UPDRAFTPLUS_DIR.'/autoload.php');
                    
87
                    
138			$phpinclude = (preg_match("/IncludePHP: (\S+)/", $header, $matches)) ? $matches[1] : false;
                    
139			if (false === $phprequires || version_compare(PHP_VERSION, $phprequires, '>=')) {
                    
140				$updraftplus_have_addons++;
                    
140				$updraftplus_have_addons++;
                    
141				if ($phpinclude) include_once(UPDRAFTPLUS_DIR.'/'.$phpinclude);
                    
142				include_once(UPDRAFTPLUS_DIR.'/addons/'.$e);
                    
148
                    
149if (is_file(UPDRAFTPLUS_DIR.'/udaddons/updraftplus-addons.php')) require_once(UPDRAFTPLUS_DIR.'/udaddons/updraftplus-addons.php');
                    
150
                    
150
                    
151if (!file_exists(UPDRAFTPLUS_DIR.'/class-updraftplus.php') || !file_exists(UPDRAFTPLUS_DIR.'/options.php')) {
                    
152	/**
                    
                
Template.php https://bitbucket.org/wl-framework-dev/weblab-framework.git | PHP | 350 lines
                    
1<?php
                    
2    /**
                    
2    /**
                    
3     * Represents a PHP Template file
                    
4     *
                    
238         * Include a component file for current template
                    
239         * $component will be attached behind the filename, including a suffix .php
                    
240         * 
                    
256        	
                    
257        	$path = $this->_dir . '/' . $theme . $name . $component . '.php';
                    
258        	
                    
302        	$folder = dirname( $path );
                    
303        	if( !is_dir( $folder ) ) {
                    
304        		mkdir( $folder, 0755, true );
                    
331	        		 
                    
332	        		$cache_file = $theme_dir . $this->_template . $param . '.php';
                    
333	        		$cache_file = $_SERVER['DOCUMENT_ROOT'] . BASE . $cache_dir . '/' . $theme_dir . md5( $cache_file );
                    
                
ShellDispatcher.php https://bitbucket.org/allanxyh/project.git | PHP | 357 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @since         CakePHP(tm) v 2.0
                    
15 * @since         CakePHP(tm) v 2.0
                    
16 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
17 */
                    
86			define('CAKE_CORE_INCLUDE_PATH', dirname(dirname(dirname(__FILE__))));
                    
87			define('CAKEPHP_SHELL', true);
                    
88			if (!defined('CORE_PATH')) {
                    
101		if (!$this->_bootstrap()) {
                    
102			$message = "Unable to load CakePHP core.\nMake sure " . DS . 'lib' . DS . 'Cake exists in ' . CAKE_CORE_INCLUDE_PATH;
                    
103			throw new CakeException($message);
                    
                
listModules.php https://gitlab.com/florianocomercial/centreon | PHP | 260 lines
                    
1<?php
                    
2/*
                    
73        /*
                    
74         * PHP deletion
                    
75         */
                    
75         */
                    
76        $php_file = "uninstall.php";
                    
77        $php_file_path = "./modules/".$moduleinfo["name"]."/php/";
                    
77        $php_file_path = "./modules/".$moduleinfo["name"]."/php/";
                    
78        if ($moduleinfo["php_files"] && file_exists($php_file_path.$php_file))
                    
79            include_once($php_file_path.$php_file);
                    
125while (false !== ($filename = readdir($handle))) {
                    
126    if (is_dir(_CENTREON_PATH_ . "www/modules/" . $filename) && $filename != "." && $filename != "..") {
                    
127        $moduleinfo = getModuleInfoInDB($filename, NULL);
                    
169            if ($upgradeAvailable) {
                    
170                if (is_dir("./modules/".$moduleinfo["name"]."/UPGRADE")) {
                    
171                    $handle2 = opendir("./modules/".$moduleinfo["name"]."/UPGRADE");
                    
                
class.extensionmanager.php https://github.com/scottkf/nicholscommunications.git | PHP | 483 lines
                    
1<?php
                    
2
                    
2
                    
3	include_once(TOOLKIT . '/class.manager.php');
                    
4	include_once(TOOLKIT . '/class.extension.php');
                    
25        function __getDriverPath($name){
                    
26	        return $this->__getClassPath($name) . '/extension.driver.php';
                    
27        }
                    
125			// Fields:
                    
126			if(is_dir(EXTENSIONS . "/{$extension_handle}/fields")){
                    
127				foreach(glob(EXTENSIONS . "/{$extension_handle}/fields/field.*.php") as $file){
                    
127				foreach(glob(EXTENSIONS . "/{$extension_handle}/fields/field.*.php") as $file){
                    
128					$type = preg_replace(array('/^field\./i', '/\.php$/i'), NULL, basename($file));
                    
129					if(Symphony::Database()->fetchVar('count', 0, "SELECT COUNT(*) AS `count` FROM `tbl_fields` WHERE `type` = '{$type}'") > 0){
                    
141			// Data Sources:
                    
142			if(is_dir(EXTENSIONS . "/{$extension_handle}/data-sources")){
                    
143				foreach(glob(EXTENSIONS . "/{$extension_handle}/data-sources/data.*.php") as $file){
                    
                
admin.php https://github.com/coderlabs/Kaimonokago.git | PHP | 292 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
50            $string = $this->input->post('name');
                    
51            // createdirname function is from plugin mytools.php
                    
52            $folder = createdirname($string);
                    
202            if($file == '.' || $file == '..'){continue;}
                    
203            if(is_dir($file)){
                    
204                $this->_remove_path( $file );
                    
                
functions_admin.php https://gitlab.com/bulwye/reliquerunt | PHP | 550 lines
                    
1<?php
                    
2/** 
                    
4* @package attachment_mod
                    
5* @version $Id: functions_admin.php,v 1.4 2006/04/22 16:21:09 acydburn Exp $
                    
6* @copyright (c) 2002 Meik Sievertsen
                    
6* @copyright (c) 2002 Meik Sievertsen
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
                    
8*
                    
250			{
                    
251				if ($file != 'index.php' && $file != '.htaccess' && !is_dir($upload_dir . '/' . $file) && !is_link($upload_dir . '/' . $file))
                    
252				{
                    
290			
                    
291			if ($dirinfo[0] != 1 && $dirinfo[4] != 'index.php' && $dirinfo[4] != '.htaccess')
                    
292			{
                    
317			{
                    
318				if ($file != 'index.php' && $file != '.htaccess' && !is_dir($upload_dir . '/' . $file) && !is_link($upload_dir . '/' . $file))
                    
319				{
                    
                
OLE_Root.php https://PHPExcel.svn.codeplex.com/svn | PHP | 482 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
11// | http://www.php.net/license/2_02.txt.                                 |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
22
                    
23require_once 'PHPExcel/Shared/OLE/OLE_PPS.php';
                    
24
                    
31*/
                    
32class PHPExcel_Shared_OLE_PPS_Root extends PHPExcel_Shared_OLE_PPS
                    
33	{
                    
152				$raList[$i]->Size = $raList[$i]->_DataLen();
                    
153				if ($raList[$i]->Size < PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) {
                    
154					$iSBcnt += floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE)
                    
407		$iBbCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE;
                    
408		$i1stBdL = ($this->_BIG_BLOCK_SIZE - 0x4C) / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE;
                    
409	  
                    
                
openoffice_presentation.class.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 280 lines
                    
1<?php
                    
2/* For licensing terms, see /license.txt */
                    
15 */
                    
16require_once 'openoffice_document.class.php';
                    
17if (api_get_setting('search_enabled') == 'true') {
                    
17if (api_get_setting('search_enabled') == 'true') {
                    
18    require_once api_get_path(LIBRARY_PATH).'search/ChamiloIndexer.class.php';
                    
19    require_once api_get_path(LIBRARY_PATH).'search/IndexableChunk.class.php';
                    
19    require_once api_get_path(LIBRARY_PATH).'search/IndexableChunk.class.php';
                    
20    require_once api_get_path(LIBRARY_PATH).'specific_fields_manager.lib.php';
                    
21}
                    
40
                    
41        if (!is_dir($this->base_work_dir.$this->created_dir)) {
                    
42            return false;
                    
                
ClassCollectionLoader.php https://bitbucket.org/AdriVanHoudt/school.git | PHP | 365 lines
                    
1<?php
                    
2
                    
36     */
                    
37    public static function load($classes, $cacheDir, $name, $autoReload, $adaptive = false, $extension = '.php')
                    
38    {
                    
38    {
                    
39        // each $name can only be loaded once per PHP process
                    
40        if (isset(self::$loaded[$name])) {
                    
104
                    
105            $c = preg_replace(array('/^\s*<\?php/', '/\?>\s*$/'), '', file_get_contents($class->getFileName()));
                    
106
                    
111
                    
112            $c = self::fixNamespaceDeclarations('<?php '.$c);
                    
113            $c = preg_replace('/^\s*<\?php/', '', $c);
                    
118        // cache the core classes
                    
119        if (!is_dir(dirname($cache))) {
                    
120            mkdir(dirname($cache), 0777, true);
                    
                
functions.php https://bitbucket.org/millien/illien.ch-wordpress.git | PHP | 306 lines
                    
1<?php
                    
2
                    
20require_once ($includes_path . 'theme-options.php'); 					// Options panel settings and custom settings
                    
21require_once ($includes_path . 'theme-actions.php');					// Theme actions & user defined hooks
                    
22require_once ($includes_path . 'theme-scripts.php'); 					// Load JavaScript via wp_enqueue_script
                    
26require_once ($includes_path . 'posttypes/ptype-portfolio.php'); 		// portfolio post type
                    
27require_once ($includes_path . 'posttypes/ptype-layout.php'); 			// layout post type
                    
28require_once ($includes_path . 'posttypes/ptype-slider.php'); 			// slider post type
                    
28require_once ($includes_path . 'posttypes/ptype-slider.php'); 			// slider post type
                    
29require_once ($includes_path . 'posttypes/ptype-services.php'); 		// services post type
                    
30require_once ($includes_path . 'posttypes/ptype-clients.php'); 			// clients post type
                    
30require_once ($includes_path . 'posttypes/ptype-clients.php'); 			// clients post type
                    
31require_once ($includes_path . 'posttypes/ptype-pricing-tabs.php'); 	// pricing tabs post type
                    
32require_once ($includes_path . 'posttypes/post-metabox.php'); 			// custom meta box
                    
49  	
                    
50			if(strpos($widgets_file,'.php') && $widgets_file != "widget-blank.php") {
                    
51				include_once($widgets_dir . $widgets_file);
                    
                
ProjectTask.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 448 lines
                    
4 *
                    
5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://cakephp.org CakePHP(tm) Project
                    
14 * @since         CakePHP(tm) v 1.2
                    
66		$response = false;
                    
67		while (!$response && is_dir($project) === true && file_exists($project . 'Config' . 'core.php')) {
                    
68			$prompt = __d('cake_console', '<warning>A project already exists in this location:</warning> %s Overwrite?', $project);
                    
142/**
                    
143 * Checks PHP's include_path for CakePHP.
                    
144 *
                    
144 *
                    
145 * @return bool Indicates whether or not CakePHP exists on include_path
                    
146 */
                    
                
 

Source

Language