100+ results results for 'php dirname' (428 ms)
1<?php 2/** 4 * @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved. 5 * @license GNU/GPL, see LICENSE.php 6 * 10 * other free or open source software licenses. 11 * See COPYRIGHT.php for copyright notices and details. 12 */ 15 16require_once( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'parent.php' ); 17 73 74 require_once( EBLOG_HELPERS . DIRECTORY_SEPARATOR . 'helper.php' ); 75 $config = EasyBlogHelper::getConfig();SYLK.php https://gitlab.com/kimting254/wbms | 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(); 208edit_wiebenik.php https://bitbucket.org/driesverlinden/trotsstick.git | PHP | 410 lines
1<?php 2 /** 15 // config & functions 16 require_once './core/includes/config.php'; 17 require_once './core/includes/functions.php'; 19 // needed classes 20 require_once './core/includes/classes/database.php'; 21 require_once './core/includes/classes/template.php'; 43 if ($loggedIn === false) { 44 header('location: index.php'); 45 exit(); 56 $myBasePage = '/red'; 57 $myBaseDir = dirname(__FILE__) . '/members/' . $myMemberId . $myBasePage ; // Path where files are store 58 113 if (isset($_POST['btnCancel'])) { 114 header('Location: wiebenik.php'); 115 exit(0);trackBlobs.php https://github.com/daevid/MWFork.git | PHP | 396 lines
1<?php 2/** 24 25require( dirname( __FILE__ ) . '/../commandLine.inc' ); 26 28if ( count( $args ) < 1 ) { 29 echo "Usage: php trackBlobs.php <cluster> [... <cluster>]\n"; 30 echo "Adds blobs from a given ES cluster to the blob_tracking table\n"; 82 echo "Integrity check failed: found HistoryBlobStub objects in your text table.\n" . 83 "This script could destroy these objects if it continued. Run resolveStubs.php\n" . 84 "to fix this.\n"; 97 echo "Integrity check failed: found external storage pointers in your archive table.\n" . 98 "Run normaliseArchiveTable.php to fix this.\n"; 99 exit( 1 ); 102 "These objects are probably already broken, continuing would make them\n" . 103 "unrecoverable. Run \"normaliseArchiveTable.php --fix-cgz-bug\" to fix this.\n"; 104 exit( 1 );walkthrough_test.php https://bitbucket.org/kudutest/moodlegit.git | 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');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(); 208File.php https://github.com/grandison/budo16.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.');Compass.php https://github.com/vivid-planet/library.git | PHP | 511 lines
1<?php 2require_once dirname(__FILE__) . '/../ExtensionInterface.php'; 3class Compass implements ExtensionInterface 125 if (self::$filePaths == null) { 126 self::$filePaths = self::getFilesArray(dirname(__FILE__) . '/' . self::$filesFolder . '/'); 127 }registry.php https://github.com/dg482/joomla-platform.git | PHP | 629 lines
1<?php 2/** 11 12JLoader::register('JRegistryFormat', dirname(__FILE__) . '/format.php'); 13MaildirFolderTest.php https://github.com/mfairchild365/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');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 {install.php https://github.com/vidor/vidor.me.git | 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/Dal-Papa/is-340-publish-base.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{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.');web.php https://github.com/XioNoX/Benevolus.git | PHP | 509 lines
1<?php 2 3/** 4 Web pack for the PHP Fat-Free Framework 5 78 return $url[0]; 79 $fdir=dirname($file); 80 $rewrite=explode( 205 if ($echo) { 206 if (PHP_SAPI!='cli' && !headers_sent()) 207 header(self::HTTP_Content.': '.$mime[$ext[1]].'; '. 295 self::HTTP_Agent.': Mozilla/5.0 '. 296 '(compatible;'.PHP_OS.')'.self::EOL. 297 ($reqhdrs? 330 self::$vars['HEADERS'][]=$hdr; 331 if (PHP_SAPI!='cli' && $forward) 332 // Forward HTTP headerjlparameter.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 folderString.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 *ConfigurationTest.php https://github.com/vivid-planet/library.git | PHP | 367 lines
46 47require_once 'PHPUnit/Framework/TestCase.php'; 48 48 49require_once 'PHPUnit/Util/Configuration.php'; 50 59 * @version Release: @package_version@ 60 * @link http://www.phpunit.de/ 61 * @since Class available since Release 3.3.0 69 $this->configuration = PHPUnit_Util_Configuration::getInstance( 70 dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.xml' 71 ); 181 'class' => 'MyListener', 182 'file' => '/optional/path/to/MyListener.php', 183 'arguments' =>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{EventController.php https://github.com/Doap/xoops.git | PHP | 276 lines
1<?php 2/** 13 * @license http://www.fsf.org/copyleft/gpl.html GNU public license 14 * @author Taiwen Jiang <phppp@users.sourceforge.net> 15 * @since 3.0 48 $countList = $modelObserver->getAdapter()->fetchPairs($select); 49 foreach (array_keys($modules) as $dirname) { 50 if (empty($modules[$dirname]["events"])) { 50 if (empty($modules[$dirname]["events"])) { 51 unset($modules[$dirname]); 52 continue; 54 foreach ($modules[$dirname]["events"] as $key => &$event) { 55 $event["count"] = isset($countList[$dirname . "-" . $key]) ? $countList[$dirname . "-" . $key] : 0; 56 } 166 { 167 //include_once XOOPS::path('www') . '/class/xoopsformloader.php'; 168 Xoops_Legacy::autoload();comment.php https://github.com/Bigjoos/U-232-V1.git | PHP | 300 lines
1<?php 2/** 8 **/ 9require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'bittorrent.php'); 10require_once(INCL_DIR.'user_functions.php'); 10require_once(INCL_DIR.'user_functions.php'); 11require_once(INCL_DIR.'bbcode_functions.php'); 12require_once(INCL_DIR.'torrenttable_functions.php'); 117 118 header("Refresh: 0; url=$locale_link.php?id=$id$extra_link&viewcomm=$newid#comm$newid"); 119 die; 135 $HTMLOUT .= "<h1>{$lang['comment_add']}'".htmlspecialchars($arr[$name])."'</h1> 136 <br /><form method='post' action='comment.php?action=add'> 137 <input type='hidden' name='tid' value='{$id}'/> 156 if (count($allrows)) { 157 require_once(INCL_DIR.'html_functions.php'); 158 require_once(INCL_DIR.'bbcode_functions.php');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';ApiTest.php https://bitbucket.org/ZephyrQG2/sf2bundleeditable.git | PHP | 311 lines
1<?php 2require_once dirname(__FILE__).'/config.php'; 3require_once dirname(__FILE__).'/../../uploadcare/lib/5.2/Uploadcare.php'; 4 5class ApiTest extends PHPUnit_Framework_TestCase 6{ 264 try { 265 $file = $api->uploader->fromPath(dirname(__FILE__).'/test.jpg'); 266 } catch (Exception $e) { 276 try { 277 $fp = fopen(dirname(__FILE__).'/test.jpg', 'r'); 278 $file = $api->uploader->fromResource($fp);site-users.php https://gitlab.com/juanito.abelo/nlmobile | 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.');settings.php https://github.com/mgsisk/webcomic.git | PHP | 459 lines
1<?php 2/** 63 if ( webcomic( 'option.uninstall' ) ) { 64 $path = dirname( __DIR__ ); 65 $components = array_reverse( array_map( 'basename', array_unique( array_merge( [ $path . '/collection', $path . '/compat' ], glob( $path . '/*', GLOB_ONLYDIR ) ) ) ) ); 106 function() { 107 require __DIR__ . '/settings-inc-page.php'; 108 } 131 $args = [ 132 'file' => __DIR__ . '/settings-inc-section.php', 133 'option' => webcomic( 'option.components' ), 162 'webcomic_general', [ 163 'file' => __DIR__ . '/settings-inc-field-uninstall.php', 164 'option' => webcomic( 'option.uninstall' ), 187 'webcomic_general', [ 188 'file' => __DIR__ . '/settings-inc-field-debug.php', 189 'option' => webcomic( 'option.debug' ),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'; 21DBFile.class.php https://github.com/Krassmus/tsc.git | PHP | 241 lines
1<?php 2 2 3require_once dirname(__file__)."/vendor/qqUpload.php"; 4require_once dirname(__file__)."/Cache.class.php"; 50 * Liefert die aktuelle Datei aus, wenn der Nutzer das Recht zum Sehen hat. 51 * Ignoriert alle anderen Ausgaben von PHP und beendet das Programm, sodass nur die Datei 52 * zurückgegeben werden kann! 99 $uploader = new qqFileUploader($allowedExtensions, $sizeLimit); 100 $result = $uploader->handleUpload(dirname(__file__)."/../tmp/"); 101 // to pass data through iframe you will need to encode all html tags 152 $uploader = new qqFileUploader($allowedExtensions, $sizeLimit); 153 $result = $uploader->handleUpload(dirname(__file__)."/../tmp/"); 154 // to pass data through iframe you will need to encode all html tags 194 $uploader = new qqFileUploader($allowedExtensions, $sizeLimit); 195 $result = $uploader->handleUpload(dirname(__file__)."/../tmp/"); 196 // to pass data through iframe you will need to encode all html tagsadodb-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’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 → Updates' ); ?> 203 <?php endif; ?> 204 <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard → Home' ) : _e( 'Go to Dashboard' ); ?></a> 205 </div>FileStorage.php https://github.com/vohnicky/treeview.git | PHP | 451 lines
1<?php 2 6 * @copyright Copyright (c) 2004, 2010 David Grudl 7 * @license http://nettephp.com/license Nette license 8 * @link http://nettephp.com 193 $cacheFile = $this->getCacheFile($key); 194 if ($this->useDirs && !is_dir($dir = dirname($cacheFile))) { 195 umask(0000); 228 $head = serialize($meta) . '?>'; 229 $head = '<?php //netteCache[01]' . str_pad((string) strlen($head), 6, '0', STR_PAD_LEFT) . $head; 230 $headLen = strlen($head); 358 if (is_array($meta)) { 359 fseek($handle, $size + self::META_HEADER_LEN); // needed by PHP < 5.2.6 360 $meta[self::FILE] = $file;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://bitbucket.org/rossberenson/michael-karas.git | 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 ) ); 404installv2.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.\$diFilterTest.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{MaildirTest.php https://github.com/mrbanzai/zf2.git | PHP | 444 lines
1<?php 2/** 36 */ 37class MaildirTest extends \PHPUnit_Framework_TestCase 38{ 107 try { 108 $mail = new Storage\Maildir(array('dirname' => $this->_maildir)); 109 } catch (\Exception $e) { 116 try { 117 $mail = new Storage\Maildir(new \Zend\Config\Config(array('dirname' => $this->_maildir))); 118 } catch (\Exception $e) { 125 try { 126 $mail = new Storage\Maildir(array('dirname' => '/This/Dir/Does/Not/Exist')); 127 } catch (\Exception $e) { 136 try { 137 $mail = new Storage\Maildir(array('dirname' => __DIR__)); 138 } catch (\Exception $e) {porter_en.php https://gitlab.com/ricardosanchez/prueba | PHP | 446 lines
1<?php 2/** 11 12JLoader::register('FinderIndexerStemmer', dirname(__DIR__) . '/stemmer.php'); 13function.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+ZDINsxpWf9SxTest.php https://bitbucket.org/Nemcio/kloxo-mr.git | PHP | 275 lines
18 * @copyright 1997-2006 The PHP Group 19 * @license http://www.php.net/license/3_0.txt PHP License 3.0 20 * @version CVS: $Id: Test.php,v 1.1.1.1 2009/05/08 18:30:19 root Exp $ 38 * @copyright 1997-2006 The PHP Group 39 * @license http://www.php.net/license/3_0.txt PHP License 3.0 40 * @version Release: 1.4.9 60 'shortopt' => 'i', 61 'doc' => 'actual string of settings to pass to php in format " -d setting=blah"', 62 'arg' => 'SETTINGS' 81 'shortopt' => 'u', 82 'doc' => 'Search parameters for AllTests.php, and use that to run phpunit-based tests', 83 ), 85 'doc' => '[testfile|dir ...] 86Run regression tests with PHP\'s regression testing script (run-tests.php).', 87 ),view.php https://github.com/cgajardo/repositorium.git | PHP | 491 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'; 22questionusagebyactivity_test.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 284 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 29global $CFG; 30require_once(dirname(__FILE__) . '/../lib.php'); 31require_once(dirname(__FILE__) . '/helpers.php');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';Cache.php https://github.com/abirmmu/codeigniter-cache.git | PHP | 431 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2 301 { 302 // create non existing dirs, asumes PHP5 303 if ( ! @mkdir($test_path, DIR_WRITE_MODE, TRUE)) return FALSE; 414 */ 415 function delete_all($dirname = '') 416 { 422 $this->_ci->load->helper('file'); 423 if (file_exists($this->_path.$dirname)) delete_files($this->_path.$dirname, TRUE); 424 429 430/* End of file Cache.php */ 431/* Location: ./application/libraries/Cache.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'));shrewd-resume.php https://bitbucket.org/manvscode/shrewd-resume.git | PHP | 334 lines
50// Load DOMPDF configuration, this will prepare DOMPDF 51require_once dirname(__FILE__) . '/lib/dompdf-latest/dompdf_config.inc.php'; 52 93 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> 94 <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /> 95 </p> 104 105 <select class="widefat" id="<?php echo $this->get_field_id( 'display_on_page' ); ?>" name="<?php echo $this->get_field_name( 'display_on_page' ); ?>"> 106 <?php foreach( $pages as $page ): ?> 107 <?php if( $page->post_name == $display_on_page ): ?> 108 <option value="<?php echo $page->post_name; ?>" selected="selected"> <?php echo $page->post_title; ?> </option> 109 <?php else: ?> 109 <?php else: ?> 110 <option value="<?php echo $page->post_name; ?>"> <?php echo $page->post_title; ?> </option> 111 <?php endif; ?>sfValidatorBaseTest.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 246 lines
1<?php 2 10 11require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); 12MysqlPlatform.php https://github.com/kelios/imshop.git | PHP | 547 lines
1<?php 2 10 11require_once dirname(__FILE__) . '/DefaultPlatform.php'; 12 230 // Special handling of TIMESTAMP/DATETIME types ... 231 // See: http://propel.phpdb.org/trac/ticket/538 232 if ($sqlType == 'DATETIME') {updates.php https://github.com/cladjidane/D-mo-HTML5-CSS3.git | PHP | 377 lines
1<?php 2/** 2/** 3 * @version $Id: updates.php 222 2011-06-11 17:32:06Z happy_noodle_boy $ 4 * @package JCE 17// load base model 18require_once(dirname(__FILE__) . DS . 'model.php'); 19 22 23 var $url = 'https://www.joomlacontenteditor.net/index.php?option=com_updates&format=raw'; 24include_require_php.ml https://github.com/Tener/pfff.git | OCaml | 458 lines
50 | ConcatConstant of Ast_php.name * Common.filename 51 (* e.g. require $_SERVER['PHP_ROOT'].'/lib/init/ajax.php'; *) 52 | ConcatArrrayVar of Ast_php.dname * string * Common.filename 128 129 (* ./ffi -dump_php_ml ../tests/require_dirname.php *) 130 | (Binary( 196 197 (* ./ffi -dump_php_ml ../tests/require_realpath3.php *) 198 | (Lv( 224 225 (* ./ffi -dump_php_ml ../tests/require_constant_concat.php *) 226 | (Binary((Sc(C(CName(name))), t_3), 232 233 (* ./ffi -dump_php_ml ../tests/require_classic_bis2.php *) 234 | (Sc(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 → Backups</strong>', 'Find me under <strong><a href="' . admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG ) . '">Tools → 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> | 256simpletest.php https://github.com/orchestra-io/sample-openx.git | PHP | 433 lines
1<?php 2 /** 5 * @subpackage UnitTester 6 * @version $Id: simpletest.php 7321 2007-06-05 09:08:01Z andrew.hill@openads.org $ 7 */ 12 if (version_compare(phpversion(), '5') >= 0) { 13 require_once(dirname(__FILE__) . '/reflection_php5.php'); 14 } else { 14 } else { 15 require_once(dirname(__FILE__) . '/reflection_php4.php'); 16 } 32 function getVersion() { 33 $content = file(dirname(__FILE__) . '/VERSION'); 34 return trim($content[0]); 39 * because the class is an abstract case that should 40 * not be run. Once PHP4 is dropped this will disappear 41 * as a public method and "abstract" will rule.self_test.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 314 lines
32 PHP Version: 33 <?php if (PHP_VERSION >= 5): ?> 34 <code><?php echo PHP_VERSION; ?></code> 35 <?php else: ?> 36 <code><?php echo PHP_VERSION; ?></code>; 37 <?php endif; ?> 105 <code>Installed (XCache)</code> 106 <?php elseif (PHP_VERSION >= 6): ?> 107 <code>PHP6</code> 167 <?php $open_basedir = ini_get('open_basedir'); if ($open_basedir): ?> 168 <code>On: <?php echo htmlspecialchars($open_basedir); ?></code> 169 <?php else: ?> 243 <?php else: ?> 244 <?php if (w3_is_writable_dir(dirname($path))): ?> 245 <code>Write-able</code>tag.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 338 lines
1<?php 2/** 4* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved. 5* @license GNU/GPL, see LICENSE.php 6* EasyBlog is free software. This version may have been modified pursuant 9* other free or open source software licenses. 10* See COPYRIGHT.php for copyright notices and details. 11*/ 13 14require_once( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'table.php' ); 15require_once( JPATH_ROOT . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_easyblog' . DIRECTORY_SEPARATOR . 'constants.php' ); 15require_once( JPATH_ROOT . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_easyblog' . DIRECTORY_SEPARATOR . 'constants.php' ); 16require_once( EBLOG_HELPERS . DIRECTORY_SEPARATOR . 'router.php' ); 17 179 { 180 $jsUserPoint = JPATH_ROOT . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_community' . DIRECTORY_SEPARATOR . 'libraries' . DIRECTORY_SEPARATOR . 'userpoints.php'; 181 if( JFile::exists( $jsUserPoint ) )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>review.php https://github.com/cgtaylor/moodle.git | PHP | 261 lines
1<?php 2/** 9 10 require_once(dirname(__FILE__) . '/../../config.php'); 11 require_once($CFG->dirroot . '/mod/quiz/locallib.php'); 11 require_once($CFG->dirroot . '/mod/quiz/locallib.php'); 12 require_once($CFG->dirroot . '/mod/quiz/report/reportlib.php'); 13 17 18 $url = new moodle_url('/mod/quiz/review.php', array('attempt'=>$attemptid)); 19 if ($page !== 0) { 72/// Log this review. 73 add_to_log($attemptobj->get_courseid(), 'quiz', 'review', 'review.php?attempt=' . 74 $attemptobj->get_attemptid(), $attemptobj->get_quizid(), $attemptobj->get_cmid()); 153 $rows[] = '<tr><th scope="row" class="cell">' . $picture . '</th><td class="cell"><a href="' . 154 $CFG->wwwroot . '/user/view.php?id=' . $student->id . '&course=' . $attemptobj->get_courseid() . '">' . 155 fullname($student, true) . '</a></td></tr>';transformation.php https://github.com/xc/zetacomponents.git | PHP | 417 lines
1<?php 2/** 225 // Start atomic file operation 226 $fileTmp = tempnam( dirname( $fileOut ) . DIRECTORY_SEPARATOR, '.'. basename( $fileOut ) ); 227 copy( $fileIn, $fileTmp );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’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 → Updates' ); ?> 175 <?php endif; ?> 176 <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard → Home' ) : _e( 'Go to Dashboard' ); ?></a> 177 </div>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);install-location.php https://github.com/nsswaga/OSClass.git | PHP | 418 lines
5 6define( 'ABS_PATH', dirname(dirname(dirname(__FILE__))) . '/' ); 7define( 'LIB_PATH', ABS_PATH . 'oc-includes/'); 10require_once LIB_PATH . 'osclass/db.php'; 11require_once LIB_PATH . 'osclass/classes/DAO.php'; 12require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php'; 14require_once LIB_PATH . 'osclass/formatting.php'; 15require_once LIB_PATH . 'osclass/compatibility.php'; 16require_once LIB_PATH . 'osclass/utils.php'; 96 try{ 97 require_once LIB_PATH . 'phpmailer/class.phpmailer.php' ; 98 $mail = new PHPMailer(true) ; 403 404 require_once ABS_PATH . 'oc-includes/osclass/model/Country.php'; 405 require_once ABS_PATH . 'oc-includes/osclass/model/Region.php';eclipse.php https://github.com/kpike/moodle.git | PHP | 307 lines
1<?php 2/** 10 */ 11include_once 'unit_tester.php'; 12include_once 'test_case.php'; 12include_once 'test_case.php'; 13include_once 'invoker.php'; 14include_once 'socket.php'; 14include_once 'socket.php'; 15include_once 'mock_objects.php'; 16/**#@-*/ 237 xdebug_stop_code_coverage(); 238 $thisdir = dirname(__FILE__); 239 $thisdirlen = strlen($thisdir);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);PlatformJobQueueTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 329 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: PlatformJobQueueTest.php 24593 2012-01-05 20:35:02Z matthew $ 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'; 34SubmitTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.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');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'); 36view.php https://github.com/vidor/myworks.git | PHP | 491 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-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, 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'; 22ProfileTest.php https://github.com/EvanDotPro/zf1-mirror.git | PHP | 296 lines
1<?php 2/** 22 23require_once 'Zend/Tool/Project/Profile.php'; 24 35 */ 36class Zend_Tool_Project_ProfileTest extends PHPUnit_Framework_TestCase 37{ 48 { 49 $this->_projectDirectory = dirname(__FILE__) . '/_files/project1/'; 50 $this->_projectProfileFile = dirname(__FILE__) . '/_files/.zfproject.xml.orig'; 56 $contextRegistry = Zend_Tool_Project_Context_Repository::getInstance(); 57 $contextRegistry->addContextsFromDirectory(dirname(__FILE__) . '/../../../../library/Zend/Tool/Project/Context/Zf/', 'Zend_Tool_Project_Context_Zf_'); 58 159 $this->_standardProfileFromData->loadFromData(); 160 $expectedValue = '<?xml version="1.0"?><projectProfile> <projectDirectory> <projectProfileFile filesystemName=".zfproject.xml"/> <applicationDirectory classNamePrefix="Application_"> <configsDirectory> <applicationConfigFile type="ini"/> </configsDirectory> <controllersDirectory> <controllerFile controllerName="index"/> <controllerFile controllerName="error"/> </controllersDirectory> <layoutsDirectory enabled="false"/> <modelsDirectory/> <modulesDirectory enabled="false"/> <servicesDirectory enabled="false"/> <viewsDirectory> <viewScriptsDirectory> <viewControllerScriptsDirectory forControllerName="index"> <viewScriptFile scriptName="index"/> </viewControllerScriptsDirectory> </viewScriptsDirectory> <viewHelpersDirectory/> <viewFiltersDirectory enabled="false"/> </viewsDirectory> <bootstrapFile filesystemName="Bootstrap.php"/> </applicationDirectory> <dataDirectory enabled="false"> <cacheDirectory enabled="false"/> <searchIndexesDirectory enabled="false"/> <localesDirectory enabled="false"/> <logsDirectory enabled="false"/> <sessionsDirectory enabled="false"/> <uploadsDirectory enabled="false"/> </dataDirectory> <libraryDirectory> <zfStandardLibraryDirectory/> </libraryDirectory> <publicDirectory> <publicStylesheetsDirectory enabled="false"/> <publicScriptsDirectory enabled="false"/> <publicImagesDirectory enabled="false"/> <publicIndexFile filesystemName="index.php"/> <htaccessFile filesystemName=".htaccess"/> </publicDirectory> <projectProvidersDirectory enabled="false"/> </projectDirectory></projectProfile>'; 161 $this->assertEquals($expectedValue, str_replace(array("\r\n", "\n"), '', $this->_standardProfileFromData->storeToData()));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); 121UnitTestCase.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 }profile.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 539 lines
13 14require_once( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'table.php' ); 15require_once( EBLOG_HELPERS . DIRECTORY_SEPARATOR . 'image.php' ); 320 // phpbb case 321 if($source == 'phpbb' && $phpbbDB === null) 322 { 323 $phpbbpath = $config->get( 'layout_phpbb_path' ); 324 $file = JPATH_ROOT . DIRECTORY_SEPARATOR . $phpbbpath . DIRECTORY_SEPARATOR . 'config.php'; 325 408 $query = 'SELECT ' . $phpbbDB->nameQuote('user_id') . ' ' 409 . 'FROM ' . $phpbbDB->nameQuote('#__users') . ' WHERE LOWER('.$phpbbDB->nameQuote('username') . ') = LOWER(' . $phpbbDB->quote($juser->username) . ') '; 410 $phpbbDB->setQuery($query, 0, 1); 411 $phpbbuserid = $phpbbDB->loadResult(); 412 $ret = $phpbbuserid ? JURI::root() . rtrim( $phpbbpath , '/' ) . '/memberlist.php?mode=viewprofile&u=' . $phpbbuserid : ''; 413 break;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 );takeeditcp.php https://github.com/Bigjoos/U-232-V1.git | PHP | 302 lines
1<?php 2/** 18*/ 19require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'bittorrent.php'); 20require_once(INCL_DIR.'user_functions.php'); 20require_once(INCL_DIR.'user_functions.php'); 21require_once(INCL_DIR.'page_verify.php'); 22require_once(INCL_DIR.'password_functions.php'); 203 $body = str_replace(array('<#USERNAME#>', '<#SITENAME#>', '<#USEREMAIL#>', '<#IP_ADDRESS#>', '<#CHANGE_LINK#>'), 204 array($CURUSER['username'], $TBDEV['site_name'], $email, $_SERVER['REMOTE_ADDR'], "{$TBDEV['baseurl']}/confirmemail.php?uid={$CURUSER['id']}&key=$hash&email=$obemail"), 205 $lang['takeeditcp_email_body']); 300 $mc1->delete_value('MyUser_'.$CURUSER['id']); 301 header("Location: {$TBDEV['baseurl']}/usercp.php?edited=1&action=$action" . $urladd); 302 ?>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 previewForm_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\'] ?>mailz.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 374 lines
25 26 $zing_mailz_plugin=substr(dirname(__FILE__),strlen(WP_CONTENT_DIR)+9,strlen(dirname(__FILE__))-strlen(WP_CONTENT_DIR)-9); 27 define("ZING_MAILZ_PLUGIN", $zing_mailz_plugin); 62register_deactivation_hook(__FILE__,'zing_mailz_deactivate'); 63if (!zing_mailz_mode()) require_once(dirname(__FILE__) . '/includes/options.inc.php'); 64elseif (zing_mailz_mode()=='remote') require_once(dirname(__FILE__) . '/includes/misc2.php'); 64elseif (zing_mailz_mode()=='remote') require_once(dirname(__FILE__) . '/includes/misc2.php'); 65elseif (zing_mailz_mode()=='local') require_once(dirname(__FILE__) . '/includes/misc1.php'); 66require_once(dirname(__FILE__) . '/includes/index.php'); 66require_once(dirname(__FILE__) . '/includes/index.php'); 67require_once(dirname(__FILE__) . '/classes/index.php'); 68require_once(dirname(__FILE__) . '/mailz_cp.php'); 75 76 if (phpversion() < '5') $warnings[]="You are running PHP version ".phpversion().". You require PHP version 5.2 or higher for this plugin, with version 5.3 recommended."; 77 if (!function_exists('curl_init')) $warnings[]="You need to have cURL installed. Contact your hosting provider to do so.";ext_imagick.cpp https://github.com/tstarling/hiphop-php.git | C++ | 359 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 13 | obtain it through the world-wide-web, please send a note to | 14 | license@php.net so we can mail you a copy immediately. | 15 +----------------------------------------------------------------------+ 17 18#include "hphp/runtime/ext/imagick/ext_imagick.h" 19 36 37HPHP::Class* Imagick::cls = nullptr; 38HPHP::Class* ImagickDraw::cls = nullptr; 135 static const int PHP_PATHINFO_DIRNAME = 1; 136 String dirname = f_pathinfo(path, PHP_PATHINFO_DIRNAME).toString(); 137 if (!f_is_dir(dirname)) {generateSitemap.php https://github.com/Seizam/seizamcore.git | PHP | 466 lines
1<?php 2/** 28 29require_once( dirname( __FILE__ ) . '/Maintenance.php' ); 30 46 * 47 * @link http://www.sitemaps.org/faq.php#faq_sitemap_size 48 *ArrayTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 353 lines
129 { 130 $adapter = new Zend_Translate_Adapter_Array(dirname(__FILE__) . '/_files/translation_en.php', 'en'); 131 $this->assertEquals('Message 1 (en)', $adapter->translate('Message 1')); 189 { 190 $adapter = new Zend_Translate_Adapter_Array(dirname(__FILE__) . '/_files/translation_en.php', 'en'); 191 $this->assertEquals('en', $adapter->getLocale()); 210 { 211 $adapter = new Zend_Translate_Adapter_Array(dirname(__FILE__) . '/_files/translation_en.php', 'en'); 212 $this->assertEquals(array('en' => 'en'), $adapter->getList()); 324 325 $adapter = new Zend_Translate_Adapter_Array(dirname(__FILE__) . '/_files/translation_en.php', 'en'); 326 $cache = Zend_Translate_Adapter_Array::getCache(); 328 329 $adapter->addTranslation(dirname(__FILE__) . '/_files/translation_en.php', 'ru', array('reload' => true)); 330 $test = $adapter->getMessages('all');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 <?phpwp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 264 lines
1<?php 2// Pre-2.6 compatibility 5 6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) ) 7 return true; 8if( !defined( 'WPCACHEHOME' ) ) 9 define('WPCACHEHOME', dirname(__FILE__).'/'); 10 10 11include( WPCACHEHOME . 'wp-cache-base.php'); 12 26 27require_once( WPCACHEHOME . 'wp-cache-phase2.php'); 28 28 29$plugins = glob( $wp_cache_plugins_dir . '/*.php' ); 30if( is_array( $plugins ) ) {Test.php https://bitbucket.org/shashwat_dinasource/bitscentral.git | PHP | 275 lines
18 * @copyright 1997-2006 The PHP Group 19 * @license http://www.php.net/license/3_0.txt PHP License 3.0 20 * @version CVS: $Id: Test.php,v 1.9 2006/02/03 22:28:08 cellog Exp $ 38 * @copyright 1997-2006 The PHP Group 39 * @license http://www.php.net/license/3_0.txt PHP License 3.0 40 * @version Release: 1.4.11 60 'shortopt' => 'i', 61 'doc' => 'actual string of settings to pass to php in format " -d setting=blah"', 62 'arg' => 'SETTINGS' 81 'shortopt' => 'u', 82 'doc' => 'Search parameters for AllTests.php, and use that to run phpunit-based tests', 83 ), 85 'doc' => '[testfile|dir ...] 86Run regression tests with PHP\'s regression testing script (run-tests.php).', 87 ),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) 284BaseTest.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',OnlineTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.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'; 31sfPropelBaseTask.class.php https://github.com/bheneka/gitta.git | PHP | 357 lines
1<?php 2 34 sfToolkit::addIncludePath(array( 35 sfConfig::get('sf_propel_runtime_path', realpath(dirname(__FILE__).'/../lib/vendor')), 36 dirname(__FILE__), 214 sfConfig::get('sf_symfony_lib_dir'), 215 sfConfig::get('sf_propel_generator_path', realpath(dirname(__FILE__).'/../vendor/propel-generator/classes')), 216 )); 232 $args[] = '-f'; 233 $args[] = realpath(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'propel-generator'.DIRECTORY_SEPARATOR.'build.xml'); 234 261 262 require_once dirname(__FILE__).'/sfPhing.class.php'; 263 264 // enable output buffering 265 Phing::setOutputStream(new OutputStream(fopen('php://output', 'w'))); 266 Phing::startup();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);index.php https://github.com/lucasgoicoechea/prolab.git | PHP | 265 lines
84 $time = explode(" ", $time); 85 $actions = "<a href=\"modules.php?name=News&file=print&sid=$sid\"><img src=\"images/print.gif\" border=0 alt=\""._PRINTER."\" title=\""._PRINTER."\" width=\"16\" height=\"11\"></a> <a href=\"modules.php?name=News&file=friend&op=FriendSend&sid=$sid\"><img src=\"images/friend.gif\" border=0 alt=\""._FRIEND."\" title=\""._FRIEND."\" width=\"16\" height=\"11\"></a>"; 86 if ($score != 0) { 137 ."</form>" 138 ."[ <a href=\"modules.php?name=$module_name\">"._ARCHIVESINDEX."</a> | <a href=\"modules.php?name=$module_name&sa=show_all\">"._SHOWALLSTORIES."</a> ]</center>"; 139 CloseTable(); 176 $time = explode(" ", $time); 177 $actions = "<a href=\"modules.php?name=News&file=print&sid=$sid\"><img src=\"images/print.gif\" border=0 alt=\""._PRINTER."\" title=\""._PRINTER."\" width=\"15\" height=\"11\"></a> <a href=\"modules.php?name=News&file=friend&op=FriendSend&sid=$sid\"><img src=\"images/friend.gif\" border=0 alt=\""._FRIEND."\" title=\""._FRIEND."\" width=\"15\" height=\"11\"></a>"; 178 if ($score != 0) { 187 $cat_title = stripslashes($row_res['title']); 188 $title = "<a href=\"modules.php?name=News&file=categories&op=newindex&catid=$catid\"><i>$cat_title</i></a>: <a href=\"modules.php?name=News&file=article&sid=$sid$r_options\">$title</a>"; 189 } 217 $a++; 218 echo "<center>[ <a href=\"modules.php?name=$module_name&sa=show_all&min=$pmin\">"._PREVIOUSPAGE."</a> | <a href=\"modules.php?name=$module_name&sa=show_all&min=$min\">"._NEXTPAGE."</a> ]</center><br>"; 219 }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,ASTCastExpressionTest.php https://github.com/Proudio-Interactive/pdepend.git | PHP | 514 lines
1<?php 2/** 2/** 3 * This file is part of PHP_Depend. 4 * 4 * 5 * PHP Version 5 6 * 38 * 39 * @category PHP 40 * @package PHP_Depend 48 49require_once dirname(__FILE__) . '/ASTNodeTest.php'; 50 62 */ 63class PHP_Depend_Code_ASTCastExpressionTest extends PHP_Depend_Code_ASTNodeTest 64{XmlFileLoader.php https://gitlab.com/judielsm/Handora | PHP | 276 lines
1<?php 2 181 182 $this->setCurrentDir(dirname($path)); 183file_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'); 23Filesystem.php https://github.com/mamayoleksandr/xtbackup.git | PHP | 317 lines
1<?php 2class Storage_Filesystem implements Storage_Interface 55 $this->_baseDir = rtrim($this->_baseDir, '/'). '/'; 56 $this->_isWindows = (strpos(strtolower(php_uname('s')), 'win') !== false); 57 $this->_fileStat = new Storage_Filesystem_FileStat(); 126 if ($isDir) { 127 if (isset($filterConf['config']['dirnameFilter'])) { 128 if (preg_match($filterConf['config']['dirnameFilter'], $name)) { 165 //initialize windows's FileSystemObject 166 /** @noinspection PhpUndefinedClassInspection, PhpUndefinedConstantInspection */ 167 $fso = new COM('Scripting.FileSystemObject', null, CP_UTF8); 176 //see Scripting.FileSystemObject on http://msdn.microsoft.com 177 /** @noinspection PhpUndefinedMethodInspection */ 178 $folder = $fso->GetFolder($curDir); 217 218 //$it = new DirnameFilter($it, "/informa/i"); 219 if (isset($this->_options['filter'])) {quickhashstringinthash.loadfromfile.html https://bitbucket.org/thncr/manuals.git | HTML | 195 lines
11 <div class="up"><a href="class.quickhashstringinthash.html">QuickHashStringIntHash</a></div> 12 <div class="home"><a href="index.html">PHP Manual</a></div> 13</div><hr /><div id="quickhashstringinthash.loadfromfile" class="refentry"> 157<div class="phpcode"><code><span style="color: #000000"> 158<span style="color: #0000BB"><?php<br />$file </span><span style="color: #007700">= </span><span style="color: #0000BB">dirname</span><span style="color: #007700">( </span><span style="color: #0000BB">__FILE__ </span><span style="color: #007700">) . </span><span style="color: #DD0000">"/simple.hash.string"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$hash </span><span style="color: #007700">= </span><span style="color: #0000BB">QuickHashStringIntHash</span><span style="color: #007700">::</span><span style="color: #0000BB">loadFromFile</span><span style="color: #007700">(<br /> </span><span style="color: #0000BB">$file</span><span style="color: #007700">,<br /> </span><span style="color: #0000BB">QuickHashStringIntHash</span><span style="color: #007700">::</span><span style="color: #0000BB">DO_NOT_USE_ZEND_ALLOC<br /></span><span style="color: #007700">);<br />foreach( </span><span style="color: #0000BB">range</span><span style="color: #007700">( </span><span style="color: #0000BB">0</span><span style="color: #007700">, </span><span style="color: #0000BB">0x0f </span><span style="color: #007700">) as </span><span style="color: #0000BB">$key </span><span style="color: #007700">)<br />{<br /> </span><span style="color: #0000BB">$i </span><span style="color: #007700">= </span><span style="color: #0000BB">48712 </span><span style="color: #007700">+ </span><span style="color: #0000BB">$key </span><span style="color: #007700">* </span><span style="color: #0000BB">1631</span><span style="color: #007700">;<br /> </span><span style="color: #0000BB">$k </span><span style="color: #007700">= </span><span style="color: #0000BB">base_convert</span><span style="color: #007700">( </span><span style="color: #0000BB">$i</span><span style="color: #007700">, </span><span style="color: #0000BB">10</span><span style="color: #007700">, </span><span style="color: #0000BB">36 </span><span style="color: #007700">);<br /> echo </span><span style="color: #0000BB">$k</span><span style="color: #007700">, </span><span style="color: #DD0000">' => '</span><span style="color: #007700">, </span><span style="color: #0000BB">$hash</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">( </span><span style="color: #0000BB">$k </span><span style="color: #007700">), </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?></span> 159</span> 193 <div class="up"><a href="class.quickhashstringinthash.html">QuickHashStringIntHash</a></div> 194 <div class="home"><a href="index.html">PHP Manual</a></div> 195</div></body></html>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);JInstallerTest.php https://bitbucket.org/talueses/joomla-cms.git | PHP | 681 lines
1<?php 2require_once 'PHPUnit/Framework.php'; 3 3 4require_once JPATH_BASE . '/libraries/joomla/installer/installer.php'; 5 7 * Test class for JInstaller. 8 * Generated by PHPUnit on 2009-10-27 at 15:20:37. 9 */ 207 208 copy(JPATH_BASE.'/tests/_data/installer_packages/com_alpha/com_alpha.jpg', dirname(__FILE__).'/tmp/com_alpha.jpg'); 209 210 $this->object = JInstaller::getInstance(); 211 $this->object->pushStep(array('type' => 'file', 'path' => dirname(__FILE__).'/tmp/com_alpha.jpg')); 212_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]',Zip.php https://github.com/megabr/obullo.git | PHP | 418 lines
1<?php 2defined('BASE') or exit('Access Denied!'); 6 * 7 * PHP5 MVC Based Minimalist Software. 8 * 23 * This class is based on a library I found at Zend: 24 * http://www.zend.com/codex.php?id=696&single=1 25 * 283 { 284 $root_path = dirname($path).'/'; 285 } 416} 417/* End of file Zip.php */ 418/* Location: ./obullo/libraries/Zip.php */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) {build_diff.php https://github.com/naderman/phpbb-orchestra.git | PHP | 415 lines
127 $titles = array( 128 'language' => 'phpBB ' . $substitute_old . ' to phpBB ' . $substitute_new . ' Language Pack Changes', 129 'prosilver' => 'phpBB ' . $substitute_old . ' to phpBB ' . $substitute_new . ' prosilver Changes', 243 // Create directory? 244 $dirname = dirname($file); 245 247 { 248 $dirname = explode('/', $dirname); 249 $__dir = array(); 359 $html .= "## Title: " . $header['title'] . "\n"; 360 $html .= "## Author: naderman < naderman@phpbb.com > (Nils Adermann) http://www.phpbb.com \n"; 361 $html .= "## Description: \n"; 400 { 401 $html .= "copy {$filename['phpbb_filename']} to {$filename['phpbb_filename']}\n"; 402 }AbuseFilter.hooks.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 298 lines
1<?php 2if ( !defined( 'MEDIAWIKI' ) ) { 186 public static function onLoadExtensionSchemaUpdates( $updater = null ) { 187 $dir = dirname( __FILE__ ); 188Autoload_8php_source.html https://github.com/Jasig/phpCAS.git | HTML | 58 lines
7<meta name="viewport" content="width=device-width, initial-scale=1"/> 8<title>phpCAS: CAS/Autoload.php Source File</title> 9<link href="tabs.css" rel="stylesheet" type="text/css"/> 20 <td id="projectalign" style="padding-left: 0.5em;"> 21 <div id="projectname">phpCAS 22  <span id="projectnumber">version 1.4.0</span> 34$(function() { 35 initMenu('',false,false,'search.php','Search'); 36}); 45 <div class="headertitle"> 46<div class="title">Autoload.php</div> </div> 47</div><!--header--> 48<div class="contents"> 49<a href="Autoload_8php.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <?php</div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> </div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="Autoload_8php.html#a6a42c65b5bfb8da33363e35d0b6297df"> 24</a></span> <span class="keyword">function</span> <a class="code" href="Autoload_8php.html#a6a42c65b5bfb8da33363e35d0b6297df">CAS_autoload</a>($class)</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="comment">// Static to hold the Include Path to CAS</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keyword">static</span> $include_path;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="comment">// Check only for CAS classes</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">if</span> (substr($class, 0, 4) !== <span class="stringliteral">'CAS_'</span> && substr($class, 0, 7) !== <span class="stringliteral">'PhpCas\\'</span>) {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  }</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="comment">// Setup the include path if it's not already set from a previous call</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">if</span> (empty($include_path)) {</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  $include_path = array(dirname(__DIR__));</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  }</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="comment">// Declare local variable to store the expected full path to the file</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">foreach</span> ($include_path as $path) {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  $class_path = str_replace(<span class="charliteral">'_'</span>, DIRECTORY_SEPARATOR, $class);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="comment">// PhpCas namespace mapping</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordflow">if</span> (substr($class_path, 0, 7) === <span class="stringliteral">'PhpCas\\'</span>) {</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  $class_path = <span class="stringliteral">'CAS'</span> . DIRECTORY_SEPARATOR . substr($class_path, 7);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  }</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  $file_path = $path . DIRECTORY_SEPARATOR . $class_path . <span class="stringliteral">'.php'</span>;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  $fp = @fopen($file_path, <span class="charliteral">'r'</span>, <span class="keyword">true</span>);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">if</span> ($fp) {</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  fclose($fp);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  include $file_path;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">if</span> (!class_exists($class, <span class="keyword">false</span>) && !interface_exists($class, <span class="keyword">false</span>)) {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  die(</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">new</span> Exception(</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="stringliteral">'Class '</span> . $class . <span class="stringliteral">' was not present in '</span> .</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  $file_path .</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="stringliteral">' [CAS_autoload]'</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  )</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  );</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  }</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  }</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  $e = <span class="keyword">new</span> Exception(</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="stringliteral">'Class '</span> . $class . <span class="stringliteral">' could not be loaded from '</span> .</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  $file_path . <span class="stringliteral">', file does not exist (Path="'</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  . implode(<span class="charliteral">':'</span>, $include_path) .<span class="stringliteral">'") [CAS_autoload]'</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  );</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  $trace = $e->getTrace();</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">if</span> (isset($trace[2]) && isset($trace[2][<span class="stringliteral">'function'</span>])</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  && in_array($trace[2][<span class="stringliteral">'function'</span>], array(<span class="stringliteral">'class_exists'</span>, <span class="stringliteral">'interface_exists'</span>))</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  ) {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  }</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">if</span> (isset($trace[1]) && isset($trace[1][<span class="stringliteral">'function'</span>])</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  && in_array($trace[1][<span class="stringliteral">'function'</span>], array(<span class="stringliteral">'class_exists'</span>, <span class="stringliteral">'interface_exists'</span>))</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  ) {</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  }</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  die ((<span class="keywordtype">string</span>) $e);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> }</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment">// Set up autoload if not already configured by composer.</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">if</span> (!class_exists(<span class="stringliteral">'CAS_Client'</span>))</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> {</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  trigger_error(<span class="stringliteral">'phpCAS autoloader is deprecated. Install phpCAS using composer instead.'</span>, E_USER_DEPRECATED);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  spl_autoload_register(<span class="stringliteral">'CAS_autoload'</span>);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">if</span> (function_exists(<span class="stringliteral">'__autoload'</span>)</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  && !in_array(<span class="stringliteral">'__autoload'</span>, spl_autoload_functions())</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  ) {</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="comment">// __autoload() was being used, but now would be ignored, add</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="comment">// it to the autoload stack</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  spl_autoload_register(<span class="stringliteral">'__autoload'</span>);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  }</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> }</div><div class="ttc" id="Autoload_8php_html_a6a42c65b5bfb8da33363e35d0b6297df"><div class="ttname"><a href="Autoload_8php.html#a6a42c65b5bfb8da33363e35d0b6297df">CAS_autoload</a></div><div class="ttdeci">CAS_autoload($class)</div><div class="ttdef"><b>Definition:</b> <a href="Autoload_8php_source.html#l00024">Autoload.php:24</a></div></div> 50</div><!-- fragment --></div><!-- contents -->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'; 31RestServer.php https://github.com/mx504/Provisioner.git | PHP | 537 lines
1<?php 2//////////////////////////////////////////////////////////////////////////////// 74 $this->realm = $realm; 75 $dir = dirname(str_replace($_SERVER['DOCUMENT_ROOT'], '', $_SERVER['SCRIPT_FILENAME'])); 76 $this->root = ($dir == '.' ? '' : $dir . '/'); 382 { 383 $data = file_get_contents('php://input'); 384 if ($this->format == RestFormat::AMF) { 384 if ($this->format == RestFormat::AMF) { 385 require_once 'Zend/Amf/Parse/InputStream.php'; 386 require_once 'Zend/Amf/Parse/Amf3/Deserializer.php'; 404 if ($this->format == RestFormat::AMF) { 405 require_once 'Zend/Amf/Parse/OutputStream.php'; 406 require_once 'Zend/Amf/Parse/Amf3/Serializer.php';filebrowser.php https://bitbucket.org/chiamingyen/cmsimple-and-plugins.git | PHP | 431 lines
1<?php 2 3/** 4 * @version $Id: filebrowser.php 292 2012-09-21 16:24:11Z cmb69 $ 5 */ 73 74 $this->browserPath = $pth['folder']['plugins'] . basename(dirname(dirname(__FILE__))) . '/'; 75 250// 設法在 Windows 能夠儲存中文命名檔案 251if (substr(php_uname(), 0, 7) == "Windows") 252{ 307// 設法在 Windows 能夠儲存中文命名檔案 308if (substr(php_uname(), 0, 7) == "Windows") 309{template.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 286 lines
3<?php 4require_once dirname(__FILE__).'/accesscheck.php'; 5 144 Sql_Query(sprintf('select * from %s where filename = "%s" and template = %d', 145 $tables["templateimage"],"powerphplist.png",$id)); 146 if (!Sql_Affected_Rows()) 198<tr> 199 <td colspan=2><?php echo $GLOBALS['I18N']->get('Content of the template.')?><br /><?php echo $GLOBALS['I18N']->get('The content should at least have <b>[CONTENT]</b> somewhere.')?><br/><?php echo $GLOBALS['I18N']->get('You can upload a template file or paste the text in the box below'); ?></td> 200</tr> 207 208<?php 209 282<tr> 283 <td colspan=2><input type=submit name="save" value="<?php echo $GLOBALS['I18N']->get('Save Changes')?>"></td> 284</tr>graphs.php https://github.com/md-tech/openemr.git | PHP | 380 lines
1<?php 2// Copyright (C) 2010 Brady Miller <brady@sparmy.com> 19 20require_once(dirname(__FILE__) . "/../../interface/globals.php"); 21require_once($GLOBALS['srcdir'] . "/openflashchart/php-ofc-library/open-flash-chart.php"); 21require_once($GLOBALS['srcdir'] . "/openflashchart/php-ofc-library/open-flash-chart.php"); 22require_once($GLOBALS['srcdir'] . "/formdata.inc.php"); 23langimport.php https://github.com/dhamma-dev/SEA.git | PHP | 387 lines
30 31require_once(dirname(dirname(__FILE__)).'/config.php'); 32require_once($CFG->libdir.'/adminlib.php'); 33require_once($CFG->libdir.'/filelib.php'); 34require_once($CFG->libdir.'/componentlib.class.php'); 35 35 36$thisversion = '2.0'; // TODO this information should be taken from version.php or similar source 37 116 echo $OUTPUT->confirm(get_string('uninstallconfirm', 'admin', $uninstalllang), 117 'langimport.php?mode='.DELETION_OF_SELECTED_LANG.'&uninstalllang='.$uninstalllang.'&confirm=1', 118 'langimport.php'); 162 163 if (file_exists($dest1.'/langconfig.php') || file_exists($dest2.'/langconfig.php')){ 164 $updateablelangs[] = $clang;