100+ results results for 'php is_readable' (323 ms)
1<?php 2/** 242 * Returns TRUE if the $filename is readable, or FALSE otherwise. 243 * This function uses the PHP include_path, where PHP's is_readable() 244 * does not.infinite-scroll.php https://gitlab.com/ibnukipa/cakra | PHP | 257 lines
1<?php 2/** 74 public function module_configuration_load() { 75 wp_safe_redirect( admin_url( 'options-reading.php#infinite-scroll-options' ) ); 76 exit; 126 127 /** This filter is already documented in modules/infinite-scroll/infinity.php */ 128 $customization_file = apply_filters( 'infinite_scroll_customization_file', dirname( __FILE__ ) . "/infinite-scroll/themes/{$theme['Stylesheet']}.php", $theme['Stylesheet'] ); 129 130 if ( is_readable( $customization_file ) ) { 131 require_once( $customization_file ); 133 elseif ( ! empty( $theme['Template'] ) ) { 134 $customization_file = dirname( __FILE__ ) . "/infinite-scroll/themes/{$theme['Template']}.php"; 135 135 136 if ( is_readable( $customization_file ) ) 137 require_once( $customization_file );file_helper.php https://bitbucket.org/prasoon2211/schooldayz.git | PHP | 479 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 * 240 241 // foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast 242 while (FALSE !== ($file = readdir($fp))) 310 case 'readable': 311 $fileinfo['readable'] = is_readable($file); 312 break; 334 * 335 * Translates a file extension into a mime type based on config/mimes.php. 336 * Returns FALSE if it can't determine the type, or open the mime config file 354 { 355 if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes.php')) 356 {file_helper.php https://github.com/viruskimera/Agencia.git | PHP | 479 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 * 240 241 // foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast 242 while (FALSE !== ($file = readdir($fp))) 310 case 'readable': 311 $fileinfo['readable'] = is_readable($file); 312 break; 334 * 335 * Translates a file extension into a mime type based on config/mimes.php. 336 * Returns FALSE if it can't determine the type, or open the mime config file 477 478/* End of file file_helper.php */ 479/* Location: ./system/helpers/file_helper.php */transformation.php https://github.com/Yannix/zetacomponents.git | PHP | 417 lines
1<?php 2/** 219 } 220 if ( !is_readable( $fileIn ) ) 221 {Settings.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 332 lines
1<?php 2/** 2/** 3 * PHPExcel 4 * 22 * @package PHPExcel_Settings 23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../'); 34 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 35} 112 * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management 113 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive 114 * @return boolean Success or failure 131 * for Zip file management 132 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive 133 */weeConfigFile.class.php https://github.com/extend/wee.git | PHP | 322 lines
1<?php 2 76 77 if ($bCacheEnabled && is_readable($sCacheFilename)) 78 return require($sCacheFilename); 93 if ($bCacheEnabled && is_writable(dirname($sCacheFilename))) { 94 file_put_contents($sCacheFilename, '<?php return ' . var_export($aConfig, true) . ';'); 95 chmod($sCacheFilename, 0600); 133 static $aFunc = array( 134 'os' => 'php_uname("s") == ":1"', 135 'host' => 'php_uname("n") == ":1"', 135 'host' => 'php_uname("n") == ":1"', 136 'phpver' => 'phpversion() == ":1"', 137 'extver' => 'phpversion(":1") == ":2"', 156 * host: Hostname, like localhost.example.com. 157 * phpver: PHP version. 158 * extver: PHP extension version. Needs one parameter: the extension's name.CaBundle.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 291 lines
195 // Vulnerable: 196 // PHP 5.3.0 - PHP 5.3.27 197 // PHP 5.4.0 - PHP 5.4.22 199 if ( 200 (PHP_VERSION_ID < 50400 && PHP_VERSION_ID >= 50328) 201 || (PHP_VERSION_ID < 50500 && PHP_VERSION_ID >= 50423) 201 || (PHP_VERSION_ID < 50500 && PHP_VERSION_ID >= 50423) 202 || (PHP_VERSION_ID < 50600 && PHP_VERSION_ID >= 50507) 203 ) { 244 // Based on testcase in https://github.com/php/php-src/commit/c1224573c773b6845e83505f717fbf820fc18415 245 // changes in https://github.com/php/php-src/commit/76a7fd893b7d6101300cc656058704a73254d593 246 $cert = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVwRENDQTR5Z0F3SUJBZ0lKQUp6dThyNnU2ZUJjTUEwR0NTcUdTSWIzRFFFQkJRVUFNSUhETVFzd0NRWUQKVlFRR0V3SkVSVEVjTUJvR0ExVUVDQXdUVG05eVpISm9aV2x1TFZkbGMzUm1ZV3hsYmpFUU1BNEdBMVVFQnd3SApTOE9Ed3Jac2JqRVVNQklHQTFVRUNnd0xVMlZyZEdsdmJrVnBibk14SHpBZEJnTlZCQXNNRmsxaGJHbGphVzkxCmN5QkRaWEowSUZObFkzUnBiMjR4SVRBZkJnTlZCQU1NR0cxaGJHbGphVzkxY3k1elpXdDBhVzl1WldsdWN5NWsKWlRFcU1DZ0dDU3FHU0liM0RRRUpBUlliYzNSbFptRnVMbVZ6YzJWeVFITmxhM1JwYjI1bGFXNXpMbVJsTUhVWQpaREU1TnpBd01UQXhNREF3TURBd1dnQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBCkFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEKQUFBQUFBQVhEVEUwTVRFeU9ERXhNemt6TlZvd2djTXhDekFKQmdOVkJBWVRBa1JGTVJ3d0dnWURWUVFJREJOTwpiM0prY21obGFXNHRWMlZ6ZEdaaGJHVnVNUkF3RGdZRFZRUUhEQWRMdzRQQ3RteHVNUlF3RWdZRFZRUUtEQXRUClpXdDBhVzl1UldsdWN6RWZNQjBHQTFVRUN3d1dUV0ZzYVdOcGIzVnpJRU5sY25RZ1UyVmpkR2x2YmpFaE1COEcKQTFVRUF3d1liV0ZzYVdOcGIzVnpMbk5sYTNScGIyNWxhVzV6TG1SbE1Tb3dLQVlKS29aSWh2Y05BUWtCRmh0egpkR1ZtWVc0dVpYTnpaWEpBYzJWcmRHbHZibVZwYm5NdVpHVXdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCCkR3QXdnZ0VLQW9JQkFRRERBZjNobDdKWTBYY0ZuaXlFSnBTU0RxbjBPcUJyNlFQNjV1c0pQUnQvOFBhRG9xQnUKd0VZVC9OYSs2ZnNnUGpDMHVLOURaZ1dnMnRIV1dvYW5TYmxBTW96NVBINlorUzRTSFJaN2UyZERJalBqZGhqaAowbUxnMlVNTzV5cDBWNzk3R2dzOWxOdDZKUmZIODFNTjJvYlhXczROdHp0TE11RDZlZ3FwcjhkRGJyMzRhT3M4CnBrZHVpNVVhd1Raa3N5NXBMUEhxNWNNaEZHbTA2djY1Q0xvMFYyUGQ5K0tBb2tQclBjTjVLTEtlYno3bUxwazYKU01lRVhPS1A0aWRFcXh5UTdPN2ZCdUhNZWRzUWh1K3ByWTNzaTNCVXlLZlF0UDVDWm5YMmJwMHdLSHhYMTJEWAoxbmZGSXQ5RGJHdkhUY3lPdU4rblpMUEJtM3ZXeG50eUlJdlZBZ01CQUFHalFqQkFNQWtHQTFVZEV3UUNNQUF3CkVRWUpZSVpJQVliNFFnRUJCQVFEQWdlQU1Bc0dBMVVkRHdRRUF3SUZvREFUQmdOVkhTVUVEREFLQmdnckJnRUYKQlFjREFqQU5CZ2txaGtpRzl3MEJBUVVGQUFPQ0FRRUFHMGZaWVlDVGJkajFYWWMrMVNub2FQUit2SThDOENhRAo4KzBVWWhkbnlVNGdnYTBCQWNEclk5ZTk0ZUVBdTZacXljRjZGakxxWFhkQWJvcHBXb2NyNlQ2R0QxeDMzQ2tsClZBcnpHL0t4UW9oR0QySmVxa2hJTWxEb214SE83a2EzOStPYThpMnZXTFZ5alU4QVp2V01BcnVIYTRFRU55RzcKbFcyQWFnYUZLRkNyOVRuWFRmcmR4R1ZFYnY3S1ZRNmJkaGc1cDVTanBXSDErTXEwM3VSM1pYUEJZZHlWODMxOQpvMGxWajFLRkkyRENML2xpV2lzSlJvb2YrMWNSMzVDdGQwd1lCY3BCNlRac2xNY09QbDc2ZHdLd0pnZUpvMlFnClpzZm1jMnZDMS9xT2xOdU5xLzBUenprVkd2OEVUVDNDZ2FVK1VYZTRYT1Z2a2NjZWJKbjJkZz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K'; 269 count($output) === 3 270 && $output[0] === sprintf('string(%d) "%s"', strlen(PHP_VERSION), PHP_VERSION) 271 && $output[1] === 'string(27) "stefan.esser@sektioneins.de"'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 {index.php https://github.com/karpenoktem/punbb.git | PHP | 244 lines
128else if (isset($_PHPA)) 129 $php_accelerator = '<a href="http://www.php-accelerator.co.uk/">ionCube PHP Accelerator</a>'; 130else if (ini_get('apc.enabled')) 130else if (ini_get('apc.enabled')) 131 $php_accelerator ='<a href="http://www.php.net/apc/">Alternative PHP Cache (APC)</a>'; 132else if (ini_get('zend_optimizer.optimization_level')) 204 <h3 class="ct-legend hn"><span><?php echo $lang_admin_index['Server load'] ?></span></h3> 205 <p><span><?php echo $server_load ?> (<?php echo $num_online.' '.$lang_admin_index['users online']?>)</span></p> 206 </div> 213 <li><span><?php echo $lang_admin_index['Operating system'] ?>: <?php echo PHP_OS ?></span></li> 214 <li><span>PHP: <?php echo PHP_VERSION ?> - <a href="<?php echo forum_link($forum_url['admin_index']) ?>?action=phpinfo"><?php echo $lang_admin_index['Show info'] ?></a></span></li> 215 <li><span><?php echo $lang_admin_index['Accelerator'] ?>: <?php echo $php_accelerator ?></span></li> 226 <li><span><?php echo $lang_admin_index['Rows'] ?>: <?php echo forum_number_format($total_records) ?></span></li> 227 <li><span><?php echo $lang_admin_index['Size'] ?>: <?php echo $total_size ?></span></li> 228<?php endif; ?>class.upload.php https://github.com/Emaratilicious/Garden.git | PHP | 319 lines
1<?php if (!defined('APPLICATION')) exit(); 2/* 59 60 if (!IsWritable($UploadPath) || !is_readable($UploadPath)) 61 return FALSE; 274 $MaxFileSize = self::UnformatFileSize(ini_get('upload_max_filesize')); 275 $Ex = sprintf(T('Gdn_Upload.Error.PhpMaxFileSize', 'The file is larger than the server\'s maximum file size. (%s)'), self::FormatFileSize($MaxFileSize)); 276 break;progressive_parser.class.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 283 lines
1<?php 2 51 * 52 * TODO: Finish phpdocs 53 */ 55 56 protected $xml_parser; // PHP's low level XML SAX parser 57 protected $file; // full path to file being progressively parsed | => mutually exclusive 92 public function set_file($file) { 93 if (!file_exists($file) || (!is_readable($file))) { 94 throw new progressive_parser_exception('invalid_file_to_parse');functions.php https://github.com/torstein1989/Capstone_II.git | PHP | 315 lines
1<?php 2/** 88 ?> 89 <article <?php comment_class(); ?> id="comment-<?php comment_ID() ?>"> 90 <?php echo get_avatar( $comment, 40 ); ?> 90 <?php echo get_avatar( $comment, 40 ); ?> 91 <?php printf( __( '%s says:', 'starkers' ), sprintf( '%s', get_comment_author_link() ) ); ?> 92 <?php if ( $comment->comment_approved == '0' ) : ?> 92 <?php if ( $comment->comment_approved == '0' ) : ?> 93 <?php _e( 'Your comment is awaiting moderation.', 'starkers' ); ?> 94 <br /> 102 103 <?php comment_text(); ?> 104 112 <article <?php comment_class(); ?> id="comment-<?php comment_ID() ?>"> 113 <p><?php _e( 'Pingback:', 'starkers' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'starkers'), ' ' ); ?></p> 114 <?phpCache_File.php https://gitlab.com/karlen/ayo_wp | PHP | 455 lines
1<?php 2namespace W3TC; 117 @fputs( $fp, pack( 'L', $expires_at ) ); 118 @fputs( $fp, '<?php exit; ?>' ); 119 @fputs( $fp, @serialize( $var ) ); 154 $this->_get_path( $storage_key ); 155 if ( !is_readable( $path ) ) 156 return array( null, $has_old_data ); 315 316 $path = sprintf( '%s/%s/%s.php', substr( $hash, 0, 3 ), substr( $hash, 3, 3 ), $hash ); 317 409 @fputs( $fp, pack( 'L', $expires_at ) ); 410 @fputs( $fp, '<?php exit; ?>' ); 411 @fputs( $fp, (int)$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 +----------------------------------------------------------------------+downloadalbum.php https://github.com/zcopley/gallery3-contrib.git | PHP | 300 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2/** 172 $i_realpath = realpath($i->file_path()); 173 if (!is_readable($i_realpath)) { 174 continue; 195 $i_realpath = realpath($i->file_path()); 196 if (!is_readable($i_realpath)) { 197 continue; 214 /** 215 * See system/helpers/download.php 216 */ 224 /** 225 * See system/helpers/download.php 226 */ 287 /** 288 * See http://bugs.php.net/bug.php?id=45028 289 */error_report.lib.php https://gitlab.com/luyxtran264/myproject | PHP | 364 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 16 */ 17if (is_readable('js/line_counts.php')) { 18 include_once 'js/line_counts.php'; 23 */ 24define('SUBMISSION_URL', "https://reports.phpmyadmin.net/incidents/create"); 25 43 * 44 * @param string $exception_type whether exception is 'js' or 'php' 45 * 62 "enabled", 63 "php_version" => phpversion() 64 ); 83 } 84 } elseif ($exception_type == 'php') { 85 $errors = array();l10n.php https://github.com/mikitracey/ifusa.git | PHP | 455 lines
1<?php 2/** 328 329 if ( !is_readable( $mofile ) ) return false; 330Filesystem.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 559 lines
1<?php 2 331 { 332 return is_readable($path); 333 }imports.php https://gitlab.com/nexxuz/phpBMS | PHP | 500 lines
320 foreach($recordsArray as $record){ 321 ?><tr class="qr<?php echo $i ?>" ><?php 322 foreach($fieldsArray as $field => $junk){ 472 473 ?><form action="<?php echo htmlentities($this->action) ?>" method="<?php echo $this->method?>" name="<?php echo $this->name?>" onsubmit="<?php echo $this->onsubmit?>" <?php 474 if(isset($this->enctype)) echo ' enctype="'.$this->enctype.'" '; 480 <div id="topButtons"><?php $this->showButtons(1, $pageType, $numberOfRecords); ?></div> 481 <h1 id="h1Title"><span><?php echo $pageTitle ?></span></h1><?php 482 489 <input <?php if($ids==1) {?>accesskey="u"<?php }?> title="Upload (alt+u)" id="uploadButton<?php echo $ids?>" name="command" type="submit" value="upload" class="Buttons" /> 490 <input id="cancelButton<?php echo $ids?>" name="command" type="submit" value="cancel" class="Buttons" <?php if($ids==1) {?>accesskey="x" <?php }?> title="(access key+x)" /> 491 <?php }else{?> 491 <?php }else{?> 492 <input type="submit" class="Buttons" value="import" name="command" id="import<?php echo $ids?>" title="commit" <?php if($ids==1) {?>accesskey="i"<?php }?> <?php echo ($numberOfRecords? '':'disabled="disabled"') ?>/> 493 <input type="submit" class="Buttons" value="cancel" name="command" id="cancelButton<?php echo $ids?>" <?php if($ids==1) {?>accesskey="x"<?php }?> title="rollback"/>plugin.php https://github.com/weissms/owb-mirror.git | PHP | 382 lines
1<?php 2 55 continue; 56 if ( substr($subfile, -4) == '.php' ) 57 $plugin_files[] = "$file/$subfile"; 60 } else { 61 if ( substr($file, -4) == '.php' ) 62 $plugin_files[] = $file; 72 foreach ( $plugin_files as $plugin_file ) { 73 if ( !is_readable( "$plugin_root/$plugin_file" ) ) 74 continue; 147function add_management_page( $page_title, $menu_title, $access_level, $file, $function = '' ) { 148 return add_submenu_page( 'edit.php', $page_title, $menu_title, $access_level, $file, $function ); 149} 151function add_options_page( $page_title, $menu_title, $access_level, $file, $function = '' ) { 152 return add_submenu_page( 'options-general.php', $page_title, $menu_title, $access_level, $file, $function ); 153}Loader.php https://gitlab.com/r.collas/site_central | PHP | 548 lines
1<?php 2/** 12 13require_once 'Exception.php'; 14 63 64 if(!is_dir($path) || !is_readable($path)) 65 throw new Yab_Exception($path.' is not a valid readable directory path'); 99 100 if($readable && !is_readable($realpath)) 101 return false; 136 137 if($readable && !is_readable($realpath)) 138 return false; 167 168 return str_replace('_', DIRECTORY_SEPARATOR, $class_name).'.php'; 169resource.php https://github.com/asecondwill/syrup.git | PHP | 416 lines
1<?php 2 45 foreach($candidates as $candidate) { 46 if (is_readable(CSS . DS . str_replace('/', DS, $candidate) . '.css')) { 47 self::$__stylesheets[] = $candidate; 51 foreach($candidates as $candidate) { 52 if (is_readable(JS . DS . str_replace('/', DS, $candidate) . '.js')) { 53 self::$__javascripts[] = $candidate . '.js';plain.class.php https://github.com/godber/PHXdata-Website.git | PHP | 328 lines
1<?php 2/** 25 26 if (!@is_readable($config_cascade['plainauth.users']['default'])){ 27 $this->success = false;DeliveryLimitations.php https://github.com/orchestra-io/sample-openx.git | PHP | 336 lines
1<?php 2/* 23+---------------------------------------------------------------------------+ 24$Id: DeliveryLimitations.php 44411 2009-10-07 14:59:11Z david.keen $ 25*/ 26 27require_once MAX_PATH . '/lib/max/Plugin/Common.php'; 28require_once MAX_PATH . '/lib/max/Plugin/Translation.php'; 28require_once MAX_PATH . '/lib/max/Plugin/Translation.php'; 29require_once MAX_PATH . '/lib/max/Delivery/limitations.delivery.php'; 30require_once MAX_PATH . '/lib/OA/Maintenance/Priority/DeliveryLimitation/Empty.php'; 30require_once MAX_PATH . '/lib/OA/Maintenance/Priority/DeliveryLimitation/Empty.php'; 31require_once LIB_PATH . '/Plugin/Component.php'; 32 40 * 41 * {Plugin} is the actual name of the plugin. The plugin file name is also called {Plugin}.plugin.php. 42 *modphpthumb.class.php https://github.com/francisreboucas/revolution.git | PHP | 204 lines
5 */ 6require_once MODX_CORE_PATH.'model/phpthumb/phpthumb.class.php'; 7/** 13 */ 14class modPhpThumb extends phpThumb { 15 43 $this->setParameter('config_nohotlink_text_message',(string)$this->modx->getOption('phpthumb_nohotlink_text_message',$this->config,'Off-server thumbnailing is not allowed')); 44 $this->setParameter('config_nooffsitelink_enabled',(boolean)$this->modx->getOption('phpthumb_nooffsitelink_enabled',$this->config,false)); 45 $this->setParameter('config_nooffsitelink_valid_domains',explode(',', $this->modx->getOption('phpthumb_nooffsitelink_valid_domains',$this->config,$this->modx->getOption('http_host')))); 178 if ($getimagesize) { 179 header('Content-Type: '.phpthumb_functions::ImageTypeToMIMEtype($getimagesize[2])); 180 } elseif (eregi('\.ico$', $this->cache_filename)) { 196 } 197 $downloadfilename = phpthumb_functions::SanitizeFilename(@$_GET['sia'] ? $_GET['sia'] : (@$_GET['down'] ? $_GET['down'] : 'phpThumb_generated_thumbnail'.(@$_GET['f'] ? $_GET['f'] : 'jpg'))); 198 if (@$downloadfilename) {class-wp-filesystem-ftpsockets.php https://gitlab.com/WPonEB/WPonEB | PHP | 517 lines
1<?php 2/** 30 // Check if possible to use ftp functions. 31 if ( ! @include_once( ABSPATH . 'wp-admin/includes/class-ftp.php' ) ) { 32 return; 371 */ 372 public function is_readable($file) { 373 return true;tokenizer.php https://bitbucket.org/crevillo/enetcall.git | PHP | 293 lines
1<?php 2/** 147 { 148 if ( !file_exists( $file ) || !is_readable( $file ) ) 149 {Cache.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 245 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Cache.php 20096 2010-01-06 02:05:09Z bkarwin $ 20 */ 131 // security controls are explicit 132 // require_once str_replace('_', DIRECTORY_SEPARATOR, $backendClass) . '.php'; 133 } else { 144 if (!$autoload) { 145 $file = str_replace('_', DIRECTORY_SEPARATOR, $backendClass) . '.php'; 146 if (!(self::_isReadable($file))) { 173 // security controls are explicit 174 // require_once str_replace('_', DIRECTORY_SEPARATOR, $frontendClass) . '.php'; 175 } else { 227 * Returns TRUE if the $filename is readable, or FALSE otherwise. 228 * This function uses the PHP include_path, where PHP's is_readable() 229 * does not.modphpthumb.class.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 205 lines
5 */ 6require_once MODX_CORE_PATH.'model/phpthumb/phpthumb.class.php'; 7/** 13 */ 14class modPhpThumb extends phpThumb { 15 43 $this->setParameter('config_nohotlink_text_message',(string)$this->modx->getOption('phpthumb_nohotlink_text_message',$this->config,'Off-server thumbnailing is not allowed')); 44 $this->setParameter('config_nooffsitelink_enabled',(boolean)$this->modx->getOption('phpthumb_nooffsitelink_enabled',$this->config,false)); 45 $this->setParameter('config_nooffsitelink_valid_domains',explode(',', $this->modx->getOption('phpthumb_nooffsitelink_valid_domains',$this->config,$this->modx->getOption('http_host')))); 140 141 $parsed_url = phpthumb_functions::ParseURLbetter(@$_SERVER['HTTP_REFERER']); 142 197 } 198 $downloadfilename = phpthumb_functions::SanitizeFilename(@$_GET['sia'] ? $_GET['sia'] : (@$_GET['down'] ? $_GET['down'] : 'phpThumb_generated_thumbnail'.(@$_GET['f'] ? $_GET['f'] : 'jpg'))); 199 if (@$downloadfilename) {Type.php https://bitbucket.org/shashwat_dinasource/bitscentral.git | PHP | 395 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 3// +----------------------------------------------------------------------+ 4// | PHP version 4 | 5// +----------------------------------------------------------------------+ 5// +----------------------------------------------------------------------+ 6// | Copyright (c) 1997-2002 The PHP Group | 7// +----------------------------------------------------------------------+ 7// +----------------------------------------------------------------------+ 8// | This source file is subject to version 3.0 of the PHP license, | 9// | that is bundled with this package in the file LICENSE, and is | 10// | available at through the world-wide-web at | 11// | http://www.php.net/license/3_0.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// +----------------------------------------------------------------------+make_captcha_img.php https://github.com/fusenigk/mantisbt-1.git | PHP | 308 lines
1<?php 2# MantisBT - A PHP based bugtracking system 23 * 24 * @uses core.php 25 * @uses config_api.php 25 * @uses config_api.php 26 * @uses crypto_api.php 27 * @uses gpc_api.php 27 * @uses gpc_api.php 28 * @uses utility_api.php 29 */ 33 */ 34require_once( 'core.php' ); 35require_api( 'config_api.php' ); 35require_api( 'config_api.php' ); 36require_api( 'crypto_api.php' ); 37require_api( 'gpc_api.php' );String.php https://github.com/joshbhamilton/todophp.git | PHP | 440 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2011, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/mit-license.php The MIT License 7 */ 126 return static::$_source; 127 case is_readable('/dev/urandom') && $fp = fopen('/dev/urandom', 'rb'): 128 return static::$_source = function($bytes) use (&$fp) { 154 * 155 * @link http://php.net/manual/en/function.hash.php PHP Manual: `hash()` 156 * @link http://php.net/manual/en/function.hash-hmac.php PHP Manual: `hash_hmac()` 156 * @link http://php.net/manual/en/function.hash-hmac.php PHP Manual: `hash_hmac()` 157 * @link http://php.net/manual/en/function.hash-algos.php PHP Manual: `hash_algos()` 158 * @param string $string The string to hash.checker.php https://bitbucket.org/iiic/iszp.git | PHP | 303 lines
1<?php 2 15/** 16 * Check PHP configuration. 17 */ 29define('TEMPLATE_FILE', __DIR__ . '/assets/checker.phtml'); 30if (!is_readable(TEMPLATE_FILE)) { 31 die("Error: template file is not readable. Check assets folder (part of distribution), it should be present, readable and contain readable template file."); 47$tests[] = array( 48 'title' => 'PHP version', 49 'required' => TRUE, 49 'required' => TRUE, 50 'passed' => version_compare(PHP_VERSION, '5.3.0', '>='), 51 'message' => PHP_VERSION, 51 'message' => PHP_VERSION, 52 'description' => 'Your PHP version is too old. Nette Framework requires at least PHP 5.3.0 or higher.', 53);Settings.php https://gitlab.com/team_fsn/fsn-php | PHP | 387 lines
1<?php 2/** 2/** 3 * PHPExcel 4 * 22 * @package PHPExcel_Settings 23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../'); 34 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 35} 118 * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management 119 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive 120 * @return boolean Success or failure 138 * for Zip file management 139 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive 140 */functions.php https://github.com/chopsuei3/oscc.git | PHP | 410 lines
28$locale = get_locale(); 29$locale_file = get_template_directory_uri() . "/languages/$locale.php"; 30if ( is_readable( $locale_file ) ) 171 <li class="post pingback"> 172 <p><?php _e( 'Pingback:', 'esquire' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'esquire' ), '<span class="edit-link">', '</span>' ); ?></p> 173 <?php 176 ?> 177 <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> 178 <article id="comment-<?php comment_ID(); ?>" class="comment"> 197 198 <?php edit_comment_link( __( 'Edit', 'esquire' ), '<span class="edit-link">', '</span>' ); ?> 199 </div><!-- .comment-author .vcard --> 200 201 <?php if ( $comment->comment_approved == '0' ) : ?> 202 <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'esquire' ); ?></em>Config.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 781 lines
1<?php 2/** 2/** 3 * @version $Id: Config.php 57540 2012-10-14 18:27:59Z btowles $ 4 * @author RocketTheme http://www.rockettheme.com 246 } 247 if (!file_exists($metaconfig_path) || !is_file($metaconfig_path) || !is_readable($metaconfig_path)) { 248 throw new RokCommon_Config_Exception(rc__('Unable to read file %s', $metaconfig_path));upgradelib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 623 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 30global $CFG; 31require_once($CFG->dirroot . '/question/engine/bank.php'); 32require_once($CFG->dirroot . '/question/engine/upgrade/logger.php'); 32require_once($CFG->dirroot . '/question/engine/upgrade/logger.php'); 33require_once($CFG->dirroot . '/question/engine/upgrade/behaviourconverters.php'); 34 66 67 gc_collect_cycles(); // This was really helpful in PHP 5.2. Perhaps remove. 68 $a = new stdClass(); 91 $partialupgradefile = $CFG->dirroot . '/' . $CFG->admin . 92 '/tool/qeupgradehelper/partialupgrade.php'; 93 $partialupgradefunction = 'tool_qeupgradehelper_get_quizzes_to_upgrade'; 93 $partialupgradefunction = 'tool_qeupgradehelper_get_quizzes_to_upgrade'; 94 if (is_readable($partialupgradefile)) { 95 include_once($partialupgradefile);helpers.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 1145 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 29global $CFG; 30require_once(dirname(__FILE__) . '/../lib.php'); 31 198 199 $file = get_plugin_directory('qtype', $qtype) . '/tests/helper.php'; 200 if (!is_readable($file)) {bank.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 538 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 32 33require_once(dirname(__FILE__) . '/../type/questiontypebase.php'); 34 63 * are string becuase: a) we want grades to exactly 7 d.p., and b. you can't 64 * have float array keys in PHP. 65 * Initialised by {@link ensure_grade_options_initialised()}. 76 $plugindir = get_plugin_directory('qtype', $qtypename); 77 return $plugindir && is_readable($plugindir . '/questiontype.php'); 78 } 91 } 92 $file = get_plugin_directory('qtype', $qtypename) . '/questiontype.php'; 93 if (!is_readable($file)) { 223 * Load the question definition class(es) belonging to a question type. That is, 224 * include_once('/question/type/' . $qtypename . '/question.php'), with a bit 225 * of checking.SlideShare.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 619 lines
1<?php 2/** 25 */ 26require_once 'Zend/Http/Client.php'; 27 30 */ 31require_once 'Zend/Cache.php'; 32 35 */ 36require_once 'Zend/Service/SlideShare/SlideShow.php'; 37 324 325 if(!file_exists($filename) || !is_readable($filename)) { 326 require_once 'Zend/Service/SlideShare/Exception.php'; 351 352 require_once 'Zend/Http/Client/Exception.php'; 353 try {zip_packer.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 499 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 26 27require_once("$CFG->libdir/filestorage/file_packer.php"); 28require_once("$CFG->libdir/filestorage/zip_archive.php"); 206 if (is_file($file)) { 207 if (!is_readable($file)) { 208 return false; 248 $pathname = rtrim($pathname, '/'); 249 if (!is_readable($archivefile)) { 250 return false;stored_file.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 959 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 63 if (!empty($file_record->repositoryid)) { 64 require_once("$CFG->dirroot/repository/lib.php"); 65 $this->repository = repository::get_repository_by_id($file_record->repositoryid, SYSCONTEXTID); 172 // try to recover the content from trash 173 if (!is_readable($pathname)) { 174 if (!$this->fs->try_content_recovery($this) or !is_readable($pathname)) { 357 $path = $this->get_content_file_location(); 358 if (!is_readable($path)) { 359 if (!$this->fs->try_content_recovery($this) or !is_readable($path)) { 370 $path = $this->get_content_file_location(); 371 if (!is_readable($path)) { 372 if (!$this->fs->try_content_recovery($this) or !is_readable($path)) { 385 $path = $this->get_content_file_location(); 386 if (!is_readable($path)) { 387 if (!$this->fs->try_content_recovery($this) or !is_readable($path)) {questionlib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 1349 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 22 * This script also loads the questiontype classes 23 * Code for handling the editing of questions is in {@link question/editlib.php} 24 * 36 37require_once($CFG->dirroot . '/question/engine/lib.php'); 38require_once($CFG->dirroot . '/question/type/questiontypebase.php'); 141 foreach (get_plugin_list('mod') as $module => $path) { 142 $lib = $path . '/lib.php'; 143 if (is_readable($lib)) {filterlib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 1394 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 45 * Class to manage the filtering of strings. It is intended that this class is 46 * only used by weblib.php. Client code should probably be using the 47 * format_text and format_string functions. 143 global $CFG; 144 $path = $CFG->dirroot .'/filter/'. $filtername .'/filter.php'; 145 if (!is_readable($path)) {auth.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 446 lines
1<?php 2/** 17 * 05.2006 Added better handling of mutli-valued attributes 18 * 2006-08-28 File created, code imported from lib.php 19 * 2006-10-27 Upstream 1.7 changes merged in, added above credits from lib.php :-) 29 30require_once($CFG->libdir.'/authlib.php'); 31 124 && $this->config->convert_data != '' 125 && is_readable($this->config->convert_data) 126 ) { 219 * 220 * This function is called from admin/auth.php, and outputs a full page with 221 * a form for configuring this plugin. 239 if (!isset($config->auth_instructions) or empty($config->user_attribute)) { 240 $config->auth_instructions = get_string('auth_shib_instructions', 'auth_shibboleth', $CFG->wwwroot.'/auth/shibboleth/index.php'); 241 }locallib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 673 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 36 $dbman = $DB->get_manager(); 37 return is_readable($CFG->dirroot . '/question/engine/upgrade/upgradelib.php') && 38 $dbman->table_exists('question_usages'); 62 * Get the URL of a script within this plugin. 63 * @param string $script the script name, without .php. E.g. 'index'. 64 * @param array $params URL parameters (optional). 66function tool_qeupgradehelper_url($script, $params = array()) { 67 return new moodle_url('/admin/tool/qeupgradehelper/' . $script . '.php', $params); 68} 177 $quizinfo->id, 178 html_writer::link(new moodle_url('/course/view.php', 179 array('id' => $quizinfo->courseid)), format_string($quizinfo->shortname)), 179 array('id' => $quizinfo->courseid)), format_string($quizinfo->shortname)), 180 html_writer::link(new moodle_url('/mod/quiz/view.php', 181 array('q' => $quizinfo->id)), format_string($quizinfo->name)),class-wp-theme.php https://bitbucket.org/jstroschein/wordpress-3.5.1-clean.git | PHP | 1199 lines
1<?php 2/** 215 return; 216 } elseif ( ! is_readable( $this->theme_root . '/' . $theme_file ) ) { 217 $this->headers['Name'] = $this->stylesheet; 234 $this->template = $this->stylesheet; 235 if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet . '/index.php' ) ) { 236 $this->errors = new WP_Error( 'theme_no_index', __( 'Template is missing.' ) ); 242 // If we got our data from cache, we can assume that 'template' is pointing to the right place. 243 if ( ! is_array( $cache ) && $this->template != $this->stylesheet && ! file_exists( $this->theme_root . '/' . $this->template . '/index.php' ) ) { 244 // If we're in a directory of themes inside /themes, look for the parent nearby. 246 $parent_dir = dirname( $this->stylesheet ); 247 if ( '.' != $parent_dir && file_exists( $this->theme_root . '/' . $parent_dir . '/' . $this->template . '/index.php' ) ) { 248 $this->template = $parent_dir . '/' . $this->template; 405 case 'Template Files' : 406 return $this->get_files( 'php', 1, true ); 407 case 'Stylesheet Files' :theme.php https://github.com/muskmelon/Greemo.git | PHP | 1716 lines
1<?php 2/** 252 * The theme is broken, if it doesn't have a parent theme and is missing either 253 * style.css and, or index.php. If the theme has a parent theme then it is 254 * broken, if it is missing style.css; index.php is optional. The broken theme 280 281 if ( !is_readable("$theme_root/$theme_file") ) { 282 $wp_broken_themes[$theme_file] = array('Name' => $theme_file, 'Title' => $theme_file, 'Description' => __('File not readable.')); 311 if ( empty($template) ) { 312 if ( file_exists("$theme_root/$stylesheet/index.php") ) 313 $template = $stylesheet; 319 320 if ( !file_exists("$theme_root/$template/index.php") ) { 321 $parent_dir = dirname(dirname($theme_file)); 321 $parent_dir = dirname(dirname($theme_file)); 322 if ( file_exists("$theme_root/$parent_dir/$template/index.php") ) { 323 $template = "$parent_dir/$template";functions.php https://github.com/muskmelon/Greemo.git | PHP | 508 lines
14 * (those wrapped in a function_exists() call) by defining them first in your child theme's 15 * functions.php file. The child theme's functions.php file is included before the parent 16 * theme's file, so the child theme functions would be used. 325 ?> 326 <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> 327 <div id="comment-<?php comment_ID(); ?>"> 329 <?php echo get_avatar( $comment, 40 ); ?> 330 <?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?> 331 </div><!-- .comment-author .vcard --> 332 <?php if ( $comment->comment_approved == '0' ) : ?> 333 <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em> 334 <br /> 356 <li class="post pingback"> 357 <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?></p> 358 <?phpfunctions.php https://github.com/muskmelon/Greemo.git | PHP | 593 lines
14 * (those wrapped in a function_exists() call) by defining them first in your child theme's 15 * functions.php file. The child theme's functions.php file is included before the parent 16 * theme's file, so the child theme functions would be used. 91 // Load up our theme options page and related code. 92 require( dirname( __FILE__ ) . '/inc/theme-options.php' ); 93 94 // Grab Twenty Eleven's Ephemera widget. 95 require( dirname( __FILE__ ) . '/inc/widgets.php' ); 96 272 #site-description { 273 color: #<?php echo get_header_textcolor(); ?>; 274 } 301 ?> 302 <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> 303 <div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>functions.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 717 lines
15 * (those wrapped in a function_exists() call) by defining them first in your child theme's 16 * functions.php file. The child theme's functions.php file is included before the parent 17 * theme's file, so the child theme functions would be used. 325 ?> 326 <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> 327 <div id="comment-<?php comment_ID(); ?>"> 328 <div class="comment-author vcard"> 329 <?php echo get_avatar( $comment, 40 ); ?> 330 <?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?> 331 </div><!-- .comment-author .vcard --> 332 <?php if ( $comment->comment_approved == '0' ) : ?> 333 <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em> 356 <li class="post pingback"> 357 <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?></p> 358 <?phpinc.swg-plugin-framework.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 582 lines
1<?php 2 49 $moFile = dirname($this->g_info['PluginFile']) . '/languages/' . $this->g_info['ShortName'] . '-' . $currentLocale . '.mo'; 50 if(@file_exists($moFile) && is_readable($moFile)) load_textdomain($this->g_info['ShortName'], $moFile); 51 } 73 74 // Add link "Settings" to the plugin in /wp-admin/plugins.php 75 global $wp_version; 273 * Returns the basename of a plugin (extracts the name of a plugin from its filename). 274 * Example: If your plugin file is located at /home/www/wp-content/plugins/myplugin/myplugin.php, 275 * it will return 'myplugin/myplugin.php'View.php https://github.com/grjones/qframe.git | PHP | 341 lines
1<?php 2/** 26 */ 27require_once 'Haml/Engine.php'; 28 80 public function setScriptPath($path) { 81 if(is_readable($path)) $this->_haml->setBase($path); 82 else throw new Exception('Invalid path provided'); 297 if(substr($prefix, -1, 1) != '_') $prefix .= '_'; 298 $helperFile = $path . DIRECTORY_SEPARATOR . ucfirst($method) . '.php'; 299 if(file_exists($helperFile)) { 312 if(substr($prefix, -1, 1) != '_') $prefix .= '_'; 313 $globalHelperFile = $path . DIRECTORY_SEPARATOR . ucfirst($controllerName) . 'Helpers.php'; 314 if(file_exists($globalHelperFile)) { 327 if(substr($prefix, -1, 1) != '_') $prefix .= '_'; 328 $applicationHelperFile = $path . DIRECTORY_SEPARATOR . 'ApplicationHelpers.php'; 329 if(file_exists($applicationHelperFile)) {PMA_SetupIndex_test.php https://gitlab.com/luyxtran264/myproject | PHP | 397 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 3/** 4 * tests for methods under setup/lib/index.lib.php 5 * 5 * 6 * @package PhpMyAdmin-test 7 */ 14 15require_once 'libraries/sanitizing.lib.php'; 16require_once 'libraries/config/config_functions.lib.php'; 16require_once 'libraries/config/config_functions.lib.php'; 17require_once 'setup/lib/index.lib.php'; 18require_once 'libraries/sanitizing.lib.php'; 20/** 21 * tests for methods under setup/lib/index.lib.php 22 *Ftp.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 509 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 */ 246 } 247 if(!is_readable($local)) { 248 throw new Exception("Local file is not readable: {$localFile}"); 444 /** 445 * Get directory contents in PHP array 446 *browser.php https://gitlab.com/AhmedMedo/Seo | PHP | 922 lines
1<?php 2 45 46 !is_readable($thumbsDir) || 47 !dir::isWritable($thumbsDir) || 104 $dir = $this->config['uploadDir'] . "/" . $this->session['dir']; 105 if (($type != $this->type) || !is_dir($dir) || !is_readable($dir)) 106 $this->session['dir'] = $this->type; 130 $dir = "{$this->typeDir}/{$_GET['dir']}"; 131 if ($this->checkFilePath($dir) && is_dir($dir) && is_readable($dir)) 132 $this->session['dir'] = path::normalize("{$this->type}/{$_GET['dir']}"); 162 // Create thumbnail 163 if (!is_file($file) || !is_readable($file)) { 164 $file = "$dir/{$_GET['file']}"; 164 $file = "$dir/{$_GET['file']}"; 165 if (!is_file($file) || !is_readable($file)) 166 $this->sendDefaultThumb($file);getid3.php https://gitlab.com/Gashler/dp | PHP | 1405 lines
89 public $option_sha1_data = false; // Get SHA1 sum of data part - slow 90 public $option_max_2gb_check = null; // Check whether file is larger than 2GB and thus not supported by 32-bit PHP (null: auto-detect based on PHP_INT_MAX) 91 117 if (version_compare(PHP_VERSION, $required_php_version, '<')) { 118 $this->startup_error .= 'getID3() requires PHP v'.$required_php_version.' or higher - you are running v'.PHP_VERSION; 119 return false; 290 fclose($this->fp); 291 throw new getid3_exception('Unable to determine actual filesize. File is most likely larger than '.round(PHP_INT_MAX / 1073741824).'GB and is not supported by PHP.'); 292 } elseif (getid3_lib::intValueSupported($real_filesize)) { 294 fclose($this->fp); 295 throw new getid3_exception('PHP seems to think the file is larger than '.round(PHP_INT_MAX / 1073741824).'GB, but filesystem reports it as '.number_format($real_filesize, 3).'GB, please report to info@getid3.org'); 296 } 297 $this->info['filesize'] = $real_filesize; 298 $this->warning('File is larger than '.round(PHP_INT_MAX / 1073741824).'GB (filesystem reports it as '.number_format($real_filesize, 3).'GB) and is not properly supported by PHP.'); 299 }functions.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 492 lines
14 * (those wrapped in a function_exists() call) by defining them first in your child theme's 15 * functions.php file. The child theme's functions.php file is included before the parent 16 * theme's file, so the child theme functions would be used. 318 <?php if ( '' == $comment->comment_type ) : ?> 319 <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> 320 <div id="comment-<?php comment_ID(); ?>"> 322 <?php echo get_avatar( $comment, 40 ); ?> 323 <?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?> 324 </div><!-- .comment-author .vcard --> 325 <?php if ( $comment->comment_approved == '0' ) : ?> 326 <em><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em> 327 <br /> 345 <li class="post pingback"> 346 <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'twentyten'), ' ' ); ?></p> 347 <?php endif;theme.functions.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 843 lines
117 * © with xiligroup dev 118 * @todo - 1bigidea - shouldn't this load theme/functions.php rather than theme/theme.php???? (handy feature though) 119 */ 125 if((get_option('wpsc_selected_theme') != '') && (file_exists($cur_wpsc_theme_folder."/".$theme_dir.".php") )) { 126 include_once($cur_wpsc_theme_folder.'/'.$theme_dir.'.php'); 127 } 295 margin-left: <?php echo $thumbnail_width + 10; ?>px !important; 296 <?php /*_margin-left: <?php echo ($thumbnail_width/2) + 5; ?>px !important; */ ?> 297 min-height: <?php echo $thumbnail_height;?>px; 299 } 300 <?php endif; ?> 301 div.default_product_display div.textcol div.imagecol{ 362 width: <?php echo $single_thumbnail_width; ?>px; 363 height: <?php echo $single_thumbnail_height; ?>px; 364 }plugin.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1362 lines
251 foreach ( $plugin_files as $plugin_file ) { 252 if ( !is_readable( "$plugin_root/$plugin_file" ) ) 253 continue; 300 foreach ( $plugin_files as $plugin_file ) { 301 if ( !is_readable( WPMU_PLUGIN_DIR . "/$plugin_file" ) ) 302 continue; 311 312 if ( isset( $wp_plugins['index.php'] ) && filesize( WPMU_PLUGIN_DIR . '/index.php') <= 30 ) // silence is golden 313 unset( $wp_plugins['index.php'] ); 347 foreach ( $plugin_files as $plugin_file ) { 348 if ( !is_readable( WP_CONTENT_DIR . "/$plugin_file" ) ) 349 continue; 373 'advanced-cache.php' => array( __( 'Advanced caching plugin.' ), 'WP_CACHE' ), // WP_CACHE 374 'db.php' => array( __( 'Custom database class.' ), true ), // auto on load 375 'db-error.php' => array( __( 'Custom database error message.' ), true ), // auto on errorfile.php https://github.com/andergmartins/joomla-platform.git | PHP | 540 lines
1<?php 2/** 90 // Check src path 91 if (!is_readable($src)) 92 { 233 // Check src path 234 if (!is_readable($src)) 235 { 415 * 416 * @param string $src The name of the php (temporary) uploaded file 417 * @param string $dest The path (including filename) to move the uploaded file toPMA_SetupIndex_test.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 395 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 3/** 4 * tests for methods under setup/lib/index.lib.php 5 * 5 * 6 * @package PhpMyAdmin-test 7 */ 14 15require_once 'libraries/config/config_functions.lib.php'; 16require_once 'setup/lib/index.lib.php'; 18/** 19 * tests for methods under setup/lib/index.lib.php 20 * 20 * 21 * @package PhpMyAdmin-test 22 */Openssl.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');SalesForceClient.php https://github.com/gotham-city-drupal/Houston.git | PHP | 523 lines
1<?php 2 3require_once 'Houston/Controllers/Controller.php'; 4require_once 'Houston/Controllers/Salesforce/phptoolkit/soapclient/SforceEnterpriseClient.php'; 5require_once 'Houston/Application.php'; 316 } 317 if (!is_readable($this->wsdlFilename)) { 318 throw new Exception("Can't read wsdl file at '{$this->wsdlFilename}'");FontMetrics.php https://gitlab.com/oritadeu/dompdf | PHP | 603 lines
33 * This is typically done only from command line with load_font.php on converting 34 * ttf fonts to ufm with php-font-lib. 35 */ 35 */ 36 const CACHE_FILE = "dompdf_font_family_cache.php"; 37 53 * 54 * Usually cached by the {@link load_font.php} script 55 * 94 // replace the path to the DOMPDF font directories with the corresponding constants (allows for more portability) 95 $cacheData = sprintf("<?php return array (%s", PHP_EOL); 96 foreach ($this->fontLookup as $family => $variants) { 96 foreach ($this->fontLookup as $family => $variants) { 97 $cacheData .= sprintf(" '%s' => array(%s", addslashes($family), PHP_EOL); 98 foreach ($variants as $variant => $path) {elFinderVolumeLocalFileSystem.class.php https://gitlab.com/rohiri/SIINDI | PHP | 835 lines
1<?php 2 287 $stat['ts'] = filemtime($path); 288 $stat['read'] = is_readable($path); 289 $stat['write'] = is_writable($path);getid3.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1505 lines
19} 20// Workaround Bug #39923 (https://bugs.php.net/bug.php?id=39923) 21if (!defined('IMG_JPG') && defined('IMAGETYPE_JPEG')) { 23} 24if (!defined('ENT_SUBSTITUTE')) { // PHP5.3 adds ENT_IGNORE, PHP5.4 adds ENT_SUBSTITUTE 25 define('ENT_SUBSTITUTE', (defined('ENT_IGNORE') ? ENT_IGNORE : 8)); 28/* 29https://www.getid3.org/phpBB3/viewtopic.php?t=2114 30If you are running into a the problem where filenames with special characters are being handled 263 if (version_compare(PHP_VERSION, $required_php_version, '<')) { 264 $this->startup_error .= 'getID3() requires PHP v'.$required_php_version.' or higher - you are running v'.PHP_VERSION."\n"; 265 return; 437 // open local file 438 //if (is_readable($filename) && is_file($filename) && ($this->fp = fopen($filename, 'rb'))) { // see https://www.getid3.org/phpBB3/viewtopic.php?t=1720 439 if (($fp != null) && ((get_resource_type($fp) == 'file') || (get_resource_type($fp) == 'stream'))) {class-wp-theme.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1649 lines
1<?php 2/** 24 * @since 3.4.0 25 * @since 5.4.0 Added `Requires at least` and `Requires PHP` headers. 26 * @var array 40 'RequiresWP' => 'Requires at least', 41 'RequiresPHP' => 'Requires PHP', 42 ); 192 if ( ! isset( self::$persistently_cache ) ) { 193 /** This action is documented in wp-includes/theme.php */ 194 self::$persistently_cache = apply_filters( 'wp_cache_themes_persistently', false, 'WP_Theme' ); 258 return; 259 } elseif ( ! is_readable( $this->theme_root . '/' . $theme_file ) ) { 260 $this->headers['Name'] = $this->stylesheet; 312 $this->template = $this->stylesheet; 313 if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet . '/index.php' ) ) { 314 $error_message = sprintf(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');SimpleGdImage.class.old.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 549 lines
1<?php 2 100 function loadFromFile($file_path) { 101 if (!is_readable($file_path)) { 102 throw new FileDnxError($file_path);files.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 650 lines
1<?php 2 381 function download_file($path, $type = 'application/octet-stream', $name = '', $force_download = false) { 382 if (!is_readable($path)) { 383 return false; 410 if ($from_filesystem) { 411 if (!is_readable($content)) return false; 412 if (!ini_get('safe_mode')) @set_time_limit(0);Contact.class.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 843 lines
1<?php 2 283 function setAvatar($source, $max_width = 50, $max_height = 50, $save = true) { 284 if (!is_readable($source)) { 285 return false;ContactsController.class.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 738 lines
1<?php 2 78 try { 79 if (!isset($avatar['name']) || !isset($avatar['type']) || !isset($avatar['size']) || !isset($avatar['tmp_name']) || !is_readable($avatar['tmp_name'])) { 80 throw new InvalidUploadError($avatar, lang('error upload file')); 226 $old_file = $contact->getAvatarPath(); 227 if (!isset($avatar['name']) || !isset($avatar['type']) || !isset($avatar['size']) || !isset($avatar['tmp_name']) || !is_readable($avatar['tmp_name'])) { 228 throw new InvalidUploadError($avatar, lang('error upload file'));write.id3v2.php https://gitlab.com/x33n/ampache | PHP | 939 lines
1<?php 2///////////////////////////////////////////////////////////////// 10/// // 11// write.id3v2.php // 12// module for writing ID3v2 tags // 12// module for writing ID3v2 tags // 13// dependencies: module.tag.id3v2.php // 14// /// 16 17getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.tag.id3v2.php', __FILE__, true); 18 45 if (!getid3_lib::intValueSupported($OldThisFileInfo['filesize'])) { 46 $this->errors[] = 'Unable to write ID3v2 because file is larger than '.round(PHP_INT_MAX / 1073741824).'GB'; 47 fclose($fp_source); 64 65 if (is_readable($this->filename) && is_writable($this->filename) && is_file($this->filename) && ($fp = fopen($this->filename, 'r+b'))) { 66 rewind($fp);module.tag.xmp.php https://gitlab.com/x33n/ampache | PHP | 768 lines
1<?php 2///////////////////////////////////////////////////////////////// 10// // 11// module.tag.xmp.php // 12// module for analyzing XMP metadata (e.g. in JPEG files) // 19// Bundled into getID3 with permission // 20// called by getID3 in module.graphic.jpg.php // 21// /// 94 // does not work with files fetched over http or ftp. 95 if (is_readable($filename) && is_file($filename) && ($filehnd = fopen($filename, 'rb'))) { 96 // great 214 215 return trim($xmp_data); // trim() should not be neccesary, but some files found in the wild with null-terminated block (known samples from Apple Aperture) causes problems elsewhere (see http://www.getid3.org/phpBB3/viewtopic.php?f=4&t=1153) 216 }getid3.php https://gitlab.com/x33n/ampache | PHP | 1393 lines
123 if (version_compare(PHP_VERSION, $required_php_version, '<')) { 124 $this->startup_error .= 'getID3() requires PHP v'.$required_php_version.' or higher - you are running v'.PHP_VERSION; 125 return false; 141 } elseif ($this->memory_limit <= 12582912) { 142 $this->startup_warning .= 'PHP has less than 12MB available memory and might run out if all modules are loaded. Increase memory_limit in php.ini'; 143 } 269 // open local file 270 //if (is_readable($filename) && is_file($filename) && ($this->fp = fopen($filename, 'rb'))) { // see http://www.getid3.org/phpBB3/viewtopic.php?t=1720 271 if ((is_readable($filename) || file_exists($filename)) && is_file($filename) && ($this->fp = fopen($filename, 'rb'))) { 312 fclose($this->fp); 313 throw new getid3_exception('Unable to determine actual filesize. File is most likely larger than '.round(PHP_INT_MAX / 1073741824).'GB and is not supported by PHP.'); 314 } elseif (getid3_lib::intValueSupported($real_filesize)) { 316 fclose($this->fp); 317 throw new getid3_exception('PHP seems to think the file is larger than '.round(PHP_INT_MAX / 1073741824).'GB, but filesystem reports it as '.number_format($real_filesize, 3).'GB, please report to info@getid3.org'); 318 }local.catalog.php https://gitlab.com/x33n/ampache | PHP | 812 lines
1<?php 2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ 194 // Make sure the path is readable/exists 195 if (!Core::is_readable($path)) { 196 debug_event('catalog', 'Cannot add catalog at unopenable path ' . $path, 1); 343 344 if (!Core::is_readable($full_file)) { 345 // not readable, warn user 434 if (!defined('SSE_OUTPUT')) { 435 require AmpConfig::get('prefix') . '/templates/show_adds_catalog.inc.php'; 436 flush();install.lib.php https://gitlab.com/x33n/ampache | PHP | 514 lines
1<?php 2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ 110{ 111 if (!is_readable($file)) { 112 $file .= '.dist'; 261{ 262 $config_file = AmpConfig::get('prefix') . '/config/ampache.cfg.php'; 263 294 $browser = new Horde_Browser(); 295 $browser->downloadHeaders('ampache.cfg.php', 'text/plain', false, strlen($final)); 296 echo $final; 351 352 $whereIsCommand = (PHP_OS == 'WINNT') ? 'where' : 'which'; 353 $process = proc_open(dialog.php https://gitlab.com/staging06/myproject | PHP | 1225 lines
1<?php 2include('config/config.php'); 6if (isset($_POST['submit'])) { 7 include('upload.php'); 8} else { 8} else { 9 include('include/utils.php'); 10 82 } 83 if (file_exists($current_path.$parent.'config.php')) { 84 require_once($current_path.$parent.'config.php'); 147 148 $language_file = 'lang/'.$default_language.'.php'; 149 if ($lang != $default_language) { 150 $path_parts = pathinfo($lang); 151 if (is_readable('lang/'.$path_parts['basename'].'.php')) { 152 $language_file = 'lang/'.$path_parts['basename'].'.php';gd.thumbnail.inc.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 950 lines
1<?php 2/** 2/** 3 * gd.thumbnail.inc.php 4 * 12/** 13 * PHP class for dynamically resizing, cropping, and rotating images for thumbnail purposes and either displaying them on-the-fly or saving them. 14 * 118 echo 'You do not have the GD Library installed. This class requires the GD library to function properly.' . "\n"; 119 echo 'visit http://us2.php.net/manual/en/ref.image.php for more information'; 120 exit; 139 //check to see if file is readable 140 elseif(!is_readable($this->fileName)) { 141 $this->errmsg = 'File is not readable';class.add-from-server.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 678 lines
1<?php 2class add_from_server { 69 if ( $this->user_allowed() ) 70 $links[] = '<a href="' . admin_url('upload.php?page=add-from-server') . '">' . __('Import Files', 'add-from-server') . '</a>'; 71 if ( current_user_can('manage_options') ) 71 if ( current_user_can('manage_options') ) 72 $links[] = '<a href="' . admin_url('options-general.php?page=add-from-server-settings') . '">' . __('Options', 'add-from-server') . '</a>'; 73 135 136 include 'class.add-from-server-settings.php'; 137 $this->settings = new add_from_server_settings(&$this); 218 } 219 if ( !is_dir($o) || !is_readable($o) ) { 220 add_settings_error('general', 'update_failed', __('The root path specified could not be read.', 'add-from-server'), 'error'); 427 428 if ( ! is_readable($cwd) && is_readable( $this->get_root() . '/' . ltrim($cwd, '/') ) ) 429 $cwd = $this->get_root() . '/' . ltrim($cwd, '/');core.php https://gitlab.com/Blueprint-Marketing/wp-cli | PHP | 1034 lines
123 public function download( $args, $assoc_args ) { 124 if ( !isset( $assoc_args['force'] ) && is_readable( ABSPATH . 'wp-load.php' ) ) 125 WP_CLI::error( 'WordPress files seem to already be present here.' ); 302 * [--extra-php] 303 * : If set, the command copies additional PHP code into wp-config.php from STDIN. 304 * 312 * 313 * # Standard wp-config.php file 314 * wp core config --dbname=testing --dbuser=wp --dbpass=securepswd --locale=ro_RO 316 * # Enable WP_DEBUG and WP_DEBUG_LOG 317 * wp core config --dbname=testing --dbuser=wp --dbpass=securepswd --extra-php <<PHP 318 * define( 'WP_DEBUG', true ); 353 if ( isset( $assoc_args['extra-php'] ) && $assoc_args['extra-php'] === true ) { 354 $assoc_args['extra-php'] = file_get_contents( 'php://stdin' ); 355 }Runner.php https://gitlab.com/Blueprint-Marketing/wp-cli | PHP | 708 lines
104 /** 105 * Attempts to find the path to the WP install inside index.php 106 * 112 113 if ( !preg_match( '|^\s*require\s*\(?\s*(.+?)/wp-blog-header\.php([\'"])|m', $index_code, $matches ) ) { 114 return false; 324 /** 325 * Returns wp-config.php code, skipping the loading of wp-settings.php 326 * 347 if ( !$found_wp_settings ) { 348 WP_CLI::error( 'Strange wp-config.php file: wp-settings.php is not loaded directly.' ); 349 } 476 private function wp_exists() { 477 return is_readable( ABSPATH . 'wp-includes/version.php' ); 478 }advanced-cache.php https://gitlab.com/Blueprint-Marketing/vip-quickstart | PHP | 523 lines
1<?php 2if ( is_readable( dirname( __FILE__ ) . '/batcache-stats.php' ) ) 3 require_once dirname( __FILE__ ) . '/batcache-stats.php'; 41class batcache { 42 // This is the base configuration. You can edit these variables or move them into your wp-config.php file. 43 var $max_age = 300; // Expire batcache items aged this many seconds (zero to disable batcache) 158 159 // PHP5 and objects disappearing before output buffers? 160 wp_cache_init(); 161 162 // Remember, $wp_object_cache was clobbered in wp-settings.php so we have to repeat this. 163 $this->configure_groups(); 319 array( 320 'wp-app.php', 321 'xmlrpc.php',sqlite.inc.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 673 lines
1<?php 2$drivers["sqlite"] = "SQLite 3"; 188 function select_db($filename) { 189 if (is_readable($filename) && $this->query("ATTACH " . $this->quote(ereg("(^[/\\\\]|:)", $filename) ? $filename : dirname($_SERVER["SCRIPT_FILENAME"]) . "/$filename") . " AS a")) { // is_readable - SQLite 3 190 $this->Min_SQLite($filename); 354 function check_sqlite_name($name) { 355 // avoid creating PHP files on unsecured servers 356 global $connection;tsrm_virtual_cwd.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 792 lines
1#include "hphp/runtime/ext_zend_compat/php-src/TSRM/tsrm_virtual_cwd.h" 2 2 3#include "hphp/runtime/ext/std/ext_std_file.h" 4 19CWD_API char *tsrm_realpath(const char *path, char *real_path TSRMLS_DC) { 20 HPHP::Variant rp = HPHP::HHVM_FN(realpath)(path); 21 if (rp.isBoolean()) { 25 26 HPHP::StringData *ret = rp.getStringData(); 27 37 38#ifdef PHP_WIN32 39static inline unsigned long realpath_cache_key(const char *path, int path_len TSRMLS_DC) /* {{{ */ 71/* }}} */ 72#endif /* defined(PHP_WIN32) */ 73utils.php https://gitlab.com/Blueprint-Marketing/cli | PHP | 665 lines
261function is_windows() { 262 $is_windows = (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN'); 263 return $is_windows; 321function load_all_commands() { 322 $cmd_dir = TERMINUS_ROOT . '/php/commands'; 323 341function load_command($name) { 342 $path = TERMINUS_ROOT . "/php/commands/$name.php"; 343 343 344 if (is_readable($path)) { 345 include_once $path; 355 if (strpos(TERMINUS_ROOT, 'phar:') === 0) { 356 require TERMINUS_ROOT . '/vendor/autoload.php'; 357 return;getid3.php https://gitlab.com/webkod3r/tripolis | PHP | 1402 lines
20} 21// Workaround Bug #39923 (https://bugs.php.net/bug.php?id=39923) 22if (!defined('IMG_JPG') && defined('IMAGETYPE_JPEG')) { 134 } elseif ($this->memory_limit <= 12582912) { 135 $this->startup_warning .= 'PHP has less than 12MB available memory and might run out if all modules are loaded. Increase memory_limit in php.ini'; 136 } 262 // open local file 263 //if (is_readable($filename) && is_file($filename) && ($this->fp = fopen($filename, 'rb'))) { // see http://www.getid3.org/phpBB3/viewtopic.php?t=1720 264 if ((is_readable($filename) || file_exists($filename)) && is_file($filename) && ($this->fp = fopen($filename, 'rb'))) { 309 fclose($this->fp); 310 throw new getid3_exception('PHP seems to think the file is larger than '.round(PHP_INT_MAX / 1073741824).'GB, but filesystem reports it as '.number_format($real_filesize, 3).'GB, please report to info@getid3.org'); 311 } 312 $this->info['filesize'] = $real_filesize; 313 $this->warning('File is larger than '.round(PHP_INT_MAX / 1073741824).'GB (filesystem reports it as '.number_format($real_filesize, 3).'GB) and is not properly supported by PHP.'); 314 }class-wp-theme.php https://gitlab.com/webkod3r/tripolis | PHP | 1373 lines
1<?php 2/** 205 if ( ! isset( self::$persistently_cache ) ) { 206 /** This action is documented in wp-includes/theme.php */ 207 self::$persistently_cache = apply_filters( 'wp_cache_themes_persistently', false, 'WP_Theme' ); 250 return; 251 } elseif ( ! is_readable( $this->theme_root . '/' . $theme_file ) ) { 252 $this->headers['Name'] = $this->stylesheet; 269 $this->template = $this->stylesheet; 270 if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet . '/index.php' ) ) { 271 $error_message = sprintf( 271 $error_message = sprintf( 272 /* translators: 1: index.php, 2: Codex URL, 3: style.css */ 273 __( 'Template is missing. Standalone themes need to have a %1$s template file. <a href="%2$s">Child themes</a> need to have a Template header in the %3$s stylesheet.' ), 273 __( 'Template is missing. Standalone themes need to have a %1$s template file. <a href="%2$s">Child themes</a> need to have a Template header in the %3$s stylesheet.' ), 274 '<code>index.php</code>', 275 __( 'https://codex.wordpress.org/Child_Themes' ),class-wc-api-products.php https://gitlab.com/webkod3r/tripolis | PHP | 1440 lines
1<?php 2/** 123 124 if ( ! $this->is_readable( $product_id ) ) { 125 continue;class-wc-api-orders.php https://gitlab.com/webkod3r/tripolis | PHP | 1546 lines
1<?php 2/** 119 120 if ( ! $this->is_readable( $order_id ) ) { 121 continue;class-wc-api-coupons.php https://gitlab.com/webkod3r/tripolis | PHP | 581 lines
1<?php 2/** 84 85 if ( ! $this->is_readable( $coupon_id ) ) { 86 continue;class-wc-api-products.php https://gitlab.com/webkod3r/tripolis | PHP | 542 lines
1<?php 2/** 82 83 if ( ! $this->is_readable( $product_id ) ) 84 continue;class-wc-api-customers.php https://gitlab.com/webkod3r/tripolis | PHP | 832 lines
1<?php 2/** 119 120 if ( ! $this->is_readable( $user_id ) ) { 121 continue;mf_tiny_mce.php https://bitbucket.org/rossberenson/michael-karas.git | PHP | 327 lines
1<?php 2 3/** 4 * Direct copy from latest Wordpress 3.2 wp-admin/includes/post.php 5 * This was deprecated in 3.3, but we need it 13 * 14 * TinyMCE is loaded separately from other Javascript by using wp-tinymce.php. It outputs concatenated 15 * and optionaly pre-compressed version of the core and all default plugins. Additional plugins are loaded 36 The + sign marks the default language. More information: 37 http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker 38 */ 62 include path to the file. The language file should follow the same format as 63 /tinymce/langs/wp-langs.php and should define a variable $strings that 64 holds all translated strings. 74 foreach ( $mce_external_languages as $name => $path ) { 75 if ( @is_file($path) && @is_readable($path) ) { 76 include_once($path);Filesystem.php https://bitbucket.org/Nemcio/kloxo-mr.git | PHP | 804 lines
1<?php 2 2 3require_once "HTTP/WebDAV/Server.php"; 4require_once "System.php"; 9 * @access public 10 * @author Hartmut Holzgraefe <hartmut@php.net> 11 * @version @package-version@ 194 $info["props"][] = $this->mkprop("resourcetype", ""); 195 if (is_readable($fspath)) { 196 $info["props"][] = $this->mkprop("getcontenttype", $this->_mimetype($fspath)); 233 // check method depends on operating system 234 if (!strncmp(PHP_OS, "WIN", 3)) { 235 // on Windows an appropriate COM or EXE file needs to existsfValidatedFile.class.php https://github.com/bheneka/gitta.git | PHP | 657 lines
1<?php 2 91 92 if (!is_readable($directory)) 93 {sfController.class.php https://github.com/bheneka/gitta.git | PHP | 513 lines
1<?php 2 96 // plugin module enabled? 97 if ($checkEnabled && !in_array($moduleName, sfConfig::get('sf_enabled_modules')) && is_readable($dir)) 98 { 107 $classSuffix = ucfirst(strtolower($extension)); 108 $file = $dir.'/'.$controllerName.$classSuffix.'.class.php'; 109 if (is_readable($file)) 118 119 $module_file = $dir.'/'.$classFile.'s.class.php'; 120 if (is_readable($module_file)) 215 { 216 // check for a module config.php 217 $moduleConfig = sfConfig::get('sf_app_module_dir').'/'.$moduleName.'/config/config.php'; 217 $moduleConfig = sfConfig::get('sf_app_module_dir').'/'.$moduleName.'/config/config.php'; 218 if (is_readable($moduleConfig)) 219 {sfProjectConfiguration.class.php https://github.com/bheneka/gitta.git | PHP | 635 lines
1<?php 2 87 88 if (is_readable($file = sprintf('%s/config/%s.class.php', $path, $class))) 89 { 247 { 248 if (is_readable($dir.'/'.$path)) 249 { 295 { 296 if (is_readable($file)) 297 {sfApplicationConfiguration.class.php https://github.com/bheneka/gitta.git | PHP | 700 lines
1<?php 2 57 58 if (file_exists($file = sfConfig::get('sf_app_cache_dir').'/config/configuration.php')) 59 { 170 && 171 is_readable($config = $configuration->getRootDir().'/config/config.php') 172 ) 226 $files = array( 227 sfConfig::get('sf_app_config_dir').'/unavailable.php', 228 sfConfig::get('sf_config_dir').'/unavailable.php', 228 sfConfig::get('sf_config_dir').'/unavailable.php', 229 sfConfig::get('sf_web_dir').'/errors/unavailable.php', 230 $this->getSymfonyLibDir().'/exception/data/unavailable.php', 234 { 235 if (is_readable($file)) 236 {class-getid3.php https://bitbucket.org/lordmuffin/origin.git | PHP | 1403 lines
89 public $option_sha1_data = false; // Get SHA1 sum of data part - slow 90 public $option_max_2gb_check = null; // Check whether file is larger than 2GB and thus not supported by 32-bit PHP (null: auto-detect based on PHP_INT_MAX) 91 117 if (version_compare(PHP_VERSION, $required_php_version, '<')) { 118 $this->startup_error .= 'getID3() requires PHP v'.$required_php_version.' or higher - you are running v'.PHP_VERSION; 119 return false; 288 fclose($this->fp); 289 throw new getid3_exception('Unable to determine actual filesize. File is most likely larger than '.round(PHP_INT_MAX / 1073741824).'GB and is not supported by PHP.'); 290 } elseif (getid3_lib::intValueSupported($real_filesize)) { 292 fclose($this->fp); 293 throw new getid3_exception('PHP seems to think the file is larger than '.round(PHP_INT_MAX / 1073741824).'GB, but filesystem reports it as '.number_format($real_filesize, 3).'GB, please report to info@getid3.org'); 294 } 295 $this->info['filesize'] = $real_filesize; 296 $this->error('File is larger than '.round(PHP_INT_MAX / 1073741824).'GB (filesystem reports it as '.number_format($real_filesize, 3).'GB) and is not properly supported by PHP.'); 297 }langcheck.php https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | PHP | 666 lines
1<?php 2/** 8 * @author Nigel McNie 9 * @version $Id: langcheck.php 1971 2008-12-25 15:14:14Z benbe $ 10 */ 119<h2>GeSHi Language File Validation Script</h2> 120<p>To use this script, make sure that <strong>geshi.php</strong> is in the 121parent directory or in your include_path, and that the language files are in a 127<ol> 128<li>Checking where to find GeSHi installation ... <?php 129// Rudimentary checking of where GeSHi is. In a default install it will be in ../, but 131// we can reasonably guess. 132if (is_readable('../geshi.php')) { 133 $path = '../'; 133 $path = '../'; 134} elseif (is_readable('geshi.php')) { 135 $path = './';utils.php https://gitlab.com/angrydevops/workerpro | PHP | 1063 lines
1<?php 2 7 8require dirname(__FILE__) . '/Response.php'; 9 33 || file_exists($_SESSION['RF']['language_file']) === false 34 || ! is_readable($_SESSION['RF']['language_file']) 35 ) 44 45 $language_file = dirname(dirname(__FILE__)) . '/lang/' . $default_language . '.php'; 46 if ($lang != $default_language) 49 50 if (is_readable(dirname(dirname(__FILE__)) . '/lang/' . $path_parts['basename'] . '.php')) 51 { 215 { 216 require_once('php_image_magician.php'); 217 $magicianObj = new imageLib($imgfile);Ftp.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 509 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 */ 246 } 247 if(!is_readable($local)) { 248 throw new Exception("Local file is not readable: {$localFile}"); 444 /** 445 * Get directory contents in PHP array 446 *svg_font.php https://github.com/fusenigk/mantisbt-1.git | PHP | 298 lines
1<?php 2/** 88 // Check for existance of font file 89 if ( !is_file( $fontPath ) || !is_readable( $fontPath ) ) 90 {browser.php https://gitlab.com/ptisky/API_prestashop | PHP | 945 lines
1<?php 2/** 67 68 !is_readable($thumbsDir) || 69 !dir::isWritable($thumbsDir) || 127 $dir = $this->config['uploadDir'] . "/" . $this->session['dir']; 128 if (($type != $this->type) || !is_dir($dir) || !is_readable($dir)) 129 $this->session['dir'] = $this->type; 153 $dir = "{$this->typeDir}/{$_GET['dir']}"; 154 if ($this->checkFilePath($dir) && is_dir($dir) && is_readable($dir)) 155 $this->session['dir'] = path::normalize("{$this->type}/{$_GET['dir']}"); 185 // Create thumbnail 186 if (!is_file($file) || !is_readable($file)) { 187 $file = "$dir/{$_GET['file']}"; 187 $file = "$dir/{$_GET['file']}"; 188 if (!is_file($file) || !is_readable($file)) 189 $this->sendDefaultThumb($file);getid3.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 1417 lines
128 if (version_compare(PHP_VERSION, $required_php_version, '<')) { 129 $this->startup_error .= 'getID3() requires PHP v'.$required_php_version.' or higher - you are running v'.PHP_VERSION; 130 return false; 146 } elseif ($this->memory_limit <= 12582912) { 147 $this->startup_warning .= 'PHP has less than 12MB available memory and might run out if all modules are loaded. Increase memory_limit in php.ini'; 148 } 313 fclose($this->fp); 314 throw new getid3_exception('Unable to determine actual filesize. File is most likely larger than '.round(PHP_INT_MAX / 1073741824).'GB and is not supported by PHP.'); 315 } elseif (getid3_lib::intValueSupported($real_filesize)) { 317 fclose($this->fp); 318 throw new getid3_exception('PHP seems to think the file is larger than '.round(PHP_INT_MAX / 1073741824).'GB, but filesystem reports it as '.number_format($real_filesize, 3).'GB, please report to info@getid3.org'); 319 } 320 $this->info['filesize'] = $real_filesize; 321 $this->error('File is larger than '.round(PHP_INT_MAX / 1073741824).'GB (filesystem reports it as '.number_format($real_filesize, 3).'GB) and is not properly supported by PHP.'); 322 }compresseur.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 328 lines
1<?php 2 76 // et si il est lisible 77 AND @is_readable($src2) 78 ) 119 AND ( 120 // regarder si c'est du format spip.php?page=xxx 121 preg_match(',^('.$dir.')(.*)$,', $src, $r) 128 // et si il est lisible 129 AND @is_readable($src2) 130 )file.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 385 lines
1<?php 2/** 2/** 3 * @version $Id: file.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla.Framework 6 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 86 //Check src path 87 if (!is_readable($src)) { 88 JError::raiseWarning(21, 'JFile::copy: ' . JText::_('Cannot find or read file') . ": '$src'"); 195 //Check src path 196 if (!is_readable($src) && !is_writable($src)) { 197 JError::raiseWarning(21, 'JFile::move: ' . JText::_('Cannot find, read or write file') . ": '$src'");browser.php https://bitbucket.org/hamaswa/destinationgreece.git | PHP | 873 lines
1<?php 2 9 * @copyright 2010, 2011 KCFinder Project 10 * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 11 * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 40 41 !is_readable($thumbsDir) || 42 !dir::isWritable($thumbsDir) || 96 $dir = $this->config['uploadDir'] . "/" . $this->session['dir']; 97 if (($type != $this->type) || !is_dir($dir) || !is_readable($dir)) 98 $this->session['dir'] = $this->type; 119 is_dir("{$this->typeDir}/{$this->get['dir']}") && 120 is_readable("{$this->typeDir}/{$this->get['dir']}") 121 ) 149 $file = "{$this->thumbsDir}/{$this->type}/{$this->get['dir']}/$file"; 150 if (!is_file($file) || !is_readable($file)) { 151 $file = "{$this->config['uploadDir']}/{$this->type}/{$this->get['dir']}/" . basename($file);getid3.php https://github.com/KenBoyer/CompactCMS.git | PHP | 1392 lines
118 $required_php_version = '5.0.5'; 119 if (!function_exists('version_compare') || version_compare(PHP_VERSION, $required_php_version, '<')) { 120 // version_compare not available before PHP v4.1.0, so don't use for first version checking 120 // version_compare not available before PHP v4.1.0, so don't use for first version checking 121 $this->startup_error .= 'getID3() requires PHP v'.$required_php_version.' or higher - you are running v'.PHP_VERSION; 122 return false; 265 if (GETID3_OS_ISWINDOWS) { 266 $errormessage .= 'PHP does not have iconv() support. Please enable php_iconv.dll in php.ini, and copy iconv.dll from c:/php/dlls to c:/windows/system32'; 267 } else { 328 fclose($fp); 329 return $this->error('PHP seems to think the file is larger than '.round(PHP_INT_MAX / 1073741824).'GB, but filesystem reports it as '.number_format($real_filesize, 3).'GB, please report to info@getid3.org'); 330 } 331 $this->info['filesize'] = $real_filesize; 332 $this->error('File is larger than '.round(PHP_INT_MAX / 1073741824).'GB (filesystem reports it as '.number_format($real_filesize, 3).'GB) and is not properly supported by PHP.'); 333 }RandomImageGenerator.php https://github.com/daevid/MWFork.git | PHP | 463 lines
1<?php 2 4 * RandomImageGenerator -- does what it says on the tin. 5 * Requires Imagick, the ImageMagick library for PHP, or the command line equivalent (usually 'convert'). 6 * 83 as $dictionaryFile ) { 84 if ( is_file( $dictionaryFile ) and is_readable( $dictionaryFile ) ) { 85 $this->dictionaryFile = $dictionaryFile; 248 /** 249 * Based on an image specification, write such an image to disk, using Imagick PHP extension 250 * @param $spec: spec describing background and circles to drawDatabaseSqlite.php https://github.com/daevid/MWFork.git | PHP | 907 lines
1<?php 2/** 77 $fileName = self::generateFileName( $wgSQLiteDataDir, $dbName ); 78 if ( !is_readable( $fileName ) ) { 79 $this->mConn = false;