100+ results results for 'php is_writable repo:Arantor/Elkarte' (206 ms)
1<?php 2 if(!defined('AJAX_INIT_DONE')) 5 } 6?><?php 7 /** 9 * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn) 10 * @link www.phpletter.com 11 * @since 22/April/2007 42 $this->fileInfo['name'] = basename($path); 43 $this->fileInfo['is_writable'] = $this->isWritable(); 44 $this->fileInfo['is_readable'] = $this->isReadable(); 63 $this->fileInfo['mtime'] = $this->fileStat[9]; 64 $this->fileInfo['is_writable'] = $this->isWritable(); 65 $this->fileInfo['is_readable'] = $this->isReadable(); 119 { 120 return @is_writable(slashToBackslash($path)); 121 }AkLogger.php http://akelosframework.googlecode.com/svn/trunk/ | PHP | 260 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 3 4// WARNING. This is experimental. We might replace this by Logger4PHP 5 20 21require_once(AK_LIB_DIR.DS.'Ak.php'); 22 139 $filename = $this->error_file; 140 if(!is_writable($filename)){ 141 clearstatcache(); 142 Ak::file_put_contents($filename,''); 143 if(!is_writable($filename)){ 144 trigger_error($this->internalError($this->t('Error writing file: %filename Description:',array('%filename'=>$filename)).$error_message,__FILE__,__LINE__), E_USER_NOTICE);Variants.php git://github.com/c9s/phpbrew.git | PHP | 500 lines
1<?php 2namespace PhpBrew; 2namespace PhpBrew; 3use PhpBrew\Utils; 4use Exception; 18 /** 19 * target php version 20 */ 51 public $conflicts = array( 52 // PHP Version lower than 5.4.0 can only built one SAPI at the same time. 53 'apxs2' => array( 'fpm','cgi' ), 187 if( $apxs && $libdir = trim( Utils::pipe_execute( "$apxs -q LIBEXECDIR" ) ) ) { 188 if( false === is_writable($libdir) ) { 189 $msg = array(); 193 if( $apxs && $confdir = trim( Utils::pipe_execute( "$apxs -q SYSCONFDIR" ) ) ) { 194 if( false === is_writable($confdir) ) { 195 $msg = array();search.php git://github.com/phpbb/customisation-db.git | PHP | 406 lines
1<?php 2/** 4* @package Titania 5* @copyright (c) 2008 phpBB Customisation Database Team 6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License, version 2 24 25// Using the phpBB ezcomponents loader 26titania::_include('library/ezcomponents/loader', false, 'phpbb_ezcomponents_loader'); 26titania::_include('library/ezcomponents/loader', false, 'phpbb_ezcomponents_loader'); 27phpbb_ezcomponents_loader::load_component('search'); 28 57 { 58 if (!is_writable(TITANIA_ROOT . self::store_path)) 59 { 264 // For those without moderator permissions do not display unapproved stuff 265 if (!phpbb::$auth->acl_get('m_')) 266 {file_helper.php git://github.com/philsturgeon/codeigniter-restserver.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))) 314 // There are known problems using is_weritable on IIS. It may not be reliable - consider fileperms() 315 $fileinfo['writable'] = is_writable($file); 316 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 {add.php https://code.google.com/p/osclass/ | PHP | 197 lines
39 <div class="appearance"> 40 <h2 class="render-title"><?php _e('Add new theme') ; ?></h2> 41 <div id="upload-themes" class="ui-osc-tabs-panel"> 42 <div class="form-horizontal"> 43 <?php if( is_writable( osc_themes_path() ) ) { ?> 44 <div class="flashmessage flashmessage-info flashmessage-inline" style="display: block;"> 56 <div class="form-actions"> 57 <input type="submit" value="<?php echo osc_esc_html( __('Upload') ) ; ?>" class="btn btn-submit" /> 58 </div> 82 <tr class="table-first-row"> 83 <td><?php _e('Name') ; ?></td> 84 <td><span id="market_name"><?php _e("Loading data"); ?></span></td> 86 <tr class="even"> 87 <td><?php _e('Version') ; ?></td> 88 <td><span id="market_version"><?php _e("Loading data"); ?></span></td> 196 <!-- /themes list --> 197<?php osc_current_admin_theme_path('parts/footer.php') ; ?>step_2.tpl http://coderstalk.googlecode.com/svn/trunk/ | Smarty Template | 143 lines
21 <td>5.0+</td> 22 <td align="center"><?php echo (phpversion() >= '5.0') ? '<img src="view/image/good.png" alt="Good" />' : '<img src="view/image/bad.png" alt="Bad" />'; ?></td> 23 </tr> 114 <td><?php echo $logs . '/'; ?></td> 115 <td><?php echo is_writable($logs) ? '<span class="good">Writable</span>' : '<span class="bad">Unwritable</span>'; ?></td> 116 </tr> 118 <td><?php echo $image . '/'; ?></td> 119 <td><?php echo is_writable($image) ? '<span class="good">Writable</span>' : '<span class="bad">Unwritable</span>'; ?></td> 120 </tr> 122 <td><?php echo $image_cache . '/'; ?></td> 123 <td><?php echo is_writable($image_cache) ? '<span class="good">Writable</span>' : '<span class="bad">Unwritable</span>'; ?></td> 124 </tr> 126 <td><?php echo $download . '/'; ?></td> 127 <td><?php echo is_writable($download) ? '<span class="good">Writable</span>' : '<span class="bad">Unwritable</span>'; ?></td> 128 </tr>plain.class.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 325 lines
1<?php 2/** 10define('DOKU_AUTH', dirname(__FILE__)); 11require_once(DOKU_AUTH.'/basic.class.php'); 12 12 13define('AUTH_USERFILE',DOKU_CONF.'users.auth.php'); 14 31 }else{ 32 if(@is_writable(AUTH_USERFILE)){ 33 $this->cando['addUser'] = true;File.php http://kancms.googlecode.com/svn/trunk/ | PHP | 390 lines
1<?php 2 46 // throw if directory is not writable 47 if( !is_writable($dirname) ) { 48 return array('type' => 'error', 'message' => 'Upload Directory Is Not Writable'); 105 // throw if directory is not writable 106 if( !is_writable($dirname) ) { 107 return array('type' => 'error', 'message' => 'Upload Directory Is Not Writable'); 240 * - Supporting callback function 241 * - May prevent some issues on shared enviroments : http://us3.php.net/umask 242 * @param $source //file or folderfile.class.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 315 lines
1<?php 2/** 2/** 3 * file.class.php 4 * 22 23require_once dirname(__FILE__) . "/../pfccontainerinterface.class.php"; 24 65 66 // test the filemtime php function because it doesn't work on special filesystem 67 // example : NFS, VZFS 69 $timetowait = 2; 70 if (is_writable(dirname($filename))) 71 { 80 if ($time2 - $time1 != $timetowait) 81 $errors[] = "filemtime php fuction is not usable on your filesystem. Please do not use the 'file' container (try the 'mysql' container) or swith to another filesystem type."; 82 }xpdofilevehicle.class.php git://github.com/modxcms/revolution.git | PHP | 236 lines
1<?php 2/* 210 $body['name'] = $fileName; 211 if (!is_writable($fileTarget)) { 212 $cacheManager->writeTree($fileTarget); 213 } 214 if (file_exists($fileSource) && is_writable($fileTarget)) { 215 $copied = false;cm-config.php http://pacercms.googlecode.com/svn/trunk/ | PHP | 245 lines
4if (!file_exists('../includes/config-sample.php')) 5 die('Sorry, I need a <tt>config-sample.php</tt> file to work from. Please re-upload this file from your PacerCMS installation.'); 6 6 7$configFile = file('../includes/config-sample.php'); 8 8 9if (!is_writable('../includes/')) die("Sorry, I can't write to the <tt>./includes</tt> directory. You'll have to either change the permissions (<tt>chmod 777 includes/</tt>) on the directory or create your <tt>config.php</tt> manually."); 10 61if (file_exists('../includes/config.php')) 62 die("<p>The file 'config.php' already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='cm-install.php'>installing now</a>.</p></body></html>"); 63 75</ol> 76<p><strong>If for any reason this automatic file creation doesn't work, don't worry. All this does is fill in the database information to a configuration file. You may also simply open <code>config-sample.php</code> in a text editor, fill in your information, and save it as <code>config.php</code>. </strong></p> 77<p>In all likelihood, these items were supplied to you by your ISP. If you do not have this information, then you will need to contact them before you can continue. If you’re all ready, <a href="cm-config.php?step=1">let’s go</a>! </p>logService.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 439 lines
1<?php 2/** 2/** 3 * PHPOpenBiz Framework 4 * 11 * @copyright Copyright (c) 2005-2011, Rocky Swen 12 * @license http://www.opensource.org/licenses/bsd-license.php 13 * @link http://www.phpopenbiz.org/ 13 * @link http://www.phpopenbiz.org/ 14 * @version $Id: logService.php 4042 2011-05-01 06:36:18Z rockys $ 15 */ 16 17require_once 'Zend/Log.php'; 18require_once 'Zend/Log/Writer/Stream.php'; 122 return true; 123 //Adapt PHP LOG priority 124 switch ($priority)write.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 284 lines
1<?php 2 57 { 58 $include_lang = NV_ROOTDIR . "/modules/" . $module . "/language/admin_" . $dirlang . ".php"; 59 } 61 { 62 $include_lang = NV_ROOTDIR . "/modules/" . $module . "/language/" . $dirlang . ".php"; 63 } 65 { 66 $include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/admin_" . $module . ".php"; 67 } 69 { 70 $include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/" . $module . ".php"; 71 } 73 { 74 $include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/" . $module . ".php"; 75 }testenvironment.php http://scalr.googlecode.com/svn/ | PHP | 148 lines
1<? 2 $sapi_type = php_sapi_name(); 3 if (substr($sapi_type, 0, 3) == 'cli') 54 // 55 // Check php sessings 56 // 57 if (ini_get('safe_mode') == 1) 58 $err[] = "PHP safe mode enabled. Please disable it."; 59 60 if (ini_get('register_gloabls') == 1) 61 $err[] = "PHP register globals enabled. Please disable it."; 62 62 63 if (str_replace(".", "", PHP_VERSION) < 525) 64 $err[] = "PHP version must be 5.2.5 or greater.";Controller.php git://github.com/osCommerce/oscommerce.git | PHP | 122 lines
1<?php 2/** 68 foreach ( array('Cache', 'CoreUpdate', 'Database', 'Logs', 'Session', 'Temp') as $w ) { 69 if ( !is_writable(OSCOM::BASE_DIRECTORY . 'Work/' . $w) ) { 70 $work_dirs[] = $w;install_controller.php http://phpshop.googlecode.com/svn/trunk/ | PHP | 416 lines
1<?php 2/* SVN FILE: $Id: install_controller.php 418 2008-01-31 22:37:17Z pablo $ */ 3/** 6 * 7 * phpShop(tm) : A Simple Shopping Cart <http://www.phpshop.org/> 8 * Copyright 1998-2008, Edikon Corporation 16 * @copyright Copyright 1998-2008, Edikon Corporation 17 * @link http://www.edikon.com/ phpShop(tm) Project 18 * @package phpshop 29 * 30 * The controller class to install the phpShop application. 31 * Adapted this this file from - Cheesecake Photoblog 70 /* 71 * get the database details from user and create the database.php file 72 */DataCache.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 285 lines
1<?php 2 260 261 if (!is_writable($cacheFolder)) { 262 throw new KurogoDataException("Path $this->cacheFolder is not writable");CAssetManager.php http://chenjin.googlecode.com/svn/trunk/ | PHP | 305 lines
1<?php 2/** 30 * @author Qiang Xue <qiang.xue@gmail.com> 31 * @version $Id: CAssetManager.php 242 2012-03-29 15:18:01Z mole1230 $ 32 * @package system.web 47 * In particular, symbolic links are supported only on Linux/Unix, and Windows Vista/2008 or greater. 48 * The latter requires PHP 5.3 or greater. 49 * 67 * @var integer the permission to be set for newly generated asset files. 68 * This value will be used by PHP chmod function. 69 * Defaults to 0666, meaning the file is read-writable by all users. 74 * @var integer the permission to be set for newly generated asset directories. 75 * This value will be used by PHP chmod function. 76 * Defaults to 0777, meaning the directory can be read, written and executed by all users. 112 { 113 if(($basePath=realpath($value))!==false && is_dir($basePath) && is_writable($basePath)) 114 $this->_basePath=$basePath;ArtifactData.cpp git://github.com/gregsmirnov/bouml.git | C++ | 477 lines
52 java_src = model->java_src; 53 php_src = model->php_src; 54 python_src = model->python_src; 96void ArtifactData::use_default_php_src() { 97 php_src = GenerationSettings::php_default_source_content(); 98} 167 168void ArtifactData::send_php_def(ToolCom * com) { 169 com->write_string(php_src); 183 if (((unsigned char) args[-1]) >= firstSetCmd) { 184 if (!bn->is_writable() && !root_permission()) 185 com->write_ack(FALSE); 196 break; 197 case setPhpSrcCmd: 198 php_src = args;SiteController.php http://yuan-pad.googlecode.com/svn/ | PHP | 192 lines
1<?php 2/** 4 * @author rainyjune <rainyjune@live.cn> 5 * @version $Id: SiteController.php 5 2011-10-28 00:19:49Z rainyjune@live.cn $ 6 */ 55 $tips[]=t('CONFIG_FILE_NOTEXISTS',array('{config_file}'=>CONFIGFILE),$language); 56 elseif(!is_writable(CONFIGFILE)) 57 $tips[]=t('CONFIG_FILE_NOTWRITABLE',array('{config_file}'=>CONFIGFILE),$language); 57 $tips[]=t('CONFIG_FILE_NOTWRITABLE',array('{config_file}'=>CONFIGFILE),$language); 58 if(!is_writable(APPROOT.'/data/')) 59 $tips[]=t('DATADIR_NOT_WRITABLE', array(), $language); 81 if(!$formError){ 82 $url_string="<?php\n\$db_url = '$url';\n\$db_prefix = '$tbprefix';\n?>"; 83 file_put_contents(CONFIGFILE, $url_string); 93 } 94 if(file_exists(dirname(dirname(__FILE__)).'/install.php')){ 95 include dirname(dirname(__FILE__)).'/install.php';Editor.php https://code.google.com/p/molinos-cms/ | PHP | 243 lines
1<?php 2/** 211 212 if (!is_writable($this->folder)) 213 $this->sendError(500, "could not cache the image.");Upload.php git://github.com/panada/Panada.git | PHP | 496 lines
1<?php 2 7 * 8 * @license http://www.opensource.org/licenses/bsd-license.php 9 * @author Iskandar Soesman <k4ndar@yahoo.com> 175 2 => 'No folder located. Please define the folder location.', 176 3 => 'The uploaded file exceeds the upload_max_filesize directive in php.ini.', 177 4 => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.', 252 */ 253 if (!is_writable($this->folderLocation)) { 254 $this->_setErrorMessage(15); 370 /** 371 * Define file mime type. Original from Wordpress 3.0 get_allowed_mime_types() function in wp-includes/functions.php. 372 * 442 // php formats 443 'php|php4|php3|phtml' => 'application/x-httpd-php', 444 'phps' => 'application/x-httpd-php-source',InstallController.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 403 lines
111 'php' => array( 112 'test' => version_compare(PHP_VERSION, '5.2.8', '>='), 113 'msg' => __t('Your php version is not supported. check that your version is 5.2.8 or newer.') 123 'tmp_writable' => array( 124 'test' => is_writable(TMP), 125 'msg' => __t('tmp folder is not writable.') 139 'persistent_writable' => array( 140 'test' => is_writable(TMP . 'cache' . DS . 'persistent'), 141 'msg' => __t('tmp/cache/persistent folder is not writable.') 151 'core.php_writable' => array( 152 'test' => is_writable(ROOT . DS . 'Config' . DS . 'core.php'), 153 'msg' => __t('Config/core.php file is not writable.') 334 335 if (!copy(APP . 'Config' . DS . 'database.php.install', ROOT . DS . 'Config' . DS . 'database.php')) { 336 return false;Stream.php git://github.com/guzzle/guzzle.git | PHP | 316 lines
1<?php 2 7/** 8 * OO interface to PHP streams 9 */ 15 const IS_READABLE = 'is_readable'; 16 const IS_WRITABLE = 'is_writable'; 17 const SEEKABLE = 'seekable'; 90 $this->cache[self::IS_READABLE] = isset(self::$readWriteHash['read'][$this->cache['mode']]); 91 $this->cache[self::IS_WRITABLE] = isset(self::$readWriteHash['write'][$this->cache['mode']]); 92 } 221 { 222 return $this->cache[self::IS_WRITABLE]; 223 } 275 * @return bool Returns TRUE on success or FALSE on failure 276 * @link http://www.php.net/manual/en/function.fseek.php 277 */setting.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 792 lines
1<?php 2class ControllerSettingSetting extends Controller { 14 15 if (is_uploaded_file($this->request->files['config_logo']['tmp_name']) && is_writable(DIR_IMAGE) && is_writable(DIR_IMAGE . 'cache/')) { 16 move_uploaded_file($this->request->files['config_logo']['tmp_name'], DIR_IMAGE . $this->request->files['config_logo']['name']); 22 23 if (is_uploaded_file($this->request->files['config_icon']['tmp_name']) && is_writable(DIR_IMAGE) && is_writable(DIR_IMAGE . 'cache/')) { 24 move_uploaded_file($this->request->files['config_icon']['tmp_name'], DIR_IMAGE . $this->request->files['config_icon']['name']);product.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 1034 lines
1<?php 2class ControllerCatalogProduct extends Controller { 24 25 if (is_uploaded_file($this->request->files['image']['tmp_name']) && is_writable(DIR_IMAGE) && is_writable(DIR_IMAGE . 'cache/')) { 26 move_uploaded_file($this->request->files['image']['tmp_name'], DIR_IMAGE . $this->request->files['image']['name']); 34 foreach (array_keys($this->request->files['product_image']['name']) as $key) { 35 if (is_uploaded_file($this->request->files['product_image']['tmp_name'][$key]) && is_writable(DIR_IMAGE) && is_writable(DIR_IMAGE . 'cache/')) { 36 move_uploaded_file($this->request->files['product_image']['tmp_name'][$key], DIR_IMAGE . $this->request->files['product_image']['name'][$key]); 94 95 if (is_uploaded_file($this->request->files['image']['tmp_name']) && is_writable(DIR_IMAGE) && is_writable(DIR_IMAGE . 'cache/')) { 96 move_uploaded_file($this->request->files['image']['tmp_name'], DIR_IMAGE . $this->request->files['image']['name']); 104 foreach (array_keys($this->request->files['product_image']['name']) as $key) { 105 if (is_uploaded_file($this->request->files['product_image']['tmp_name'][$key]) && is_writable(DIR_IMAGE) && is_writable(DIR_IMAGE . 'cache/')) { 106 move_uploaded_file($this->request->files['product_image']['tmp_name'][$key], DIR_IMAGE . $this->request->files['product_image']['name'][$key]);antichat.php http://web-malware-collection.googlecode.com/svn/trunk/ | PHP | 873 lines
24} 25if(strtoupper(substr(PHP_OS, 0, 3))==='WIN') { 26 $os = 1; 68 69$act = array('viewer','editor','upload','shell','phpeval','download','delete','deletedir','brute','mysql');//here added new actions 70 74 elseif(!is_readable($file))$err="3"; 75 elseif(!is_writable($file)) { 76 $err="4"; 351} 352//phpeval 353if($action == 'phpeval') { 357 <?php<br> 358 <textarea name=\"phpev\" rows=\"5\" cols=\"150\">".@$_POST['phpev']."</textarea><br> 359 ?><br>Private-i3lue.php http://web-malware-collection.googlecode.com/svn/trunk/ | PHP | 1457 lines
1<?php 2/* 2/* 3 * webadmin.php - a simple Web-based file manager 4 * Copyright (C) 2002 Daniel Wacker <mail@wacker-welt.de> 29 30/* This directory is shown when you start webadmin.php. 31 * For example: './' would be the current directory. 216 <td><?php echo($words['symlink']); ?>: </td> 217 <td><input type="text" name="symlink" value="<?php echo(htmlentities(spath(dirname($symlinktarget)))); ?>" size="<?php $size = strlen($_GET['symlinktarget']) + 9; if ($size < 30) $size = 30; echo($size); ?>"></td> 218 </tr> 278 <td colspan="2" align="center" bgcolor="#EEEEEE"> 279 <a href="<?php echo("$self?" . SID . '&delete=' . urlencode($delete) . '&sure=TRUE'); ?>">[ <?php echo($words['yes']); ?> ]</a> 280 </td> 320 <td><?php echo($words['file']); ?>:</td> 321 <td><input type="text" name="permission" value="<?php echo(htmlentities($permission)); ?>" size="<?php echo(textfieldsize($permission)); ?>"></td> 322 <td><input type="submit" value="<?php echo($words['change']); ?>"></td>file.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 1051 lines
22 'tag.php' => __( 'Tag Template' ), 23 'category.php' => __( 'Category Template' ), 24 'page.php' => __( 'Page Template' ), 30 'functions.php' => __( 'Theme Functions' ), 31 'attachment.php' => __( 'Attachment Template' ), 32 'image.php' => __('Image Attachment Template'), 35 'application.php' => __('Application Attachment Template'), 36 'my-hacks.php' => __( 'my-hacks.php (legacy hacks support)' ), 37 '.htaccess' => __( '.htaccess (for rewrite rules )' ), 38 // Deprecated files 39 'wp-layout.css' => __( 'Stylesheet' ), 'wp-comments.php' => __( 'Comments Template' ), 'wp-comments-popup.php' => __( 'Popup Comments Template' )); 40 298 else 299 $error_msg = __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.' ); 300 return call_user_func($upload_error_handler, $file, $error_msg);misc.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 618 lines
1<?php 2/** 132 // else check for write access to the file. 133 if ((!file_exists($htaccess_file) && is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks()) || is_writable($htaccess_file)) { 134 if ( got_mod_rewrite() ) { 156 157 // Using win_is_writable() instead of is_writable() because of a bug in Windows PHP 158 if ( ( ! file_exists($web_config_file) && win_is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks() ) || win_is_writable($web_config_file) ) { 389 /* First we check if the DOMDocument class exists. If it does not exist, 390 * which is the case for PHP 4.X, then we cannot easily update the xml configuration file, 391 * hence we just bail out and tell user that pretty permalinks cannot be used. 391 * hence we just bail out and tell user that pretty permalinks cannot be used. 392 * This is not a big issue because PHP 4.X is going to be depricated and for IIS it 393 * is recommended to use PHP 5.X NTS. 395 * URL Rewrite 1.1 is loaded it always sets a server variable called 'IIS_UrlRewriteModule'. 396 * Lastly we make sure that PHP is running via FastCGI. This is important because if it runs 397 * via ISAPI then pretty permalinks will not work.mass-upload.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 1033 lines
3global $gallery_root; 4define('AL_FLM_PAGE', 'admin.php?page=lazyest-gallery/mass-upload.php'); 5get_artist_id_by_folder_name(); 125 126 <form action="<?php echo AL_FLM_PAGE; ?>&captions=<?php echo $capdir; ?>" method="post" enctype="multipart/form-data"> 127 <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_option('lg_fileupload_maxk') *1024 ?>" /> 179 </p> 180 <p><a href="<?php echo AL_FLM_PAGE; ?>&captions=<?php echo $capdir; ?>"><?php _e('Upload another') ?></a></p> 181 351 <div style="padding:5px;display:block;background:#efefef;border:1px solid #ccc;height:20px;"> 352 <a href="<?php echo AL_FLM_PAGE; ?>">« <?php _e('????? ? ?????? ?????', $lg_text_domain); ?></a> 353 </div> 363 364 <form name="gallery_captions" method="post" action="<?php echo AL_FLM_PAGE; ?>&captions=<?php echo $capdir; ?>"> 365 <input type="hidden" name="folder" value="<?php echo $act_current ?>"/>lazyest-captions.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 563 lines
159 <input type="hidden" name="img1" value="<?php echo $pathtofile2;?>" /> 160 <?php _e('Alternate name:') ?><br /><input type="text" name="imgalt" size="30" class="uploadform" value="<?php echo $img2_name;?>" /><br /> 161 <br /> 203 <?php _e('Size:') ?> 204 <?php echo round($img1_size / 1024, 2); ?> <?php _e('<abbr title="Kilobyte">KB</abbr>', $lg_text_domain) ?><br /> 205 <?php _e('Type:') ?> 207 </p> 208 <p><a href="options-general.php?page=lazyest-gallery/lazyest-admin.php&captions=<?php echo $capdir; ?>"><?php _e('Upload another') ?></a></p> 209 280 <div style="padding:5px;display:block;background:#efefef;border:1px solid #ccc;height:20px;"> 281 <a href="options-general.php?page=lazyest-gallery/lazyest-admin.php">« <?php _e('Admin page', $lg_text_domain); ?></a> 282 </div> 303 <li>» <a href="?page=lazyest-gallery/lazyest-admin.php&captions=<?php echo $act_current; ?>&file_to_delete=<?php echo $gallery_root.$act_current.get_option('lg_thumb_folder') ?>" class="delete" style="display:inline;"><?php _e('Empty thumbs cache', $lg_text_domain); ?></a></li> 304 <li>» <a href="?page=lazyest-gallery/lazyest-admin.php&captions=<?php echo $act_current; ?>&file_to_delete=<?php echo $gallery_root.$act_current.get_option('lg_slide_folder') ?>" class="delete" style="display:inline;"><?php _e('Empty slides cache', $lg_text_domain); ?></a></li> 305 </ul>lazyest-filemanager.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 804 lines
183 <input type="hidden" name="img1" value="<?php echo $pathtofile2;?>" /> 184 <?php _e('Alternate name:') ?><br /><input type="text" name="imgalt" size="30" class="uploadform" value="<?php echo $img2_name;?>" /><br /> 185 <br /> 219 <p><?php printf(__("Your file <code>%s</code> was uploaded successfully!", $lg_text_domain), $img1_name); ?></p> 220 <p><?php _e('Here’s the code to display it in your posts:', $lg_text_domain) ?></p> 221 <p><code><?php echo $piece_of_code; ?></code></p> 227 <?php _e('Size:') ?> 228 <?php echo round($img1_size / 1024, 2); ?> <?php _e('<abbr title="Kilobyte">KB</abbr>', $lg_text_domain) ?><br /> 229 <?php _e('Type:') ?> 231 </p> 232 <p><a href="<?php echo LG_FLM_PAGE; ?>&captions=<?php echo $capdir; ?>"><?php _e('Upload another') ?></a></p> 233 381 <div style="padding:5px;display:block;background:#efefef;border:1px solid #ccc;height:20px;"> 382 <a href="<?php echo LG_ADM_PAGE; ?>">« <?php _e('Admin page', $lg_text_domain); ?></a> 383 </div>upload.class.php http://adminserv.googlecode.com/svn/trunk/ | PHP | 526 lines
1<?php 2/** 31 public function save($path){ 32 // Ouverture du flux "input" de PHP et création d'un fichier temp 33 $input = fopen("php://input", "r"); 59 public function saveFTP($ftp_stream, $path, $filename){ 60 // Ouverture du flux "input" de PHP et création d'un fichier temp 61 $input = fopen("php://input", "r"); 84 $out = null; 85 // Ouverture du flux "input" de PHP et création d'un fichier temp 86 $input = fopen("php://input", "r"); 274 /** 275 * Convertie les Go, Mo ou Ko du php.ini en octets 276 */ 297 // Si on peut écrire dans le dossier de destination 298 if( !is_writable($uploadDirectory) ){ 299 return array('error' => 'Erreur du serveur. Le dossier de destination des uploads n\'est pas écrivable.');Graph.class.php git://pkgs.fedoraproject.org/pgfouine | PHP | 374 lines
1<?php 2/* 12// Some useful files 13require_once ARTICHOW."/common.php"; 14require_once ARTICHOW."/Component.class.php"; 14require_once ARTICHOW."/Component.class.php"; 15require_once ARTICHOW."/Image.class.php"; 16 16 17require_once ARTICHOW."/inc/Grid.class.php"; 18require_once ARTICHOW."/inc/Tools.class.php"; 18require_once ARTICHOW."/inc/Tools.class.php"; 19require_once ARTICHOW."/inc/Drawer.class.php"; 20require_once ARTICHOW."/inc/Math.class.php"; 20require_once ARTICHOW."/inc/Math.class.php"; 21require_once ARTICHOW."/inc/Tick.class.php"; 22require_once ARTICHOW."/inc/Axis.class.php";Image.php git://github.com/panada/Panada.git | PHP | 333 lines
1<?php 2 7 * 8 * @license http://www.opensource.org/licenses/bsd-license.php 9 * @author Iskandar Soesman <k4ndar@yahoo.com> 162 */ 163 if (!is_writable($this->folder)) { 164 $this->errorMessages[] = 'The folder '.$this->folder.' is not writable.';setup.php http://netputweets.googlecode.com/svn/trunk/ | PHP | 146 lines
8define('ABSPATH', dirname(__FILE__).'/'); 9$configFile = file(ABSPATH . 'config-sample.php'); 10$notice = ''; 14} elseif (file_exists(ABSPATH.'config.php')) { 15 $notice = '<strong>???</strong> config.php ???????????? config.php ????????????????????? config.php ?<a href="setup.php">??</a>?'; 16} elseif (!file_exists(ABSPATH.'config-sample.php')) { 49 display_header($notice); 50?><p><strong>??????????</strong><p /><a href="https://t.orzdream.com/">???</a>???????????? Twitter ??????? <a href="http://dabr.co.uk">Dabr</a> (By <a href="https://twitter.com/davidcarrington">@davidcarrington</a>) ?????????????? <a href="https://twitter.com/iChada">@iChada</a> <a href="https://twitter.com/17th">@17th</a> <a href="https://twitter.com/luosheng">@luosheng</a> <a href="https://twitter.com/lonelyswan">@LonelySwan</a> ???????????????????????? <a href="https://twitter.com/NetPuter">@NetPuter</a> ?<p />???????????????????????</p><ol><li>Twitter OAuth Consumer Key & Secret <a href="https://twitter.com/apps/new" title="????">#</a></li><li>Twitpic API Key <a href="http://dev.twitpic.com/apps/new" title="????">#</a></li><li>Twitter API Proxy <a href="http://code.google.com/p/twip/" title="????">#</a></li></ol><p><strong>??????????????????????????????????????????????????? <code>config-sample.php</code> ??????????????????????? <code>config.php</code> ?</strong></p><p>???????????<a href="http://orzdream.com/2009/10/netputweets-guide/" title="?????????">?????????</a>??????????????? <a href="https://twitter.com/NetPuter">@NetPuter</a> ????????? … …</p><?php 51 if ($notice !== ''){ 51 if ($notice !== ''){ 52 echo '<p class="step"><a href="setup.php" class="button">??????</a></p>'; 53 }else{ 58 display_header($notice); 59?><form method="post" action="setup.php?step=2"><p>????????????????</p><table class="form-table"><tr><th scope="row"><label for="t_title">??</label></th><td><input name="t_title" id="t_title" type="text" value="???!" size="35" /></td><td>??<a href="https://t.orzdream.com/settings">?? - ???!</a>?</td></tr><tr><th scope="row"><label for="t_urf">??</label></th><td><input name="t_urf" id="t_urf" type="text" value="<?php echo BASE_URL;?>" size="35" /></td><td>??????? ???? / ??</td></tr><tr><th scope="row"><label for="t_ck">Cookie ??</label></th><td><input name="t_ck" id="t_ck" type="text" size="35" value="NetPutweets" /></td><td>????????????????????????</td></tr><tr><th scope="row"><label for="t_tck">Twitter OAuth Consumer Key <a href="https://twitter.com/apps/new" title="????">#</a></label></th><td><input name="t_tck" id="t_tck" type="text" size="35" value="awGBKfiSSqf1B2iKGsmJQ" /></td><td>??????</td></tr><tr><th scope="row"><label for="t_tcs">Twitter OAuth Consumer Secret <a href="https://twitter.com/apps/new" title="????">#</a></label></th><td><input name="t_tcs" id="t_tcs" type="text" size="35" value="hym4qJF1F6nyjISzRUCFBU4OQSIr5mrk7074vId3K8" /></td><td>??????</td></tr><tr><th scope="row"><label for="t_tak">Twitpic API Key <a href="http://dev.twitpic.com/apps/new" title="????">#</a></label></th><td><input name="t_tak" id="t_tak" type="text" value="95a105b0faadab9daa1a5739d4f80992" size="35" /></td><td>???????</td></tr><tr><th scope="row"><label for="t_ta">Twitter API <a href="http://code.google.com/p/twip/" title="????">#</a></label></th><td><input name="t_ta" id="t_ta" type="text" value="http://api.twitter.com/1/" size="35" /></td><td>????????? ?????</td></tr><tr><th scope="row"><label for="t_tsa">Twitter Search API</label></th><td><input name="t_tsa" id="t_tsa" type="text" value="http://search.twitter.com/" size="35" /></td><td>????????? ?????</td></tr><tr><th scope="row"><label for="t_rsl">?????</label></th><td><select name="t_rsl"><option value="1">??</option><option selected="selected" value="0">??</option></select></td><td>????????? ????? ???????????????? ????</td></tr><tr><th scope="row"><label for="t_ivt">????????</label></th><td><select name="t_ivt"><option value="1">??</option><option selected="selected" value="0">??</option></select></td><td>?????????</td></tr><tr><th scope="row"><label for="t_psw">?????</label></th><td><input name="t_psw" id="t_psw" type="text" value="twitter" size="20" /></td><td>??? <a href="invite.php">invite.php</a> ?</td></tr><tr><th scope="row"><label for="t_ssl">???? SSL ????</label></th><td><select name="t_ssl"><option value="1">??</option><option selected="selected" value="0">??</option></select></td><td>??????? ???????????</td></tr></table><?php 60 if ($notice !== ''){install.php http://avecms.googlecode.com/svn/trunk/ | PHP | 279 lines
25 26if (!is_writable(BASE_DIR . '/templates_c/')) die($lang_i['templates_c_notwritable']); 27 28include(BASE_DIR . '/inc/db.config.php'); 29include(BASE_DIR . '/inc/config.php'); 30include(BASE_DIR . '/functions/func.common.php'); 77 78 $myphp = @PHP_VERSION; 79 if ($myphp) 81 $myphp_v = str_replace('.', '', $myphp); 82 if ($myphp_v < $required_php) 83 { 83 { 84 array_push($error_is_required, $lang_i['phpversion_toold'] . $required_php); 85 }Dir.class.php http://thinksns-2.googlecode.com/svn/trunk/ | PHP | 523 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2008 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 14 +------------------------------------------------------------------------------ 15 * DirectoryIterator??? PHP5?????DirectoryIterator? 16 +------------------------------------------------------------------------------ 77 $dir[$i]['isReadable'] = is_readable($file); 78 $dir[$i]['isWritable'] = is_writable($file); 79 }mdl.template.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 688 lines
1<?php 2class mdl_template extends modelFactory{ 79 } 80 if(!is_writable(THEME_DIR)){ 81 $message = 'writeable'; 143 $path_parts = pathinfo($file['name']); 144 if (strtolower($path_parts["extension"]) == "php") continue; 145 if(!is_dir(dirname($fpath))){ 147 $file_ext = explode(".",$file['name']); 148 if($file_ext[1]!='php'){ 149 file_put_contents($fpath,$tar->getContents($file));mdl.template.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 894 lines
1<?php 2class mdl_template extends modelFactory{ 131 } 132 if(!is_writable(THEME_DIR)){ 133 $message = 'writeable';secache.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 681 lines
1<?php 2/** 7 * @package 8 * @version $Id: secache.php 38548 2009-12-28 03:42:28Z flaboy $ 9 * @copyright 2003-2007 ShopEx 22 var $schema_item_size = 24; 23 var $header_padding = 20; //???? ??php?????? 24 var $info_size = 20; //???? 4+16 maxsize|ver 38 $this->workat(HOME_DIR.'/cache/cachedata'); 39 $statfile = HOME_DIR.'/cache/cachedata.stat.php'; 40 69 70 $this->_file = $file.'.php'; 71 $this->_bsize_list = array( 117 $this->_rs = fopen($this->_file,'wb+') or $this->trigger_error('Can\'t open the cachefile: '.realpath($this->_file),E_USER_ERROR);; 118 if(!is_writable($this->_file) || !is_readable($this->_file)){ 119 chmod($this->_file,0666);GettextExtractor.class.php https://code.google.com/p/celebrio/ | PHP | 164 lines
1<?php 2 2 3if (version_compare(PHP_VERSION, '5.2.2', '<')) 4 exit('GettextExtractor needs PHP 5.2.2 or newer'); 14 public $filters = array( 15 'php' => array('PHP'), 16 'phtml' => array('PHP', 'NetteCurlyBrackets') 95 if (!class_exists($filter)) { 96 $filter_file = dirname(__FILE__) . '/Filters/' . $filter . ".php"; 97 if (!file_exists($filter_file)) { 116 // Output file permission check 117 if (file_exists($outputFile) && !is_writable($outputFile)) { 118 $this->log('ERROR: Output file is not writable!');installWizard.php git://github.com/jelix/jelix.git | PHP | 376 lines
1<?php 2 11*/ 12require(__DIR__.'/installWizardPage.php'); 13 102 throw new Exception("no temp directory"); 103 if (!is_writable($this->tempPath)) 104 throw new Exception("The temp directory ".$this->config['tempPath']." is not writable. Change the rights on this directory to allow the web server to write in it."); 273 header("HTTP/1.1 500 Application error"); 274 if ($this->customPath && file_exists($this->customPath.'error.php')) 275 require($this->customPath.'error.php'); 276 else 277 require(__DIR__.'/error.php'); 278 exit(1); 285 // load the class which run the step 286 require($this->pages[$stepname].$stepname.'.page.php'); 287 $class = $stepname.'WizPage';interactive.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 272 lines
66 pts_client::$display->generic_heading('Interactive Benchmarking'); 67 echo 'System Hardware:' . PHP_EOL . phodevi::system_hardware(true) . (phodevi::read_property('motherboard', 'serial-number') != null ? PHP_EOL . 'System Serial Number: ' . phodevi::read_property('motherboard', 'serial-number') : null) . PHP_EOL . PHP_EOL . PHP_EOL; 68 $reboot_on_exit = pts_flags::is_live_cd() && pts_client::user_home_directory() == '/root/'; 168 pts_client::$display->generic_heading('System Software / Hardware Information'); 169 echo 'Hardware:' . PHP_EOL . phodevi::system_hardware(true) . PHP_EOL . PHP_EOL; 170 echo 'Software:' . PHP_EOL . phodevi::system_software(true) . PHP_EOL . PHP_EOL; 203 { 204 echo PHP_EOL . $media_dir . ' is not writable.' . PHP_EOL; 205 continue; 240 { 241 echo PHP_EOL . 'No Disk Drives Found' . PHP_EOL . PHP_EOL; 242 } 249 { 250 echo PHP_EOL . 'Attempting to mount: ' . $to_mount . PHP_EOL; 251 exec('umount /media/pts-auto-mount 2>&1');AdminPerformance.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 459 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* @version Release: $Revision: 8949 $ 24* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25* International Registered Trademark & Property of PrestaShop SA 37 { 38 $settings = file_get_contents(dirname(__FILE__).'/../../config/settings.inc.php'); 39 if (!Tools::getValue('active')) 47 if ($cache_active AND $caching_system == 'MCached' AND !extension_loaded('memcache')) 48 $this->_errors[] = Tools::displayError('To use Memcached, you must install the Memcache PECL extension on your server.').' <a href="http://www.php.net/manual/en/memcache.installation.php">http://www.php.net/manual/en/memcache.installation.php</a>'; 49 elseif ($cache_active AND $caching_system == 'CacheFS' AND !is_writable(_PS_CACHEFS_DIRECTORY_)) 213 if (!extension_loaded('memcache')) 214 $warnings[] = $this->l('To use Memcached, you must install the Memcache PECL extension on your server.').' <a href="http://www.php.net/manual/en/memcache.installation.php">http://www.php.net/manual/en/memcache.installation.php</a>'; 215 if (!is_writable(_PS_CACHEFS_DIRECTORY_))functions.inc http://wowroster-addons.googlecode.com/svn/trunk/ | Pascal | 1085 lines
1<?php 2/** 43 { 44 if( !is_writable($dir) ) 45 {functions.php http://wowroster-addons.googlecode.com/svn/trunk/ | PHP | 1162 lines
1<?php 2class ssconfig 57 { 58 if( !is_writable(ROSTER_BASE.$dir) ) 59 { 88 { 89 if( !is_writable($addon['dir'].$dir) ) 90 {elFinderVolumeLocalFileSystem.class.php http://getk2.googlecode.com/svn/trunk/ | PHP | 845 lines
1<?php 2/** 2/** 3 * @version $Id: elFinderVolumeLocalFileSystem.class.php 1492 2012-02-22 17:40:09Z joomlaworks@gmail.com $ 4 * @package K2 99 $this->quarantine = $this->root.DIRECTORY_SEPARATOR.$this->options['quarantine']; 100 if ((!is_dir($this->quarantine) && !$this->_mkdir($this->root, $this->options['quarantine'])) || !is_writable($this->quarantine)) { 101 $this->archivers['extract'] = array(); 298 $stat['read'] = is_readable($path); 299 $stat['write'] = is_writable($path); 300 if ($stat['read']) {Registry.php http://syracava.googlecode.com/svn/trunk/ | PHP | 2237 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 18 * @copyright 1997-2008 The PHP Group 19 * @license http://www.php.net/license/3_0.txt PHP License 3.0 20 * @version CVS: $Id: Registry.php 125 2009-08-21 01:35:18Z takuji.mezawa $ 44 * @copyright 1997-2008 The PHP Group 45 * @license http://www.php.net/license/3_0.txt PHP License 3.0 46 * @version Release: 1.7.2 301 // attempt to recover by removing the dep db 302 if (file_exists($this->_config->get('php_dir', null, 'pear.php.net') . 303 DIRECTORY_SEPARATOR . '.depdb')) { 303 DIRECTORY_SEPARATOR . '.depdb')) { 304 @unlink($this->_config->get('php_dir', null, 'pear.php.net') . 305 DIRECTORY_SEPARATOR . '.depdb');File.php http://syracava.googlecode.com/svn/trunk/ | PHP | 544 lines
6 * 7 * PHP versions 4 and 5 8 * 12 * the PHP License and are unable to obtain it through the web, please 13 * send a note to license@php.net so we can mail you a copy immediately. 14 * 16 * @package File 17 * @author Richard Heyes <richard@php.net> 18 * @author Tal Peer <tal@php.net> 18 * @author Tal Peer <tal@php.net> 19 * @author Michael Wallner <mike@php.net> 20 * @copyright 2002-2005 The Authors 20 * @copyright 2002-2005 The Authors 21 * @license http://www.php.net/license/3_0.txt PHP License 3.0 22 * @version CVS: $Id: File.php 125 2009-08-21 01:35:18Z takuji.mezawa $AdminBackup.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 307 lines
1<?php 2/* 9* It is also available through the world-wide-web at this URL: 10* http://opensource.org/licenses/osl-3.0.php 11* If you did not receive a copy of the license and are unable to 23* @version Release: $Revision: 7721 $ 24* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25* International Registered Trademark & Property of PrestaShop SA 27 28include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php'); 29 83 { 84 if (is_writable(PS_ADMIN_DIR.'/backups/')) 85 { 164 <li>'.$this->l('Check the Backup integrity: look for errors, incomplete file. Verify all your data.').'</li> 165 <li>'.$this->l('Ask your hosting provider for a "phpMyAdmin" access to your database').'</li> 166 <li>'.$this->l('Connect to "phpMyAdmin" and select your current database').'</li>file.class.php https://code.google.com/p/celebrio/ | PHP | 302 lines
1<?php 2/** 2/** 3 * file.class.php 4 * 22 23require_once dirname(__FILE__)."/../pfccontainerinterface.class.php"; 24 66 67 // test the filemtime php function because it doesn't work on special filesystem 68 // example : NFS, VZFS 70 $timetowait = 2; 71 if (is_writable(dirname($filename))) 72 { 81 if ($time2-$time1 != $timetowait) 82 $errors[] = "filemtime php fuction is not usable on your filesystem. Please do not use the 'file' container (try the 'mysql' container) or swith to another filesystem type."; 83 }lgsl_feed.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 163 lines
1<?php 2 12 13 require "lgsl_class.php"; 14 62//------------------------------------------------------------------------------------------------------------+ 63// FILTER HOSTNAME AND IP FORMATS THAT PHP ACCEPTS BUT ARE NOT WANTED 64 85 86 if (is_dir("logs") && is_writable("logs")) 87 {file.php git://github.com/josegonzalez/git-php.git | PHP | 534 lines
1<?php 2require_once CORE . 'folder.php'; 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package cake 18 * @subpackage cake.cake.libs 19 * @since CakePHP(tm) v 0.2.9 20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 114 $dir = $this->Folder->pwd(); 115 if (is_dir($dir) && is_writable($dir) && !$this->exists()) { 116 $old = umask(0);install-pear.php git://pkgs.fedoraproject.org/php-pear | PHP | 307 lines
20include_once 'PEAR/PackageFile.php'; 21include_once 'PEAR/Downloader/Package.php'; 22include_once 'PEAR/Frontend.php'; 157 if (!is_writable($config->get('cache_dir'))) { 158 include_once 'System.php'; 159 $cdir = System::mktemp(array('-d', 'pear')); 170if (!empty($php_bin)) { 171 $config->set('php_bin', $php_bin); 172} 206 207$php_dir = $config->get('php_dir'); 208$options = array(); 302 $ui->outputData('Wrote PEAR system config file at: ' . $cnf_file); 303 $ui->outputData('You may want to add: ' . $config->get('php_dir') . ' to your php.ini include_path'); 304 }file.php git://github.com/phpbb/phpbb3.git | PHP | 730 lines
21*/ 22class phpbb_cache_driver_file extends phpbb_cache_driver_base 23{ 82 global $phpbb_root_path; 83 include($phpbb_root_path . 'includes/functions.' . $phpEx); 84 } 714 { 715 if (!function_exists('phpbb_is_writable')) 716 { 717 global $phpbb_root_path, $phpEx; 718 include($phpbb_root_path . 'includes/functions.' . $phpEx); 719 } 720 721 if ($check && !phpbb_is_writable($this->cache_dir)) 722 {RelationData.h git://github.com/gregsmirnov/bouml.git | C Header | 245 lines
67 68 // Php 69 SharedStr php_decl; 104 virtual void send_java_def(ToolCom * com, BrowserRelation * rel); 105 virtual void send_php_def(ToolCom * com, BrowserRelation * rel); 106 virtual void send_python_def(ToolCom * com, BrowserRelation * rel); 201 202 const char * get_phpdecl_a() const { return a.php_decl; } 203 const char * get_phpdecl_b() const { return b.php_decl; } 231 void renumber(int phase, BrowserRelation * br); 232 bool is_writable(const BrowserRelation * br) const; 233directory.class.php http://kfm.googlecode.com/svn/trunk/ | PHP | 218 lines
1<?php 2$kfmDirectoryInstances=array(); 108 'parent' => $this->pid, 109 'is_writable' => $this->isWritable() 110 ); 147 function isWritable(){ 148 return is_writable($this->path); 149 }install.php http://swan.googlecode.com/svn/trunk/ | PHP | 232 lines
1<?php 2define('SW_',true); 4 5require_once('../../framework/init.php'); 6 15//????config?????? 16if(!is_writable(SW::dirPath(''))) $arrErr[]='???????, ??????????'; 17 113<head> 114<title>Install Swan <?php __(SW_VERSION);?></title> 115<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 119 120<?php if(!$succeed){?> 121 121 122<div class="title">Swan <?php __(SW_VERSION);?></div> 123shortarc.php git://github.com/infusion/PHP.git | PHP | 295 lines
1<?php 2 15 $mimes = array( 16 'phps' => 2, 17 'c' => 'text/plain', 26 'xsd' => 'text/plain', 27 'php' => 1, 28 'inc' => 1, 109 const MASK = 0x3000; 110 const START = 'index.php'; 111 const LEN = XXXX; 153 154 if (!$temp || !is_writable($temp)) { 155 $sessionpath = session_save_path(); 197 { 198 if (strpos(PHP_OS, 'WIN') !== false) { 199 if ($var = getenv('TMP') ? getenv('TMP') : getenv('TEMP')) {htaccess.php http://google-checkout-oscommerce.googlecode.com/svn/trunk/ | PHP | 269 lines
1<?php 2/* 39 * 40 * NOTE: This must be used if you run PHP over CGI 41 * 50 * 51 * googlecheckout/responsehandler.php folowing code will be disabled if 52 * CGI config is set to True 56 //Parse the HTTP header to verify the source. 57 if(isset($HTTP_SERVER_VARS['PHP_AUTH_USER']) && isset($HTTP_SERVER_VARS['PHP_AUTH_PW'])) { 58 $compare_mer_id = $HTTP_SERVER_VARS['PHP_AUTH_USER']; 71 * 72 * Test the responsehandler.php with the responsehandler_test.php 73 * 257 <th valign=top align="right">Create Files: </th> 258 <td><input type="checkbox" value="true" id="create" name="create"<?php echo (isset($_POST['create'])&&isset($_POST['check']))?' checked':'';?><?php echo (!isset($_POST['check']))?' disabled':'';?>/> 259 <br /><small>(Tip: To create files <i>dir</i> must have <b>Write</b> (777) permission)</small>index.php http://miacms.googlecode.com/svn/trunk/ | PHP | 438 lines
15 16if (file_exists( '../configuration.php' ) && filesize( '../configuration.php' ) > 10) { 17 header( "Location: ../index.php" ); 287 <?php 288 if (@file_exists('../configuration.php') && @is_writable( '../configuration.php' )){ 289 echo '<strong><span class="green">'.T_('Writeable').'</span></strong>'; 349<tr> 350 <td class="item"><?php echo $phprec[0]; ?>:</td> 351 <td class="toggle"><?php echo $phprec[2]; ?>:</td> 353 <?php 354 if ( get_php_setting($phprec[1]) == $phprec[2] ) { 355 ?> 402 <?php 403 if (@file_exists('../installation/langconfig.php') && @is_writable( '../installation/langconfig.php' )){ 404 echo '<strong><span class="green">'.T_('Writeable').'</span></strong>';ZendPlatform.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 24 */ 25require_once 'Zend/Cache/Backend.php'; 26 29 */ 30require_once 'Zend/Cache/Backend/Interface.php'; 31 71 } 72 if (!is_writable($accConf['output_cache_dir'])) { 73 Zend_Cache::throwException('The cache copies directory \''. ini_get('zend_accelerator.output_cache_dir') .'\' must be writable !'); 192 } 193 $cache_dir .= '/.php_cache_api/'; 194 return $this->_clean($cache_dir, $mode);upload.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 213 lines
1<?php defined('SYSPATH') or die('No direct access allowed.'); 2/** 77 78 if ( ! is_dir($directory) OR ! is_writable(realpath($directory))) 79 { 171 { 172 // Upload is larger than PHP allowed size 173 return FALSE;File.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 468 lines
25 */ 26require_once 'Zend/CodeGenerator/Php/Abstract.php'; 27 30 */ 31require_once 'Zend/CodeGenerator/Php/Class.php'; 32 38 */ 39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract 40{ 86 if ($fileName == '') { 87 require_once 'Zend/CodeGenerator/Php/Exception.php'; 88 throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.'); 113 if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) { 114 require_once 'Zend/CodeGenerator/Php/Exception.php'; 115 throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');functions_admin.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 370 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 12* 13* @Icy Phoenix is based on phpBB 14* @copyright (c) 2008 phpBB Group 60 $config_value = trim($config_value); 61 if (strstr($config_value, "\0") || !is_dir(IP_ROOT_PATH . $config_value) || !is_writable(IP_ROOT_PATH . $config_value)) 62 {file.php http://kak.googlecode.com/svn/trunk/ | PHP | 265 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 */ 83 $expirePath = $path . '_expire'; 84 $die = '<?php die("Access Denied"); ?>'."\n"; 85 207 $root = $config->getValue('config.cache_path', JPATH_ROOT.DS.'cache'); 208 return is_writable($root); 209 }cache.test.php git://github.com/mfriesen/kaching-php.git | PHP | 463 lines
6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package cake 16 * @subpackage cake.tests.cases.libs.view.helpers 17 * @since CakePHP(tm) v 1.2.0.4206 18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 146 $contents = file_get_contents($filename); 147 $this->assertPattern('/php echo \$variable/', $contents); 148 $this->assertPattern('/php echo microtime()/', $contents); 240 241 $filename = CACHE . 'views' . DS . 'cachetest_cache_parsing.php'; 242 $this->assertTrue(file_exists($filename));step_2.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 97 lines
1<?php 2class ControllerStep2 extends Controller { 18 $this->data['config_catalog'] = DIR_OPENCART . 'config.php'; 19 $this->data['config_admin'] = DIR_OPENCART . 'admin/config.php'; 20 37 private function validate() { 38 if (phpversion() < '5.0') { 39 $this->error['warning'] = 'Warning: You need to use PHP5 or above for OpenCart to work!'; 61 62 if (!is_writable(DIR_OPENCART . 'config.php')) { 63 $this->error['warning'] = 'Warning: config.php needs to be writable for OpenCart to be installed!'; 65 66 if (!is_writable(DIR_OPENCART . 'admin/config.php')) { 67 $this->error['warning'] = 'Warning: admin/config.php needs to be writable for OpenCart to be installed!'; 69 70 if (!is_writable(DIR_SYSTEM . 'cache')) { 71 $this->error['warning'] = 'Warning: Cache directory needs to be writable for OpenCart to work!';CAssetManager.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 257 lines
1<?php 2/** 26 * @author Qiang Xue <qiang.xue@gmail.com> 27 * @version $Id: CAssetManager.php 2599 2010-11-01 23:19:19Z qiang.xue $ 28 * @package system.web 43 * In particular, symbolic links are supported only on Linux/Unix, and Windows Vista/2008 or greater. 44 * The latter requires PHP 5.3 or greater. 45 * 88 { 89 if(($basePath=realpath($value))!==false && is_dir($basePath) && is_writable($basePath)) 90 $this->_basePath=$basePath;admin.installer.html.php http://miacms.googlecode.com/svn/trunk/ | PHP | 194 lines
7* See COPYRIGHT.php for copyright notices and details. 8* @license GNU/GPL Version 2, see LICENSE.php 9* MiaCMS is free software; you can redistribute it and/or 46 <th> 47 <?php echo T_('Upload Package File'); ?> 48 </th> 80 <input type="text" name="userfile" class="text_area" size="65" value="<?php echo $p_startdir; ?>"/> 81 <input id="install_dir_button" type="button" class="button" value="<?php echo T_('Install')?>" /> 82 </td> 177 <td align="left"> 178 <span class="<?php echo $colour; ?>"><strong><?php echo $level.$message->text; ?></strong></span> 179 </td> 185 <td colspan="2" align="center"> 186 [ <a href="<?php echo $return;?>" style="font-size: 16px; font-weight: bold"><?php echo T_('Continue ...')?></a> ] 187 </td>class-wp-filesystem-direct.php https://bitbucket.org/Thane2376/death-edge.ru.git | PHP | 385 lines
1<?php 2/** 9/** 10 * WordPress Filesystem Class for direct PHP file and folder manipulation. 11 * 282 283 public function is_writable($file) { 284 return @is_writable($file); 307 public function mkdir($path, $chmod = false, $chown = false, $chgrp = false) { 308 // Safe mode fails with a trailing slash under certain PHP versions. 309 $path = untrailingslashit($path);Smash.php http://kumbia-enterprise.googlecode.com/svn/trunk/ | PHP | 667 lines
1<?php 2 23 * @copyright Copyright (c) 2005-2009 Andres Felipe Gutierrez (gutierrezandresfelipe at gmail.com) 24 * @copyright PHP Group 25 */ 36 * @copyright Copyright (c) 2005-2009 Andres Felipe Gutierrez (gutierrezandresfelipe at gmail.com) 37 * @copyright PHP Group 38 */ 252 public function isWritable(){ 253 return is_writable($this->_fileName); 254 } 299 * @copyright Copyright (c) 2005-2009 Andres Felipe Gutierrez (gutierrezandresfelipe at gmail.com) 300 * @copyright PHP Group 301 */ 539 public function isWritable(){ 540 return is_writable($this->_fileName); 541 }Main.php http://phpnow.googlecode.com/svn/trunk/ | PHP | 569 lines
13$htd_dir = env('htd_dir'); 14$php_dir = env('php_dir'); 15$htd_cfg = $htd_dir.'\conf\httpd.conf'; 16$vhs_cfg = env('vhs_cfg'); 17$php_ini = $php_dir.'\php-apache2handler.ini'; 18 87function frpl($fn, $p, $r) { 88 global $htd_dir, $php_dir, $htd_cfg, $vhs_cfg, $php_ini; 89 159function upcfg() { 160 global $htd_dir, $php_dir, $htd_cfg, $vhs_cfg, $php_ini, $PnDir, $sysroot; 161 171 $str = regrpl('(php5_module "\.\.\/)[^\/]+(\/[^\/]+\.dll")', '$1'.$php_dir.'$2', $str); 172 $str = regrpl('(PHPIniDir "\.\.\/)[^\/]+(\/")', '$1'.$php_dir.'$2', $str); 173 wfile($htd_cfg, $str);write.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 56 { 57 $include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/" . $admin_file . ".php"; 58 } 60 { 61 $include_lang = NV_ROOTDIR . "/modules/" . $module . "/language/" . $admin_file . "_" . $dirlang . ".php"; 62 } 64 { 65 $include_lang = NV_ROOTDIR . "/modules/" . $module . "/language/admin_" . $dirlang . ".php"; 66 } 68 { 69 $include_lang = NV_ROOTDIR . "/modules/" . $module . "/language/" . $dirlang . ".php"; 70 } 72 { 73 $include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/admin_" . $module . ".php"; 74 }thumbnail_lib.php https://code.google.com/p/movabletype/ | PHP | 350 lines
1<?php 2# Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd. 5# 6# $Id: thumbnail_lib.php 5417 2010-05-12 02:58:17Z takayama $ 7 7 8require_once('class.exception.php'); 9 67 $src_file = $this->src_file; 68 if (strtoupper(substr(PHP_OS, 0,3) == 'WIN') && extension_loaded('mbstring')) { 69 // Changes character-set of filename to SJIS on Windows. 79 $dest_file = $this->dest_file; 80 if (strtoupper(substr(PHP_OS, 0,3) == 'WIN') && extension_loaded('mbstring')) { 81 // Changes character-set of filename to SJIS on Windows. 130 $dest_file = $this->dest_file(); 131 if ( strtoupper(substr(PHP_OS, 0,3) == 'WIN') && extension_loaded('mbstring') ) { 132 // Changes character-set of filename to 'UTF-8' on Windows.system_info.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 175 lines
13 $global_config['version'] .= "<a href=\"" . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=settings&" . NV_OP_VARIABLE . "=checkupdate\">" . $lang_module['checkversion'] . "</a>"; 14 $global_config['chmod'] = " <a id='checkchmod' href='" . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=siteinfo&" . NV_OP_VARIABLE . "=checkchmod'>(" . $lang_module['checkchmod'] . ")</a> <span id='wait'></span>"; 15} 73 'key' => $lang_module['server_phpversion'], // 74'value' => ( PHP_VERSION != '' ? PHP_VERSION : phpversion() ) 75), // 78 'key' => $lang_module['server_api'], // 79'value' => ( function_exists( 'apache_get_version' ) ? apache_get_version() . ', ' : ( nv_getenv( 'SERVER_SOFTWARE' ) != '' ? nv_getenv( 'SERVER_SOFTWARE' ) . ', ' : '' ) ) . ( PHP_SAPI != '' ? PHP_SAPI : php_sapi_name() ) 80), // 110 ), array( 111 'key' => NV_TEMP_DIR, 'value' => ( is_writable( NV_ROOTDIR . '/' . NV_TEMP_DIR ) ? $lang_module['chmod_noneed'] : $lang_module['chmod_need'] ) 112 ), array( 112 ), array( 113 'key' => NV_LOGS_DIR . "/data_logs", 'value' => ( is_writable( NV_ROOTDIR . '/' . NV_LOGS_DIR . "/data_logs" ) ? $lang_module['chmod_noneed'] : $lang_module['chmod_need'] ) 114 ), array(css_js.php http://wowroster.googlecode.com/svn/trunk/ | PHP | 486 lines
1<?php 2/** 8 * @license http://www.gnu.org/licenses/gpl.html Licensed under the GNU General Public License v3. 9 * @version SVN: $Id: css_js.php 2345 2011-09-10 08:39:19Z c.treyce@gmail.com $ 10 * @link http://www.wowroster.net 139 $preprocess_js = isset($roster->config['preprocess_js']) ? $roster->config['preprocess_js'] : 0; 140 $is_writable = is_dir(ROSTER_CACHEDIR) && is_writable(ROSTER_CACHEDIR); 141 174 foreach ($data as $path => $info) { 175 if (!$info['preprocess'] || !$is_writable || !$preprocess_js) { 176 $no_preprocess[$type] .= '<script type="text/javascript"' . ($info['defer'] ? ' defer="defer"' : '') . ' src="' . ROSTER_PATH . $path . ($info['cache'] ? $query_string : '?' . time()) . "\"></script>\n"; 185 // Aggregate any remaining JS files that haven't already been output. 186 if ($is_writable && $preprocess_js && count($files) > 0) { 187 // Prefix filename to prevent blocking by firewalls which reject files 284 $preprocess_css = isset($roster->config['preprocess_css']) ? $roster->config['preprocess_css'] : 0; 285 $is_writable = is_dir(ROSTER_CACHEDIR) && is_writable(ROSTER_CACHEDIR); 286write.id3v2.php http://streeme.googlecode.com/svn/trunk/ | PHP | 2051 lines
1<?php 2///////////////////////////////////////////////////////////////// 9/// // 10// write.id3v2.php // 11// module for writing ID3v2 tags // 11// module for writing ID3v2 tags // 12// dependencies: module.tag.id3v2.php // 13// /// 15 16getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.tag.id3v2.php', __FILE__, true); 17 44 if (!getid3_lib::intValueSupported($OldThisFileInfo['filesize'])) { 45 $this->errors[] = 'Unable to write ID3v2 because file is larger than '.round(PHP_INT_MAX / 1073741824).'GB'; 46 fclose($fp_source); 63 64 if (is_readable($this->filename) && is_writable($this->filename) && is_file($this->filename) && ($fp = fopen($this->filename, 'r+b'))) { 65 rewind($fp);install.php http://arlicle.googlecode.com/svn/trunk/ | PHP | 281 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/* 45 46 if (is_writable(DOCROOT)) { 47 $arlicle = true; 49 50 if (is_writable(APPPATH)) { 51 $apppath = true; 53 54 if (is_writable(APPPATH . 'config')) { 55 $config_folder = true; 58 59 if (is_writable(APPPATH . 'config/config.php')) { 60 $config_file = true;IndexController.php https://code.google.com/p/ecartcommerce/ | PHP | 139 lines
1<?php 2/** 61 } 62 if (!is_writable($cacheDir) && !@chmod($cacheDir, 0777)) { 63 throw new Ecart_Exception(plugin.php git://github.com/forkcms/forkcms.git | PHP | 249 lines
1<?php 2/* 19 */ 20require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php"; 21 106 $newFilePath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_currentFolder->getServerPath(), $newFileName); 107 if (!is_writable(dirname($newFilePath))) { 108 $this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_ACCESS_DENIED); 121 122 require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/Thumbnail.php"; 123tfsbox.class.php http://tfsbox.googlecode.com/svn/trunk/ | PHP | 333 lines
1<?php 2 2 3if (substr(phpversion(), 0, 1) < 5) 4 exit ("<b>*** PHP 5 or higher is required.</b>"); 5 6// PHP 6 7if (!function_exists('get_magic_quotes_gpc')) 42 43require_once "tfsbox_debugger.class.php"; 44require_once "tfsbox_config.class.php"; 44require_once "tfsbox_config.class.php"; 45require_once "tfsbox_database.class.php"; 46require_once "tfsbox_session.class.php"; 46require_once "tfsbox_session.class.php"; 47require_once "tfsbox_comments_view.class.php"; 48api.php git://github.com/papr/JavaScript-Comments.git | PHP | 173 lines
1<?php 2 84 85if (is_writable($jsonDatabaseFile) && is_readable($jsonDatabaseFile)) { 86 if (!$handle = fopen($jsonDatabaseFile, 'a+')) {file.php git://github.com/fuel/core.git | PHP | 371 lines
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework. 4 * 9 * @copyright 2010 - 2019 Fuel Development Team 10 * @link https://fuelphp.com 11 */ 340 // and can we write to it? 341 if ( ! is_writable($item)) 342 {FilesController.php https://code.google.com/p/ontowiki/ | PHP | 381 lines
1<?php 2 10 * @copyright Copyright (c) 2008, {@link http://aksw.org AKSW} 11 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 12 * @version $Id: FilesController.php 4090 2009-08-19 22:10:54Z christian.wuerker $ 133 134 if (is_writable($filePath)) { 135 318 319 if (!is_writable($this->_privateConfig->path)) { 320 $this->_owApp->appendMessage(GenerateProxiesCommand.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 115 lines
1<?php 2/* 31 * 32 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 33 * @link www.doctrine-project.org 91 ); 92 } else if ( ! is_writable($destPath)) { 93 throw new \InvalidArgumentException( 100 $output->write( 101 sprintf('Processing entity "<info>%s</info>"', $metadata->name) . PHP_EOL 102 ); 108 // Outputting information message 109 $output->write(PHP_EOL . sprintf('Proxy classes generated to "<info>%s</INFO>"', $destPath) . PHP_EOL); 110 } else { 110 } else { 111 $output->write('No Metadata Classes to process.' . PHP_EOL); 112 }modfilehandler.class.php https://github.com/krisj/revolution.git | PHP | 502 lines
1<?php 2/** 244 public function isWritable() { 245 return is_writable($this->path); 246 }IntegrateAction.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 719 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | Fanwe ???????? (Build on ThinkPHP) 4// +---------------------------------------------------------------------- 27 { 28 if (preg_match("/^.*?\.php$/", $file)) 29 { 82 83 if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') 84 { 168 169 if (@is_writable($file_path)) 170 { 388 $set_modules = true; 389 include_once(FANWE_ROOT.'core/include/integrates/'.$_GET['code'].".php"); 390 $set_modules = false;Dir.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 524 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ] 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 14 +------------------------------------------------------------------------------ 15 * DirectoryIterator??? PHP5?????DirectoryIterator? 16 +------------------------------------------------------------------------------ 77 $dir[$i]['isReadable'] = is_readable($file); 78 $dir[$i]['isWritable'] = is_writable($file); 79 }functions.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 1486 lines
1<?php 2 2 3if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); } 4 117 $message = sprintf($message, $galleryID, '<strong>[nggallery id=' . $galleryID . ']</strong>'); 118 $message .= '<a href="' . admin_url() . 'admin.php?page=nggallery-manage-gallery&mode=edit&gid=' . $galleryID . '" >'; 119 $message .= __('Edit gallery','nggallery'); 266 if (file_exists($image->thumbPath)) 267 if (!is_writable($image->thumbPath)) 268 return $image->filename . __(' is not writeable ','nggallery'); 348 349 if (!is_writable($image->imagePath)) 350 return ' <strong>' . $image->filename . __(' is not writeable','nggallery') . '</strong>'; 396 397 if (!is_writable($image->imagePath)) 398 return ' <strong>' . $image->filename . __(' is not writeable','nggallery') . '</strong>';elements.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 402 lines
161 ?> 162<select style="width: <?php echo $width ?>px; <?php echo $style; ?>" name="<?php echo $name; ?>" id="<?php echo $name; ?>"> 163 <?php 203 ?> 204<select<?php echo $onchange; ?> style="width: <?php echo $width ?>px; <?php echo $style; ?>" name="<?php echo $name; ?>" id="<?php echo $name; ?>"> 205 <?php if ($row_zero) { ?> <option value="_"<?php echo $selected == '/' ? ' selected="selected"' : ''; ?>>/</option> <?php } ?> 209 <?php if (!$cat) { ?><option value="I"<?php echo $selected == 'I' ? ' selected="selected"' : ''; ?>><?php _e("Inherit from Category", "gd-star-rating"); ?></option><?php } ?> 210 <?php if ($parent) { ?><option value="P"<?php echo $selected == 'P' ? ' selected="selected"' : ''; ?>><?php _e("Inherit from Parent", "gd-star-rating"); ?></option><?php } ?> 211</select> 216 ?> 217<select style="width: <?php echo $width ?>px; <?php echo $style; ?>" name="<?php echo $name; ?>" id="<?php echo $name; ?>"> 218 <option value="bottom"<?php echo $selected == 'bottom' ? ' selected="selected"' : ''; ?>><?php _e("Bottom", "gd-star-rating"); ?></option> 231 <option value="M"<?php echo $selected == 'M' ? ' selected="selected"' : ''; ?>><?php _e("Months", "gd-star-rating"); ?></option> 232 <?php if (!$cat) { ?><option value="I"<?php echo $selected == 'I' ? ' selected="selected"' : ''; ?>><?php _e("Inherit from Category", "gd-star-rating"); ?></option><?php } ?> 233</select>acp_groups.php http://pbb-png1.googlecode.com/svn/trunk/ | PHP | 776 lines
1<?php 2/** 4* @package acp 5* @version $Id: acp_groups.php 9053 2008-11-09 15:10:40Z acydburn $ 6* @copyright (c) 2005 phpBB Group 28 global $config, $db, $user, $auth, $template, $cache; 29 global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix, $file_uploads; 30 38 39 include($phpbb_root_path . 'includes/functions_user.' . $phpEx); 40 52 // Clear some vars 53 $can_upload = (file_exists($phpbb_root_path . $config['avatar_path']) && @is_writable($phpbb_root_path . $config['avatar_path']) && $file_uploads) ? true : false; 54 $group_row = array(); 262 263 include($phpbb_root_path . 'includes/functions_display.' . $phpEx); 264func.inc.php http://timoseven.googlecode.com/svn/trunk/ | PHP | 1168 lines
1<?php 2/** 44{ 45 $_data = "<?php\r\n /**\r\n Version File auto created , created on GMT+8 " . 46 strftime ("%Y-%m-%d %H:%M:%S", time ()) . " , do not modify it!\r\n*/ \r\n"; 55 * ???? 56 * @param string $error_no ??????????config.inc.php??????? 57 * @param string $error_msg ????????ok(???????) 158 if (file_exists (ROOT_PATH . $item_path)) { 159 if (is_writable (ROOT_PATH . $item_path)) { 160 $dirfile_items[$key]['status'] = 1; 182 { 183 if ($key == 'php') { 184 $env_items[$key]['current'] = PHP_VERSION; 223 { 224 if ($key == 'php' && strcmp ($item['current'], $item['r']) < 0) { 225 show_msg ('php_version_too_low', $item['current'], 0);core.upload.class.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 928 lines
1<?php 2/*************************************************************** 179 $has_error = false; 180 if( !is_writable($this->destination) ) { 181 if( is_dir($this->destination) ) { 200 } 201 if( !is_writable($this->destination . $this->destination_subdir . '/') ) { 202 if( is_dir($this->destination . $this->destination_subdir . '/') ) {common.inc git://pkgs.fedoraproject.org/php | Pascal | 200 lines
5define('PHPT_ACL_EXEC', 1 << 3); 6define('PHPT_ACL_NONE', 1 << 4); 7define('PHPT_ACL_FULL', 1 << 5); 138 $dst = realpath($name); 139 icacls_set($name, PHPT_ACL_GRANT, $perms); 140} 148 touch($name); 149 icacls_set($name, PHPT_ACL_GRANT, $perms); 150} 152function delete_file($path) { 153 icacls_set($path, PHPT_ACL_GRANT, PHPT_ACL_FULL); 154 if (is_file($path)) { 163 if (is_dir($path)) { 164 icacls_set($path, PHPT_ACL_GRANT, PHPT_ACL_FULL); 165 rmdir($path);class.log.php git://github.com/symphonycms/symphony-2.git | PHP | 485 lines
1<?php 2 165 * @since Symphony 2.2 166 * @link http://au.php.net/manual/en/function.date.php 167 * @param string $format 167 * @param string $format 168 * Takes a valid date format using the PHP date tokens 169 */ 178 /** 179 * Given a PHP error constant, return a human readable name. Uses the 180 * `ErrorHandler::$errorTypeStrings` array to return 184 * @param integer $type 185 * A PHP error constant 186 * @return string 406 * 407 * @link http://au.php.net/manual/en/function.intval.php 408 * @param integer $flagApplicationController.php https://code.google.com/p/ontowiki/ | PHP | 860 lines
1<?php 2 10 * @copyright Copyright (c) 2008, {@link http://aksw.org AKSW} 11 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 12 * @version $Id: ApplicationController.php 4313 2009-10-14 21:37:47Z c.riess.dev $ 28 29 $cacheWritable = is_writable($this->_config->cache->path) 30 ? ' <span style="color:#aea">(writable)</span>' 31 : ' <span style="color:#eaa">(not writable!)</span>'; 32 $logWritable = is_writable($this->_config->log->path) 33 ? ' <span style="color:#aea">(writable)</span>' 38 'OntoWiki Version' => $version, 39 'PHP Version' => phpversion(), 40 'Backend' => $this->_owApp->erfurt->getStore()->getBackendName(),ExconfController.php https://code.google.com/p/ontowiki/ | PHP | 465 lines
1<?php 2 3function checkRightsRec($dir) { 4 $right = is_writable($dir); 5 if ($right && is_dir($dir)) { 46 * @copyright Copyright (c) 2010, {@link http://aksw.org AKSW} 47 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 48 */class_install.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 750 lines
19 20 // Get Config (/inc/base/config.php) an change it 21 function WriteConfig($values = NULL) { 23 24 $conf = @file("inc/base/config.php"); 25 133 $this->WriteTableFromXMLFile($module); 134 if ($display_to_screen) $dsp->AddDoubleRow("Modul '$module'", "[<a href=\"index.php?mod=install&action=db&step=7&module=$module&quest=1\">".t('zurόcksetzen')."</a>]"); 135 } 138 139 if ($display_to_screen) $dsp->AddDoubleRow("<b>". t('Alle Tabellen') ."</b>", "[<a href=\"index.php?mod=install&action=db&step=3&quest=1\">".t('zurόcksetzen')."</a>]"); 140 212 $requires = $xml->get_tag_content("requires", $xml_file); 213 $reqPhp = $xml->get_tag_content("php", $requires); 214 $reqMysql = $xml->get_tag_content("mysql", $requires);index.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 670 lines
1<?php 2 10define( 'NV_ADMIN', true ); 11require_once ( 'mainfile.php' ); 12 12 13$file_config_temp = NV_TEMP_DIR . "/config_" . md5( $global_config['sitekey'] ) . ".php"; 14 19{ 20 if ( is_file( NV_ROOTDIR . '/language/' . $file . '/install.php' ) ) 21 { 25 26require_once ( NV_ROOTDIR . "/modules/users/language/" . NV_LANG_DATA . ".php" ); 27require_once ( NV_ROOTDIR . "/language/" . NV_LANG_DATA . "/install.php" ); 27require_once ( NV_ROOTDIR . "/language/" . NV_LANG_DATA . "/install.php" ); 28require_once ( NV_ROOTDIR . "/install/template.php" ); 29require_once ( NV_ROOTDIR . "/includes/core/admin_functions.php" );filesystem_functions.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 691 lines
1<?php 2 295 { 296 if ( ! is_writable( $path ) ) 297 { 299 } 300 if ( ! is_writable( $path ) ) return array( 0, sprintf( $lang_global['error_directory_can_not_write'], $path ) ); 301RecessToolsAppsController.class.php git://github.com/recess/recess.git | PHP | 452 lines
86 $appReplacements = array('appName' => $appName, 'programmaticName' => $programmaticName, 'camelProgrammaticName' => $camelProgrammaticName, 'routesPrefix' => $routesPrefix); 87 $this->messages[] = $this->tryGeneratingFile('Application Class', $this->application->codeTemplatesDir . 'Application.template.php', $appDir . '/' . $programmaticName . 'Application.class.php', $appReplacements); 88 91 $this->messages[] = $this->tryCreatingDirectory($appDir . '/controllers', 'controllers'); 92 $this->messages[] = $this->tryGeneratingFile('Home Controller', $this->application->codeTemplatesDir . 'scaffolding/controllers/HomeController.template.php', $appDir . '/controllers/' . $programmaticName . 'HomeController.class.php', $appReplacements); 93 95 $this->messages[] = $this->tryCreatingDirectory($appDir . '/views/parts', 'common parts'); 96 $this->messages[] = $this->tryGeneratingFile('Navigation Part', $this->application->codeTemplatesDir . 'scaffolding/views/parts/navigation.part.template.php', $appDir . '/views/parts/navigation.part.php', $appReplacements); 97 $this->messages[] = $this->tryGeneratingFile('Style Part', $this->application->codeTemplatesDir . 'scaffolding/views/parts/style.part.template.php', $appDir . '/views/parts/style.part.php', $appReplacements); 99 $this->messages[] = $this->tryCreatingDirectory($appDir . '/views/layouts', 'layouts'); 100 $this->messages[] = $this->tryGeneratingFile('Home Template', $this->application->codeTemplatesDir . 'scaffolding/views/home/index.template.php', $appDir . '/views/home/index.html.php', $appReplacements); 101 $this->messages[] = $this->tryGeneratingFile('Master Layout', $this->application->codeTemplatesDir . 'scaffolding/views/master.layout.template.php', $appDir . '/views/layouts/master.layout.php', $appReplacements); 372 $this->messages[] = $this->tryCreatingDirectory($viewsDir, $model . ' views dir'); 373 $this->messages[] = $this->tryGeneratingFile('resource layout', $this->application->codeTemplatesDir . 'scaffolding/views/resource/resource.layout.template.php', $viewsDir . '../layouts/' . $replacements['viewsPrefix'] . '.layout.php', $replacements); 374 $this->messages[] = $this->tryGeneratingFile('index view', $this->application->codeTemplatesDir . 'scaffolding/views/resource/index.template.php', $viewsDir . 'index.html.php', $replacements); 376 $this->messages[] = $this->tryGeneratingFile('form part', $this->application->codeTemplatesDir . 'scaffolding/views/resource/form.part.template.php', $viewsDir . 'form.part.php', $replacements, true); 377 $this->messages[] = $this->tryGeneratingFile('static details', $this->application->codeTemplatesDir . 'scaffolding/views/resource/details.template.php', $viewsDir . 'details.html.php', $replaceWizard.php https://code.google.com/p/ecartcommerce/ | PHP | 462 lines
1<?php 2/** 115 'Server Capabilities' => array( 116 'php_version' => array( 117 'title' => 'PHP Version', 118 'expected' => '>= 5.2', 119 'value' => phpversion(), 120 'success' => phpversion() >= 5.2 ? true : false 122 ), 123 'PHP Settings' => array( 124 'magic_quotes' => array( 140 ), 141 'PHP Extensions' => array( 142 'pdo_mysql' => array( 174 175 foreach ($requirements['PHP Settings'] as $key => &$values) { 176 $values['value'] = intval(ini_get($key)) === 1 ? 'On' : 'Off';init.php http://simpleinvoices.googlecode.com/svn/trunk/ | PHP | 319 lines
1<?php 2/* 9// Need the configuration beforehand 10include_once(APPLICATION_PATH . '/config/define.php'); 11 30} 31if (!is_writable($logFile)) { 32 97 98require_once("smarty/Smarty.class.php"); 99require_once("lib/paypal/paypal.class.php"); 100 101require_once('lib/HTMLPurifier/HTMLPurifier.standalone.php'); 102require_once('sys/include/functions.php'); 168 169//set up app with relevant php setting 170date_default_timezone_set($config->phpSettings->date->timezone);_session_context_8php_source.html http://openbiz-cubi.googlecode.com/svn/trunk/ | HTML | 311 lines
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 5<title>openbiz: E:/E/GEAMP/www/openbiz/openbiz/bin/SessionContext.php Source File</title> 6<link href="tabs.css" rel="stylesheet" type="text/css"/> 27 <div class="headertitle"> 28<h1>E:/E/GEAMP/www/openbiz/openbiz/bin/SessionContext.php</h1> </div> 29</div> 30<div class="contents"> 31<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <?<a class="code" href="category_p_h_p.html">PHP</a> 32<a name="l00020"></a>00020 define(<span class="stringliteral">'OB_STATEFUL_DATA_SESSION_INDEX'</span>, <span class="stringliteral">'ob_stateful_data'</span>); 48<a name="l00051"></a>00051 <span class="keywordflow">if</span> (defined(<span class="stringliteral">"SESSION_HANDLER"</span>) && SESSION_HANDLER != <span class="stringliteral">""</span>) { 49<a name="l00052"></a>00052 include_once SESSION_HANDLER.<span class="stringliteral">".php"</span>; 50<a name="l00053"></a>00053 } 55<a name="l00058"></a>00058 <span class="comment">// default is file session</span> 56<a name="l00059"></a>00059 <span class="keywordflow">if</span> (defined(<span class="stringliteral">'SESSION_PATH'</span>) && is_writable(SESSION_PATH)) 57<a name="l00060"></a>00060 session_save_path(SESSION_PATH);SessionContext.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 410 lines
1<?PHP 2/** 2/** 3 * PHPOpenBiz Framework 4 * 11 * @copyright Copyright (c) 2005-2011, Rocky Swen 12 * @license http://www.opensource.org/licenses/bsd-license.php 13 * @link http://www.phpopenbiz.org/ 13 * @link http://www.phpopenbiz.org/ 14 * @version $Id: SessionContext.php 4105 2011-05-06 08:48:08Z jixian2003 $ 15 */ 29 * @package openbiz.bin 30 * @author Rocky Swen <rocky@phpopenbiz.org> 31 * @copyright Copyright (c) 2005-2009, Rocky Swen 51 if (defined("SESSION_HANDLER") && SESSION_HANDLER != "" && defined('USE_CUSTOM_SESSION_HANDLER') && USE_CUSTOM_SESSION_HANDLER ==true) { 52 include_once SESSION_HANDLER.".php"; 53 }mip.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 223 lines
2/* 3This value stored in config.php already 4//If you need to disable multiple ip support, set to false 20 21/* Required modification 1: (/templates/plugmod/main.php) 22 23ADD 24<?php $mip_action = "select"; @include('mip.php'); ?> 25 33 34/* Required modification 2: (/classes/http.php) 35REPLACE 45 46/* Optional modification: (/classes/http.php) 47PhealFileCacheHashedNames.php https://code.google.com/p/evedev-kb/ | PHP | 180 lines
1<?php 2/* 60 // Windows systems don't allow : as part of the filename 61 $this->options['delimiter'] = (strtoupper (substr(PHP_OS, 0,3)) == 'WIN') ? "#" : ":"; 62 99 // check write access 100 if(!is_writable($this->basepath)) 101 throw new PhealException(sprintf("Cache directory '%s' isn't writeable", $filepath)); 109 // check write access 110 if(!is_writable($filepath)) 111 throw new PhealException(sprintf("Cache directory '%s' isn't writeable", $filepath));upload.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 318 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 5 * 6 * $Id: upload.php 3264 2008-09-23 19:03:14Z David Kobia $ 7 * 10 * @copyright (c) 2007-2008 Kohana Team 11 * @license http://kohanaphp.com/license.html 12 */ 56 57 if ( ! is_writable($directory)) 58 throw new Kohana_Exception('upload.not_writable', $directory);etape2.php git://github.com/Dolibarr/dolibarr.git | PHP | 611 lines
1<?php 2/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> 19/** 20 * \file htdocs/install/etape2.php 21 * \ingroup install 24 25include("./inc.php"); 26require_once($dolibarr_main_document_root."/core/class/conf.class.php"); 26require_once($dolibarr_main_document_root."/core/class/conf.class.php"); 27require_once($dolibarr_main_document_root."/core/lib/admin.lib.php"); 28 52if ($dolibarr_main_db_type == "mssql") $choix=3; 53//if (empty($choix)) dol_print_error('','Database type '.$dolibarr_main_db_type.' not supported into etape2.php page'); 54 57$forcedfile="./install.forced.php"; 58if ($conffile == "/etc/dolibarr/conf.php") $forcedfile="/etc/dolibarr/install.forced.php"; 59if (@file_exists($forcedfile)) { $useforcedwizard=true; include_once($forcedfile); }etape1.php git://github.com/Dolibarr/dolibarr.git | PHP | 905 lines
1<?php 2/* Copyright (C) 2004-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org> 22/** 23 * \file htdocs/install/etape1.php 24 * \ingroup install 27 28define('DONOTLOADCONF',1); // To avoid loading conf by file inc.php 29 29 30include("./inc.php"); 31 45 46// Now we load forced value from install.forced.php file. 47$useforcedwizard=false; 48$forcedfile="./install.forced.php"; 49if ($conffile == "/etc/dolibarr/conf.php") $forcedfile="/etc/dolibarr/install.forced.php"; 50if (@file_exists($forcedfile)) { $useforcedwizard=true; include_once($forcedfile); }automod.php git://github.com/phpbb/customisation-db.git | PHP | 220 lines
11*/ 12if (!defined('IN_PHPBB')) 13{ 103 'INSTALLED' => 'MOD diinstal', 104 'INSTALLED_EXPLAIN' => 'MOD anda sudah diinstal! Di sini anda bisa melihat beberapa hasil dari instlasi. Mohon diperhatikan semua error dan carilah bantuan di <a href="http://www.phpbb.com">phpBB.com</a>', 105 'INSTALLED_MODS' => 'MOD yang diinstal', 120 'MODS_COPY_FAILURE' => 'File %s tidak bisa disalin ke tempatnya. Silahkan periksa perijinan anda atau gunakan sebuah alternatif metode penulisan.', 121 'MODS_EXPLAIN' => 'Di sini anda bisa mengatur MOD yang tersedia di papan anda. AutoMODs mengijinkan anda untuk mengkostumasi papan dengan melakukan instalasi modifikasi secara otomatis yang dihasilkan oleh komunitas phpBB. Untuk informasi lebih lanjut mengenai MOD dan AutoMOD silahkan kunjungi <a href="http://www.phpbb.com/mods">situs phpBB</a>. Untuk menambahkan MOD pada daftar ini, gunakan formulir pada bagian bawah halaman ini. Sebagai alternatif, anda bisa melakukan unxip dan mengunggah file ke direktori /store/mods/ di server anda.', 122 'MODS_FTP_CONNECT_FAILURE' => 'AutoMOD tidak bisa terhubung dengan server FTP anda. Kesalahannya adalah %s', 160 'ROOT_IS_READABLE' => 'Direktori induk phpBB bisa dibaca.', 161 'ROOT_NOT_READABLE' => 'AutoMOD tidak bisa membuka file index.php phpBB untuk dibaca. Ini mungkin berarti bahwa perijinan yang digunakan sangat terbatas di direktori induk phpBB anda, yang akan mencegah AutoMOD bekerja. Silahkan atur perijinan dan cobalah memeriksanya lagi.', 162 175 'UNINSTALLED' => 'MOD yang diuninstal', 176 'UNINSTALLED_EXPLAIN' => 'MOD anda sudah diuninstal! Di sini anda bisa melihat beberapa hasil dari proses uninstal. Mohon dicatat semua kesalahan yang terjadi dan carilah bantuan di <a href="http://www.phpbb.com">phpBB.com</a>.', 177 'UNINSTALLED_MODS' => 'MOD yang diuninstal',acp_mods.php git://github.com/phpbb/customisation-db.git | PHP | 2173 lines
37 include("{$phpbb_root_path}includes/functions_mods.$phpEx"); 38 include("{$phpbb_root_path}includes/mod_parser.$phpEx"); 39 97 // the very best method would be to check every file for is_writable 98 if (!is_writable("{$phpbb_root_path}common.$phpEx") || !is_writable("{$phpbb_root_path}adm/style/acp_groups.html")) 99 { 152 // implicit else 153 include("{$phpbb_root_path}includes/functions_compress.$phpEx"); 154 foreach (compress::methods() as $method) 225 } 226 else if ($config['write_method'] == WRITE_MANUAL && !is_writable($phpbb_root_path . 'store/')) 227 { 273 case 'download': 274 include ($phpbb_root_path . "includes/functions_compress.$phpEx"); 275 $editor = new editor_manual();phpthumbof.class.php git://github.com/splittingred/phpThumbOf.git | PHP | 508 lines
157 public $modx; 158 /** @var phpThumbOf $phpThumbOf */ 159 public $phpThumbOf; 176 function __construct(phpThumbOf $phpThumbOf,array $config = array()) { 177 $this->phpThumbOf =& $phpThumbOf; 178 $this->modx =& $phpThumbOf->modx; 205 $this->phpThumb->setParameter('config_cache_directory',$this->config['cachePath']); 206 $this->phpThumb->setParameter('config_allow_src_above_phpthumb',true); 207 $this->phpThumb->setParameter('allow_local_http_src',true); 375 } else { 376 $this->modx->log(modX::LOG_LEVEL_ERROR,'[phpThumbOf] Could not cache thumb "'.$this->input.'" to file at: '.$this->cacheKey.' - Debug: '.print_r($this->phpThumb->debugmessages,true)); 377 } 378 } else { 379 $this->modx->log(modX::LOG_LEVEL_ERROR,'[phpThumbOf] Could not generate thumbnail: '.$this->input.' - Debug: '.print_r($this->phpThumb->debugmessages,true)); 380 }Tools.php git://github.com/jeromeschneider/Baikal.git | PHP | 600 lines
77 # Asserting config file exists 78 if(!file_exists(PROJECT_PATH_SPECIFIC . "config.php")) { 79 throw new \Exception("Specific/config.php does not exist. Please use the Install tool to create it."); 83 if(!is_readable(PROJECT_PATH_SPECIFIC . "config.php")) { 84 throw new \Exception("Specific/config.php is not readable. Please give read permissions to httpd user on file 'Specific/config.php'."); 85 } 88 if(!is_writable(PROJECT_PATH_SPECIFIC . "config.php")) { 89 throw new \Exception("Specific/config.php is not writable. Please give write permissions to httpd user on file 'Specific/config.php'."); 90 } 98 if(!is_readable(PROJECT_PATH_SPECIFIC . "config.system.php")) { 99 throw new \Exception("Specific/config.system.php is not readable. Please give read permissions to httpd user on file 'Specific/config.system.php'."); 100 } 103 if(!is_writable(PROJECT_PATH_SPECIFIC . "config.system.php")) { 104 throw new \Exception("Specific/config.system.php is not writable. Please give write permissions to httpd user on file 'Specific/config.system.php'."); 105 }Initialize.php git://github.com/jeromeschneider/Baikal.git | PHP | 187 lines
1<?php 2################################################################# 38 # Assert that /Specific is writable 39 if(!file_exists(PROJECT_PATH_SPECIFIC) || !is_dir(PROJECT_PATH_SPECIFIC) || !is_writable(PROJECT_PATH_SPECIFIC)) { 40 throw new \Exception("Specific/ dir is readonly. Baďkal Admin requires write permissions on this dir."); 43 $this->createDefaultConfigFilesIfNeeded(); 44 $this->oModel = new \Baikal\Model\Config\Standard(PROJECT_PATH_SPECIFIC . "config.php"); 45 60 if($this->oForm->persisted()) { 61 $sContent = file_get_contents(PROJECT_PATH_SPECIFIC . "config.system.php"); 62 66 # Setting "BAIKAL_CONFIGURED_VERSION" 67 $sNewConstants =<<<PHP 68# A random 32 bytes key that will be used to encrypt data 72define("BAIKAL_CONFIGURED_VERSION", "{$sBaikalVersion}"); 73PHP; 74pts_client.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 1690 lines
1<?php 2 29 { 30 if(isset(self::$lock_pointers[$lock_file]) || is_writable(dirname($lock_file)) == false || disk_free_space(dirname($lock_file)) < 1024) 31 { 185 'PTS_DIR' => PTS_PATH, 186 'PHP_BIN' => PHP_BIN, 187 'NUM_CPU_CORES' => phodevi::read_property('cpu', 'core-count'), 427 // PTS Defines 428 define('PHP_BIN', pts_client::read_env('PHP_BIN')); 429 define('PTS_INIT_TIME', time()); 432 { 433 // PHP_VERSION_ID is only available in PHP 5.2.6 and later 434 $php_version = explode('.', PHP_VERSION); 434 $php_version = explode('.', PHP_VERSION); 435 define('PHP_VERSION_ID', ($php_version[0] * 10000 + $php_version[1] * 100 + $php_version[2])); 436 }pts_test_installer.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 774 lines
1<?php 2 42 // Install tests 43 if(!is_writable(pts_client::test_install_root_path())) 44 { 44 { 45 echo PHP_EOL . 'ERROR: The test installation directory is not writable.' . PHP_EOL . 'Location: ' . pts_client::test_install_root_path() . PHP_EOL; 46 return false; 94 // Let the pts_test_install_manager make some estimations, etc... 95 echo PHP_EOL; 96 $test_install_manager->generate_download_file_lists(); 124 { 125 echo PHP_EOL . 'The following tests failed to install:' . PHP_EOL . PHP_EOL; 126 echo pts_user_io::display_text_list($failed_installs, "\t- "); 288 { 289 echo PHP_EOL . 'Available Download Mirrors:' . PHP_EOL . PHP_EOL; 290 $url = pts_user_io::prompt_text_menu('Select Preferred Mirror', $package_urls, false);ZendPlatform.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 24 */ 25require_once 'Zend/Cache/Backend.php'; 26 29 */ 30require_once 'Zend/Cache/Backend/Interface.php'; 31 71 } 72 if (!is_writable($accConf['output_cache_dir'])) { 73 Zend_Cache::throwException('The cache copies directory \''. ini_get('zend_accelerator.output_cache_dir') .'\' must be writable !'); 214 } 215 $cache_dir .= '/.php_cache_api/'; 216 return $this->_clean($cache_dir, $mode);ImageSize.php https://code.google.com/p/zfcore/ | PHP | 206 lines
1<?php 2/** 143 144 if (!is_writable($value)) { 145 throw new Zend_Filter_Exception("File '$value' is not writable");Controller.class.php http://plant.googlecode.com/svn/trunk/ | PHP | 856 lines
1<?php 2 3 /** 4 * Controller.class.php 5 * 141 $controllerFile = autoFind($controllerReflection->getName(), "class"); 142 if (!is_writable($controllerFile)) throw new Exception("Can't write to " . $controllerFile . "! Check the permissions!"); 143write.id3v2.php https://code.google.com/p/molinos-cms/ | PHP | 2053 lines
1<?php 2///////////////////////////////////////////////////////////////// 9/// // 10// write.id3v2.php // 11// module for writing ID3v2 tags // 11// module for writing ID3v2 tags // 12// dependencies: module.tag.id3v2.php // 13// /// 15 16getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.tag.id3v2.php', __FILE__, true); 17 182 183 } elseif (is_writable($this->filename)) { 184install-functions.php https://code.google.com/p/osclass/ | PHP | 924 lines
59 'fn' => version_compare(PHP_VERSION, '5.0.0', '>='), 60 'solution' => __('PHP5 is required to run OSClass. You may talk with your hosting to upgrade your PHP version.')), 61 64 'fn' => extension_loaded('mysqli'), 65 'solution' => __('MySQLi extension is required. How to <a target="_blank" href="http://www.php.net/manual/en/mysqli.setup.php">install/configure</a>.')), 66 91 if( file_exists(ABS_PATH . 'config.php') ) { 92 if( is_writable(ABS_PATH . 'config.php') ) { 93 $config_writable = true; 97 'fn' => $config_writable, 98 'solution' => sprintf(__('<code>config.php</code> file has to be writable, i.e.: <code>chmod a+w %sconfig.php</code>'), ABS_PATH)); 99 } else { 257 if( file_exists(ABS_PATH . 'config.php') ) { 258 if( !is_writable(ABS_PATH . 'config.php') ) { 259 if( reportToOsclass() ) {elFinderVolumeLocalFileSystem.class.php http://joomlaworks.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 2/** 3 * @version $Id: elFinderVolumeLocalFileSystem.class.php 1090 2011-10-07 17:01:56Z lefteris.kavadas $ 4 * @package K2 280 protected function _isWritable($path) { 281 return is_writable($path); 282 }LoggerAppenderRollingFile.php http://sabre-zarafa.googlecode.com/svn/trunk/ | PHP | 232 lines
1<?php 2/** 17 * 18 * @package log4php 19 */ 40 * 41 * {@example ../../examples/php/appender_socket.php 19} 42 * 45 * @version $Revision: 31 $ 46 * @package log4php 47 * @subpackage appenders 121 $file = $fileName . '.' . $this->maxBackupIndex; 122 if(is_writable($file)) 123 unlink($file);Upgrade.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 637 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 257 // Are we already in the Ushahidi directory? 258 if ($this->ftp->is_exists("application/config/config.php")) 259 { 272 $ftp_base .= $value."/"; 273 if ($this->ftp->is_exists($ftp_base."application/config/config.php")) 274 { // We've arrived at the right folder 281 // Verify once again that we're in the right directory 282 if ($this->ftp->is_exists($ftp_base."application/config/config.php")) 283 { // We've arrived at the right folder 362 $dest = $dest.basename($source); 363 if ( ! is_writable($dest)) 364 { 374 { 375 if ( ! is_writable($dest)) 376 {install.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 969 lines
61 62 // load database.template.php and work from it. 63 if(!file_exists('../application/config/database.template.php')){ 99 100 if( !is_writable('../application/config/config.php')) { 101 $form->set_error('config_perm', 103 "config.php\" and is unable to do so at the moment. This is probably due to the fact " . 104 "that your permissions aren't set up properly for the <code>config.php</code> file. " . 105 "Please change the permissions of that folder to allow write access (777). " . 365 /** 366 * Removes index.php from index page variable in application/config.config.php file 367 */ 375 if( $yes_or_no == 1 ) { 376 if( strpos(" ".$line,"\$config['index_page'] = 'index.php';") != 0 ) { 377 fwrite($handle, str_replace("index.php","",$line ));update.class.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 567 lines
1<?php 2//////////////////////////////////////////////////////////////////////////// 76 update package will be saved (downloading the package will fail if 77 the supplied path's directory doesn't exist, or if PHP does not have 78 write access to the specified path). 224 // Does the file not exist? Or the path (not writable either)? Or does is the type not supported? 225 if(!file_exists($filename) || !is_file($filename) || !file_exists($path) || !is_dir($path) || !is_writable($path) || ($type != 'tar' && $type != 'zip')) 226 { 431 // Make sure everything exists and what not. 432 if(!file_exists($path) || !is_dir($path) || !is_readable($path) || !file_exists($new_path) || !is_dir($new_path) || !is_writable($new_path) || (!empty($filename) && !file_exists($path. '/'. $filename))) 433 { 532 and the files which were copied over to their new respective locations, 533 running the update.php file in the new paths base directory (if any, if 534 there isn't an update.php file, it won't be ran, of course, once it is 553 // Any update file? Run it then! 554 if(file_exists($new_path. '/update.php')) 555 {setup.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 811 lines
1<?php 2//////////////////////////////////////////////////////////////////////////// 21 22// Setting this to true will prevent the setup.php and setup SQL files 23// from being deleted, just in case any modifications were made to these 104{ 105 // We need to check system requirements. If you aren't running PHP 5.0, 106 // have the XML Parser extension enabled, or MySQL, then you can't run 107 // SnowCMS... Sorry! Oh, and this directory needs to be writeable. 108 if(!is_writable(dirname(__FILE__)) || !version_compare(phpversion(), '5.0.0', '>=') || !function_exists('xml_parser_create') || !function_exists('mysql_connect')) 109 { 149 <p>Checking if directory is writable... ', (is_writable(dirname(__FILE__)) ? '<span class="green bold">Writable</span>' : '<span class="red bold">Not Writable</span>'), '</p> 150 <p>Checking for at least PHP version 5... ', (version_compare(phpversion(), '5.0.0', '>=') ? '<span class="green bold">OK</span>' : '<span class="red bold">FAIL</span>'), ' (running v', phpversion(), ')</p> 151 <p>Checking for <a href="http://www.php.net/manual/en/book.xml.php" target="_blank">XML Parser</a> extension... ', (function_exists('xml_parser_create') ? '<span class="green bold">Enabled</span>' : '<span class="red bold">Not Enabled</span>'), '</p> 211 header('HTTP/1.1 Temporary Redirect'); 212 header('Location: setup.php?step=2'); 213File.php git://github.com/silverstripe/sapphire.git | PHP | 1008 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: File.php 24030 2011-05-09 22:10:00Z mabe $ 21 */ 25 */ 26require_once 'Zend/Cache/Backend/ExtendedInterface.php'; 27 30 */ 31require_once 'Zend/Cache/Backend.php'; 32 155 } 156 if (!is_writable($value)) { 157 Zend_Cache::throwException('cache_dir is not writable'); 224 if ($this->_options['hashed_directory_level'] > 0) { 225 if (!is_writable($path)) { 226 // maybe, we just have to build the directory structurethumbnail.php git://github.com/forkcms/forkcms.git | PHP | 776 lines
1<?php 2 216 // 217 if(@is_writable(dirname($filename)) !== true) 218 {Sqlite.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 228 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 4 * 5 * $Id: Sqlite.php 3917 2009-01-21 03:06:22Z zombor $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 40 // Make sure the cache directory is writable 41 if ( ! is_dir($directory) OR ! is_writable($directory)) 42 throw new Kohana_Exception('cache.unwritable', $directory); 44 // Make sure the cache database is writable 45 if (is_file($filename) AND ! is_writable($filename)) 46 throw new Kohana_Exception('cache.unwritable', $filename);file.c git://github.com/phalcon/cphalcon.git | C | 421 lines
5 +------------------------------------------------------------------------+ 6 | Copyright (c) 2011-2012 Phalcon Team (http://www.phalconphp.com) | 7 +------------------------------------------------------------------------+ 12 | obtain it through the world-wide-web, please send an email | 13 | to license@phalconphp.com so we can send you a copy immediately. | 14 +------------------------------------------------------------------------+ 14 +------------------------------------------------------------------------+ 15 | Authors: Andres Gutierrez <andres@phalconphp.com> | 16 | Eduar Carvajal <eduar@phalconphp.com> | 23 24#include "php.h" 25#include "php_phalcon.h" 52 */ 53PHP_METHOD(Phalcon_Cache_Backend_File, __construct){ 54enigma_driver_gnupg.php git://pkgs.fedoraproject.org/roundcubemail | PHP | 306 lines
1<?php 2/* 23 24require_once 'Crypt/GPG.php'; 25 57 "Keys directory doesn't exists: $homedir"); 58 if (!is_writable($homedir)) 59 return new enigma_error(enigma_error::E_INTERNAL, 70 "Unable to create keys directory: $homedir"); 71 if (!is_writable($homedir)) 72 return new enigma_error(enigma_error::E_INTERNAL,step_3.php git://github.com/osCommerce/oscommerce.git | PHP | 174 lines
18 <li><?php echo OSCOM::getDef('box_steps_step_2'); ?></li> 19 <li style="font-weight: bold;"><?php echo OSCOM::getDef('box_steps_step_3'); ?></li> 20 </ol> 22 23 <h1><?php echo OSCOM::getDef('page_title_installation'); ?></h1> 24 72[OSCOM] 73bootstrap_file = "index.php" 74default_site = "Shop" 129 130 <p><?php echo OSCOM::getDef('text_successful_installation'); ?></p> 131 171 172 <p align="center"><?php echo HTML::button(array('href' => $http_server . $http_dir_ws . 'index.php?Shop', 'icon' => 'cart', 'title' => OSCOM::getDef('button_shop'))) . ' ' . HTML::button(array('href' => $http_server . $http_dir_ws . 'index.php?Admin', 'icon' => 'gear', 'title' => OSCOM::getDef('button_admin'))); ?></p> 173 </div>cache.test.php git://github.com/klevo/wildflower.git | PHP | 365 lines
9 * 10 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite> 11 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 17 * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests 18 * @package cake 19 * @subpackage cake.tests.cases.libs.view.helpers 20 * @since CakePHP(tm) v 1.2.0.4206 21 * @version $Revision$ 126 127 $filename = CACHE . 'views' . DS . 'cachetest_cache_parsing.php'; 128 $this->assertTrue(file_exists($filename)); 182 183 $filename = CACHE . 'views' . DS . 'cachetest_cache_parsing.php'; 184 $this->assertTrue(file_exists($filename));class-wp-filesystem-direct.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 362 lines
1<?php 2/** 9/** 10 * WordPress Filesystem Class for direct PHP file and folder manipulation. 11 * 259 260 function is_writable($file) { 261 return @is_writable($file); 283 function mkdir($path, $chmod = false, $chown = false, $chgrp = false) { 284 // safe mode fails with a trailing slash under certain PHP versions. 285 $path = untrailingslashit($path);index.php http://goodgirl.googlecode.com/svn/ | PHP | 348 lines
30 if (is_file($file)){ 31 echo '<li><font color="'.(is_writable($file) ? 'green' : 'red').'">'.$file.'</font><br />'; 32 } 51function write_and_go($file, $text = 'ok'){ 52global $PHP_SELF, $path; 53 55 @file_write($path.'/'.$file.'.tmp', $text); 56 @header('Location: '.$PHP_SELF); 57} 123if ($_GET['action'] == 'categories'){ 124 $fp = file($path.'/data/category.db.php'); 125 foreach ($fp as $fo){ 281 282 file_write($cutepath.'/data/xfields-data.php', "<?php\r\n\$array = array (\r\n".$replace1); 283 file_write($cutepath.'/data/xfields-data.txt', $replace2);common.php http://nblog-thinkphp.googlecode.com/svn/trunk/ | PHP | 857 lines
1<?php 2// +---------------------------------------------------------------------- 12// +---------------------------------------------------------------------- 13// | $Id: common.php 115 2011-05-11 09:06:41Z nicholasinlove1986@gmail.com $ 14// +---------------------------------------------------------------------- 20 21require_cache (ROOT_PATH.'Includes/common.inc.php'); 22 63 64 if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { 65 /* ???? */ 131 132 if (@is_writable($file_path)) { 133 $mark ^= 14; 272 while ($file = readdir($folder)) { 273 if ($file == '.' || $file == '..' || $file == 'index.htm' || $file == 'index.html' || $file == 'index.php') { 274 continue;Setup.class.php git://github.com/h9k/magirc.git | PHP | 290 lines
1<?php 2 9 $db = array(); 10 if (file_exists(__DIR__.'/../../conf/magirc.cfg.php')) { 11 include(__DIR__.'/../../conf/magirc.cfg.php'); 12 } else { 13 die ('magirc.cfg.php configuration file missing'); 14 } 49 50 if (version_compare("5.5.0", phpversion(), "<") == 1) { 51 $status['php'] = true; 52 } else { 53 $status['php'] = false; 54 $status['error'] = true; 78 if (file_exists(MAGIRC_CFG_FILE)) { 79 if (is_writable(MAGIRC_CFG_FILE)) { 80 $status['writable'] = true;upload.php git://github.com/gallery/gallery3.git | PHP | 157 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 8 * @copyright (c) 2007-2009 Kohana Team 9 * @license http://kohanaphp.com/license 10 */ 53 54 if ( ! is_writable($directory)) 55 throw new Kohana_Exception('The upload destination folder, :dir:, does not appear to be writable.', array(':dir:' => $directory));create_coy.php https://bitbucket.org/meerdevelopersoffice/bolivia.git | PHP | 389 lines
1<?php 2/********************************************************************** 148 if ($error == -1) 149 display_error(_("Cannot open the configuration file - ") . $path_to_root . "/config_db.php"); 150 else if ($error == -2) 150 else if ($error == -2) 151 display_error(_("Cannot write to the configuration file - ") . $path_to_root . "/config_db.php"); 152 else if ($error == -3) 152 else if ($error == -3) 153 display_error(_("The configuration file ") . $path_to_root . "/config_db.php" . _(" is not writable. Change its permissions so it is, then re-run the operation.")); 154 if ($error != 0) 180 $comp_path = company_path($i); 181 if (!is_dir($comp_path) || !is_writable($comp_path)) { 182 display_error(_('Broken company subdirectories system. You have to remove this company manually.')); 186 // make sure config file is writable 187 if (!is_writeable($path_to_root . "/config_db.php")) 188 {haml.php git://github.com/fredwu/kohana-phamlp.git | PHP | 233 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 8 * @copyright Wuit.com <http://wuit.com/> 9 * @license http://www.opensource.org/licenses/mit-license.php 10 */ 88 /** 89 * Compiles the HAML template from the given HTML/PHP template 90 * 198 { 199 if ( ! is_writable($dir)) 200 {Math.php https://code.google.com/p/alfresco-php-sdk/ | PHP | 275 lines
1<?php 2/** 51 } 52 } elseif( !is_dir( $wgTmpDirectory ) || !is_writable( $wgTmpDirectory ) ) { 53 return $this->_error( 'math_bad_tmpdir' ); 144 } 145 } elseif( !is_dir( $hashpath ) || !is_writable( $hashpath ) ) { 146 return $this->_error( 'math_bad_output' ); 214 } 215 } elseif( !is_dir( $hashpath ) || !is_writable( $hashpath ) ) { 216 return false;Common.php git://github.com/imagecms/ImageCMS.git | PHP | 560 lines
41{ 42 function is_php($version = '5.0.0') 43 { 43 { 44 static $_is_php; 45 $version = (string)$version; 48 { 49 $_is_php[$version] = (version_compare(PHP_VERSION, $version) < 0) ? FALSE : TRUE; 50 } 150 // Is the request a class extension? If so we load it too 151 if (file_exists(APPPATH.$directory.'/'.config_item('subclass_prefix').$class.'.php')) 152 { 156 { 157 require(APPPATH.$directory.'/'.config_item('subclass_prefix').$class.'.php'); 158 } 559/* End of file Common.php */ 560/* Location: ./system/core/Common.php */add_products.php http://online-wholesale.googlecode.com/svn/trunk/ | PHP | 303 lines
2 <div class="menu" style="margin-top:-50px;"> 3 <?php include('modules/members/dashboard.php');?> 4 </div> 182 ?> 183 <option value="<?php echo $rs['id'];?>"><?php echo $rs['name'];?></option> 184 <?php } ?> 230 <tr> 231 <td align="center"><?php echo $rs["id"];?></td> 232 <td> 233 <a href="?m=products&p=order_products&pedit=true&code=<?php echo $rs['code'];?>"> 234 <?php echo $rs["name"];?> 235 </a> 259 ?> 260 <option value="<?php echo $rs['id'];?>"><?php echo $rs['name'];?></option> 261 <?php } ?>index.php git://github.com/usebb/UseBB.git | PHP | 287 lines
63 64 $out .= ' <p>This installer has been run already. To enable it again, delete the <code>installer_run</code> config value from <code>config.php</code>.</p> 65'; 73 74 if ( !empty($_POST['start']) && !is_writable(ROOT_PATH.'config.php') && !empty($_SESSION['installer_running']) ) { 75 96 97 if ( is_writable(ROOT_PATH.'config.php') ) 98 $functions->redirect('index.php', array('step' => 2)); 110 111 $config_warning = ( !is_writable(ROOT_PATH.'config.php') ) ? '<p class="important"><strong>Tip:</strong> <code>config.php</code> is at this moment not writable by the webserver. Therefore, you will be asked to download the file after filling in this form. If you would like UseBB to edit the file automatically, make <code>config.php</code> writable and <a href="index.php">refresh</a> this wizard.</p>' : ''; 112 147 148 if ( is_writable(ROOT_PATH.'config.php') ) { 149image_upload.php git://github.com/KumbiaPHP/KumbiaPHP.git | PHP | 208 lines
1<?php 2/** 2/** 3 * KumbiaPHP web & app Framework 4 * 13 * 14 * @copyright Copyright (c) 2005 - 2020 KumbiaPHP Team (http://www.kumbiaphp.com) 15 * @license https://github.com/KumbiaPHP/KumbiaPHP/blob/master/LICENSE New BSD License 130 // Verifica que se pueda escribir en el directorio 131 if (!is_writable($this->_path)) { 132 Flash::error('Error: no se puede escribir en el directorio');BasicData.cpp git://github.com/gregsmirnov/bouml.git | C++ | 259 lines
197 198void BasicData::send_php_def(ToolCom *) { 199} 210 case setStereotypeCmd: 211 if (!bn->is_writable() && !root_permission()) 212 com->write_ack(FALSE); 224 if (com->api_format() >= 34) { 225 send_php_def(com); 226 if (com->api_format() >= 39) 241 break; 242 case getPhpDefCmd: 243 send_uml_def(com, bn, comment); 243 send_uml_def(com, bn, comment); 244 send_php_def(com); 245 break;WindGenerateProject.php git://github.com/phpwind/windframework.git | PHP | 227 lines
1<?php 2Wind::import('WIND:utility.WindFolder'); 7 * @author Shi Long <long.shi@alibaba-inc.com> 8 * @copyright ©2003-2103 phpwind.com 9 * @license http://www.windframework.com 52 WindFolder::mkRecur($this->dir); 53 if (!is_writable($this->dir)) return false; 54 $result = $this->generateData() 96 /** 97 * 生成src目录及IndexController.php 98 * 101 $content = <<<EOF 102<?php 103 115 WindFolder::mkRecur($dir); 116 if (!WindFile::write($dir . '/IndexController.php', $content)) return false; 117 $this->srcDir = $this->_resolveDirName($this->srcDir);configuration.php http://acp3.googlecode.com/svn/trunk/ | PHP | 237 lines
1<?php 2if (defined('IN_INSTALL') === false) 5if (isset($_POST['submit'])) { 6 $config_path = ACP3_ROOT . 'includes/config.php'; 7 $db = new ACP3_DB(); 32 $errors[] = $lang->t('common', 'select_time_zone'); 33 if (is_file($config_path) === false || is_writable($config_path) === false) 34 $errors[] = $lang->t('installation', 'wrong_chmod_for_config_file'); 76 77 // Daten in die config.php schreiben und diese laden 78 writeConfigFile($config); 158 $mod_id = $db->select('id', 'modules', 'name = \'' . $row . '\''); 159 if (is_file(MODULES_DIR . $row . '/extensions/search.php') === true) 160 $db->insert('acl_resources', array('id' => '', 'module_id' => $mod_id[0]['id'], 'page' => 'extensions/search', 'params' => '', 'privilege_id' => 1)); 160 $db->insert('acl_resources', array('id' => '', 'module_id' => $mod_id[0]['id'], 'page' => 'extensions/search', 'params' => '', 'privilege_id' => 1)); 161 if (is_file(MODULES_DIR . $row . '/extensions/feeds.php') === true) 162 $db->insert('acl_resources', array('id' => '', 'module_id' => $mod_id[0]['id'], 'page' => 'extensions/feeds', 'params' => '', 'privilege_id' => 1));Varien.php http://yurishop.googlecode.com/svn/trunk/ | PHP | 430 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 63 session_module_name($this->getSessionSaveMethod()); 64 if (is_writable($this->getSessionSavePath())) { 65 session_save_path($this->getSessionSavePath());CodeTest.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 238 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 21 $this->_path = $path = LITHIUM_APP_PATH . '/resources/tmp/tests'; 22 $this->skipIf(!is_writable($this->_path), "{$this->_path} is not writable."); 23 25 26 $file = "{$this->_path}/a.php"; 27 $data = <<<'EOD' 27 $data = <<<'EOD' 28<?php 29$t('simple 1');pwfunctions.class.php http://bitcero-modules.googlecode.com/svn/ | PHP | 193 lines
1<?php 2// $Id: pwfunctions.class.php 903 2012-01-03 07:09:43Z i.bitcero $ 3// -------------------------------------------------------------- 23 24 $recent = $xoopsModuleConfig['urlmode'] ? XOOPS_URL.'/'.trim($xoopsModuleConfig['htbase'], '/').'/recent/' : XOOPS_URL.'/modules/works/index.php?page=recent'; 25 $featured = $xoopsModuleConfig['urlmode'] ? XOOPS_URL.'/'.trim($xoopsModuleConfig['htbase'], '/').'/featured/' : XOOPS_URL.'/modules/works/index.php?page=featured'; 77 if ($xoopsModuleConfig['urlmode']){ 78 $contenido = "RewriteEngine On\nRewriteBase ".str_replace($docroot, '', PW_PATH.'/')."\nRewriteCond %{REQUEST_URI} !/[A-Z]+-\nRewriteRule ^pag/(.*)/?$ index.php?pag=$1 [L]\nRewriteRule ^recent/(.*)/?$ recent.php$1 [L]\nRewriteRule ^featured/(.*)/?$ featured.php$1 [L]\nRewriteRule ^work/(.*)/?$ work.php?id=$1 [L]\nRewriteRule ^cat/(.*)/?$ catego.php?id=$1 [L]"; 79 //Compara contenido de htaccess 83 84 if ((!is_writable($file))) 85 { 101 102 include_once XOOPS_ROOT_PATH.'/modules/works/class/pwwork.class.php'; 103 include_once XOOPS_ROOT_PATH.'/modules/works/class/pwcategory.class.php';exaBD.php http://gesior-aac.googlecode.com/svn/trunk/ | PHP | 157 lines
1<?php 2/* 119 } 120 elseif(!is_writable($bd_save_dir.$bd_subdir)) 121 die('exaBotDefender blad: nadaj uprawnienia zapisu dla' . $bd_save_dir.$bd_subdir);Statuscheck.php git://github.com/prashants/webzash.git | PHP | 95 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 16 $check_path = $CI->config->item('config_path') . "settings/"; 17 if (! is_writable($check_path)) 18 { 22 $check_path = $CI->config->item('config_path') . "accounts/"; 23 if (! is_writable($check_path)) 24 { 28 $check_path = $CI->config->item('config_path') . "users/"; 29 if (! is_writable($check_path)) 30 { 34 $check_path = $CI->config->item('backup_path'); 35 if (! is_writable($check_path)) 36 { 92 93/* End of file Statuscheck.php */ 94/* Location: ./system/application/libraries/Statuscheck.php */_ajax_get_details_listing.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 54 lines
27 <tr class="<?php echo $css; ?>" id="row<?php echo $count; ?>" > 28 <td align="center" id="tdz<?php echo $count; ?>"><span id="flag<?php echo $count; ?>" class="<?php echo $file['flag']; ?>"> </span><input type="checkbox" name="check[]" id="cb<?php echo $count; ?>" value="<?php echo $file['path']; ?>" <?php echo $strDisabled; ?> /> 29 </td> 29 </td> 30 <td align="center" class="fileColumns" id="tdst<?php echo $count; ?>"> <a id="a<?php echo $count; ?>" href="<?php echo $file['path']; ?>" target="_blank"><span class="<?php echo $file['cssClass']; ?>"> </span></a></td> 31 <td class="<?php echo $strClass; ?> docName" id="tdnd<?php echo $count; ?>"><?php echo $file['name']; ?></td> 31 <td class="<?php echo $strClass; ?> docName" id="tdnd<?php echo $count; ?>"><?php echo $file['name']; ?></td> 32 <td class="docInfo" id="tdrd<?php echo $count; ?>"><?php echo transformFileSize($file['size']); ?></td> 33 <td class="docInfo" id="tdth<?php echo $count; ?>"><?php echo @date(DATE_TIME_FORMAT,$file['mtime']); ?></td> 39 <tr class="<?php echo $css; ?>" id="row<?php echo $count; ?>" > 40 <td align="center" id="tdz<?php echo $count; ?>"><span id="flag<?php echo $count; ?>" class="<?php echo $file['flag']; ?>"> </span><input type="checkbox" name="check[]" id="cb<?php echo $count; ?>" value="<?php echo $file['path']; ?>" <?php echo $strDisabled; ?>/> 41 </td> 41 </td> 42 <td lign="center" class="fileColumns" id="tdst<?php echo $count; ?>"> <a id="a<?php echo $count; ?>" href="<?php echo $file['path']; ?>" <?php echo $file['cssClass'] == 'filePicture'?'rel="ajaxPhotos"':''; ?> ><span class="<?php echo ($file['file']||$file['subdir']?$file['cssClass']:"folderEmpty"); ?>"> </span></a></td> 43 <td class="<?php echo $strClass; ?> docName" id="tdnd<?php echo $count; ?>"><?php echo $file['name']; ?></td>PackageData.cpp git://pkgs.fedoraproject.org/bouml | C++ | 264 lines
46 java_dir = model->java_dir; 47 php_dir = model->php_dir; 48 python_dir = model->python_dir; 52 java_package = model->java_package; 53 php_namespace = model->php_namespace; 54 python_package = model->python_package; 79 80void PackageData::send_php_def(ToolCom * com) { 81 com->write_string(php_dir); 81 com->write_string(php_dir); 82 //com->write_string(php_namespace); 83} 100 if (((unsigned char) args[-1]) >= firstSetCmd) { 101 if (!bn->is_writable() && !root_permission()) 102 com->write_ack(FALSE);Kurogo.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 1724 lines
1<?php 2 28if (version_compare(PHP_VERSION, KUROGO_REQUIRED_VERSION, '<')) { 29 die('Kurogo requires at least PHP version ' . KUROGO_REQUIRED_VERSION . '. You have version ' . PHP_VERSION); 30} 32// 33// And a double quote define for ini files (php 5.1 can't escape them) 34// 176 $tempDir = self::tempDirectory(); 177 if (!is_writable($tempDir)) { 178 throw new KurogoConfigurationException("Temporary directory $tempDir not available"); 243 //load Package.php if the package hasn't already been loaded 244 if (is_file("$dir.php")) { 245 include_once("$dir.php"); 281 if ($this->addLibDir($dir)) { 282 //load Package.php if the package hasn't already been loaded 283 if (is_file("$dir.php")) {UploadBehavior.php git://github.com/krolow/Attach.git | PHP | 711 lines
1<?php 2/** 2/** 3 * Upload for CakePHP. 4 * 4 * 5 * PHP 5.3 6 * 14 * @author Vinícius Krolow <krolow@gmail.com> 15 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 16 */ 341 public function isWritable($dir) { 342 if (is_dir($dir) && is_writable($dir)) { 343 return true;