PageRenderTime 3194ms queryTime 524ms sortTime 237ms getByIdsTime 1371ms findMatchingLines 309ms

55+ results for 'php fread' (3194 ms)

Not the results you expected?
File.php https://gitlab.com/rsilveira1987/Expresso | PHP | 473 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: File.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
38     */
                    
39    abstract protected function _fread($length=1);
                    
40
                    
107    {
                    
108        return ord($this->_fread(1));
                    
109    }
                    
129    {
                    
130        return $this->_fread($num);
                    
131    }
                    
153    {
                    
154        $str = $this->_fread(4);
                    
155
                    
                
Ntp.php https://github.com/Exercise/zf2.git | PHP | 434 lines
                    
1<?php
                    
2/**
                    
208    {
                    
209        $flags = ord(fread($this->_socket, 1));
                    
210        $info  = stream_get_meta_data($this->_socket);
                    
219            'flags'          => $flags,
                    
220            'stratum'        => ord(fread($this->_socket, 1)),
                    
221            'poll'           => ord(fread($this->_socket, 1)),
                    
221            'poll'           => ord(fread($this->_socket, 1)),
                    
222            'precision'      => ord(fread($this->_socket, 1)),
                    
223            'rootdelay'      => $this->_getFloat(fread($this->_socket, 4)),
                    
223            'rootdelay'      => $this->_getFloat(fread($this->_socket, 4)),
                    
224            'rootdispersion' => $this->_getFloat(fread($this->_socket, 4)),
                    
225            'referenceid'    => fread($this->_socket, 4),
                    
225            'referenceid'    => fread($this->_socket, 4),
                    
226            'referencestamp' => $this->_getTimestamp(fread($this->_socket, 8)),
                    
227            'originatestamp' => $this->_getTimestamp(fread($this->_socket, 8)),
                    
                
File.php https://github.com/FranckErnewein/citron.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
38     */
                    
39    abstract protected function _fread($length=1);
                    
40
                    
107    {
                    
108        return ord($this->_fread(1));
                    
109    }
                    
129    {
                    
130        return $this->_fread($num);
                    
131    }
                    
153    {
                    
154        $str = $this->_fread(4);
                    
155
                    
                
file_helper.php https://gitlab.com/bipsahu/ptcs | 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 *
                    
62		{
                    
63			$data =& fread($fp, filesize($file));
                    
64		}
                    
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)))
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
354		{
                    
355			if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))
                    
356			{
                    
                
file_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | 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 *
                    
62		{
                    
63			$data =& fread($fp, filesize($file));
                    
64		}
                    
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)))
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
477
                    
478/* End of file file_helper.php */
                    
479/* Location: ./system/helpers/file_helper.php */
                    
                
shp.php https://bitbucket.org/graaaf/garant.git | PHP | 426 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * ESRI Shape file import plugin for phpMyAdmin
                    
4 *
                    
4 *
                    
5 * @package PhpMyAdmin-Import
                    
6 * @subpackage ESRI_Shape
                    
7 */
                    
