PageRenderTime 2750ms queryTime 705ms sortTime 91ms getByIdsTime 366ms findMatchingLines 584ms

100+ results results for 'php dirname repo:bradbang/outdoor-world' (2750 ms)

Not the results you expected?
SYLK.php https://gitlab.com/alexandresgv/siteentec | PHP | 450 lines
                    
22 * @package    PHPExcel_Reader
                    
23 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
42 * @package    PHPExcel_Reader
                    
43 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
44 */
                    
44 */
                    
45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader
                    
46{
                    
206		// Create new PHPExcel
                    
207		$objPHPExcel = new PHPExcel();
                    
208
                    
                
SYLK.php https://gitlab.com/cmtsheikeshadi/first_app_development_project | PHP | 450 lines
                    
22 * @package    PHPExcel_Reader
                    
23 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
42 * @package    PHPExcel_Reader
                    
43 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
44 */
                    
44 */
                    
45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader
                    
46{
                    
206		// Create new PHPExcel
                    
207		$objPHPExcel = new PHPExcel();
                    
208
                    
                
HTML.php https://bitbucket.org/crowdguru/phpexcel.git | PHP | 495 lines
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
149		// Create new PHPExcel
                    
150		$objPHPExcel = new PHPExcel();
                    
151
                    
430	/**
                    
431	 * Loads PHPExcel from file into PHPExcel instance
                    
432	 *
                    
433	 * @param 	string 		$pFilename
                    
434	 * @param	PHPExcel	$objPHPExcel
                    
435	 * @return 	PHPExcel
                    
437	 */
                    
438	public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
                    
439	{
                    
                
File.php https://github.com/Riges/KawaiViewModel.git | PHP | 468 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
86        if ($fileName == '') {
                    
87            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
113            if ( ($realpath = Zend_Reflection_File::findRealpathInIncludePath($filePath)) === false) {
                    
114                require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
115                throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
                    
                
jlparameter.php https://gitlab.com/julienv/joomleague | PHP | 552 lines
                    
1<?php
                    
2/**
                    
3 * @copyright	Copyright (C) 2005-2014 joomleague.at. All rights reserved.
                    
4 * @license		GNU/GPL, see LICENSE.php
                    
5 * Joomla! is free software. This version may have been modified pursuant
                    
8 * other free or open source software licenses.
                    
9 * See COPYRIGHT.php for copyright notices and details.
                    
10 */
                    
143		// Set base path.
                    
144		$this->_elementPath[] = dirname(__FILE__) . '/parameter/element';
                    
145
                    
301
                    
302		return implode(PHP_EOL, $html);
                    
303	}
                    
470
                    
471		if ((isset($this->_elements[$signature]) && !($this->_elements[$signature] instanceof __PHP_Incomplete_Class)) && $new === false)
                    
472		{
                    
                
Settings.php https://gitlab.com/team_fsn/fsn-php | PHP | 387 lines
                    
22 * @package    PHPExcel_Settings
                    
23 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
                    
33    define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../');
                    
34    require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
35}
                    
118     * @param string $zipClass	The Zip handler class that PHPExcel should use for Zip file management
                    
119     * 	 e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive
                    
120     * @return	boolean	Success or failure
                    
138     *	for Zip file management
                    
139     *	e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive
                    
140     */
                    
200     * @param string $libraryName	Internal reference name of the library
                    
201     *	e.g. PHPExcel_Settings::CHART_RENDERER_JPGRAPH
                    
202     * @param string $libraryBaseDir Directory path to the library's base folder
                    
                
String.php https://github.com/almonk/Deadweight-CMS-1.git | PHP | 497 lines
                    
1<?php
                    
2
                    
301
                    
302		$this->makeDirectory(dirname($cachedFile), $cacheDir);
                    
303		if (!@rename($temp, $cachedFile)) {
                    
355					if (class_exists('Dwoo_Compiler', false) === false) {
                    
356						include DWOO_DIRECTORY . 'Dwoo/Compiler.php';
                    
357					}
                    
367			$compiler->setSecurityPolicy($dwoo->getSecurityPolicy());
                    
368			$this->makeDirectory(dirname($compiledFile), $dwoo->getCompileDir());
                    
369			file_put_contents($compiledFile, $compiler->compile($dwoo, $this));
                    
424		}
                    
425		return $dwoo->getCompileDir() . $this->compileId.'.d'.Dwoo::RELEASE_TAG.'.php';
                    
426	}
                    
454	/**
                    
455	 * returns some php code that will check if this template has been modified or not
                    
456	 *
                    
                
FigletTest.php https://bitbucket.org/ksekar/campus.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: FigletTest.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
23// Call Zend_Captcha_FigletTest::main() if this source file is executed directly.
                    
24if (!defined("PHPUnit_MAIN_METHOD")) {
                    
25    define("PHPUnit_MAIN_METHOD", "Zend_Captcha_FigletTest::main");
                    
27
                    
28require_once 'Zend/Form/Element/Captcha.php';
                    
29require_once 'Zend/Captcha/Adapter.php';
                    
29require_once 'Zend/Captcha/Adapter.php';
                    
30require_once 'Zend/Config.php';
                    
31
                    
39 */
                    
40class Zend_Captcha_FigletTest extends PHPUnit_Framework_TestCase
                    
41{
                    
                
install.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 249 lines
                    
20	<h2>Error: PHP is not running</h2>
                    
21	<p>WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p>
                    
22</body>
                    
35/** Load WordPress Bootstrap */
                    
36require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
                    
37
                    
41/** Load wpdb */
                    
42require_once(dirname(dirname(__FILE__)) . '/wp-includes/wp-db.php');
                    
43
                    
153if ( !$mysql_compat && !$php_compat )
                    
154	$compat = sprintf( __('You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version );
                    
155elseif ( !$php_compat )
                    
155elseif ( !$php_compat )
                    
156	$compat = sprintf( __('You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version );
                    
157elseif ( !$mysql_compat )
                    
                
FigletTest.php https://bitbucket.org/dbaltas/zend-framework-1.x-on-git.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: FigletTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23// Call Zend_Captcha_FigletTest::main() if this source file is executed directly.
                    
24if (!defined("PHPUnit_MAIN_METHOD")) {
                    
25    define("PHPUnit_MAIN_METHOD", "Zend_Captcha_FigletTest::main");
                    
27
                    
28require_once 'Zend/Form/Element/Captcha.php';
                    
29require_once 'Zend/Captcha/Adapter.php';
                    
29require_once 'Zend/Captcha/Adapter.php';
                    
30require_once 'Zend/Config.php';
                    
31
                    
39 */
                    
40class Zend_Captcha_FigletTest extends PHPUnit_Framework_TestCase
                    
41{
                    
                
template.php https://bitbucket.org/frazras/higgler.git | PHP | 384 lines
                    
1<?php
                    
2
                    
2
                    
3require_once dirname(__FILE__) . '/includes/alpha.inc';
                    
4require_once dirname(__FILE__) . '/includes/base.inc';
                    
                
site-users.php https://gitlab.com/sihabudinahmad/asppi | PHP | 330 lines
                    
10/** Load WordPress Administration Bootstrap */
                    
11require_once( dirname( __FILE__ ) . '/admin.php' );
                    
12
                    
184$parent_file = 'sites.php';
                    
185$submenu_file = 'sites.php';
                    
186
                    
205<h1 id="edit-site"><?php echo $title; ?></h1>
                    
206<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p>
                    
207<?php
                    
302<h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2>
                    
303<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post">
                    
304	<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
                    
320		<tr class="form-field">
                    
321			<td colspan="2"><?php _e( 'A password reset link will be sent to the user via email.' ) ?></td>
                    
322		</tr>
                    
                
composite_log.php https://gitlab.com/alexprowars/bitrix | PHP | 461 lines
                    
14 */
                    
15require_once(dirname(__FILE__)."/../include/prolog_admin_before.php");
                    
16require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
16require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
17define("HELP_FILE", "settings/composite_pages.php");
                    
18
                    
221		$messageCell =
                    
222			'<a href="composite_diff.php?lang='.LANGUAGE_ID.'&log_id='.$record["ID"].'" target="_blank">'.
                    
223			Loc::getMessage("MAIN_COMPOSITE_LOG_VIEW_DIFF").'</a>';
                    
235	{
                    
236		$userCell = '<a href="user_edit.php?lang='.LANGUAGE_ID.'&ID=%s">%s</a>';
                    
237		$userName = \CUser::formatName(
                    
289
                    
290require($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/prolog_admin_after.php");
                    
291?>
                    
                
File.php https://gitlab.com/devtoannh/cafe | PHP | 468 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
86        if ($fileName == '') {
                    
87            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
113            if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) {
                    
114                require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
115                throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
                    
                
model_delete.test.php https://github.com/bb-dev/cakephp2x.git | PHP | 587 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
                    
8 * Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
                    
15 * @package       cake
                    
16 * @subpackage    cake.tests.cases.libs.model
                    
17 * @since         CakePHP(tm) v 1.2.0.4206
                    
18 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
                    
19 */
                    
20require_once dirname(__FILE__) . DS . 'model.test.php';
                    
21
                    
                
adodb-session-clob.php https://github.com/usualoma/movabletype.git | PHP | 447 lines
                    
1<?php
                    
2/*
                    
13
                    
14 This file provides PHP4 session management using the ADODB database
                    
15 wrapper library, using Oracle CLOB's to store data. Contributed by achim.gosse@ddd.de.
                    
19
                    
20	include('adodb.inc.php');
                    
21	include('adodb-session.php');
                    
29
                    
30	include('adodb.inc.php');
                    
31	include('adodb-session.php');
                    
61
                    
62  3. Recommended is PHP 4.1.0 or later. There are documented
                    
63	 session bugs in earlier versions of PHP.
                    
91if (!defined('_ADODB_LAYER')) {
                    
92	include (dirname(__FILE__).'/adodb.inc.php');
                    
93}
                    
                
about.php https://gitlab.com/relacilia/cakra | PHP | 243 lines
                    
9/** WordPress Administration Bootstrap */
                    
10require_once( dirname( __FILE__ ) . '/admin.php' );
                    
11
                    
45		<h2 class="nav-tab-wrapper">
                    
46			<a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What&#8217;s New' ); ?></a>
                    
47			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
                    
47			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
                    
48			<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
                    
49		</h2>
                    
199				<?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
                    
200					<a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
                    
201						<?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
                    
203				<?php endif; ?>
                    
204				<a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
                    
205			</div>
                    
                
XmlFileLoader.php https://github.com/thewiredman/symfony.git | PHP | 402 lines
                    
1<?php
                    
2
                    
73
                    
74        $this->container->getParameterBag()->add($xml->parameters->getArgumentsAsPhp('parameter'));
                    
75    }
                    
83        foreach ($xml->imports->import as $import) {
                    
84            $this->currentDir = dirname($file);
                    
85            $this->import((string) $import['resource'], (Boolean) $import->getAttributeAsPhp('ignore-errors'));
                    
112                $method = 'set'.str_replace('-', '', $key);
                    
113                $definition->$method((string) $service->getAttributeAsPhp($key));
                    
114            }
                    
120
                    
121        $definition->setArguments($service->getArgumentsAsPhp('argument'));
                    
122
                    
137        foreach ($service->call as $call) {
                    
138            $definition->addMethodCall((string) $call['method'], $call->getArgumentsAsPhp('argument'));
                    
139        }
                    
                
image.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 412 lines
                    
1<?php
                    
2/**
                    
51	// using a replication plugin.
                    
52	wp_mkdir_p( dirname( $dst_file ) );
                    
53
                    
53
                    
54	$dst_file = dirname( $dst_file ) . '/' . wp_unique_filename( dirname( $dst_file ), basename( $dst_file ) );
                    
55
                    
373		if ( 'full' != $size && ( $data = image_get_intermediate_size( $attachment_id, $size ) ) ) {
                    
374			$filepath = apply_filters( 'load_image_to_edit_filesystempath', path_join( dirname( $filepath ), $data['file'] ), $attachment_id, $size );
                    
375		}
                    
398		$dst_file = str_replace( basename( $dst_file ), 'copy-' . basename( $dst_file ), $dst_file );
                    
399		$dst_file = dirname( $dst_file ) . '/' . wp_unique_filename( dirname( $dst_file ), basename( $dst_file ) );
                    
400
                    
402		// using a replication plugin.
                    
403		wp_mkdir_p( dirname( $dst_file ) );
                    
404
                    
                
installv2.sh https://bitbucket.org/jorgenio/boca.git | Shell | 320 lines
                    
111apt-get -y install zenity apache2 eclipse-pde eclipse-rcp eclipse-platform eclipse-jdt eclipse emacs \
                    
112  evince g++ gcc gedit scite libstdc++6 makepasswd manpages-dev mii-diag php5-cli php5-mcrypt openjdk-6-dbg \
                    
113  php5 php5-pgsql postgresql postgresql-client postgresql-contrib quota sharutils default-jdk openjdk-6-doc \
                    
114  vim-gnome geany geany-plugin-addons geany-plugin-gdb geany-plugins default-jre sysstat \
                    
115  $sysvutils vim xfce4 $libCppdev $libCppdoc $libCppdbg php5-gd stl-manual gcc-doc debootstrap schroot c++-annotations
                    
116if [ $? != 0 ]; then
                    
201rm -f /tmp/icpc.etc.tgz
                    
202wget -O /tmp/icpc.etc.tgz "http://www.ime.usp.br/~cassio/boca/download.php?filename=icpc-\$icpcver.etc.tgz"
                    
203if [ "\$?" != "0" -o ! -f /tmp/icpc.etc.tgz ]; then
                    
221    bn=\`basename \$i\`
                    
222    dn=\`dirname \$i\`
                    
223    mv \$i \$dn/.\$bn.bkp.\$di
                    
                
FilterTest.php https://gitlab.com/oytunistrator/92five | PHP | 305 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHP_CodeCoverage
                    
4 *
                    
4 *
                    
5 * Copyright (c) 2009-2014, Sebastian Bergmann <sebastian@phpunit.de>.
                    
6 * All rights reserved.
                    
36 *
                    
37 * @category   PHP
                    
38 * @package    CodeCoverage
                    
49      'TEST_FILES_PATH',
                    
50      dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR .
                    
51      '_files' . DIRECTORY_SEPARATOR
                    
66 */
                    
67class PHP_CodeCoverage_FilterTest extends PHPUnit_Framework_TestCase
                    
68{
                    
                
function.html_select_date.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 119 lines
                    
1<?php //0046a
                    
2if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');exit(199);
                    
3?>
                    
42VmfUqAxo14JDPruMU/Zkn6z/nqdo/q/QxKDJgMQ5+ts83xs+QVUkuCse5tMXrNrINWcjqGfrIE8d
                    
43mRYVdMIuCZDFwOWdp3LrjCoWeTc7NS0bNwGli4CA1jf5PHPniyWYyMcDH+r5CyOpXPFxhn3ypv+m
                    
44IF4qvBFKNJZPAfHboaNQLG5FT6KlBvWb2ONGbRURURURs5aS4n7Uj2BY9bXcMF1+ZDINsxpWf9Sx
                    
                
porter_en.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 446 lines
                    
1<?php
                    
2/**
                    
11
                    
12JLoader::register('FinderIndexerStemmer', dirname(__DIR__) . '/stemmer.php');
                    
13
                    
                
PropelTableComparator.php https://gitlab.com/Isaki/le331.fr | PHP | 312 lines
                    
1<?php
                    
2
                    
10
                    
11require_once dirname(__FILE__) . '/../Table.php';
                    
12require_once dirname(__FILE__) . '/PropelTableDiff.php';
                    
12require_once dirname(__FILE__) . '/PropelTableDiff.php';
                    
13require_once dirname(__FILE__) . '/PropelColumnComparator.php';
                    
14require_once dirname(__FILE__) . '/PropelColumnDiff.php';
                    
14require_once dirname(__FILE__) . '/PropelColumnDiff.php';
                    
15require_once dirname(__FILE__) . '/PropelIndexComparator.php';
                    
16require_once dirname(__FILE__) . '/PropelForeignKeyComparator.php';
                    
                
Index.php https://gitlab.com/tonycodes/october | PHP | 458 lines
                    
1<?php namespace Cms\Controllers;
                    
2
                    
131                'templateType'  => $type,
                    
132                'templateTheme' => $this->theme->getDirName(),
                    
133                'templateMtime' => $template->mtime
                    
219                'templateType'  => $type,
                    
220                'templateTheme' => $this->theme->getDirName(),
                    
221                'templateMtime' => null
                    
321    {
                    
322        if ($this->theme->getDirName() != Request::input('theme')) {
                    
323            throw new ApplicationException(trans('cms::lang.theme.edit.not_match'));
                    
                
Listing_1.php https://gitlab.com/gothcon/cthulhu | PHP | 310 lines
                    
17							<th class="idCol"><a href="?<?php $this->printHeaderLink("id");?>"><?php echo $this->translate("resources/id");?></a></th>
                    
18							<th class="nameCol"><a href="?<?php $this->printHeaderLink("name")?>"><?php echo $this->translate("resources/name");?></a></th>
                    
19							<th class="typeCol"><a href="?<?php $this->printHeaderLink("type")?>"><?php echo $this->translate("resources/type");?></a></th>
                    
19							<th class="typeCol"><a href="?<?php $this->printHeaderLink("type")?>"><?php echo $this->translate("resources/type");?></a></th>
                    
20							<th class="typeCol"><a href="?<?php $this->printHeaderLink("available")?>"><?php echo $this->translate("resources/isAvailable");?></a></th>
                    
21							<th class="typeCol"><?php echo $this->translate("resources/availableForSleeping");?></th>
                    
33							<tr class="<?php echo $r++ % 2 ? "even" : "odd";?>">
                    
34								<td><a href="<?php echo $resourceLink; ?>"><?php psafe($resource->id)?></a></td>
                    
35								<td><a href="<?php echo $resourceLink; ?>"><?php psafe($resource->name)?></a></td>
                    
35								<td><a href="<?php echo $resourceLink; ?>"><?php psafe($resource->name)?></a></td>
                    
36								<td><a href="<?php echo $resourceTypeLink; ?>"><?php psafe($resourceType->name);?></a></td>
                    
37								<td><a href="<?php echo $resourceLink; ?>"><?php echo $resource->available ? $this->translate("general/yes") : $this->translate("general/no");?></a></td>
                    
37								<td><a href="<?php echo $resourceLink; ?>"><?php echo $resource->available ? $this->translate("general/yes") : $this->translate("general/no");?></a></td>
                    
38								<td><a href="<?php echo $resourceLink; ?>"><?php echo $availableForSleeping  ? $this->translate("general/yes") : $this->translate("general/no");?></a></td>
                    
39								<td><?php psafe($noOfSleepingSlots)?></td>
                    
                
interface.php https://bitbucket.org/mrmustarde/manhattan-beach.git | PHP | 293 lines
                    
49			$php_group = reset( explode( ' ', exec( 'groups' ) ) );
                    
50			echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress is almost ready.', 'hmbkp' ) . '</strong> ' . sprintf( __( 'The backups directory can\'t be created because your %1$s directory isn\'t writable, run %2$s or %3$s or create the folder yourself.', 'hmbkp' ), '<code>wp-content</code>', '<code>chown ' . esc_html( $php_user ) . ':' . esc_html( $php_group ) . ' ' . esc_html( dirname( hmbkp_path() ) ) . '</code>', '<code>chmod 777 ' . esc_html( dirname( hmbkp_path() ) ) . '</code>' ) . '</p></div>';
                    
51		}
                    
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		}
                    
119	if ( isset( $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php'] ) )
                    
120		$plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] = str_replace( 'Once activated you\'ll find me under <strong>Tools &rarr; Backups</strong>', 'Find me under <strong><a href="' . admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG ) . '">Tools &rarr; Backups</a></strong>', $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] );
                    
121
                    
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
                    
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
                    
                
module.php https://gitlab.com/ebrjose/comcebu | PHP | 318 lines
                    
124			// PHPCS - Already validated in caller function.
                    
125			$file_name = $_FILES['e_import_file']['tmp_name']; // phpcs:ignore WordPress.Security.NonceVerification.Missing
                    
126		}
                    
263		<div class="tab-import-export-kit__content">
                    
264			<p class="tab-import-export-kit__info"><?php Utils::print_unescaped_internal_string( $intro_text ); ?></p>
                    
265
                    
266			<div class="tab-import-export-kit__wrapper">
                    
267			<?php foreach ( $content_data as $data ) { ?>
                    
268				<div class="tab-import-export-kit__container">
                    
269					<div class="tab-import-export-kit__box">
                    
270						<h2><?php Utils::print_unescaped_internal_string( $data['title'] ); ?></h2>
                    
271						<a href="<?php Utils::print_unescaped_internal_string( $data['button']['url'] ); ?>" class="elementor-button elementor-button-success">
                    
275					<p><?php Utils::print_unescaped_internal_string( $data['description'] ); ?></p>
                    
276					<a href="<?php Utils::print_unescaped_internal_string( $data['link']['url'] ); ?>" target="_blank"><?php Utils::print_unescaped_internal_string( $data['link']['text'] ); ?></a>
                    
277				</div>
                    
                
Generator.php https://gitlab.com/nexendrie/site-generator | PHP | 329 lines
                    
1<?php
                    
2declare(strict_types=1);
                    
181  protected function normalizeStyles(array &$meta, string &$html, string $filename): void {
                    
182    $basePath = dirname($filename);
                    
183    $this->removeInvalidFiles($meta["styles"], $basePath);
                    
197  protected function normalizeScripts(array &$meta, string &$html, string $filename): void {
                    
198    $basePath = dirname($filename);
                    
199    $this->removeInvalidFiles($meta["scripts"], $basePath);
                    
225      $target = $link->getAttribute("href");
                    
226      $target = dirname($filename) . "/" . $target;
                    
227      foreach($this->filesToProcess as $file) {
                    
300    foreach($images as $image) {
                    
301      $path = dirname($filename) . "/" . $image->getAttribute("src");
                    
302      if(file_exists($path)) {
                    
313    foreach($this->filesToProcess as $file) {
                    
314      $path = str_replace($this->source, "", dirname($file->getRealPath()));
                    
315      $html = $this->createHtml($file->getRealPath());
                    
                
about.php https://gitlab.com/Gashler/sg | PHP | 208 lines
                    
9/** WordPress Administration Bootstrap */
                    
10require_once( dirname( __FILE__ ) . '/admin.php' );
                    
11
                    
87		'heading'     => __( 'Template Hierarchy' ),
                    
88		/* Translators: 1: singular.php; 2: single.php; 3:page.php */
                    
89		'description' => sprintf( __( 'Added %1$s as a fallback for %2$s and %3$s' ), '<code>singular.php</code>', '<code>single.php</code>', '<code>page.php</code>.' ),
                    
104		<h2 class="nav-tab-wrapper">
                    
105			<a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What&#8217;s New' ); ?></a>
                    
106			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
                    
171				<?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
                    
172					<a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
                    
173						<?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
                    
175				<?php endif; ?>
                    
176				<a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
                    
177			</div>
                    
                
walkthrough_test.php https://gitlab.com/JrLucena/moodle | PHP | 246 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
30global $CFG;
                    
31require_once(dirname(__FILE__) . '/../../../engine/lib.php');
                    
32require_once(dirname(__FILE__) . '/../../../engine/tests/helpers.php');
                    
                
utils.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 313 lines
                    
1<?php
                    
2
                    
17	$info=pathinfo($old_path);
                    
18	$new_path=$info['dirname']."/".$name.".".$info['extension'];
                    
19	if(file_exists($new_path)) return false;
                    
27	$info=pathinfo($old_path);
                    
28	$new_path=$info['dirname']."/".$name.".".$info['extension'];
                    
29	if(file_exists($new_path)) return false;
                    
36    if(file_exists($old_path)){
                    
37	$new_path=fix_dirname($old_path)."/".$name;
                    
38	if(file_exists($new_path)) return false;
                    
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);
                    
                
view.php https://github.com/t73biz/BaseApp.git | PHP | 488 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.cake.console.libs.tasks
                    
17 * @since         CakePHP(tm) v 1.2
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
20App::import('Controller', 'Controller', false);
                    
21include_once dirname(__FILE__) . DS . 'bake.php';
                    
22
                    
                
YamlFileLoader.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 421 lines
                    
1<?php
                    
2
                    
101
                    
102            $this->setCurrentDir(dirname($file));
                    
103            $this->import($import['resource'], null, isset($import['ignore_errors']) ? (bool) $import['ignore_errors'] : false, $file);
                    
                
TableProcessor.php https://gitlab.com/staging06/myproject | PHP | 356 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * TableProcessor.php
                    
4 *
                    
32
                    
33require_once(dirname(__FILE__) . '/AbstractProcessor.php');
                    
34require_once(dirname(__FILE__) . '/CreateDefinitionProcessor.php');
                    
34require_once(dirname(__FILE__) . '/CreateDefinitionProcessor.php');
                    
35require_once(dirname(__FILE__) . '/../utils/ExpressionType.php');
                    
36
                    
                
PositionCalculator.php https://gitlab.com/staging06/myproject | PHP | 221 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * position-calculator.php
                    
4 *
                    
5 * This file implements the calculator for the position elements of 
                    
6 * the output of the PHPSQLParser.
                    
7 *
                    
33
                    
34require_once dirname(__FILE__) . '/../utils/PHPSQLParserConstants.php';
                    
35require_once dirname(__FILE__) . '/../exceptions/UnableToCalculatePositionException.php';
                    
178                // SELECT, WHERE, INSERT etc.
                    
179                if (PHPSQLParserConstants::isReserved($key)) {
                    
180                    $charPos = stripos($sql, $key, $charPos);
                    
                
ajax_calls.php https://gitlab.com/staging06/myproject | PHP | 253 lines
                    
1<?php
                    
2
                    
2
                    
3include('config/config.php');
                    
4
                    
8
                    
9include('include/utils.php');
                    
10
                    
28        case 'image_size':
                    
29            if (realpath(dirname(_PS_ROOT_DIR_.$_POST['path'])) != realpath(_PS_ROOT_DIR_.$upload_dir)) {
                    
30                die();
                    
79            $info = pathinfo($path);
                    
80            $base_folder = $current_path.fix_dirname($_POST['path']).'/';
                    
81            switch ($info['extension']) {
                    
119                    check_files_extensions_on_phar($phar, $files, '', $ext);
                    
120                    $phar->extractTo($current_path.fix_dirname($_POST['path']).'/', $files, true);
                    
121
                    
                
UnitTestCase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 282 lines
                    
1<?php
                    
2
                    
11use Drupal\Core\StringTranslation\PluralTranslatableMarkup;
                    
12use Drupal\Tests\Traits\PhpUnitWarnings;
                    
13use Drupal\TestTools\TestVarDumper;
                    
13use Drupal\TestTools\TestVarDumper;
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\VarDumper\VarDumper;
                    
15use Symfony\Component\VarDumper\VarDumper;
                    
16use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
                    
17
                    
27
                    
28  use PhpUnitWarnings;
                    
29  use PhpUnitCompatibilityTrait;
                    
68
                    
69    $this->root = dirname(substr(__DIR__, 0, -strlen(__NAMESPACE__)), 2);
                    
70  }
                    
                
FigletTest.php https://github.com/christophervalles/Zend-Framework-Skeleton.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: FigletTest.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
23// Call Zend_Captcha_FigletTest::main() if this source file is executed directly.
                    
24if (!defined("PHPUnit_MAIN_METHOD")) {
                    
25    define("PHPUnit_MAIN_METHOD", "Zend_Captcha_FigletTest::main");
                    
27
                    
28require_once 'Zend/Form/Element/Captcha.php';
                    
29require_once 'Zend/Captcha/Adapter.php';
                    
29require_once 'Zend/Captcha/Adapter.php';
                    
30require_once 'Zend/Config.php';
                    
31
                    
39 */
                    
40class Zend_Captcha_FigletTest extends PHPUnit_Framework_TestCase
                    
41{
                    
                
theme-install.php https://gitlab.com/mostafame/team_website | PHP | 329 lines
                    
1<?php
                    
2/**
                    
9/** WordPress Administration Bootstrap */
                    
10require_once( dirname( __FILE__ ) . '/admin.php' );
                    
11require( ABSPATH . 'wp-admin/includes/theme-install.php' );
                    
18if ( is_multisite() && ! is_network_admin() ) {
                    
19	wp_redirect( network_admin_url( 'theme-install.php' ) );
                    
20	exit();
                    
23$title = __( 'Add Themes' );
                    
24$parent_file = 'themes.php';
                    
25
                    
26if ( ! is_network_admin() ) {
                    
27	$submenu_file = 'themes.php';
                    
28}
                    
41		'canInstall'    => current_user_can( 'install_themes' ),
                    
42		'installURI'    => current_user_can( 'install_themes' ) ? self_admin_url( 'theme-install.php' ) : null,
                    
43		'adminUrl'      => parse_url( self_admin_url(), PHP_URL_PATH )
                    
                
makeXMLForOneService.php https://gitlab.com/florianocomercial/centreon | PHP | 287 lines
                    
1<?php
                    
2/*
                    
38 */
                    
39require_once realpath(dirname(__FILE__) . "/../../../../../../config/centreon.config.php");
                    
40
                    
40
                    
41include_once $centreon_path . "www/class/centreonUtils.class.php";
                    
42
                    
45 */
                    
46include_once _CENTREON_PATH_ . "www/class/centreonXMLBGRequest.class.php";
                    
47include_once _CENTREON_PATH_ . "www/class/centreonLang.class.php";
                    
                
FilesystemTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 240 lines
                    
42            array('/foo/bar', '/foo/baz', true, "dirname(__DIR__).'/baz'"),
                    
43            array('/foo/bin/run', '/foo/vendor/acme/bin/run', true, "dirname(dirname(__DIR__)).'/vendor/acme/bin/run'"),
                    
44            array('/foo/bin/run', '/bar/bin/run', true, "'/bar/bin/run'"),
                    
47            array('c:/bin/run', 'c:/vendor/acme/bin/run', true, "dirname(dirname(__DIR__)).'/vendor/acme/bin/run'"),
                    
48            array('c:\\bin\\run', 'c:/vendor/acme/bin/run', true, "dirname(dirname(__DIR__)).'/vendor/acme/bin/run'"),
                    
49            array('c:/bin/run', 'd:/vendor/acme/bin/run', true, "'d:/vendor/acme/bin/run'"),
                    
50            array('c:\\bin\\run', 'd:/vendor/acme/bin/run', true, "'d:/vendor/acme/bin/run'"),
                    
51            array('C:/Temp/test', 'C:\Temp', true, "dirname(__DIR__)"),
                    
52            array('C:/Temp', 'C:\Temp\test', true, "__DIR__ . '/test'"),
                    
57            array('/tmp/test/../vendor', '/tmp/test', true, "dirname(__DIR__).'/test'"),
                    
58            array('/tmp/test/.././vendor', '/tmp/test', true, "dirname(__DIR__).'/test'"),
                    
59            array('C:/Temp', 'c:\Temp\..\..\test', true, "dirname(__DIR__).'/test'"),
                    
63            array('/foo/bar_vendor', '/foo/bar/src', true, "dirname(__DIR__).'/bar/src'"),
                    
64            array('/foo/bar_vendor/src2', '/foo/bar/src/lib', true, "dirname(dirname(__DIR__)).'/bar/src/lib'"),
                    
65        );
                    
                
submit.php https://github.com/severnaya99/Sg-2010.git | PHP | 376 lines
                    
59
                    
60include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->dirname() . '/class/wfsarticle.php';
                    
61include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->dirname() . '/class/common.php';
                    
66
                    
67include_once XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->dirname().'/class/wfsfiles.php';
                    
68include_once XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->dirname().'/class/uploadfile.php';
                    
68include_once XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->dirname().'/class/uploadfile.php';
                    
69//include_once(XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/cache/uploadconfig.php");
                    
70
                    
309		
                    
310	include_once(XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/class/wfscategory.php");
                    
311	include_once(XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/class/wfsarticle.php");
                    
350//include_once(XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/class/wfscategory.php");
                    
351//include_once(XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/class/wfsarticle.php");
                    
352// bug fix : don't take over a category id to the preview 
                    
                
Form_bu.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 382 lines
                    
284			$options = '<?php foreach($Field[\'Options\'] as $Options):?>
                    
285			<option value="<?php echo $Options[\'value\'] ?>"<?php if($Options[\'value\'] == $Field[\'Value\']): ?> selected="selected"<?php endif ?>><?php echo $Options[\'text\'] ?></option>
                    
286			<?php endforeach ?>';
                    
306			$options = '<?php $ArrValue = explode(\',\',$Field[\'Value\']); foreach($Field[\'Options\'] as $Options):?>
                    
307			<option value="<?php echo $Options[\'value\'] ?>"<?php if(in_array($Options[\'value\'],$ArrValue)): ?> selected="selected"<?php endif ?>><?php echo $Options[\'text\'] ?></option>
                    
308			<?php endforeach ?>';
                    
330			<label for="ID_<?php echo $Field[\'Name\'] ?>_<?php echo $Options[\'value\'] ?>">
                    
331				<input type="radio" name="<?php echo $Field[\'Name\'] ?>" id="ID_<?php echo $Field[\'Name\'] ?>_<?php echo $Options[\'value\'] ?>" class="<?php echo $Field[\'Class\'] ?>" value="<?php echo $Options[\'value\'] ?>"<?php if($Options[\'value\'] == $Field[\'Value\']): ?> checked="checked"<?php endif ?>/>
                    
332				<?php echo $Options[\'text\'] ?>
                    
339				$options[] = '<label for="ID_' . $this->Element['Name'] . '_' . $Opt['value'] . '">
                    
340				<input type="radio" name="' . $this->Element['Name'] . '" id="ID_' . $this->Element['Name'] . '_' . $Opt['value'] . '" class="' . $this->Element['Class'] . '" value="' . $Opt['value'] . '"<?php if(\'' . $Opt['value'] . '\' == $Field[\'Value\']): ?> checked="checked"<?php endif ?>/>' . $Opt['text'] . '</label>';
                    
341			}
                    
356			<label for="ID_<?php echo $Field[\'Name\'] ?>_<?php echo $Options[\'value\'] ?>">
                    
357				<input type="checkbox" name="<?php echo $Field[\'Name\'] ?>[]" id="ID_<?php echo $Field[\'Name\'] ?>_<?php echo $Options[\'value\'] ?>" class="<?php echo $Field[\'Class\'] ?>" value="<?php echo $Options[\'value\'] ?>"<?php if(in_array($Options[\'value\'],$ArrValue)): ?> checked="checked"<?php endif ?>/>
                    
358				<?php echo $Options[\'text\'] ?>
                    
                
postMash.php https://gitlab.com/Gashler/sg | PHP | 345 lines
                    
82		foreach ($pageposts as $page): //list pages, [the 'li' ID must be pm_'page ID'] ?>
                    
83			<li id="pm_<?php echo $page->ID; ?>"<?php if($page->post_status == "draft"){ echo ' class="remove"'; } //if page is draft, add class remove ?>>
                    
84				<span style="float:right;">
                    
93				_e('');
                    
94			} ?></span><span class="title"><?php echo $page->post_title;?></span>
                    
95				<span class="postMash_box">
                    
98						id:<?php echo $page->ID;?>
                    
99						[<a href="<?php echo get_bloginfo('wpurl').'/wp-admin/post.php?action=edit&post='.$page->ID; ?>" title="Edit This Post">edit</a>]
                    
100						<?php if($switchDraftToPublishFeature): ?>
                    
143			<form action="" method="get" enctype="multipart/form-data">
                    
144			<input type="hidden" name="page" value="postmash-filtered/postMash.php"  />
                    
145			<select name='m'>
                    
145			<select name='m'>
                    
146			<option<?php selected( $m, 0 ); ?> value='0'><?php _e('Show all dates'); ?></option>
                    
147			<?php
                    
                
File.php https://github.com/robeendey/ce.git | PHP | 465 lines
                    
25 */
                    
26// require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31// require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
86        if ($fileName == '') {
                    
87            // require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
113            if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) {
                    
114                // require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
115                throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
                    
                
instance_factory.py https://github.com/jsa/gaesdk-python.git | Python | 297 lines
                    
37
                    
38os.path.join(os.path.dirname(sys.argv[0]), '_php_runtime.py')
                    
39    )
                    
40_CHECK_ENVIRONMENT_SCRIPT_PATH = os.path.join(
                    
41    os.path.dirname(__file__), 'check_environment.php')
                    
42_RUNTIME_ARGS = [sys.executable, _RUNTIME_PATH]
                    
69    if runtime == 'php55':
                    
70      php_binary_dir = 'php/php-5.5-Win32-VC11-x86'
                    
71  elif sys.platform == 'darwin':
                    
228
                    
229    cls._check_php_version(php_executable_path, env)
                    
230    cls._check_environment(php_executable_path, env)
                    
282    php_executable_path = (
                    
283        self._GenerateConfigForRuntime().php_config.php_executable_path)
                    
284
                    
                
BaseTest.php https://github.com/smoke/maintainable-framework.git | PHP | 325 lines
                    
1<?php
                    
2/**
                    
6 * @copyright  (c) 2007-2009 Maintainable Software, LLC
                    
7 * @license    http://opensource.org/licenses/bsd-license.php BSD 
                    
8 */
                    
14if (!defined('MAD_ROOT')) {
                    
15    require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))).'/config/environment.php';
                    
16}
                    
25 * @copyright  (c) 2007-2009 Maintainable Software, LLC
                    
26 * @license    http://opensource.org/licenses/bsd-license.php BSD
                    
27 */
                    
170          'id'      => '1',
                    
171          'title'   => 'Easier XML-RPC for PHP5',
                    
172          'user_id' => '1'
                    
187          'id'      => '1',
                    
188          'title'   => 'Easier XML-RPC for PHP5',
                    
189          'user_id' => '1', 
                    
                
TestOfLinkMySQLDAO.php https://github.com/dagda/ThinkUp.git | PHP | 290 lines
                    
1<?php
                    
2require_once dirname(__FILE__).'/init.tests.php';
                    
3require_once THINKUP_ROOT_PATH.'webapp/_lib/extlib/simpletest/autorun.php';
                    
3require_once THINKUP_ROOT_PATH.'webapp/_lib/extlib/simpletest/autorun.php';
                    
4require_once THINKUP_ROOT_PATH.'webapp/config.inc.php';
                    
5
                    
119            'http://example.com/test',
                    
120            'http://very.long.domain.that.nobody.would.bother.to.type.com/index.php', 'Very Long URL', '12345678901',
                    
121            'twitter', false);
                    
129        $this->assertEqual($result->expanded_url,
                    
130        'http://very.long.domain.that.nobody.would.bother.to.type.com/index.php');
                    
131        $this->assertEqual($result->title, 'Very Long URL');
                    
179            'http://example.com/test',
                    
180            'http://very.long.domain.that.nobody.would.bother.to.type.com/index.php',
                    
181            'Very Long URL',
                    
                
YamlFileLoader.php https://bitbucket.org/cryofrost/portal.git | PHP | 339 lines
                    
1<?php
                    
2
                    
95        foreach ($content['imports'] as $import) {
                    
96            $this->setCurrentDir(dirname($file));
                    
97            $this->import($import['resource'], null, isset($import['ignore_errors']) ? (Boolean) $import['ignore_errors'] : false, $file);
                    
                
view.php https://github.com/Br3nda/mahara.git | PHP | 273 lines
                    
1<?php
                    
2/**
                    
33
                    
34require(dirname(dirname(dirname(__FILE__))) . '/init.php');
                    
35require_once('group.php');
                    
36safe_require('interaction', 'forum');
                    
37require_once(get_config('docroot') . 'interaction/lib.php');
                    
38require_once('pieforms/pieform.php');
                    
135    }
                    
136    redirect('/interaction/forum/view.php?id=' . $forumid . '&offset=' . $offset);
                    
137}
                    
217$pagination = build_pagination(array(
                    
218    'url' => get_config('wwwroot') . 'interaction/forum/view.php?id=' . $forumid,
                    
219    'count' => $forum->topiccount,
                    
                
XmlFileLoader.php https://gitlab.com/judielsm/Handora | PHP | 276 lines
                    
1<?php
                    
2
                    
181
                    
182        $this->setCurrentDir(dirname($path));
                    
183
                    
                
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
                    
                
Filesystem.php https://gitlab.com/pthapa81/MeroSaaman-1.0 | PHP | 573 lines
                    
1<?php
                    
2
                    
313     *
                    
314     * @param string $dirname path to directory
                    
315     *
                    
317     */
                    
318    public function deleteDir($dirname)
                    
319    {
                    
319    {
                    
320        $dirname = Util::normalizePath($dirname);
                    
321
                    
321
                    
322        if ($dirname === '') {
                    
323            throw new RootViolationException('Root directories can not be deleted.');
                    
333    {
                    
334        $dirname = Util::normalizePath($dirname);
                    
335        $config = $this->prepareConfig($config);
                    
                
_configure.php https://gitlab.com/mattswann/launch-housing | PHP | 304 lines
                    
1<?php // Settings to display in a form for a user to configure.
                    
2/*
                    
63			
                    
64			require_once( dirname( __FILE__ ) . '/class.itx_helper2.php' );
                    
65			global $wp_version;
                    
222		'title'		=>		__( 'Send per burst', 'it-l10n-backupbuddy' ),
                    
223		'tip'		=>		__( '[Example: 10] - This is the amount of data that will be sent per burst within a single PHP page load/chunk. Bursts happen within a single page load. Chunks occur when broken up between page loads/PHP instances. Reduce if hitting PHP memory limits. Chunking time limits will only be checked between bursts. Lower burst size if timeouts occur before chunking checks trigger.', 'it-l10n-backupbuddy' ),
                    
224		'rules'		=>		'required|int[0-9999999]',
                    
                
wps-exclusions.php https://gitlab.com/hop23typhu/faci-times | PHP | 234 lines
                    
51			<td>
                    
52				<input id="wps-exclusions" type="checkbox" value="1" name="wps_record_exclusions" <?php echo $WP_Statistics->get_option('record_exclusions')==true? "checked='checked'":'';?>><label for="wps-exclusions"><?php _e('Enable', 'wp_statistics'); ?></label>
                    
53				<p class="description"><?php _e('This will record all the excluded hits in a separate table with the reasons why it was excluded but no other information.  This will generate a lot of data but is useful if you want to see the total number of hits your site gets, not just actual user visits.', 'wp_statistics'); ?></p>
                    
73			<td>
                    
74				<input id="<?php echo $option_name;?>" type="checkbox" value="1" name="<?php echo $option_name;?>" <?php echo $WP_Statistics->get_option($store_name)==true? "checked='checked'":'';?>><label for="<?php echo $option_name;?>"><?php _e('Exclude', 'wp_statistics'); ?></label>
                    
75				<p class="description"><?php echo sprintf(__('Exclude %s role from data collection.', 'wp_statistics'), $translated_role_name); ?></p>
                    
89
                    
90					include_once(dirname( __FILE__ ) . '/../../../robotslist.php');
                    
91					
                    
209			<td>
                    
210				<input id="wps-exclude-feeds" type="checkbox" value="1" name="wps_exclude_feeds" <?php echo $WP_Statistics->get_option('exclude_feeds')==true? "checked='checked'":'';?>><label for="wps-exclude-feeds"><?php _e('Exclude', 'wp_statistics'); ?></label>
                    
211				<p class="description"><?php _e('Exclude the RSS feeds for registering as a hit.', 'wp_statistics'); ?></p>
                    
216			<td>
                    
217				<input id="wps-exclude-404s" type="checkbox" value="1" name="wps_exclude_404s" <?php echo $WP_Statistics->get_option('exclude_404s')==true? "checked='checked'":'';?>><label for="wps-exclude-404s"><?php _e('Exclude', 'wp_statistics'); ?></label>
                    
218				<p class="description"><?php _e('Exclude any URL that returns a "404 - Not Found" message.', 'wp_statistics'); ?></p>
                    
                
options.php https://gitlab.com/billyprice1/website | PHP | 415 lines
                    
1<?php
                    
2require_once(dirname(__FILE__) . '/admin_options/AdminPageFactory.php');
                    
3
                    
99			'posts' => __('Your latest posts', TEMPLATENAME),
                    
100			'page' => sprintf(__('A %sstatic page%s (select bellow)', TEMPLATENAME), '<a href="edit.php?post_type=page">', '</a>'),
                    
101		),
                    
                
StaticTest.php https://github.com/tanduy/zf.git | PHP | 397 lines
                    
26 */
                    
27require_once dirname(__FILE__) . '/../../../TestHelper.php';
                    
28
                    
33 */
                    
34require_once 'Zend/Db.php';
                    
35
                    
78        } else {
                    
79            $this->markTestIncomplete('Failure to meet type hint results in fatal error in PHP < 5.2.0');
                    
80        }
                    
132        $ip = get_include_path();
                    
133        $dir = dirname(__FILE__) . DIRECTORY_SEPARATOR . '_files';
                    
134        $newIp = $dir . PATH_SEPARATOR . $ip;
                    
162    {
                    
163        list($major, $minor, $revision) = explode('.', PHP_VERSION);
                    
164        if ($minor >= 2) {
                    
                
OnlineTest.php https://bitbucket.org/ksekar/campus.git | PHP | 289 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: OnlineTest.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
25 */
                    
26require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'OnlineTestCase.php';
                    
27/**
                    
29 */
                    
30require_once 'Zend/Ldap/Node.php';
                    
31
                    
                
OnlineTest.php https://bitbucket.org/dbaltas/zend-framework-1.x-on-git.git | PHP | 289 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: OnlineTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
25 */
                    
26require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'OnlineTestCase.php';
                    
27/**
                    
29 */
                    
30require_once 'Zend/Ldap/Node.php';
                    
31
                    
                
Filesystem.php https://github.com/nathanlon/twical.git | PHP | 412 lines
                    
45
                    
46require_once 'PHPUnit/Util/Filter.php';
                    
47
                    
47
                    
48PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
                    
49
                    
126        foreach (self::collectEnd() as $blacklistedFile) {
                    
127            PHPUnit_Util_Filter::addFileToFilter($blacklistedFile, 'PHPUNIT');
                    
128        }
                    
315     * (
                    
316     *     [/home/sb/PHPUnit/Samples/Money/Money.php] => Array
                    
317     *         (
                    
320     *
                    
321     *     [/home/sb/PHPUnit/Samples/Money/MoneyBag.php] => Array
                    
322     *         (
                    
                
ajax.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 446 lines
                    
27	// include the ngg function
                    
28	include_once (dirname (__FILE__) . '/functions.php');
                    
29
                    
157
                    
158	require_once( dirname( dirname(__FILE__) ) . '/ngg-config.php');
                    
159
                    
160	// include the ngg function
                    
161	include_once (dirname (__FILE__). '/functions.php');
                    
162			
                    
197    
                    
198   	require_once( dirname( dirname(__FILE__) ) . '/admin/admin.php');
                    
199	require_once( dirname( dirname(__FILE__) ) . '/admin/overview.php');
                    
313        	
                    
314   	include_once( dirname( dirname(__FILE__) ) . '/admin/tinymce/window.php');
                    
315    
                    
                
AnalyzerTest.php https://github.com/proofek/pdepend.git | PHP | 440 lines
                    
48
                    
49require_once dirname(__FILE__) . '/../AbstractTest.php';
                    
50
                    
50
                    
51require_once 'PHP/Depend/Code/Class.php';
                    
52require_once 'PHP/Depend/Code/File.php';
                    
54require_once 'PHP/Depend/Code/NodeIterator.php';
                    
55require_once 'PHP/Depend/Code/Package.php';
                    
56require_once 'PHP/Depend/Code/Filter/Package.php';
                    
57require_once 'PHP/Depend/Code/Filter/Collection.php';
                    
58require_once 'PHP/Depend/Metrics/Inheritance/Analyzer.php';
                    
59
                    
71 */
                    
72class PHP_Depend_Metrics_Inheritance_AnalyzerTest extends PHP_Depend_Metrics_AbstractTest
                    
73{
                    
                
admin-post-navigation.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 290 lines
                    
1<?php
                    
2/**
                    
72	public static function init() {
                    
73		add_action( 'load-post.php', array( __CLASS__, 'register_post_page_hooks' ) );
                    
74	}
                    
76	/**
                    
77	 * Filters/actions to hook on the admin post.php page.
                    
78	 *
                    
84		// Load textdomain
                    
85		load_plugin_textdomain( 'admin-post-navigation', false, basename( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' );
                    
86
                    
                
plugin.php https://gitlab.com/endomorphosis/falkenstein | PHP | 248 lines
                    
1<?php
                    
2/*
                    
19 */
                    
20require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
                    
21
                    
106            $newFilePath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_currentFolder->getServerPath(), $newFileName);
                    
107            if (!is_writable(dirname($newFilePath))) {
                    
108                $this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED);
                    
121
                    
122        require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/Thumbnail.php";
                    
123
                    
                
COciTest.php https://gitlab.com/RECITEC/yii | PHP | 378 lines
                    
1<?php
                    
2
                    
28		$dsn=self::DB_DSN_PREFIX.':dbname='.self::DB_HOST.':'.self::DB_PORT.'/'.self::DB_SERVICE.';charset=UTF8';
                    
29		$schemaFilePath=realpath(dirname(__FILE__).'/../data/oci.sql');
                    
30
                    
                
Http.php https://gitlab.com/rsilveira1987/Expresso | PHP | 453 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Http.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
20 */
                    
24 */
                    
25require_once 'Zend/File/Transfer/Adapter/Abstract.php';
                    
26
                    
47        if (ini_get('file_uploads') == false) {
                    
48            require_once 'Zend/File/Transfer/Exception.php';
                    
49            throw new Zend_File_Transfer_Exception('File uploads are not allowed in your php config!');
                    
110    {
                    
111        require_once 'Zend/File/Transfer/Exception.php';
                    
112        throw new Zend_File_Transfer_Exception('Method not implemented');
                    
122    {
                    
123        // Workaround for a PHP error returning empty $_FILES when form data exceeds php settings
                    
124        if (empty($this->_files) && ($_SERVER['CONTENT_LENGTH'] > 0)) {
                    
                
XmlImportTemplateParser.php https://gitlab.com/najomie/fit-hippie | PHP | 444 lines
                    
7require_once dirname(__FILE__) . '/ast/XmlImportAstSequence.php';
                    
8require_once dirname(__FILE__) . '/ast/XmlImportAstPrint.php';
                    
9require_once dirname(__FILE__) . '/ast/XmlImportAstText.php';
                    
9require_once dirname(__FILE__) . '/ast/XmlImportAstText.php';
                    
10require_once dirname(__FILE__) . '/ast/XmlImportAstWith.php';
                    
11require_once dirname(__FILE__) . '/ast/XmlImportAstForeach.php';
                    
11require_once dirname(__FILE__) . '/ast/XmlImportAstForeach.php';
                    
12require_once dirname(__FILE__) . '/ast/XmlImportAstIf.php';
                    
13require_once dirname(__FILE__) . '/ast/XmlImportAstMath.php';
                    
13require_once dirname(__FILE__) . '/ast/XmlImportAstMath.php';
                    
14require_once dirname(__FILE__) . '/ast/XmlImportAstSpintax.php';
                    
15
                    
19require_once dirname(__FILE__) . '/ast/XmlImportAstFloat.php';
                    
20require_once dirname(__FILE__) . '/ast/XmlImportAstFunction.php';
                    
21
                    
                
parameter.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 454 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: parameter.php 14401 2010-01-26 14:10:00Z louis $
                    
4 * @package		Joomla.Framework
                    
6 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
                    
7 * @license		GNU/GPL, see LICENSE.php
                    
8 * Joomla! is free software. This version may have been modified pursuant
                    
11 * other free or open source software licenses.
                    
12 * See COPYRIGHT.php for copyright notices and details.
                    
13 */
                    
20//Register the element class with the loader
                    
21JLoader::register('JElement', dirname(__FILE__).DS.'parameter'.DS.'element.php');
                    
22
                    
80		// Set base path
                    
81		$this->_elementPath[] = dirname( __FILE__ ).DS.'parameter'.DS.'element';
                    
82
                    
                
MaildirFolderTest.php https://github.com/Shreef/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirFolderTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
75        $this->_params = array();
                    
76        $this->_params['dirname'] = $this->_tmpdir;
                    
77
                    
155        try {
                    
156            $mail = new Folder\Maildir(array('dirname' => 'This/Folder/Does/Not/Exist'));
                    
157        } catch (\Exception $e) {
                    
160
                    
161        $this->fail('no exception raised while loading unknown dirname');
                    
162    }
                    
203        try {
                    
204            // explicit call of __toString() needed for PHP < 5.2
                    
205            $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');
                    
                
Media.php https://gitlab.com/yousafsyed/easternglamor | PHP | 356 lines
                    
1<?php
                    
2/**
                    
48     * @return Product
                    
49     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
50     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
124     * @return Product
                    
125     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
126     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
288                : $this->mediaDirectory->getAbsolutePath($this->mediaConfig->getMediaPath($file));
                    
289            $destFile = dirname($file) . '/' . FileUploader::getNewFileName($destinationFile);
                    
290        }
                    
                
AssignCourse.php https://gitlab.com/redwan4re/web-apps-php-26 | PHP | 329 lines
                    
1<?php
                    
2
                    
6
                    
7include_once (dirname(__FILE__) . '/../DBConnection/DBConnection.php');
                    
8
                    
143        }
                    
144        header('location:assign_new_course.php');
                    
145    }
                    
323                    ));
                    
324            header("location:view_assigned_course.php?viewBy=$this->viewby");
                    
325        } catch (PDOException $e) {
                    
                
unpack.php https://gitlab.com/milo-ft/osTicket | PHP | 270 lines
                    
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");
                    
184        if ($recurse) {
                    
185            $folders = glob(dirname($folder).'/'.basename($folder),
                    
186                GLOB_BRACE|GLOB_ONLYDIR|GLOB_NOSORT);
                    
192                $this->unpackage(
                    
193                    dirname($folder).'/'.basename($dir).'/'.basename($folder),
                    
194                    $destination.basename($dir),
                    
206        $pipes = array();
                    
207        $php = proc_open('php', array(
                    
208            0 => array('pipe', 'r'),
                    
                
CaptureCache.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 387 lines
                    
1<?php
                    
2/**
                    
31
                    
32            // http://php.net/manual/function.ob-start.php
                    
33            // -> If output_callback  returns FALSE original input is sent to the browser.
                    
224        } else {
                    
225            $path = dirname($pageId);
                    
226        }
                    
329                array_unshift($parts, basename($path));
                    
330                $nextPath = dirname($path);
                    
331                if ($nextPath === $path) {
                    
                
adodb-session.php https://bitbucket.org/tedbundyjr/adodb5.git | PHP | 439 lines
                    
1<?php
                    
2/*
                    
17 
                    
18	include('adodb.inc.php');
                    
19	include('adodb-session.php');
                    
27
                    
28	include('adodb.inc.php');
                    
29	include('adodb-session.php');
                    
69	
                    
70  3. Recommended is PHP 4.1.0 or later. There are documented
                    
71	 session bugs in earlier versions of PHP.
                    
99if (!defined('_ADODB_LAYER')) {
                    
100	include (dirname(__FILE__).'/adodb.inc.php');
                    
101}
                    
110 /*
                    
111	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
                    
112*/
                    
                
culture_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 345 lines
                    
9
                    
10require_once(dirname(__FILE__)."/../include/prolog_admin_before.php");
                    
11require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
11require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
12define("HELP_FILE", "settings/culture_edit.php");
                    
13
                    
76		if($request["save"] <> '')
                    
77			LocalRedirect(BX_ROOT."/admin/culture_admin.php?lang=".LANGUAGE_ID);
                    
78		else
                    
78		else
                    
79			LocalRedirect(BX_ROOT."/admin/culture_edit.php?lang=".LANGUAGE_ID."&ID=".$ID."&".$tabControl->ActiveTabParam());
                    
80	}
                    
113
                    
114require($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/prolog_admin_after.php");
                    
115
                    
                
class-wp-image-editor.php https://gitlab.com/Gashler/dp | PHP | 403 lines
                    
1<?php
                    
2/**
                    
262			$info = pathinfo( $filename );
                    
263			$dir  = $info['dirname'];
                    
264
                    
290		$info = pathinfo( $this->file );
                    
291		$dir  = $info['dirname'];
                    
292		$ext  = $info['extension'];
                    
333			// The directory containing the original file may no longer exist when using a replication plugin. 
                    
334			wp_mkdir_p( dirname( $filename ) ); 
                    
335		}
                    
                
Xlsx.php https://gitlab.com/yousafsyed/easternglamor | PHP | 266 lines
                    
1<?php
                    
2/**
                    
24/** Zend_Search_Lucene_Document_OpenXml */
                    
25#require_once 'Zend/Search/Lucene/Document/OpenXml.php';
                    
26
                    
27/** Zend_Xml_Security */
                    
28#require_once 'Zend/Xml/Security.php';
                    
29
                    
85        if (!class_exists('ZipArchive', false)) {
                    
86            #require_once 'Zend/Search/Lucene/Exception.php';
                    
87            throw new Zend_Search_Lucene_Exception('MS Office documents processing functionality requires Zip extension to be loaded');
                    
102        if ($relationsXml === false) {
                    
103            #require_once 'Zend/Search/Lucene/Exception.php';
                    
104            throw new Zend_Search_Lucene_Exception('Invalid archive or corrupted .xlsx file.');
                    
130                        $worksheets[ str_replace( 'rId', '', (string)$workbookRelation["Id"]) ] = Zend_Xml_Security::scan(
                    
131                            $package->getFromName( $this->absoluteZipPath(dirname($rel["Target"]) . "/" . dirname($workbookRelation["Target"]) . "/" . basename($workbookRelation["Target"])) )
                    
132                        );
                    
                
mercadopago.php https://gitlab.com/mvcarvalho/plataforma-e-commerce | PHP | 323 lines
                    
1<?php
                    
2
                    
9 */
                    
10$GLOBALS["LIB_LOCATION"] = dirname(__FILE__);
                    
11
                    
251        if (!extension_loaded ("curl")) {
                    
252            throw new Exception("cURL extension not found. You need to enable cURL in your php.ini or another configuration you have.");
                    
253        }
                    
256
                    
257        curl_setopt($connect, CURLOPT_USERAGENT, "MercadoPago PHP SDK v" . MP::version);
                    
258        //curl_setopt($connect, CURLOPT_CAINFO, $GLOBALS["LIB_LOCATION"] . "/cacert.pem");
                    
                
PhpDumperTest.php https://gitlab.com/Isaki/le331.fr | PHP | 221 lines
                    
19
                    
20class PhpDumperTest extends \PHPUnit_Framework_TestCase
                    
21{
                    
32
                    
33        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services1.php', $dumper->dump(), '->dump() dumps an empty container as an empty PHP class');
                    
34        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services1-1.php', $dumper->dump(array('class' => 'Container', 'base_class' => 'AbstractContainer', 'namespace' => 'Symfony\Component\DependencyInjection\Dump')), '->dump() takes a class and a base_class options');
                    
64        $dumper = new PhpDumper($container);
                    
65        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services10.php', $dumper->dump(), '->dump() dumps an empty container as an empty PHP class');
                    
66    }
                    
141
                    
142        $this->assertStringEqualsFile(self::$fixturesPath.'/php/services19.php', $dumper->dump(), '->dump() dumps services with anonymous factories');
                    
143    }
                    
184    {
                    
185        require_once self::$fixturesPath.'/php/services9.php';
                    
186        require_once self::$fixturesPath.'/includes/foo.php';
                    
                
AddressBookUpgradeScript.class.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 220 lines
                    
1<?php
                    
2
                    
36    function execute() {
                    
37      define('ROOT', realpath(dirname(__FILE__) . '/../../../'));
                    
38      
                    
42      
                    
43      $config_is_set = require_once INSTALLATION_PATH . '/config/config.php';
                    
44      if (!$config_is_set) {
                    
                
extension.cache.sqlite3.php https://gitlab.com/x33n/ampache | PHP | 265 lines
                    
100		$this->table = $table; // Set table
                    
101		$file = dirname(__FILE__).'/'.basename(__FILE__, 'php').'sqlite';
                    
102		if ($hide) {
                    
102		if ($hide) {
                    
103			$file = dirname(__FILE__).'/.ht.'.basename(__FILE__, 'php').'sqlite';
                    
104		}
                    
189		$stmt->bindValue(':filename', $filename, SQLITE3_TEXT);
                    
190		$stmt->bindValue(':dirname', $dirname, SQLITE3_TEXT);
                    
191		$stmt->bindValue(':filesize', $filesize, SQLITE3_INTEGER);
                    
252			case 'cache_file':
                    
253				return "INSERT INTO $this->table (filename, dirname, filesize, filetime, analyzetime, val) VALUES (:filename, :dirname, :filesize, :filetime, :atime, :val)";
                    
254				break;
                    
258			case 'get_cached_dir':
                    
259				return "SELECT val FROM $this->table WHERE dirname = :dirname";
                    
260				break;
                    
                
class.templateoperations.inc.php https://github.com/tedkulp/cmsmadesimple-2-0.git | PHP | 387 lines
                    
1<?php
                    
2#CMS - CMS Made Simple
                    
27
                    
28include_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'class.template.inc.php');
                    
29
                    
                
install.php https://gitlab.com/haque.mdmanzurul/neophix | PHP | 362 lines
                    
20	<h2>Error: PHP is not running</h2>
                    
21	<p>WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p>
                    
22</body>
                    
35/** Load WordPress Bootstrap */
                    
36require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
                    
37
                    
205$mysql_version  = $wpdb->db_version();
                    
206$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
                    
207$mysql_compat   = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' );
                    
209if ( !$mysql_compat && !$php_compat )
                    
210	$compat = sprintf( __( 'You cannot install because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version );
                    
211elseif ( !$php_compat )
                    
211elseif ( !$php_compat )
                    
212	$compat = sprintf( __( 'You cannot install because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_php_version, $php_version );
                    
213elseif ( !$mysql_compat )
                    
                
Xls.php https://gitlab.com/rsilveira1987/Expresso | PHP | 421 lines
                    
13// set include path for phpexcel
                    
14set_include_path(dirname(dirname(dirname(dirname(__FILE__)))) . '/library/PHPExcel' . PATH_SEPARATOR . get_include_path() );
                    
15
                    
34     * 
                    
35     * @var PHPExcel
                    
36     */
                    
48     * 
                    
49     * @return PHPExcel
                    
50     */
                    
195            
                    
196            // need to unregister the zip stream wrapper because it is overwritten by PHPExcel!
                    
197            // TODO file a bugreport to PHPExcel 
                    
222                    if (! isset($_field->timestamp) || $_field->timestamp == 1) {
                    
223                        $result = PHPExcel_Shared_Date::PHPToExcel($_record->{$_field->identifier}->getTimestamp());
                    
224                    } else {
                    
                
Bootstrap.php https://bitbucket.org/chuck911/bet.git | PHP | 341 lines
                    
1<?php
                    
2/**
                    
5 * @copyright Copyright &copy; Christoffer Niska 2011-
                    
6 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
7 * @version 1.0.0
                    
76		if (Yii::getPathOfAlias('bootstrap') === false)
                    
77			Yii::setPathOfAlias('bootstrap', realpath(dirname(__FILE__).'/..'));
                    
78
                    
                
helper_functions.php https://github.com/craigulliott/FTP-SSH.tmbundle.git | PHP | 317 lines
                    
1<?php
                    
2/**
                    
16// Initialize variables
                    
17$PROJECT_DIR = dirname(array_key_exists('TM_PROJECT_FILEPATH', $_SERVER) ? $_SERVER['TM_PROJECT_FILEPATH'] : $_ENV['TM_PROJECT_FILEPATH']);
                    
18$PREFS_FILE = (empty($PROJECT_DIR) ? (array_key_exists('TM_DIRECTORY', $_SERVER) ? $_SERVER['TM_DIRECTORY'] : $_ENV['TM_DIRECTORY']) : $PROJECT_DIR).'/.ftpssh_settings';
                    
                
sfValidatorDateTest.php https://github.com/bb-dev/OpenPNE3.git | PHP | 246 lines
                    
1<?php
                    
2
                    
10
                    
11require_once(dirname(__FILE__).'/../../bootstrap/unit.php');
                    
12
                    
                
TargetTxtClassObject.py https://gitlab.com/envieidoc/Clover | Python | 190 lines
                    
7# which accompanies this distribution.  The full text of the license may be found at
                    
8# http://opensource.org/licenses/bsd-license.php
                    
9#
                    
82            F = open(FileName, 'r')
                    
83            self.ConfDirectoryPath = os.path.dirname(FileName)
                    
84        except:
                    
                
site-new.php https://gitlab.com/thisishayat/itv-2016 | PHP | 227 lines
                    
10/** Load WordPress Administration Bootstrap */
                    
11require_once( dirname( __FILE__ ) . '/admin.php' );
                    
12
                    
166} ?>
                    
167<form method="post" action="<?php echo network_admin_url( 'site-new.php?action=add-site' ); ?>" novalidate="novalidate">
                    
168<?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?>
                    
170		<tr class="form-field form-required">
                    
171			<th scope="row"><label for="site-address"><?php _e( 'Site Address' ) ?></label></th>
                    
172			<td>
                    
173			<?php if ( is_subdomain_install() ) { ?>
                    
174				<input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off"/><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', $current_site->domain ); ?></span>
                    
175			<?php } else {
                    
219		<tr class="form-field">
                    
220			<td colspan="2"><?php _e( 'A new user will be created if the above email address is not in the database.' ) ?><br /><?php _e( 'The username and password will be mailed to this email address.' ) ?></td>
                    
221		</tr>
                    
                
Configuration.php https://gitlab.com/CORP-RESELLER/shopping-cart-lite | PHP | 346 lines
                    
1<?php
                    
2/**
                    
217        $caPath = realpath(
                    
218            dirname(__FILE__) .
                    
219            $sslPath .  'api_braintreegateway_com.ca.crt'
                    
                
Clover.php https://gitlab.com/ealexis.t/trends | 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
                    
                
Loader.php https://bitbucket.org/FnTm/codeigniter-zend-sample-application.git | PHP | 329 lines
                    
40     * generate a path hierarchy (e.g., "Zend_Example_Class" will map
                    
41     * to "Zend/Example/Class.php").
                    
42     *
                    
43     * If the file was not found in the $dirs, or if no $dirs were specified,
                    
44     * it will attempt to load it from PHP's include_path.
                    
45     *
                    
97        if (!class_exists($class, false) && !interface_exists($class, false)) {
                    
98            require_once 'Zend/Exception.php';
                    
99            throw new Zend_Exception("File \"$file\" does not exist or class \"$class\" was not found in the file");
                    
103    /**
                    
104     * Loads a PHP file.  This is a wrapper for PHP's include() function.
                    
105     *
                    
162     * Returns TRUE if the $filename is readable, or FALSE otherwise.
                    
163     * This function uses the PHP include_path, where PHP's is_readable()
                    
164     * does not.
                    
                
Logical.php https://gitlab.com/adamlwalker/generatedata | PHP | 288 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
122				} else {
                    
123					return PHPExcel_Calculation_Functions::VALUE();
                    
124				}
                    
130		if ($argCount < 0) {
                    
131			return PHPExcel_Calculation_Functions::VALUE();
                    
132		}
                    
                
OnlineTest.php https://github.com/tanduy/zf.git | PHP | 357 lines
                    
25 */
                    
26require_once dirname(__FILE__) . '/../../../TestHelper.php';
                    
27
                    
40 */
                    
41require_once 'Zend/Http/Client/Adapter/Socket.php';
                    
42
                    
51 */
                    
52class Zend_Service_Amazon_OnlineTest extends PHPUnit_Framework_TestCase
                    
53{
                    
112     */
                    
113    public function testItemSearchBooksPhp()
                    
114    {
                    
116            'SearchIndex'   => 'Books',
                    
117            'Keywords'      => 'php',
                    
118            'ResponseGroup' => 'Small,ItemAttributes,Images,SalesRank,Reviews,EditorialReview,Similarities,'
                    
                
sfDoctrineFormFilterGenerator.class.php https://github.com/bigcalm/urlcatcher.git | PHP | 366 lines
                    
91
                    
92      file_put_contents($baseDir.'/base/Base'.$model.'FormFilter.class.php', $this->evalTemplate(null === $this->getParentModel() ? 'sfDoctrineFormFilterGeneratedTemplate.php' : 'sfDoctrineFormFilterGeneratedInheritanceTemplate.php'));
                    
93
                    
111        } else {
                    
112           file_put_contents($classFile, $this->evalTemplate('sfDoctrineFormFilterTemplate.php'));
                    
113        }
                    
234   * @param  sfDoctrineColumn $column
                    
235   * @return string    The options to pass to the validator as a PHP string
                    
236   */
                    
329    $php = str_replace("\n", '', $php);
                    
330    $php = str_replace('array (  ', 'array(', $php);
                    
331    $php = str_replace(',)', ')', $php);
                    
331    $php = str_replace(',)', ')', $php);
                    
332    $php = str_replace('  ', ' ', $php);
                    
333    return $php;
                    
                
adodb-session.php https://gitlab.com/mrktinh/bookonline | PHP | 439 lines
                    
1<?php
                    
2/*
                    
19
                    
20	include('adodb.inc.php');
                    
21	include('adodb-session.php');
                    
29
                    
30	include('adodb.inc.php');
                    
31	include('adodb-session.php');
                    
71
                    
72  3. Recommended is PHP 4.1.0 or later. There are documented
                    
73	 session bugs in earlier versions of PHP.
                    
101if (!defined('_ADODB_LAYER')) {
                    
102	include (dirname(__FILE__).'/adodb.inc.php');
                    
103}
                    
112 /*
                    
113	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
                    
114*/
                    
                
Logical.php https://gitlab.com/ptisky/API_prestashop | PHP | 288 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
122				} else {
                    
123					return PHPExcel_Calculation_Functions::VALUE();
                    
124				}
                    
130		if ($argCount < 0) {
                    
131			return PHPExcel_Calculation_Functions::VALUE();
                    
132		}
                    
                
install.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 101 lines
                    
36$string['chooselanguagesub'] = 'Por favor, seleccione un idioma para el proceso de instalación. Este idioma se usará también como idioma por defecto del sitio, si bien puede cambiarse más adelante.';
                    
37$string['clialreadyconfigured'] = 'El archivo de configuración config.php ya existe. Por favor, use admin/cli/install_database.php para instalar Moodle para este sitio';
                    
38$string['clialreadyinstalled'] = 'El archivo de configuración config.php ya existe. Por favor, utilice admin/cli/install_database.php para actualizar Moodle para este sitio.';
                    
47$string['environmenthead'] = 'Comprobando su entorno';
                    
48$string['environmentsub2'] = 'Cada versión de Moodle tiene algún requisito mínimo de la versión de PHP y un número obligatorio de extensiones de PHP. Una comprobación del entorno completo se realiza antes de cada instalación y actualización. Por favor, póngase en contacto con el administrador del servidor si no sabe cómo instalar la nueva versión o habilitar las extensiones PHP.';
                    
49$string['errorsinenvironment'] = '¡La comprobación del entorno falló!';
                    
85$string['pathswrongadmindir'] = 'El directorio admin no existe';
                    
86$string['phpextension'] = 'Extensión PHP {$a}';
                    
87$string['phpversion'] = 'Versión PHP';
                    
87$string['phpversion'] = 'Versión PHP';
                    
88$string['phpversionhelp'] = '<p>Moodle requiere una versión de PHP de al menos 5.6.5 o 7.1 (7.0.x tiene algunas limitaciones del motor).</p>
                    
89<p>En este momento está ejecutando la versión {$a}</p>
                    
89<p>En este momento está ejecutando la versión {$a}</p>
                    
90<p>Usted debe actualizar PHP o trasladarse a otro servidor con una versión más reciente de PHP<br />';
                    
91$string['welcomep10'] = '{$a->installername} ({$a->installerversion})';
                    
                
file_functions.php https://gitlab.com/protoneutron/xbtbb3cker | PHP | 416 lines
                    
45		{
                    
46			global $phpbb_root_path, $phpEx;
                    
47
                    
49			$common_php_owner = @fileowner($phpbb_root_path . 'common.' . $phpEx);
                    
50			$common_php_group = @filegroup($phpbb_root_path . 'common.' . $phpEx);
                    
51
                    
56			// If we are unable to get owner/group, then do not try to set them by guessing
                    
57			if (!$php_uid || empty($php_gids) || !$common_php_owner || !$common_php_group)
                    
58			{
                    
67					'php_uid'		=> $php_uid,
                    
68					'php_gids'		=> $php_gids,
                    
69				);
                    
92
                    
93		// If the file_uid/gid now match the one from common.php we can process further, else we are not able to change something
                    
94		if ($file_uid != $_chmod_info['common_owner'] || $file_gid != $_chmod_info['common_group'])
                    
                
CmsCompoundObjectTest.php https://gitlab.com/gideonmarked/wellmarketing | PHP | 259 lines
                    
1<?php
                    
2
                    
10
                    
11    public static function getObjectTypeDirName()
                    
12    {
                    
20
                    
21    public static function getObjectTypeDirName()
                    
22    {
                    
250        $expected = file_get_contents($expected);
                    
251        $expected = preg_replace('~\R~u', PHP_EOL, $expected); // Normalize EOL
                    
252
                    
253        $actual = file_get_contents($actual);
                    
254        $actual = preg_replace('~\R~u', PHP_EOL, $actual); // Normalize EOL
                    
255
                    
                
xoops_version.php https://gitlab.com/BaseX/BaseX | PHP | 169 lines
                    
1<?php
                    
2// $Id: xoops_version.php 694 2006-09-04 11:33:22Z skalpa $
                    
3//  ------------------------------------------------------------------------ //
                    
4//                XOOPS - PHP Content Management System                      //
                    
5//                    Copyright (c) 2000 XOOPS.org                           //
                    
40$modversion['image'] = "images/system_slogo.png";
                    
41$modversion['dirname'] = "system";
                    
42
                    
44$modversion['hasAdmin'] = 1;
                    
45$modversion['adminindex'] = "admin.php";
                    
46$modversion['adminmenu'] = "menu.php";
                    
47
                    
48$modversion['onUpdate'] = "include/update.php";
                    
49
                    
82// Blocks
                    
83$modversion['blocks'][1]['file'] = "system_blocks.php";
                    
84$modversion['blocks'][1]['name'] = _MI_SYSTEM_BNAME2;
                    
                
rss.php https://github.com/wrobel/horde.git | PHP | 296 lines
                    
1<?php
                    
2/**
                    
12
                    
13require_once dirname(__FILE__) . '/lib/Application.php';
                    
14Horde_Registry::appInit('ansel', array('session_control' => 'readonly'));
                    
280    }
                    
281    $stream_rss = Horde::url('rss.php', true, -1)->add($getparams);
                    
282    $stream_rss2 = Horde::url('rss.php', true, -1)->add($getparams);
                    
                
TestFinder.php https://gitlab.com/Blueprint-Marketing/hhvm | PHP | 277 lines
                    
1<?hh
                    
2require_once __DIR__.'/../../../hphp/tools/command_line_lib.php';
                    
3require_once __DIR__.'/SortedIterator.php';
                    
33    // So check for both and do the right thing
                    
34    if (file_exists(__DIR__."/vendor/phpunit/phpunit/src/")) {
                    
35      // For 3.8+
                    
36      require_once __DIR__."/vendor/autoload.php";
                    
37    } else if (file_exists(__DIR__."/vendor/phpunit/phpunit/PHPUnit/")) {
                    
38      // For 3.7 and below
                    
38      // For 3.7 and below
                    
39      require_once __DIR__."/vendor/phpunit/phpunit/PHPUnit/Autoload.php";
                    
40    } else {
                    
227                                        "are named for this framework. E.g., ".
                    
228                                        "xxxxTest.php or xxxxx.phpt"},
                    
229    'test-find-mode:'     => Pair {'',  "The mode to use in order to find ".
                    
                
class-itsec-hide-backend.php https://gitlab.com/najomie/fit-hippie | PHP | 361 lines
                    
26
                    
27			$is_jetpack_active = in_array( 'jetpack/jetpack.php', (array) get_option( 'active_plugins', array() ) ) || is_plugin_active_for_network( 'jetpack/jetpack.php' );
                    
28
                    
66	public function filter_apache_server_config_modification( $modification ) {
                    
67		require_once( dirname( __FILE__ ) . '/config-generators.php' );
                    
68		
                    
72	public function filter_nginx_server_config_modification( $modification ) {
                    
73		require_once( dirname( __FILE__ ) . '/config-generators.php' );
                    
74		
                    
151					$this->settings['register'] != 'wp-register.php' &&
                    
152					strpos( $_SERVER['REQUEST_URI'], 'wp-register.php' ) !== false ||
                    
153					strpos( $_SERVER['REQUEST_URI'], 'wp-signup.php' ) !== false ||
                    
155						isset( $_REQUEST['redirect_to'] ) &&
                    
156						strpos( $_REQUEST['redirect_to'], 'wp-admin/customize.php' ) !== false
                    
157
                    
                
smarty.config.inc.php https://gitlab.com/staging06/myproject | PHP | 279 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
                    
22*  @copyright  2007-2015 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
28
                    
29require_once(_PS_SMARTY_DIR_.'Smarty.class.php');
                    
30
                    
53if (defined('_PS_ADMIN_DIR_')) {
                    
54    require_once(dirname(__FILE__).'/smartyadmin.config.inc.php');
                    
55} else {
                    
55} else {
                    
56    require_once(dirname(__FILE__).'/smartyfront.config.inc.php');
                    
57}
                    
                
export.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 244 lines
                    
9/** Load WordPress Bootstrap */
                    
10require_once( dirname( __FILE__ ) . '/admin.php' );
                    
11
                    
189			foreach ( $post_stati as $status ) : ?>
                    
190			<option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option>
                    
191			<?php endforeach; ?>
                    
220			<?php foreach ( $post_stati as $status ) : ?>
                    
221			<option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option>
                    
222			<?php endforeach; ?>
                    
227<?php foreach ( get_post_types( array( '_builtin' => false, 'can_export' => true ), 'objects' ) as $post_type ) : ?>
                    
228<p><label><input type="radio" name="content" value="<?php echo esc_attr( $post_type->name ); ?>" /> <?php echo esc_html( $post_type->label ); ?></label></p>
                    
229<?php endforeach; ?>
                    
243
                    
244<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
                    
245
                    
                
SubmitTest.php https://github.com/christophervalles/Zend-Framework-Skeleton.git | PHP | 286 lines
                    
27
                    
28require_once 'Zend/Form/Element/Submit.php';
                    
29require_once 'Zend/Form.php';
                    
29require_once 'Zend/Form.php';
                    
30require_once 'Zend/Registry.php';
                    
31require_once 'Zend/Translate.php';
                    
53
                    
54        $suite  = new PHPUnit_Framework_TestSuite("Zend_Form_Element_SubmitTest");
                    
55        $result = PHPUnit_TextUI_TestRunner::run($suite);
                    
118    {
                    
119        $translations = include dirname(__FILE__) . '/../_files/locale/array.php';
                    
120        $translate = new Zend_Translate('array', $translations, 'en');
                    
265    {
                    
266        if (strtolower(substr(PHP_OS, 0, 3)) == 'win' && version_compare(PHP_VERSION, '5.1.4', '=')) {
                    
267            $this->markTestIncomplete('Error occurs for PHP 5.1.4 on Windows');
                    
                
PlatformJobQueueTest.php https://github.com/christophervalles/Zend-Framework-Skeleton.git | PHP | 329 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: PlatformJobQueueTest.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
23/** Zend_Queue */
                    
24require_once 'Zend/Queue.php';
                    
25
                    
26/** Zend_Queue */
                    
27require_once 'Zend/Queue/Message.php';
                    
28
                    
29/** Zend_Queue_Message_Test */
                    
30require_once 'MessageTestClass.php';
                    
31
                    
32/** Base Adapter test class */
                    
33require_once dirname(__FILE__) . '/AdapterTest.php';
                    
34
                    
                
MaildirFolderTest.php https://github.com/bhaumik25/zend-framework.git | PHP | 438 lines
                    
12 */
                    
13require_once 'Zend/Mail/Storage/Folder/Maildir.php';
                    
14
                    
20/**
                    
21 * PHPUnit test case
                    
22 */
                    
22 */
                    
23require_once 'PHPUnit/Framework/TestCase.php';
                    
24
                    
271
                    
272            // explicit call of __toString() needed for PHP < 5.2
                    
273            $found_folders[$folder->__toString()] = $localName;
                    
428        mkdir($this->_params['dirname'] . '.xyyx');
                    
429        mkdir($this->_params['dirname'] . '.xyyx/cur');
                    
430
                    
                
tests.py https://bitbucket.org/ducopdep/tiny_blog.git | Python | 233 lines
                    
13
                    
14data_path = os.path.realpath(os.path.join(os.path.dirname(__file__), '..', 'data'))
                    
15city_file = os.path.join(data_path, 'cities', 'cities.shp')
                    
34# 3D freeway data derived from the National Elevation Dataset:
                    
35#  http://seamless.usgs.gov/products/9arc.php
                    
36interstate_data = (
                    
                
MinifierTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 252 lines
                    
1<?php
                    
2/**
                    
16 * @magentoDbIsolation enabled
                    
17 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
18 */
                    
18 */
                    
19class MinifierTest extends \PHPUnit_Framework_TestCase
                    
20{
                    
85        $this->assertEquals(
                    
86            file_get_contents(dirname(__DIR__) . '/_files/static/expected/styles.magento.min.css'),
                    
87            $adapter->minify(file_get_contents(dirname(__DIR__) . '/_files/static/theme/web/css/styles.css')),
                    
103        $this->assertEquals(
                    
104            file_get_contents(dirname(__DIR__) . '/_files/static/expected/test.min.js'),
                    
105            $adapter->minify(file_get_contents(dirname(__DIR__) . '/_files/static/theme/web/js/test.js')),
                    
151                    file_get_contents(
                    
152                        dirname(__DIR__)
                    
153                        . '/_files/static/expected/styles.magento.min.css'
                    
                
OnlineTest.php https://github.com/christophervalles/Zend-Framework-Skeleton.git | PHP | 289 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: OnlineTest.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
25 */
                    
26require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'OnlineTestCase.php';
                    
27/**
                    
29 */
                    
30require_once 'Zend/Ldap/Node.php';
                    
31
                    
                
ContainerTest.php https://github.com/tanduy/zf.git | PHP | 455 lines
                    
27
                    
28require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/TestHelper.php';
                    
29require_once "PHPUnit/Framework/TestCase.php";
                    
29require_once "PHPUnit/Framework/TestCase.php";
                    
30require_once "PHPUnit/Framework/TestSuite.php";
                    
31
                    
32/** Zend_View_Helper_Placeholder_Container */
                    
33require_once 'Zend/View/Helper/Placeholder/Container.php';
                    
34
                    
59    {
                    
60        require_once "PHPUnit/TextUI/TestRunner.php";
                    
61
                    
401        $value = $this->container->toString();
                    
402        $expectedValue = '    <ul><li>foo</li>' . PHP_EOL . '    <li>bar</li>' . PHP_EOL . '    <li>baz</li></ul>';
                    
403        $this->assertEquals($expectedValue, $value);
                    
                
Logical.php https://gitlab.com/Zinnurain/destination_finder_beta | PHP | 288 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
122				} else {
                    
123					return PHPExcel_Calculation_Functions::VALUE();
                    
124				}
                    
130		if ($argCount < 0) {
                    
131			return PHPExcel_Calculation_Functions::VALUE();
                    
132		}
                    
                
 

Source

Language