100+ results results for 'php filesize' (1365 ms)
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 60 $data = ''; 61 if (filesize($file) > 0) 62 { 62 { 63 $data =& fread($fp, filesize($file)); 64 } 214 * Reads the specified directory and builds an array containing the filenames, 215 * filesize, dates, and permissions 216 * 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)))imageupload.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 287 lines
1<?php 2 48 $allowedExtensions = empty($allowedExtensions) ? 'jpg,jpeg,png,gif' : $allowedExtensions; 49 $maxFilesizeMb = $modx->getOption('maxFilesizeMb', $sourceProperties, '8'); 50 $maxFiles = $modx->getOption('maxFiles', $sourceProperties, '0'); 68 69 include_once AIU_BASE_PATH . 'includes/fileuploader/fileuploader.class.php'; 70 74 75 // default: &language=`english` &allowedExtensions=`jpg,jpeg,png,gif` &maxFilesizeMb=`8` &uid=`site-specific` &maxFiles=`3` &thumbX=`100` &=`100` &mode=`form` &ajaxId=`0` 76 81 if (!function_exists('includeFile')) { 82 function includeFile($name, $type = 'config', $defaultName = 'default', $fileType = '.inc.php') { 83 $folder = (substr($type, -1) != 'y') ? $type . 's/' : substr($folder, 0, -1) . 'ies/'; 106 107 include_once AIU_BASE_PATH . 'includes/PhpThumbFactory/ThumbLib.inc.php'; 108 // delete uploaded imagesFilesystem.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'); 209 210 global $php_errormsg; 211 $trackErrors = ini_get('track_errors');Filesystem.php https://gitlab.com/LisovyiEvhenii/ismextensions | 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'); 209 210 global $php_errormsg; 211 $trackErrors = ini_get('track_errors');Filesystem.php https://bitbucket.org/ealexandru/jobeet.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');FilesystemTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 240 lines
1<?php 2 120 */ 121 public function testRemoveDirectoryPhp() 122 { 127 $fs = new Filesystem; 128 $this->assertTrue($fs->removeDirectoryPhp($tmp . "/composer_testdir")); 129 $this->assertFalse(file_exists($tmp . "/composer_testdir/level1/level2/hello.txt")); 131 132 public function testFileSize() 133 {Filesystem.php https://gitlab.com/techniconline/kmc | PHP | 426 lines
1<?php namespace Illuminate\Filesystem; 2 207 { 208 return filesize($path); 209 }mail.php https://gitlab.com/2202Programming/navxmxp | 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; 127 128 $content = fread($handle, filesize($attachment)); 129 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);Logger.php https://gitlab.com/hoanghung.dev/phunuvadoisong.com | PHP | 456 lines
1<?php 2/** 2/** 3 * Logger.php 4 * 416 417 // Check filesize 418 $roll = false; 419 if (file_exists($logFile)) { 420 $size = filesize($logFile); 421OAuth.php https://gitlab.com/wuhang2003/core | PHP | 216 lines
1<?php 2 8 * @author Evert Pot (http://www.rooftopsolutions.nl/) 9 * @license http://code.google.com/p/dropbox-php/wiki/License MIT 10 */ 82 */ 83 protected $inFileSize = null; 84 161 $stat = fstat($file); 162 $this->inFileSize = $stat['size']; 163 } else if (is_string($file) && is_readable($file)) { 163 } else if (is_string($file) && is_readable($file)) { 164 $this->inFileSize = filesize($file); 165 $file = fopen($file, 'rb');external_test.php https://bitbucket.org/moodle/moodle.git | PHP | 250 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 34 35require_once($CFG->libdir . '/externallib.php'); 36require_once($CFG->dirroot . '/webservice/tests/helpers.php'); 96 $this->assertEquals($deployedfile['mimetype'], $result['files'][0]['mimetype']); 97 $this->assertEquals($deployedfile['filesize'], $result['files'][0]['filesize']); 98 $this->assertEquals($deployedfile['timemodified'], $result['files'][0]['timemodified']); 121 // Create a non-local URL. 122 $urlnonlocal = 'http://www.google.com/pluginfile.php/644/block_html/content/arithmetic-quiz-1-1.h5p'; 123 $result = external::get_trusted_h5p_file($urlnonlocal, 0, 0, 0, 0); 196 $this->assertEquals($deployedfile['mimetype'], $result['files'][0]['mimetype']); 197 $this->assertEquals($deployedfile['filesize'], $result['files'][0]['filesize']); 198 $this->assertEquals($deployedfile['timemodified'], $result['files'][0]['timemodified']); 244 $this->assertEquals($deployedfile['mimetype'], $result['files'][0]['mimetype']); 245 $this->assertEquals($deployedfile['filesize'], $result['files'][0]['filesize']); 246 $this->assertEquals($deployedfile['timemodified'], $result['files'][0]['timemodified']);extension.cache.sqlite3.php https://gitlab.com/x33n/ampache | PHP | 265 lines
167 $filetime = filemtime($filename); 168 $filesize = filesize($filename); 169 // this will be saved for a quick directory lookup of analized files 190 $stmt->bindValue(':dirname', $dirname, SQLITE3_TEXT); 191 $stmt->bindValue(':filesize', $filesize, SQLITE3_INTEGER); 192 $stmt->bindValue(':filetime', $filetime, SQLITE3_INTEGER); 249 case 'get_id3_data': 250 return "SELECT val FROM $this->table WHERE filename = :filename AND filesize = :filesize AND filetime = :filetime"; 251 break; 252 case 'cache_file': 253 return "INSERT INTO $this->table (filename, dirname, filesize, filetime, analyzetime, val) VALUES (:filename, :dirname, :filesize, :filetime, :atime, :val)"; 254 break; 255 case 'make_table': 256 return "CREATE TABLE IF NOT EXISTS $this->table (filename VARCHAR(255) NOT NULL DEFAULT '', dirname VARCHAR(255) NOT NULL DEFAULT '', filesize INT(11) NOT NULL DEFAULT '0', filetime INT(11) NOT NULL DEFAULT '0', analyzetime INT(11) NOT NULL DEFAULT '0', val text not null, PRIMARY KEY (filename, filesize, filetime))"; 257 break;Tar.php https://bitbucket.org/acidel/buykoala.git | PHP | 372 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 56 * Skip first level parent directory. Example: 57 * use test/fip.php instead test/test/fip.php; 58 * 137 $data = $this->_readFile($file); 138 $data = str_pad($data, floor(((is_dir($file) ? 0 : filesize($file)) + 512 - 1) / 512) * 512, "\0"); 139 } 183 $header['8-gid'] = $long || $infoFile['gid']==0?"\0\0\0\0\0\0\0":sprintf("%07o", $infoFile['gid']); 184 $header['12-size'] = $long?sprintf("%011o", strlen($nameFile)):sprintf("%011o", is_dir($file) ? 0 : filesize($file)); 185 $header['12-mtime'] = $long?'00000000000':sprintf("%011o", $infoFile['mtime']);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');Filesystem.php https://bitbucket.org/babanesma/mysimpleadmin.git | PHP | 363 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Filesystem.php 23964 2011-05-03 14:20:58Z adamlundrigan $ 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');MassSaveAjax.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 263 lines
1<?php 2/*+*********************************************************************************** 179 $filetype = $existingAttachInfo['type']; 180 $filesize = $existingAttachInfo['size']; 181LzmaCompress.c https://gitlab.com/envieidoc/Clover | C | 382 lines
11 which accompanies this distribution. The full text of the license may be found at 12 http://opensource.org/licenses/bsd-license.php 13 99 100static SRes Encode(ISeqOutStream *outStream, ISeqInStream *inStream, UInt64 fileSize) 101{ 102 SRes res; 103 size_t inSize = (size_t)fileSize; 104 Byte *inBuffer = 0; 126 // we allocate 105% of original size + 64KB for output buffer 127 outSize = (size_t)fileSize / 20 * 21 + (1 << 16); 128 outBuffer = (Byte *)MyAlloc(outSize); 136 for (i = 0; i < 8; i++) 137 outBuffer[i + LZMA_PROPS_SIZE] = (Byte)(fileSize >> (8 * i)); 138 }model.php https://gitlab.com/edgarze188/sunrise | PHP | 280 lines
1<?php 2/** 149 } 150 $file_size_kb = (int)(filesize($parent_dir . '/' . $file_name) / 1024); 151 // $file_size_mb = (int)($file_size_kb / 1024); 206 } 207 $file_size_kb = (int)(@filesize($parent_dir . '/' . $file_meta['file']) / 1024); 208 if (!$file_size_kb) continue; 231 232 $size_of_a = filesize($p_dir . '/' . $a); 233 $size_of_b = filesize($p_dir . '/' . $b);index.php https://bitbucket.org/viktorfabry/banditos.git | PHP | 120 lines
1<div id="upload-box"> 2 <h2><?php echo lang('files:upload'); ?><span class="close ui-icon ui-icon-closethick"><?php echo lang('buttons.close'); ?></span></h2> 3 <?php echo form_open_multipart('admin/wysiwyg/upload'); ?> 23 <?php echo form_submit('button_action', lang('buttons.save'), 'class="button"'); ?> 24 <a href="<?php echo current_url(); ?>#" class="btn cancel"><?php echo lang('buttons.cancel'); ?></a> 25 </li> 34 <?php if ( ! $folder->parent_id): ?> 35 <li id="folder-id-<?php echo $folder->id; ?>" class="<?php echo $current_folder && $current_folder->id == $folder->id ? 'current' : ''; ?>"> 36 <?php echo anchor("admin/wysiwyg/image/index/{$folder->id}", $folder->name, 'title="'.$folder->slug.'"'); ?> 93 <tr class="<?php echo alternator('', 'alt'); ?>"> 94 <td class="image"><img class="pyro-image" src="<?php echo base_url($image->location === 'local' ? 'files/thumb/'.$image->id.'/50/50' : 'files/cloud_thumb/'.$image->id); ?>" alt="<?php echo $image->name; ?>" width="50" onclick="javascript:insertImage('<?php echo $image->id."', '".htmlentities($image->name)."', '".$image->location."', '".$image->path; ?>');" /></td> 95 <td class="name-description"> 104 <td class="meta height"><?php echo $image->height; ?></td> 105 <td class="meta size"><?php echo $image->filesize; ?></td> 106 </tr>weixin.php https://gitlab.com/Ltaimao/wecenter | PHP | 430 lines
1<?php 2/* 200 201 case 'upload_invalid_filesize': 202 die("{'error':'文件尺寸过大, 最大允许尺寸为 " . get_setting('upload_size_limit') . " KB'}");example09_forms.php https://gitlab.com/varsha_evonix/intranet | PHP | 204 lines
1<?php 2 6define('_MPDF_PATH','../'); 7include("../mpdf.php"); 8 180 header("Content-Type: text/plain"); 181 header("Content-Length: ". filesize($file)); 182 header("Content-Disposition: attachment; filename='".$file."'");module.graphic.jpg.php https://gitlab.com/gregtyka/wimppy1 | PHP | 344 lines
1<?php 2///////////////////////////////////////////////////////////////// 9// // 10// module.graphic.jpg.php // 11// module for analyzing JPEG Image files // 11// module for analyzing JPEG Image files // 12// dependencies: PHP compiled with --enable-exif (optional) // 13// module.tag.xmp.php (optional) // 34 //list($width, $height, $type) = getid3_lib::GetDataImageSize(fread($this->getid3->fp, $info['filesize']), $imageinfo); 35 list($width, $height, $type) = getimagesize($info['filenamepath'], $imageinfo); // http://www.getid3.org/phpBB3/viewtopic.php?t=1474 36 38 if (isset($imageinfo['APP13'])) { 39 // http://php.net/iptcparse 40 // http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/IPTC.html 67 if (substr($imageinfo['APP1'], 0, 4) == 'Exif') { 68//$info['warning'][] = 'known issue: https://bugs.php.net/bug.php?id=62523'; 69//return false;flexuploader.js https://gitlab.com/LisovyiEvhenii/ismextensions | JavaScript | 372 lines
8 * It is also available through the world-wide-web at this URL: 9 * http://opensource.org/licenses/afl-3.0.php 10 * If you did not receive a copy of the license and are unable to 22 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 23 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 24 */ 152 this.files = event.getData().files; 153 this.checkFileSize(); 154 this.updateFiles(); 299 }, 300 checkFileSize: function() { 301 newFiles = []; 313 alert( 314 this.translate('Maximum allowed file size for upload is')+' '+maxUploadFileSize+".\n"+this.translate('Please check your server PHP settings.') 315 );file.php https://bitbucket.org/eternaware/joomus.git | PHP | 540 lines
1<?php 2/** 321 322 if ($fsize = @ filesize($filename)) 323 { 415 * 416 * @param string $src The name of the php (temporary) uploaded file 417 * @param string $dest The path (including filename) to move the uploaded file toZip.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 484 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 43 * This class is based on a library I found at Zend: 44 * http://www.zend.com/codex.php?id=696&single=1 45 * 182 .pack('V', 0) // crc32 183 .pack('V', 0) // compressed filesize 184 .pack('V', 0) // uncompressed filesize 189 .pack('V', 0) // crc32 190 .pack('V', 0) // compressed filesize 191 .pack('V', 0); // uncompressed filesize 197 .pack('V',0) // crc32 198 .pack('V',0) // compressed filesize 199 .pack('V',0) // uncompressed filesizeinterface.php https://bitbucket.org/mrmustarde/manhattan-beach.git | PHP | 293 lines
71 function hmbkp_safe_mode_warning() { 72 echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress has detected a problem.', 'hmbkp' ) . '</strong> ' . sprintf( __( '%1$s is running in %2$s, please contact your host and ask them to disable it. BackUpWordPress may not work correctly whilst %3$s is on.', 'hmbkp' ), '<code>PHP</code>', sprintf( '<a href="%1$s">%2$s</a>', __( 'http://php.net/manual/en/features.safe-mode.php', 'hmbkp' ), __( 'Safe Mode', 'hmbkp' ) ), '<code>' . __( 'Safe Mode', 'hmbkp' ) . '</code>' ) . '</p></div>'; 73 } 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> | 256Image.php https://gitlab.com/geeta7/drupal | PHP | 227 lines
1<?php 2 40 */ 41 protected $fileSize; 42 58 if ($this->getToolkit()->parseFile()) { 59 $this->fileSize = filesize($this->source); 60 } 87 */ 88 public function getFileSize() { 89 return $this->fileSize; 132 clearstatcache(TRUE, $destination); 133 $this->fileSize = filesize($destination); 134 $this->source = $destination; 212 * @param int $mode 213 * Integer value for the permissions. Consult PHP chmod() documentation for 214 * more information.theme-editor.php https://gitlab.com/Gashler/dp | PHP | 246 lines
170?> 171 <h3><?php _e('Templates'); ?></h3> 172 <?php if ( $theme->parent() ) : ?> 172 <?php if ( $theme->parent() ) : ?> 173 <p class="howto"><?php printf( __( 'This child theme inherits templates from a parent theme, %s.' ), '<a href="' . self_admin_url('theme-editor.php?theme=' . urlencode( $theme->get_template() ) ) . '">' . $theme->parent()->display('Name') . '</a>' ); ?></p> 174 <?php endif; ?> 189?> 190 <li><a href="theme-editor.php?file=<?php echo urlencode( $filename ) ?>&theme=<?php echo urlencode( $stylesheet ) ?>"><?php echo $file_description; ?></a></li> 191<?php 211 <?php echo $docs_select; ?> 212 <input type="button" class="button" value=" <?php esc_attr_e( 'Look Up' ); ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" /> 213 </div> 217 <?php if ( is_child_theme() && $theme->get_stylesheet() == get_template() ) : ?> 218 <p><?php if ( is_writeable( $file ) ) { ?><strong><?php _e( 'Caution:' ); ?></strong><?php } ?> 219 <?php _e( 'This is a file in your current parent theme.' ); ?></p>elfinder.fr.js https://github.com/codemotion/cogear.git | JavaScript | 192 lines
25 'Select at least one file to upload' : 'Sélectionner au moins un fichier a envoyer', 26 'File exceeds the maximum allowed filesize' : 'Le fichier excède la taille maximale autorisée', 27 'Data exceeds the maximum allowed size' : 'Les données excèdent la taille maximale autorisée', 127 'Javascript application' : 'Application Javascript', 128 'PHP source' : 'Document PHP', 129 'HTML document' : 'Document HTML', 177 'Donate to support project development' : 'Donner et encourager le développement du projet', 178 'Javascripts/PHP programming: Dmitry (dio) Levashov, dio@std42.ru' : 'Javascripts/PHP programming: Dmitry (dio) Levashov, dio@std42.ru', 179 'Python programming, techsupport: Troex Nevelin, troex@fury.scancode.ru' : 'Python programming, techsupport: Troex Nevelin, troex@fury.scancode.ru',theme-editor.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 256 lines
79 } else { 80 $location = "theme-editor.php?file=$file&theme=$theme&scrollto=$scrollto"; 81 } 162 <ul> 163<?php 164 $template_mapping = array(); 184 ?> 185 <li><a href="theme-editor.php?file=<?php echo "$template_file"; ?>&theme=<?php echo urlencode($theme) ?>&dir=theme"><?php echo $filedesc ?></a></li> 186<?php endwhile; ?> 202 ?> 203 <li><a href="theme-editor.php?file=<?php echo "$style_file"; ?>&theme=<?php echo urlencode($theme) ?>&dir=style"><?php echo $filedesc ?></a></li> 204<?php endwhile; ?> 220 <?php echo $docs_select; ?> 221 <input type="button" class="button" value=" <?php esc_attr_e( 'Lookup' ); ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" /> 222 </div>frmresourceslist.html https://github.com/pteyssandier/Silverpeas-Core.git | HTML | 382 lines
5 * Licensed under the terms of the GNU Lesser General Public License: 6 * http://www.opensource.org/licenses/lgpl-license.php 7 * 80 81oListManager.AddFile = function ( fileName, fileUrl, fileSize, imageEditable ) 82{ 105 // Build the link to view the file. 106 var sLink = '<a href="#" title="Size: ' + fileSize + 'kb" onclick="OpenFile(\'' + escape(fileUrl) + '\');return false;">' ; 107 var dLink = '<a href="#" title="Delete file" onclick="DeleteFile(\'' + escape(fileName) + '\');return false;">' ; 261 var sFileName = oNodes[i].attributes.getNamedItem('name').value ; 262 var sFileSize = oNodes[i].attributes.getNamedItem('size').value ; 263 var iEditable = oNodes[i].attributes.getNamedItem('editable') ; 269 270 oListManager.AddFile( sFileName, sCurrentFolderUrl + sFileName, sFileSize, iEditable ) ; 271 }Size.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 365 lines
1<?php 2/** 23 */ 24 const TOO_BIG = 'fileSizeTooBig'; 25 const TOO_SMALL = 'fileSizeTooSmall'; 25 const TOO_SMALL = 'fileSizeTooSmall'; 26 const NOT_FOUND = 'fileSizeNotFound'; 27 257 ErrorHandler::start(); 258 $size = sprintf("%u", filesize($file)); 259 ErrorHandler::stop();utils.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 313 lines
1<?php 2 44 if(image_check_memory_usage($imgfile,$newwidth,$newheight)){ 45 require_once('php_image_magician.php'); 46 $magicianObj = new imageLib($imgfile); 55 if(image_check_memory_usage($imgfile,$newwidth,$newheight)){ 56 require_once('php_image_magician.php'); 57 $magicianObj = new imageLib($imgfile); 88 else { 89 $size = filesize($currentFile); 90 $total_size += $size;sitemaps.php https://github.com/chemicaloliver/codeigniter-sitemaps.git | PHP | 453 lines
1<?php 2 119 120 //ignore all files that don't end .php 121 if ($ext != 'php' || in_array($class, $this->ignore)) continue; 206 207 if ($this->CI->config->item('sitemaps_filesize_error') && filesize($file_name) > 1024 * 1024 * 10) 208 { 297 298 if ($this->CI->config->item('sitemaps_filesize_error') && filesize($file_name) > 1024 * 1024 * 10) 299 {Jail.php https://gitlab.com/wuhang2003/core | PHP | 489 lines
92 /** 93 * see http://php.net/manual/en/function.is_dir.php 94 * 133 /** 134 * see http://php.net/manual/en/function.filesize.php 135 * The result for filesize when called on a folder is required to be 0 256 /** 257 * see http://php.net/manual/en/function.rename.php 258 * 312 /** 313 * see http://php.net/manual/en/function.free_space.php 314 * 332 /** 333 * see http://php.net/manual/en/function.touch.php 334 * If the backend does not support the operation, false should be returnedd936d632ec23c697576ecc385563ecddbef3c795.file.ajax.tpl.php https://gitlab.com/nghiep5890/prestashop | PHP | 263 lines
38[]"<?php if (isset($_smarty_tpl->tpl_vars['url']->value)) {?> data-url="<?php echo $_smarty_tpl->tpl_vars['url']->value;?> 39"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['multiple']->value)&&$_smarty_tpl->tpl_vars['multiple']->value) {?> multiple="multiple"<?php }?> style="width:0px;height:0px;" /> 40 <button class="btn btn-default" data-style="expand-right" data-size="s" type="button" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?> 41-add-button"> 42 <i class="icon-folder-open"></i> <?php if (isset($_smarty_tpl->tpl_vars['multiple']->value)&&$_smarty_tpl->tpl_vars['multiple']->value) {?><?php echo smartyTranslate(array('s'=>'Add files...'),$_smarty_tpl);?> 43<?php } else { ?><?php echo smartyTranslate(array('s'=>'Add file...'),$_smarty_tpl);?> 53 <span class="ladda-label"><i class="icon-check"></i> <?php if (isset($_smarty_tpl->tpl_vars['multiple']->value)&&$_smarty_tpl->tpl_vars['multiple']->value) {?><?php echo smartyTranslate(array('s'=>'Upload files'),$_smarty_tpl);?> 54<?php } else { ?><?php echo smartyTranslate(array('s'=>'Upload file'),$_smarty_tpl);?> 55<?php }?></span> 107 singleFileUploads: true, 108 maxFileSize: <?php echo $_smarty_tpl->tpl_vars['post_max_size']->value;?> 109, 123 if (data.result) { 124 if (typeof data.result.<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?> 125 !== 'undefined') {tlAttachment.class.php https://github.com/viglesiasce/testlink.git | PHP | 342 lines
1<?php 2/** 8 * @copyright 2007-2009, TestLink community 9 * @version CVS: $Id: tlAttachment.class.php,v 1.2 2009/12/28 08:53:37 franciscom Exp $ 10 * @link http://www.teamst.org/index.php 13/** parenthal class */ 14require_once( 'object.class.php' ); 15 54 /** 55 * @var int $fSize the filesize (uncompressed) 56 */ 154 * @param string $fType the mime-type of the file 155 * @param int $fSize the filesize (uncompressed) 156 * @param string $title the title used for the attachmentbackupdb.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 } 78 header("Content-type: ".$ext); 79 header("Content-length: ".filesize(MYBB_ADMIN_DIR.'backups/'.$file)); 80 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 }2-1-migration-guide.rst https://gitlab.com/albertkeba/docs | ReStructuredText | 363 lines
69 CakeSession no longer sets the P3P header, as this is the responsibility of your application. 70 More info see ticket `#2515 <http://cakephp.lighthouseapp.com/projects/42648/tickets/2515-cakephp-20-session-p3p-header-doesnt-work-in-an-iframe>`_ in lighthouse 71 232 233- :php:meth:`TextHelper::autoLink()`, :php:meth:`TextHelper::autoLinkUrls()`, 234 :php:meth:`TextHelper::autoLinkEmails()` now HTML escape their input by 250- :term:`plugin syntax` support has been added for 251 :php:meth:`HtmlHelper::script()`, :php:meth:`HtmlHelper::css()`, :php:meth:`HtmlHelper::image()`. 252 You can now easily link to plugin assets using ``Plugin.asset``. 277 278Two new view classes have been added to CakePHP. A new :php:class:`JsonView` 279and :php:class:`XmlView` allow you to easily generate XML and JSON views. You 311Two new callbacks have been added to Helpers. 312:php:meth:`Helper::beforeRenderFile()` and :php:meth:`Helper::afterRenderFile()` 313these new callbacks are fired before/after every view fragment is rendered.Filesystem.php https://github.com/DragonBe/zfpro.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');admin.php https://github.com/uitto/pyrocms.git | PHP | 422 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 170 'mimetype' => $img['upload_data']['file_type'], 171 'filesize' => $img['upload_data']['file_size'], 172 'width' => (int) $img['upload_data']['image_width'], 285 'mimetype' => $img['upload_data']['file_type'], 286 'filesize' => $img['upload_data']['file_size'], 287 'width' => (int) $img['upload_data']['image_width'], 420 421/* End of file admin.php */ 422/* Location: ./system/pyrocms/modules/files/controllers/admin.php */attachments.php https://github.com/Lucky65/phpBB-Portal-XL-5.0-italian.git | PHP | 174 lines
1<?php 2/** 7* @version $Id$ 8* @copyright (c) 2005 phpBB Group 9* @license http://opensource.org/licenses/gpl-license.php GNU Public License 15*/ 16if (!defined('IN_PHPBB')) 17{ 40 'ACP_EXTENSION_GROUPS_EXPLAIN' => 'Here you can add, delete, modify or disable your extension groups. Further options include the assignment of a special category to them, changing the download mechanism and defining an upload icon which will be displayed in front of the attachment which belongs to the group.', 41 'ACP_MANAGE_EXTENSIONS_EXPLAIN' => 'Here you can manage your allowed extensions. To activate your extensions, please refer to the extension groups management panel. We strongly recommend not to allow scripting extensions (such as <code>php</code>, <code>php3</code>, <code>php4</code>, <code>phtml</code>, <code>pl</code>, <code>cgi</code>, <code>py</code>, <code>rb</code>, <code>asp</code>, <code>aspx</code>, and so forth…).', 42 'ACP_ORPHAN_ATTACHMENTS_EXPLAIN' => 'Here you are able to see orphaned files. This happens mostly if users are attaching files but not submitting the post. You are able to delete the files or attach them to existing posts. Attaching to posts requires a valid post ID, you have to determine this ID by yourself. This will assign the already uploaded attachment to the post you entered.', 58 'ATTACH_ID' => 'ID', 59 'ATTACH_MAX_FILESIZE' => 'Maximum file size', 60 'ATTACH_MAX_FILESIZE_EXPLAIN' => 'Maximum size of each file, with 0 being unlimited.', 60 'ATTACH_MAX_FILESIZE_EXPLAIN' => 'Maximum size of each file, with 0 being unlimited.', 61 'ATTACH_MAX_PM_FILESIZE' => 'Maximum file size messaging', 62 'ATTACH_MAX_PM_FILESIZE_EXPLAIN' => 'Maximum size of each file, with 0 being unlimited, attached to a private message.',Ftp.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 373 lines
1<?php 2 11 12require_once W3TC_LIB_W3_DIR . '/Cdn/Base.php'; 13 25 /** 26 * PHP5 Constructor 27 * 44 /** 45 * PHP4 Constructor 46 * 195 if (!$force_rewrite) { 196 $size = @filesize($local_path); 197 $ftp_size = @ftp_size($this->_ftp, $remote_file);de_DE.js https://gitlab.com/wuhang2003/core | JavaScript | 123 lines
10 "There is no error, the file uploaded with success" : "Es ist kein Fehler aufgetreten. Die Datei wurde erfolgreich hochgeladen.", 11 "The uploaded file exceeds the upload_max_filesize directive in php.ini: " : "Die hochgeladene Datei überschreitet die upload_max_filesize-Vorgabe in php.ini", 12 "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" : "Die Datei ist größer, als die MAX_FILE_SIZE-Vorgabe erlaubt, die im HTML-Formular spezifiziert ist", 104 "Save" : "Speichern", 105 "With PHP-FPM it might take 5 minutes for changes to be applied." : "Bei PHP-FPM kann es 5 Minuten dauern, bis Änderungen angewendet sind.", 106 "Missing permissions to edit from here." : "Fehlende Berechtigungen um von hier aus zu bearbeiten.",Filesystem.php https://gitlab.com/RonLab1987/YupePlusClear | PHP | 354 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Filesystem.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 23/** Zend_Search_Lucene_Storage_Directory */ 24require_once 'Zend/Search/Lucene/Storage/Directory.php'; 25 114 if (file_exists($path)) { 115 require_once 'Zend/Search/Lucene/Exception.php'; 116 throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory'); 118 if (!self::mkdirs($path)) { 119 require_once 'Zend/Search/Lucene/Exception.php'; 120 throw new Zend_Search_Lucene_Exception("Can't create directory '$path'."); 178 unset($this->_fileHandlers[$filename]); 179 require_once 'Zend/Search/Lucene/Storage/File/Filesystem.php'; 180 $this->_fileHandlers[$filename] = new Zend_Search_Lucene_Storage_File_Filesystem($this->_dirPath . '/' . $filename, 'w+b');webcontent_.php https://gitlab.com/wildanoo/E-procurement | PHP | 387 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2 103 header('Pragma: public'); 104 header('Content-Length: ' . filesize($file)); 105 readfile($file); 385 386/* End of file auth.php */ 387/* Location: ./application/controllers/auth.php */class-comment-image-reloaded.php https://gitlab.com/wp-puzzle/comment-images-reloaded | PHP | 398 lines
117 //CIR VARIOUS FUNCTIONS 118 require_once (plugin_dir_path(__FILE__).'functions/cir-functions.php'); 119 $functions = new CIR_Functions(); 206 207 private function set_limit_filesize(){ 208 // set maximum allowed file size get php.ini settings / CIR option / default 5MB 208 // set maximum allowed file size get php.ini settings / CIR option / default 5MB 209 $phpini_limit = self::getMaxFilesize(); // in bytes 210 $opt = ( isset(self::$options['max_filesize']) ) ? self::$options['max_filesize'] : 5; // in MBytes 349 // 350 // get max filesize (in bytes) allowed in php.ini 351 // 374 /* ==================================================================================== */ 375 // filesize & php.ini 376 /* ==================================================================================== */FieldInstancePerFormDisplayTest.php https://gitlab.com/reasonat/test8 | PHP | 184 lines
1<?php 2 95 'bundle' => 'user', 96 'data' => 'a:6:{s:5:"label";s:4:"File";s:6:"widget";a:5:{s:6:"weight";s:1:"8";s:4:"type";s:12:"file_generic";s:6:"module";s:4:"file";s:6:"active";i:1;s:8:"settings";a:1:{s:18:"progress_indicator";s:8:"throbber";}}s:8:"settings";a:5:{s:14:"file_directory";s:0:"";s:15:"file_extensions";s:3:"txt";s:12:"max_filesize";s:0:"";s:17:"description_field";i:0;s:18:"user_register_form";i:0;}s:7:"display";a:1:{s:7:"default";a:5:{s:5:"label";s:5:"above";s:4:"type";s:12:"file_default";s:8:"settings";a:0:{}s:6:"module";s:4:"file";s:6:"weight";i:0;}}s:8:"required";i:0;s:11:"description";s:0:"";}', 97 'deleted' => '0',BinaryFileResponse.php https://gitlab.com/jjpa2018/dashboard | PHP | 363 lines
1<?php 2 20 * @author Niklas Fiekas <niklas.fiekas@tu-clausthal.de> 21 * @author stealth35 <stealth35-php@live.fr> 22 * @author Igor Wiedler <igor@wiedler.ch> 204 205 if (false === $fileSize = $this->file->getSize()) { 206 return $this; 207 } 208 $this->headers->set('Content-Length', $fileSize); 209 249 250 $end = ('' === $end) ? $fileSize - 1 : (int) $end; 251 252 if ('' === $start) { 253 $start = $fileSize - $end; 254 $end = $fileSize - 1;SCP.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 360 lines
1<?php 2 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 *default.php https://github.com/wiktorm/projekt-awr.git | PHP | 213 lines
1<?php 2defined('_JEXEC') or die('Restricted access'); 9 if ($this->tmpl['display_up_icon'] == 1) { 10 //echo '<div class="pdtop"><a title="'.JText::_('Category').'" href="'. JRoute::_('index.php?option=com_phocadownload&view=category&id='.$this->category[0]->id.':'.$this->category[0]->alias. $this->tmpl['limitstarturl'] . '&Itemid='. JRequest::getVar('Itemid', 1, 'get', 'int')).'" >'.JHTML::_('image', 'components/com_phocadownload/assets/images/up.png', JText::_('Up')). '</a></div>'; 11 74 $details .= PhocaDownloadHelper::getTitleFromFilenameWithExt( $valueDoc->filename ); 75 //if ($fileSize !='') { 76 // $details .= ' <small style="color:#ccc">('.$fileSize.')</small>'; 98 99 // FILESIZE 100 if ($valueDoc->filename !='') { 103 { 104 $fileSize = PhocaDownloadHelper::getFileSizeReadable(filesize($absFile)); 105 } else { 105 } else { 106 $fileSize = ''; 107 }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 */ 244 if($offset) fseek($fh, $offset); 245 if ($fsize = @ filesize($filename)) { 246 if($amount && $fsize > $amount) { 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 tograminfo.php https://github.com/Oreolek/Togataltu.git | PHP | 338 lines
88 89abstract class phpMorphy_GramInfo implements phpMorphy_GramInfo_Interace { 90 const HEADER_SIZE = 128; 208 209class phpMorphy_GramInfo_Decorator implements phpMorphy_GramInfo_Interace { 210 protected $info; 250 251class phpMorphy_GramInfo_Proxy_WithHeader extends phpMorphy_GramInfo_Proxy { 252 protected 291 292class phpMorphy_GramInfo_RuntimeCaching extends phpMorphy_GramInfo_Decorator { 293 protected 307 308class phpMorphy_GramInfo_AncodeCache extends phpMorphy_GramInfo_Decorator { 309 publicCache_File.php https://gitlab.com/karlen/ayo_wp | PHP | 455 lines
1<?php 2namespace W3TC; 117 @fputs( $fp, pack( 'L', $expires_at ) ); 118 @fputs( $fp, '<?php exit; ?>' ); 119 @fputs( $fp, @serialize( $var ) ); 315 316 $path = sprintf( '%s/%s/%s.php', substr( $hash, 0, 3 ), substr( $hash, 3, 3 ), $hash ); 317 347 } else { 348 $size['bytes'] += @filesize( $full_path ); 349 409 @fputs( $fp, pack( 'L', $expires_at ) ); 410 @fputs( $fp, '<?php exit; ?>' ); 411 @fputs( $fp, (int)$value );AdminAttachmentsController.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 256 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 22* @copyright 2007-2016 PrestaShop SA 23* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 125 if (file_exists(_PS_DOWNLOAD_DIR_.$obj->file)) { 126 $size = round(filesize(_PS_DOWNLOAD_DIR_.$obj->file) / 1024); 127 } 235 } elseif (array_key_exists('file', $_FILES) && (int)$_FILES['file']['error'] === 1) { 236 $max_upload = (int)ini_get('upload_max_filesize'); 237 $max_post = (int)ini_get('post_max_size');flexuploader.js https://github.com/gryzz/crystal_magento.git | JavaScript | 372 lines
8 * It is also available through the world-wide-web at this URL: 9 * http://opensource.org/licenses/afl-3.0.php 10 * If you did not receive a copy of the license and are unable to 22 * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com) 23 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 24 */ 152 this.files = event.getData().files; 153 this.checkFileSize(); 154 this.updateFiles(); 299 }, 300 checkFileSize: function() { 301 newFiles = []; 313 alert( 314 this.translate('Maximum allowed file size for upload is')+' '+maxUploadFileSize+".\n"+this.translate('Please check your server PHP settings.') 315 );_utilities.class.php https://github.com/tinypay/KO3-Fusion.git | PHP | 475 lines
1<?php 2/** 85 * Examples: 86 * example::utilities/to_query_string.phpt: 87 */ 106 * Examples: 107 * example::utilities/to_signable_string.phpt: 108 */ 153 * Examples: 154 * example::utilities/query_to_array.phpt: 155 * example::utilities/query_to_array2.phpt: 291 * example::utilities/try_these4.phpt: 292 * example::utilities/try_these5.phpt: 293 */ 354 * Author: 355 * http://us2.php.net/manual/en/function.json-encode.php#82904 356 *recorded.php https://github.com/freedenizen/mythweb.git | PHP | 233 lines
48 <td><select name="recgroup"> 49 <option value=""><?php echo t('All groups') ?></option><?php 50 foreach($Groups as $recgroup => $count) { 97 <th class="x-length"><?php echo get_sort_link('length', t('Length')) ?></td> 98 <th class="x-filesize"><?php echo get_sort_link('file_size', t('File Size')) ?></td> 99</tr><?php 160 <td class="x-length"><?php echo nice_length($show->length) ?></td> 161 <td class="x-filesize"><?php echo nice_filesize($show->filesize) ?></td> 162 <td class="x-commands" rowspan="2"><?php 167 } 168 ?><a href="<?php echo root_url ?>tv/recorded?delete=yes&chanid=<?php echo $show->chanid ?>&starttime=<?php echo $show->recstartts ?>" 169 title="<?php echo html_entities(t('Delete $1', preg_replace('/: $/', '', $show->title.': '.$show->subtitle))) ?>" 170 ><?php echo t('Delete') ?></a> 171 <a href="<?php echo root_url ?>tv/recorded?delete=yes&chanid=<?php echo $show->chanid ?>&starttime=<?php echo $show->recstartts ?>&forget_old=yes" 172 title="<?php echo html_entities(t('Delete and rerecord $1', preg_replace('/: $/', '', $show->title.': '.$show->subtitle))) ?>"PhotoMenu.cs https://github.com/AnthonyNystrom/GenXSource.git | C# | 293 lines
80 81 string fileSize = Utility.GetFileSize(FileName); 82 87 string[] fn = FileName.Split('\\'); 88 Program.Title.Text = "File: " + fn[fn.Length - 1] + " Resolution: " + Program.Photo.Width.ToString() + " x " + Program.Photo.Height.ToString() + " Size: " + fileSize; 89 Program.FileName = FileName; 281 this.Hide(); 282 System.Diagnostics.Process.Start("http://www.genetibase.com/nugenimageworks.php"); 283 this.Close();helper.php https://gitlab.com/wuhang2003/core | PHP | 297 lines
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 { 57 */ 58 function testComputerFileSize($expected, $input) { 59 $result = OC_Helper::computerFileSize($input);externallib.php https://github.com/danmarsden/moodle.git | PHP | 281 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require_once("$CFG->libdir/externallib.php"); 30 141 } else { 142 $versionpath = core_component::get_component_directory($function->component).'/version.php'; 143 if (is_readable($versionpath)) { 143 if (is_readable($versionpath)) { 144 // We store the component version once retrieved (so we don't load twice the version.php). 145 if (!isset($componentversions[$function->component])) { 153 } else { 154 // Function component should always have a version.php, 155 // otherwise the function should have been described with component => 'moodle'. 190 if (!has_capability('moodle/user:ignoreuserquota', $context)) { 191 $siteinfo['userquota'] = (int) $CFG->userquota; // Cast to int to ensure value is not higher than PHP_INT_MAX. 192 }Links.php https://bitbucket.org/acidel/buykoala.git | PHP | 305 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 190 'name' => $name, 191 'size' => filesize($file), 192 'status' => 'old' 202 'name' => Mage::helper('downloadable/file')->getFileFromPathFile($item->getSampleFile()), 203 'size' => filesize($sampleFile), 204 'status' => 'old'file.php https://github.com/michaelmcandrew/vaw.git | PHP | 358 lines
11 * http://www.php.net/license/3_01.txt If you did not receive a copy of 12 * the PHP License and are unable to obtain it through the web, please 13 * send a note to license@php.net so we can mail you a copy immediately. 20 * @copyright 2001-2009 The PHP Group 21 * @license http://www.php.net/license/3_01.txt PHP License 3.01 22 * @version CVS: $Id: file.php,v 1.25 2009/04/04 21:34:02 avb Exp $ 22 * @version CVS: $Id: file.php,v 1.25 2009/04/04 21:34:02 avb Exp $ 23 * @link http://pear.php.net/package/HTML_QuickForm 24 */ 28 */ 29require_once 'HTML/QuickForm/input.php'; 30 33 HTML_QuickForm::registerRule('uploadedfile', 'callback', '_ruleIsUploadedFile', 'HTML_QuickForm_file'); 34 HTML_QuickForm::registerRule('maxfilesize', 'callback', '_ruleCheckMaxFileSize', 'HTML_QuickForm_file'); 35 HTML_QuickForm::registerRule('mimetype', 'callback', '_ruleCheckMimeType', 'HTML_QuickForm_file');dialog.php https://github.com/galitush2005/RTL-BIDI-Hebrew-Moodle-Plugins.git | PHP | 273 lines
1<?php // $Id: insert_table.php,v 1.4 2007/01/27 23:23:44 skodak Exp $ 2 require_once("../../../../../config.php"); 26 $strdescname = "<a href=\"$CFG->wwwroot/$fmdir/view.php?id={$id}&groupid=$groupid&rootdir=$rootdir&tsort=sortdesc\">".get_string('descname','block_file_manager')."</a>"; 27 $strfilesizename = "<a href=\"$CFG->wwwroot/$fmdir/view.php?id={$id}&groupid=$groupid&rootdir=$rootdir&tsort=sortsize\">".get_string('filesizename','block_file_manager')."</a>"; 28 $strdatename = "<a href=\"$CFG->wwwroot/$fmdir/view.php?id={$id}&groupid=$groupid&rootdir=$rootdir&tsort=sortdate\">".get_string('datename','block_file_manager')."</a>"; 88 } 89 $name = "<a href=\"{$CFG->wwwroot}/".fm_get_root_dir()."/view.php?id={$id}&groupid={$groupid}&rootdir={$folder->id}{$moveurl}\"><img border=\"0\" src=\"$CFG->wwwroot/blocks/file_manager/pix/folder.gif\" alt=\"".get_string('msgfolder','block_file_manager',format_text($folder->name,FORMAT_PLAIN))."\" />". format_text($folder->name,FORMAT_PLAIN)."</a>"; 90 $catname = get_record('fmanager_categories', 'id', $folder->category); 104 }else{ 105 $table->data[] = array("", $name, $catname, $filesize, $date); 106 } 222 document.getElementById("f_border").value = parseInt(param["f_border"] || 0); 223 window.ipreview.location.replace('preview.php?id='+ <?php print($course->id);?> +'&imageurl='+ param.f_url); 224 } 246 //alert(inputs[i].value); 247 param[i] = '<a href="<?php echo $CFG->wwwroot; ?>/blocks/file_manager/file.php?cid=<?php echo $USER->id; ?>&groupid=0&fileid='+inputs[i].value+'">'+inputs[i].name+'</a>'; 248 };SCP.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 361 lines
1<?php 2 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 *list.php https://gitlab.com/Red54/core | PHP | 117 lines
21 <div id="upload" class="button" 22 title="<?php isset($_['uploadMaxHumanFilesize']) ? p($l->t('Upload (max. %s)', array($_['uploadMaxHumanFilesize']))) : '' ?>"> 23 <input type="hidden" id="max_upload" name="MAX_FILE_SIZE" value="<?php isset($_['uploadMaxFilesize']) ? p($_['uploadMaxFilesize']) : '' ?>"> 30 <input type="hidden" class="max_human_file_size" 31 value="(max <?php isset($_['uploadMaxHumanFilesize']) ? p($_['uploadMaxHumanFilesize']) : ''; ?>)"> 32 <input type="file" id="file_upload_start" name='files[]' 32 <input type="file" id="file_upload_start" name='files[]' 33 data-url="<?php print_unescaped(OCP\Util::linkTo('files', 'ajax/upload.php')); ?>" /> 34 <label for="file_upload_start" class="svg icon-upload"> 34 <label for="file_upload_start" class="svg icon-upload"> 35 <span class="hidden-visually"><?php p($l->t('Upload'))?></span> 36 </label> 55 <div class="icon-folder"></div> 56 <h2><?php p($l->t('No files in here')); ?></h2> 57 <p class="uploadmessage hidden"><?php p($l->t('Upload some content or sync with your devices!')); ?></p>tool-file-editor.php https://gitlab.com/hop23typhu/list-theme | PHP | 134 lines
1<?php 2/** 69 70$action_url = network_admin_url( 'admin.php?page=wpseo_tools&tool=file-editor' ); // auto-falls back on admin_url for non-multisite 71 89 $content = ''; 90 if ( filesize( $robots_file ) > 0 ) { 91 $content = fread( $f, filesize( $robots_file ) ); 113 $contentht = ''; 114 if ( filesize( $ht_access_file ) > 0 ) { 115 $contentht = fread( $f, filesize( $ht_access_file ) );upload.php https://gitlab.com/plusplusminus/aevitas | PHP | 245 lines
1<?php 2 7/** 8 * upload.php 9 * 111 112 $max_upload_size_in_bytes = $field->maxFileSize > 0 ? $field->maxFileSize * 1048576 : wp_max_upload_size(); 113 $max_upload_size_in_mb = $max_upload_size_in_bytes / 1048576; 195 // Read binary input stream and append it to temp file 196 $in = @fopen( 'php://input', 'rb' ); 197downloadalbum.php https://github.com/zcopley/gallery3-contrib.git | PHP | 300 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2/** 56 foreach($files as $f_name => $f_path) { 57 $zipsize += 76 + 2*strlen($f_name) + filesize($f_path); 58 } 70 $f_namelen = strlen($f_name); 71 $f_size = filesize($f_path); 72 $f_mtime = $this->unix2dostime(filemtime($f_path)); 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 */SamplesTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 182 lines
1<?php 2/** 7 8class SamplesTest extends \PHPUnit_Framework_TestCase 9{ 60 'ensureFileInFilesystem', 61 'getFileSize' 62 ], 171 ->will($this->returnValue(true)); 172 $this->fileHelper->expects($this->any())->method('getFileSize') 173 ->will($this->returnValue('1.1'));GeneratedObjectLobTest.php https://gitlab.com/Isaki/le331.fr | PHP | 293 lines
1<?php 2 10 11require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/BookstoreEmptyTestBase.php'; 12 100 101 $this->assertEquals(filesize($blob_path), $size, "Expected filesize to match stat(blobrsc)"); 102 $this->assertEquals(filesize($clob_path), strlen($txt), "Expected filesize to match clob strlen"); 213 // 4) Test isModified() behavior 214 $fp = fopen("php://temp", "r+"); 215 fwrite($fp, file_get_contents($blob2_path)); 270 271 $stream = fopen("php://memory", 'w'); 272 fwrite($stream, file_get_contents($blob2_path)); 279 280 $stream2 = fopen("php://memory", 'w+'); 281 fwrite($stream2, file_get_contents($blob_path));FileFieldTestBase.php https://gitlab.com/geeta7/drupal | PHP | 305 lines
1<?php 2 48 49 // Add a filesize property to files as would be read by 50 // \Drupal\file\Entity\File::load(). 50 // \Drupal\file\Entity\File::load(). 51 $file->filesize = filesize($file->uri); 52stats.php https://github.com/bcmoney/OpenRecommender.git | PHP | 214 lines
73<div align="center" class="titlediv"> 74 <p> Tera-WURFL <?php echo $tw->release_version; ?> Administration<br /> 75 <span class="version">Loaded WURFL: <?php echo $tw->getSetting(TeraWurfl::$SETTING_WURFL_VERSION); ?></span></p> 78 <h3><br /> 79 <a href="index.php"><< Back to main page </a></h3> 80 <table width="800" border="0" cellspacing="0" cellpadding="0"> 122?> 123<tr><td class="<?php echo $class;?>">UserAgentMatcher: <span class="setting"><?php echo $matcher['name']?></span><br /> 124Rows: <span class="setting"><?php echo $matcher['stats']['rows']?></span><br /> 130 </tr> 131<?php } ?> 132 </table> 187 <?php echo WurflSupport::showBool(TeraWurflConfig::$OVERRIDE_MEMORY_LIMIT)?> 188 </span>, override PHP's default memory limit<br /> 189 MEMORY_LIMIT <span class="setting">runtime_option.h https://github.com/tmjnaid/hiphop-php.git | C Header | 318 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 +----------------------------------------------------------------------+ 23 24namespace HPHP { 25///////////////////////////////////////////////////////////////////////////////init.php https://gitlab.com/mattswann/launch-housing | PHP | 368 lines
24 'url' => '', // optional url for migration that corresponds to this ftp/path. 25 'disable_file_management' => '0', // When 1, _manage.php will not load which renders remote file management DISABLED. 26 'disabled' => '0', // When 1, disable this destination. 82 } else { 83 pb_backupbuddy::status( 'details', 'Your web server doesnt support FTPS in PHP.', 'error' ); 84 return false; 95 } else { 96 pb_backupbuddy::status( 'details', 'Your web server doesnt support FTP in PHP.', 'error' ); 97 return false; 140 if ( ! is_readable( $file ) ) { 141 pb_backupbuddy::status( 'error', 'Error #8594846548. Could not read local file `' . $file . '` to sendto FTP as it is not readable. Verify permissions of file, parent directory, and that ownership is correct. You may need suphp installed on the server.' ); 142 } 143 144 $filesize = filesize( $file ); 145 $total_transfer_size += $filesize;General.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 317 lines
1<?php 2/** 14 * 15 * @SuppressWarnings(PHPMD.DepthOfInheritance) 16 */ 28 */ 29 protected $_fileSize; 30 37 * @param \Magento\Framework\ObjectManagerInterface $objectManager 38 * @param \Magento\Framework\File\Size $fileSize 39 * @param array $data 48 ) { 49 $this->_fileSize = $fileSize; 50 parent::__construct($context, $registry, $formFactory, $objectManager, $data); 309 { 310 $maxImageSize = $this->_fileSize->getMaxFileSizeInMb(); 311 if ($maxImageSize) {FileValidator.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 215 lines
1<?php 2 63 } 64 $limitInBytes = min(UploadedFile::getMaxFilesize(), $limitInBytes); 65 } else { 65 } else { 66 $limitInBytes = UploadedFile::getMaxFilesize(); 67 } 136 if ($constraint->maxSize) { 137 $sizeInBytes = filesize($path); 138 $limitInBytes = (int) $constraint->maxSize;emailer.php https://gitlab.com/bulwye/reliquerunt | PHP | 389 lines
137 { 138 global $board_config, $lang, $phpEx, $phpbb_root_path, $db; 139 195// Begin PNphpBB2 Module 196// $this->extra_headers = (($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') . (($this->from != '') ? "From: $this->from\n" : "From: " . $board_config['board_email'] . "\n") . "Return-Path: " . $board_config['board_email'] . "\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nMIME-Version: 1.0\nContent-type: text/plain; charset=" . $this->encoding . "\nContent-transfer-encoding: 8bit\nDate: " . date('r', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . $this->extra_headers . (($cc != '') ? "Cc: $cc\n" : '') . (($bcc != '') ? "Bcc: $bcc\n" : ''); 197 $extra_headers = ($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : "Reply-to: " . $board_config['sitename'] . " <" . $board_config['board_email'] . ">\n"; 207 $this->extra_headers = $extra_headers; 208// End PNphpBB2 Module 209 214 { 215 include($phpbb_root_path . 'includes/smtp.' . $phpEx); 216 } 315 $this->mimeOut .= "Subject: ".$this->mailSubject."\n"; 316 $this->mimeOut .= "X-Mailer: PHP/".phpversion()."\n"; 317 $this->mimeOut .= "MIME-Version: 1.0\n";dmFormEmbedMediaTest.php https://github.com/stephaneerard/diem.git | PHP | 275 lines
73$t->is($media1->file, $media1FileName, 'Post media filename is '.$media1FileName); 74$t->is($media1->size, filesize($media1FullPath), 'Post media size is '.filesize($media1FullPath)); 75 101$t->is($post->Image->file, $media1FileName, 'Post media filename is '.$media1FileName); 102$t->is($post->Image->size, filesize($media1FullPath), 'Post media size is '.filesize($media1FullPath)); 103 166$t->is($post->Image->file, $expected = str_replace('.jpg', '_1.jpg', $media1FileName), 'Post media filename is '.$expected); 167$t->is($post->Image->size, filesize($media1FullPath), 'Post media size is '.filesize($media1FullPath)); 168 212$t->is($media2->file, $media2FileName, 'Post media filename is '.$media2FileName); 213$t->is($media2->size, filesize($media2FullPath), 'Post media size is '.filesize($media2FullPath)); 214 259$t->is($media3->file, $expected = str_replace('.jpg', '_1.jpg', $media3FileName), 'Post media filename is '.$expected); 260$t->is($media3->size, filesize($media3FullPath), 'Post media size is '.filesize($media3FullPath)); 261files.php https://gitlab.com/webbroteam/satisfaction-mvc | PHP | 306 lines
3 * 4 * This file is part of phpFastCache. 5 * 17use phpFastCache\Core\DriverAbstract; 18use phpFastCache\Exceptions\phpFastCacheDriverException; 19 29 * @param array $config 30 * @throws phpFastCacheDriverException 31 */ 37 if (!$this->checkdriver() && !isset($config[ 'skipError' ])) { 38 throw new phpFastCacheDriverException("Can't use this driver for your website!"); 39 } 58 * @return string 59 * @throws phpFastCacheDriverException 60 */format.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 432 lines
10 11// Based on default.php, included by ../import.php 12/** 16require_once ("$CFG->libdir/xmlize.php"); 17require_once ("$CFG->libdir/tcpdf/html_entity_decode_php4.php"); 18 39 40 $strbuf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry)); 41 $buf = explode("\n", $strbuf); 102 if ($ishtml) { 103 $question->questiontext = html_entity_decode_php4(trim($essayquestion["#"]["BODY"][0]["#"]["TEXT"][0]["#"])); 104 } 142 if ($ishtml) { 143 $question->questiontext = html_entity_decode_php4(trim($thisquestion["#"]["BODY"][0]["#"]["TEXT"][0]["#"])); 144 }upgrade_1.3.1.php https://gitlab.com/team_fsn/fsn-php | PHP | 613 lines
1<?php 2// +-----------------------------------------------------------------------+ 2// +-----------------------------------------------------------------------+ 3// | Piwigo - a PHP based photo gallery | 4// +-----------------------------------------------------------------------+ 5// | Copyright(C) 2008-2016 Piwigo Team http://piwigo.org | 6// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 33{ 34 if (!defined('PHPWG_IN_UPGRADE') or !PHPWG_IN_UPGRADE) 35 { 581// load the config file 582$config_file = PHPWG_ROOT_PATH.'local/config/database.inc.php'; 583$config_file_contents = @file_get_contents($config_file); 611// now we upgrade from 1.4.0 612include_once(PHPWG_ROOT_PATH.'install/upgrade_1.4.0.php'); 613?>Validator.php https://gitlab.com/paveltizek/shop | PHP | 338 lines
1<?php 2 286 */ 287 public static function validateFileSize(Controls\UploadControl $control, $limit) 288 {AdvancedServerDatabaseConfig.cs https://openHistorian.svn.codeplex.com/svn | C# | 388 lines
10// 11// http://www.opensource.org/licenses/eclipse-1.0.php 12// 50 private List<EncodingDefinition> m_streamingEncodingMethods; 51 private long m_targetFileSize; 52 private int m_stagingCount; 70 m_streamingEncodingMethods = new List<EncodingDefinition>(); 71 m_targetFileSize = 2 * 1024 * 1024 * 1024L; 72 m_stagingCount = 3; 107 /// </summary> 108 public long TargetFileSize 109 { 344 rollover.CombineOnFileCount = 60; 345 rollover.CombineOnFileSize = m_targetFileSize / (long)Math.Pow(30, remainingStages); 346 rollover.MatchFlag = FileFlags.GetStage(stage - 1);include_trackers.tpl https://gitlab.com/ElvisAns/tiki | Smarty Template | 251 lines
166 <th> 167 <a href="tiki-admin.php?page=trackers&sort_mode=user_{if $sort_mode eq 'attId'}asc{else}desc{/if}">{tr}ID{/tr}</a> 168 </th> 169 <th> 170 <a href="tiki-admin.php?page=trackers&sort_mode=user_{if $sort_mode eq 'user'}asc{else}desc{/if}">{tr}User{/tr}</a> 171 </th> 175 <th> 176 <a href="tiki-admin.php?page=trackers&sort_mode=filesize_{if $sort_mode eq 'filesize'}asc{else}desc{/if}">{tr}Size{/tr}</a> 177 </th> 178 <th> 179 <a href="tiki-admin.php?page=trackers&sort_mode=filetype_{if $sort_mode eq 'filetype'}asc{else}desc{/if}">{tr}Type{/tr}</a> 180 </th> 181 <th> 182 <a href="tiki-admin.php?page=trackers&sort_mode=hits_{if $sort_mode eq 'hits'}asc{else}desc{/if}">{tr}dls{/tr}</a> 183 </th>main.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 223 lines
1<?php 2/** 33 34 $image->filesize = $metadata['size']; 35 $image->hash = $metadata['hash']; 192 193 $memory_use = (filesize($tmpname)*2) + ($width*$height*4) + (4*1024*1024); 194 $memory_limit = get_memory_limit();jquery.filedrop.js https://gitlab.com/craftbynick/Circular | JavaScript | 484 lines
12 * Licensed under the MIT license: 13 * http://www.opensource.org/licenses/mit-license.php 14 * 38 maxfiles: 25, // Ignored if queuefiles is set > 0 39 maxfilesize: 1, // MB file size limit 40 queuefiles: 0, // Max files before queueing (for large volume uploads) 249 var reader = new FileReader(), 250 max_file_size = 1048576 * opts.maxfilesize; 251th_TH.js https://gitlab.com/Red54/core | JavaScript | 117 lines
17 "There is no error, the file uploaded with success" : "ไม่พบข้อผิดพลาดใดๆ, ไฟล์ถูกอัพโหลดเรียบร้อยแล้ว", 18 "The uploaded file exceeds the upload_max_filesize directive in php.ini: " : "ขนาดไฟล์ที่อัพโหลดมีขนาดเกิน upload_max_filesize ที่ระบุไว้ใน php.ini", 19 "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" : "ไฟล์ที่อัพโหลดมีขนาดไฟล์ใหญ่เกินจำนวนที่กำหนดไว้ในคำสั่ง MAX_FILE_SIZE ที่ถูกระบุไว้ในรูปแบบของ HTML",csv.php https://gitlab.com/alexprowars/bitrix | PHP | 437 lines
1<?php 2namespace Bitrix\Translate\Controller\Import; 301 if ( 302 (filesize($_FILES['csvFile']['tmp_name']) > 0) && 303 (mb_substr($_FILES['csvFile']['name'], -4) === '.csv')ModulePackage.php https://github.com/intraface/intraface.dk.git | PHP | 281 lines
1<?php 2/** 119 * Parse the serialized array of limiters that is saved in the database. 120 * The limiters are checked whether they are valid accoring to the Intraface/config/setting_limiters.php definition 121 * 140 // the array is filled in with values in the include file. 141 require('Intraface/config/setting_limiters.php'); 142 153 case 'file_size': 154 $return_limiters[$i]['limit_readable'] = filesize_readable($limit); 155 break; 221 // get all products in one request and add them to the array 222 require_once 'Intraface/modules/modulepackage/ShopExtension.php'; 223 $shopextension = new Intraface_modules_modulepackage_ShopExtension;import.php https://github.com/m-fuji-0616/vtigercrm-5.1.x-ja.git | PHP | 302 lines
1<?php 2/********************************************************************************* 12 13require_once 'Excel/reader.php'; 14require_once('database/DatabaseConnection.php'); 35 echo $error; 36 include "fetchfile.php"; 37 //unlink($HTTP_POST_FILES['userfile']['tmp_name']); 41 /* 42 $maxfilesize=20480; 43 43 44 if ($HTTP_POST_FILES['userfile']['size'] > $maxfilesize) 45 { 47 echo $error; 48 include "fetchfile.php"; 49 unlink($HTTP_POST_FILES['userfile']['tmp_name']);Cache.php https://github.com/daK76/pyrocms.git | PHP | 431 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2 210 // If the file contains data return it, otherwise return NULL 211 if (filesize($filepath) > 0) 212 { 212 { 213 $this->_contents = unserialize(fread($fp, filesize($filepath))); 214 } 301 { 302 // create non existing dirs, asumes PHP5 303 if ( ! @mkdir($test_path, DIR_WRITE_MODE, TRUE)) return FALSE; 429 430/* End of file Cache.php */ 431/* Location: ./application/libraries/Cache.php */ImageUploadServiceTest.php https://gitlab.com/dayitv89/laravel-tricks | PHP | 244 lines
1<?php 2 151 */ 152 public function testGetFileSize() 153 { 170 'mocked', 171 $imageUploadServiceMock->getFileSize('foo') 172 ); 212 $imageUploadServiceMock 213 ->shouldReceive('getFileSize') 214 ->atLeast()->once()format.php https://github.com/henriquecrang/e-UNI.git | PHP | 432 lines
1<?php // $Id: format.php,v 1.12.4.2 2008/08/28 10:04:23 thepurpleblob Exp $ 2 10 11// Based on default.php, included by ../import.php 12/** 16require_once ("$CFG->libdir/xmlize.php"); 17require_once ("$CFG->libdir/tcpdf/html_entity_decode_php4.php"); 18 39 40 $strbuf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry)); 41 $buf = explode("\n", $strbuf); 102 if ($ishtml) { 103 $question->questiontext = html_entity_decode_php4(trim($essayquestion["#"]["BODY"][0]["#"]["TEXT"][0]["#"])); 104 } 142 if ($ishtml) { 143 $question->questiontext = html_entity_decode_php4(trim($thisquestion["#"]["BODY"][0]["#"]["TEXT"][0]["#"])); 144 }FreetypeFontScaler.java https://gitlab.com/borneywpf/openjdk-7-src | Java | 262 lines
61 public FreetypeFontScaler(Font2D font, int indexInCollection, 62 boolean supportsCJK, int filesize) { 63 int fonttype = TRUETYPE_FONT; 70 supportsCJK, 71 filesize); 72 this.font = new WeakReference(font); 197 198 synchronized Point2D.Float getGlyphPoint(long pScalerContext, 199 int glyphCode, int ptNumber) 201 if (nativeScaler != 0L) { 202 return getGlyphPointNative(font.get(), pScalerContext, 203 nativeScaler, glyphCode, ptNumber); 204 } 205 return FontScaler.getNullScaler().getGlyphPoint( 206 pScalerContext, glyphCode, ptNumber);ArticleFileDAO.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 398 lines
1<?php 2 3/** 4 * @file classes/articleArticleFileDAO.inc.php 5 * 243 $articleFile->setFileType($row['file_type']); 244 $articleFile->setFileSize($row['file_size']); 245 $articleFile->setOriginalFileName($row['original_file_name']); 269 $articleFile->getFileType(), 270 $articleFile->getFileSize(), 271 $articleFile->getOriginalFileName(), 326 $articleFile->getFileType(), 327 $articleFile->getFileSize(), 328 $articleFile->getOriginalFileName(),MoveFiles.php https://gitlab.com/shinvdu/ad | PHP | 278 lines
1<?php 2/* 23 */ 24require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php"; 25 167 $maxSize = $currentResourceTypeConfig->getMaxSize(); 168 $fileSize = filesize($sourceFilePath); 169 if ($maxSize && $fileSize>$maxSize) {attachment_types.php https://gitlab.com/Conors99/ppm-1.8 | PHP | 360 lines
106 // PHP settings 107 $upload_max_filesize = @ini_get('upload_max_filesize'); 108 $post_max_size = @ini_get('post_max_size'); 114 { 115 $limit_string .= '<br />'.$lang->sprintf($lang->limit_upload_max_filesize, $upload_max_filesize); 116 } 209 210 $form = new Form("index.php?module=config-attachment_types&action=edit&atid={$attachment_type['atid']}", "post", "add"); 211 221 // PHP settings 222 $upload_max_filesize = @ini_get('upload_max_filesize'); 223 $post_max_size = @ini_get('post_max_size'); 229 { 230 $limit_string .= '<br />'.$lang->sprintf($lang->limit_upload_max_filesize, $upload_max_filesize); 231 }SplFileInfo.php https://gitlab.com/Blueprint-Marketing/hhvm | PHP | 444 lines
1<?php 2 2 3// This doc comment block generated by idl/sysdoc.php 4/** 4/** 5 * ( excerpt from http://docs.hhvm.com/manual/en/class.splfileinfo.php ) 6 * 16 17 // This doc comment block generated by idl/sysdoc.php 18 /** 18 /** 19 * ( excerpt from http://docs.hhvm.com/manual/en/splfileinfo.construct.php ) 20 * 29 30 // This doc comment block generated by idl/sysdoc.php 31 /**dialog.php https://github.com/nadavkav/RTL-BIDI-Hebrew-Moodle-Plugins.git | PHP | 275 lines
1<?php // $Id: insert_table.php,v 1.4 2007/01/27 23:23:44 skodak Exp $ 2 require_once("../../../../../config.php"); 26 $strdescname = "<a href=\"$CFG->wwwroot/$fmdir/view.php?id={$id}&groupid=$groupid&rootdir=$rootdir&tsort=sortdesc\">".get_string('descname','block_file_manager')."</a>"; 27 $strfilesizename = "<a href=\"$CFG->wwwroot/$fmdir/view.php?id={$id}&groupid=$groupid&rootdir=$rootdir&tsort=sortsize\">".get_string('filesizename','block_file_manager')."</a>"; 28 $strdatename = "<a href=\"$CFG->wwwroot/$fmdir/view.php?id={$id}&groupid=$groupid&rootdir=$rootdir&tsort=sortdate\">".get_string('datename','block_file_manager')."</a>"; 89 } 90 $name = "<a href=\"{$CFG->wwwroot}/".fm_get_root_dir()."/view.php?id={$id}&groupid={$groupid}&rootdir={$folder->id}{$moveurl}\"><img border=\"0\" src=\"$CFG->wwwroot/blocks/file_manager/pix/folder.gif\" alt=\"".get_string('msgfolder','block_file_manager',format_text($folder->name,FORMAT_PLAIN))."\" />". format_text($folder->name,FORMAT_PLAIN)."</a>"; 91 $catname = get_record('fmanager_categories', 'id', $folder->category); 105 }else{ 106 $table->data[] = array("", $name, $catname, $filesize, $date); 107 } 224 document.getElementById("f_border").value = parseInt(param["f_border"] || 0); 225 window.ipreview.location.replace('preview.php?id='+ <?php print($course->id);?> +'&imageurl='+ param.f_url); 226 } 248 //alert(inputs[i].value); 249 param[i] = '<a target="_new" href="<?php echo $CFG->wwwroot; ?>/blocks/file_manager/file.php?cid=<?php echo $id; ?>&groupid=0&fileid='+inputs[i].value+'">'+inputs[i].name+'</a>'; 250 };update_business.php https://gitlab.com/stuardo/dollaradobill.com | PHP | 274 lines
1<?php 2 2 3include('../db.php'); 4 192 $FileType = $_FILES['inputImage']['type']; 193 $FileSize = $_FILES['inputImage']["size"]; 194 $RandNumber = rand(0, 9999999999); 251 { 252//function outputs upload error messages, http://www.php.net/manual/en/features.file-upload.errors.php#90522 253function upload_errors($err_code) { 255 case UPLOAD_ERR_INI_SIZE: 256 return 'The uploaded file exceeds the upload_max_filesize directive in php.ini'; 257 case UPLOAD_ERR_FORM_SIZE:Config_File.class.php https://github.com/viglesiasce/testlink.git | PHP | 393 lines
1<?php 2 26 * @copyright Copyright: 2001-2005 New Digital Group, Inc. 27 * @author Andrei Zmievski <andrei@php.net> 28 * @access public 31 32/* $Id: Config_File.class.php,v 1.3 2010/01/29 19:33:21 franciscom Exp $ */ 33 246 247 $contents = ($size = filesize($config_file)) ? fread($fp, $size) : ''; 248 fclose($fp); 381 /** 382 * @uses trigger_error() creates a PHP warning/error 383 * @param string $error_msgadmin.php https://github.com/mul14/pyrocms.git | PHP | 355 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 152 'mimetype' => $img['upload_data']['file_type'], 153 'filesize' => $img['upload_data']['file_size'], 154 'width' => (int) $img['upload_data']['image_width'], 247 'mimetype' => $img['upload_data']['file_type'], 248 'filesize' => $img['upload_data']['file_size'], 249 'width' => $img['upload_data']['image_width'], 353 354/* End of file admin.php */ 355/* Location: ./system/pyrocms/modules/files/controllers/admin.php */SystemStatus.php https://gitlab.com/ebrjose/comcebu | PHP | 341 lines
1<?php 2namespace AIOSEO\Plugin\Common\Tools; 177 'header' => __( 'Operating System', 'all-in-one-seo-pack' ), 178 'value' => PHP_OS 179 ], 196 [ 197 'header' => __( 'PHP Version', 'all-in-one-seo-pack' ), 198 'value' => PHP_VERSION 200 [ 201 'header' => __( 'PHP Memory Limit', 'all-in-one-seo-pack' ), 202 'value' => ini_get( 'memory_limit' ) 204 [ 205 'header' => __( 'PHP Max Upload Size', 'all-in-one-seo-pack' ), 206 'value' => ini_get( 'upload_max_filesize' ) 208 [ 209 'header' => __( 'PHP Max Post Size', 'all-in-one-seo-pack' ), 210 'value' => ini_get( 'post_max_size' )FileUpload.php https://github.com/sauger/forbes_old.git | PHP | 197 lines
1<?php 2/** 177 //resize image if required 178 require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/Thumbnail.php"; 179 $_imagesConfig = $_config->getImagesConfig(); 187 clearstatcache(); 188 if ($maxSize && filesize($sFilePath)>$maxSize) { 189 @unlink($sFilePath);curl.php https://github.com/theshock/curl.git | PHP | 515 lines
1<?php 2 5 * 6 * See the README for documentation/examples or http://php.net/curl for more information about the libcurl extension for PHP 7 * 84 * Sets the $cookie_file to "curl_cookie.txt" in the current directory 85 * Also sets the $user_agent to $_SERVER['HTTP_USER_AGENT'] if it exists, 'Curl/PHP '.PHP_VERSION.' (http://github.com/shuber/curl)' otherwise 86 **/ 88 { 89 $this->user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'Curl/PHP '.PHP_VERSION.' (http://github.com/shuber/curl)'; 90 } 478 curl_setopt($this->request, CURLOPT_INFILE, $put_data->getResource()); 479 curl_setopt($this->request, CURLOPT_INFILESIZE, $put_data->getResourceSize()); 480 }