PageRenderTime 540ms queryFilters 28ms Sphinxql 329ms GetByIds 185ms meta 0ms repositoryFilters 12ms languageFilters 0ms sourceFilters 2ms

41,943 results for 'php glob repo:ampersarnie/Sohy' (540 ms)

Source

Language

Repository

phpunit.php git://github.com/vanillaforums/Garden.git | PHP | 77 lines
1<?php
2/**
14error_reporting(E_ALL);
15// Alias classes for some limited PHPUnit v5 compatibility with v6.
16$classCompatibility = [
16$classCompatibility = [
17    'PHPUnit\\Framework\\TestCase' => 'PHPUnit_Framework_TestCase', // See https://github.com/php-fig/log/pull/52
18];
37
38$files = glob(PATH_ROOT."/.circleci/scripts/templates/vanilla/cgi-bin/*.php");
39foreach ($files as $file) {
47// ===========================================================================
48require PATH_ROOT.'/environment.php';
49
71$utilityFiles = array_merge(
72    glob(PATH_ROOT.'/plugins/*/tests/Utils/*.php'),
73    glob(PATH_ROOT.'/applications/*/tests/Utils/*.php')
index.php https://github.com/axelangeli/foswiki.git | PHP | 26 lines
1<?php
2
6
7require_once('PHPUnit/Framework.php');
8
8
9require_once('../config.inc.php');
10require_once(HTML2PS_DIR.'pipeline.factory.class.php');
11
12require_once('fetcher.memory.php');
13
15// $testfiles = array_merge(glob('test.*.php'), 
16//                          glob('css/test.*.php'));
17$testfiles = glob('css/test.*.php');
17$testfiles = glob('css/test.*.php');
18// $testfiles = array('css/test.parser.error.5.php');
19
index.php https://github.com/beancorp/foodmp.git | PHP | 26 lines
1<?php
2
6
7require_once('PHPUnit/Framework.php');
8
8
9require_once('../config.inc.php');
10require_once(HTML2PS_DIR.'pipeline.factory.class.php');
11
12require_once('fetcher.memory.php');
13
15// $testfiles = array_merge(glob('test.*.php'), 
16//                          glob('css/test.*.php'));
17$testfiles = glob('css/test.*.php');
17$testfiles = glob('css/test.*.php');
18// $testfiles = array('css/test.parser.error.5.php');
19
bootstrap.php https://github.com/bmen/wordpress-theme-premium-umweltc.git | PHP | 175 lines
5//////////////////////////
6require_once 'constant.php';
7
10//////////////////////////
11require_once 'autoload.php';
12
15//////////////////////////
16foreach (glob(VP_EXT_DIR . "/*", GLOB_ONLYDIR) as $ext)
17{
17{
18	$bs_file  = $ext . '/bootstrap.php';
19	$fc_file  = $ext . '/functions.php';
58//////////////////////////
59foreach (array_merge(glob(VP_APP_DATA_DIR . "/*.php"), glob(VP_CORE_DATA_DIR . "/*.php")) as $datasource)
60{
elgg_language_packs.php https://bitbucket.org/moodsdesign-ondemand/elgg_language_packs.git | PHP | 423 lines
1<?php
2/*
65        // we must be looking at an Ellg product folder
66        $meta = file_exists("$dir/version.php") && is_file("$dir/version.php");
67        if ( $meta ) {
67        if ( $meta ) {
68            include "$dir/version.php";
69            $elgg_version = $release;
161    // get all the files that match an Elgg language file and iterate
162    $all_files = array_merge(glob("$srcdir/languages/??.php"), glob("$srcdir/languages/??[-_]??.php"));
163    foreach ( $all_files as $file ) {
164        // basic name of the file is the locale name
165        $lang = basename($file, '.php');
166        // should the current locale be filtered out?
200    // if there is not a JavaScript file for this language, create it if importing
201    $jsfile = "$dstdir/views/default/js/languages/$lang.php";
202    if ( $needs_meta && !file_exists($jsfile) ) {
ComposerHelper.php git://github.com/vanillaforums/Garden.git | PHP | 206 lines
1<?php
2/**
29        $paths = array_merge(
30            [$cacheDir.'/addon.php', $cacheDir.'/openapi.php'],
31            glob($cacheDir.'/locale/*.php'),
31            glob($cacheDir.'/locale/*.php'),
32            glob($cacheDir.'/theme/*.php'),
33            glob($cacheDir.'/*-index.php')
128        // Build bootstrap can be used to configure this build if env variables are not available.
129        $buildBootstrap = realpath($vanillaRoot . "/conf/build-bootstrap.php");
130        if (file_exists($buildBootstrap)) {
pts_file_io.php https://github.com/atlassianhlechner/phoronix-test-suite.git | PHP | 139 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);
SymfonyStyleTest.php git://github.com/symfony/symfony.git | PHP | 118 lines
1<?php
2
13
14use PHPUnit\Framework\TestCase;
15use Symfony\Component\Console\Command\Command;
71
72        return array_map(null, glob($baseDir.'/command/interactive_command_*.php'), glob($baseDir.'/output/interactive_output_*.txt'));
73    }
78
79        return array_map(null, glob($baseDir.'/command/command_*.php'), glob($baseDir.'/output/output_*.txt'));
80    }
SymfonyStyleTest.php git://github.com/fabpot/symfony.git | PHP | 118 lines
1<?php
2
13
14use PHPUnit\Framework\TestCase;
15use Symfony\Component\Console\Command\Command;
71
72        return array_map(null, glob($baseDir.'/command/interactive_command_*.php'), glob($baseDir.'/output/interactive_output_*.txt'));
73    }
78
79        return array_map(null, glob($baseDir.'/command/command_*.php'), glob($baseDir.'/output/output_*.txt'));
80    }
PageEditor.class.php https://github.com/0xLeon/WCF.git | PHP | 88 lines
1<?php
2namespace wcf\data\page;
16 * @copyright	2001-2016 WoltLab GmbH
17 * @license	GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
18 * @package	WoltLabSuite\Core\Data\Page
51		
52		$files = array_merge(glob($packageDir . 'lib/action/*.php'), glob($packageDir . 'lib/form/*.php'), glob($packageDir . 'lib/page/*.php'));
53		foreach ($files as $file) {
53		foreach ($files as $file) {
54			$filename = preg_replace('/(Action|Page|Form)(\.class)?\.php$/', '', basename($file));
55			if ($customURL == ControllerMap::transformController($filename)) {
SymfonyStyleTest.php https://github.com/B00N/pwv-hagenbach.git | PHP | 116 lines
1<?php
2
13
14use PHPUnit\Framework\TestCase;
15use Symfony\Component\Console\Command\Command;
69
70        return array_map(null, glob($baseDir.'/command/interactive_command_*.php'), glob($baseDir.'/output/interactive_output_*.txt'));
71    }
76
77        return array_map(null, glob($baseDir.'/command/command_*.php'), glob($baseDir.'/output/output_*.txt'));
78    }
SymfonyStyleTest.php https://github.com/brianfreytag/symfony.git | PHP | 116 lines
1<?php
2
13
14use PHPUnit\Framework\TestCase;
15use Symfony\Component\Console\Command\Command;
69
70        return array_map(null, glob($baseDir.'/command/interactive_command_*.php'), glob($baseDir.'/output/interactive_output_*.txt'));
71    }
76
77        return array_map(null, glob($baseDir.'/command/command_*.php'), glob($baseDir.'/output/output_*.txt'));
78    }
delete.php https://bitbucket.org/moodsdesign-ondemand/languagepacks.git | PHP | 67 lines
1<?php
2if ( get_current_language() != 'en' ) {
6
7require_once elgg_get_plugins_path() . 'languagepacks/lib/elgg_language_packs/elgg_language_packs.php';
8
53        $jsdir = "$olddir/views/default/js/languages";
54        $jsfiles = array_merge(glob("$jsdir/??.php"), glob("$jsdir/??[-_]??.php"));
55        foreach ( $jsfiles as $jsfile ) {
56            // basic name of the file is the locale name
57            $lang = basename($jsfile, '.php');
58            if ( $lang != 'en' && !$languages[$lang] && file_exists($jsfile) ) {
php-filesystem.el https://github.com/andreaja/dotemacs.git | Lisp | 591 lines
21;; To install php-ext.el:
22;; You can add (load "path/php-ext/php-ext.el") to your .emacs
23
24;; Filesystem Functions
25;; http://php.net/manual/en/ref.filesystem.php
26;; file:///usr/share/doc/php-doc/html/ref.filesystem.html
27
28(define-skeleton php-basename
29  "Insert an addcslashes statement"
34
35(define-skeleton php-chgrp
36  "Insert a chgrp statemt"
331
332(define-skeleton php-glob
333  "Insert a glob statement. Find pathnames matching a pattern"
index.php https://github.com/wbniv/foswiki.git | PHP | 26 lines
1<?php
2
6
7require_once('PHPUnit/Framework.php');
8
8
9require_once('../config.inc.php');
10require_once(HTML2PS_DIR.'pipeline.factory.class.php');
11
12require_once('fetcher.memory.php');
13
15// $testfiles = array_merge(glob('test.*.php'), 
16//                          glob('css/test.*.php'));
17$testfiles = glob('css/test.*.php');
17$testfiles = glob('css/test.*.php');
18// $testfiles = array('css/test.parser.error.5.php');
19
phpunit.php https://github.com/vanilla/vanilla.git | PHP | 77 lines
1<?php
2/**
14error_reporting(E_ALL);
15// Alias classes for some limited PHPUnit v5 compatibility with v6.
16$classCompatibility = [
16$classCompatibility = [
17    'PHPUnit\\Framework\\TestCase' => 'PHPUnit_Framework_TestCase', // See https://github.com/php-fig/log/pull/52
18];
37
38$files = glob(PATH_ROOT."/.circleci/scripts/templates/vanilla/cgi-bin/*.php");
39foreach ($files as $file) {
47// ===========================================================================
48require PATH_ROOT.'/environment.php';
49
71$utilityFiles = array_merge(
72    glob(PATH_ROOT.'/plugins/*/tests/Utils/*.php'),
73    glob(PATH_ROOT.'/applications/*/tests/Utils/*.php')
qa-check-lang.php https://github.com/aromatix/question2answer.git | PHP | 257 lines
1<?php
2
23
24	More about this license: http://www.question2answer.org/license.php
25*/
28
29	require 'qa-base.php';
30	require_once QA_INCLUDE_DIR.'qa-app-users.php';
45	<body style="font-family:arial; font-size:12px;">
46<?php
47
63	
64	$includefiles=array_merge(glob(QA_INCLUDE_DIR.'qa-*.php'), glob(QA_PLUGIN_DIR.'*/qa-*.php'));
65	
142		$langsubstitutions=array();
143		$langincludefiles=glob(QA_LANG_DIR.$code.'/qa-*.php');
144		$langnewphrases=array();
qa-check-lang.php https://github.com/billyc/ask-tfresource.git | PHP | 257 lines
1<?php
2
23
24	More about this license: http://www.question2answer.org/license.php
25*/
28
29	require 'qa-base.php';
30	require_once QA_INCLUDE_DIR.'qa-app-users.php';
45	<body style="font-family:arial; font-size:12px;">
46<?php
47
63	
64	$includefiles=array_merge(glob(QA_INCLUDE_DIR.'qa-*.php'), glob(QA_PLUGIN_DIR.'*/qa-*.php'));
65	
142		$langsubstitutions=array();
143		$langincludefiles=glob(QA_LANG_DIR.$code.'/qa-*.php');
144		$langnewphrases=array();
PluginDmTagTable.class.php https://bitbucket.org/h4ostudio/dm.git | PHP | 137 lines
1<?php
2/**
104    $modelBaseFiles = array_merge(
105      glob(dmOs::join(sfConfig::get('sf_lib_dir'), 'model/doctrine/base/Base*.class.php')),
106      glob(dmOs::join(sfConfig::get('sf_lib_dir'), 'model/doctrine/*Plugin/base/Base*.class.php'))
113      {
114        $taggableModels[] = preg_replace('|^Base(\w+).class.php$|', '$1', basename($modelBaseFile));
115      }
ComposerHelper.php https://github.com/vanilla/vanilla.git | PHP | 206 lines
1<?php
2/**
29        $paths = array_merge(
30            [$cacheDir.'/addon.php', $cacheDir.'/openapi.php'],
31            glob($cacheDir.'/locale/*.php'),
31            glob($cacheDir.'/locale/*.php'),
32            glob($cacheDir.'/theme/*.php'),
33            glob($cacheDir.'/*-index.php')
128        // Build bootstrap can be used to configure this build if env variables are not available.
129        $buildBootstrap = realpath($vanillaRoot . "/conf/build-bootstrap.php");
130        if (file_exists($buildBootstrap)) {
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21