PageRenderTime 71ms queryFilters 1ms Sphinxql 191ms GetByIds 183ms meta 0ms repositoryFilters 182ms languageFilters 0ms sourceFilters 18ms

13,322 results for 'php glob repo:sluther/cerb5' (71 ms)

Source

Language

Repository

kickstart.php https://hotelier.svn.codeplex.com/svn | PHP | 1,651 lines
1<?php
2/**
675	$GLOBALS['sajax_version'] = '0.12';
676	$GLOBALS['sajax_debug_mode'] = 0;
677	$GLOBALS['sajax_export_list'] = array();
677	$GLOBALS['sajax_export_list'] = array();
678	$GLOBALS['sajax_request_type'] = 'POST';
679	$GLOBALS['sajax_remote_uri'] = '';
1083		// Don't use glob if it's disabled or if opendir is available
1084		$this->_globEnable = function_exists('glob');
1085		if( function_exists('opendir') && function_exists('readdir') && function_exists('closedir') )
1111	 * Searches the given directory $dirName for files and folders and returns a multidimensional array.
1112	 * If the directory is not accessible, returns FALSE. This function uses the PHP glob() function.
1113	 * @return array See function description for details
1213// fnmatch not available on non-POSIX systems
1214// Thanks to soywiz@php.net for this usefull alternative function [http://gr2.php.net/fnmatch]
1215if (!function_exists('fnmatch')) {
lang.php git://github.com/vrana/adminer.git | PHP | 62 lines
1#!/usr/bin/env php
2<?php
6if (isset($_SESSION["lang"])) {
7	include dirname(__FILE__) . "/adminer/include/lang.inc.php";
8	if (isset($_SERVER["argv"][2]) || (!isset($langs[$_SESSION["lang"]]) && $_SESSION["lang"] != "xx")) {
8	if (isset($_SERVER["argv"][2]) || (!isset($langs[$_SESSION["lang"]]) && $_SESSION["lang"] != "xx")) {
9		echo "Usage: php lang.php [lang]\nPurpose: Update adminer/lang/*.inc.php from source code messages.\n";
10		exit(1);
15foreach (array_merge(
16	glob(dirname(__FILE__) . "/adminer/*.php"),
17	glob(dirname(__FILE__) . "/adminer/include/*.php"),
18	glob(dirname(__FILE__) . "/adminer/drivers/*.php"),
19	glob(dirname(__FILE__) . "/editor/*.php"),
20	glob(dirname(__FILE__) . "/editor/include/*.php")
27
28foreach (glob(dirname(__FILE__) . "/adminer/lang/" . ($_SESSION["lang"] ? $_SESSION["lang"] : "*") . ".inc.php") as $filename) {
29	$messages = $messages_all;
Filesystem.php https://github.com/CodeYellowBV/piwik.git | PHP | 306 lines
146     * 
147     * See {@link http://php.net/manual/en/function.glob.php glob} for more info.
148     *
150     * @param string $sPattern pattern The pattern to match paths against.
151     * @param int $nFlags `glob()` . See {@link http://php.net/manual/en/function.glob.php glob()}.
152     * @return array The list of paths that match the pattern.
159        }
160        if (($aDirs = \_glob("$sDir/*", GLOB_ONLYDIR)) != false) {
161            foreach ($aDirs as $sSubDir) {
219    {
220        static $phpExtensions = array('php', 'tpl', 'twig');
221
244     * @param string $target A directory to copy to, eg. '.'.
245     * @param bool $excludePhp Whether to avoid copying files if the file is related to PHP
246     *                         (includes .php, .tpl, .twig files).
common_file.php https://github.com/laposa/onxshop.git | PHP | 1,023 lines
572	 *
573	 * @param $fileglob mixed If string, must be a file name (foo.txt), glob pattern (*.txt), or directory name.
574	 *                        If array, must be an array of file names, glob patterns, or directories.
591	       } else {
592	           $matching = glob($fileglob);
593	           if ($matching === false) {
842	 * get file list using unix file command
843	 * TODO: use PHP glob() instead
844	 *
867		$csv_list = local_exec("csv_from_fs " . escapeshellarg($directory) . " " . escapeshellarg($attrs));
868		//FIND2GLOB PATCH:  $csv_list = $this->csv_from_glob($directory, $type, $recursive);
869		
919		$global_templates_dir = ONXSHOP_DIR . $directory;
920		$global_templates = $this->getFlatArrayFromFs($global_templates_dir);
921	
index.php https://bitbucket.org/kxz/shimmie2.git | PHP | 181 lines
40 *
41 * \page scglobals SCore Globals
42 * 
90	ctx_log_start("Opening files");
91	$files = array_merge(glob("core/*.php"), glob("ext/*/main.php"));
92	foreach($files as $filename) {
109	if(!file_exists("themes/$_theme")) $_theme = "default";
110	if(file_exists("themes/$_theme/custompage.class.php")) require_once "themes/$_theme/custompage.class.php";
111	require_once "themes/$_theme/layout.class.php";
113
114	$themelets = glob("ext/*/theme.php");
115	foreach($themelets as $filename) {
118
119	$custom_themelets = glob("themes/$_theme/*.theme.php");
120	if($custom_themelets) {
dmProject.php git://github.com/diem-project/diem.git | PHP | 153 lines
1<?php
2
44      $baseFiles = array_merge(
45        glob($libDir.'/model/doctrine/base/Base*.class.php'),
46        glob($libDir.'/model/doctrine/*Plugin/base/Base*.class.php')
70      $baseFiles = array_merge(
71        glob(sfConfig::get('sf_lib_dir').'/model/doctrine/base/Base*.class.php'),
72        glob(sfConfig::get('sf_lib_dir').'/model/doctrine/*Plugin/base/Base*.class.php')
84    {
85      $baseFiles = glob(dmOs::join(sfConfig::get('sf_lib_dir'), 'model/doctrine/dmCorePlugin/base/Base*.class.php'));
86
97    {
98      $models[] = preg_replace('|^Base(\w+).class.php$|', '$1', basename($file));
99    }
150  {
151    return file_exists(self::rootify('apps/'.$application.'/config/'.$application.'Configuration.class.php'));
152  }
NetBeansSuite.php https://github.com/jkonieczny/netbeans-test.git | PHP | 145 lines
56 *
57 * To run this suite from CLI: phpunit NetBeansSuite.php run=<file-or-directory>
58 *
120    /**
121     * Recursive {@link http://php.net/manual/en/function.glob.php glob()}.
122     *
127     * @param  string $path    the path to scan, default is
128     *                         {@link http://php.net/manual/en/function.getcwd.php the current working directory}
129     * @param  int    $flags   the flags passed to glob()
130     * @return array  an array of files in the given path matching the pattern.
131     * @link http://php.net/manual/en/function.glob.php
132     * @link http://php.net/manual/en/function.getcwd.php
134    private static function rglob($pattern = '*', $path = '', $flags = 0) {
135        $paths = glob($path.'*', GLOB_MARK | GLOB_ONLYDIR | GLOB_NOSORT) or array();
136        $files = glob($path.$pattern, $flags) or array();
qa-check-lang.php git://github.com/q2a/question2answer.git | PHP | 283 lines
1<?php
2/*
24require 'qa-base.php';
25require_once QA_INCLUDE_DIR . 'app/users.php';
26
48	<body>
49<?php
50
68
69$includefiles = array_merge(glob(QA_INCLUDE_DIR . 'qa-*.php'), glob(QA_INCLUDE_DIR . '*/qa-*.php'), glob(QA_PLUGIN_DIR . '*/qa-*.php'));
70
101
102	if (preg_match('|/qa-include/qa-lang-([a-z]+)\.php$|', $includefile, $matches)) { // it's a lang file
103		$prefix = $matches[1];
160	$langsubstitutions = array();
161	$langincludefiles = glob(QA_LANG_DIR . $code . '/qa-*.php');
162	$langnewphrases = array();
coverage.php git://github.com/vrana/adminer.git | PHP | 82 lines
9
10<?php
11function xhtml_open_tags($s) {
65		echo "<table border='1' cellspacing='0'>\n";
66		foreach (array_merge(glob("adminer/*.php"), glob("adminer/include/*.php"), glob("editor/*.php"), glob("editor/include/*.php")) as $filename) {
67			$cov = $coverage[realpath($filename)];
72			}
73			echo "<tr><td align='right' style='background-color: " . ($ratio < 50 ? "Red" : ($ratio < 75 ? "#FFEA20" : "#A7FC9D")) . ";'>$ratio%</td><td><a href='coverage.php?coverage=$filename'>$filename</a></td></tr>\n";
74		}
76	}
77	echo "<p><a href='coverage.php?coverage=0'>Start new coverage</a></p>\n";
78}
CFSAbstraction.php https://bitbucket.org/dgough/annamaria-daneswood-25102012.git | PHP | 166 lines
37		// Don't use glob if it's disabled or if opendir is available
38		$this->_globEnable = function_exists('glob');
39		if( function_exists('opendir') && function_exists('readdir') && function_exists('closedir') )
39		if( function_exists('opendir') && function_exists('readdir') && function_exists('closedir') )
40			$this->_globEnable = false;
41	}
53		if ($this->_globEnable) {
54			return $this->_getDirContents_glob( $dirName, $shellFilter );
55		} else {
65	 * Searches the given directory $dirName for files and folders and returns a multidimensional array.
66	 * If the directory is not accessible, returns FALSE. This function uses the PHP glob() function.
67	 * @return array See function description for details
156// FIX 1.1.0 -- fnmatch not available on non-POSIX systems
157// Thanks to soywiz@php.net for this usefull alternative function [http://gr2.php.net/fnmatch]
158if (!function_exists('fnmatch')) {
dmProject.php https://github.com/jaimesuez/diem.git | PHP | 152 lines
1<?php
2
43      $baseFiles = array_merge(
44        glob(sfConfig::get('sf_lib_dir').'/model/doctrine/base/Base*.class.php'),
45        glob(sfConfig::get('sf_lib_dir').'/model/doctrine/*Plugin/base/Base*.class.php')
69      $baseFiles = array_merge(
70        glob(sfConfig::get('sf_lib_dir').'/model/doctrine/base/Base*.class.php'),
71        glob(sfConfig::get('sf_lib_dir').'/model/doctrine/*Plugin/base/Base*.class.php')
83    {
84      $baseFiles = glob(dmOs::join(sfConfig::get('sf_lib_dir'), 'model/doctrine/dmCorePlugin/base/Base*.class.php'));
85
96    {
97      $models[] = preg_replace('|^Base(\w+).class.php$|', '$1', basename($file));
98    }
149  {
150    return file_exists(self::rootify('apps/'.$application.'/config/'.$application.'Configuration.class.php'));
151  }
pts_file_io.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 126 lines
1<?php
2
26	{
27		// Compared to the normal PHP mkdir, don't emit a warning/notice when the directory already exists
28		return !is_dir($dir) && mkdir($dir, $mode, $recursive);
31	{
32		// Compared to the normal PHP symlink, don't emit a warning when the symlink already exists
33		return is_file($target) && !is_file($link) ? symlink($target, $link) : false;
36	{
37		// Compared to the normal PHP mkdir, don't emit a warning/notice when the file doesn't exist
38		return is_file($file) && unlink($file);
39	}
40	public static function glob($pattern, $flags = 0)
41	{
41	{
42		// Compared to the normal PHP glob, don't return false when no files are there, but return an empty array
43		$r = glob($pattern, $flags);
runner.php git://github.com/speedmax/h2o-php.git | PHP | 19 lines
1<?php
2require 'spec_helper.php';
8        $tests = array_merge(
9            glob(dirname(__FILE__).'/*_test.php'),
10            glob(dirname(__FILE__).'/*_spec.php')
10            glob(dirname(__FILE__).'/*_spec.php')
11            // glob(dirname(__FILE__).'/loader_spec.php')
12        );
_compile.php https://bitbucket.org/xananax/yelobox | PHP | 16 lines
1<?php
2error_reporting(E_ALL); ini_set('display_errors', '1');
4$includes = array_merge(
5		glob($dir.'dev/*.php'),
6		glob($dir.'/dev/interfaces/*.php'),
6		glob($dir.'/dev/interfaces/*.php'),
7		glob($dir.'dev/baseclasses/*.php'),
8		glob($dir.'dev/extendedbaseclasses/*.php'),
9		glob($dir.'dev/modifiers/*.php'),
10		glob($dir.'dev/preprocessors/*.php'),
11		glob($dir.'dev/postprocessors/*.php')
12);
13require '../../yeloboxCompiler.php';
14yeloboxCompile($includes,null,$dir.'bin');
renderer.php https://bitbucket.org/xananax/yelobox | PHP | 36 lines
1<?php
2
6$includes = array_merge(
7		glob('../dev/*.php'),
8		glob('../dev/interfaces/*.php'),
8		glob('../dev/interfaces/*.php'),
9		glob('../dev/baseclasses/*.php'),
10		glob('../dev/extendedbaseclasses/*.php'),
11		glob('../dev/modifiers/*.php'),
12		glob('../dev/preprocessors/*.php'),
13		glob('../dev/postprocessors/*.php')
34<div id="noteParser">
35	<?php echo $noteParser ?>
36</div>
global_functions.php https://bitbucket.org/paullik/dotophp.git | PHP | 448 lines
1<?php
2/**
2/**
3 * @file src/global_functions.php
4 * @brief Globally used functions
6 *
7 * @ingroup globalFiles
8 */
10/**
11 * @defgroup globalFiles Global files
12 */
51 *
52 * @param array $arr the array to be checked(can be a superglobal too)
53 *
407 * @param bool $recursive searches recursively when TRUE
408 * @param int $flags flags used by php glob(), see: http://php.net/glob
409 * default: GLOB_MARK
misc.php https://bitbucket.org/navigatecms/navigatecms | PHP | 894 lines
54/**
55 * Cleans unwanted quotes from the superglobals GET, POST, COOKIE and REQUEST. If PHP has magic_quotes off, no cleaning is done.
56 * @author Unknown
123/**
124 * Retrieve all the files from a folder and subfolders (uses php glob internally)
125 *
139
140    $paths = glob($path . '*', GLOB_ONLYDIR | GLOB_NOSORT);
141    $files = glob($path . $pattern, $flags);
319     * @author: Aaron G. 07-Aug-2004 01:29
320     * @source: http://www.php.net/manual/es/function.gzencode.php
321     * @param string $data
447 * @author: unkwown
448 * #source: http://www.php.net/manual/en/function.array-search.php#106107
449 *
create_monolith_2.2.php https://github.com/shish/shimmie2-utils.git | PHP | 214 lines
6
7if(!file_exists("config.php")) {die("config.php not found");}
8
117$files = array_merge(
118	glob("core/*.php"),
119	glob("ext/*/main.php"),
119	glob("ext/*/main.php"),
120	glob("themes/".THEME."/*.class.php"),
121	glob("ext/*/theme.php"),
121	glob("ext/*/theme.php"),
122	glob("themes/".THEME."/*.theme.php")
123	);
150
151'.striphp(file_get_contents("config.php")).'
152
index.php https://github.com/zshall/shimmie2.git | PHP | 154 lines
40 *
41 * \page scglobals SCore Globals
42 * 
75	// load base files
76	$files = array_merge(glob("core/*.php"), glob("ext/*/main.php"));
77	foreach($files as $filename) {
90	if(!file_exists("themes/$_theme")) $_theme = "default";
91	if(file_exists("themes/$_theme/custompage.class.php")) require_once "themes/$_theme/custompage.class.php";
92	require_once "themes/$_theme/layout.class.php";
94
95	$themelets = glob("ext/*/theme.php");
96	foreach($themelets as $filename) {
99
100	$custom_themelets = glob("themes/$_theme/*.theme.php");
101	if($custom_themelets) {
cli_import.php https://github.com/shish/shimmie2-utils.git | PHP | 133 lines
1#!/usr/bin/php
2<?php
19function add_dir($base, $subdir="") {
20	global $page;
21	
64
65require_once "core/util.inc.php";
66
71// load base files
72$files = array_merge(glob("core/*.php"), glob("ext/*/main.php"));
73foreach($files as $filename) {
90
91$themelets = glob("ext/*/theme.php");
92foreach($themelets as $filename) {
95
96$custom_themelets = glob("themes/$_theme/*.theme.php");
97if($custom_themelets) {
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21