100+ results results for 'php chmod repo:DESURE/dcms' (1777 ms)
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2 301 { 302 // create non existing dirs, asumes PHP5 303 if ( ! @mkdir($test_path, DIR_WRITE_MODE, TRUE)) return FALSE; 343 fclose($fp); 344 @chmod($cache_path, DIR_WRITE_MODE); 345 429 430/* End of file Cache.php */ 431/* Location: ./application/libraries/Cache.php */IndexController.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 390 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 103 { 104 $searchModules = Mage::getConfig()->getNode("adminhtml/global_search"); 105 $items = array(); 115 } else { 116 if (empty($searchModules)) { 117 $items[] = array( 127 $query = $this->getRequest()->getParam('query', ''); 128 foreach ($searchModules->children() as $searchConfig) { 129MaildirFolderTest.php https://github.com/adaykin/zf2.git | PHP | 444 lines
1<?php 2/** 36 */ 37class MaildirFolderTest extends \PHPUnit_Framework_TestCase 38{ 203 try { 204 // explicit call of __toString() needed for PHP < 5.2 205 $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder'); 235 236 // explicit call of __toString() needed for PHP < 5.2 237 $found_folders[$folder->__toString()] = $localName; 257 258 // explicit call of __toString() needed for PHP < 5.2 259 $found_folders[$folder->__toString()] = $localName; 277 278 // explicit call of __toString() needed for PHP < 5.2 279 $found_folders[$folder->__toString()] = $localName;permissions.inc.php https://github.com/martinf55/revolution.git | PHP | 193 lines
1<?php 2/** 44$_lang['perm.delete_user_desc'] = 'Benutzer löschen oder entfernen.'; 45$_lang['perm.directory_chmod_desc'] = 'Verzeichnisrechte eines Verzeichnisses ändern (CHMOD).'; 46$_lang['perm.directory_create_desc'] = 'Verzeichnisse anlegen.';Cronjob.php https://github.com/chrisamoore/FUEL-CMS.git | PHP | 264 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 23 * based on this: 24 * http://www.underwaterdesign.com/2006/06/php_create_a_cron_job_with_php.php 25 * 152 $cron = ''; 153 if (!empty($this->mailto)) $cron .= "MAILTO=".$this->mailto.PHP_EOL; 154 $joiner = (empty($this->mailto)) ? ">> /dev/null 2>&1" : ''; 154 $joiner = (empty($this->mailto)) ? ">> /dev/null 2>&1" : ''; 155 $cron .= implode($joiner.PHP_EOL, $this->_jobs); 156 $cron .= PHP_EOL; // !!!important... for cronjobs to run, you must have this ending newline 177 touch($this->cronfile); // create the file, Directory "cron" must be writeable 178 chmod($this->cronfile, 0777); // make new file writeable 179 $open = fopen($this->cronfile, "w"); 262 263/* End of file Cronjob.php */ 264/* Location: ./modules/cronjob/libraries/Cronjob.php */Thumbnail.php https://github.com/garryn/evolution.git | PHP | 239 lines
22 */ 23include MODX_BASE_PATH."manager/media/browser/mcpuk/connectors/php/Commands/helpers/iconlookup.php"; 24 32 function Thumbnail($fckphp_config,$type,$cwd) { 33 $this->fckphp_config=$fckphp_config; 34 $this->type=$type; 71 imagejpeg($result,$thumbfile,70); 72 @chmod($thumbfile,$this->fckphp_config['modx']['file_permissions']); //modified for MODx 73 $icon=$thumbfile; 75 imagepng($result,$thumbfile); 76 @chmod($thumbfile,$this->fckphp_config['modx']['file_permissions']); //modified for MODx 77 $icon=$thumbfile; 79 imagegif($result,$thumbfile); 80 @chmod($thumbfile,$this->fckphp_config['modx']['file_permissions']); //modified for MODx 81 $icon=$thumbfile;Result.php https://gitlab.com/remyvianne/krowkaramel | PHP | 208 lines
1<?php 2namespace MailPoetVendor\Doctrine\DBAL\ForwardCompatibility; 42 } 43 public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null) 44 { 44 { 45 return $this->stmt->setFetchMode($fetchMode, $arg2, $arg3); 46 } 46 } 47 public function fetch($fetchMode = null, $cursorOrientation = PDO::FETCH_ORI_NEXT, $cursorOffset = 0) 48 { 51 } 52 public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = null) 53 { 54 Deprecation::triggerIfCalledFromOutside('doctrine/dbal', 'https://github.com/doctrine/dbal/pull/4019', 'Result::fetchAll() is deprecated, use Result::fetchAllNumeric(), fetchAllAssociative() or ' . 'fetchFirstColumn() instead.'); 55 return $this->stmt->fetchAll($fetchMode, $fetchArgument, $ctorArgs); 56 }search.php https://gitlab.com/alexprowars/bitrix | PHP | 532 lines
1<?php 2/** 70 71 public static function searchUsers($params = array(), &$searchModified) 72 { 93 ), 94 $searchModified 95 ); 401 { 402 $searchModified = false; 403 $result["USERS"] = self::searchUsers(array( 407 'requestFields' => $requestFields 408 ), $searchModified); 409 409 410 if (!empty($searchModified)) 411 {Filesystem.php https://github.com/bhaumik25/zend-framework.git | PHP | 363 lines
1<?php 2/** 23/** Zend_Search_Lucene_Storage_Directory */ 24require_once 'Zend/Search/Lucene/Storage/Directory.php'; 25 26/** Zend_Search_Lucene_Storage_File_Filesystem */ 27require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php'; 28 184 185 global $php_errormsg; 186 $trackErrors = ini_get('track_errors'); ini_set('track_errors', '1'); 186 $trackErrors = ini_get('track_errors'); ini_set('track_errors', '1'); 187 if (!@chmod($this->_dirPath . '/' . $filename, self::$_defaultFilePermissions)) { 188 ini_set('track_errors', $trackErrors); 188 ini_set('track_errors', $trackErrors); 189 throw new Zend_Search_Lucene_Exception($php_errormsg); 190 }MysqliStatement.php https://gitlab.com/techniconline/kmc | PHP | 370 lines
252 253 $fetchMode = $fetchMode ?: $this->_defaultFetchMode; 254 267 default: 268 throw new MysqliException("Unknown fetch type '{$fetchMode}'"); 269 } 276 { 277 $fetchMode = $fetchMode ?: $this->_defaultFetchMode; 278 353 */ 354 public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null) 355 { 355 { 356 $this->_defaultFetchMode = $fetchMode; 357Config.php https://github.com/justinmc/turkiball.com.git | PHP | 514 lines
34 */ 35require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ImagesConfig.php"; 36 157 */ 158 var $_chmodFolders = 0755; 159 /** 337 { 338 return $this->_chmodFiles; 339 } 479 if (isset($GLOBALS['config']['ChmodFiles'])) { 480 $this->_chmodFiles = $GLOBALS['config']['ChmodFiles']; 481 } 482 if (isset($GLOBALS['config']['ChmodFolders'])) { 483 $this->_chmodFolders = $GLOBALS['config']['ChmodFolders']; 484 }installv2.sh https://bitbucket.org/jorgenio/boca.git | Shell | 320 lines
36if [ $? != 0 ]; then 37 echo "Make the install script executable (using chmod) and run it directly, like ./installv2.sh" 38else 111apt-get -y install zenity apache2 eclipse-pde eclipse-rcp eclipse-platform eclipse-jdt eclipse emacs \ 112 evince g++ gcc gedit scite libstdc++6 makepasswd manpages-dev mii-diag php5-cli php5-mcrypt openjdk-6-dbg \ 113 php5 php5-pgsql postgresql postgresql-client postgresql-contrib quota sharutils default-jdk openjdk-6-doc \ 114 vim-gnome geany geany-plugin-addons geany-plugin-gdb geany-plugins default-jre sysstat \ 115 $sysvutils vim xfce4 $libCppdev $libCppdoc $libCppdbg php5-gd stl-manual gcc-doc debootstrap schroot c++-annotations 116if [ $? != 0 ]; then 169 echo -e "password root `makepasswd`" >> /etc/grub.d/40_custom 170 chmod go-rw /etc/grub.d/40_custom 171 grub-mkconfig > /boot/grub/grub.cfg 171 grub-mkconfig > /boot/grub/grub.cfg 172 chmod go-rw /boot/grub/grub.cfg 173fiStatement.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 488 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Statement.php 24790 2012-05-10 12:28:51Z mcleod@spaceweb.nl $ 21 */ 25 */ 26#require_once 'Zend/Db.php'; 27 30 */ 31#require_once 'Zend/Db/Statement/Interface.php'; 32 59 */ 60 protected $_fetchMode = Zend_Db::FETCH_ASSOC; 61 150 */ 151 #require_once 'Zend/Db/Statement/Exception.php'; 152 throw new Zend_Db_Statement_Exception("Invalid bind-variable position '$val'");exc.py https://gitlab.com/pooja043/Globus_Docker_4 | Python | 367 lines
5# This module is part of SQLAlchemy and is released under 6# the MIT License: http://www.opensource.org/licenses/mit-license.php 7 30 31class NoSuchModuleError(ArgumentError): 32 """Raised when a dynamically-loaded module (usually a database dialect)interface.php https://bitbucket.org/mrmustarde/manhattan-beach.git | PHP | 293 lines
61 $php_group = reset( explode( ' ', exec( 'groups' ) ) ); 62 echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress is almost ready.', 'hmbkp' ) . '</strong> ' . sprintf( __( 'Your backups directory isn\'t writable, run %1$s or %2$s or set the permissions yourself.', 'hmbkp' ), '<code>chown -R ' . esc_html( $php_user ) . ':' . esc_html( $php_group ) . ' ' . esc_html( hmbkp_path() ) . '</code>', '<code>chmod -R 777 ' . esc_html( hmbkp_path() ) . '</code>' ) . '</p></div>'; 63 } 119 if ( isset( $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php'] ) ) 120 $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] = str_replace( 'Once activated you\'ll find me under <strong>Tools → Backups</strong>', 'Find me under <strong><a href="' . admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG ) . '">Tools → Backups</a></strong>', $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] ); 121 244 245 <span class="hmbkp-status"><?php echo $schedule->get_status() ? $schedule->get_status() : __( 'Starting Backup', 'hmbkp' ); ?> <a href="<?php echo add_query_arg( array( 'action' => 'hmbkp_cancel', 'hmbkp_schedule_id' => $schedule->get_id() ), HMBKP_ADMIN_URL ); ?>"><?php _e( 'cancel', 'hmbkp' ); ?></a></span> 246 251 <?php if ( $schedule->get_type() !== 'database' ) { ?> 252 <a class="fancybox" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_edit_schedule_excludes_load', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Excludes', 'hmbkp' ); ?></a> | 253 <?php } ?> 254 255 <a class="hmbkp-run" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_run_schedule', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Run now', 'hmbkp' ); ?></a> | 256README.md https://gitlab.com/xolotsoft/pumasruiz | Markdown | 306 lines
1# Boris: A tiny little, but robust REPL for PHP 2 4 5Python has one. Ruby has one. Clojure has one. Now PHP has one too. Boris is 6PHP's missing REPL (read-eval-print loop), allowing developers to experiment 6PHP's missing REPL (read-eval-print loop), allowing developers to experiment 7with PHP code in the terminal in an interactive manner. If you make a mistake, 8it doesn't matter, Boris will report the error and stand to attention for 16 17I'm in the process of transitioning away from PHP to Ruby. I have come to find 18PHP's lack of a real REPL to be frustrating and was not able to find an existing 32 curl -O https://github.com/d11wtq/boris/releases/download/v1.0.8/boris.phar 33 chmod +x boris.phar 34 ./boris.phar 59 60 chmod +x boris.phar 61 mv boris.phar /usr/local/bin/borisfileman_server_access.php https://gitlab.com/alexprowars/bitrix | PHP | 346 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fileman/prolog.php"); 8require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fileman/include.php"); 9include_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fileman/classes/general/fileman_utils.php"); 10IncludeModuleLangFile(__FILE__); 106 $result_value = (int) "0".$result_value; 107 $oChmod = new CFilemanChmod; 108 147 148 $oChmod->Chmod($arFile['ABS_PATH']); 149 } 161 window.spBstoped = <?= $bStoped ? 'true' : 'false'?>; 162 window.spResult = <?= CUtil::PhpToJSObject($oChmod->Result)?>; 163 </script>class-wp-filesystem-ssh2.php https://github.com/fcbajao/winmakati-wordpress.git | PHP | 383 lines
28 * 29 * Copy the ssh.so file it creates to your PHP Module Directory. 30 * Open up your PHP.INI file and look for where extensions are placed. 60 if ( !function_exists('stream_get_contents') ) { 61 $this->errors->add('ssh2_php_requirement', __('The ssh2 PHP extension is available, however, we require the PHP5 function <code>stream_get_contents()</code>')); 62 return false; 190 191 function chmod($file, $mode = false, $recursive = false) { 192 if ( ! $this->exists($file) ) 196 if ( $this->is_file($file) ) 197 $mode = FS_CHMOD_FILE; 198 elseif ( $this->is_dir($file) ) 314 if ( ! $chmod ) 315 $chmod = FS_CHMOD_DIR; 316 if ( ! ssh2_sftp_mkdir($this->sftp_link, $path, $chmod, true) )perf-mysql.inc.php https://github.com/md-tech/openemr.git | PHP | 315 lines
1<?php 2/* 134 $ADODB_FETCH_MODE = ADODB_FETCH_NUM; 135 if ($this->conn->fetchMode !== false) $savem = $this->conn->SetFetchMode(false); 136 138 139 if (isset($savem)) $this->conn->SetFetchMode($savem); 140 $ADODB_FETCH_MODE = $save; 163 $ADODB_FETCH_MODE = ADODB_FETCH_NUM; 164 if ($this->conn->fetchMode !== false) $savem = $this->conn->SetFetchMode(false); 165 199 $ADODB_FETCH_MODE = ADODB_FETCH_NUM; 200 if ($this->conn->fetchMode !== false) $savem = $this->conn->SetFetchMode(false); 201 251 $ADODB_FETCH_MODE = ADODB_FETCH_NUM; 252 if ($this->conn->fetchMode !== false) $savem = $this->conn->SetFetchMode(false); 253io.php https://github.com/robertatakenaka/Regional-2.git | PHP | 295 lines
1<?php 2/* 21 * 22 * This is the File Manager Connector for PHP. 23 */ 117 118 $php_errormsg = '' ; 119 // Enable error tracking to catch the error. 121 122 if ( isset( $Config['ChmodOnFolderCreate'] ) && !$Config['ChmodOnFolderCreate'] ) 123 { 128 $permissions = 0777 ; 129 if ( isset( $Config['ChmodOnFolderCreate'] ) ) 130 { 169 if ( $position === false || $position <> strlen( $sRealPath ) - strlen( $sSelfPath ) ) 170 SendError( 1, 'Sorry, can\'t map "UserFilesPath" to a physical path. You must set the "UserFilesAbsolutePath" value in "editor/filemanager/connectors/php/config.php".' ) ; 171FileTransfer.php https://gitlab.com/geeta7/drupal | PHP | 422 lines
1<?php 2 135 * @param int $mode 136 * The new file permission mode to be passed to chmod(). 137 * @param bool $recursive 137 * @param bool $recursive 138 * Pass TRUE to recursively chmod the entire directory specified in $path. 139 * 141 * 142 * @see http://php.net/chmod 143 */ 143 */ 144 public final function chmod($path, $mode, $recursive = FALSE) { 145 if (!($this instanceof ChmodInterface)) { 150 $this->checkPath($path); 151 $this->chmodJailed($path, $mode, $recursive); 152 }downloadalbum.php https://github.com/wrlee/gallery3-contrib.git | PHP | 300 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2/** 112 0, // internal file attributes (2 bytes) 113 0x81b40000, // external file attributes (4 bytes) => chmod 664 114 $lfh_offset, // relative offset of local header (4 bytes) 214 /** 215 * See system/helpers/download.php 216 */ 224 /** 225 * See system/helpers/download.php 226 */ 287 /** 288 * See http://bugs.php.net/bug.php?id=45028 289 */ 292 293 if( version_compare(PHP_VERSION, '5.2.7', '<') ) { 294 $str = str_pad(dechex($hash), 8, '0', STR_PAD_LEFT);reader.php https://bitbucket.org/crevillo/enetcall.git | PHP | 279 lines
1<?php 2/** 11/** 12 * Handler for files containing PHP arrays that represent DB schema. 13 * 89 $resultArray = $this->db->query( "DESCRIBE `$tableName`" ); 90 $resultArray->setFetchMode( PDO::FETCH_ASSOC ); 91mod_search.php https://github.com/kelios/imshop.git | PHP | 360 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 158 { 159 if ($v == 'mod_search.php') 160 { 226 mkdir(APPPATH.'modules/'.$name); 227 chmod(APPPATH.'modules/'.$name, 0777); 228 } 240 241 $this->chmod_r(APPPATH.'modules/'.$name); 242 342 343 private function chmod_r($path, $perm = 0777) 344 { 351 { 352 $this->chmod_r($path.'/'.$file, $perm); 353 }quizzes.php https://github.com/chrisgraham/ocPortal.git | PHP | 338 lines
1<?php /* 2 28 */ 29 function get_chmod_array() 30 { 76 77 'sources/hooks/systems/notifications/quiz_results.php', 78 'sources/hooks/systems/config_default/points_ADD_QUIZ.php', 78 'sources/hooks/systems/config_default/points_ADD_QUIZ.php', 79 'sources/hooks/systems/config_default/quiz_show_stats_count_total_open.php', 80 'sources/hooks/systems/meta/quiz.php', 82 'themes/default/images/pagepics/findwinners.png', 83 'sources/hooks/blocks/side_stats/stats_quiz.php', 84 'QUIZ_ANSWERS_MAIL.tpl', 86 'QUIZ_TEST_ANSWERS_MAIL.tpl', 87 'sources/hooks/systems/content_meta_aware/quiz.php', 88 'sources/hooks/systems/addon_registry/quizzes.php',Accounts.php https://github.com/srsree/OurBank.git | PHP | 355 lines
1<?php 2/* 21 22<?php 23class Loanaccount_Model_Accounts extends Zend_Db_Table { 47 $this->db = Zend_Db_Table::getDefaultAdapter(); 48 $this->db->setFetchMode(Zend_Db::FETCH_OBJ); 49 $sql= "SELECT 86 $db = Zend_Db_Table::getDefaultAdapter(); 87 $db->setFetchMode(Zend_Db::FETCH_OBJ); 88 $sql="SELECT 124 125 $db->setFetchMode(Zend_Db::FETCH_OBJ); 126 $sql = "select 159 160 $db->setFetchMode(Zend_Db::FETCH_OBJ); 161 $sql = "SELECTBlame.php https://github.com/bermi/akelos.git | PHP | 310 lines
97 * // subclasses. 98 * $options = array('fetchmode' => VERSIONCONTROL_SVN_FETCHMODE_RAW); 99 * 179 * --xml switch if $fetchmode is set to VERSIONCONTROL_SVN_FETCHMODE_XML, 180 * VERSIONCONTROL_SVN_FETCHMODE_ASSOC or VERSIONCONTROL_SVN_FETCHMODE_OBJECT 181 * 195 $args = $this->args; 196 $fetchmode = $this->fetchmode; 197 $invalid_switches = array(); 271 { 272 $fetchmode = $this->fetchmode; 273 switch($fetchmode) { 291 default: 292 // What you get with VERSIONCONTROL_SVN_FETCHMODE_DEFAULT 293 return join("\n", $out);postgres-xc.rb https://github.com/bakotaco/homebrew.git | Ruby | 304 lines
25 # Fix PL/Python build: https://github.com/Homebrew/homebrew/issues/11162 26 # Fix uuid-ossp build issues: http://archives.postgresql.org/pgsql-general/2012-07/msg00654.php 27 patch :DATA 31 32 # See http://sourceforge.net/mailarchive/forum.php?thread_name=82E44F89-543A-44F2-8AF8-F6909B5DC561%40uniud.it&forum_name=postgres-xc-bugs 33 ENV.append 'CFLAGS', '-D_FORTIFY_SOURCE=0 -O2' if MacOS.version >= :mavericks 64 plist_path('gtm').write gtm_startup_plist('gtm') 65 plist_path('gtm').chmod 0644 66 plist_path('gtm_proxy').write gtm_proxy_startup_plist('gtm_proxy') 66 plist_path('gtm_proxy').write gtm_proxy_startup_plist('gtm_proxy') 67 plist_path('gtm_proxy').chmod 0644 68 plist_path('coord').write coordinator_startup_plist('coord') 68 plist_path('coord').write coordinator_startup_plist('coord') 69 plist_path('coord').chmod 0644 70 plist_path('datanode').write datanode_startup_plist('datanode')setup.php https://github.com/Doap/xoops.git | PHP | 202 lines
176define("_INSTALL_REQUIREMENT_SERVER_MOD_REWRITE", "Apache \"mod_rewrite\" module is required, check <a href='http://httpd.apache.org/docs/current/mod/mod_rewrite.html' title='mod_rewrite' target='_blank'>mod_rewrite</a> for details."); 177define("_INSTALL_REQUIREMENT_SERVER_NOT_SUPPORTED", "The webserver is currently not supported, please use <a href='http://nginx.net' title='nginx' target='_blank'>nginx</a> or <a href='http://www.php.net/manual/en/book.apache.php' target='_blank' title='Apache'>Apache</a>."); 178define("_INSTALL_REQUIREMENT_PHP", "PHP"); 179define("_INSTALL_REQUIREMENT_PDO", "PDO drivers"); 180define("_INSTALL_REQUIREMENT_PDO_PROMPT", "PHP Data Objects (PDO) extension with MySQL driver is required for regular Xoops Engine instances, check <a href='http://www.php.net/manual/en/book.pdo.php' title='PDO' target='_blank'>PDO manual</a> for details."); 181define("_INSTALL_REQUIREMENT_PERSIST", "Persist options"); 190define("_INSTALL_EXTENSION_APC", "APC"); 191define("_INSTALL_EXTENSION_APC_PROMPT", 'The Alternative PHP Cache (APC) is highly recommended for high-performance senario. Refer to <a href="http://www.php.net/manual/en/intro.apc.php" target="_blank" title="APC introduction">APC introduction</a> for details.'); 192define("_INSTALL_EXTENSION_REDIS", "Redis"); 194define("_INSTALL_EXTENSION_MEMCACHED", "Memcached"); 195define("_INSTALL_EXTENSION_MEMCACHED_PROMPT", 'Memcached is highly recommended for high-performance yet robust distributed senario. Refer to <a href="http://www.php.net/manual/en/intro.memcached.php" target="_blank" title="Memcached introduction">Memcached introduction</a> for details.'); 196define("_INSTALL_EXTENSION_MEMCACHE", "Memcache"); 196define("_INSTALL_EXTENSION_MEMCACHE", "Memcache"); 197define("_INSTALL_EXTENSION_MEMCACHE_PROMPT", 'Memcache a widely used cache engine. Refer to <a href="http://www.php.net/manual/en/intro.memcache.php" target="_blank" title="Memcache introduction">Memcache introduction</a> for details.'); 198define("_INSTALL_EXTENSION_FILE", 'File');Sqlsrv.php https://github.com/tanduy/zf.git | PHP | 411 lines
1<?php 2/** 25 */ 26require_once 'Zend/Db/Statement.php'; 27 28/** 29 * Extends for Microsoft SQL Server Driver for PHP 30 * 68 if (!$this->_stmt) { 69 require_once 'Zend/Db/Statement/Sqlsrv/Exception.php'; 70 throw new Zend_Db_Statement_Sqlsrv_Exception(sqlsrv_errors()); 79 * @param mixed $parameter Name the parameter, either integer or string. 80 * @param mixed $variable Reference to PHP variable containing the value. 81 * @param mixed $type OPTIONAL Datatype of SQL parameter. 204 if (!$this->_stmt) { 205 require_once 'Zend/Db/Statement/Sqlsrv/Exception.php'; 206 throw new Zend_Db_Statement_Sqlsrv_Exception(sqlsrv_errors());files.php https://gitlab.com/webbroteam/satisfaction-mvc | PHP | 306 lines
1<?php 2/** 9 * 10 * @author Khoa Bui (khoaofgod) <khoaofgod@gmail.com> http://www.phpfastcache.com 11 * @author Georges.L (Geolim4) <contact@geolim4.com> 17use phpFastCache\Core\DriverAbstract; 18use phpFastCache\Exceptions\phpFastCacheDriverException; 19 21 * Class files 22 * @package phpFastCache\Drivers 23 */ 37 if (!$this->checkdriver() && !isset($config[ 'skipError' ])) { 38 throw new phpFastCacheDriverException("Can't use this driver for your website!"); 39 } 73 if (!mkdir($path, $this->__setChmodAuto())) { 74 throw new phpFastCacheDriverException('PLEASE CHMOD ' . $this->getPath() . ' - 0777 OR ANY WRITABLE PERMISSION!', 92); 75 }Statement.php https://gitlab.com/remyvianne/krowkaramel | PHP | 342 lines
123 } 124 public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null) 125 { 127 if ($arg2 === null) { 128 return $this->stmt->setFetchMode($fetchMode); 129 } 130 if ($arg3 === null) { 131 return $this->stmt->setFetchMode($fetchMode, $arg2); 132 } 132 } 133 return $this->stmt->setFetchMode($fetchMode, $arg2, $arg3); 134 } 154 } 155 return $this->stmt->fetchAll($fetchMode); 156 }page.admin.serverSettings.tmpl https://github.com/snupple/torrentflux.git | Go Template | 261 lines
15 <div align="center"> 16 <form name="theForm" action="admin.php?op=updateServerSettings" method="post" onsubmit="return validateSettings('server')"> 17 <table cellpadding="5" cellspacing="0" border="0" width="100%"> 30 <tmpl_else> 31 <img src="themes/default/images/red.gif" align="absmiddle" title="Path is not Writable"><br><font color="#ff0000">Path is not writable - make sure you chmod +w this path</font> 32 </tmpl_if> 117 <td align="left" width="350" valign="top"> 118 <label for="bin_php"><strong>php</strong></label><br/> 119 Specify the path to the commandline (cli) php binary (/usr/bin/php).<br/> 122 <td valign="top"> 123 <input name="bin_php" id="bin_php" type="Text" maxlength="254" value="<tmpl_var name="bin_php">" size="55"> 124 <tmpl_var name="validate_php"> 216 </tr> 217 <tr><td colspan="2" align="center" bgcolor="<tmpl_var name="table_header_bg">"><strong>OS Specific Binary Paths</strong> <em>(<tmpl_var name="php_uname1"> <tmpl_var name="php_uname2">)</em></td></tr> 218 <tmpl_if name="_OS" value="1">FileWriter.php https://gitlab.com/campus-academy/krowkaramel | PHP | 341 lines
1<?php 2/** 128 */ 129 public function chmod( $mode, $recursive = false ){ 130 $this->authorize(); 130 $this->authorize(); 131 if( ! $this->fs->chmod( $this->getPath(), $mode, $recursive ) ){ 132 throw new Loco_error_WriteException( sprintf( __('Failed to chmod %s','loco-translate'), $this->file->basename() ) ); 226 else { 227 $mode = defined('FS_CHMOD_FILE') ? FS_CHMOD_FILE : 0644; 228 // new file may also require directory path building 274 // may have bypassed definition of FS_CHMOD_DIR 275 $mode = defined('FS_CHMOD_DIR') ? FS_CHMOD_DIR : 0755; 276 // find first ancestor that exists while building tree 317 // Deny list of executable file extensions, noting that specific actions may limit this further. 318 // Note that this ignores the base file name, so "php.pot" would be permitted, but "foo.php.pot" would not. 319 $exts = array_slice( explode('.', $this->file->basename() ), 1 );permissions.inc.php git://github.com/modxcms/revolution.git | PHP | 192 lines
1<?php 2/** 39$_lang['perm.delete_user_desc'] = 'Untuk menghapus atau menghapus setiap pengguna.'; 40$_lang['perm.directory_chmod_desc'] = 'Chmod direktori fisik.'; 41$_lang['perm.directory_create_desc'] = 'Untuk membuat sebuah direktori fisik.';model_task.php https://github.com/kazaff/destoon.git | PHP | 248 lines
29 chmod($backup_patch,777); 30 chmod($file['filename'],777); 31 unlink($backup_patch.$file['filename']); 67 if ($task_arr[0]['model_id']==1){ 68 Func_comm_class::feed_add('<a href="index.php?do=space&member_id='.$task_arr[0]['uid'].'" target="_blank">'.$task_arr[0]['username'].'</a>发布了任务 <a target="_blank" href="index.php?do=task&task_id='.$task_arr[0]['task_id'].'">'.$task_arr[0]['task_title'].'</a>',$task_arr[0]['uid'],$task_arr[0]['username'],'pub_task',$task_arr[0]['task_id']); 69 84 else { 85 Func_comm_class::feed_add('<a href="index.php?do=space&member_id='.$task_arr[0]['uid'].'" target="_blank">'.$task_arr[0]['username'].'</a>发布了任务 <a target="_blank" href="index.php?do=task&task_id='.$task_arr[0]['task_id'].'">'.$task_arr[0]['task_title'].'</a>',$task_arr[0]['uid'],$task_arr[0]['username'],'pub_task',$task_arr[0]['task_id']); 86 Func_comm_class::adminshowmessage("任务审核成功","index.php?do=model&model_id=$model_id&view=list"); 91 92 $task_id = $task_id?$task_id:Func_comm_class::adminshowmessage("错误的参数","index.php?do=task&view=rewardlist"); 93 $task_obj = new Keke_witkey_task_class(); 243 Func_comm_class::adminSystemLog("恢复任务$task_id"); 244 Func_comm_class::notify_user("任务恢复提示","您的任务 <b><a href=\"index.php?do=task&task_id={$task_arr[0]['task_id']}\">{$task_arr[0]['task_title']}</a></b> 的冻结状态已被恢复,",$task_arr[0]['uid'],$task_arr[0]['username']); 245 if ($task_arr[0]['model_id']==1){easypopulate.php https://github.com/happyxlq/lt_svn.git | PHP | 100 lines
1<?php 2// 7// | | 8// | http://www.zen-cart.com/index.php | 9// | | 19// +----------------------------------------------------------------------+ 20// $Id: easypopulate.php,v1.2.5.4 2005/09/26 langer $ 21// 49// checks - msg stack alerts - output via $messageStack 50define('EASYPOPULATE_MSGSTACK_TEMP_FOLDER_MISSING','<b>Easy Populate uploads folder not found!</b><br />NIX SERVERS: Your uploads folder is either missing, or you have altered the name and/or directory of your uploads folder without configuring this in Easy Populate.<br />WINDOWS SERVERS: Please request your web host to assign write permissions to the uploads folder. This is usually granted through Windows server user account IUSR_COMPUTERNAME.<br />Your configuration indicates that your uploads folder is named <b>%s</b>, and is located in <b>%s</b>, however this cannot be found.<br />Easy Populate cannot upload files until you have provided an uploads folder with read/write/execute permissions for the site owner (usually chmod 700 but you may require chmod 777)'); 51define('EASYPOPULATE_MSGSTACK_TEMP_FOLDER_PERMISSIONS_SUCCESS','Easy Populate successfully adjusted the permissions on your uploads folder! You can now upload files using Easy Populate...'); 63define('EASYPOPULATE_MSGSTACK_LANGER',''); 64define('EASYPOPULATE_MSGSTACK_INSTALL_CHMOD_FAIL','<b>Please run the Easy Populate install again after fixing your uploads directory problem.</b>'); 65define('EASYPOPULATE_MSGSTACK_INSTALL_CHMOD_SUCCESS','<b>Installation Successfull!</b> A full download of your store has been done and is available in your uploads (tempEP) directory. You can use this as your 1st template for uploading/updating products.'); 70 71// html template - bottom of admin/easypopulate.php 72// langer - will add after html renovationAdmin.php https://gitlab.com/sdlion/project_the_beginner_b35 | PHP | 234 lines
101 102 $fetchMode = strtoupper($fetchMode); 103 if(substr_count($fetchMode,'OBJ') > 0) 103 if(substr_count($fetchMode,'OBJ') > 0) 104 $STH->setFetchMode(PDO::FETCH_OBJ); 105 else 105 else 106 $STH->setFetchMode(PDO::FETCH_ASSOC); 107 118 119 $fetchMode = strtoupper($fetchMode); 120 if(substr_count($fetchMode,'OBJ') > 0) 120 if(substr_count($fetchMode,'OBJ') > 0) 121 $STH->setFetchMode(PDO::FETCH_OBJ); 122 elsepermissions.inc.php https://github.com/rostislav/revolution.git | PHP | 139 lines
1<?php 2/** 35$_lang['perm.delete_user_desc'] = 'ユーザーを削除する'; 36$_lang['perm.directory_chmod_desc'] = '物理フォルダの権限を変更する'; 37$_lang['perm.directory_create_desc'] = '物理フォルダを作成する';String.php https://github.com/almonk/Deadweight-CMS-1.git | PHP | 497 lines
154 { 155 return $this->chmod; 156 } 308 if ($this->chmod !== null) { 309 chmod($cachedFile, $this->chmod); 310 } 370 if ($this->chmod !== null) { 371 chmod($compiledFile, $this->chmod); 372 } 482 } else { 483 $chmod = $this->chmod; 484 } 492 $baseDir .= $folder . DIRECTORY_SEPARATOR; 493 chmod($baseDir, $chmod); 494 }instructions_de.htm https://bitbucket.org/burnsjeremy/adaptive-images.git | HTML | 177 lines
22 <h2>Basis Anweisungen</h2> 23 <p>Kopieren Sie <code>adaptive-images.php</code> und <code>.htaccess</code> 24 in das Hauptverzeichniss ihres Internetauftritts. 26 <p>Erstellen Sie ein Verzeichniss mit dem Namen <code>ai-cache</code> im Hauptverzeichniss 27 mit Schreibberechtigung (CHMOD 777).</p> 28 <p>Kopieren Sie folgendes Javascript in den <head> Bereich ihrer Seiten. 33 <p>Das wars. Sie sind fertig</p> 34 <p>ANMERKUNG: Die <code>ai-cookie.php</code> Datei wird normalerweise nicht 35 benötigt. Nur beim Einsatz der <a href="#alternate">Alternativen Methode</a> 55directories 56# to adaptive-images.php so we can select appropriately sized versions 57RewriteRule \.(?:jpe?g|gif|png)$ adaptive-images.php 77 directories 78 # to adaptive-images.php so we can select appropriately sized versions 79 RewriteRule \.(?:jpe?g|gif|png)$ adaptive-images.phpTag.php https://github.com/michaelmcandrew/vaw.git | PHP | 215 lines
1<?php 2 57 static function buildQuickForm( &$form, $parentNames, $entityTable, $entityId = null, $skipTagCreate = false, 58 $skipEntityAction = false, $searchMode = false ) { 59 $tagset = $form->_entityTagValues = array( ); 75 76 if ( $searchMode ) { 77 $qparams .= '&search=1'; 107 $tagset[$tagsetItem]['entityId'] = $entityId; 108 require_once 'CRM/Core/BAO/EntityTag.php'; 109 $entityTags = CRM_Core_BAO_EntityTag::getChildEntityTags( $parentId, $entityId, $entityTable ); 148 if ( !empty($form->_formValues['contact_tags']) ) { 149 require_once 'CRM/Core/BAO/Tag.php'; 150 $contactTags = CRM_Core_BAO_Tag::getTagsUsedFor( 'civicrm_contact', true, false, $parentId );README.md https://github.com/elrond79/pymel.git | Markdown | 289 lines
9 - graphviz: using an OS package manager like `yum`, `apt-get`, or `brew`, or 10 on windows, from an [installer](http://www.graphviz.org/Download_windows.php) 11 - python dependencies: 18 # https://urllib3.readthedocs.org/en/latest/security.<html id="insecureplatformwarning"></html> 19 sudo chmod -R ugo+w $MAYA_LOCATION/ 20 $MAYA_LOCATION/bin/mayapy get-pip.py --index-url=http://pypi.python.org/simple/ --trusted-host pypi.python.orgEntityOperations.php https://gitlab.com/Drulenium-bot/workbench_moderation | PHP | 267 lines
1<?php 2 10use Drupal\Core\TypedData\TranslatableInterface; 11use Drupal\workbench_moderation\Event\WorkbenchModerationEvents; 12use Drupal\workbench_moderation\Event\WorkbenchModerationTransitionEvent; 163 // Entity API doesn't allow hook_entity_presave to short-circuit a save. 164 $event = new WorkbenchModerationTransitionEvent($entity, $state_before, $state_after); 165 165 166 $this->eventDispatcher->dispatch(WorkbenchModerationEvents::STATE_TRANSITION, $event); 167 }Sql.php https://github.com/sgtcarneiro/horde.git | PHP | 260 lines
1<?php 2/** 2/** 3 * Pastie storage implementation for PHP's PEAR database abstraction layer. 4 * 6 * <pre> 7 * 'phptype' - The database type (e.g. 'pgsql', 'mysql', etc.). 8 * 'table' - The name of the foo table in 'database'. 157 158 $row = $result->fetchRow(DB_FETCHMODE_ASSOC); 159 if ($row instanceof PEAR_Error) { 207 208 $row = $result->fetchRow(DB_FETCHMODE_ASSOC); 209 if ($row instanceof PEAR_Error) { 226 /* Advance to the new row in the result set. */ 227 $row = $result->fetchRow(DB_FETCHMODE_ASSOC); 228 }file.inc.php https://github.com/enigmatic-user/revolution.git | PHP | 138 lines
1<?php 2/** 20$_lang['file_err_chmod'] = 'chmod実行中に予期せぬエラーが起こりました。'; 21$_lang['file_err_chmod_invalid'] = 'An invalid chmod value was passed while trying to chmod the target.'; 22$_lang['file_err_chmod_ns'] = 'chmod設定を行ってください。'; 37$_lang['file_err_unzip_invalid_path'] = '解凍済みファイルのパスが不適切です。'; 38$_lang['file_err_unzip_missing_lib'] = ' zipライブラリが見当たりません。(php_zip.dll / zip.so)'; 39$_lang['file_err_upload'] = 'ファイルのアップロード中にエラーが発生しました。'; 42$_lang['file_folder_enter_new'] = '新しいフォルダ名を入力'; 43$_lang['file_folder_chmod'] = 'パーミッションを変更'; 44$_lang['file_folder_create'] = 'ディレクトリを作成'; 48$_lang['file_folder_err_ae'] = '同名のディレクトリがその場所に存在します。'; 49$_lang['file_folder_err_chmod'] = 'パーミッションを変更できませんでした。MODX外部から変更する必要があります。'; 50$_lang['file_folder_err_create'] = 'ディレクトリ作成中に不明なエラーが起こりました。';UploadBehavior.php https://github.com/kiang/olc_baker.git | PHP | 243 lines
1<?php 2/** 2/** 3 * This file is a part of UploadPack - a set of classes that makes file uploads in CakePHP as easy as possible. 4 * 94 @mkdir($destDir, 0777, true); 95 @chmod($destDir, 0777); 96 }haml.php https://bitbucket.org/mintao/yii-phamlp.git | PHP | 287 lines
1<?php 2/** 13 * See below and HamlParser for a description of options 14 * * Add the following line in your app_controller.php 15 * <pre>var $view = 'Haml';</pre> 48 /** 49 * @var integer the chmod permission for temporary directories and files 50 * generated during parsing. Defaults to 0755 (owner rwx, group rx and others rx). 160 161 App::import('Vendor', 'HamlParser', array('file'=>'phamlp'.DS.'haml'.DS.'HamlParser.php')); 162 $this->haml = new HamlParser($options); 165 /** 166 * Renders a piece of PHP with provided parameters and returns HTML, XML, or 167 * any other string. 262 file_put_contents($cachedViewFile, $data = $this->haml->parse($___viewFn)); 263 @chmod($cachedViewFile, $this->filePermission); 264 }Filesystem.php https://gitlab.com/Ltaimao/wecenter | PHP | 364 lines
1<?php 2/** 24/** Zend_Search_Lucene_Storage_Directory */ 25//require_once 'Zend/Search/Lucene/Storage/Directory.php'; 26 120 if (file_exists($path)) { 121 //require_once 'Zend/Search/Lucene/Exception.php'; 122 throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory'); 124 if (!self::mkdirs($path)) { 125 //require_once 'Zend/Search/Lucene/Exception.php'; 126 throw new Zend_Search_Lucene_Exception("Can't create directory '$path'."); 184 unset($this->_fileHandlers[$filename]); 185 //require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php'; 186 $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b'); 189 // created by anther user which has to care about right permissions 190 @chmod($this->_dirPath . '/' . $filename, self::$_defaultFilePermissions); 191Installer.php https://gitlab.com/asun89/socianovation-web | PHP | 370 lines
1<?php 2namespace Grav\Common\GPM; 214 foreach (glob($path . DS . '*') as $file) { 215 @chmod($file, 0755); 216 } 289 if ( 290 !file_exists($target . DS . 'index.php') || 291 !file_exists($target . DS . 'bin') ||permissions.inc.php https://github.com/thomasd/revolution.git | PHP | 190 lines
1<?php 2/** 41$_lang['perm.delete_user_desc'] = 'Het verwijderen van gebruikers.'; 42$_lang['perm.directory_chmod_desc'] = 'Het chmodden van een fysieke directory.'; 43$_lang['perm.directory_create_desc'] = 'Het maken van een fysieke directory.';file2.kvdriver.php git://github.com/jelix/jelix.git | PHP | 292 lines
1<?php 2/** 207 208 chmod($fn, jApp::config()->chmodFile); 209DbStatement.php https://gitlab.com/rsilveira1987/Expresso | PHP | 381 lines
1<?php 2/** 16 * @package Test 17 * @subpackage PHPUnit 18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: DbStatement.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 21 */ 22 23require_once "Zend/Db/Statement/Interface.php"; 24 29 * @package Zend_Test 30 * @subpackage PHPUnit 31 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) 131 /** 132 * Bind a column of the statement result set to a PHP variable. 133 *Db2.php https://gitlab.com/rsilveira1987/Expresso | PHP | 364 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Db2.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 21 */ 25 */ 26require_once 'Zend/Db/Statement.php'; 27 71 */ 72 require_once 'Zend/Db/Statement/Db2/Exception.php'; 73 throw new Zend_Db_Statement_Db2_Exception( 83 * @param mixed $parameter Name the parameter, either integer or string. 84 * @param mixed $variable Reference to PHP variable containing the value. 85 * @param mixed $type OPTIONAL Datatype of SQL parameter. 106 */ 107 require_once 'Zend/Db/Statement/Db2/Exception.php'; 108 throw new Zend_Db_Statement_Db2_Exception(Filesystem.php https://gitlab.com/yousafsyed/easternglamor | PHP | 364 lines
1<?php 2/** 24/** Zend_Search_Lucene_Storage_Directory */ 25#require_once 'Zend/Search/Lucene/Storage/Directory.php'; 26 120 if (file_exists($path)) { 121 #require_once 'Zend/Search/Lucene/Exception.php'; 122 throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory'); 124 if (!self::mkdirs($path)) { 125 #require_once 'Zend/Search/Lucene/Exception.php'; 126 throw new Zend_Search_Lucene_Exception("Can't create directory '$path'."); 184 unset($this->_fileHandlers[$filename]); 185 #require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php'; 186 $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b'); 189 // created by anther user which has to care about right permissions 190 @chmod($this->_dirPath . '/' . $filename, self::$_defaultFilePermissions); 191setup_smokeping.sh http://hm2k.googlecode.com/svn/trunk/ | Shell | 111 lines
3# @see http://lzheng.blogspot.com/2007/02/install-smokeping-via-yum.html 4# @see http://slog.carlheaton.co.uk/index.php/2009/06/centos-5-3-smokeping-2-4-2-install-quick/ 5 58 59chmod 600 /usr/local/smokeping/etc/smokeping_secrets 60chmod 600 /usr/local/smokeping/etc/smokeping_secrets 61chown -R apache:apache /usr/local/smokeping/htdocs/ 62chmod 755 /usr/local/smokeping/htdocs/ 63chmod 755 /usr/local/smokeping/htdocs/*.cgiUncaughtExceptionTest.php https://gitlab.com/reasonat/test8 | PHP | 280 lines
35 $settings_filename = $this->siteDirectory . '/settings.php'; 36 chmod($settings_filename, 0777); 37 $settings_php = file_get_contents($settings_filename); 37 $settings_php = file_get_contents($settings_filename); 38 $settings_php .= "\ninclude_once 'core/modules/system/src/Tests/Bootstrap/ErrorContainer.php';\n"; 39 $settings_php .= "\ninclude_once 'core/modules/system/src/Tests/Bootstrap/ExceptionContainer.php';\n"; 39 $settings_php .= "\ninclude_once 'core/modules/system/src/Tests/Bootstrap/ExceptionContainer.php';\n"; 40 file_put_contents($settings_filename, $settings_php); 41 92 public function testUncaughtExceptionCustomExceptionHandler() { 93 $settings_filename = $this->siteDirectory . '/settings.php'; 94 chmod($settings_filename, 0777); 128 public function testMissingDependencyCustomErrorHandler() { 129 $settings_filename = $this->siteDirectory . '/settings.php'; 130 chmod($settings_filename, 0777);Ftp.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 667 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 285 { 286 $this->chmod($path, (int) $permissions); 287 } 340 { 341 $this->chmod($rempath, (int) $permissions); 342 } 519 */ 520 public function chmod($path, $perm) 521 { 632 { 633 return in_array($ext, array('txt', 'text', 'php', 'phps', 'php4', 'js', 'css', 'htm', 'html', 'phtml', 'shtml', 'log', 'xml'), TRUE) 634 ? 'ascii'Db.php https://gitlab.com/devtoannh/cafe | PHP | 286 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Db.php 24417 2011-08-28 10:15:47Z padraic $ 21 */ 47 */ 48 const FETCH_MODE = 'fetchMode'; 49 226 */ 227 require_once 'Zend/Db/Exception.php'; 228 throw new Zend_Db_Exception('Adapter parameters must be in an array or a Zend_Config object'); 237 */ 238 require_once 'Zend/Db/Exception.php'; 239 throw new Zend_Db_Exception('Adapter name must be specified in a string'); 261 if (!class_exists($adapterName)) { 262 require_once 'Zend/Loader.php'; 263 Zend_Loader::loadClass($adapterName);DbStatement.php https://github.com/grandison/budo16.git | PHP | 381 lines
1<?php 2/** 16 * @package Test 17 * @subpackage PHPUnit 18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: DbStatement.php 16911 2009-07-21 11:54:03Z matthew $ 21 */ 22 23// require_once "Zend/Db/Statement/Interface.php"; 24 29 * @package Zend_Test 30 * @subpackage PHPUnit 31 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) 131 /** 132 * Bind a column of the statement result set to a PHP variable. 133 *cache.php https://github.com/weissms/owb-mirror.git | PHP | 429 lines
1<?php 2function wp_cache_add($key, $data, $flag = '', $expire = 0) { 149 150 $cache_file = $this->cache_dir.$this->get_group_dir($group)."/".$this->hash($id).'.php'; 151 if (!file_exists($cache_file)) { 200 break; 201 @ chmod($this->cache_dir.$make_dir, $perms); 202 } 203 204 if (!file_exists($this->cache_dir.$make_dir."index.php")) { 205 $file_perms = $perms & 0000666; 206 @ touch($this->cache_dir.$make_dir."index.php"); 207 @ chmod($this->cache_dir.$make_dir."index.php", $file_perms); 208 } 302 @ touch($this->cache_dir."index.php"); 303 @ chmod($this->cache_dir."index.php", $file_perms); 304 }Revert.php https://github.com/bermi/akelos.git | PHP | 300 lines
94 * // subclasses. 95 * $options = array('fetchmode' => VERSIONCONTROL_SVN_FETCHMODE_RAW); 96 * 170 * --xml switch (if available) if $fetchmode is set to VERSIONCONTROL_SVN_FETCHMODE_XML, 171 * VERSIONCONTROL_SVN_FETCHMODE_ASSOC or VERSIONCONTROL_SVN_FETCHMODE_OBJECT 172 * 186 $args = $this->args; 187 $fetchmode = $this->fetchmode; 188 $invalid_switches = array(); 254 * @param array $out Array of output captured by exec command in {@link run}. 255 * @return mixed Returns output requested by fetchmode (if available), or raw output 256 * if desired fetchmode is not available. 260 { 261 $fetchmode = $this->fetchmode; 262 switch($fetchmode) {Filesystem.php https://github.com/vivid-planet/library.git | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Filesystem.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 24/** Zend_Search_Lucene_Storage_Directory */ 25require_once 'Zend/Search/Lucene/Storage/Directory.php'; 26 118 if (file_exists($path)) { 119 require_once 'Zend/Search/Lucene/Exception.php'; 120 throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory'); 122 if (!self::mkdirs($path)) { 123 require_once 'Zend/Search/Lucene/Exception.php'; 124 throw new Zend_Search_Lucene_Exception("Can't create directory '$path'."); 182 unset($this->_fileHandlers[$filename]); 183 require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php'; 184 $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');unpack.php https://gitlab.com/milo-ft/osTicket | PHP | 270 lines
1<?php 2 54 # Read the main.inc.php script 55 $bootstrap_php = $this->destination . '/bootstrap.php'; 56 $lines = explode("\n", file_get_contents($bootstrap_php)); 75 } 76 if (!file_put_contents($bootstrap_php, implode("\n", $lines))) 77 die("Unable to configure location of INCLUDE_DIR in bootstrap.php\n"); 137 $this->updateManifest($src, $hash); 138 return copy($src, $dest) && chmod($dest, $mode); 139 } 151 * exclude - (string | array<string>) patterns that will be matched 152 * using the PHP `fnmatch` function. If any file or folder matches, 153 * it will be excluded from the copy procedure. Omit or use false 206 $pipes = array(); 207 $php = proc_open('php', array( 208 0 => array('pipe', 'r'),fs.js https://gitlab.com/TurnInternational/simon | JavaScript | 364 lines
6 * Dual licensed under the MIT and GPL licenses: 7 * * http://www.opensource.org/licenses/mit-license.php 8 * * http://www.gnu.org/licenses/gpl.html 206 */ 207 chmod : promisify(fs.chmod), 208Filesystem.php https://github.com/ParveenArora/AddressHunter.git | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Filesystem.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 24/** Zend_Search_Lucene_Storage_Directory */ 25require_once 'Zend/Search/Lucene/Storage/Directory.php'; 26 118 if (file_exists($path)) { 119 require_once 'Zend/Search/Lucene/Exception.php'; 120 throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory'); 122 if (!self::mkdirs($path)) { 123 require_once 'Zend/Search/Lucene/Exception.php'; 124 throw new Zend_Search_Lucene_Exception("Can't create directory '$path'."); 182 unset($this->_fileHandlers[$filename]); 183 require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php'; 184 $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');postgresql.rb https://github.com/aaroncm/homebrew.git | Ruby | 232 lines
24 # Fix PL/Python build: https://github.com/mxcl/homebrew/issues/11162 25 # Fix uuid-ossp build issues: http://archives.postgresql.org/pgsql-general/2012-07/msg00654.php 26 def patches 70 plist_path.write startup_plist 71 plist_path.chmod 0644 72 endCFileHelper.php https://bitbucket.org/haichau59/manga.git | PHP | 261 lines
1<?php 2/** 22 * Returns the extension name of a file path. 23 * For example, the path "path/to/something.php" would return "php". 24 * @param string $path the file path 115 if(isset($options['newDirMode'])) 116 @chmod($dst,$options['newDirMode']); 117 else 117 else 118 @chmod($dst,0777); 119 $folder=opendir($src); 131 if(isset($options['newFileMode'])) 132 @chmod($dst.DIRECTORY_SEPARATOR.$file, $options['newFileMode']); 133 } 215 * @param string $magicFile name of a magic database file, usually something like /path/to/magic.mime. 216 * This will be passed as the second parameter to {@link http://php.net/manual/en/function.finfo-open.php finfo_open}. 217 * This parameter has been available since version 1.1.3.Filesystem.php https://github.com/tedkulp/cmsmadesimple-2-0.git | PHP | 362 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Filesystem.php 18954 2009-11-12 20:01:33Z alexander $ 21 */ 24/** Zend_Search_Lucene_Storage_Directory */ 25require_once 'Zend/Search/Lucene/Storage/Directory.php'; 26 118 if (file_exists($path)) { 119 require_once 'Zend/Search/Lucene/Exception.php'; 120 throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory'); 122 if (!self::mkdirs($path)) { 123 require_once 'Zend/Search/Lucene/Exception.php'; 124 throw new Zend_Search_Lucene_Exception("Can't create directory '$path'."); 182 unset($this->_fileHandlers[$filename]); 183 require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php'; 184 $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');function_vpn_ssl.php http://windowsfw.googlecode.com/svn/trunk/ | PHP | 343 lines
1<?php 2include_once "function_base_xml_class.php"; 303 304 $command .= "/bin/chmod +x /usr/local/etc/openvpn/easy-rsa/vars; /bin/sync;"; 305permissions.inc.php https://github.com/enigmatic-user/revolution.git | PHP | 190 lines
1<?php 2/** 39$_lang['perm.delete_user_desc'] = 'ユーザーを削除'; 40$_lang['perm.directory_chmod_desc'] = '物理フォルダの権限を変更'; 41$_lang['perm.directory_create_desc'] = '物理フォルダを作成';File.php https://github.com/enmand/Cerenkov.git | PHP | 616 lines
1<?php 2/** 2/** 3 * File.php 4 * File abstracts moving, copying, file output, etc. 187 $this->check_exists(); 188 return chmod($this->path, $mode); 189 } 193 $this->check_exists(); 194 return chmod($this->path, $owner); 195 }admin.ninjaxplorer.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 270 lines
80/*if (!$acl->acl_check( 'administration', 'config', 'users', $user->usertype )) { 81 $mainframe->redirect( 'index2.php', _NOT_AUTH ); 82} */ 117//------------------------------------------------------------------------------ 118require _QUIXPLORER_PATH . "/include/init.php"; // Init 119//------------------------------------------------------------------------------ 181 case "upload": 182 require _QUIXPLORER_PATH . "/include/fun_up.php"; 183 upload_items($dir); 191//------------------------------------------------------------------------------ 192 // CHMOD FILE/DIR 193 case "chmod": 193 case "chmod": 194 require _QUIXPLORER_PATH ."/include/fun_chmod.php"; 195 chmod_item($dir, $GLOBALS["item"]);edit_banner.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 246 lines
1<?php 2 15{ 16 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 17 die(); 49 $contents['upload_blocked'] = $lang_module['upload_blocked']; 50 include ( NV_ROOTDIR . "/includes/header.php" ); 51 echo nv_admin_theme( nv_edit_banner_theme( $contents ) ); 51 echo nv_admin_theme( nv_edit_banner_theme( $contents ) ); 52 include ( NV_ROOTDIR . "/includes/footer.php" ); 53 exit(); 75{ 76 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=add_plan" ); 77 die(); 112 { 113 @require_once ( NV_ROOTDIR . "/includes/class/upload.class.php" ); 114 $upload = new upload( $contents['file_allowed_ext'], $global_config['forbid_extensions'], $global_config['forbid_mimes'], NV_UPLOAD_MAX_FILESIZE, NV_MAX_WIDTH, NV_MAX_HEIGHT );Sqlsrv.php https://github.com/relaxnow/DbPatch.git | PHP | 440 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Sqlsrv.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26require_once 'Zend/Db/Statement.php'; 27 28/** 29 * Extends for Microsoft SQL Server Driver for PHP 30 * 68 if (!$this->_stmt) { 69 require_once 'Zend/Db/Statement/Sqlsrv/Exception.php'; 70 throw new Zend_Db_Statement_Sqlsrv_Exception(sqlsrv_errors()); 79 * @param mixed $parameter Name the parameter, either integer or string. 80 * @param mixed $variable Reference to PHP variable containing the value. 81 * @param mixed $type OPTIONAL Datatype of SQL parameter.Config.php https://bitbucket.org/webpolis/liiv.git | PHP | 514 lines
34 */ 35require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ImagesConfig.php"; 36 157 */ 158 private $_chmodFolders = 0755; 159 /** 337 { 338 return $this->_chmodFiles; 339 } 479 if (isset($GLOBALS['config']['ChmodFiles'])) { 480 $this->_chmodFiles = $GLOBALS['config']['ChmodFiles']; 481 } 482 if (isset($GLOBALS['config']['ChmodFolders'])) { 483 $this->_chmodFolders = $GLOBALS['config']['ChmodFolders']; 484 }MDB2Store.php https://github.com/DartmouthHackerClub/Monologue_Community.git | PHP | 413 lines
1<?php 2 5 * 6 * PHP versions 4 and 5 7 * 15 16require_once 'MDB2.php'; 17 20 */ 21require_once 'Auth/OpenID/Interface.php'; 22 25 */ 26require_once 'Auth/OpenID.php'; 27 85 // column name instead of column index. 86 $this->connection->setFetchMode(MDB2_FETCHMODE_ASSOC); 87Db.php https://github.com/kervin/kyzstudio.git | PHP | 273 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Db.php 23405 2010-11-19 19:46:10Z bittarman $ 21 */ 47 */ 48 const FETCH_MODE = 'fetchMode'; 49 213 */ 214 #require_once 'Zend/Db/Exception.php'; 215 throw new Zend_Db_Exception('Adapter parameters must be in an array or a Zend_Config object'); 224 */ 225 #require_once 'Zend/Db/Exception.php'; 226 throw new Zend_Db_Exception('Adapter name must be specified in a string'); 248 if (!class_exists($adapterName)) { 249 #require_once 'Zend/Loader.php'; 250 Zend_Loader::loadClass($adapterName);DB2Statement.php https://gitlab.com/mario.uriarte/doctrine2.5-tutorial | PHP | 344 lines
1<?php 2/* 48 */ 49 private $_defaultFetchMode = \PDO::FETCH_BOTH; 50 175 */ 176 public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null) 177 { 177 { 178 $this->_defaultFetchMode = $fetchMode; 179 $this->defaultFetchClass = $arg2 ? $arg2 : $this->defaultFetchClass; 197 */ 198 public function fetch($fetchMode = null) 199 { 199 { 200 $fetchMode = $fetchMode ?: $this->_defaultFetchMode; 201 switch ($fetchMode) {DirectFilesystem.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 500 lines
79 */ 80 public function chmod( $file, $mode = false, $recursive = false ) { 81 // TODO: refactor up? 96 wfSuppressWarnings(); 97 $result = (bool)chmod( $file, $mode ); 98 wfRestoreWarnings(); 229 */ 230 public function getChmod( $file ) { 231 wfSuppressWarnings(); 434 if ( !$chmod ) { 435 $chmod = FS_CHMOD_DIR; 436 } 445 446 $this->chmod( $path, $chmod ); 447DatabaseSqliteTest.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 312 lines
1<?php 2 124 $db = new DatabaseSqliteStandalone( ':memory:' ); 125 if ( $db->getFulltextSearchModule() != 'FTS3' ) { 126 $this->markTestSkipped( 'FTS3 not supported, cannot create virtual tables' );SummaryofOrganization.php https://gitlab.com/sdlion/nandini_151534_b35_atomic_project | PHP | 265 lines
57 58 $fetchMode = strtoupper($fetchMode); 59 if(substr_count($fetchMode,'OBJ') > 0) 74 75 $fetchMode = strtoupper($fetchMode); 76 if(substr_count($fetchMode,'OBJ') > 0) 102 $STH->execute(); 103 Utility::redirect('index.php'); 104 119 120 public function trashed($fetchMode='ASSOC'){ 121 $sql = "SELECT * from summary where is_deleted <> '0' "; 123 124 $fetchMode = strtoupper($fetchMode); 125 if(substr_count($fetchMode,'OBJ') > 0)dragoond.php https://github.com/OwlManAtt/dragoond.git | PHP | 411 lines
1<?php 2/** 13 **/ 14require_once('DB.php'); 15require_once('Log.php'); 15require_once('Log.php'); 16require_once('aphp/aphp.php'); 17require_once('spyc/spyc.php'); 21 **/ 22require_once('lib/daemonize.class.php'); 23 24// Load core classes. 25foreach(glob('lib/core/*.class.php') as $filename) 26{ 188 189 $db->setFetchMode(DB_FETCHMODE_ASSOC); 190config.php https://bitbucket.org/iGrizZli/iodev-facegallery.git | PHP | 151 lines
1<?php 2/* 21 * 22 * Configuration file for the File Manager Connector for PHP. 23 */ 64// Note: not needed on Windows-based servers. 65$Config['ChmodOnUpload'] = 0777 ; 66 68// Used when creating folders that does not exist. 69$Config['ChmodOnFolderCreate'] = 0777 ; 70Sqlsrv.php https://github.com/amoro119/QINNKO.git | PHP | 410 lines
1<?php 2/** 24 */ 25#require_once 'Zend/Db/Statement.php'; 26 27/** 28 * Extends for Microsoft SQL Server Driver for PHP 29 * 67 if (!$this->_stmt) { 68 #require_once 'Zend/Db/Statement/Sqlsrv/Exception.php'; 69 throw new Zend_Db_Statement_Sqlsrv_Exception(sqlsrv_errors()); 78 * @param mixed $parameter Name the parameter, either integer or string. 79 * @param mixed $variable Reference to PHP variable containing the value. 80 * @param mixed $type OPTIONAL Datatype of SQL parameter. 203 if (!$this->_stmt) { 204 #require_once 'Zend/Db/Statement/Sqlsrv/Exception.php'; 205 throw new Zend_Db_Statement_Sqlsrv_Exception(sqlsrv_errors());Session_files_driver.php https://gitlab.com/gundambison/secure | PHP | 363 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 124 { 125 throw new Exception("Session: Configured save path '".$this->_config['save_path']."' is not writable by the PHP process."); 126 } 147 { 148 // This might seem weird, but PHP 5.6 introduces session_reset(), 149 // which re-reads session data 152 // Just using fopen() with 'c+b' mode would be perfect, but it is only 153 // available since PHP 5.2.6 and we have to set permissions for new files, 154 // so we'd have to hack around this ... 181 { 182 chmod($this->_file_path.$session_id, 0600); 183 $this->_fingerprint = md5('');tools_webftp.php git://github.com/FSB/Fire-Soft-Board-2.git | PHP | 555 lines
64 */ 65 public $edit_file = array('php', 'php3', 'php4', 'php5', 'htm', 'html', 'tpl', 'txt', 'css', 'js', 'xml', 'rss', 'htaccess'); 66 107 'submit_upload' => ':upload_file', 108 'submit_chmod' => ':chmod_file', 109 'submit_edit' => ':submit_edit_file', 113 'mode' => array( 114 'highlight_php' => 'page_php_highlight', 115 'codepress' => 'page_codepress', 192 { 193 $u_dir = sid('index.' . PHPEXT . '?p=tools_webftp&mode=highlight_php&dir=' . $this->dir . '&phpfile=' . $value['name']); 194 } 497 { 498 $phpfile = Http::request('phpfile'); 499 if (file_exists(ROOT . $this->dir . $phpfile))customize-your-store.js https://gitlab.com/yousafsyed/easternglamor | JavaScript | 194 lines
32 if (!$localStorage.store) { 33 $http.get('index.php/customize-your-store/default-time-zone',{'responseType' : 'json'}) 34 .success(function (data) { 49 $scope.loading = true; 50 $http.post('index.php/modules/all-modules-valid', $scope.store) 51 .success(function (data) { 63 if (!$scope.store.loadedAllModules) { 64 $http.get('index.php/modules').success(function (data) { 65 $state.loadedModules = data; 76 var allModules = $scope.$state.loadedModules.modules; 77 for (var eachModule in allModules) { 78 $scope.store.allModules.push(allModules[eachModule].name); 78 $scope.store.allModules.push(allModules[eachModule].name); 79 if(allModules[eachModule].selected) { 80 $scope.store.selectedModules.push(allModules[eachModule].name);control.php https://github.com/easysoft/zentaopms.git | PHP | 287 lines
1<?php 2/** 8 * @package install 9 * @version $Id: control.php 4297 2013-01-27 07:51:45Z wwccss $ 10 * @link http://www.zentao.net 65 $this->view->title = $this->lang->install->checking; 66 $this->view->phpVersion = $this->install->getPhpVersion(); 67 $this->view->phpResult = $this->install->checkPHP(); 168 $sessionResult = $this->install->checkSessionSavePath(); 169 if($sessionResult == 'fail') chmod($sessionSavePath, 0777); 170 251 252 if(strpos($this->app->getClientLang(), 'zh') === 0) $this->loadModel('api')->createDemoData($this->lang->api->zentaoAPI, 'http://' . $_SERVER['HTTP_HOST'] . $this->app->config->webRoot . 'api.php/v1', '16.0'); 253 return print(js::locate(inlink('step6'), 'parent')); 277 { 278 $installFileDeleted = unlink($this->app->getAppRoot() . 'www/install.php'); 279 $this->view->installFileDeleted = $installFileDeleted;CaptureCache.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 387 lines
1<?php 2/** 31 32 // http://php.net/manual/function.ob-start.php 33 // -> If output_callback returns FALSE original input is sent to the browser. 266 267 if ($perm !== false && !chmod($file, $perm)) { 268 $oct = decoct($perm); 269 $err = ErrorHandler::stop(); 270 throw new Exception\RuntimeException("chmod('{$file}', 0{$oct}) failed", 0, $err); 271 } 314 315 if ($perm !== false && !chmod($pathname, $perm)) { 316 $oct = decoct($perm); 317 $err = ErrorHandler::stop(); 318 throw new Exception\RuntimeException("chmod('{$pathname}', 0{$oct}) failed", 0, $err); 319 }sqlite3.php https://github.com/alejo/BAPS2.git | PHP | 395 lines
10 * 11 * LICENSE: This source file is subject to version 3.0 of the PHP license 12 * that is available through the world-wide-web at the following URI: 12 * that is available through the world-wide-web at the following URI: 13 * http://www.php.net/license/3_0.txt. If you did not receive a copy of 14 * the PHP License and are unable to obtain it through the web, please 20 * @copyright 1997-2005 The PHP Group 21 * @license http://www.php.net/license/3_0.txt PHP License 3.0 3.0 22 * @version CVS: $Id: sqlite3.php,v 1.3 2007/04/04 14:13:19 bfleisch Exp $ 30/** 31 * The methods PEAR DB uses to interact with PHP's sqlite extension 32 * for interacting with SQLite databases 185 186 case DB_FETCHMODE_OBJECT: 187 return $this->RaiseError(DB_ERROR_NODBSELECTED);Db.php https://github.com/basdog22/Qool.git | PHP | 286 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Db.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 47 */ 48 const FETCH_MODE = 'fetchMode'; 49 226 */ 227 require_once 'Zend/Db/Exception.php'; 228 throw new Zend_Db_Exception('Adapter parameters must be in an array or a Zend_Config object'); 237 */ 238 require_once 'Zend/Db/Exception.php'; 239 throw new Zend_Db_Exception('Adapter name must be specified in a string'); 261 if (!class_exists($adapterName)) { 262 require_once 'Zend/Loader.php'; 263 Zend_Loader::loadClass($adapterName);file.php https://github.com/boluak/lifefm-github.git | PHP | 379 lines
1<?php 2/** 2/** 3 * @version $Id: file.php 10707 2008-08-21 09:52:47Z eddieajau $ 4 * @package Joomla.Framework 6 * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 152 // on Windows, even if the parent folder is writeable 153 @chmod($file, 0777); 154 304 * 305 * @param string $src The name of the php (temporary) uploaded file 306 * @param string $dest The path (including filename) to move the uploaded file toindex.php https://github.com/eosc/EosC-3.0.git | PHP | 221 lines
35 <td><b>PHP Version</b></td> 36 <td align="right"><?php echo PHP_VERSION; ?></td> 37 <td align="right" width="25"><img src="images/<?php echo ((PHP_VERSION >= 4) ? 'tick.gif' : 'cross.gif'); ?>" border="0" width="16" height="16"></td> 117 118 if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) { 119 @chmod(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php', 0777); 125 126 if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php')) { 127 $configfile_array[] = osc_realpath(dirname(__FILE__) . '/../../../includes') . '/configure.php'; 129 130 if (file_exists(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php') && !is_writeable(osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php')) { 131 $configfile_array[] = osc_realpath(dirname(__FILE__) . '/../../../admin/includes') . '/configure.php'; 137 if ($compat_register_globals == false) { 138 $warning_array['register_globals'] = 'Compatibility with register_globals is supported from PHP 4.3+. This setting <u>must be enabled</u> due to an older PHP version being used.'; 139 }ProjectTask.php https://bitbucket.org/vishallogiciel/admin-bootstrap.git | PHP | 447 lines
7 * 8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 9 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @since CakePHP(tm) v 1.2 103 if ($this->consolePath($path) === true) { 104 $this->out(__d('cake_console', ' * app/Console/cake.php path set.')); 105 } else { 111 if ($this->cakeOnIncludePath()) { 112 $this->out(__d('cake_console', '<info>CakePHP is on your `include_path`. CAKE_CORE_INCLUDE_PATH will be set, but commented out.</info>')); 113 } else { 145/** 146 * Checks PHP's include_path for CakePHP. 147 *Sqlsrv.php https://bitbucket.org/nblaudez/maerdo.git | PHP | 440 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Sqlsrv.php 23486 2010-12-10 04:05:30Z mjh_ca $ 21 */ 25 */ 26require_once 'Zend/Db/Statement.php'; 27 28/** 29 * Extends for Microsoft SQL Server Driver for PHP 30 * 68 if (!$this->_stmt) { 69 require_once 'Zend/Db/Statement/Sqlsrv/Exception.php'; 70 throw new Zend_Db_Statement_Sqlsrv_Exception(sqlsrv_errors()); 79 * @param mixed $parameter Name the parameter, either integer or string. 80 * @param mixed $variable Reference to PHP variable containing the value. 81 * @param mixed $type OPTIONAL Datatype of SQL parameter.Sqlsrv.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 440 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Sqlsrv.php 23485 2010-12-10 04:03:18Z mjh_ca $ 21 */ 25 */ 26require_once 'Zend/Db/Statement.php'; 27 28/** 29 * Extends for Microsoft SQL Server Driver for PHP 30 * 68 if (!$this->_stmt) { 69 require_once 'Zend/Db/Statement/Sqlsrv/Exception.php'; 70 throw new Zend_Db_Statement_Sqlsrv_Exception(sqlsrv_errors()); 79 * @param mixed $parameter Name the parameter, either integer or string. 80 * @param mixed $variable Reference to PHP variable containing the value. 81 * @param mixed $type OPTIONAL Datatype of SQL parameter.setup.php https://github.com/eXtreme-Fusion/eXtreme-Fusion-CMS.git | PHP | 184 lines
25 'Perm: admin permissions' => 'Możliwość dodawania nowych uprawnień.', 26 'Perm: admin phpinfo' => 'Informacje PHP serwera.', 27 'Perm: admin groups' => 'Dodawanie nowych grup użytkownika.', 60 'Unwriteable' => 'Niezapisywalny', 61 'The folders and files listed below must be set writeable (chmod 777).' => 'Poniższym katalogom i plikom należy ustawić zapisywalność (chmod 777).', 62 'Refresh' => 'Odśwież', 62 'Refresh' => 'Odśwież', 63 'PHP Version Error' => 'Twój serwer nie spełnia wymagań systemu: posiada interpreter PHP starszy od wersji :php_required.<br /> 64 Co możesz zrobić: 91 'Unable to write config file.' => 'Brak możliwości zapisu pliku konfiguracyjnego.', 92 'Please ensure config.php is writable.' => 'Sprawdź, czy plik config.php jest zapisywalny.', 93 'Could not write or delete MySQL tables.' => 'Nie można było zapisać lub usunąć tabel MySQL.', 100 'Tables prefix (Advanced settings) is already in use or prefix has not been written, and tables prefix exist in the database with the same name as that system is trying to create. Please enter a different prefix for tables.' => 'Prefiks tabel (Zaawansowane ustawienia) jest już w użyciu lub niepodano prefiksu, a w bazie istnieją tabele o takiej samej nazwie jak te, które system próbuje utworzyć. Należy podać inny prefiks dla tabel.', 101 'NOTE! If after installation you experience problems with links and URLs (error 404), you must reinstall the system without checking the box below, or change the $_route in config.php.' => 'UWAGA! Jeżeli po zakończeniu instalacji wystąpią problemy z linkami i adresami URL (błędy 404), należy przeinstalować system nie zaznaczając poniższego pola lub zmienić ustawienia $_route w pliku config.php.', 102 'The names of the files listed below please change with the instructions.' => 'Nazwy poniższych plików proszę zmienić według instrukcji.',File.php https://bitbucket.org/moodle/moodle.git | PHP | 261 lines
1<?php 2 19 * 20 * PHP Version 5 21 * 21 * 22 * @file CAS/PGTStorage/AbstractStorage.php 23 * @category Authentication 23 * @category Authentication 24 * @package PhpCAS 25 * @author Pascal Aubry <pascal.aubry@univ-rennes1.fr> 26 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 27 * @link https://wiki.jasig.org/display/CASC/phpCAS 28 */ 35 * @category Authentication 36 * @package PhpCAS 37 * @author Pascal Aubry <pascal.aubry@univ-rennes1.fr>TestToolkit.php https://gitlab.com/reasonat/test8 | PHP | 265 lines
1<?php 2 31 /** 32 * Image type represented by a PHP IMAGETYPE_* constant (e.g. IMAGETYPE_JPEG). 33 * 150 $this->logCall('save', func_get_args()); 151 // Return false so that image_save() doesn't try to chmod the destination 152 // file that we didn't bother to create. 197 * @return int 198 * The image type represented by a PHP IMAGETYPE_* constant (e.g. 199 * IMAGETYPE_JPEG). 205 /** 206 * Sets the PHP type of the image. 207 * 208 * @param int $type 209 * The image type represented by a PHP IMAGETYPE_* constant (e.g. 210 * IMAGETYPE_JPEG).Account_Import.php https://gitlab.com/clearos/app-account-import | PHP | 320 lines
1<?php 2 42$bootstrap = getenv('CLEAROS_BOOTSTRAP') ? getenv('CLEAROS_BOOTSTRAP') : '/usr/clearos/framework/shared'; 43require_once $bootstrap . '/bootstrap.php'; 44 213 $file->chown('root', 'root'); 214 $file->chmod(600); 215 } catch (File_Not_Found_Exception $e) {