100+ results results for 'php is_file' (2549 ms)
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.manifest.php https://gitlab.com/gregtyka/WordPress-stable | 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), 91mkdist.php https://gitlab.com/0072016/appengine-php | 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 */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" ); 213PhpTransliteration.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 *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) {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',SCP.php https://gitlab.com/hoanghung.dev/phunuvadoisong.net | 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 *Curl.php https://gitlab.com/vincent.perdereau/picandparts | 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 */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 ); 141MimeType.php https://gitlab.com/vincent.perdereau/picandparts | 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) {schema.php https://github.com/jobzesage/Adres.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://gitlab.com/Gashler/dp | 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';index.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();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){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 {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',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;Filesystem.php https://gitlab.com/techniconline/kmc | PHP | 426 lines
1<?php namespace Illuminate\Filesystem; 2 251 { 252 return is_file($file); 253 }Common.php https://bitbucket.org/adifaisalr/popmaya.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*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{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 ); 22link-manager.php https://gitlab.com/endomorphosis/reservationtelco | 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;ssp.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){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 *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/RikaPM/manik | 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 }Image.php https://github.com/error10/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);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'; 169installer.php https://gitlab.com/ppapadatis/Videolearn | 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);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> 75class-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 MashineFileWriter.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>';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;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'];Test.php https://github.com/predominant/framework-benchs.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{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 }link-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;index.php https://github.com/severnaya99/Sg-2010.git | PHP | 285 lines
2 3 include('../../../mainfile.php'); 4 include('../../../include/cp_functions.php'); 5 include('../include/functions.php'); 6 include('../include/forms.php'); 7 7 8 if( is_file(XOOPS_ROOT_PATH."/modules/genobio/language/".$GLOBALS['xoopsConfig']['language']."/admin.php") ){ 9 include_once XOOPS_ROOT_PATH."/modules/genobio/language/".$GLOBALS['xoopsConfig']['language']."/admin.php"; 97 else 98 redirect_header('index.php', 3, 'Sibblings Item Delete Unsuccessfully'); 99 break; 123 } 124 redirect_header('index.php', 3, 'Sibblings Item Updated Successfully'); 125 } elseMoveFiles.php https://gitlab.com/shinvdu/ad | PHP | 278 lines
1<?php 2/* 23 */ 24require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php"; 25 158 // check #8 (invalid file name) 159 if (!file_exists($sourceFilePath) || !is_file($sourceFilePath)) { 160 $errorCode = CKFINDER_CONNECTOR_ERROR_FILE_NOT_FOUND;DefaultFileLocator.php https://gitlab.com/adrianjose605/SaintW | 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;functions_styles.php https://gitlab.com/bulwye/reliquerunt | PHP | 324 lines
1<?php 2/*************************************************************************** 2/*************************************************************************** 3 * Module : PNphpBB2 (The forum for Postnuke) 4 * Filename : functions_styles.php 6 * Original file by : Carl Slaughter 7 * Copyright : (C) 2003 The PNphpBB Group 8 * Contact : support@pnphpbb.com 8 * Contact : support@pnphpbb.com 9 * : http://www.pnphpbb.com 10 * 10 * 11 * $Id: functions_styles.php,v 1.6 2004/10/18 19:47:28 carls Exp $ 12 * 23 24if ( !defined('IN_PHPBB') ) 25{html_helper.php https://gitlab.com/ricoru21/py_incidencia | PHP | 436 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 * 265 { 266 if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/doctypes.php')) 267 { 267 { 268 include(APPPATH.'config/'.ENVIRONMENT.'/doctypes.php'); 269 } 269 } 270 elseif (is_file(APPPATH.'config/doctypes.php')) 271 { 271 { 272 include(APPPATH.'config/doctypes.php'); 273 }file.php https://github.com/boluak/lifefm-github.git | PHP | 379 lines
1<?php 2/** 2/** 3 * @version $Id: file.php 10707 2008-08-21 09:52:47Z eddieajau $ 4 * @package Joomla.Framework 6 * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 304 * 305 * @param string $src The name of the php (temporary) uploaded file 306 * @param string $dest The path (including filename) to move the uploaded file to 364 { 365 return is_file(JPath::clean($file)); 366 }ImageCacheController.php https://gitlab.com/susmitha.plts/photographer_portfolio | PHP | 159 lines
1<?php 2 130 $image_path = $path.'/'.str_replace('..', '', $filename); 131 if (file_exists($image_path) && is_file($image_path)) { 132 // file foundwrite.real.php https://gitlab.com/x33n/ampache | PHP | 274 lines
1<?php 2///////////////////////////////////////////////////////////////// 10// // 11// write.real.php // 12// module for writing RealAudio/RealVideo tags // 12// module for writing RealAudio/RealVideo tags // 13// dependencies: module.tag.real.php // 14// /// 31 // File MUST be writeable - CHMOD(646) at least 32 if (is_writeable($this->filename) && is_file($this->filename) && ($fp_source = fopen($this->filename, 'r+b'))) { 33 96 if ($tempfilename = tempnam(GETID3_TEMP_DIR, 'getID3')) { 97 if (is_writable($tempfilename) && is_file($tempfilename) && ($fp_temp = fopen($tempfilename, 'wb'))) { 98 215 // File MUST be writeable - CHMOD(646) at least 216 if (is_writeable($this->filename) && is_file($this->filename) && ($fp_source = fopen($this->filename, 'r+b'))) { 217class-ai1wm-import-controller.php https://gitlab.com/vanafroo/landingpage | PHP | 125 lines
1<?php 2/** 89 // Log request 90 if ( empty( $params['priority'] ) || is_file( ai1wm_import_path( $params ) ) ) { 91 Ai1wm_Log::import( $params ); 95 if ( $completed === false || ( $next = next( $filters ) ) && ( $params['priority'] = key( $filters ) ) ) { 96 return Ai1wm_Http::get( admin_url( 'admin-ajax.php?action=ai1wm_import' ), $params ); 97 }File.php https://bitbucket.org/jaequery/furiken.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 *PHPWebdriverTest.php http://php-webdriver-bindings.googlecode.com/svn/trunk/ | PHP | 282 lines
1<?php 2 2 3if(is_file('../definedVars.php')) require_once '../definedVars.php'; 4require_once 'phpwebdriver/WebDriver.php'; 11 */ 12class PHPWebDriverTest extends PHPUnit_Framework_TestCase { 13file.php https://bitbucket.org/alvinpd/monsterninja.git | PHP | 186 lines
1<?php defined('SYSPATH') or die('No direct access allowed.'); 2/** 8 * @copyright (c) 2007-2009 Kohana Team 9 * @license http://kohanaphp.com/license 10 */ 14 * Attempt to get the mime type from a file. This method is horribly 15 * unreliable, due to PHP being horribly unreliable when it comes to 16 * determining the mime type of a file. 70 * 71 * @param string extension: php, pdf, txt, etc 72 * @return string mime type on success 159 160 while (is_file($piece = $filename.'.'.str_pad($pieces + 1, 3, '0', STR_PAD_LEFT))) 161 {RawCodeCoverageData.php https://gitlab.com/jjpa2018/dashboard | PHP | 227 lines
1<?php declare(strict_types=1); 2/* 2/* 3 * This file is part of phpunit/php-code-coverage. 4 * 4 * 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 6 * 24/** 25 * @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage 26 */ 192 /** 193 * At the end of a file, the PHP interpreter always sees an implicit return. Where this occurs in a file that has 194 * e.g. a class definition, that line cannot be invoked from a test and results in confusing coverage. This engine 197 * 198 * @see https://github.com/sebastianbergmann/php-code-coverage/issues/799 199 */css_optimiser.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 506 lines
1<?php 2header('Content-Type:text/html; charset=utf-8'); 2header('Content-Type:text/html; charset=utf-8'); 3require ('class.csstidy.php'); 4require ('lang.inc.php'); 18 // Simple delete for a file 19 if (is_file($dirname) && (time() - fileatime($dirname)) > 3600) 20 { 119<title> 120 <?php 121 echo $lang[$l][0]; 146<h1 style="display: inline"> 147 <?php 148 echo $lang[$l][1]; 150 </h1> 151 <?php 152 echo $lang[$l][2];helper_file.php https://gitlab.com/ptisky/API_prestashop | PHP | 237 lines
1<?php 2/** 84 'pdf' => 'application/pdf', 85 'php' => 'application/x-httpd-php', 86 'php3' => 'application/x-httpd-php', 86 'php3' => 'application/x-httpd-php', 87 'php4' => 'application/x-httpd-php', 88 'phps' => 'application/x-httpd-php-source', 88 'phps' => 'application/x-httpd-php-source', 89 'phtml' => 'application/x-httpd-php', 90 'png' => 'image/png', 126 127/** Checks if the given file is really writable. The standard PHP function 128 * is_writable() does not work properly on Windows servers. 133 $filename = path::normalize($filename); 134 if (!is_file($filename) || (false === ($fp = @fopen($filename, 'a+')))) 135 return false;class-path-processor.php https://gitlab.com/campus-academy/krowkaramel | PHP | 186 lines
76 77 // phpcs:disable WordPress.PHP.NoSilencedErrors.Discouraged 78 $directory = @is_file( $file ) ? dirname( $file ) : $file; 78 $directory = @is_file( $file ) ? dirname( $file ) : $file; 79 if ( ! @is_file( $directory . '/vendor/composer/jetpack_autoload_classmap.php' ) ) { 80 return false; 81 } 82 // phpcs:enable WordPress.PHP.NoSilencedErrors.Discouraged 83 153 $normalized_check = wp_normalize_path( trailingslashit( $directory ) ) . $normalized_path; 154 // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged 155 if ( @is_file( $normalized_check ) ) { 171 // We want to resolve symbolic links for consistency with __DIR__ paths. 172 // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged 173 $real_path = @realpath( $path );plugin.php https://gitlab.com/endomorphosis/falkenstein | PHP | 248 lines
1<?php 2/* 19 */ 20require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php"; 21 82 83 if (!file_exists($filePath) || !is_file($filePath)) { 84 $this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_FILE_NOT_FOUND); 121 122 require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/Thumbnail.php"; 123 214 215 if (!file_exists($filePath) || !is_file($filePath)) { 216 $this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_FILE_NOT_FOUND);download_helper.php https://gitlab.com/nicolerey/PPLI-payroll | PHP | 167 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 71 { 72 if (@is_file($filename) && ($filesize = @filesize($filename)) !== FALSE) 73 {Generator.php https://gitlab.com/febfeb/pelatihan-git | PHP | 422 lines
1<?php 2/** 131 { 132 return ['model.php', 'model-extended.php']; 133 } 168 $files[] = new CodeFile( 169 Yii::getAlias('@' . str_replace('\\', '/', $this->ns)) . '/base/' . $className . $this->baseClassSuffix . '.php', 170 $this->render('model.php', $params) 172 173 $modelClassFile = Yii::getAlias('@' . str_replace('\\', '/', $this->ns)) . '/' . $className . '.php'; 174 if ($this->generateModelClass || !is_file($modelClassFile)) { 176 $modelClassFile, 177 $this->render('model-extended.php', $params) 178 ); 181 if ($queryClassName) { 182 $queryClassFile = Yii::getAlias('@' . str_replace('\\', '/', $this->queryNs)) . '/' . $queryClassName . '.php'; 183 if ($this->generateModelClass || !is_file($queryClassFile)) {Stream.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 379 lines
2/** 3 * php-token-stream 4 * 39 * @copyright 2009-2010 Sebastian Bergmann <sb@sebastian-bergmann.de> 40 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 41 * @since File available since Release 1.0.0 43 44require_once ( PHPU_BASE_PATH . '/PHP/Token.php' ); 45 74 '+' => 'PHP_Token_PLUS', 75 '-' => 'PHP_Token_MINUS', 76 '*' => 'PHP_Token_MULT', 271 272 case 'PHP_Token_CLOSE_CURLY': { 273 if ($classEndLine !== FALSE &&image.php https://github.com/patadejaguar/S.A.F.E.-Open-Source-Microfinance-Suite.git | PHP | 616 lines
1<?php 2 412 foreach ($fw->split($path?:$fw->UI.';./') as $dir) 413 if (is_file($path=$dir.$font)) { 414 $seed=strtoupper(substr( 480 $format=$args?array_shift($args):'png'; 481 if (PHP_SAPI!='cli') { 482 header('Content-Type: image/'.$format); 537 $fw=Base::instance(); 538 if ($this->flag && is_file($file=($path=$fw->TEMP. 539 $fw->SEED.'.'.$fw->hash($this->file).'-').$state.'.png')) { 593 foreach ($fw->split($path,FALSE) as $dir) 594 if (is_file($dir.$file)) 595 return $this->load($fw->read($dir.$file));Email.php https://github.com/michaelmcandrew/vaw.git | PHP | 402 lines
3/** 4 * PHPIDS 5 * 7 * 8 * Copyright (c) 2008 PHPIDS group (http://php-ids.org) 9 * 25 * @category Security 26 * @package PHPIDS 27 * @author Mario Heiderich <mario.heiderich@gmail.com> 33 34require_once 'IDS/Log/Interface.php'; 35 42 * @category Security 43 * @package PHPIDS 44 * @author Christian Matthies <ch0012@gmail.com>settings_model.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 294 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 148 { 149 $file_path = set_realpath($path.$dir).'admin_lang.php'; 150 150 151 if (is_file($file_path)) 152 $lang_dirs[] = $dir;Openssl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 469 lines
1<?php 2/** 116 foreach ($keys as $type => $key) { 117 if (is_file($key) and is_readable($key)) { 118 $file = fopen($key, 'r');xpdofilevehicle.class.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | 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://gitlab.com/haque.mdmanzurul/barongbarong | 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 *Create.php https://gitlab.com/alexandresgv/siteentec | PHP | 242 lines
1<?php 2/** 57 '%sCreates a new database migration%s', 58 PHP_EOL, 59 PHP_EOL 128 129 if (is_file($filePath)) { 130 throw new \InvalidArgumentException(sprintf( 151 // Verify the alternative template file's existence. 152 if ($altTemplate && !is_file($altTemplate)) { 153 throw new \InvalidArgumentException(sprintf(logout.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 204 lines
1<?php 2 6 7require_once("../../config.php"); 8 8 9require_once($CFG->dirroot."/auth/shibboleth/auth.php"); 10 25// Front channel logout. 26$inputstream = file_get_contents("php://input"); 27if ($action == 'logout' && !empty($redirect)) { 40 // Set SOAP header. 41 $server = new SoapServer($protocol.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'/LogoutNotification.wsdl'); 42 $server->addFunction("LogoutNotification"); 113 <port name="LogoutNotificationPort" binding="notify:LogoutNotificationBinding"> 114 <soap:address location="{$protocol}{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}"/> 115 </port>Filesystem.php https://gitlab.com/kimting254/wbms | PHP | 441 lines
1<?php namespace Illuminate\Filesystem; 2 256 { 257 return is_file($file); 258 }Image.php https://bitbucket.org/acidel/buykoala.git | PHP | 294 lines
1<?php 2/** 106 { 107 return is_file($this->getBaseImagePath() . $image); 108 } 191 192 if ($this->_forceRecreate || !is_file($cachedFilename)) { 193 $this->_imageObject->resize($width, $height);Dumper.php https://gitlab.com/vanafroo/landingpage | PHP | 353 lines
1<?php 2 53 { 54 if (PHP_SAPI !== 'cli' && !preg_match('#^Content-Type: (?!text/html)#im', implode("\n", headers_list()))) { 55 echo self::toHtml($var, $options); 310 { 311 foreach (debug_backtrace(PHP_VERSION_ID >= 50306 ? DEBUG_BACKTRACE_IGNORE_ARGS : FALSE) as $item) { 312 if (isset($item['class']) && $item['class'] === __CLASS__) { 329 330 if (isset($location['file'], $location['line']) && is_file($location['file'])) { 331 $lines = file($location['file']);zip.class.php https://github.com/bluelovers/phpwind.git | PHP | 303 lines
1<?php 2!function_exists('readover') && exit('Forbidden'); 80 $file = Pcv($file); 81 if (!$file || !is_file($file)) return false; 82 $filesize = sprintf('%u', filesize($file)); 212 /** 213 * 检查PHP zlib扩展有没有载入 214 * @return boolBlock.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 127 lines
1<?php 2 63 64 if(!is_file($tile_path)) return ''; 65index.php https://github.com/yinhm/sugarcrm.git | PHP | 284 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 40 41require_once('include/MySugar/MySugar.php'); 42 43// build dashlet cache file if not found 44if(!is_file($GLOBALS['sugar_config']['cache_dir'].'dashlets/dashlets.php')) { 45 require_once('include/Dashlets/DashletCacheBuilder.php'); 49} 50require_once($GLOBALS['sugar_config']['cache_dir'].'dashlets/dashlets.php'); 51 51 52require('modules/Home/dashlets.php'); 53 216 // only display dashlets that are from visibile modules and that the user has permission to list 217 if(!empty($id) && isset($dashlets[$id]) && is_file($dashlets[$id]['fileLocation'])) { 218 $module = 'Home';View.php https://gitlab.com/fabian.morales/marlon_becerra | PHP | 282 lines
1<?php 2/** 2/** 3 * Slim - a micro PHP 5 framework 4 * 270 $templatePathname = $this->getTemplatePathname($template); 271 if (!is_file($templatePathname)) { 272 throw new \RuntimeException("View cannot render `$template` because the template does not exist");ActiveFixture.php https://gitlab.com/isdzulqor/Slis-Dev | PHP | 145 lines
1<?php 2/** 41 * @var string|boolean the file path or path alias of the data file that contains the fixture data 42 * to be returned by [[getData()]]. If this is not set, it will default to `FixturePath/data/TableName.php`, 43 * where `FixturePath` stands for the directory containing this fixture class, and `TableName` stands for the 98 $class = new \ReflectionClass($this); 99 $dataFile = dirname($class->getFileName()) . '/data/' . $this->getTableSchema()->fullName . '.php'; 100 100 101 return is_file($dataFile) ? require($dataFile) : []; 102 } else {loader.php https://gitlab.com/ppapadatis/Videolearn | PHP | 367 lines
1<?php 2/** 74 75 // Only load for php files. 76 // Note: DirectoryIterator::getExtension only available PHP >= 5.3.6 76 // Note: DirectoryIterator::getExtension only available PHP >= 5.3.6 77 if ($file->isFile() && substr($fileName, strrpos($fileName, '.') + 1) == 'php') 78 { 79 // Get the class name and full path for each file. 80 $class = strtolower($classPrefix . preg_replace('#\.php$#', '', $fileName)); 81 147 // Only register the class for autoloading if the file exists. 148 if (is_file($base . '/' . $path . '.php')) 149 { 160 // If the file exists attempt to include it. 161 if (is_file($base . '/' . $path . '.php')) 162 {install.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 229 lines
1<?php 2/** 2/** 3 * @version $Id: install.php 115 2009-06-23 11:31:41Z happynoodleboy $ 4 * @package JCE Admin Component 27 // Remove legacy file 28 if (file_exists($path.DS.'admin.jce.php')) { 29 @JFile::delete($path.DS.'admin.jce.php'); 31 // Load updater class 32 require_once ($path.DS.'updater.php'); 33 64 if (! empty($editor)) { 65 if (is_file($editor[0])) { 66 $config = & JFactory::getConfig(); 131 if (! empty($plugins)) { 132 require_once ($path.DS.'installer'.DS.'installer.php'); 133 $jce_installer = & JCEInstaller::getInstance();update_code_manager_test.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 195 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28global $CFG; 29require_once(__DIR__.'/fixtures/testable_update_code_manager.php'); 30 84 $this->assertSame(true, $files['invalid-root/lang/en/']); 85 $this->assertSame(true, $files['invalid-root/lang/en/fixed_root.php']); 86 foreach ($files as $file => $status) { 89 } else { 90 $this->assertTrue(is_file($targetdir.'/'.$file)); 91 } 100 $this->assertSame(true, $files['fixed_root/lang/en/']); 101 $this->assertSame(true, $files['fixed_root/lang/en/fixed_root.php']); 102 foreach ($files as $file => $status) { 145 $this->assertEquals($files['foobar/'], $fixtures.'/foobar'); 146 $this->assertEquals($files['foobar/lang/en/local_foobar.php'], $fixtures.'/foobar/lang/en/local_foobar.php'); 147 }Image.php https://github.com/plusjade/plusjade.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);smarty_internal_resource_file.php https://gitlab.com/team_fsn/fsn-php | PHP | 179 lines
1<?php 2/** 34 $file = $source->smarty->_realpath($file, true); 35 return is_file($file) ? $file : false; 36 } 49 // files relative to a template only get one shot 50 return is_file($path) ? $path : false; 51 } 92 $path = $_directory . $file; 93 if (is_file($path)) { 94 return (strpos($path, '.' . DS) !== false) ? $source->smarty->_realpath($path) : $path; 99 $path = $source->smarty->_realpath($file, true); 100 if (is_file($path)) { 101 return $path; 143 if (!$source->exists) { 144 $source->timestamp = $source->exists = is_file($source->filepath); 145 }About.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 100 lines
54 <?php echo $mod_strings['LBL_VERSION']." ".$suitecrm_version; 55 if( is_file( "custom_version.php" ) ){ 56 include( "custom_version.php" ); 72 <li><?php echo $mod_strings['LBL_ABOUT_SUITE_3']; ?></li> 73 <li><?php echo $mod_strings['LBL_ABOUT_SUITE_4']; ?></li> 74 <li><?php echo $mod_strings['LBL_ABOUT_SUITE_5']; ?></li> 78 <br> 79 <h3><?php echo $mod_strings['LBL_CONTRIBUTORS']; ?></h3> 80 <ul id="about_menu"> 87 <li><?php echo $mod_strings['LBL_LANGUAGE_RUSSIAN']; ?> (<a href="mailto:likhobory@mail.ru" target="_blank">likhobory@mail.ru</a>)</li> 88 <li><?php echo $mod_strings['LBL_SOURCE_SUGAR']; ?> (<a href="index.php?module=Home&action=AboutSugar"><?php echo $mod_strings['LBL_ABOUT']; ?></a>)</li> 89 </ul> 94 <ul id="about_menu"> 95 <li><?php echo $mod_strings['LBL_SUITE_PARTNERS']; ?> (<a href="http://suitecrm.com/index.php/suitecrm-partners">http://suitecrm.com</a>)</li> 96 </ul>MaildirWritableTest.php https://github.com/bhaumik25/zend-framework.git | PHP | 418 lines
1<?php 2 12 */ 13require_once 'Zend/Mail/Storage/Writable/Maildir.php'; 14 15/** 16 * PHPUnit test case 17 */ 17 */ 18require_once 'PHPUnit/Framework/TestCase.php'; 19 25 */ 26class Zend_Mail_MaildirWritableTest extends PHPUnit_Framework_TestCase 27{ 78 $entry = $dir . '/' . $subdir . '/' . $entry; 79 if (!is_file($this->_originalDir . $entry)) { 80 continue;voucher.php https://gitlab.com/reclamare/mao | PHP | 213 lines
1<?php 2class ModelSaleVoucher extends Model { 108 109 if ($voucher_theme_info && is_file(DIR_IMAGE . $voucher_theme_info['image'])) { 110 $data['image'] = HTTP_CATALOG . 'image/' . $voucher_theme_info['image']; 152 153 if ($voucher_theme_info && is_file(DIR_IMAGE . $voucher_theme_info['image'])) { 154 $data['image'] = HTTP_CATALOG . 'image/' . $voucher_theme_info['image'];Jail.php https://gitlab.com/wuhang2003/core | PHP | 489 lines
92 /** 93 * see http://php.net/manual/en/function.is_dir.php 94 * 102 /** 103 * see http://php.net/manual/en/function.is_file.php 104 * 133 /** 134 * see http://php.net/manual/en/function.filesize.php 135 * The result for filesize when called on a folder is required to be 0 205 /** 206 * see http://php.net/manual/en/function.file_exists.php 207 * 256 /** 257 * see http://php.net/manual/en/function.rename.php 258 *admin.php https://github.com/BlendedByChris/pyrocms.git | PHP | 226 lines
1<?php 2/** 24 // Check the referrer 25 parse_url($this->input->server('HTTP_REFERER'), PHP_URL_HOST) == parse_url(BASE_URL, PHP_URL_HOST) or show_error('Invalid Referrer'); 26 76 $this->load->library('unzip'); 77 $this->unzip->allow(array('xml', 'html', 'css', 'js', 'png', 'gif', 'jpeg', 'jpg', 'swf', 'ico', 'php')); 78 209 { 210 if(is_file($str)) 211 {FireLogger.php https://gitlab.com/paveltizek/shop | PHP | 178 lines
1<?php 2 41 $item = array( 42 'name' => 'PHP', 43 'level' => $priority, 79 foreach ($trace as $frame) { 80 if (isset($frame['file']) && is_file($frame['file'])) { 81 $item['pathname'] = $frame['file'];