PageRenderTime 1468ms queryFilters 81ms Sphinxql 300ms GetByIds 768ms meta 0ms repositoryFilters 216ms languageFilters 3ms sourceFilters 122ms

13,322 results for 'php glob repo:vodolaz095/trivia_core' (1468 ms)

Source

Language

Repository

php-filesystem.el git://github.com/ejmr/php-mode.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"
LocalSettings.php https://github.com/hexmode/mediawiki-vagrant-rh.git | PHP | 102 lines
30
31// Expose debug info for PHP errors.
32$wgShowExceptionDetails = true;
35// Calls to deprecated methods will trigger E_USER_DEPRECATED errors
36// in the PHP error log.
37$wgDevelopmentWarnings = true;
66
67$wgLegacyJavaScriptGlobals = false;
68$wgEnableJavaScriptTest = true;
81if ( getenv( 'MULTIWIKI' ) ) {
82	require_once __DIR__ . '/settings.d/multiwiki/CommonSettings.php';
83} else {
87			glob( __DIR__ . '/settings.d/puppet-managed/*.php' ),
88			glob( __DIR__ . '/settings.d/*.php' )
89		) as $conffile
CommonSettings.php https://github.com/hexmode/mediawiki-vagrant-rh.git | PHP | 33 lines
3
4if ( PHP_SAPI !== 'cli' ) {
5	header( 'Cache-control: no-cache' );
12if ( !class_exists( 'MWMultiVersion' ) ) {
13	print "No MWMultiVersion instance initialized! MWScript.php wrapper not used?\n";
14	exit(1);
17
18// This must be set *after* the DefaultSettings.php inclusion
19$wgDBname = $multiVersion->getDatabase();
20
21include_once __DIR__ . '/LoadWgConf.php';
22
27		glob( __DIR__ . "/$wgDBname/settings.d/puppet-managed/*.php" ),
28		glob( __DIR__ . "/$wgDBname/settings.d/*.php" )
29	) as $conffile
InitCommand.php git://github.com/davedevelopment/phpmig.git | PHP | 141 lines
1<?php
2/**
11/**
12 * This file is part of phpmig
13 *
32        $this->setName('init')
33             ->setDescription('Initialise this directory for use with phpmig')
34             ->setHelp(<<<EOT
36
37<info>phpmig init</info>
38
48        $cwd = getcwd();
49        $bootstrap = $cwd . DIRECTORY_SEPARATOR . 'phpmig.php';
50        $relative = 'migrations';
121//     glob('migrations_1/*.php'),
122//     glob('migrations_2/*.php')
123// );
start.php https://github.com/uCore/uCore.git | PHP | 136 lines
1<?php
2
17 * Usage: php <path_to_core_index> <request_uri>
18 * Example: php uCore/index.php /
19 */
19 */
20if (PHP_SAPI == "cli") {
21	$_SERVER['HTTP_HOST'] = 'cli';
23	else $_SERVER['REQUEST_URI'] = $argv[0];
24	$_SERVER['SCRIPT_NAME'] = '/'.basename(dirname(__FILE__)).'/index.php';
25	$_SERVER['REMOTE_ADDR'] = 'cli';
27
28	$q = parse_url($_SERVER['REQUEST_URI'],PHP_URL_QUERY);
29	parse_str($q,$_GET);
124foreach (glob(PATH_ABS_CORE.'interfaces/*.php') as $fn) include($fn);
125foreach (glob(PATH_ABS_CORE.'functs/*.php') as $fn) include($fn);
126
index.php https://github.com/foswiki/ToPDFPlugin.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 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')
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)) {
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    }
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) ) {
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      }
class.textformatter.php https://github.com/sevenray/symphony-3.git | PHP | 125 lines
1<?php
2	
10		public function accept(){
11			if($this->isDir() == false && preg_match('/^.+\.php$/i', $this->getFilename())){
12				return true;
27			$this->formatters = array_merge(
28				glob(TEXTFORMATTERS . "/*.php"),
29				glob(EXTENSIONS . "/*/text-formatters/*.php")
77		public static function getHandleFromFilename($filename){
78			return preg_replace('/.php$/i', NULL, $filename);
79		}
115			foreach(self::$iterator as $tf){
116				if(basename($tf) == "{$handle}.php"){
117					return self::load($tf);
tokenTest.php https://github.com/spring/spring-website.git | PHP | 101 lines
1<?php
2
8
9function evalExtractArray( $php, $varname ) {
10	eval( $php );
16
17function confExtractArray( $php, $varname ) {
18	try {
18	try {
19		$ce = new ConfEditor( "<?php $php" );
20		$vars = $ce->getVars();
32function quickTokenExtractArray( $php, $varname ) {
33	$reader = new QuickArrayReader( "<?php $php" );
34
42		array_merge(
43			glob( "$IP/extensions/*/*.i18n.php" ),
44			glob( "$IP/languages/messages/Messages*.php" ) );
action_helpers.php https://github.com/arkanis/nntp-forum.git | PHP | 282 lines
162function exit_with_unauthorized_error(){
163	global $CONFIG, $layout, $body_class, $breadcrumbs, $scripts;
164	header('HTTP/1.1 401 Unauthorized');
164	header('HTTP/1.1 401 Unauthorized');
165	require(ROOT_DIR . '/public/app/errors/unauthorized.php');
166	exit();
169/**
170 * Outputs the `forbidden.php` error page with the 403 response code set and ends
171 * the script.
180/**
181 * Outputs the `not_found.php` error page with the 404 response code set and ends
182 * the script.
256		return basename($path, '.php');
257	}, glob(ROOT_DIR . '/locales/*.php') );
258	
SymfonyStyleTest.php https://bitbucket.org/kbasarab/kbasarab_vim.git | PHP | 89 lines
1<?php
2
13
14use PHPUnit_Framework_TestCase;
15use Symfony\Component\Console\Command\Command;
20
21class SymfonyStyleTest extends PHPUnit_Framework_TestCase
22{
54
55        return array_map(null, glob($baseDir.'/command/command_*.php'), glob($baseDir.'/output/output_*.txt'));
56    }
n3u.php https://github.com/n3u/n3u-Niche-Store.git | PHP | 1,816 lines
52		$i = 1;
53		foreach(glob("*_config.php") as $n3u_additional_store){
54			if(preg_match('/_block/i', $n3u_additional_store) != TRUE){
303			if((defined('admin') == TRUE) && file_exists($n3u_configVars['Template_Dir'] . 'admin/style.php')){
304				echo "\t\t" . '<link rel="stylesheet" type="text/css" href="'.$n3u_configVars['Template_Dir'] . 'admin/style.php">' . PHP_EOL;
305			}
1793		$CustomFile =
1794		'<?php ' . PHP_EOL
1795		. "\t" . '/**' . PHP_EOL
1800		. "\t\t\t\t" . 'Block-based functions should be stored within corresponding block files' . PHP_EOL . PHP_EOL
1801		. "\t\t\t" . 'You may interact with the following arrays by calling them globally:' . PHP_EOL
1802		. "\t\t\t\t" . '$n3u_configVars - Stores all configuration related options' . PHP_EOL
1807		. "\t" . 'if(!defined(\'n3u\')){die(\'Direct access is not permitted.\');} // Is n3u defined?' . PHP_EOL
1808		. "\t" . '// Enter any custom functions you have below the line.' . PHP_EOL . PHP_EOL
1809		. '?>';
MigrationShellTest.php https://github.com/JayLoh/migrations.git | PHP | 977 lines
126		unset($this->Dispatcher, $this->Shell, $this->plugins);
127		foreach (glob(TMP . 'tests' . DS . '*.php') as $f) {
128			unlink($f);
783		$this->Shell->expects($this->at(0))->method('in')->will($this->returnValue('n'));
784		$this->assertEmpty(glob(TMP . 'tests' . DS . '*create_products.php'));
785
858		$this->Shell->expects($this->at(0))->method('in')->will($this->returnValue('n'));
859		$this->assertEmpty(glob(TMP . 'tests' . DS . '*remove_name_and_desc_from_products.php'));
860
863		$this->Shell->generate();
864		$files = glob(TMP . 'tests' . DS . '*remove_name_and_desc_from_products.php');
865		$this->assertNotEmpty($files);
886
887		$this->assertEmpty(glob(TMP . 'tests' . DS . '*schema_dump.php'));
888		$this->Shell->type = 'TestMigrationPlugin2';
MigrationShellTest.php git://github.com/CakeDC/migrations.git | PHP | 1,094 lines
125		unset($this->Dispatcher, $this->Shell, $this->plugins);
126		$this->_unlink(glob(TMP . 'tests' . DS . '*.php'));
127	}
809
810		$this->assertEmpty(glob(TMP . 'tests' . DS . '*drop_slug_field.php'));
811		$this->Shell->params = array(
976		$this->Shell->expects($this->at(0))->method('in')->will($this->returnValue('n'));
977		$this->assertEmpty(glob(TMP . 'tests' . DS . '*remove_name_and_desc_from_products.php'));
978
984		$this->Shell->generate();
985		$files = glob(TMP . 'tests' . DS . '*remove_name_and_desc_from_products.php');
986		$this->assertNotEmpty($files);
1005
1006		$this->assertEmpty(glob(TMP . 'tests' . DS . '*schema_dump.php'));
1007		$this->Shell->type = 'TestMigrationPlugin2';
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21