100+ results results for 'php fopen repo:claconsay/php-backdoor' (906 ms)
45 /** 46 * Does the server support URL fopen() wrappers? 47 * @return bool 185 */ 186 private function getUpdateINIfopen() 187 { 294 jimport('joomla.utilities.date'); 295 require_once JPATH_COMPONENT_ADMINISTRATOR.DS.'version.php'; 296 $curdate = new JDate(ADMINTOOLS_DATE); 350 // ii. Moment of truth: try to open write-only 351 $fp = @fopen($target, 'wb'); 352 if( $fp === false ) 409 } else { 410 // PHP 4 way (actually, it's just a fallback as we can't run Admin Tools in PHP4) 411 ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)');HTML.php https://bitbucket.org/crowdguru/phpexcel.git | PHP | 495 lines
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 149 // Create new PHPExcel 150 $objPHPExcel = new PHPExcel(); 151 430 /** 431 * Loads PHPExcel from file into PHPExcel instance 432 * 433 * @param string $pFilename 434 * @param PHPExcel $objPHPExcel 435 * @return PHPExcel 437 */ 438 public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) 439 {String.php https://github.com/almonk/Deadweight-CMS-1.git | PHP | 497 lines
1<?php 2 290 $temp = tempnam($cacheDir, 'temp'); 291 if (!($file = @fopen($temp, 'wb'))) { 292 $temp = $cacheDir . uniqid('temp'); 292 $temp = $cacheDir . uniqid('temp'); 293 if (!($file = @fopen($temp, 'wb'))) { 294 trigger_error('Error writing temporary file \''.$temp.'\'', E_USER_WARNING); 355 if (class_exists('Dwoo_Compiler', false) === false) { 356 include DWOO_DIRECTORY . 'Dwoo/Compiler.php'; 357 } 424 } 425 return $dwoo->getCompileDir() . $this->compileId.'.d'.Dwoo::RELEASE_TAG.'.php'; 426 } 454 /** 455 * returns some php code that will check if this template has been modified or not 456 *mail.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 406 lines
1<?php 2class Mail { 95 $header .= 'Return-Path: ' . $this->from . $this->newline; 96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline; 97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline; 125 if (file_exists($attachment)) { 126 $handle = fopen($attachment, 'r'); 127 158 } else { 159 if (substr(PHP_OS, 0, 3) != 'WIN') { 160 socket_set_timeout($handle, $this->timeout, 0); 358 foreach ($results as $result) { 359 if (substr(PHP_OS, 0, 3) != 'WIN') { 360 fputs($handle, $result . $this->crlf);lib.php https://bitbucket.org/ngmares/moodle.git | PHP | 327 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24 */ 25require_once($CFG->dirroot . '/repository/lib.php'); 26require_once($CFG->libdir.'/flickrlib.php'); 58 59 $this->flickr = new phpFlickr($this->api_key, $this->secret, $this->token); 60 157 /** 158 * Converts result received from phpFlickr::photo_search to Filepicker/repository format 159 * 255 $path = $this->prepare_file($file); 256 $fp = fopen($path, 'w'); 257 $c = new curl; 295 $instance = array_shift($instances); 296 $callbackurl = $CFG->wwwroot.'/repository/repository_callback.php?repo_id='.$instance->id; 297 $mform->addElement('static', 'callbackurl', '', get_string('callbackurltext', 'repository_flickr', $callbackurl));wp_loaded.php https://gitlab.com/najomie/fit-hippie | PHP | 281 lines
1<?php 2 214 if ($log_storage){ 215 $log = @fopen($log_file, 'a+'); 216 @fwrite($log, $log_data);pearcmd.php https://github.com/ianbogda/FileZ.git | PHP | 445 lines
59if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) { 60 echo 'ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini'; 61 exit(1); 132// this is used in the error handler to retrieve a relative path 133$_PEAR_PHPDIR = $config->get('php_dir'); 134$ui->setConfig($config); 166 ); 167 $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php'); 168 $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data'); 320 global $progname, $all_commands; 321 $stderr = fopen('php://stderr', 'w'); 322 if (PEAR::isError($error)) { 377 return "PEAR Version: ".$GLOBALS['pear_package_version']. 378 "\nPHP Version: ".phpversion(). 379 "\nZend Engine Version: ".zend_version().define_pages_editor.php https://github.com/ZenMagick/zc-base.git | PHP | 270 lines
125<!-- header //--> 126<?php require(DIR_WS_INCLUDES . 'header.php'); ?> 127<!-- header_eof //--> 228 <tr> 229 <td class="smallText"><a href="<?php echo zen_href_link($_GET['filename'], 'lngdir=' . $_SESSION['language'] . '&filename=' . $filename); ?>"><b><?php echo $filename; ?></b></a></td> 230<?php 233 if ($dir) { 234 $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); 235 while ($file = $dir->read()) { 264<!-- footer //--> 265<?php require(DIR_WS_INCLUDES . 'footer.php'); ?> 266<!-- footer_eof //--> 269</html> 270<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> 271airfoil.cpp https://github.com/OP2/OP2-Common.git | C++ | 314 lines
2 * Open source copyright declaration based on BSD open source template: 3 * http://www.opensource.org/licenses/bsd-license.php 4 * 88 FILE *fp; 89 if ((fp = fopen("./new_grid.dat", "r")) == NULL) { 90 op_printf("can't open file new_grid.dat\n");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 */ 238 if($amount && $chunksize > $amount) { $chunksize = $amount; } 239 if (false === $fh = fopen($filename, 'rb', $incpath)) { 240 JError::raiseWarning(21, 'JFile::read: '.JText::_('Unable to open file') . ": '$filename'"); 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 toclass-wp-image-editor.php https://gitlab.com/Gashler/dp | PHP | 403 lines
1<?php 2/** 341 342 $fp = fopen( $filename, 'w' ); 343mcu-cli.php https://gitlab.com/Slind/MCUpdater | PHP | 380 lines
1#!/usr/bin/env php 2<?php 10 * server jar. 11 * 1) Copy the default config to 'mcu-cli-config.php' 12 * 2) Edit your new config, updating at a minimum the pack url, server id, 13 * server jar, and memory settings. 14 * 3) Execute mcu-cli.php and hope for the best :) 15 * 22 23msg("MCU-CLI.php Starting..."); 24msg(date("r")); 38// load config, copying from default if one is not found 39$cfg_default_filename = "mcu-cli-config.default.php"; 40$cfg_filename = "mcu-cli-config.php"; 176 $ch = curl_init($url); 177 $fp = fopen($fname, "w"); 178Preview.php https://github.com/michaelmcandrew/vaw.git | PHP | 235 lines
1<?php 2 36 37require_once 'CRM/Core/Form.php'; 38require_once 'CRM/Member/Import/Parser/Membership.php'; 217 218 if ( $fd = fopen( $errorFile, 'w' ) ) { 219 fwrite($fd, implode('\n', $errorMessage));CSV.php https://gitlab.com/hoanghung.dev/aloads | PHP | 352 lines
27 */ 28class PHPExcel_Writer_CSV extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter 29{ 89 * 90 * @param PHPExcel $phpExcel PHPExcel object 91 */ 108 $saveDebugLog = PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->getWriteDebugLog(); 109 PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog(false); 110 $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType(); 110 $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType(); 111 PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE); 112 150 PHPExcel_Calculation::setArrayReturnType($saveArrayReturnType); 151 PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog); 152 }import.php https://github.com/pauln/moodle.git | PHP | 247 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24 25require_once(dirname(__FILE__).'/../../../config.php'); 26require_once($CFG->dirroot.'/lib/formslib.php'); 26require_once($CFG->dirroot.'/lib/formslib.php'); 27require_once($CFG->dirroot.'/grade/lib.php'); 28require_once($CFG->libdir.'/gradelib.php'); 28require_once($CFG->libdir.'/gradelib.php'); 29require_once('import_outcomes_form.php'); 30 34 35$PAGE->set_url('/grade/edit/outcome/import.php', array('courseid' => $courseid)); 36$PAGE->set_pagelayout('admin'); 46 if (empty($CFG->enableoutcomes)) { 47 redirect('../../index.php?id='.$courseid); 48 }backup_db.php https://bitbucket.org/flth/xtcm.git | PHP | 351 lines
58 if ($data!=''){ 59 $fp=fopen($df,'ab'); 60 fwrite($fp,$data); 287 <!-- header //--> 288 <?php require(DIR_WS_INCLUDES . 'header.php'); ?> 289 <!-- header_eof //--> 298 <!-- left_navigation //--> 299 <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> 300 <!-- left_navigation_eof //--> 309 <tr> 310 <td class="pageHeading"><?php echo HEADING_TITLE; ?><span class="smallText"> [<?php echo VERSION; ?>]</span></td> 311 <td class="pageHeading" align="right"><?php echo xtc_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> 341 <!-- footer //--> 342 <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> 343 <!-- footer_eof //-->HttpClient.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 352 lines
1<?php 2/** 25 */ 26require_once 'Zend/Http/Client.php'; 27 98 $useIncludePath = false) { 99 $fp = @fopen($file, "r", $useIncludePath); 100 if (!$fp) { 100 if (!$fp) { 101 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 102 throw new Zend_Gdata_App_InvalidArgumentException('Failed to open private key file for AuthSub.'); 115 * 116 * In order to call this method, openssl must be enabled in your PHP 117 * installation. Otherwise, a Zend_Gdata_App_InvalidArgumentException 126 if ($key != null && !function_exists('openssl_pkey_get_private')) { 127 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 128 throw new Zend_Gdata_App_InvalidArgumentException(template.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 286 lines
98 99 $cantestremoteimages = ini_get('allow_url_fopen'); 100 if (($checkfullimages || $checkimagesexist) && sizeof($images)) { 116 } else { 117 print $GLOBALS['I18N']->get("Image")." $key => ".$GLOBALS['I18N']->get('cannot check, "allow_url_fopen" disabled in PHP settings')."<br/>\n"; 118 } 198<tr> 199 <td colspan=2><?php echo $GLOBALS['I18N']->get('Content of the template.')?><br /><?php echo $GLOBALS['I18N']->get('The content should at least have <b>[CONTENT]</b> somewhere.')?><br/><?php echo $GLOBALS['I18N']->get('You can upload a template file or paste the text in the box below'); ?></td> 200</tr> 201<tr> 202 <td><?php echo $GLOBALS['I18N']->get('Template file.')?></td> 203 <td><input type=file name="file_template" /></td> 277<tr> 278 <td><?php echo $GLOBALS['I18N']->get('Check that all external images exist')?></td> 279 <td><input type=checkbox name="checkimagesexist" <?php echo $checkimagesexist?"checked":""?>></td>Cache.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 245 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Cache.php 20096 2010-01-06 02:05:09Z bkarwin $ 20 */ 131 // security controls are explicit 132 // require_once str_replace('_', DIRECTORY_SEPARATOR, $backendClass) . '.php'; 133 } else { 144 if (!$autoload) { 145 $file = str_replace('_', DIRECTORY_SEPARATOR, $backendClass) . '.php'; 146 if (!(self::_isReadable($file))) { 173 // security controls are explicit 174 // require_once str_replace('_', DIRECTORY_SEPARATOR, $frontendClass) . '.php'; 175 } else { 227 * Returns TRUE if the $filename is readable, or FALSE otherwise. 228 * This function uses the PHP include_path, where PHP's is_readable() 229 * does not.DtoTest.php https://gitlab.com/cezar.zaleski/commonsphp | PHP | 328 lines
1<?php 2 5// Necessário para simular o DtoInvalido com namespace Commons/Dto 6require_once __DIR__ . '/Mock/Escola.php'; 7require_once __DIR__ . '/Mock/Aluno.php'; 7require_once __DIR__ . '/Mock/Aluno.php'; 8require_once __DIR__ . '/Mock/Matricula.php'; 9 16 */ 17class DtoTest extends \PHPUnit_Framework_TestCase 18{ 54 array( 55 fopen(__DIR__ . '/DtoTest.php', 'r') 56 ),account-settings-banner-storage.php https://bitbucket.org/valmy/openx.git | PHP | 308 lines
1<?php 2 28// Require the initialisation file 29require_once '../../init.php'; 30 31// Required files 32require_once MAX_PATH . '/lib/OA/Admin/Option.php'; 33require_once MAX_PATH . '/lib/OA/Admin/Settings.php'; 34 35require_once MAX_PATH . '/lib/max/Plugin/Translation.php'; 36require_once MAX_PATH . '/www/admin/config.php'; 92 // Test the writablility of the web or FTP storage, if required 93 phpAds_registerGlobal('store_webDir'); 94 if (isset($store_webDir)) { 102 } else { 103 $fp = fopen($store_webDir.'/1x1.gif', 'w'); 104 fwrite($fp, base64_decode('R0lGODlhAQABAIAAAP///wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=='));file_helper.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 479 lines
4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 52 53 if ( ! $fp = @fopen($file, FOPEN_READ)) 54 { 87{ 88 function write_file($path, $data, $mode = FOPEN_WRITE_CREATE_DESTRUCTIVE) 89 { 89 { 90 if ( ! $fp = @fopen($path, $mode)) 91 { 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 fileRandom.php https://gitlab.com/Gashler/dp | PHP | 243 lines
56function crypt_random_string($length) { 57 // PHP_OS & "\xDF\xDF\xDF" == strtoupper(substr(PHP_OS, 0, 3)), but a lot faster 58 if ((PHP_OS & "\xDF\xDF\xDF") === 'WIN') { 64 // method 2. openssl_random_pseudo_bytes was introduced in PHP 5.3.0 but prior to PHP 5.3.4 there was, 65 // to quote <http://php.net/ChangeLog-5.php#5.3.4>, "possible blocking behavior". as of 5.3.4 66 // openssl_random_pseudo_bytes and mcrypt_create_iv do the exact same thing on Windows. ie. they both 69 // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/openssl/openssl.c#L5008 70 // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/mcrypt/mcrypt.c#L1392 71 // 73 // 74 // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/win32/winutil.c#L80 75 // 95 // method 3. pretty much does the same thing as method 2 per the following url: 96 // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/mcrypt/mcrypt.c#L1391 97 // surprisingly slower than method 2. maybe that's because mcrypt_create_iv does a bunch of error checking that we'reprognose.php https://github.com/srahn/kvwmap.git | PHP | 299 lines
1<?php 2class prognose { 159 $csvfilename = BEVOELKERUNG_IMPORT_DATA_PATH . $tablename . '.csv'; 160 $csvfile = fopen($csvfilename, 'w'); 161 $values = array();file_helper.php https://github.com/lixinyang/weixiao001.com.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 * 52 53 if ( ! $fp = @fopen($file, FOPEN_READ)) 54 { 87{ 88 function write_file($path, $data, $mode = FOPEN_WRITE_CREATE_DESTRUCTIVE) 89 { 89 { 90 if ( ! $fp = @fopen($path, $mode)) 91 { 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)))updates.php https://github.com/cladjidane/D-mo-HTML5-CSS3.git | PHP | 377 lines
1<?php 2/** 2/** 3 * @version $Id: updates.php 222 2011-06-11 17:32:06Z happy_noodle_boy $ 4 * @package JCE 17// load base model 18require_once(dirname(__FILE__) . DS . 'model.php'); 19 22 23 var $url = 'https://www.joomlacontenteditor.net/index.php?option=com_updates&format=raw'; 24 27 if (!function_exists('curl_init')) { 28 return function_exists('file_get_contents') && function_exists('ini_get') && ini_get('allow_url_fopen'); 29 } 318 if ($download) { 319 $fp = @fopen ($download, 'wb'); 320 @curl_setopt($ch, CURLOPT_FILE, $fp);ext_zlib.php https://github.com/tstarling/hiphop-php.git | PHP | 376 lines
1<?hh 2// @generated by docskel.php 3 62 * @param int $encoding_mode - The encoding mode. Can be FORCE_GZIP (the 63 * default) or FORCE_DEFLATE. Prior to PHP 5.4.0, using FORCE_DEFLATE 64 * results in a standard zlib deflated string (inclusive zlib headers) 65 * after a gzip file header but without the trailing crc32 checksum. In 66 * PHP 5.4.0 and later, FORCE_DEFLATE generates RFC 1950 compliant 67 * output, consisting of a zlib header, the deflated data, and an Adler 162 * @param string $filename - The file name. 163 * @param string $mode - As in fopen() (rb or wb) but can also include a 164 * compression level (wb9) or a strategy: f for filtered data as in wb6f,http-messages.rst https://gitlab.com/x33n/respond | ReStructuredText | 483 lines
82 83.. code-block:: php 84 224 225.. code-block:: php 226 243This method returns a ``GuzzleHttp\Query`` object. A Query object can be 244accessed like a PHP array, iterated in a foreach statement like a PHP array, 245and cast to a string. 280convert the complex structure into a string. Query objects will use 281`PHP style query strings <http://www.php.net/http_build_query>`_ when complex 282query string parameters are converted to a string. You can customize how 452 453 Guzzle uses the ``json_decode()`` method of PHP and uses arrays rather than 454 ``stdClass`` objects for objects.elfinder.ko.js https://bitbucket.org/asikart-extension/joomclouds-client.git | JavaScript | 340 lines
28 'errConf' : 'Backend 환경설정이 올바르지 않습니다', 29 'errJSON' : 'PHP JSON 모듈이 설치되지 않았습니다', 30 'errNoVolumes' : '읽기 가능한 볼률이 없습니다', 114 /******************************** notifications ********************************/ 115 'ntfopen' : '폴더 열기', 116 'ntffile' : '파일 열기', 289 'kindTextPlain' : '보통 텍스트', 290 'kindPHP' : 'PHP 소스', 291 'kindCSS' : 'CSS 문서',import.php https://github.com/tcubansk/moodle.git | PHP | 246 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24 25require_once(dirname(__FILE__).'/../../../config.php'); 26require_once($CFG->dirroot.'/lib/formslib.php'); 26require_once($CFG->dirroot.'/lib/formslib.php'); 27require_once($CFG->dirroot.'/grade/lib.php'); 28require_once($CFG->libdir.'/gradelib.php'); 28require_once($CFG->libdir.'/gradelib.php'); 29require_once('import_outcomes_form.php'); 30 34 35$PAGE->set_url('/grade/edit/outcome/import.php', array('courseid' => $courseid)); 36 45 if (empty($CFG->enableoutcomes)) { 46 redirect('../../index.php?id='.$courseid); 47 }CliDumperTest.php https://gitlab.com/milton2913/myBlog | PHP | 506 lines
44 $out = preg_replace('/[ \t]+$/m', '', $out); 45 $intMax = PHP_INT_MAX; 46 $res = (int) $var['res']; 232 { 233 $out = fopen('php://memory', 'r+b'); 234 286 seekable: true 287 uri: "php://memory" 288%Aoptions: [] 293 src: { 294 %sTwig.php:19: """ 295 // line 2\\n 355 356 $out = fopen('php://memory', 'r+b'); 357 $data = $cloner->cloneVar($var);Backup.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 402 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 183 184 $fResource = @fopen($this->getPath() . DS . $this->getFileName(), "rb"); 185 if (!$fResource) {tsrm_virtual_cwd.h https://github.com/tstarling/hiphop-php.git | C Header | 339 lines
134CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat); 135# define php_sys_stat(path, buf) php_sys_stat_ex(path, buf, 0) 136# define php_sys_lstat(path, buf) php_sys_stat_ex(path, buf, 1) 136# define php_sys_lstat(path, buf) php_sys_stat_ex(path, buf, 1) 137CWD_API int php_sys_readlink(const char *link, char *target, size_t target_len); 138#else 138#else 139# define php_sys_stat stat 140# define php_sys_lstat lstat 259#define VCWD_GETCWD(buff, size) virtual_getcwd(buff, size TSRMLS_CC) 260#define VCWD_FOPEN(path, mode) virtual_fopen(path, mode TSRMLS_CC) 261/* Because open() has two modes, we have to macros to replace it */ 291#define VCWD_GETCWD(buff, size) getcwd(buff, size) 292#define VCWD_FOPEN(path, mode) fopen(path, mode) 293#define VCWD_OPEN(path, flags) open(path, flags)RedirectPluginTest.php https://gitlab.com/techniconline/kmc | PHP | 277 lines
1<?php 2 189 $request->configureRedirects(true); 190 $body = EntityBody::factory(fopen($this->getServer()->getUrl(), 'r')); 191 $body->read(1);ck-gallery.php https://github.com/UberGallery/ck-gallery.git | PHP | 277 lines
1<?php // CK-Gallery by Chris Kankiewicz <http://www.chriskankiewicz.com> 2 14 15 // *** DO NOT EDIT ANYTHING BELOW HERE UNLESS YOU ARE A PHP NINJA *** 16 40 if (!file_exists($logFile)) { 41 $log = fopen($logFile, "a"); 42 fwrite($log,date("Y-m-d")." @ ".date("H:i:s")." CREATED: $logFile\r\n\r\n"); 43 } else { 44 $log = fopen($logFile, "a"); 45 } 166 if ($imgPerPage > 0 && $imgPerPage < $totalImages) { 167 $pageName = basename($_SERVER["PHP_SELF"]); // Get current page file name 168 echo(" <ul id=\"ck-pagination\" style=\"margin: 0 !important; padding: 0 !important;\">\r\n"); 196 if ($verCheck == "1") { 197 $verInfo = @file("http://code.web-geek.net/ck-gallery/version-check.php?ver=$version"); 198 $verInfo = @implode($verInfo);OLE.php https://bitbucket.org/blackriver/openx.git | PHP | 410 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 3// +----------------------------------------------------------------------+ 4// | PHP Version 4 | 5// +----------------------------------------------------------------------+ 5// +----------------------------------------------------------------------+ 6// | Copyright (c) 1997-2002 The PHP Group | 7// +----------------------------------------------------------------------+ 7// +----------------------------------------------------------------------+ 8// | This source file is subject to version 2.02 of the PHP license, | 9// | that is bundled with this package in the file LICENSE, and is | 10// | available at through the world-wide-web at | 11// | http://www.php.net/license/2_02.txt. | 12// | If you did not receive a copy of the PHP license and are unable to | 13// | obtain it through the world-wide-web, please send a note to | 14// | license@php.net so we can mail you a copy immediately. | 15// +----------------------------------------------------------------------+FileValidatorTest.php https://github.com/Exercise/symfony.git | PHP | 324 lines
1<?php 2 18 19abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase 20{ 35 $this->path = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'FileValidatorTest'; 36 $this->file = fopen($this->path, 'w'); 37 }Backup.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 402 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 */ 183 184 $fResource = @fopen($this->getPath() . DS . $this->getFileName(), "rb"); 185 if (!$fResource) {Mbox.php https://github.com/openstate/HNS.dev.git | PHP | 434 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Mbox.php 8064 2008-02-16 10:58:39Z thomas $ 21 */ 27 */ 28// require_once 'Zend/Loader.php'; 29 32 */ 33require_once 'Zend/Mail/Storage/Abstract.php'; 34 37 */ 38require_once 'Zend/Mail/Message.php'; 39 121 */ 122 require_once 'Zend/Mail/Storage/Exception.php'; 123 throw new Zend_Mail_Storage_Exception('id does not exist');klogger.php https://bitbucket.org/nchlssmith1/modified_crayon.git | PHP | 411 lines
1<?php 2 105 /** 106* Valid PHP date() format string for log timestamps 107* @var string 184 185 if (($this->_fileHandle = fopen($this->_logFilePath, 'a'))) { 186 $this->_logStatus = self::STATUS_LOG_OPEN; 363 364 $this->writeFreeFormLine($line . PHP_EOL); 365 }BodyTest.php https://gitlab.com/leon0399/damnit-engine | PHP | 401 lines
1<?php 2/** 4 * 5 * @link https://github.com/slimphp/Slim 6 * @copyright Copyright (c) 2011-2015 Josh Lockhart 6 * @copyright Copyright (c) 2011-2015 Josh Lockhart 7 * @license https://github.com/slimphp/Slim/blob/master/LICENSE.md (MIT License) 8 */ 42 { 43 $stream = fopen('php://temp', $mode); 44 fwrite($stream, $this->text); 242 { 243 $stream = fopen('php://temp', 'w'); 244 $body = new Body($this->stream); 268 { 269 $stream = fopen('php://temp', 'r'); 270 $body = new Body($this->stream);image.php https://bitbucket.org/jstroschein/wordpress-3.5.1-clean.git | PHP | 412 lines
1<?php 2/** 30 if ( ! file_exists( $src_file ) ) { 31 // If the file doesn't exist, attempt a url fopen on the src link. 32 // This can occur with certain file replication plugins. 359 * If the attached file is not present on the local filesystem (usually due to replication plugins), 360 * then the url of the file is returned if url fopen is supported. 361 * 375 } 376 } elseif ( function_exists( 'fopen' ) && function_exists( 'ini_get' ) && true == ini_get( 'allow_url_fopen' ) ) { 377 $filepath = apply_filters( 'load_image_to_edit_attachmenturl', wp_get_attachment_url( $attachment_id ), $attachment_id, $size );pearcmd.php https://bitbucket.org/kucing2k/ediassoc.git | PHP | 444 lines
59if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) { 60 echo 'ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini'; 61 exit(1); 132// this is used in the error handler to retrieve a relative path 133$_PEAR_PHPDIR = $config->get('php_dir'); 134$ui->setConfig($config); 166 ); 167 $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php'); 168 $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data'); 320 global $progname, $all_commands; 321 $stdout = fopen('php://stdout', 'w'); 322 if (PEAR::isError($error)) { 376 return "PEAR Version: ".$GLOBALS['pear_package_version']. 377 "\nPHP Version: ".phpversion(). 378 "\nZend Engine Version: ".zend_version().ApiTest.php https://bitbucket.org/ZephyrQG2/sf2bundleeditable.git | PHP | 311 lines
1<?php 2require_once dirname(__FILE__).'/config.php'; 2require_once dirname(__FILE__).'/config.php'; 3require_once dirname(__FILE__).'/../../uploadcare/lib/5.2/Uploadcare.php'; 4 4 5class ApiTest extends PHPUnit_Framework_TestCase 6{ 276 try { 277 $fp = fopen(dirname(__FILE__).'/test.jpg', 'r'); 278 $file = $api->uploader->fromResource($fp);airfoil_op.cpp https://github.com/tiziano88/airfoil_opencl.git | C++ | 409 lines
6 Open source copyright declaration based on BSD open source template: 7 http://www.opensource.org/licenses/bsd-license.php 8 135 FILE *flog; 136 flog = fopen( file, "w" ); 137 for( int i=0; i<len; ++i ) { 160 FILE *fp; 161 if ( (fp = fopen("new_grid.dat","r")) == NULL) { 162 printf("can't open file new_grid.dat\n"); exit(-1);function.eio-grp.html https://bitbucket.org/thncr/manuals.git | HTML | 145 lines
11 <div class="up"><a href="ref.eio.html">Eio 函数</a></div> 12 <div class="home"><a href="index.html">PHP Manual</a></div> 13</div><hr /><div id="function.eio-grp" class="refentry"> 45<em><code class="parameter">callback</code></em> 46函数在请求完成时被调用。其应匹配一下原型:<div class="example-contents"><div class="phpcode"><code><span style="color: #000000"> 47void callback(mixed $data, int $result[, resource $req]);</span> 115<div class="phpcode"><code><span style="color: #000000"> 116<span style="color: #0000BB"><?php<br />$temp_filename </span><span style="color: #007700">= </span><span style="color: #0000BB">dirname</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">) .</span><span style="color: #DD0000">"/eio-file.tmp"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$fp </span><span style="color: #007700">= </span><span style="color: #0000BB">fopen</span><span style="color: #007700">(</span><span style="color: #0000BB">$temp_filename</span><span style="color: #007700">, </span><span style="color: #DD0000">"w"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">fwrite</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">, </span><span style="color: #DD0000">"some data"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">fclose</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$my_file_fd </span><span style="color: #007700">= </span><span style="color: #0000BB">NULL</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">/* Is called when the group requests are done */<br /></span><span style="color: #007700">function </span><span style="color: #0000BB">my_grp_done</span><span style="color: #007700">(</span><span style="color: #0000BB">$data</span><span style="color: #007700">, </span><span style="color: #0000BB">$result</span><span style="color: #007700">) {<br /> </span><span style="color: #FF8000">// Remove the file, if it still exists<br /> </span><span style="color: #007700">@</span><span style="color: #0000BB">unlink</span><span style="color: #007700">(</span><span style="color: #0000BB">$data</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #FF8000">/* Is called when the temporary file is opened */<br /></span><span style="color: #007700">function </span><span style="color: #0000BB">my_grp_file_opened_callback</span><span style="color: #007700">(</span><span style="color: #0000BB">$data</span><span style="color: #007700">, </span><span style="color: #0000BB">$result</span><span style="color: #007700">) {<br /> global </span><span style="color: #0000BB">$my_file_fd</span><span style="color: #007700">, </span><span style="color: #0000BB">$grp</span><span style="color: #007700">;<br /><br /> </span><span style="color: #0000BB">$my_file_fd </span><span style="color: #007700">= </span><span style="color: #0000BB">$result</span><span style="color: #007700">;<br /><br /> </span><span style="color: #0000BB">$req </span><span style="color: #007700">= </span><span style="color: #0000BB">eio_read</span><span style="color: #007700">(</span><span style="color: #0000BB">$my_file_fd</span><span style="color: #007700">, </span><span style="color: #0000BB">4</span><span style="color: #007700">, </span><span style="color: #0000BB">0</span><span style="color: #007700">,<br /> </span><span style="color: #0000BB">EIO_PRI_DEFAULT</span><span style="color: #007700">, </span><span style="color: #DD0000">"my_grp_file_read_callback"</span><span style="color: #007700">);<br /> </span><span style="color: #0000BB">eio_grp_add</span><span style="color: #007700">(</span><span style="color: #0000BB">$grp</span><span style="color: #007700">, </span><span style="color: #0000BB">$req</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #FF8000">/* Is called when the file is read */<br /></span><span style="color: #007700">function </span><span style="color: #0000BB">my_grp_file_read_callback</span><span style="color: #007700">(</span><span style="color: #0000BB">$data</span><span style="color: #007700">, </span><span style="color: #0000BB">$result</span><span style="color: #007700">) {<br /> global </span><span style="color: #0000BB">$my_file_fd</span><span style="color: #007700">, </span><span style="color: #0000BB">$grp</span><span style="color: #007700">;<br /><br /> </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">);<br /><br /> </span><span style="color: #FF8000">// Create request to close the file<br /> </span><span style="color: #0000BB">$req </span><span style="color: #007700">= </span><span style="color: #0000BB">eio_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$my_file_fd</span><span style="color: #007700">);<br /><br /> </span><span style="color: #FF8000">// Add request to the group<br /> </span><span style="color: #0000BB">eio_grp_add</span><span style="color: #007700">(</span><span style="color: #0000BB">$grp</span><span style="color: #007700">, </span><span style="color: #0000BB">$req</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #FF8000">// Create request group<br /></span><span style="color: #0000BB">$grp </span><span style="color: #007700">= </span><span style="color: #0000BB">eio_grp</span><span style="color: #007700">(</span><span style="color: #DD0000">"my_grp_done"</span><span style="color: #007700">, </span><span style="color: #0000BB">$temp_filename</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Create request<br /></span><span style="color: #0000BB">$req </span><span style="color: #007700">= </span><span style="color: #0000BB">eio_open</span><span style="color: #007700">(</span><span style="color: #0000BB">$temp_filename</span><span style="color: #007700">, </span><span style="color: #0000BB">EIO_O_RDWR </span><span style="color: #007700">| </span><span style="color: #0000BB">EIO_O_APPEND </span><span style="color: #007700">, </span><span style="color: #0000BB">NULL</span><span style="color: #007700">,<br /> </span><span style="color: #0000BB">EIO_PRI_DEFAULT</span><span style="color: #007700">, </span><span style="color: #DD0000">"my_grp_file_opened_callback"</span><span style="color: #007700">, </span><span style="color: #0000BB">NULL</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Add request to the group<br /></span><span style="color: #0000BB">eio_grp_add</span><span style="color: #007700">(</span><span style="color: #0000BB">$grp</span><span style="color: #007700">, </span><span style="color: #0000BB">$req</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Process requests<br /></span><span style="color: #0000BB">eio_event_loop</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?></span> 117</span> 143 <div class="up"><a href="ref.eio.html">Eio 函数</a></div> 144 <div class="home"><a href="index.html">PHP Manual</a></div> 145</div></body></html>errors.lang.php https://bitbucket.org/speedealing/speedealing.git | PHP | 146 lines
56 'ErrorFieldsRequired' => 'No se indicaron algunos campos obligatorios', 57 'ErrorFailedToCreateDir' => 'Error en la creación de un directorio. Compruebe que el usuario del servidor Web tiene derechos de escritura en los directorios de documentos de Speedealing. Si el parámetro <b>safe_mode</b> está activo en este PHP, Compruebe que los archivos php Speedealing pertenecen al usuario del servidor Web.', 58 'ErrorNoMailDefinedForThisUser' => 'E-Mail no definido para este usuario', 63 'ErrorDirNotFound' => 'Directorio<b>%s</b>no encontrado (Ruta incorrecta, permisos inadecuados o acceso prohibido por el parámetro PHP openbasedir o safe_mode)', 64 'ErrorFunctionNotAvailableInPHP' => 'La función <b>%s</b> es requerida por esta funcionalidad, pero no se encuetra disponible en esta versión/instalación de PHP.', 65 'ErrorDirAlreadyExists' => 'Ya existe un directorio con ese nombre.', 114 'ErrorLoginDisabled' => 'Su cuenta está desactivada', 115 'ErrorFailedToRunExternalCommand' => 'Error de ejecución del comando externo. Compruebe que está disponible y ejecutable por su servidor PHP. Si el PHP <b>Safe Mode</b> está activo, compruebe que el comando se encuentra en un directorio definido en el parámetro <b>safe_mode_exec_dir</b>.', 116 'ErrorFailedToChangePassword' => 'Error en la modificación de la contraseña', 126 'ErrorFileRequired' => 'Se requiere un archivo de paquete Speedealing en formato zip', 127 'ErrorPhpCurlNotInstalled' => 'La extensión PHP CURL no se encuentra instalada, es indispensable para dialogar con Paypal.', 128 'ErrorFailedToAddToMailmanList' => 'Ha ocurrido un error al intentar añadir un registro a la lista Mailman o base de datos SPIP', 134 'WarningSafeModeOnCheckExecDir' => 'Atención, está activada la opción PHP <b>safe_mode</b>, el comando deberá estar dentro de un directorio declarado dentro del parámetro php <b>safe_mode_exec_dir</b>.', 135 'WarningAllowUrlFopenMustBeOn' => 'El parámetro <b>allow_url_fopen</b> debe ser especificado a <b>on</b> en el archivo <b>php.ini</b> para disponer de este módulo completamente activo. Debe modificar este archivo manualmente', 136 'WarningBuildScriptNotRunned' => 'El script <b>%s</b> todavía no ha ejecutado la construcción de gráficos.',FileStorage.php https://github.com/vohnicky/treeview.git | PHP | 451 lines
1<?php 2 6 * @copyright Copyright (c) 2004, 2010 David Grudl 7 * @license http://nettephp.com/license Nette license 8 * @link http://nettephp.com 199 } 200 $handle = @fopen($cacheFile, 'r+b'); // intentionally @ 201 if (!$handle) { 201 if (!$handle) { 202 $handle = fopen($cacheFile, 'wb'); // intentionally @ 203 if (!$handle) { 228 $head = serialize($meta) . '?>'; 229 $head = '<?php //netteCache[01]' . str_pad((string) strlen($head), 6, '0', STR_PAD_LEFT) . $head; 230 $headLen = strlen($head); 347 { 348 $handle = @fopen($file, 'r+b'); // intentionally @ 349 if (!$handle) return NULL;plugins.php https://github.com/sarriaroman/Cronos-Aion.git | PHP | 389 lines
1<?php 2 55function create_database_schema_from_file($file) { 56 $fh = fopen($file, 'r'); 57 $sql = fread($fh, filesize($file)); 179 180 return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '§ion=' . $section ); 181 } else { 205 206 return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '§ion=' . $section . "&module=" . $module ); 207 } else { 231 232 return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '§ion=' . $section . "&module=" . $module ); 233 } else { 312 $label = ""; 313 include( $dir . $directory . '/description.php' ); 314 array_push($array, array( "label" => ( $label == "" ) ? $directory : $label, "invoke" => $directory, "url" => get_plugin_section_url_by_path($directory, $plg->path) ) );PDF.php https://github.com/libersoft/fengoffice-ls.git | PHP | 461 lines
22 * @package PHPExcel_Writer 23 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 34 * @package PHPExcel_Writer 35 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 36 */ 36 */ 37class PHPExcel_Writer_PDF implements PHPExcel_Writer_IWriter { 38 /** 68 * 69 * @param PHPExcel $phpExcel PHPExcel object 70 */ 71 public function __construct(PHPExcel $phpExcel) { 72 $this->_phpExcel = $phpExcel; 73 $this->_sheetIndex = 0;Curl.php https://gitlab.com/nboscode_starter/nbos_dev_php_starter | PHP | 401 lines
1<?php 2namespace NBOS\http; 31 if(!file_exists($log_file_path)){ 32 $fp = fopen($log_file_path, 'a'); 33 fclose($fp);cURL.php https://gitlab.com/x33n/ampache | PHP | 349 lines
1<?php 2/** 25 * 26 * @var array cURL information array, see {@see http://php.net/curl_getinfo} 27 */ 92 if ($options['filename'] !== false) { 93 $this->stream_handle = fopen($options['filename'], 'wb'); 94 curl_setopt($this->fp, CURLOPT_FILE, $this->stream_handle); 204 if ($options['filename'] !== false) { 205 $this->stream_handle = fopen($options['filename'], 'wb'); 206 curl_setopt($this->fp, CURLOPT_FILE, $this->stream_handle); 313 * @param string $url 314 * @param array|object $data Data to build query using, see {@see http://php.net/http_build_query} 315 * @return string URL with datafunctions.php https://bitbucket.org/zachisit/zachis.it-m.git | PHP | 367 lines
122 $installerRescue = duplicator_safe_path(DUPLICATOR_PLUGIN_PATH . 'files/installer.rescue.php'); 123 $installerCore = duplicator_safe_path(DUPLICATOR_SSDIR_PATH) . "/{$uniquename}_installer.php"; 124 158 } else { 159 $fp2 = fopen($installerCore, 'w') or die(duplicator_log("log:fun__create_installerFile=>file-open-error-w" . $err_msg)); 160 } 299 //SSDIR: Create Index File 300 $ssfile = @fopen($path_ssdir .'/index.php', 'w'); 301 @fwrite($ssfile, '<?php error_reporting(0); if (stristr(php_sapi_name(), "fcgi")) { $url = "http://" . $_SERVER["HTTP_HOST"]; header("Location: {$url}/404.html");} else { header("HTML/1.1 404 Not Found", true, 404);} exit(); ?>'); 305 $tokenfile = @fopen($path_ssdir .'/dtoken.php', 'w'); 306 @fwrite($tokenfile, '<?php error_reporting(0); if (stristr(php_sapi_name(), "fcgi")) { $url = "http://" . $_SERVER["HTTP_HOST"]; header("Location: {$url}/404.html");} else { header("HTML/1.1 404 Not Found", true, 404);} exit(); ?>'); 307 @fclose($tokenfile); 320 $tokenfile2 = @fopen($path_plugin .'files/dtoken.php', 'w'); 321 @fwrite($tokenfile2, '<?php @error_reporting(0); @require_once("../../../../wp-admin/admin.php"); global $wp_query; $wp_query->set_404(); header("HTML/1.1 404 Not Found", true, 404); header("Status: 404 Not Found"); @include(get_template_directory () . "/404.php"); ?>'); 322 @fclose($tokenfile2);index.php https://github.com/karpenoktem/punbb.git | PHP | 244 lines
128else if (isset($_PHPA)) 129 $php_accelerator = '<a href="http://www.php-accelerator.co.uk/">ionCube PHP Accelerator</a>'; 130else if (ini_get('apc.enabled')) 130else if (ini_get('apc.enabled')) 131 $php_accelerator ='<a href="http://www.php.net/apc/">Alternative PHP Cache (APC)</a>'; 132else if (ini_get('zend_optimizer.optimization_level')) 204 <h3 class="ct-legend hn"><span><?php echo $lang_admin_index['Server load'] ?></span></h3> 205 <p><span><?php echo $server_load ?> (<?php echo $num_online.' '.$lang_admin_index['users online']?>)</span></p> 206 </div> 213 <li><span><?php echo $lang_admin_index['Operating system'] ?>: <?php echo PHP_OS ?></span></li> 214 <li><span>PHP: <?php echo PHP_VERSION ?> - <a href="<?php echo forum_link($forum_url['admin_index']) ?>?action=phpinfo"><?php echo $lang_admin_index['Show info'] ?></a></span></li> 215 <li><span><?php echo $lang_admin_index['Accelerator'] ?>: <?php echo $php_accelerator ?></span></li> 226 <li><span><?php echo $lang_admin_index['Rows'] ?>: <?php echo forum_number_format($total_records) ?></span></li> 227 <li><span><?php echo $lang_admin_index['Size'] ?>: <?php echo $total_size ?></span></li> 228<?php endif; ?>exportCSV.class.php https://github.com/atutor/AChecker.git | PHP | 399 lines
1<?php 2/************************************************************************/ 21if (!defined("AC_INCLUDE_PATH")) exit; 22include_once(AC_INCLUDE_PATH. "classes/DAO/GuidelinesDAO.class.php"); 23 24// end of line; system dependent 25if (PHP_EOL == "\r\n") { 26 define(EOL, "\r\n"); 120 $path = AC_EXPORT_RPT_DIR.$filename.'.csv'; 121 $handle = fopen($path, 'w'); 122 fwrite($handle, pack("CCC",0xef,0xbb,0xbf));build_diff.php https://github.com/naderman/phpbb-orchestra.git | PHP | 415 lines
127 $titles = array( 128 'language' => 'phpBB ' . $substitute_old . ' to phpBB ' . $substitute_new . ' Language Pack Changes', 129 'prosilver' => 'phpBB ' . $substitute_old . ' to phpBB ' . $substitute_new . ' prosilver Changes', 129 'prosilver' => 'phpBB ' . $substitute_old . ' to phpBB ' . $substitute_new . ' prosilver Changes', 130 'subsilver2' => 'phpBB ' . $substitute_old . ' to phpBB ' . $substitute_new . ' subsilver2 Changes', 131 ); 155 { 156 echo "\n\n" . 'Creating patch/diff files for phpBB-' . $dest_package_filename . $package->get('new_version_number'); 157 } 359 $html .= "## Title: " . $header['title'] . "\n"; 360 $html .= "## Author: naderman < naderman@phpbb.com > (Nils Adermann) http://www.phpbb.com \n"; 361 $html .= "## Description: \n"; 400 { 401 $html .= "copy {$filename['phpbb_filename']} to {$filename['phpbb_filename']}\n"; 402 }SCP.php https://gitlab.com/code26/selah | PHP | 373 lines
3/** 4 * Pure-PHP implementation of SCP. 5 * 5 * 6 * PHP versions 4 and 5 7 * 7 * 8 * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}. 9 * 11 * <code> 12 * <?php 13 * include 'Net/SCP.php'; 13 * include 'Net/SCP.php'; 14 * include 'Net/SSH2.php'; 15 *Fl_Shared_Image.cxx https://github.com/paniwani/OTB.git | C++ | 467 lines
24// 25// http://www.fltk.org/str.php 26// 225 226 if ((fp = fopen(name_, "rb")) != NULL) { 227 fread(header, 1, sizeof(header), fp);install.php https://gitlab.com/e0/X2CRM | PHP | 95 lines
2 'required but missing' => '필요하지만 누락', 3 'Your server\'s PHP version' => '서버의 \\ '의 PHP 버전', 4 'version 5.3 or later is required' => '버전 5.3 이상이 필요합니다', 24 'News Outlet' => '뉴스 아울렛', 25 'This directory is not writable by PHP processes run by the webserver.' => '이 디렉토리는 웹 서버에 의해 실행 PHP 프로세스에 의해 쓸 수 없습니다.', 26 'PHP scripts are not permitted to run the function "chmod".' => 'PHP 스크립트는 함수 "chmod를"를 실행 할 수 없습니다.', 29 'Built-in error reporter will not work' => '내장 된 오류 기자가 작동하지 않습니다', 30 'The PHP configuration option "allow_url_fopen" is disabled. CURL will be used for making all HTTP requests during updates.' => 'PHP 구성 옵션 "allow_url_fopen을"이 비활성화되어 있습니다. CURL을 업데이트하는 동안 모든 HTTP 요청을 만드는 데 사용됩니다.', 31 'This will result in the inability to import and export custom modules.' => '이 사용자 정의 모듈을 가져오고 내보낼 수 없게됩니다.', 33 'All other essential requirements were met.' => '다른 모든 필수 요구 사항을 충족 하였다.', 34 'The version of the PCRE library included in this build of PHP is {thisVer}, but {reqVer} or later is required.' => 'PHP의이 빌드에 포함 된 PCRE 라이브러리의 버전은 {thisVer} 하지만, {reqVer} 이상 이상이 필요합니다.', 35 'The "openssl" and "mcrypt" libraries are not available. If any application credentials (i.e. email account passwords) are entered into X2Engine, they will be stored in the database in plain text (without any encryption whatsoever). Thus, if the database is ever compromised, those passwords will be readable by unauthorized parties.' => '"OpenSSL을"과 "Mcrypt 라이브러리"라이브러리는 사용할 수 없습니다. 모든 응용 프로그램 자격 증명 (예 : 전자 메일 계정 암호가) X2Engine에 입력하면, 그들은 일반 텍스트 데이터베이스 (어떠한 암호화없이)에 저장됩니다. 데이터베이스도 손상된 경우 따라서, 이러한 암호는 무단으로 읽을 수 있습니다.', 65 'The path defined in session.save_path ({ssp}) is not writable.' => '때 session.save_path에 정의 된 경로 ( {ssp} ) 쓸 수 없습니다.', 66 'The PHP configuration option "allow_url_fopen" is disabled in addition to the CURL extension missing. This means there is no possible way to make outbound HTTP/HTTPS requests.' => '"allow_url_fopen을"PHP 설정 옵션이없는 CURL 확장에 추가하여 사용할 수 없습니다. 이는 아웃 바운드 HTTP / HTTPS 요청을 수행하는 가능한 방법이 없다는 것을 의미한다.', 67 'Software updates will have to be performed using the "offline" method, and Google integration will not work.' => '소프트웨어 업데이트는 "오프라인"방법을 사용하여 수행해야합니다, 구글의 통합이 작동하지 않습니다.',WindowsAzure.php https://github.com/necrogami/zf2.git | PHP | 448 lines
1<?php 2/** 55 const RETURN_STRING = 2; // return data as string 56 const RETURN_STREAM = 3; // return PHP stream 57 182 if ($returnType == self::RETURN_STREAM) { 183 return fopen($returnPath, $openMode); 184 } 203 $temporaryFilePath = tempnam('', 'azr'); 204 $fpDestination = fopen($temporaryFilePath, 'w'); 205chunk.php https://gitlab.com/hschoenburg/tlworks2 | PHP | 392 lines
1<?php 2 2 3include __DIR__ . "/XmlStreamReader/autoload.php"; 4 57 * 58 * @var resource The fopen() resource 59 * @access private 91 $is_html = false; 92 $f = @fopen($file, "rb"); 93 while (!@feof($f)) { 234 else 235 $path = 'php://filter/read=preprocessxml/resource=' . $this->file; 236 } 368 369class preprocessXml_filter extends php_user_filter { 370generateSitemap.php https://github.com/Seizam/seizamcore.git | PHP | 466 lines
1<?php 2/** 28 29require_once( dirname( __FILE__ ) . '/Maintenance.php' ); 30 46 * 47 * @link http://www.sitemaps.org/faq.php#faq_sitemap_size 48 * 159 $this->timestamp = wfTimestamp( TS_ISO_8601, wfTimestampNow() ); 160 $this->findex = fopen( "{$this->fspath}sitemap-index-{$this->identifier}.xml", 'wb' ); 161 $this->main(); 324 /** 325 * gzopen() / fopen() wrapper 326 * 329 function open( $file, $flags ) { 330 return $this->compress ? gzopen( $file, $flags ) : fopen( $file, $flags ); 331 }ARC2_TestHandler.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 434 lines
1<?php 2/* 61 unset($this->reader); 62 $fp = @fopen('tmp/' . $fname, "w"); 63 @fwrite($fp, $r);sql_upgrade.php https://github.com/md-tech/openemr.git | PHP | 283 lines
1<?php 2// Copyright (C) 2008-2010 Rod Roark <rod@sunsetsystems.com> 12 13// Disable PHP timeout. This will not work in safe mode. 14ini_set('max_execution_time', '0'); 17 18require_once('interface/globals.php'); 19require_once('library/sql.inc'); 73 74 $fd = fopen($fullname, 'r'); 75 if ($fd == FALSE) { 222</center> 223<?php 224if (!empty($_POST['form_submit'])) { 238 echo "<font color='green'>Updating global configuration defaults...</font><br />\n"; 239 require_once("library/globals.inc.php"); 240 foreach ($GLOBALS_METADATA as $grpname => $grparr) {class.xml.php https://github.com/testlinkjp/testlink-japanese-localization.git | PHP | 442 lines
1<?php 2# XMLFile -- Initial version June 1, 2000 3# May 29, 2002 4# Fixed to work with later versions of PHP that have deprecated the call-time 5# pass by reference syntax. This may break versions of PHP older than 3, so 15# Incorporated Mike Konkov's find_subtags_by_name function (with some changes). 16# Fixed an errant documentation comment (open instead of fopen -- oops). 17# 18# September 29, 2000 19# by Chris Monson -- e408345b17be3ce90059d01d96be0599@orangatango.com This PHP module is licensed under the GNU LGPL (www.gnu.org) 20# Please become familiar with this license before sending this thing all over 50# $xml = new XMLFile(); 51# $fh = fopen( 'myxmlfile.xml', 'r' ); 52# $xml->read_file_handle( $fh ); 84# Once you have finished with the XMLFile object, you need to call the cleanup 85# method. If you don't, you will get a memory leak, since PHP is reference 86# counted and each element in the tree refers to its parent. 'cleanup' simplyuser_add3.php https://bitbucket.org/droidzone/i-mscp.git | PHP | 456 lines
176 $php, $cgi, $sub, $als, $mail, $ftp, $sql_db, $sql_user, $traff, $disk, 177 $backup, $dns, $software_allowed, $phpini_system, $phpini_al_allow_url_fopen, 178 $phpini_al_display_errors, $phpini_al_disable_functions, $phpini_post_max_size, 250 `domain_php`, `domain_cgi`, `allowbackup`, `domain_dns`, 251 `domain_software_allowed`, `phpini_perm_system`, `phpini_perm_allow_url_fopen`, 252 `phpini_perm_display_errors`, `phpini_perm_disable_functions`, `domain_external_mail` 261 $php, $cgi, $backup, $dns, $software_allowed, 262 $phpini_system, $phpini_al_allow_url_fopen, 263 $phpini_al_display_errors, $phpini_al_disable_functions, $external_mail)); 286 $phpini->setData('phpiniPostMaxSize', $phpini_post_max_size); 287 $phpini->setData('phpiniUploadMaxFileSize', $phpini_upload_max_filesize); 288 $phpini->setData('phpiniMaxExecutionTime', $phpini_max_execution_time); 288 $phpini->setData('phpiniMaxExecutionTime', $phpini_max_execution_time); 289 $phpini->setData('phpiniMaxInputTime', $phpini_max_input_time); 290 $phpini->setData('phpiniMemoryLimit', $phpini_memory_limit);layout.php https://gitlab.com/hunt9310/ras | PHP | 307 lines
1<?php 2 39 // create file & store layout information 40 $fp = fopen( $file, 'w' ); 41 fwrite( $fp, '[wr_layout name="' . $layout_name . '"]' ); 123 static function extract_layout_data( $path, $data ) { 124 $fp = @fopen( $path, 'r' ); 125 if ( $fp ) {backupdb.php https://gitlab.com/Conors99/ppm-1.8 | PHP | 484 lines
1<?php 2/** 52 53$page->add_breadcrumb_item($lang->database_backups, "index.php?module=tools-backupdb"); 54 61 flash_message($lang->error_file_not_specified, 'error'); 62 admin_redirect("index.php?module=tools-backupdb"); 63 } 80 81 $handle = fopen(MYBB_ADMIN_DIR.'backups/'.$file, 'rb'); 82 while(!feof($handle)) 90 flash_message($lang->error_invalid_backup, 'error'); 91 admin_redirect("index.php?module=tools-backupdb"); 92 } 98 { 99 admin_redirect("index.php?module=tools-backupdb"); 100 }helper.php https://gitlab.com/wuhang2003/core | PHP | 297 lines
1<?php 2/** 33 /** 34 * @dataProvider phpFileSizeProvider 35 */ 35 */ 36 public function testPhpFileSize($expected, $input) 37 { 37 { 38 $result = OC_Helper::phpFileSize($input); 39 $this->assertEquals($expected, $result); 41 42 public function phpFileSizeProvider() 43 { 192 if (is_string($source)) { 193 $source = fopen($source, 'r'); 194 }functions.php https://bitbucket.org/samsanders/love-courage-hope.git | PHP | 384 lines
1<?php if (!defined('OT_VERSION')) exit('No direct script access allowed'); 2/** 331 /* can't write to the file return false */ 332 if ( !$f = @fopen( $filepath, 'w' ) ) 333 return false;sql.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 238 lines
1<?php 2if (!$error && $_POST["export"]) { 23 } elseif ($_POST["webfile"]) { 24 $fp = @fopen((file_exists("adminer.sql") 25 ? "adminer.sql" 186<form action="" method="post" enctype="multipart/form-data" id="form"> 187<?php 188$execute = "<input type='submit' value='" . lang('Execute') . "' title='Ctrl+Enter'>";functions.php https://gitlab.com/reasonat/test8 | PHP | 329 lines
1<?php 2namespace GuzzleHttp; 91 92 return fopen('php://output', 'w'); 93} 113 114 if (ini_get('allow_url_fopen')) { 115 $handler = $handler 139 } 140 $defaultAgent .= ' PHP/' . PHP_VERSION; 141 } 295 * @throws \InvalidArgumentException if the JSON cannot be decoded. 296 * @link http://www.php.net/manual/en/function.json-decode.php 297 */ 317 * @throws \InvalidArgumentException if the JSON cannot be encoded. 318 * @link http://www.php.net/manual/en/function.json-encode.php 319 */mod_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 { 179 180 if(($fh = fopen($module_data['file'], 'r')) == FALSE) 181 {Search.php https://gitlab.com/digitalpoetry/exceptionally-timed | PHP | 462 lines
1<?php namespace Myth\Docs; 2/** 28 * @license http://opensource.org/licenses/MIT (MIT) 29 * @link http://sprintphp.com 30 * @since Version 1.0 64 */ 65 protected $allowed_file_types = 'html|htm|php|php4|php5|txt|md'; 66 178 // Read in the file text 179 $handle = fopen($path, 'r'); 180 $text = fread($handle, $this->byte_size);zones.php https://github.com/voldern/wmbind.git | PHP | 312 lines
1<?php 2 157 // Write the zone file 158 $fd = fopen($this->registry->zones_path . 159 preg_replace('/\//', '-', $zone['name']), 'w'); 218 // Write record to end of file 219 $fd = fopen($this->registry->zones_path . 220 preg_replace('/\//', '-', $zone['name']), 'a'); 241 // Remove the last record from the zone file that caused the error 242 $fd = fopen($this->registry->zones_path . 243 preg_replace('/\//', '-', $zone['name']), 'r+'); 284 285 $fd = fopen($this->registry->conf_path, 'w') 286 or die('Cannot open: ' . $this->registry->conf_path);ext_error.cpp https://github.com/tstarling/hiphop-php.git | C++ | 251 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | 6 | Copyright (c) 1997-2010 The PHP Group | 7 +----------------------------------------------------------------------+ 7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.txt | 12 | If you did not receive a copy of the PHP license and are unable to | 13 | obtain it through the world-wide-web, please send a note to | 14 | license@php.net so we can mail you a copy immediately. | 15 +----------------------------------------------------------------------+SCP.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 361 lines
3/** 4 * Pure-PHP implementation of SCP. 5 * 5 * 6 * PHP versions 4 and 5 7 * 7 * 8 * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}. 9 * 11 * <code> 12 * <?php 13 * include('Net/SCP.php'); 13 * include('Net/SCP.php'); 14 * include('Net/SSH2.php'); 15 *CrossRefExportPlugin.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 302 lines
1<?php 2 3/** 4 * @file plugins/importexport/crossref/CrossRefExportPlugin.inc.php 5 * 164 if (!empty($outputFile)) { 165 if (($h = fopen($outputFile, 'w'))===false) return false; 166 fwrite($h, XMLCustomWriter::getXML($doc)); 224 if (!empty($outputFile)) { 225 if (($h = fopen($outputFile, 'w'))===false) return false; 226 fwrite($h, XMLCustomWriter::getXML($doc));Logger.php https://gitlab.com/hoanghung.dev/phunuvadoisong.com | PHP | 456 lines
1<?php 2/** 2/** 3 * Logger.php 4 * 447 // Append log line 448 if (($fp = fopen($logFile, "a")) != null) { 449 fputs($fp, $message);importDump.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 277 lines
1<?php 2/** 24 25require_once( dirname( __FILE__ ) . '/Maintenance.php' ); 26 40 parent::__construct(); 41 $gz = in_array('compress.zlib', stream_get_wrappers()) ? 'ok' : '(disabled; requires PHP zlib module)'; 42 $bz2 = in_array('compress.bzip2', stream_get_wrappers()) ? 'ok' : '(disabled; requires PHP bzip2 module)'; 45This script reads pages from an XML file as produced from Special:Export or 46dumpBackup.php, and saves them into the current wiki. 47 56TEXT; 57 $this->stderr = fopen( "php://stderr", "wt" ); 58 $this->addOption( 'report', 234 function importFromStdin() { 235 $file = fopen( 'php://stdin', 'rt' ); 236 if( self::posix_isatty( $file ) ) {workspace.inc.php https://github.com/gbds/revolution.git | PHP | 188 lines
1<?php 2/** 73$_lang['package_err_transfer'] = 'Could not transfer package [[+sourceFile]] to [[+packageDir]].'; 74$_lang['package_err_transfer_fopen'] = 'Could not transfer package [[+sourceFile]] to [[+packageDir]]; allow_url_fopen is not enabled on your configuration.'; 75$_lang['package_err_uninstall'] = 'Error uninstalling package with signature: [[+signature]]'; 141$_lang['provider_err_no_api_key'] = 'This Provider requires an API Key to connect. Please specify one.'; 142$_lang['provider_err_no_client'] = '<p><b>You do not have a viable REST client for your system.</b></p><p>Please install the cURL PHP extension or enable fsockopen, and try again.</p>'; 143$_lang['provider_err_nfs'] = 'Provider not found with ID [[+id]]';cache.php https://github.com/masuman/elgg-1.git | PHP | 439 lines
1<?php 2 /** 321 322 return fopen($path . $filename, $rw); 323 }String.php https://github.com/joshbhamilton/todophp.git | PHP | 440 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2011, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/mit-license.php The MIT License 7 */ 126 return static::$_source; 127 case is_readable('/dev/urandom') && $fp = fopen('/dev/urandom', 'rb'): 128 return static::$_source = function($bytes) use (&$fp) { 154 * 155 * @link http://php.net/manual/en/function.hash.php PHP Manual: `hash()` 156 * @link http://php.net/manual/en/function.hash-hmac.php PHP Manual: `hash_hmac()` 156 * @link http://php.net/manual/en/function.hash-hmac.php PHP Manual: `hash_hmac()` 157 * @link http://php.net/manual/en/function.hash-algos.php PHP Manual: `hash_algos()` 158 * @param string $string The string to hash.Openssl.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 353 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Openssl.php 20288 2010-01-14 20:15:43Z thomas $ 20 */ 24 */ 25// require_once 'Zend/Filter/Encrypt/Interface.php'; 26 70 if (!extension_loaded('openssl')) { 71 // require_once 'Zend/Filter/Exception.php'; 72 throw new Zend_Filter_Exception('This filter needs the openssl extension'); 99 if (!is_array($keys)) { 100 // require_once 'Zend/Filter/Exception.php'; 101 throw new Zend_Filter_Exception('Invalid options argument provided to filter'); 105 if (is_file($key) and is_readable($key)) { 106 $file = fopen($key, 'r'); 107 $cert = fread($file, 8192);FileTest.class.php https://github.com/treuter/xp-framework.git | PHP | 361 lines
105 $this->assertNotEquals( 106 create(new File(fopen($fn, 'r')))->hashCode(), 107 create(new File($fn))->hashCode() 240 public function fromResource() { 241 $this->assertNull(create(new File(fopen($this->fileKnownToExist(), 'r')))->getURI()); 242 } 249 public function stderr() { 250 $this->assertEquals('php://stderr', create(new File('php://stderr'))->getURI()); 251 } 258 public function stdout() { 259 $this->assertEquals('php://stdout', create(new File('php://stdout'))->getURI()); 260 } 267 public function stdin() { 268 $this->assertEquals('php://stdin', create(new File('php://stdin'))->getURI()); 269 }test_ext_stream.cpp https://github.com/zsj888/hiphop-php.git | C++ | 440 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 125bool TestExtStream::test_stream_copy_to_stream() { 126 Variant src = f_fopen("test/test_ext_file.txt", "r"); 127 Variant dest = f_fopen("test/test_ext_file.tmp", "w");GenCRC32Section.c https://gitlab.com/envieidoc/Clover | C | 313 lines
6which accompanies this distribution. The full text of the license may be found at 7http://opensource.org/licenses/bsd-license.php 8 185 FileName = argv[Start + Index]; 186 InputFile = fopen (FileName, "rb"); 187 if (InputFile == NULL) { 277 278 OutputFile = fopen (OutputFileName, "wb"); 279 if (OutputFile == NULL) {plugin.php https://github.com/yamamoto123/Ushahidi_Web.git | PHP | 292 lines
1<?php 2/** 159 { 160 $fp = fopen( $file, 'r' ); 161 197 // Determine if readme.txt (Case Insensitive) exists 198 $file = PLUGINPATH.$plugin."/controllers/admin/".$plugin."_settings.php"; 199 if ( file::file_exists_i($file) ) 272 273 $file = PLUGINPATH.$name.'/config/'.$name.'.php'; 274 if ( file_exists($file) )FilesystemAdapter.php https://gitlab.com/milton2913/myBlog | PHP | 433 lines
1<?php 2 118 { 119 $stream = fopen($file->getRealPath(), 'r+'); 120 164 */ 165 public function prepend($path, $data, $separator = PHP_EOL) 166 { 181 */ 182 public function append($path, $data, $separator = PHP_EOL) 183 {install.php https://gitlab.com/e0/X2CRM | PHP | 95 lines
2 'required but missing' => 'nécessaire, mais manquant', 3 'Your server\'s PHP version' => 'Votre serveur PHP version', 4 'version 5.3 or later is required' => 'version 5.3 ou ultérieure est requis', 24 'News Outlet' => 'Nouvelles Outlet', 25 'This directory is not writable by PHP processes run by the webserver.' => 'Ce répertoire n'est pas accessible en écriture par processus PHP gérés par le serveur web.', 26 'PHP scripts are not permitted to run the function "chmod".' => 'Scripts PHP ne sont pas autorisées à exécuter la fonction "chmod".', 29 'Built-in error reporter will not work' => 'Construit en erreur journaliste ne fonctionnera pas', 30 'The PHP configuration option "allow_url_fopen" is disabled. CURL will be used for making all HTTP requests during updates.' => 'L'option de configuration "allow_url_fopen" PHP est désactivée. CURL sera utilisé pour la fabrication de toutes les requêtes HTTP au cours de mises à jour.', 31 'This will result in the inability to import and export custom modules.' => 'Cela se traduira par l'impossibilité d'importer et d'exporter des modules personnalisés.', 33 'All other essential requirements were met.' => 'Toutes les autres exigences essentielles sont remplies.', 34 'The version of the PCRE library included in this build of PHP is {thisVer}, but {reqVer} or later is required.' => 'La version de la bibliothèque PCRE inclus dans cette version de PHP est {thisVer} , mais {reqVer} ou ultérieure est nécessaire.', 35 'The "openssl" and "mcrypt" libraries are not available. If any application credentials (i.e. email account passwords) are entered into X2Engine, they will be stored in the database in plain text (without any encryption whatsoever). Thus, if the database is ever compromised, those passwords will be readable by unauthorized parties.' => 'Le "openssl" et "bibliothèques mcrypt" ne sont pas disponibles. Si les informations d'identification de l'application (par exemple, les mots de passe de compte de messagerie) sont entrés dans X2Engine, ils seront stockés dans la base de données en texte clair (sans cryptage que ce soit). Ainsi, si la base de données est compromise, ces mots de passe pourront être lus par des tiers non autorisés.', 65 'The path defined in session.save_path ({ssp}) is not writable.' => 'Le chemin défini dans session.save_path ( {ssp} ) n'est pas modifiable.', 66 'The PHP configuration option "allow_url_fopen" is disabled in addition to the CURL extension missing. This means there is no possible way to make outbound HTTP/HTTPS requests.' => 'L'option de configuration de PHP "allow_url_fopen" est désactivée en plus de l'extension CURL manquant. Cela signifie qu'il n'existe aucun moyen possible de faire sortants requêtes HTTP / HTTPS.', 67 'Software updates will have to be performed using the "offline" method, and Google integration will not work.' => 'Mises à jour logicielles devront être effectuées en utilisant la méthode «hors ligne», et l'intégration de Google ne fonctionne pas.',Console.php https://github.com/necrogami/zf2.git | PHP | 521 lines
1<?php 2/** 181 { 182 $stream = @fopen($resource, 'w'); 183 203 if (!defined('STDOUT')) { 204 $this->_outputStream = fopen('php://stdout', 'w'); 205 } else { 221 if ($width === null || !is_integer($width)) { 222 if (substr(PHP_OS, 0, 3) === 'WIN') { 223 // We have to default to 79 on windows, because the windows 464 case self::FINISH_ACTION_EOL: 465 $this->_outputData(PHP_EOL); 466 break;upload.php https://gitlab.com/plusplusminus/isissoftware | PHP | 245 lines
1<?php 2 7/** 8 * upload.php 9 * 168 // Open temp file 169 $out = @fopen( "{$file_path}.part", $chunk == 0 ? 'wb' : 'ab' ); 170 if ( $out ) { 171 // Read binary input stream and append it to temp file 172 $in = @fopen( $_FILES['file']['tmp_name'], 'rb' ); 173 192 // Open temp file 193 $out = @fopen( "{$file_path}.part", $chunk == 0 ? 'wb' : 'ab' ); 194 if ( $out ) { 195 // Read binary input stream and append it to temp file 196 $in = @fopen( 'php://input', 'rb' ); 197mo.php https://gitlab.com/VTTE/sitios-vtte | PHP | 349 lines
1<?php 2/** 4 * 5 * @version $Id: mo.php 1157 2015-11-20 04:30:11Z dd32 $ 6 * @package pomo 9 10require_once __DIR__ . '/translations.php'; 11require_once __DIR__ . '/streams.php'; 56 function export_to_file( $filename ) { 57 $fh = fopen( $filename, 'wb' ); 58 if ( ! $fh ) { 69 function export() { 70 $tmp_fh = fopen( 'php://temp', 'r+' ); 71 if ( ! $tmp_fh ) { 198 199 // bug in PHP 5.0.2, see https://savannah.nongnu.org/bugs/?func=detailitem&item_id=10565 200 $magic_little = (int) - 1794895138;cake.php https://github.com/adivik2000/nigraha.git | PHP | 511 lines
2<?php 3/* SVN FILE: $Id: cake.php 5318 2007-06-20 09:01:21Z phpnut $ */ 4/** 10 * 11 * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/> 12 * Copyright 2005-2007, Cake Software Foundation, Inc. 20 * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. 21 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 22 * @package cake 148 } 149 define('PHP5', (phpversion() >= 5)); 150 define('DS', DIRECTORY_SEPARATOR); 162 $this->stdout = fopen('php://stdout', 'w'); 163 $this->stderr = fopen('php://stderr', 'w'); 164Cache.php https://github.com/abirmmu/codeigniter-cache.git | PHP | 431 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2 201 // Check if the cache can be opened, if not return FALSE 202 if ( ! $fp = @fopen($filepath, FOPEN_READ)) 203 { 301 { 302 // create non existing dirs, asumes PHP5 303 if ( ! @mkdir($test_path, DIR_WRITE_MODE, TRUE)) return FALSE; 310 // Open the file and log if an error occures 311 if ( ! $fp = @fopen($cache_path, FOPEN_WRITE_CREATE_DESTRUCTIVE)) 312 { 429 430/* End of file Cache.php */ 431/* Location: ./application/libraries/Cache.php */Maildir.php https://gitlab.com/yousafsyed/easternglamor | PHP | 475 lines
1<?php 2/** 26 */ 27#require_once 'Zend/Mail/Storage/Abstract.php'; 28 31 */ 32#require_once 'Zend/Mail/Message/File.php'; 33 36 */ 37#require_once 'Zend/Mail/Storage.php'; 38 124 */ 125 #require_once 'Zend/Mail/Storage/Exception.php'; 126 throw new Zend_Mail_Storage_Exception('id does not exist'); 136 */ 137 #require_once 'Zend/Mail/Storage/Exception.php'; 138 throw new Zend_Mail_Storage_Exception('field does not exist');WebDAVCollaboratorTest.php https://gitlab.com/rsilveira1987/Expresso | PHP | 138 lines
1<?php 2/** 13 */ 14require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . DIRECTORY_SEPARATOR . 'TestHelper.php'; 15 19 */ 20class Addressbook_Convert_Contact_VCard_WebDAVCollaboratorTest extends PHPUnit_Framework_TestCase 21{ 34 { 35 $suite = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV Collaborator Contact Tests'); 36 PHPUnit_TextUI_TestRunner::run($suite); 65 { 66 $vcardStream = fopen(dirname(__FILE__) . '/../../../Import/files/WebDAVCollaborator.vcf', 'r'); 67EMClientTest.php https://gitlab.com/rsilveira1987/Expresso | PHP | 138 lines
1<?php 2/** 13 */ 14require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . DIRECTORY_SEPARATOR . 'TestHelper.php'; 15 18 */ 19class Addressbook_Convert_Contact_VCard_EMClientTest extends PHPUnit_Framework_TestCase 20{ 33 { 34 $suite = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV EMClient Contact Tests'); 35 PHPUnit_TextUI_TestRunner::run($suite); 64 { 65 $vcardStream = fopen(dirname(__FILE__) . '/../../../Import/files/emclient_addressbook.vcf', 'r'); 66FlysystemFileResponse.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 260 lines
1<?php 2 13 * @author Niklas Fiekas <niklas.fiekas@tu-clausthal.de> 14 * @author stealth35 <stealth35-php@live.fr> 15 * @author Igor Wiedler <igor@wiedler.ch> 221 222 $out = fopen('php://output', 'wb'); 223 $file = $this->filesystem->readStream($this->file->getPath());CsvBulkLoader.php https://gitlab.com/djpmedia/silverstripe-framework | PHP | 453 lines
1<?php 2 123 } 124 print $failedMessage . PHP_EOL; 125 } finally { 169 170 $to = fopen($new, 'w+'); 171 $from = fopen($path, 'r'); 195 196 $to = fopen($new, 'w+'); 197