100+ results results for 'php is_file repo:simon2k6/scratch-o-sphere' (441 ms)
1<?php 2/** 9 10 if ( !file_exists( "$IP/LocalSettings.php" ) ) { 11 $IP = dirname( __FILE__ ) . '/../../phase3'; 13} 14require_once( "$IP/maintenance/Maintenance.php" ); 15 153 154 $dir = "php://stdin"; 155 181 continue; 182 } elseif ( !is_file( $dir . $file ) ) { 183 $this->output( "not a file: $dir/$file\n" );svg_driver.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 288 lines
1<?php 2/** 29 * <code> 30 * $graph = new ezcGraphPieChart(); 31 * $graph->background->color = '#FFFFFFFF'; 242 case 'templateDocument': 243 if ( !is_file( $propertyValue ) || !is_readable( $propertyValue ) ) 244 {menutypes.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 378 lines
1<?php 2/** 95 96 if (is_file($mainXML)) { 97 $options = $this->getTypeOptionsFromXML($mainXML, $component); 200 201 if (is_file($file)) { 202 // Attempt to load the xml file. 344 // Load layout metadata if it exists. 345 if (is_file($file)) { 346 // Attempt to load the xml file.mkdist.php https://bitbucket.org/luobailiang/php-src.git | PHP | 548 lines
15 16$dist_dir = $build_dir . "/php-" . phpversion(); 17$test_dir = $build_dir . "/php-test-pack-" . phpversion(); 210/* the core dll */ 211copy("$build_dir/php.exe", "$dist_dir/php.exe"); 212copy("$build_dir/$phpdll", "$dist_dir/$phpdll"); 240 "win32/install.txt" => "install.txt", 241 "win32/pws-php5cgi.reg" => "pws-php5cgi.reg", 242 "win32/pws-php5isapi.reg" => "pws-php5isapi.reg", 461} 462copy('run-tests.php', $test_dir . '/run-test.php'); 463 495 496 /* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar) 497 * broken out of the tarballs */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 62 foreach ($files as $file) 63 if (!is_file($path.$file)) { 64 trigger_error(sprintf(self::TEXT_Minify,$file)); 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 headerMaildirFolderTest.php https://github.com/JojoBombardo/zf2.git | PHP | 444 lines
1<?php 2/** 36 */ 37class MaildirFolderTest extends \PHPUnit_Framework_TestCase 38{ 89 $entry = $dir . '/' . $subdir . '/' . $entry; 90 if (!is_file($this->_originalDir . $entry)) { 91 continue; 109 $entry = $this->_tmpdir . $dir . '/' . $subdir . '/' . $entry; 110 if (!is_file($entry)) { 111 continue; 203 try { 204 // explicit call of __toString() needed for PHP < 5.2 205 $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder'); 235 236 // explicit call of __toString() needed for PHP < 5.2 237 $found_folders[$folder->__toString()] = $localName;Compass.php https://github.com/vivid-planet/library.git | PHP | 511 lines
1<?php 2require_once dirname(__FILE__) . '/../ExtensionInterface.php'; 103 array_push($directories, $directory_path); 104 } elseif (is_file($file)) { 105 $key = basename($file);transformation.php https://github.com/xc/zetacomponents.git | PHP | 417 lines
1<?php 2/** 215 // Sanity checks 216 if ( !is_file( $fileIn ) ) 217 {manifest.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 201 lines
1<?php 2 5 6require(ABSPATH . 'wp-includes/version.php'); 7 87 88 if ( @is_file('../wp-includes/js/tinymce/tiny_mce.js') ) : 89 $mce = array( 89 $mce = array( 90 array('../wp-includes/js/tinymce/wp-tinymce.php', $mce_ver), 91wp-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; 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 ) ) { 31 foreach ( $plugins as $plugin ) { 32 if( is_file( $plugin ) ) 33 require_once( $plugin );Test.php https://github.com/KaRLsM/SIFO.git | PHP | 386 lines
46 47require_once 'PHPUnit/Util/Filesystem.php'; 48require_once 'PHPUnit/Util/Filter.php'; 49require_once 'PHPUnit/Util/Skeleton.php'; 50require_once 'PHPUnit/Util/Template.php'; 51 51 52PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT'); 53 60 * @copyright 2002-2009 Sebastian Bergmann <sb@sebastian-bergmann.de> 61 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 62 * @version Release: 3.4.2 65 */ 66class PHPUnit_Util_Skeleton_Test extends PHPUnit_Util_Skeleton 67{group.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 214 lines
1<?php 2 8 */ 9if ( ! defined( 'NV_IS_FILE_ADMIN' ) ) die( 'Stop!!!' ); 10 82 nv_del_moduleCache( $module_name ); 83 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "&parentid=" . $data['parentid'] . "" ); 84 die(); 110 111 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "&parentid=" . $data['parentid'] . "" ); 112 die(); 209 210include ( NV_ROOTDIR . "/includes/header.php" ); 211echo nv_admin_theme( $contents ); 211echo nv_admin_theme( $contents ); 212include ( NV_ROOTDIR . "/includes/footer.php" ); 213SCP.php https://gitlab.com/yousafsyed/easternglamor | PHP | 360 lines
1<?php 2 3/** 4 * Pure-PHP implementation of SCP. 5 * 5 * 6 * PHP versions 4 and 5 7 * 7 * 8 * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}. 9 * 11 * <code> 12 * <?php 13 * include 'Net/SCP.php'; 13 * include 'Net/SCP.php'; 14 * include 'Net/SSH2.php'; 15 *PhpTransliteration.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 288 lines
1<?php 2 4 * @file 5 * Definition of \Drupal\Component\Transliteration\PhpTransliteration. 6 * 20 * The database comes from two types of files, both of which are searched for in 21 * the PhpTransliteration::$dataDirectory directory. First, language-specific 22 * overrides are searched (see PhpTransliteration::readLanguageOverrides()). If 24 * transliteration character tables are searched (see 25 * PhpTransliteration::readGenericData()). If looking up the character in the 26 * generic table results in a NULL value, or an illegal character is 28 */ 29class PhpTransliteration implements TransliterationInterface { 30 34 * The constructor sets this (by default) to subdirectory 'data' underneath 35 * the directory where the class's PHP file resides. 36 *Test.php https://github.com/expolit/SDebugger.git | PHP | 386 lines
46 47require_once 'PHPUnit/Util/Filesystem.php'; 48require_once 'PHPUnit/Util/Filter.php'; 49require_once 'PHPUnit/Util/Skeleton.php'; 50require_once 'PHPUnit/Util/Template.php'; 51 51 52PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT'); 53 60 * @copyright 2002-2009 Sebastian Bergmann <sb@sebastian-bergmann.de> 61 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 62 * @version Release: 3.4.0 65 */ 66class PHPUnit_Util_Skeleton_Test extends PHPUnit_Util_Skeleton 67{unpack.php https://gitlab.com/milo-ft/osTicket | PHP | 270 lines
54 # Read the main.inc.php script 55 $bootstrap_php = $this->destination . '/bootstrap.php'; 56 $lines = explode("\n", file_get_contents($bootstrap_php)); 75 } 76 if (!file_put_contents($bootstrap_php, implode("\n", $lines))) 77 die("Unable to configure location of INCLUDE_DIR in bootstrap.php\n"); 164 continue; 165 if (is_file($file)) { 166 $target = $destination . basename($file); 167 $hash = $this->hashFile($file); 168 if (!$force && is_file($target) 169 && false === ($flag = $this->isChanged($file, $hash))) 206 $pipes = array(); 207 $php = proc_open('php', array( 208 0 => array('pipe', 'r'),SCP.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 361 lines
1<?php 2 3/** 4 * Pure-PHP implementation of SCP. 5 * 5 * 6 * PHP versions 4 and 5 7 * 7 * 8 * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}. 9 * 11 * <code> 12 * <?php 13 * include('Net/SCP.php'); 13 * include('Net/SCP.php'); 14 * include('Net/SSH2.php'); 15 *Curl.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 576 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 156 { 157 if (is_file(self::COOKIE_FILE)) { 158 @unlink(self::COOKIE_FILE); 252 * 253 * @param string $uri uri relative to host, ex. "/index.php" 254 */MimeType.php https://gitlab.com/Ltaimao/wecenter | PHP | 476 lines
1<?php 2/** 24 */ 25//require_once 'Zend/Validate/Abstract.php'; 26 138 } elseif (!is_array($mimetype)) { 139 //require_once 'Zend/Validate/Exception.php'; 140 throw new Zend_Validate_Exception("Invalid options to validator provided"); 158 * 159 * Note that for PHP 5.3.0 or higher, we don't use $_ENV['MAGIC'] or try to 160 * find a magic file in a common location as PHP now has a built-in internal 166 { 167 if (version_compare(PHP_VERSION, '5.3.0', '<') 168 && null === $this->_magicfile) { 174 ) { 175 //require_once 'Zend/Validate/Exception.php'; 176 foreach ($this->_magicFiles as $file) {MimeType.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 476 lines
1<?php 2/** 24 */ 25#require_once 'Zend/Validate/Abstract.php'; 26 138 } elseif (!is_array($mimetype)) { 139 #require_once 'Zend/Validate/Exception.php'; 140 throw new Zend_Validate_Exception("Invalid options to validator provided"); 158 * 159 * Note that for PHP 5.3.0 or higher, we don't use $_ENV['MAGIC'] or try to 160 * find a magic file in a common location as PHP now has a built-in internal 166 { 167 if (version_compare(PHP_VERSION, '5.3.0', '<') 168 && null === $this->_magicfile) { 174 ) { 175 #require_once 'Zend/Validate/Exception.php'; 176 foreach ($this->_magicFiles as $file) {MaildirTest.php https://github.com/mrbanzai/zf2.git | PHP | 444 lines
1<?php 2/** 36 */ 37class MaildirTest extends \PHPUnit_Framework_TestCase 38{ 79 $entry = $dir . '/' . $entry; 80 if (!is_file($this->_originalMaildir . $entry)) { 81 continue; 94 $entry = $this->_tmpdir . $dir . '/' . $entry; 95 if (!is_file($entry)) { 96 continue;Autoload.php https://bitbucket.org/daveschwan/ronin-group.git | PHP | 248 lines
78 'phpunit_extensions_grouptestsuite' => '/Extensions/GroupTestSuite.php', 79 'phpunit_extensions_phpttestcase' => '/Extensions/PhptTestCase.php', 80 'phpunit_extensions_phpttestcase_logger' => '/Extensions/PhptTestCase/Logger.php', 80 'phpunit_extensions_phpttestcase_logger' => '/Extensions/PhptTestCase/Logger.php', 81 'phpunit_extensions_phpttestsuite' => '/Extensions/PhptTestSuite.php', 82 'phpunit_extensions_repeatedtest' => '/Extensions/RepeatedTest.php', 133 'phpunit_framework_constraint_stringcontains' => '/Framework/Constraint/StringContains.php', 134 'phpunit_framework_constraint_stringendswith' => '/Framework/Constraint/StringEndsWith.php', 135 'phpunit_framework_constraint_stringmatches' => '/Framework/Constraint/StringMatches.php', 183 'phpunit_util_log_tap' => '/Util/Log/TAP.php', 184 'phpunit_util_php' => '/Util/PHP.php', 185 'phpunit_util_php_default' => '/Util/PHP/Default.php', 185 'phpunit_util_php_default' => '/Util/PHP/Default.php', 186 'phpunit_util_php_windows' => '/Util/PHP/Windows.php', 187 'phpunit_util_printer' => '/Util/Printer.php',Test.php https://github.com/vivid-planet/library.git | PHP | 386 lines
46 47require_once 'PHPUnit/Util/Filesystem.php'; 48require_once 'PHPUnit/Util/Filter.php'; 49require_once 'PHPUnit/Util/Skeleton.php'; 50require_once 'PHPUnit/Util/Template.php'; 51 51 52PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT'); 53 60 * @copyright 2002-2009 Sebastian Bergmann <sb@sebastian-bergmann.de> 61 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 62 * @version Release: @package_version@ 65 */ 66class PHPUnit_Util_Skeleton_Test extends PHPUnit_Util_Skeleton 67{gengo-import.php https://github.com/evo42/Aloha-Editor.git | PHP | 290 lines
1<?php 2require_once 'nls.php'; 84 $path = $dir.$language.'/i18n.js'; 85 if (is_file($path)) { 86 $data = file_get_contents($path); 126 echo 'check for file... '; 127 if (is_file($path)) { 128 echo 'is file... '; 148 echo "\n read nls sub $path \n"; 149 if (is_file($path)) { 150 $data = file_get_contents($path); 250 251 $out = "<?php\n\n"; 252 foreach ($parsed as $key => $value) { 262 263 $path .= $section.'.php'; 264 //echo $path."\n";CPSControllerCommand.php https://github.com/Pogostick/ps-yii-extensions.git | PHP | 326 lines
1<?php 2/** 52 $this->controllerBaseClass = 'CPSController'; 53 $this->controllerTemplateName = 'controller.php'; 54 109 { 110 $_arList[ $_sAction . '.php' ] = array( 111 'source' => $this->templatePath . DIRECTORY_SEPARATOR . $this->viewTemplateName, 111 'source' => $this->templatePath . DIRECTORY_SEPARATOR . $this->viewTemplateName, 112 'target' => $_sViewPath . DIRECTORY_SEPARATOR . $_sAction . '.php', 113 'callback' => array( $this, 'generateAction' ), 116 117 $_sClasses .= $this->boldEchoString( '(' . $_sViewPath . DIRECTORY_SEPARATOR . $_sAction . '.php' . ')', $_sAction, true ); 118 } 139 { 140 if ( ! is_file( $sSourceFile ) ) $sSourceFile = YII_PATH . '/cli/views/shell/controller/' . basename( $sSourceFile ); 141schema.php https://github.com/ochoto/framework-benchs.git | PHP | 556 lines
5 * 6 * PHP versions 4 and 5 7 * 7 * 8 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 9 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 15 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 16 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 17 * @package cake 22 * @lastmodified $Date$ 23 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 24 */ 154 require_once($path . DS . $file); 155 } elseif (file_exists($path . DS . 'schema.php') && is_file($path . DS . 'schema.php')) { 156 require_once($path . DS . 'schema.php');theme-editor.php https://bitbucket.org/lordmuffin/origin.git | PHP | 246 lines
83 if ( is_writeable( $file ) ) { 84 //is_writable() not always reliable, check return value. see comments @ http://uk.php.net/is_writable 85 $f = fopen( $file, 'w+' ); 172 <?php if ( $theme->parent() ) : ?> 173 <p class="howto"><?php printf( __( 'This child theme inherits templates from a parent theme, %s.' ), '<a href="' . self_admin_url('theme-editor.php?theme=' . urlencode( $theme->get_template() ) ) . '">' . $theme->parent()->display('Name') . '</a>' ); ?></p> 174 <?php endif; ?> 189?> 190 <li><a href="theme-editor.php?file=<?php echo urlencode( $filename ) ?>&theme=<?php echo urlencode( $stylesheet ) ?>"><?php echo $file_description; ?></a></li> 191<?php 211 <?php echo $docs_select; ?> 212 <input type="button" class="button" value=" <?php esc_attr_e( 'Look Up' ); ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" /> 213 </div> 217 <?php if ( is_child_theme() && $theme->get_stylesheet() == get_template() ) : ?> 218 <p><?php if ( is_writeable( $file ) ) { ?><strong><?php _e( 'Caution:' ); ?></strong><?php } ?> 219 <?php _e( 'This is a file in your current parent theme.' ); ?></p>CodeFormatter.php https://gitlab.com/nmhieucoder/laravel_tintuc | PHP | 320 lines
1<?php 2 144 * 145 * @todo consider switching \token_get_all() out for PHP-Parser-based formatting at some point. 146 * 262 263 yield $lineNum => $line.\PHP_EOL; 264 } 317 { 318 return ($reflector instanceof \ReflectionClass || $reflector instanceof \ReflectionFunctionAbstract) && \is_file($reflector->getFileName()); 319 }Loader.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 481 lines
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); 2 12 * 13 * Install this file as application/third_party/MX/Loader.php 14 * 271 272 if ($path === FALSE && ! is_file($_plugin = APPPATH.'plugins/'.$_plugin.EXT)) 273 { 352 { 353 echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path)))); 354 } 480/** load the CI class for Modular Separation **/ 481(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';zoo.php https://github.com/foxbei/joomla15.git | PHP | 479 lines
1<?php 2/** 3* @package ZOO Component 4* @file zoo.php 5* @version 2.3.7 March 2011 56 // create or re-cache thumbnail 57 if (YImageThumbnail::check() && (!is_file($thumbfile) || ($cache_time > 0 && time() > (filemtime($thumbfile) + $cache_time)))) { 58 $thumbnail = new YImageThumbnail($file); 76 77 if (is_file($thumbfile)) { 78 return $thumbfile; 240 241 if (is_file($path) && $size = getimagesize($path)) { 242index.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 319 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 41 42require_once('include/MySugar/MySugar.php'); 43 44// build dashlet cache file if not found 45if(!is_file($cachefile = sugar_cached('dashlets/dashlets.php'))) { 46 require_once('include/Dashlets/DashletCacheBuilder.php'); 52 53require('modules/Home/dashlets.php'); 54 208 // only display dashlets that are from visibile modules and that the user has permission to list 209 if(!empty($id) && isset($dashlets[$id]) && is_file($dashlets[$id]['fileLocation'])) { 210 $module = 'Home'; 233 234 $dashlets = $current_user->getPreference('dashlets', 'Home'); // Using hardcoded 'Home' because DynamicAction.php $_REQUEST['module'] value is always Home 235 $lvsParams = array();ProjectTaskTest.php https://github.com/gustavor/lore.git | PHP | 339 lines
8 * 9 * CakePHP : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2011, Cake Software Foundation, Inc. 15 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. 16 * @link http://cakephp.org CakePHP Project 17 * @package Cake.Test.Case.Console.Command.Task 17 * @package Cake.Test.Case.Console.Command.Task 18 * @since CakePHP v 1.3.0 19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 152 153 $contents = file_get_contents($path . DS . 'webroot' . DS . 'test.php'); 154 $this->assertRegExp('#//define\(\'CAKE_CORE_INCLUDE_PATH#', $contents); 216 217 $file = new File($path . 'Config' . DS . 'core.php'); 218 $contents = $file->read();Think.class.php https://gitlab.com/fangfangchen/xianpipa | PHP | 344 lines
39 40 $runtimefile = RUNTIME_PATH.APP_MODE.'~runtime.php'; 41 if(!APP_DEBUG && Storage::has($runtimefile)){ 47 // 读取应用模式 48 $mode = include is_file(CONF_PATH.'core.php')?CONF_PATH.'core.php':MODE_PATH.APP_MODE.'.php'; 49 // 加载核心文件 71 // 加载应用别名定义文件 72 if(is_file(CONF_PATH.'alias.php')) 73 self::addMap(include CONF_PATH.'alias.php'); 80 // 加载应用行为定义 81 if(is_file(CONF_PATH.'tags.php')) 82 // 允许应用增加开发模式配置定义 299 if(IS_CLI){ 300 exit(iconv('UTF-8','gbk',$e['message']).PHP_EOL.'FILE: '.$e['file'].'('.$e['line'].')'.PHP_EOL.$e['trace']); 301 }voucher_theme.php https://gitlab.com/reclamare/mao | PHP | 402 lines
1<?php 2class ControllerSaleVoucherTheme extends Controller { 349 350 if (isset($this->request->post['image']) && is_file(DIR_IMAGE . $this->request->post['image'])) { 351 $data['thumb'] = $this->model_tool_image->resize($this->request->post['image'], 100, 100); 351 $data['thumb'] = $this->model_tool_image->resize($this->request->post['image'], 100, 100); 352 } elseif (!empty($voucher_theme_info) && is_file(DIR_IMAGE . $voucher_theme_info['image'])) { 353 $data['thumb'] = $this->model_tool_image->resize($voucher_theme_info['image'], 100, 100);MaildirFolderTest.php https://github.com/bhaumik25/zend-framework.git | PHP | 438 lines
1<?php 2 12 */ 13require_once 'Zend/Mail/Storage/Folder/Maildir.php'; 14 17 */ 18require_once 'Zend/Config.php'; 19 20/** 21 * PHPUnit test case 22 */ 22 */ 23require_once 'PHPUnit/Framework/TestCase.php'; 24 30 */ 31class Zend_Mail_MaildirFolderTest extends PHPUnit_Framework_TestCase 32{Mail.php https://github.com/PJK/Nette-Exceptions---Independent-Components.git | PHP | 475 lines
1<?php 2 318 { 319 if (!is_file($file)) { 320 throw new \FileNotFoundException("File '$file' not found.");class.extensionmanager.php https://github.com/scottkf/nicholscommunications.git | PHP | 483 lines
1<?php 2 2 3 include_once(TOOLKIT . '/class.manager.php'); 4 include_once(TOOLKIT . '/class.extension.php'); 25 function __getDriverPath($name){ 26 return $this->__getClassPath($name) . '/extension.driver.php'; 27 } 126 if(is_dir(EXTENSIONS . "/{$extension_handle}/fields")){ 127 foreach(glob(EXTENSIONS . "/{$extension_handle}/fields/field.*.php") as $file){ 128 $type = preg_replace(array('/^field\./i', '/\.php$/i'), NULL, basename($file)); 142 if(is_dir(EXTENSIONS . "/{$extension_handle}/data-sources")){ 143 foreach(glob(EXTENSIONS . "/{$extension_handle}/data-sources/data.*.php") as $file){ 144 144 145 $handle = preg_replace(array('/^data\./i', '/\.php$/i'), NULL, basename($file)); 146 if(Symphony::Database()->fetchVar('count', 0, "SELECT COUNT(*) AS `count` FROM `tbl_pages` WHERE `data_sources` REGEXP '[[:<:]]{$handle}[[:>:]]' ") > 0){installer.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 401 lines
1<?php 2 29 public function cancel() { 30 $this->setRedirect(JRoute::_('index.php?option=com_jce&client=' . $client, false)); 31 } 74 // Cleanup the install files 75 if (!is_file($package['packagefile'])) { 76 $package['packagefile'] = $app->getCfg('tmp_path') . '/' . $package['packagefile']; 77 } 78 if (is_file($package['packagefile'])) { 79 JInstallerHelper::cleanupInstall($package['packagefile'], $package['extractdir']); 171 172 if (!is_file($dest)) { 173 JError::raiseWarning('SOME_ERROR_CODE', WFText::_('WF_INSTALLER_UPLOAD_FAILED')); 334 335 if (is_file($file)) { 336 $xml = WFXMLElement::load($file);Test.php https://bitbucket.org/sergigp_atrapalo/atrtest.git | PHP | 372 lines
36 * 37 * @package PHPUnit 38 * @subpackage SkeletonGenerator 38 * @subpackage SkeletonGenerator 39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2012 Sebastian Bergmann <sebastian@phpunit.de> 48 * 49 * @package PHPUnit 50 * @subpackage SkeletonGenerator 50 * @subpackage SkeletonGenerator 51 * @author Sebastian Bergmann <sebastian@phpunit.de> 52 * @copyright 2012 Sebastian Bergmann <sebastian@phpunit.de> 57 */ 58class PHPUnit_SkeletonGenerator_Test extends PHPUnit_SkeletonGenerator 59{CDbFixtureManager.php https://gitlab.com/Griffolion/Final-Year-Project | PHP | 365 lines
24 * A fixture can be associated with an init script which sits under the same fixture 25 * directory and is named as "TableName.init.php". The init script is used to 26 * initialize the table before populating the fixture data into the table. 29 * Fixtures must be stored under the {@link basePath} directory. The directory 30 * may contain a file named "init.php" which will be executed once to initialize 31 * the database. If this file is not found, all available fixtures will be loaded 46 */ 47 public $initScript='init.php'; 48 /** 117 118 if(is_file($initFile)) 119 require($initFile); 214 $path=$this->basePath.DIRECTORY_SEPARATOR.$file; 215 if(substr($file,-4)==='.php' && is_file($path) && substr($file,-$suffixLen)!==$this->initScriptSuffix) 216 {GlobalState.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 427 lines
387 self::addDirectoryContainingClassToPHPUnitFilesList('File_Iterator'); 388 self::addDirectoryContainingClassToPHPUnitFilesList('PHP_CodeCoverage'); 389 self::addDirectoryContainingClassToPHPUnitFilesList('PHP_Invoker'); 389 self::addDirectoryContainingClassToPHPUnitFilesList('PHP_Invoker'); 390 self::addDirectoryContainingClassToPHPUnitFilesList('PHP_Timer'); 391 self::addDirectoryContainingClassToPHPUnitFilesList('PHP_Token'); 391 self::addDirectoryContainingClassToPHPUnitFilesList('PHP_Token'); 392 self::addDirectoryContainingClassToPHPUnitFilesList('PHPUnit_Framework_TestCase', 2); 393 self::addDirectoryContainingClassToPHPUnitFilesList('PHPUnit_Extensions_Database_TestCase', 2); 393 self::addDirectoryContainingClassToPHPUnitFilesList('PHPUnit_Extensions_Database_TestCase', 2); 394 self::addDirectoryContainingClassToPHPUnitFilesList('PHPUnit_Framework_MockObject_Generator', 2); 395 self::addDirectoryContainingClassToPHPUnitFilesList('PHPUnit_Extensions_SeleniumTestCase', 2); 395 self::addDirectoryContainingClassToPHPUnitFilesList('PHPUnit_Extensions_SeleniumTestCase', 2); 396 self::addDirectoryContainingClassToPHPUnitFilesList('PHPUnit_Extensions_Story_TestCase', 2); 397 self::addDirectoryContainingClassToPHPUnitFilesList('Text_Template');cache.php https://github.com/mariuz/firetube.git | PHP | 329 lines
1<?php 2/* SVN FILE: $Id$ */ 5 * 6 * PHP versions 4 and 5 7 * 7 * 8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 9 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @link http://cakephp.org CakePHP(tm) Project 16 * @package cake 17 * @subpackage cake.cake.libs.view.helpers 18 * @since CakePHP(tm) v 1.0.0.2277 19 * @version $Revision$ 21 * @lastmodified $Date$ 22 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 23 */pageTranslations.php https://gitlab.com/macitsimsek/fastsubtitle | PHP | 217 lines
1<?php 2 114 'complate' => 'Complate', 115 'add_support_this_files' => 'Add Support This Files', 116 'support_subtitle_page' => 'Support Subtitle Page',Common.php https://github.com/Sa-ryong/Stadioom-php.git | PHP | 540 lines
34* 35* Since there are a few places where we conditionally test for PHP > 5 36* we'll set a static variable. 41*/ 42if ( ! function_exists('is_php')) 43{ 50 { 51 $_is_php[$version] = (version_compare(PHP_VERSION, $version) < 0) ? FALSE : TRUE; 52 } 158 { 159 require(APPPATH.$directory.'/'.config_item('subclass_prefix').$class.'.php'); 160 } 205/** 206* Loads the main config.php file 207*siteConfig_b.php https://github.com/joshbhamilton/sugarcrm_dev.git | PHP | 235 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 44 45if( is_file("config.php") ){ 46 124<body onload="javascript:toggleGUID();toggleSession();toggleLogDir();document.getElementById('button_next2').focus();"> 125<form action="install.php" method="post" name="setConfig" id="form"> 126<input type="hidden" name="current_step" value="{$next_step}">LuceneUtils.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 320 lines
1<?php 2 /** 29 set_include_path(get_include_path() . PATH_SEPARATOR . "modules/AOD_Index/Lib"); 30 require_once('Zend/Search/Lucene.php'); 31} 112function createPDFDocument($path){ 113 require_once('PdfParser.php'); 114 $text = PdfParser::parseFile($path); 126function createOdtDocument($path){ 127 if(!is_file($path)){ 128 return false;link-manager.php https://github.com/shlomsky/lim.git | PHP | 292 lines
85<?php screen_icon(); ?> 86<h2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php 87if ( !empty($_GET['s']) ) 195 $edit_link = get_edit_bookmark_link(); 196 ?><tr id="link-<?php echo $link->link_id; ?>" valign="middle" <?php echo $style; ?>><?php 197 foreach($link_columns as $column_name=>$column_display_name) { 245 case 'rel': 246 ?><td <?php echo $attributes ?>><?php echo empty($link->link_rel) ? '<br />' : $link->link_rel; ?></td><?php 247 break; 248 case 'visible': 249 ?><td <?php echo $attributes ?>><?php echo $visible; ?></td><?php 250 break; 251 case 'rating': 252 ?><td <?php echo $attributes ?>><?php echo $rating; ?></td><?php 253 break;CLocale.php https://bitbucket.org/aagraz/yii.git | PHP | 472 lines
1<?php 2/** 80 $fullPath=$dataPath.DIRECTORY_SEPARATOR.$file; 81 if(substr($file,-4)==='.php' && is_file($fullPath)) 82 $locales[]=substr($file,0,-4); 100 $dataPath=self::$dataPath===null ? dirname(__FILE__).DIRECTORY_SEPARATOR.'data' : self::$dataPath; 101 $dataFile=$dataPath.DIRECTORY_SEPARATOR.$this->_id.'.php'; 102 if(is_file($dataFile))Filesystem.php https://gitlab.com/techniconline/kmc | PHP | 426 lines
1<?php namespace Illuminate\Filesystem; 2 251 { 252 return is_file($file); 253 }Test.php https://github.com/xenophy/xFrameworkPX.git | PHP | 386 lines
46 47require_once 'PHPUnit/Util/Filesystem.php'; 48require_once 'PHPUnit/Util/Filter.php'; 49require_once 'PHPUnit/Util/Skeleton.php'; 50require_once 'PHPUnit/Util/Template.php'; 51 51 52PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT'); 53 60 * @copyright 2002-2009 Sebastian Bergmann <sb@sebastian-bergmann.de> 61 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 62 * @version Release: 3.4.1 65 */ 66class PHPUnit_Util_Skeleton_Test extends PHPUnit_Util_Skeleton 67{template.php https://github.com/opportunitylinks/Support-For-Me.git | PHP | 359 lines
1<?php 2//$Id: template.php,v 1.7.2.10 2010/07/22 14:30:03 himerus Exp $ 2//$Id: template.php,v 1.7.2.10 2010/07/22 14:30:03 himerus Exp $ 3// Report all PHP errors (see changelog) 4//ini_set('error_reporting', E_ALL); 11 * This makes it easier to keep sorted the preprocess functions that can be present in the 12 * template.php file. You may still use hook_preprocess_page in template.php 13 * or create a file preprocess-page.inc in the preprocess folder to include the appropriate 38 foreach($themes_active as $name) { 39 if(is_file(drupal_get_path('theme', $name) . '/preprocess/preprocess-' . str_replace('_', '-', $hook) . '.inc')) { 40 include(drupal_get_path('theme', $name) . '/preprocess/preprocess-' . str_replace('_', '-', $hook) . '.inc'); 44/** 45 * Preprocessor for page.tpl.php template file. 46 * The default functionality can be found in preprocess/preprocess-page.inc 90 * 91 * class="<?php print ns('grid-16', $var_a, 6); ?>" 92 *nas_admin.php https://github.com/artisdom/freeradius-server.git | PHP | 288 lines
1<?php 2require('../conf/config.php'); 3 4if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php")) 5 include_once("../lib/sql/drivers/$config[sql_type]/functions.php"); 19if ($config[general_restrict_nasadmin_access] == 'yes'){ 20 $auth_user = $_SERVER["PHP_AUTH_USER"]; 21 if ($auth_user == '' || $mappings[$auth_user][nasadmin] != 'yes'){ 47 case 'check_nas': 48 require_once('../lib/functions.php'); 49 if (!check_ip($selected_nas) && $selected_nas == gethostbyname($selected_nas)) 180 <input type=hidden name=select_nas value=0> 181<?php echo $msg?> 182 <table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top> 188<select name=selected_nas size=5 OnChange="this.form.select_nas.value=1;this.form.submit()"> 189<?php 190foreach ($my_nas_list as $member){php.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 129 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 127 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 128 CodeMirror.defineMIME("text/x-php", phpConfig); 129})();admin.functions.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 321 lines
1<?php 2/** 20 21define( 'NV_IS_FILE_ADMIN', true ); 22ssp.class.php https://gitlab.com/ealexis.t/trends | PHP | 390 lines
1<?php 2 19// REMOVE THIS BLOCK - used for DataTables test environment only! 20$file = $_SERVER['DOCUMENT_ROOT'].'/datatables/mysql.php'; 21if ( is_file( $file ) ) {class.AJXP_XMLWriter.php https://github.com/umbecr/camilaframework.git | PHP | 334 lines
1<?php 2/** 85 $metaData["text"] = $nodeLabel; 86 $metaData["is_file"] = ($isLeaf?"true":"false"); 87 foreach ($metaData as $key => $value){ext_imagick.cpp https://github.com/tstarling/hiphop-php.git | C++ | 359 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | 6 | Copyright (c) 1997-2010 The PHP Group | 7 +----------------------------------------------------------------------+ 7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.txt | 12 | If you did not receive a copy of the PHP license and are unable to | 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 +----------------------------------------------------------------------+filemanager.php https://gitlab.com/dadangnh/sb1-bon | PHP | 430 lines
1<?php 2class ControllerCommonFileManager extends Controller { 84 ); 85 } elseif (is_file($image)) { 86 $data['images'][] = array( 244 foreach ($files as $file) { 245 if (is_file($file['tmp_name'])) { 246 // Sanitize the filename 382 // If path is just a file delete it 383 if (is_file($path)) { 384 unlink($path); 412 // If file just delete 413 if (is_file($file)) { 414 unlink($file);ssp.class.php https://gitlab.com/yesnyes/DataTables | PHP | 526 lines
1<?php 2 19// REMOVE THIS BLOCK - used for DataTables test environment only! 20$file = $_SERVER['DOCUMENT_ROOT'].'/datatables/mysql.php'; 21if ( is_file( $file ) ) { 62 * 63 * Obtain an PHP PDO connection from a connection details array 64 *Image.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 431 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 5 * 6 * $Id: Image.php 3809 2008-12-18 12:48:41Z OscarB $ 7 * 10 * @copyright (c) 2007-2008 Kohana Team 11 * @license http://kohanaphp.com/license.html 12 */ 73 // Check to make sure the image exists 74 if ( ! is_file($image)) 75 throw new Kohana_Exception('image.file_not_found', $image); 76 77 // Disable error reporting, to prevent PHP warnings 78 $ER = error_reporting(0);Image.php https://github.com/yamamoto123/Ushahidi_Web.git | PHP | 431 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 5 * 6 * $Id: Image.php 3917 2009-01-21 03:06:22Z zombor $ 7 * 10 * @copyright (c) 2007-2008 Kohana Team 11 * @license http://kohanaphp.com/license.html 12 */ 73 // Check to make sure the image exists 74 if ( ! is_file($image)) 75 throw new Kohana_Exception('image.file_not_found', $image); 76 77 // Disable error reporting, to prevent PHP warnings 78 $ER = error_reporting(0);class-wp-filesystem-ftpext.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 387 lines
1<?php 2/** 27 if ( ! extension_loaded('ftp') ) { 28 $this->errors->add('no_ftp_ext', __('The ftp PHP extension is not available')); 29 return false; 150 if ( ! $mode ) { 151 if ( $this->is_file($file) ) 152 $mode = FS_CHMOD_FILE; 200 return false; 201 if ( $this->is_file($file) ) 202 return @ftp_delete($this->link, $file); 216 } 217 function is_file($file) { 218 return $this->exists($file) && !$this->is_dir($file); 332 function dirlist($path = '.', $include_hidden = true, $recursive = false) { 333 if ( $this->is_file($path) ) { 334 $limit_file = basename($path);Storage.php https://gitlab.com/fiesta-framework/Documentation | PHP | 382 lines
1<?php 2 252 foreach ($r as $key => $value) { 253 if(is_file($this->storagePath."/".$value)) $files[]=$value; 254 } 267 foreach ($r as $key => $value) { 268 if(is_file($self->storagePath."/".$value)) $files[]=$value; 269 }ProjectTaskTest.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 386 lines
6 * 7 * CakePHP : Rapid Development Framework (http://cakephp.org) 8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @link http://cakephp.org CakePHP Project 16 * @package Cake.Test.Case.Console.Command.Task 16 * @package Cake.Test.Case.Console.Command.Task 17 * @since CakePHP v 1.3.0 18 * @license http://www.opensource.org/licenses/mit-license.php MIT License 142 $this->assertTrue(is_dir($this->Task->args[0]), 'No project dir'); 143 $File = new File($path . DS . 'webroot' . DS . 'index.php'); 144 $contents = $File->read(); 212 foreach ($empty as $dir => $file) { 213 $this->assertTrue(is_file($path . DS . $dir . DS . $file), sprintf('Missing %s file in %s', $file, $dir)); 214 }logs.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 336 lines
1<?php 2 9 10if ( ! defined( 'NV_IS_FILE_SITEINFO' ) ) die( 'Stop!!!' ); 11 24$sql = "SELECT SQL_CALC_FOUND_ROWS * FROM `" . $db_config['prefix'] . "_logs` WHERE `id`!=0"; 25$base_url = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op; 26 42 nv_insert_logs( NV_LANG_DATA, $module_name, sprintf ( $lang_module['filter_check_log'], $op ), $admin_info['username'] . " - " . $admin_info['userid'], 0 ); 43 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op ); 44 exit(); 278$xtpl->assign( 'URL_DEL', $base_url . "&" . NV_OP_VARIABLE . "=logs_del" ); 279$xtpl->assign( 'URL_CANCEL', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op ); 280$xtpl->assign( 'DISABLE', $disabled ); 315 $xtpl->assign( 'CLASS', $a % 2 == 1 ? " class=\"second\"" : "" ); 316 $xtpl->assign( 'DEL_URL', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=log&" . NV_OP_VARIABLE . "=logs_del&id=" . $data_i['id'] ); 317 $xtpl->assign( 'BACK_URL', $base_url );class.AJXP_PluginsService.php https://github.com/umbecr/camilaframework.git | PHP | 375 lines
1<?php 2/** 71 $plugin = $this->instanciatePluginClass($plugin); 72 if(is_file($this->confFolder."/conf.".$plugin->getId().".inc")){ 73 $plugin->loadConfig($this->confFolder."/conf.".$plugin->getId().".inc", "inc"); 80 /** 81 * Find a PHP class and instanciate it to replace the empty AJXP_Plugin 82 * 90 $className = $definition["classname"]; 91 if(is_file($filename)){ 92 require_once($filename);mysql_collation.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 328 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 26 27require(__DIR__.'/../../config.php'); 28require_once($CFG->libdir.'/clilib.php'); // cli only functions 55Example: 56\$ sudo -u www-data /usr/bin/php admin/cli/mysql_collation.php --collation=utf8mb4_unicode_ci 57"; 89 // Is one file per table being used? 90 if (!$DB->is_file_per_table_enabled()) { 91 try {User_agent.php https://gitlab.com/sittipongwork/impro_dashboard | PHP | 550 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 87 { 88 if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php')) 89 { 89 { 90 include(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php'); 91 } 91 } 92 elseif (is_file(APPPATH.'config/user_agents.php')) 93 { 93 { 94 include(APPPATH.'config/user_agents.php'); 95 }insert_media.php https://github.com/shafiqissani/ASTRA-College-Website.git | PHP | 395 lines
34 35 if ($action=="del" && is_file($CONFIG['BASE_PATH'].$file)) { 36 231<div class="title">Insert Audio</div> 232<?php 233echo "<div align=\"center\">$message</div>"; 256 <table border=0 cellpadding=3 cellspacing=0 width=220> 257 <?php 258 285 <tr bgcolor=Gainsboro> 286 <td valign=top><?php echo $entry?></td> 287 <td valign=top></td> 288 <td valign=top></td> 289 <td valign=top style="cursor:hand;" onClick="selectImage('<?php echo "$url_path/$entry" ?>', '<?php echo "%MP3%$url_path/$entry%MP3%" ?>', '<?php echo "$url_path/$entry" ?>')"><u><font color=blue>select</font></u></td> 290 <td valign=top style="cursor:hand;" onClick="deleteImage('<?php echo "$url_path/$entry" ?>')"> <u><font color=blue>del</font></u></td>CPhpMessageSource.php https://github.com/joshuaswarren/weatherhub.git | PHP | 140 lines
11/** 12 * CPhpMessageSource represents a message source that stores translated messages in PHP scripts. 13 * 13 * 14 * CPhpMessageSource uses PHP files and arrays to keep message translations. 15 * <ul> 16 * <li>All translations are saved under the {@link basePath} directory.</li> 17 * <li>Translations in one language are kept as PHP files under an individual subdirectory 18 * whose name is the same as the language ID. Each PHP file contains messages 19 * belonging to the same category, and the file name is the same as the category name.</li> 20 * <li>Within a PHP file, an array of (source, translation) pairs is returned. 21 * For example: 39 * @author Qiang Xue <qiang.xue@gmail.com> 40 * @version $Id: CPhpMessageSource.php 2798 2011-01-01 19:29:03Z qiang.xue $ 41 * @package system.i18nOpenssl.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 353 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Openssl.php 20288 2010-01-14 20:15:43Z thomas $ 20 */ 24 */ 25// require_once 'Zend/Filter/Encrypt/Interface.php'; 26 70 if (!extension_loaded('openssl')) { 71 // require_once 'Zend/Filter/Exception.php'; 72 throw new Zend_Filter_Exception('This filter needs the openssl extension'); 99 if (!is_array($keys)) { 100 // require_once 'Zend/Filter/Exception.php'; 101 throw new Zend_Filter_Exception('Invalid options argument provided to filter'); 104 foreach ($keys as $type => $key) { 105 if (is_file($key) and is_readable($key)) { 106 $file = fopen($key, 'r');Loader.php https://gitlab.com/r.collas/site_central | PHP | 548 lines
1<?php 2/** 12 13require_once 'Exception.php'; 14 76 77 if(is_file($filepath)) 78 $realpath = $filepath; 85 86 if(!is_file($path.DIRECTORY_SEPARATOR.$filepath)) 87 continue; 122 123 if(!is_file($path.DIRECTORY_SEPARATOR.$dirpath)) 124 continue; 167 168 return str_replace('_', DIRECTORY_SEPARATOR, $class_name).'.php'; 169wiki.php https://bitbucket.org/eithansmith/waka-wiki.git | PHP | 499 lines
1<?php 2 10 11 require_once 'loader.php'; 12 $this->_loader = new Loader($this->_template); 480 { 481 while(is_file($file) == TRUE) 482 {ProjectFileRevision.class.php https://github.com/cj/Project-Pier.git | PHP | 463 lines
1<?php 2 153 $source_file = CACHE_DIR . '/' . sha1(uniqid(rand(), true)); 154 } while (is_file($source_file)); 155 161 $temp_file = CACHE_DIR . '/' . sha1(uniqid(rand(), true)); 162 } while (is_file($temp_file)); 163SplFileInfo.php https://github.com/tstarling/hiphop-php.git | PHP | 432 lines
4/** 5 * ( excerpt from http://php.net/manual/en/class.splfileinfo.php ) 6 * 18 /** 19 * ( excerpt from http://php.net/manual/en/splfileinfo.construct.php ) 20 * 190 /** 191 * ( excerpt from http://php.net/manual/en/splfileinfo.getmtime.php ) 192 * 395 /** 396 * ( excerpt from http://php.net/manual/en/splfileinfo.setfileclass.php ) 397 * 411 /** 412 * ( excerpt from http://php.net/manual/en/splfileinfo.setinfoclass.php ) 413 *ContainerDebugCommand.php https://gitlab.com/pr0055/symfonypizza | PHP | 216 lines
1<?php 2 56 57 <info>php %command.full_name%</info> 58 60 61 <info>php %command.full_name% validator</info> 62 65 66 <info>php %command.full_name% --show-private</info> 67 69 70 <info>php %command.full_name% --tags</info> 71 73 74 <info>php %command.full_name% --tag=form.type</info> 75_exec---pubban_pub_tous.php.html https://bitbucket.org/pombredanne/spip-zone-treemap.git | HTML | 212 lines
39 <small> 40 <span class="on"><:phpdoc:details:></span> | <a href="#sec-functions"><:phpdoc:functions:></a> </small> 41 </div> 61 <td width="6%"></td> 62 <td><small><a href="[(#SELF|parametre_url{doc,__filesource/fsource_Pub_Pages_execpubban_pub_tous.php})]"><:phpdoc:source_code_for_this_file:></a></small></td> 63 </tr> 110 <small> 111 <a href="#sec-description"><:phpdoc:details:></a> | <span class="on"><:phpdoc:functions:></span> </small> 112 </div> 200 <p style="font-size: 0.8em; padding: 0.4em; border: 1px solid #cccccc;"> 201 <a href="http://www.phpdoc.org"><img src='#CHEMIN{doc_pub_banner/media/phpdoc_logo_50.png}' border='0' alt='PhpDoc' /> phpDocumentor 1.4.1</a> 202 <br />| <:phpdoc:date_generation:> 210 <div id="pied"> 211 | <a href='http://www.spip.net/' title='<:site_realise_avec_spip:>'><img src='http://cdc.spiplocal:8888/squelettes-dist/spip.png' alt='SPIP' width='48' height='16' /></a> | <a rel='contents' href='http://cdc.spiplocal:8888'><:accueil_site:></a> | <a href='http://cdc.spiplocal:8888/ecrire/'><:espace_prive:></a> | <a href='[(#SELF|parametre_url{doc,index})]' title='<:phpdoc:retour_doc:>'><:phpdoc:accueil_doc:> <i>Pub Banner</i></a> | 212 </div>_exec---pubban_pub_edit.php.html https://bitbucket.org/pombredanne/spip-zone-treemap.git | HTML | 212 lines
39 <small> 40 <span class="on"><:phpdoc:details:></span> | <a href="#sec-functions"><:phpdoc:functions:></a> </small> 41 </div> 61 <td width="6%"></td> 62 <td><small><a href="[(#SELF|parametre_url{doc,__filesource/fsource_Pub_Pages_execpubban_pub_edit.php})]"><:phpdoc:source_code_for_this_file:></a></small></td> 63 </tr> 110 <small> 111 <a href="#sec-description"><:phpdoc:details:></a> | <span class="on"><:phpdoc:functions:></span> </small> 112 </div> 200 <p style="font-size: 0.8em; padding: 0.4em; border: 1px solid #cccccc;"> 201 <a href="http://www.phpdoc.org"><img src='#CHEMIN{doc_pub_banner/media/phpdoc_logo_50.png}' border='0' alt='PhpDoc' /> phpDocumentor 1.4.1</a> 202 <br />| <:phpdoc:date_generation:> 210 <div id="pied"> 211 | <a href='http://www.spip.net/' title='<:site_realise_avec_spip:>'><img src='http://cdc.spiplocal:8888/squelettes-dist/spip.png' alt='SPIP' width='48' height='16' /></a> | <a rel='contents' href='http://cdc.spiplocal:8888'><:accueil_site:></a> | <a href='http://cdc.spiplocal:8888/ecrire/'><:espace_prive:></a> | <a href='[(#SELF|parametre_url{doc,index})]' title='<:phpdoc:retour_doc:>'><:phpdoc:accueil_doc:> <i>Pub Banner</i></a> | 212 </div>class-wp-filesystem-ssh2.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 391 lines
8 * 9 * Complie libssh2 (Note: Only 0.14 is officaly working with PHP 5.2.6+ right now, But many users have found the latest versions work) 10 * 21 * 22 * Copy the ssh.so file it creates to your PHP Module Directory. 23 * Open up your PHP.INI file and look for where extensions are placed. 28 * 29 * Note: as of WordPress 2.8, This utilises the PHP5+ function 'stream_get_contents' 30 * 49 if ( ! extension_loaded('ssh2') ) { 50 $this->errors->add('no_ssh2_ext', __('The ssh2 PHP extension is not available')); 51 return false; 53 if ( !function_exists('stream_get_contents') ) { 54 $this->errors->add('ssh2_php_requirement', __('The ssh2 PHP extension is available, however, we require the PHP5 function <code>stream_get_contents()</code>')); 55 return false;user_waiting.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 222 lines
1<?php 2 9 10if ( ! defined( 'NV_IS_FILE_ADMIN' ) ) die( 'Stop!!!' ); 11 34 { 35 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 36 die(); 43 { 44 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 45 die(); 73 $subject = $lang_module['adduser_register']; 74 $message = sprintf( $lang_module['adduser_register_info'], $full_name, $global_config['site_name'], NV_MY_DOMAIN . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name, $row['username'] ); 75 $message .= "<br /><br />------------------------------------------------<br /><br />"; 79 80 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=user_waiting" ); 81 die();media.php https://github.com/PHPFrame/Mashine.git | PHP | 495 lines
1<?php 2/** 2/** 3 * src/controllers/api/media.php 4 * 4 * 5 * PHP version 5 6 * 6 * 7 * @category PHPFrame_Applications 8 * @package Mashine 11 * @copyright 2010 E-NOISE.COM LIMITED 12 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License 13 * @link http://github.com/E-NOISE/Mashine 18 * 19 * @category PHPFrame_Applications 20 * @package MashineIppi.java https://bitbucket.org/bohlooli/csipsimple2.git | Java | 241 lines
51 52 protected static final String THIS_FILE = "IppiW"; 53 90 91 extAccCreator = new AccountCreationWebview(parent, "https://m.ippi.fr/subscribe/android.php", this); 92 } 143 144 String requestURL = "https://soap.ippi.fr/credit/check_credit.php?" 145 + "login=" + acc.username 161 } catch (NumberFormatException e) { 162 Log.e(THIS_FILE, "Can't get value for line"); 163 }sparql2s3db.php https://github.com/drobbins/s3db.git | PHP | 283 lines
1<?php 2#sparql serializer is an API that serializes a sparql query into an S3QL query 7 ini_set('display_errors',1); 8if(file_exists('config.inc.php')) 9 { 9 { 10 include('config.inc.php'); 11 } 13 { 14 Header('Location: index.php'); 15 exit; 16 } 17include('dbstruct.php'); 18@ini_set('allow_url_fopen', true); 32 33define("RDFAPI_INCLUDE_DIR", S3DB_SERVER_ROOT."/pearlib/rdfapi-php/api/"); 34include(RDFAPI_INCLUDE_DIR . "RdfAPI.php");MimeType.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 440 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: MimeType.php 24593 2012-01-05 20:35:02Z matthew $ 20 */ 24 */ 25require_once 'Zend/Validate/Abstract.php'; 26 133 } elseif (!is_array($mimetype)) { 134 require_once 'Zend/Validate/Exception.php'; 135 throw new Zend_Validate_Exception( "Invalid options to validator provided" ); 164 ) { 165 require_once 'Zend/Validate/Exception.php'; 166 foreach ($this->_magicFiles as $file) { 188 * Sets the magicfile to use 189 * if null, the MAGIC constant from php is used 190 * if the MAGIC file is errorous, no file will be setWebTestCase.php https://github.com/nattaphat/hgis.git | PHP | 173 lines
1<?php 2 22 */ 23abstract class WebTestCase extends \PHPUnit_Framework_TestCase 24{ 56 * 57 * @return string The directory where phpunit.xml(.dist) is stored 58 * 60 */ 61 protected static function getPhpUnitXmlDir() 62 { 62 { 63 if (!isset($_SERVER['argv']) || false === strpos($_SERVER['argv'][0], 'phpunit')) { 64 throw new \RuntimeException('You must override the WebTestCase::createKernel() method.'); 68 if ($dir === null && 69 (is_file(getcwd().DIRECTORY_SEPARATOR.'phpunit.xml') || 70 is_file(getcwd().DIRECTORY_SEPARATOR.'phpunit.xml.dist'))) {Translator.php https://github.com/pborreli/zf2.git | PHP | 487 lines
1<?php 2/** 459 . '/' . sprintf($pattern['pattern'], $locale); 460 if (is_file($filename)) { 461 $this->messages[$textDomain][$locale] = $this->getPluginManager()download.php https://bitbucket.org/rusbal/club4causes.git | PHP | 374 lines
1<?php 2/*------------------------------------------------------------------------------ 192 if (isset($download_info['filename']) ) { 193 if ( is_file(DIR_RESOURCE.$download_info['filename']) ) { 194 $rm = new AResource('archive');Class.php https://github.com/aflexi/thirdparty.git | PHP | 317 lines
36 * 37 * @package PHPUnit 38 * @subpackage Util_Skeleton 39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2002-2010 Sebastian Bergmann <sebastian@phpunit.de> 41 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 48 * 49 * @package PHPUnit 50 * @subpackage Util_Skeleton 51 * @author Sebastian Bergmann <sebastian@phpunit.de> 52 * @copyright 2002-2010 Sebastian Bergmann <sebastian@phpunit.de> 53 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 57 */ 58class PHPUnit_Util_Skeleton_Class extends PHPUnit_Util_Skeleton 59{File.php https://bitbucket.org/Maron1/taqman.git | PHP | 152 lines
1<?php 2 39 { 40 if ($checkPath && !is_file($path)) { 41 throw new FileNotFoundException($path); 84 * 85 * \SplFileInfo::getExtension() is not available before PHP 5.3.6 86 *FileWriter.php https://gitlab.com/campus-academy/krowkaramel | PHP | 341 lines
1<?php 2/** 317 // Deny list of executable file extensions, noting that specific actions may limit this further. 318 // Note that this ignores the base file name, so "php.pot" would be permitted, but "foo.php.pot" would not. 319 $exts = array_slice( explode('.', $this->file->basename() ), 1 ); 319 $exts = array_slice( explode('.', $this->file->basename() ), 1 ); 320 if( preg_grep('/^php\\d*/i', $exts ) ){ 321 throw new Loco_error_WriteException('Executable file extension disallowed .'.implode('.',$exts) ); 332 // WordPress >= 4.8 333 if( function_exists('wp_is_file_mod_allowed') ){ 334 $context = apply_filters( 'loco_file_mod_allowed_context', 'download_language_pack', $this->file ); 334 $context = apply_filters( 'loco_file_mod_allowed_context', 'download_language_pack', $this->file ); 335 return ! wp_is_file_mod_allowed( $context ); 336 }admin-import.php https://gitlab.com/futuredrive630/wp-event-list | PHP | 305 lines
1<?php 2if(!defined('WPINC')) { 5 6require_once(EL_PATH.'includes/options.php'); 7require_once(EL_PATH.'admin/includes/admin-functions.php'); 7require_once(EL_PATH.'admin/includes/admin-functions.php'); 8require_once(EL_PATH.'includes/db.php'); 9require_once(EL_PATH.'includes/categories.php'); 78 // check for file existence (upload failed?) 79 if(!is_file($file)) { 80 echo '<h3>'.__('Sorry, there has been an error.','event-list').'</h3>';Image.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 254 lines
1<?php 2/** 235 $new_path_parts = pathinfo($new_path); 236 if (!is_dir($new_path_parts['dirname']) && !is_file($new_path_parts['dirname'])) { 237 $origmask = @umask(0);FileManagedUnitTestBase.php https://gitlab.com/reasonat/test8 | PHP | 213 lines
1<?php 2 208 file_put_contents($filepath, $contents); 209 $this->assertTrue(is_file($filepath), t('The test file exists on the disk.'), 'Create test file'); 210 return $filepath;TestOfBackupMySQLDAO.php https://github.com/devsatish/ThinkUp.git | PHP | 157 lines
1<?php 2/** 3 * 4 * ThinkUp/tests/TestOfBackupMySQLDAO.php 5 * 27 */ 28require_once dirname(__FILE__).'/init.tests.php'; 29require_once THINKUP_ROOT_PATH.'webapp/_lib/extlib/simpletest/autorun.php'; 29require_once THINKUP_ROOT_PATH.'webapp/_lib/extlib/simpletest/autorun.php'; 30require_once THINKUP_ROOT_PATH.'webapp/config.inc.php'; 31 141 public function recursiveDelete($str){ 142 if (is_file($str)){ 143 if (! preg_match("MAKETHISDIRWRITABLE", $str)) {Download.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 307 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 167 $this->_handle = new Varien_Io_File(); 168 if (!is_file($this->_resourceFile)) { 169 Mage::helper('core/file_storage_database')->saveFileToFilesystem($this->_resourceFile);banner.php https://gitlab.com/dadangnh/sb1-bon | PHP | 430 lines
1<?php 2class ControllerDesignBanner extends Controller { 373 foreach ($value as $banner_image) { 374 if (is_file(DIR_IMAGE . $banner_image['image'])) { 375 $image = $banner_image['image'];CacheHelper.php https://github.com/suzuki/candycane.git | PHP | 321 lines
1<?php 2/** 4 * 5 * PHP 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package Cake.View.Helper 15 * @package Cake.View.Helper 16 * @since CakePHP(tm) v 1.0.0.2277 17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 28 * @package Cake.View.Helper 29 * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/cache.html 30 */xpdofilevehicle.class.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 235 lines
1<?php 2/* 88 $copied = $cacheManager->copyTree($fileSource, $fileTarget, array_merge($vOptions, array('copy_return_file_stat' => true))); 89 } elseif (is_file($fileSource)) { 90 $copied = $cacheManager->copyFile($fileSource, $fileTarget, array_merge($vOptions, array('copy_return_file_stat' => true))); 145 $uninstalled = true; 146 } elseif (is_file($path) && unlink($path)) { 147 $uninstalled = true; 217 } 218 elseif (is_file($fileSource)) { 219 $copied = $cacheManager->copyFile($fileSource, $fileTarget . $fileName);class-wp-image-editor-gd.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 459 lines
1<?php 2/** 85 86 if ( ! is_file( $this->file ) && ! preg_match( '|^https?://|', $this->file ) ) 87 return new WP_Error( 'error_loading_image', __('File doesn’t exist?'), $this->file ); 297 * Rotates current image counter-clockwise by $angle. 298 * Ported from image-edit.php 299 *DefaultFileLocator.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 173 lines
1<?php 2/* 114 foreach ($this->paths as $path) { 115 if (is_file($path . DIRECTORY_SEPARATOR . $fileName)) { 116 return $path . DIRECTORY_SEPARATOR . $fileName; 165 foreach ((array) $this->paths as $path) { 166 if (is_file($path . DIRECTORY_SEPARATOR . $fileName)) { 167 return true;class.datasource.php https://github.com/creativedutchmen/symphony-3.git | PHP | 367 lines
1<?php 2 10 public function accept(){ 11 if($this->isDir() == false && preg_match('/^.+\.php$/i', $this->getFilename())){ 12 return true; 91 public static function getHandleFromFilename($filename){ 92 return basename($filename, ".php"); 93 } 133 134 if(is_file(DATASOURCES . "/{$name}.php")) return DATASOURCES; 135 else{ 140 141 if(is_file(EXTENSIONS . "/{$handle}/data-sources/{$name}.php")) return EXTENSIONS . "/{$handle}/data-sources"; 142 } 148 foreach($extensions as $e){ 149 if(is_file(EXTENSIONS . "/{$e}/data-sources/{$name}.php")) return EXTENSIONS . "/{$e}/data-sources"; 150 }Helper.php https://github.com/soitun/minify.git | PHP | 250 lines
1<?php 2/** 123 } 124 if (is_file($this->groupsConfigFile)) { 125 $gc = (require $this->groupsConfigFile); 174 if ($cached === null) { 175 $cached = (require __DIR__ . '/../../../bootstrap.php'); 176 }edit.php https://github.com/Asherontas/Active-CMS.git | PHP | 297 lines
1<?php 2 11 12 if(is_file($_FILES['user_avatar']['tmp_name'])) { 13 142 <tr> 143 <td width="20%"><?php echo __('Nom / Prénom'); ?></td> 144 <td width="80%"> 144 <td width="80%"> 145 <?php 146 echo $form->form_input(array('name' => 'user_first_name', 161 <tr> 162 <td width="152"><?php echo __('Nom d\'utilisateur'); ?></td> 163 <td width="480"> 163 <td width="480"> 164 <?php 165link-manager.php https://github.com/mikitracey/ifusa.git | PHP | 278 lines
74<?php screen_icon(); ?> 75<h2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="button add-new-h2"><?php esc_html_e('Add New'); ?></a> <?php 76if ( isset($_GET['s']) && $_GET['s'] ) 181 $edit_link = get_edit_bookmark_link(); 182 ?><tr id="link-<?php echo $link->link_id; ?>" valign="middle" <?php echo $style; ?>><?php 183 foreach($link_columns as $column_name=>$column_display_name) { 231 case 'rel': 232 ?><td <?php echo $attributes ?>><?php echo empty($link->link_rel) ? '<br />' : $link->link_rel; ?></td><?php 233 break; 234 case 'visible': 235 ?><td <?php echo $attributes ?>><?php echo $visible; ?></td><?php 236 break; 237 case 'rating': 238 ?><td <?php echo $attributes ?>><?php echo $rating; ?></td><?php 239 break;ssl.inc.php https://github.com/axxtel/agilebill.git | PHP | 186 lines
1<?php 2 23{ 24 include_once('../../config.inc.php'); 25 $test = new CORE_ssl; 34 35 if ( defined("PATH_CURL") && is_file(PATH_CURL) ) 36 $this->connect_curl_binary = true; 38 if ( function_exists('curl_init') && $curl_version = curl_version()) { 39 if ( phpversion() >= 5 ) { 40 if (preg_match('/openssl/i', @$curl_version['ssl_version'] )) 47 48 if (phpversion() >= '4.3.0') 49 if (function_exists("fsockopen") ) 60 } elseif ( @$this->connect_curl_module ) { 61 echo 'Using Curl PHP Module: '; 62 echo $this->connect('www.amazon.com', '', '', true, 1);public.php https://github.com/Truemedia/DFusion.git | PHP | 356 lines
17 */ 18class JFusionPublic_phpbb3 extends JFusionPublic{ 19 21 { 22 return 'phpbb3'; 23 } 93 if (!$jfile) { 94 //use the default index.php 95 $jfile = 'index.php'; 99 if ($jfile == 'adm/index.php') { 100 $url ="Location: " . $params->get('source_url') . 'adm/index.php?' . $_SERVER['QUERY_STRING'] ; 101 header($url); 126 /* set scope for variables required later */ 127 global $phpbb_root_path, $phpEx, $db, $config, $user, $auth, $cache, $template, $phpbb_hook, $module, $mode; 128