8if (! defined('PHPMYADMIN')) {
                    
9    exit;
                    
33    set_include_path(get_include_path() . PATH_SEPARATOR . getcwd() . '/libraries/bfShapeFiles/');
                    
34    include_once './libraries/bfShapeFiles/ShapeFile.lib.php';
                    
35
                    
58    /**
                    
59     * This class extends ShapeFile class to cater the following phpMyAdmin
                    
60     * specific requirements.
                    
                
korean.rb https://github.com/andreacampi/redmine.git | Ruby | 436 lines
                    
23#
                    
24# This is direct port of korean.php
                    
25#
                    
328  		f=fopen(file,'rb')
                    
329  		putstream(fread(f,size))
                    
330  		fclose(f)
                    
                
index.php https://bitbucket.org/gencer/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; ?>
                    
                
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 */
                    
13
                    
14class BodyTest extends \PHPUnit_Framework_TestCase
                    
15{
                    
42    {
                    
43        $stream = fopen('php://temp', $mode);
                    
44        fwrite($stream, $this->text);
                    
81
                    
82        $this->assertEquals('php://temp', $body->getMetadata('uri'));
                    
83    }
                    
                
ArticleEventLogEntry.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 494 lines
                    
389			case ARTICLE_LOG_PROOFREAD_ASSIGN:
                    
390				return 'submission.event.proofread.proofreaderAssigned';
                    
391			case ARTICLE_LOG_PROOFREAD_UNASSIGN:
                    
391			case ARTICLE_LOG_PROOFREAD_UNASSIGN:
                    
392				return 'submission.event.proofread.proofreaderUnassigned';
                    
393			case ARTICLE_LOG_PROOFREAD_INITIATE:
                    
393			case ARTICLE_LOG_PROOFREAD_INITIATE:
                    
394				return 'submission.event.proofread.proofreadInitiated';
                    
395			case ARTICLE_LOG_PROOFREAD_REVISION:
                    
395			case ARTICLE_LOG_PROOFREAD_REVISION:
                    
396				return 'submission.event.proofread.proofreadRevision';
                    
397			case ARTICLE_LOG_PROOFREAD_COMPLETE:
                    
397			case ARTICLE_LOG_PROOFREAD_COMPLETE:
                    
398				return 'submission.event.proofread.proofreadCompleted';
                    
399
                    
                
unpack.php https://gitlab.com/milo-ft/osTicket | PHP | 270 lines
                    
1<?php
                    
2
                    
54        # Read the main.inc.php script
                    
55        $bootstrap_php = $this->destination . '/bootstrap.php';
                    
56        $lines = explode("\n", file_get_contents($bootstrap_php));
                    
75        }
                    
76        if (!file_put_contents($bootstrap_php, implode("\n", $lines)))
                    
77            die("Unable to configure location of INCLUDE_DIR in bootstrap.php\n");
                    
151     * exclude - (string | array<string>) patterns that will be matched
                    
152     *      using the PHP `fnmatch` function. If any file or folder matches,
                    
153     *      it will be excluded from the copy procedure. Omit or use false
                    
206        $pipes = array();
                    
207        $php = proc_open('php', array(
                    
208            0 => array('pipe', 'r'),
                    
211
                    
212        fwrite($pipes[0], "<?php
                    
213        include '{$this->destination}/bootstrap.php';
                    
                
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
                    
208            while (!feof($fpSource)) {
                    
209                fwrite($fpDestination, fread($fpSource, 8192));
                    
210            }
                    
                
SYLK.php https://gitlab.com/khairulcse76/userLogins | PHP | 450 lines
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
44 */
                    
45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader
                    
46{
                    
213	/**
                    
214	 * Loads PHPExcel from file into PHPExcel instance
                    
215	 *
                    
216	 * @param 	string 		$pFilename
                    
217	 * @param	PHPExcel	$objPHPExcel
                    
218	 * @return 	PHPExcel
                    
220	 */
                    
221	public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
                    
222	{
                    
                
LayoutEditorAction.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 349 lines
                    
1<?php
                    
2
                    
7/**
                    
8 * @file classes/submission/layoutEditor/LayoutEditorAction.inc.php
                    
9 *
                    
18
                    
19// $Id: LayoutEditorAction.inc.php,v 1.38.2.1 2009/04/08 19:42:50 asmecher Exp $
                    
20
                    
266	/**
                    
267	 * View proofread comments.
                    
268	 * @param $article object
                    
269	 */
                    
270	function viewProofreadComments($article) {
                    
271		if (!HookRegistry::call('LayoutEditorAction::viewProofreadComments', array(&$article))) {
                    
271		if (!HookRegistry::call('LayoutEditorAction::viewProofreadComments', array(&$article))) {
                    
272			import("submission.form.comment.ProofreadCommentForm");
                    
273
                    
                
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
                    
179            $handle = fopen($path, 'r');
                    
180            $text = fread($handle, $this->byte_size);
                    
181
                    
                
Misc.php https://gitlab.com/saalmanhussain/scayle_repo | PHP | 388 lines
                    
1<?php
                    
2/*
                    
30        if (!empty($_GET['langCode']) && preg_match("/^[a-z\-]+$/", $_GET['langCode'])) {
                    
31            if (file_exists(CKFINDER_CONNECTOR_LANG_PATH . "/" . $_GET['langCode'] . ".php"))
                    
32                $langCode = $_GET['langCode'];
                    
64    /**
                    
65     * @link http://pl.php.net/manual/en/function.imagecopyresampled.php
                    
66     * replacement to imagecopyresampled that will deliver results that are almost identical except MUCH faster (very typically 30 times faster)
                    
110    /**
                    
111     * @link http://pl.php.net/manual/pl/function.imagecreatefromjpeg.php
                    
112     * function posted by e dot a dot schultz at gmail dot com
                    
132        //Default memory limit is 8MB so well stick with that.
                    
133        //To find out what yours is, view your php.ini file.
                    
134        $memoryLimit = CKFinder_Connector_Utils_Misc::returnBytes(@ini_get('memory_limit'))/$MB;
                    
170    /**
                    
171     * convert shorthand php.ini notation into bytes, much like how the PHP source does it
                    
172     * @link http://pl.php.net/manual/en/function.ini-get.php
                    
                
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	{
                    
                
UserXMLParser.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 416 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @file UserXMLParser.inc.php
                    
5 *
                    
15
                    
16// $Id: UserXMLParser.inc.php,v 1.22 2009/05/13 00:14:46 asmecher Exp $
                    
17
                    
327	function validRole($roleType) {
                    
328		return isset($roleType) && in_array($roleType, array('manager', 'editor', 'sectionEditor', 'layoutEditor', 'reviewer', 'copyeditor', 'proofreader', 'author', 'reader', 'subscriptionManager'));
                    
329	}
                    
                
test_ext_mailparse.cpp https://github.com/zsj888/hiphop-php.git | C++ | 412 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   +----------------------------------------------------------------------+
                    
49bool TestExtMailparse::test_mail() {
                    
50  //VCB("<?php ");
                    
51  return Count(true);
                    
                
SCP.php https://gitlab.com/yousafsyed/easternglamor | 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 *
                    
                
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	}
                    
83		{
                    
84			echo fread($handle, 8192);
                    
85		}
                    
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	}
                    
                
sql.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 238 lines
                    
1<?php
                    
2if (!$error && $_POST["export"]) {
                    
27		), "rb");
                    
28		$query = ($fp ? fread($fp, 1e6) : false);
                    
29	} else {
                    
32
                    
33	if (is_string($query)) { // get_file() returns error as number, fread() as false
                    
34		if (function_exists('memory_get_usage')) {
                    
72				if (!$found && $fp && !feof($fp)) {
                    
73					$query .= fread($fp, 1e5);
                    
74				} else {
                    
83							if (!$s && $fp && !feof($fp)) {
                    
84								$query .= fread($fp, 1e5);
                    
85							} else {
                    
186<form action="" method="post" enctype="multipart/form-data" id="form">
                    
187<?php
                    
188$execute = "<input type='submit' value='" . lang('Execute') . "' title='Ctrl+Enter'>";
                    
                
File.php https://gitlab.com/RonLab1987/YupePlusClear | PHP | 473 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: File.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
38     */
                    
39    abstract protected function _fread($length = 1);
                    
40
                    
106    {
                    
107        return ord($this->_fread(1));
                    
108    }
                    
128    {
                    
129        return $this->_fread($num);
                    
130    }
                    
151    {
                    
152        $str = $this->_fread(4);
                    
153
                    
                
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 *
                    
                
theme-editor.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 241 lines
                    
169	<?php if ( $theme->parent() ) : ?>
                    
170	<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>
                    
171	<?php endif; ?>
                    
186?>
                    
187		<li><a href="theme-editor.php?file=<?php echo urlencode( $filename ) ?>&amp;theme=<?php echo urlencode( $stylesheet ) ?>"><?php echo $file_description; ?></a></li>
                    
188<?php
                    
208		<?php echo $docs_select; ?>
                    
209		<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() ) + '&amp;locale=<?php echo urlencode( get_locale() ) ?>&amp;version=<?php echo urlencode( $wp_version ) ?>&amp;redirect=true'); }" />
                    
210		</div>
                    
214		<?php if ( is_child_theme() && $theme->get_stylesheet() == get_template() ) : ?>
                    
215			<p><?php if ( is_writeable( $file ) ) { ?><strong><?php _e( 'Caution:' ); ?></strong><?php } ?>
                    
216			<?php _e( 'This is a file in your current parent theme.' ); ?></p>
                    
217		<?php endif; ?>
                    
218<?php
                    
219	if ( is_writeable( $file ) ) :
                    
                
CopyeditorSubmissionDAO.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 343 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @file classes/submission/copyeditor/CopyeditorSubmissionDAO.inc.php
                    
5 *
                    
154			ASSOC_TYPE_ARTICLE,
                    
155			'SIGNOFF_PROOFREADING_PROOFREADER',
                    
156			ASSOC_TYPE_ARTICLE,
                    
237				break;
                    
238			case SUBMISSION_FIELD_DATE_PROOFREADING_COMPLETE:
                    
239				if (!empty($dateFrom)) {
                    
                
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);
                    
                
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 */
                    
246			if($amount && $fsize > $amount) {
                    
247				$data = fread($fh, $amount);
                    
248			} else {
                    
248			} else {
                    
249				$data = fread($fh, $fsize);
                    
250			}
                    
                
after-the-deadline.php https://gitlab.com/endomorphosis/falkenstein | PHP | 286 lines
                    
26 */
                    
27include( 'after-the-deadline/config-options.php' );
                    
28include( 'after-the-deadline/config-unignore.php' );
                    
174		wp_enqueue_script( 'AtD_settings', admin_url() . 'admin-ajax.php?action=atd_settings', array('AtD_jquery'), ATD_VERSION );
                    
175		wp_enqueue_script( 'AtD_autoproofread', plugins_url( '/after-the-deadline/atd-autoproofread.js', __FILE__ ), array('AtD_jquery'), ATD_VERSION );
                    
176
                    
190
                    
191			'button_proofread'            => __( 'proofread', 'jetpack' ),
                    
192			'button_edit_text'            => __( 'edit text', 'jetpack' ),
                    
192			'button_edit_text'            => __( 'edit text', 'jetpack' ),
                    
193			'button_proofread_tooltip'    => __( 'Proofread Writing', 'jetpack' ),
                    
194
                    
252
                    
253	$pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'admin.php', 'profile.php' );
                    
254
                    
                
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                                                                                          
                    
191
                    
192    fread (&Temp, sizeof (UINT8), 1, InputFile);
                    
193    while (!feof (InputFile)) {
                    
194      (*FileBuffer)[Size++] = Temp;
                    
195      fread (&Temp, sizeof (UINT8), 1, InputFile);
                    
196    }
                    
                
Cache_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 ) );
                    
164
                    
165		$expires_at = @fread( $fp, 4 );
                    
166		$data = null;
                    
185				while ( !@feof( $fp ) ) {
                    
186					$data .= @fread( $fp, 4096 );
                    
187				}
                    
315
                    
316		$path = sprintf( '%s/%s/%s.php', substr( $hash, 0, 3 ), substr( $hash, 3, 3 ), $hash );
                    
317
                    
409		@fputs( $fp, pack( 'L', $expires_at ) );
                    
410		@fputs( $fp, '<?php exit; ?>' );
                    
411		@fputs( $fp, (int)$value );
                    
                
chunk.php https://gitlab.com/hschoenburg/tlworks2 | PHP | 392 lines
                    
1<?php
                    
2
                    
2
                    
3include __DIR__ . "/XmlStreamReader/autoload.php";
                    
4
                    
93    while (!@feof($f)) {
                    
94      $chunk = @fread($f, 1024);         
                    
95      if (strpos($chunk, "<!DOCTYPE") === 0) $is_html = true;
                    
234        else
                    
235           $path = 'php://filter/read=preprocessxml/resource=' . $this->file;
                    
236    }
                    
368
                    
369class preprocessXml_filter extends php_user_filter {    
                    
370
                    
                
core.h https://gitlab.com/freedmpure/bitcoin | C Header | 476 lines
                    
3// Distributed under the MIT/X11 software license, see the accompanying
                    
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
                    
5
                    
255    IMPLEMENT_SERIALIZE(({
                    
256        if (!fRead) {
                    
257            uint64_t nVal = CompressAmount(txout.nValue);
                    
                
Document.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 404 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @package php-svg-lib
                    
4 * @link    http://github.com/PhenX/php-svg-lib
                    
124        $fp = fopen($this->filename, "r");
                    
125        while ($line = fread($fp, 8192)) {
                    
126            xml_parse($parser, $line, false);
                    
221        $fp = fopen($this->filename, "r");
                    
222        while ($line = fread($fp, 8192)) {
                    
223            xml_parse($parser, $line, false);
                    
                
class-wp-filesystem-ftpext.php https://gitlab.com/thisishayat/itv-2016 | PHP | 602 lines
                    
1<?php
                    
2/**
                    
30		if ( ! extension_loaded('ftp') ) {
                    
31			$this->errors->add('no_ftp_ext', __('The ftp PHP extension is not available'));
                    
32			return;
                    
128		while ( ! feof($temp) )
                    
129			$contents .= fread($temp, 8192);
                    
130
                    
                
UserImportExportPlugin.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 280 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * UserImportExportPlugin.inc.php
                    
5 *
                    
12 *
                    
13 * $Id: UserImportExportPlugin.inc.php,v 1.10 2006/01/24 20:38:04 alec Exp $
                    
14 */
                    
61			'copyeditor' => 'user.role.copyeditor',
                    
62			'proofreader' => 'user.role.proofreader',
                    
63			'author' => 'user.role.author',
                    
                
File.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 306 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * A PHP-Based RSS and Atom Feed Framework.
                    
6 * Takes the hard work out of managing a complete RSS/Atom solution.
                    
40 * @link http://simplepie.org/ SimplePie
                    
41 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
42 */
                    
220					{
                    
221						$this->headers .= fread($fp, 1160);
                    
222						$info = stream_get_meta_data($fp);
                    
                
module.graphic.jpg.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 338 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)                 //
                    
33		$imageinfo = array();
                    
34		// list($width, $height, $type) = getid3_lib::GetDataImageSize(fread($this->getid3->fp, $info['filesize']), $imageinfo);
                    
35		list($width, $height, $type) = getimagesize($info['filenamepath'], $imageinfo);
                    
37		if (isset($imageinfo['APP13'])) {
                    
38			// http://php.net/iptcparse
                    
39			// http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/IPTC.html
                    
71					} else {
                    
72						$info['warning'][] = 'EXIF parsing only available when '.(GETID3_OS_ISWINDOWS ? 'php_exif.dll enabled' : 'compiled with --enable-exif');
                    
73					}
                    
                
Process.php https://github.com/pmjones/php-framework-benchmarks.git | PHP | 372 lines
                    
1<?php
                    
2
                    
15 * Process is a thin wrapper around proc_* functions to ease
                    
16 * start independent PHP processes.
                    
17 *
                    
51        if (!function_exists('proc_open')) {
                    
52            throw new \RuntimeException('The Process class relies on proc_open, which is not available on your PHP installation.');
                    
53        }
                    
79     *
                    
80     * @param Closure|string|array $callback A PHP callback to run whenever there is some
                    
81     *                                       output available on STDOUT or STDERR
                    
106
                    
107        // Workaround for http://bugs.php.net/bug.php?id=51800
                    
108        if (strstr(PHP_OS, 'WIN')) {
                    
163                $type = array_search($pipe, $pipes);
                    
164                $data = fread($pipe, 8192);
                    
165                if (strlen($data) > 0) {
                    
                
theme-editor.php https://gitlab.com/Gashler/dp | PHP | 246 lines
                    
83	if ( is_writeable( $file ) ) {
                    
84		//is_writable() not always reliable, check return value. see comments @ http://uk.php.net/is_writable
                    
85		$f = fopen( $file, 'w+' );
                    
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 ) ?>&amp;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() ) + '&amp;locale=<?php echo urlencode( get_locale() ) ?>&amp;version=<?php echo urlencode( $wp_version ) ?>&amp;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>
                    
                
UserAction.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 204 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @file classes/user/UserAction.inc.php
                    
5 *
                    
15
                    
16// $Id: UserAction.inc.php,v 1.8 2009/05/21 22:53:24 michael Exp $
                    
17
                    
99			$layoutSignoff = $signoffDao->build('SIGNOFF_LAYOUT', ASSOC_TYPE_ARTICLE, $layoutEditorSubmission->getArticleId());
                    
100			$layoutProofreadSignoff = $signoffDao->build('SIGNOFF_PROOFREADING_LAYOUT', ASSOC_TYPE_ARTICLE, $layoutEditorSubmission->getArticleId());
                    
101			$layoutSignoff->setUserId($newUserId);
                    
109
                    
110		$proofreaderSubmissionDao =& DAORegistry::getDAO('ProofreaderSubmissionDAO');
                    
111		$proofreaderSubmissions =& $proofreaderSubmissionDao->getSubmissions($oldUserId);
                    
112		while ($proofreaderSubmission =& $proofreaderSubmissions->next()) {
                    
113			$proofSignoff = $signoffDao->build('SIGNOFF_PROOFREADING_PROOFREADER', ASSOC_TYPE_ARTICLE, $proofreaderSubmission->getArticleId());
                    
114			$proofSignoff->setUserId($newUserId);
                    
                
module.audio-video.flv.php https://github.com/Lukeas14/hip-hop-goblin.git | PHP | 505 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////
                    
28//                                                             //
                    
29// module.audio-video.flv.php                                  //
                    
30// module for analyzing Shockwave Flash Video files            //
                    
50		$FLVdataLength = $ThisFileInfo['avdataend'] - $ThisFileInfo['avdataoffset'];
                    
51		$FLVheader = fread($fd, 5);
                    
52
                    
67
                    
68		$FrameSizeDataLength = getid3_lib::BigEndian2Int(fread($fd, 4));
                    
69		$FLVheaderFrameLength = 9;
                    
79		while ((ftell($fd) + 16) < $ThisFileInfo['avdataend']) {
                    
80			$ThisTagHeader = fread($fd, 16);
                    
81
                    
182						fseek($fd, -1, SEEK_CUR);
                    
183						$reader = new AMFReader(new AMFStream(fread($fd, $DataLength)));
                    
184						$eventName = $reader->readData();
                    
                
waveform.class.php https://gitlab.com/x33n/ampache | PHP | 321 lines
                    
1<?php
                    
2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
                    
49  *
                    
50  * https://github.com/afreiday/php-waveform-png
                    
51  *
                    
107                                do {
                    
108                                    $buf = fread($fp, 2048);
                    
109                                    fwrite($tfp, $buf);
                    
150     * Great function slightly modified as posted by Minux at
                    
151     * http://forums.clantemplates.com/showthread.php?t=133805
                    
152     * @param string $input
                    
184        $heading = array();
                    
185        $heading[] = fread($handle, 4);
                    
186        $heading[] = bin2hex(fread($handle, 4));
                    
186        $heading[] = bin2hex(fread($handle, 4));
                    
187        $heading[] = fread($handle, 4);
                    
188        $heading[] = fread($handle, 4);
                    
                
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 *
                    
                
UserImportExportPlugin.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 301 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @file UserImportExportPlugin.inc.php
                    
5 *
                    
14
                    
15// $Id: UserImportExportPlugin.inc.php,v 1.26 2008/07/01 01:16:14 asmecher Exp $
                    
16
                    
63			'copyeditor' => 'user.role.copyeditor',
                    
64			'proofreader' => 'user.role.proofreader',
                    
65			'author' => 'user.role.author',
                    
                
import.php https://github.com/cwaclawik/moodle.git | PHP | 246 lines
                    
1<?php  // $Id$
                    
2///////////////////////////////////////////////////////////////////////////
                    
24
                    
25    require_once('../../config.php');
                    
26    require_once('lib.php');
                    
26    require_once('lib.php');
                    
27    require_once($CFG->libdir.'/uploadlib.php');
                    
28
                    
77    $currenttab = 'add';
                    
78    include('tabs.php');
                    
79
                    
85
                    
86        // Large files are likely to take their time and memory. Let PHP know
                    
87        // that we'll take longer, and that the process should be recycled soon
                    
104        if (!$records = data_get_records_csv($filename, $fielddelimiter, $fieldenclosure)) {
                    
105            print_error('csvfailed','data',"{$CFG->wwwroot}/mod/data/edit.php?d={$data->id}");
                    
106        } else {
                    
                
Fl_GIF_Image.cxx http://luafltk.googlecode.com/svn/trunk/ | C++ | 391 lines
                    
24//
                    
25//     http://www.fltk.org/str.php
                    
26//
                    
96  {char b[6];
                    
97  if (fread(b,1,6,GifFile)<6) {
                    
98    fclose(GifFile);
                    
                
plugins.php https://github.com/sarriaroman/Cronos-Aion.git | PHP | 389 lines
                    
1<?php
                    
2
                    
56    $fh = fopen($file, 'r');
                    
57    $sql = fread($fh, filesize($file));
                    
58    fclose($fh);
                    
179
                    
180        return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '&section=' . $section );
                    
181    } else {
                    
205
                    
206        return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '&section=' . $section . "&module=" . $module );
                    
207    } else {
                    
231
                    
232        return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '&section=' . $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) ) );
                    
                
Stream.php https://gitlab.com/ealexis.t/trends | PHP | 245 lines
                    
1<?php
                    
2namespace GuzzleHttp\Psr7;
                    
6/**
                    
7 * PHP stream implementation.
                    
8 *
                    
210
                    
211        return fread($this->stream, $length);
                    
212    }
                    
                
DiscISAM.php https://gitlab.com/ptisky/API_prestashop | PHP | 219 lines
                    
22 * @package    PHPExcel_CachedObjectStorage
                    
23 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package    PHPExcel_CachedObjectStorage
                    
34 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_CachedObjectStorage_DiscISAM extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache {
                    
37
                    
86     * @param	string			$pCoord		Coordinate address of the cell to update
                    
87     * @param	PHPExcel_Cell	$cell		Cell to update
                    
88	 * @return	void
                    
90     */
                    
91	public function addCacheData($pCoord, PHPExcel_Cell $cell) {
                    
92		if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
                    
                
Openssl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 469 lines
                    
1<?php
                    
2/**
                    
118                $file = fopen($key, 'r');
                    
119                $cert = fread($file, 8192);
                    
120                fclose($file);
                    
                
class.utils.php https://gitlab.com/sokeara/Tribal_Education | PHP | 351 lines
                    
1<?php
                    
2// Exit if accessed directly
                    
95    /** 
                    
96     *  PHP_SAPI for fcgi requires a data flush of at least 256
                    
97     *  bytes every 40 seconds or else it forces a script hault
                    
113        while (!feof($sp)) {
                    
114            $buffer = fread($sp, 512);  // use a buffer of 512 bytes
                    
115            fwrite($op, $buffer);
                    
327		//FALL BACK: Windows XP has bug with glob, 
                    
328		//add secondary check for PHP lameness
                    
329		if ($dh = opendir('.')) 
                    
                
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
                    
139        // read first 100 bytes
                    
140        $firstBytes = fread($img, 100);
                    
141
                    
145        // read next 100 bytes
                    
146        $nextBytes = fread($img, 100);
                    
147
                    
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));
                    
                
redis.php https://github.com/jlarmstrong/cake-redisdb.git | PHP | 374 lines
                    
1<?php
                    
2/*******************************************************************************
                    
2/*******************************************************************************
                    
3 * Redis PHP Bindings - http://code.google.com/p/redis/
                    
4 *
                    
5 * Copyright 2009 Ludovico Magnocavallo
                    
6 * Copyright 2009 Salvatore Sanfilippo (ported it to PHP5, fixed some bug)
                    
7 * Released under the same license as Redis.
                    
357        while ($bulklen) {
                    
358            $data = fread($this->_sock,$bulklen);
                    
359            $bulklen -= strlen($data);
                    
361        }
                    
362        $crlf = fread($this->_sock,2);
                    
363        return $buffer;
                    
                
Socket.php https://github.com/bhaumik25/zend-framework.git | PHP | 285 lines
                    
1<?php
                    
2
                    
23
                    
24require_once 'Zend/Uri/Http.php';
                    
25require_once 'Zend/Http/Client/Adapter/Interface.php';
                    
25require_once 'Zend/Http/Client/Adapter/Interface.php';
                    
26require_once 'Zend/Http/Client/Adapter/Exception.php';
                    
27
                    
29 * A sockets based (fsockopen) adapter class for Zend_Http_Client. Can be used
                    
30 * on almost every PHP environment, and does not require any special extensions.
                    
31 *
                    
204        if (isset($headers['connection']) && $headers['connection'] == 'close') {
                    
205            while ($buff = @fread($this->socket, 8192)) {
                    
206                $response .= $buff;
                    
230                    while ($left_to_read > 0) {
                    
231                        $line = @fread($this->socket, $left_to_read);
                    
232                        $chunk .= $line;
                    
                
 

Source

Language