100+ results results for 'php fclose repo:piotr-cz/joomla-framework' (448 ms)
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; 129 130 fclose($handle); 131 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); 400 401 fclose($handle); 402 }wp_loaded.php https://gitlab.com/najomie/fit-hippie | PHP | 281 lines
1<?php 2 216 @fwrite($log, $log_data); 217 @fclose($log); 218 }helper_functions.php https://github.com/craigulliott/FTP-SSH.tmbundle.git | PHP | 317 lines
1<?php 2/** 183 fwrite($pipes[0], $plist); // stdin: send the xml plist 184 fclose($pipes[0]); 185 $result = stream_get_contents($pipes[1]); // stdout: read the result 185 $result = stream_get_contents($pipes[1]); // stdout: read the result 186 fclose($pipes[1]); 187 proc_close($process); // close the process 226 227 fclose($handle); 228SMTPMailer.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 381 lines
1<?php 2 3/** 4 * @file classes/mail/SMTPMailer.inc.php 5 * 16 17// $Id: SMTPMailer.inc.php,v 1.5 2009/05/13 00:13:20 asmecher Exp $ 18 180 } 181 fclose($this->socket); 182define_pages_editor.php https://github.com/ZenMagick/zc-base.git | PHP | 270 lines
125<!-- header //--> 126<?php require(DIR_WS_INCLUDES . 'header.php'); ?> 127<!-- header_eof //--> 228 <tr> 229 <td class="smallText"><a href="<?php echo zen_href_link($_GET['filename'], 'lngdir=' . $_SESSION['language'] . '&filename=' . $filename); ?>"><b><?php echo $filename; ?></b></a></td> 230<?php 233 if ($dir) { 234 $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); 235 while ($file = $dir->read()) { 264<!-- footer //--> 265<?php require(DIR_WS_INCLUDES . 'footer.php'); ?> 266<!-- footer_eof //--> 269</html> 270<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> 271airfoil.cpp https://github.com/OP2/OP2-Common.git | C++ | 314 lines
2 * Open source copyright declaration based on BSD open source template: 3 * http://www.opensource.org/licenses/bsd-license.php 4 * 142 143 fclose(fp); 144trackback.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 372 lines
1<?php 2/** 2/** 3 * PHP Class to handle TrackBacks (send/ping, receive, retreive, detect, seed, etc...) 4 * 4 * 5 * <code><?php 6 * include('trackback_cls.php'); 11 * 12 * @version $Id: trackback_cls.php,v 1.2 2004/12/11 18:54:32 Ran Exp $ 13 * @copyright Copyright (c) 2004 Ran Aroussi (http://www.blogish.org) 14 * @author Ran Aroussi <ran@blogish.org> 15 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 16 * 95 // Close socket 96 fclose($tb_sock); 97file.php https://github.com/esumerfd/ssol_joomla.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 */ 261 } 262 fclose($fh); 263 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 toSYLK.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 450 lines
22 * @package PHPExcel_Reader 23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 42 * @package PHPExcel_Reader 43 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 44 */ 44 */ 45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader 46{ 213 /** 214 * Loads PHPExcel from file into PHPExcel instance 215 *SYLK.php https://gitlab.com/alexandresgv/siteentec | PHP | 450 lines
22 * @package PHPExcel_Reader 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 34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 42 * @package PHPExcel_Reader 43 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) 44 */ 44 */ 45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader 46{ 213 /** 214 * Loads PHPExcel from file into PHPExcel instance 215 *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 {OLE.php https://bitbucket.org/blackriver/openx.git | PHP | 410 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 3// +----------------------------------------------------------------------+ 4// | PHP Version 4 | 5// +----------------------------------------------------------------------+ 5// +----------------------------------------------------------------------+ 6// | Copyright (c) 1997-2002 The PHP Group | 7// +----------------------------------------------------------------------+ 7// +----------------------------------------------------------------------+ 8// | This source file is subject to version 2.02 of the PHP license, | 9// | that is bundled with this package in the file LICENSE, and is | 10// | available at through the world-wide-web at | 11// | http://www.php.net/license/2_02.txt. | 12// | If you did not receive a copy of the PHP license and are unable to | 13// | obtain it through the world-wide-web, please send a note to | 14// | license@php.net so we can mail you a copy immediately. | 15// +----------------------------------------------------------------------+String.php https://github.com/almonk/Deadweight-CMS-1.git | PHP | 497 lines
1<?php 2 299 fwrite($file, $output); 300 fclose($file); 301 355 if (class_exists('Dwoo_Compiler', false) === false) { 356 include DWOO_DIRECTORY . 'Dwoo/Compiler.php'; 357 } 424 } 425 return $dwoo->getCompileDir() . $this->compileId.'.d'.Dwoo::RELEASE_TAG.'.php'; 426 } 454 /** 455 * returns some php code that will check if this template has been modified or not 456 * 487 // enforce the correct mode for all directories created 488 if (strpos(PHP_OS, 'WIN') !== 0 && $baseDir !== null) { 489 $path = strtr(str_replace($baseDir, '', $path), '\\', '/');FileProfilerStorage.php https://gitlab.com/x33n/Backbone-Music-Store | PHP | 269 lines
1<?php 2/* 89 90 fclose($file); 91 170 )); 171 fclose($file); 172 }Autoload_8php_source.html https://github.com/Jasig/phpCAS.git | HTML | 58 lines
7<meta name="viewport" content="width=device-width, initial-scale=1"/> 8<title>phpCAS: CAS/Autoload.php Source File</title> 9<link href="tabs.css" rel="stylesheet" type="text/css"/> 20 <td id="projectalign" style="padding-left: 0.5em;"> 21 <div id="projectname">phpCAS 22  <span id="projectnumber">version 1.4.0</span> 34$(function() { 35 initMenu('',false,false,'search.php','Search'); 36}); 45 <div class="headertitle"> 46<div class="title">Autoload.php</div> </div> 47</div><!--header--> 48<div class="contents"> 49<a href="Autoload_8php.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <?php</div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> </div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="Autoload_8php.html#a6a42c65b5bfb8da33363e35d0b6297df"> 24</a></span> <span class="keyword">function</span> <a class="code" href="Autoload_8php.html#a6a42c65b5bfb8da33363e35d0b6297df">CAS_autoload</a>($class)</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="comment">// Static to hold the Include Path to CAS</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keyword">static</span> $include_path;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="comment">// Check only for CAS classes</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">if</span> (substr($class, 0, 4) !== <span class="stringliteral">'CAS_'</span> && substr($class, 0, 7) !== <span class="stringliteral">'PhpCas\\'</span>) {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  }</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="comment">// Setup the include path if it's not already set from a previous call</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">if</span> (empty($include_path)) {</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  $include_path = array(dirname(__DIR__));</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  }</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="comment">// Declare local variable to store the expected full path to the file</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">foreach</span> ($include_path as $path) {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  $class_path = str_replace(<span class="charliteral">'_'</span>, DIRECTORY_SEPARATOR, $class);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="comment">// PhpCas namespace mapping</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordflow">if</span> (substr($class_path, 0, 7) === <span class="stringliteral">'PhpCas\\'</span>) {</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  $class_path = <span class="stringliteral">'CAS'</span> . DIRECTORY_SEPARATOR . substr($class_path, 7);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  }</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  $file_path = $path . DIRECTORY_SEPARATOR . $class_path . <span class="stringliteral">'.php'</span>;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  $fp = @fopen($file_path, <span class="charliteral">'r'</span>, <span class="keyword">true</span>);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">if</span> ($fp) {</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  fclose($fp);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  include $file_path;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">if</span> (!class_exists($class, <span class="keyword">false</span>) && !interface_exists($class, <span class="keyword">false</span>)) {</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  die(</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">new</span> Exception(</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="stringliteral">'Class '</span> . $class . <span class="stringliteral">' was not present in '</span> .</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  $file_path .</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="stringliteral">' [CAS_autoload]'</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  )</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  );</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  }</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  }</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  $e = <span class="keyword">new</span> Exception(</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="stringliteral">'Class '</span> . $class . <span class="stringliteral">' could not be loaded from '</span> .</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  $file_path . <span class="stringliteral">', file does not exist (Path="'</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  . implode(<span class="charliteral">':'</span>, $include_path) .<span class="stringliteral">'") [CAS_autoload]'</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  );</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  $trace = $e->getTrace();</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">if</span> (isset($trace[2]) && isset($trace[2][<span class="stringliteral">'function'</span>])</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  && in_array($trace[2][<span class="stringliteral">'function'</span>], array(<span class="stringliteral">'class_exists'</span>, <span class="stringliteral">'interface_exists'</span>))</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  ) {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  }</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">if</span> (isset($trace[1]) && isset($trace[1][<span class="stringliteral">'function'</span>])</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  && in_array($trace[1][<span class="stringliteral">'function'</span>], array(<span class="stringliteral">'class_exists'</span>, <span class="stringliteral">'interface_exists'</span>))</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  ) {</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  }</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  die ((<span class="keywordtype">string</span>) $e);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> }</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment">// Set up autoload if not already configured by composer.</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">if</span> (!class_exists(<span class="stringliteral">'CAS_Client'</span>))</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> {</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  trigger_error(<span class="stringliteral">'phpCAS autoloader is deprecated. Install phpCAS using composer instead.'</span>, E_USER_DEPRECATED);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  spl_autoload_register(<span class="stringliteral">'CAS_autoload'</span>);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">if</span> (function_exists(<span class="stringliteral">'__autoload'</span>)</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  && !in_array(<span class="stringliteral">'__autoload'</span>, spl_autoload_functions())</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  ) {</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="comment">// __autoload() was being used, but now would be ignored, add</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="comment">// it to the autoload stack</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  spl_autoload_register(<span class="stringliteral">'__autoload'</span>);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  }</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> }</div><div class="ttc" id="Autoload_8php_html_a6a42c65b5bfb8da33363e35d0b6297df"><div class="ttname"><a href="Autoload_8php.html#a6a42c65b5bfb8da33363e35d0b6297df">CAS_autoload</a></div><div class="ttdeci">CAS_autoload($class)</div><div class="ttdef"><b>Definition:</b> <a href="Autoload_8php_source.html#l00024">Autoload.php:24</a></div></div> 50</div><!-- fragment --></div><!-- contents -->save_pixlr.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 249 lines
1<?php 2/* For licensing terms, see /license.txt */ 13 */ 14require_once '../inc/global.inc.php'; 15 117fwrite($handle, $contents); 118fclose($handle); 119 238if (!isset($_SESSION['exit_pixlr'])) { 239 $location = api_get_path(WEB_CODE_PATH).'document/document.php'; 240 echo '<script>window.parent.location.href="'.$location.'"</script>'; 245 ).'</div>'; 246 $location = api_get_path(WEB_CODE_PATH).'document/document.php?id='.Security::remove_XSS($_SESSION['exit_pixlr']); 247 echo '<script>window.parent.location.href="'.$location.'"</script>';proxy.php https://bitbucket.org/pixelant/aloha.git | PHP | 248 lines
1<?php 2/** 25 'headers' => getallheaders(), 26 //TODO: multipart/form-data is not handled by php://input. there 27 //doesn't seem to be a generic way to get at the raw post data for 28 //that content-type. 29 'payload' => file_get_contents('php://input'), 30); 55 //since we handle a HEAD, we don't need to proxy any contents 56 fclose($response['socket']); 57 $response['socket'] = null; 77 fpassthru($response['socket']); 78 fclose($response['socket']); 79} 150 //some other transports are available but not really supported 151 //by this script: http://php.net/manual/en/transports.inet.php 152 $scheme = $parts['scheme'] . '://';install_themes.php https://github.com/harriswong/ATutor.git | PHP | 333 lines
199 200<form name="frm_upload" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data"> 201<div class="input-form" style="width:95%;"> 222 223<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form"> 224<?php 276 <tr onmousedown="document.form['m<?php echo $i; ?>'].checked = true; rowselect(this);" id="r_<?php echo $i; ?>"> 277 <td><input type="radio" name="id" value="<?php echo $i; ?>" id="m<?php echo $i; ?>" <?php if ($installed) echo 'disabled="disabled"'; ?> /></td> 278 <td><label for="m<?php echo $i; ?>"><?php echo $theme_list_array[$i]["name"]; ?></label></td> 282 <td><?php if (file_get_contents($theme_folder.$theme_list_array[$i]["history"][0]["screenshot_file"])) { ?> 283 <img src="<?php echo $theme_folder.$theme_list_array[$i]["history"][0]["screenshot_file"]; ?>" border="1" alt="<?php echo _AT('theme_screenshot'); ?>" /> 284 <?php }?> 332 333<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?> 334prune.php https://bitbucket.org/valmy/openx.git | PHP | 199 lines
1#!/usr/bin/php -q 2<?php 33// Require the initialisation file 34// Done this way so that it works in CLI PHP 35$path = dirname(__FILE__); 35$path = dirname(__FILE__); 36require_once $path .'/../../init.php'; 37 47$existingTransFile = MAX_PATH . '/var/existing.trans.log'; 48$aFilterPattern = array('/^phpAds_hlp_/', '/^str/'); 49$transSourceVar = $GLOBALS; 104 while (($file = $oDir->read()) !== false) { 105 if ($file != "." && $file != ".." && $file != ".svn" && !strstr($file, '.lang.php')) { 106 $file = $oDir->path .'/'. $file; 149 } 150 fclose($fp); 151 } else if (!file_exists($file)) {smarty_internal_compile_if.php https://gitlab.com/flyhope/Hiblog | PHP | 221 lines
1<?php 2/** 57 if (is_array($parameter['if condition']['var'])) { 58 $_output = "<?php if (!isset(\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var']['var'] . "]) || !is_array(\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var']['var'] . "]->value)) \$_smarty_tpl->createLocalArrayVariable(" . $parameter['if condition']['var']['var'] . "$_nocache);\n"; 59 $_output .= "if (\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var']['var'] . "]->value" . $parameter['if condition']['var']['smarty_internal_index'] . " = " . $parameter['if condition']['value'] . ") {?>"; 60 } else { 61 $_output = "<?php if (!isset(\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var'] . "])) \$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var'] . "] = new Smarty_Variable(null{$_nocache});"; 62 $_output .= "if (\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var'] . "]->value = " . $parameter['if condition']['value'] . ") {?>"; 66 } else { 67 return "<?php if ({$parameter['if condition']}) {?>"; 68 } 93 94 return "<?php } else { ?>"; 95 } 151 if (is_array($parameter['if condition']['var'])) { 152 $_output = "<?php } else { if (!isset(\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var']['var'] . "]) || !is_array(\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var']['var'] . "]->value)) \$_smarty_tpl->createLocalArrayVariable(" . $parameter['if condition']['var']['var'] . "$_nocache);\n"; 153 $_output .= "if (\$_smarty_tpl->tpl_vars[" . $parameter['if condition']['var']['var'] . "]->value" . $parameter['if condition']['var']['smarty_internal_index'] . " = " . $parameter['if condition']['value'] . ") {?>";class.pop3.php https://gitlab.com/vince.omega/ajax-form | PHP | 397 lines
1<?php 2/** 2/** 3 * PHPMailer POP-Before-SMTP Authentication Class. 4 * PHP Version 5 5 * @package PHPMailer 6 * @link https://github.com/PHPMailer/PHPMailer/ 7 * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> 20/** 21 * PHPMailer POP-Before-SMTP Authentication Class. 22 * Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication. 23 * Does not support APOP. 24 * @package PHPMailer 25 * @author Richard Davey (original author) <rich@corephp.co.uk> 25 * @author Richard Davey (original author) <rich@corephp.co.uk> 26 * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> 27 * @author Jim Jagielski (jimjag) <jimjag@gmail.com>class.PluginMySQLDAO.php https://github.com/curiousmitch/ThinkUp.git | PHP | 243 lines
1<?php 2/** 3 * 4 * ThinkUp/webapp/_lib/model/class.PluginMySQLDAO.php 5 * 166 foreach ($plugin_files as $pf) { 167 foreach (glob(THINKUP_WEBAPP_PATH.'plugins/'.$pf."/controller/".$pf.".php") as $includefile) { 168 $fhandle = fopen($includefile, "r"); 169 $contents = fread($fhandle, filesize($includefile)); 170 fclose($fhandle); 171 $installed_plugin = $this->parseFileContents($contents, $pf);MisparimEdit.php https://gitlab.com/EdwinHuijsing/learnhebrew | PHP | 200 lines
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<?php 3require ("includes/configure.php"); 6$xmlFullPath = DIR_FS_XML . "mispar.xml"; 7require (DIR_FS_FUNCTIONS . "xml.php"); 8require (DIR_FS_FUNCTIONS . "functions.php"); 144 fwrite($file_handle, $content); 145 fclose($file_handle); 146 }else{recaptchalib.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 277 lines
1<?php 2/* 2/* 3 * This is a PHP library that handles calling reCAPTCHA. 4 * - Documentation and latest version 4 * - Documentation and latest version 5 * http://recaptcha.net/plugins/php/ 6 * - Get a reCAPTCHA API Key 74 $http_request .= "Content-Length: " . strlen($req) . "\r\n"; 75 $http_request .= "User-Agent: reCAPTCHA/PHP\r\n"; 76 $http_request .= "\r\n"; 87 $response .= fgets($fs, 1160); // One TCP-IP packet 88 fclose($fs); 89 $response = explode("\r\n\r\n", $response, 2); 215 if (! function_exists ("mcrypt_encrypt")) { 216 die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); 217 }mkdist.php https://bitbucket.org/luobailiang/php-src.git | PHP | 548 lines
15 16$dist_dir = $build_dir . "/php-" . phpversion(); 17$test_dir = $build_dir . "/php-test-pack-" . phpversion(); 238 "php.ini-development" => "php.ini-development", 239 "php.ini-production" => "php.ini-production", 240 "win32/install.txt" => "install.txt", 240 "win32/install.txt" => "install.txt", 241 "win32/pws-php5cgi.reg" => "pws-php5cgi.reg", 242 "win32/pws-php5isapi.reg" => "pws-php5isapi.reg", 461} 462copy('run-tests.php', $test_dir . '/run-test.php'); 463 495 496 /* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar) 497 * broken out of the tarballs */helper.php https://github.com/chrisinammo/arthurmcneil.git | PHP | 278 lines
1<?php 2/** 2/** 3 * @version $Id: helper.php 9978 2008-02-01 17:23:39Z ircmaxell $ 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 */ 46 47 // Capture PHP errors 48 $php_errormsg = 'Error Unknown'; 55 $inputHandle = @ fopen($url, "r"); 56 $error = strstr($php_errormsg,'failed to open stream:'); 57 if (!$inputHandle) {FileValidatorTest.php https://bitbucket.org/hill2steve/mobileroom.git | PHP | 329 lines
1<?php 2 17 18abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase 19{ 39 { 40 fclose($this->file); 41NetClient.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 629 lines
1<?php 2 187 */ 188 public function capturePhpErrorWithException($iErrNo, $sErrStr, $sErrFile, $iErrLine) 189 { 270 271 \set_error_handler(array(&$this, 'capturePhpErrorWithException')); 272 341 { 342 $bResult = \fclose($this->rConnect); 343Posix.php https://bitbucket.org/juan_sanchez/aiyellow.git | PHP | 387 lines
1<?php 2/** 305 306 $stream = fopen('php://stdin', 'rb'); 307 do { 309 } while (strlen($char) !== 1 || ($mask !== null && false === strstr($mask, $char))); 310 fclose($stream); 311StreamBuffer.php https://gitlab.com/isdzulqor/Slis-Dev | PHP | 321 lines
1<?php 2 105 case self::TYPE_PROCESS: 106 fclose($this->_in); 107 fclose($this->_out); 111 default: 112 fclose($this->_stream); 113 break;html.php https://github.com/gbds/revolution.git | PHP | 230 lines
1<?php 2/** 133 } 134 fclose($handle); 135 } else {Ntp.php https://github.com/Exercise/zf2.git | PHP | 434 lines
1<?php 2/** 212 if ($info['timed_out'] === true) { 213 fclose($this->_socket); 214 throw new Exception('could not connect to ' .functions.php https://bitbucket.org/samsanders/love-courage-hope.git | PHP | 384 lines
1<?php if (!defined('OT_VERSION')) exit('No direct script access allowed'); 2/** 368 /* close file */ 369 fclose( $f ); 370 return true;Include.php https://gitlab.com/bruce.ng/Professional-Ajax | PHP | 476 lines
1<?php 2/** 4* @subpackage Include 5* @version $Id: Include.php,v 1.6 2005/04/25 10:13:20 harryf Exp $ 6*/ 19* Make sure a file_get_contents() implementation exists 20* PHP backwards compatability 21*/ 23 /** 24 * @see http://www.php.net/file_get_contents 25 * @param string filename 32 $content = fread($fd, filesize($filename)); 33 fclose($fd); 34 return $content; 58/** 59* PHP shutdown function making sure Javascript is displayed 60* @package JPSpanclass-phpass.php https://gitlab.com/haque.mdmanzurul/neophix | PHP | 278 lines
1<?php 2/** 2/** 3 * Portable PHP password hashing framework. 4 * @package phpass 6 * @version 0.3 / WordPress 7 * @link http://www.openwall.com/phpass/ 8 */ 28/** 29 * Portable PHP password hashing framework. 30 * 30 * 31 * @package phpass 32 * @version 0.3 / WordPress 32 * @version 0.3 / WordPress 33 * @link http://www.openwall.com/phpass/ 34 * @since 2.5.0mod_search.php https://github.com/kelios/imshop.git | PHP | 360 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 158 { 159 if ($v == 'mod_search.php') 160 { 207 showMessage('Ошибка создания временной директории.'); 208 fclose($fh); 209 311 312 fclose($fh); 313 }media_proxy.php https://github.com/ratbird/hope.git | PHP | 247 lines
1<?php 2# Lifter010: TODO 3/** 4 * media_proxy.php - media proxy cache model 5 * 15 16require_once 'lib/datei.inc.php'; 17 157 158 fclose($handle); 159class-wp-image-editor.php https://gitlab.com/Gashler/dp | PHP | 403 lines
1<?php 2/** 347 fwrite( $fp, $contents ); 348 fclose( $fp ); 349 }package.cpp https://github.com/github-ivan/hiphop-php.git | C++ | 418 lines
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 +----------------------------------------------------------------------+ 37 38using namespace HPHP; 39using namespace std; 86 } 87 fclose(f); 88} 408 q.filterBy("run = %d", runId); 409 q.filterBy("kind IN ('PHPInclude', 'PHPTemplate')"); 410 q.execute();tpm_createek.c https://github.com/srajiv/tpm-tools.git | C | 281 lines
18 * along with this program; if not, a copy can be viewed at 19 * http://www.opensource.org/licenses/cpl1.0.php. 20 */ 119 120 fclose( infile); 121 return rc; 145 logDebug(_("%zd bytes written on file %s.\n"), iBytes, out_filename); 146 fclose( outfile ); 147 return rc; 222 } 223 fclose(outfile); 224mcu-cli.php https://gitlab.com/Slind/MCUpdater | PHP | 380 lines
1#!/usr/bin/env php 2<?php 10 * server jar. 11 * 1) Copy the default config to 'mcu-cli-config.php' 12 * 2) Edit your new config, updating at a minimum the pack url, server id, 13 * server jar, and memory settings. 14 * 3) Execute mcu-cli.php and hope for the best :) 15 * 22 23msg("MCU-CLI.php Starting..."); 24msg(date("r")); 38// load config, copying from default if one is not found 39$cfg_default_filename = "mcu-cli-config.default.php"; 40$cfg_filename = "mcu-cli-config.php"; 183 curl_close($ch); 184 fclose($fp); 185 return $fname;Preview.php https://github.com/michaelmcandrew/vaw.git | PHP | 235 lines
1<?php 2 36 37require_once 'CRM/Core/Form.php'; 38require_once 'CRM/Member/Import/Parser/Membership.php'; 220 } 221 fclose($fd); 222CSV.php https://gitlab.com/hoanghung.dev/aloads | PHP | 352 lines
27 */ 28class PHPExcel_Writer_CSV extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter 29{ 89 * 90 * @param PHPExcel $phpExcel PHPExcel object 91 */ 108 $saveDebugLog = PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->getWriteDebugLog(); 109 PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog(false); 110 $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType(); 110 $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType(); 111 PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE); 112 150 PHPExcel_Calculation::setArrayReturnType($saveArrayReturnType); 151 PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog); 152 }balanceTags.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 234 lines
1<?php 2 36 */ 37 function test_selfcloses_unclosed_basic_known_single_tags( $tag ) { 38 $this->assertEquals( "<$tag />", balanceTags( "<$tag>", true ) ); 46 */ 47 function test_selfcloses_unclosed_known_single_tags( $tag ) { 48 $this->assertEquals( "<$tag />", balanceTags( "<$tag>", true ) ); 57 */ 58 function test_selfcloses_basic_known_single_tags_having_closing_tag( $tag ) { 59 $this->assertEquals( "<$tag />", balanceTags( "<$tag></$tag>", true ) ); 68 */ 69 function test_selfcloses_known_single_tags_having_closing_tag( $tag ) { 70 $this->assertEquals( "<$tag />", balanceTags( "<$tag></$tag>", true ) );Cache.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 245 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Cache.php 20096 2010-01-06 02:05:09Z bkarwin $ 20 */ 131 // security controls are explicit 132 // require_once str_replace('_', DIRECTORY_SEPARATOR, $backendClass) . '.php'; 133 } else { 144 if (!$autoload) { 145 $file = str_replace('_', DIRECTORY_SEPARATOR, $backendClass) . '.php'; 146 if (!(self::_isReadable($file))) { 173 // security controls are explicit 174 // require_once str_replace('_', DIRECTORY_SEPARATOR, $frontendClass) . '.php'; 175 } else { 227 * Returns TRUE if the $filename is readable, or FALSE otherwise. 228 * This function uses the PHP include_path, where PHP's is_readable() 229 * does not.CSV.php https://bitbucket.org/royrutto/climatepal.git | PHP | 415 lines
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 44 */ 45class PHPExcel_Reader_CSV extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader 46{ 234 /** 235 * Loads PHPExcel from file into PHPExcel instance 236 * 237 * @param string $pFilename 238 * @param PHPExcel $objPHPExcel 239 * @return PHPExcel 241 */ 242 public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) 243 {MDB2Store.php https://github.com/DartmouthHackerClub/Monologue_Community.git | PHP | 413 lines
1<?php 2 5 * 6 * PHP versions 4 and 5 7 * 15 16require_once 'MDB2.php'; 17 20 */ 21require_once 'Auth/OpenID/Interface.php'; 22 25 */ 26require_once 'Auth/OpenID.php'; 27 30 */ 31require_once 'Auth/OpenID/Nonce.php'; 32File.php https://gitlab.com/Ltaimao/wecenter | PHP | 198 lines
1<?php 2/** 23/** Zend_Pdf_FileParserDataSource */ 24//require_once 'Zend/Pdf/FileParserDataSource.php'; 25 77 if (! (is_file($filePath) || is_link($filePath))) { 78 //require_once 'Zend/Pdf/Exception.php'; 79 throw new Zend_Pdf_Exception("Invalid file path: $filePath", 82 if (! is_readable($filePath)) { 83 //require_once 'Zend/Pdf/Exception.php'; 84 throw new Zend_Pdf_Exception("File is not readable: $filePath", 87 if (($this->_size = @filesize($filePath)) === false) { 88 //require_once 'Zend/Pdf/Exception.php'; 89 throw new Zend_Pdf_Exception("Error while obtaining file size: $filePath", 92 if (($this->_fileResource = @fopen($filePath, 'rb')) === false) { 93 //require_once 'Zend/Pdf/Exception.php'; 94 throw new Zend_Pdf_Exception("Cannot open file for reading: $filePath",prognose.php https://github.com/srahn/kvwmap.git | PHP | 299 lines
1<?php 2class prognose { 212 } 213 fclose($csvfile); 214 }rcs.php https://github.com/Excito/horde3.git | PHP | 235 lines
1<?php 2/** 6 * 7 * $Horde: framework/VC/VC/rcs.php,v 1.3.8.7 2007/12/20 13:50:17 jan Exp $ 8 * 59 fwrite($pipes[0], "\n.\n"); 60 fclose($pipes[0]); 61 64 } 65 fclose($pipes[1]); 66 proc_close($process);quick.php https://bitbucket.org/BrettZenor/quick.git | PHP | 232 lines
1<?php 2 92 $result = fread($file,filesize($path)); 93 fclose($file); 94 return $result;index.php https://github.com/karpenoktem/punbb.git | PHP | 244 lines
128else if (isset($_PHPA)) 129 $php_accelerator = '<a href="http://www.php-accelerator.co.uk/">ionCube PHP Accelerator</a>'; 130else if (ini_get('apc.enabled')) 130else if (ini_get('apc.enabled')) 131 $php_accelerator ='<a href="http://www.php.net/apc/">Alternative PHP Cache (APC)</a>'; 132else if (ini_get('zend_optimizer.optimization_level')) 204 <h3 class="ct-legend hn"><span><?php echo $lang_admin_index['Server load'] ?></span></h3> 205 <p><span><?php echo $server_load ?> (<?php echo $num_online.' '.$lang_admin_index['users online']?>)</span></p> 206 </div> 213 <li><span><?php echo $lang_admin_index['Operating system'] ?>: <?php echo PHP_OS ?></span></li> 214 <li><span>PHP: <?php echo PHP_VERSION ?> - <a href="<?php echo forum_link($forum_url['admin_index']) ?>?action=phpinfo"><?php echo $lang_admin_index['Show info'] ?></a></span></li> 215 <li><span><?php echo $lang_admin_index['Accelerator'] ?>: <?php echo $php_accelerator ?></span></li> 226 <li><span><?php echo $lang_admin_index['Rows'] ?>: <?php echo forum_number_format($total_records) ?></span></li> 227 <li><span><?php echo $lang_admin_index['Size'] ?>: <?php echo $total_size ?></span></li> 228<?php endif; ?>file.php https://github.com/Lurttinen/customisation-db.git | PHP | 509 lines
1<?php 2/** 200 // We have also a write-only mode. 201 fclose( $b ); 202 265 { 266 fclose( $this->fp ); 267 $this->fp = @fopen( $this->fileName, "ab" ); 285 { 286 fclose( $this->fp ); 287 317 * 318 * PHP system touch doesn't work correctly with the compress.zlib file. 319 * 372 { 373 fclose( $this->fp ); 374 $this->fp = fopen( $this->fileMetaData["uri"], $this->fileMetaData["mode"] );recaptchalib.php https://bitbucket.org/Mainboarder/s2firewall.git | PHP | 277 lines
1<?php 2/* 2/* 3 * This is a PHP library that handles calling reCAPTCHA. 4 * - Documentation and latest version 4 * - Documentation and latest version 5 * http://recaptcha.net/plugins/php/ 6 * - Get a reCAPTCHA API Key 74 $http_request .= "Content-Length: " . strlen($req) . "\r\n"; 75 $http_request .= "User-Agent: reCAPTCHA/PHP\r\n"; 76 $http_request .= "\r\n"; 87 $response .= fgets($fs, 1160); // One TCP-IP packet 88 fclose($fs); 89 $response = explode("\r\n\r\n", $response, 2); 215 if (! function_exists ("mcrypt_encrypt")) { 216 die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); 217 }lxportmonitor.php https://github.com/lxcenter/hypervm.git | PHP | 526 lines
1<?php 2 243 244 $ch = curl_init("http://$raddress:$port/htmllib/mibin/monitordata.php"); 245 curl_setopt($ch, CURLOPT_POST, true); 278 } else { 279 fclose($res); 280 $obj['portstatus'] = 'on'; 398 if ($ret === true || $err === 10056 || $err === 0) { 399 fclose($data[2]); 400 $data[2] = null; 462 463 $val = @ file_get_contents("commands.php"); 464 if ($val === "2") {Filesystem.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 234 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_File */ 24require_once 'Zend/Search/Lucene/Storage/File.php'; 25 50 { 51 global $php_errormsg; 52 54 // opening for reading non-readable file 55 require_once 'Zend/Search/Lucene/Exception.php'; 56 throw new Zend_Search_Lucene_Exception( 'File \'' . $filename . '\' is not readable.' ); 65 ini_set('track_errors', $trackErrors); 66 require_once 'Zend/Search/Lucene/Exception.php'; 67 throw new Zend_Search_Lucene_Exception( $php_errormsg );progressive_parser.class.php https://github.com/kpike/moodle.git | PHP | 283 lines
1<?php 2 51 * 52 * TODO: Finish phpdocs 53 */ 55 56 protected $xml_parser; // PHP's low level XML SAX parser 57 protected $file; // full path to file being progressively parsed | => mutually exclusive 138 } 139 fclose($fh); 140 } else {Process.php https://github.com/agustinc/SemdropsMobile.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')) { 126 if (null === $this->stdin) { 127 fclose($pipes[0]); 128 $writePipes = null;Mail.php https://github.com/wrobel/horde.git | PHP | 264 lines
1<?php 2/** 7 * See the enclosed file LICENSE for license information (BSD). If you 8 * did not receive this file, see http://www.horde.org/licenses/bsdl.php. 9 * 152 fwrite($fp, $part->getContents()); 153 fclose($fp); 154 $part_name = $part->getName(true);category.php https://gitlab.com/Raymon/QualityCaps_PHP | PHP | 282 lines
1<?php 2// 'category' object 156 fwrite($file, $errorInfor[2] . date('d/m/Y == H:i:s') ."\r\n" ); 157 fclose($file); 158 return false;HttpClient.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 352 lines
1<?php 2/** 25 */ 26require_once 'Zend/Http/Client.php'; 27 100 if (!$fp) { 101 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 102 throw new Zend_Gdata_App_InvalidArgumentException('Failed to open private key file for AuthSub.'); 109 $this->setAuthSubPrivateKey($key, $passphrase); 110 fclose($fp); 111 } 115 * 116 * In order to call this method, openssl must be enabled in your PHP 117 * installation. Otherwise, a Zend_Gdata_App_InvalidArgumentException 126 if ($key != null && !function_exists('openssl_pkey_get_private')) { 127 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 128 throw new Zend_Gdata_App_InvalidArgumentException(Reports.php https://gitlab.com/dmsapiens/physicians | PHP | 327 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 309 header( 'Content-Disposition: attachment;filename=report'.$filename); 310 $fp = fopen('php://output', 'w'); 311 323 324 fclose($fp); 325 exit;functions.recaptchalib.php https://github.com/dkobia/Garden.git | PHP | 278 lines
1<?php 2/* 2/* 3 * This is a PHP library that handles calling reCAPTCHA. 4 * - Documentation and latest version 4 * - Documentation and latest version 5 * http://recaptcha.net/plugins/php/ 6 * - Get a reCAPTCHA API Key 74 $http_request .= "Content-Length: " . strlen($req) . "\r\n"; 75 $http_request .= "User-Agent: reCAPTCHA/PHP\r\n"; 76 $http_request .= "\r\n"; 87 $response .= fgets($fs, 1160); // One TCP-IP packet 88 fclose($fs); 89 $response = explode("\r\n\r\n", $response, 2); 216 if (! function_exists ("mcrypt_encrypt")) { 217 die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); 218 }PluginBase.php https://gitlab.com/matthww/Elywing | PHP | 298 lines
1<?php 2 173 * Gets an embedded resource on the plugin file. 174 * WARNING: You must close the resource given using fclose() 175 * 213 $ret = stream_copy_to_stream($resource, $fp = fopen($out, "wb")) > 0; 214 fclose($fp); 215 fclose($resource); 261 $this->config->setDefaults(yaml_parse(config::fixYAMLIndexes(stream_get_contents($configStream)))); 262 fclose($configStream); 263 }Maildir.php https://github.com/Shreef/zf2.git | PHP | 429 lines
1<?php 2/** 199 200 fclose($fh); 201 return $content; 228 $content = stream_get_contents($fh); 229 fclose($fh); 230 return $content;Ftp.php https://gitlab.com/puntodos/ean-landings | PHP | 448 lines
1<?php 2 186 { 187 $stream = fopen('php://temp', 'w+b'); 188 fwrite($stream, $contents); 190 $result = $this->writeStream($path, $stream, $config); 191 fclose($stream); 192 386 $object['contents'] = stream_get_contents($object['stream']); 387 fclose($object['stream']); 388 unset($object['stream']); 397 { 398 $stream = fopen('php://temp', 'w+'); 399 $result = ftp_fget($this->getConnection(), $stream, $path, $this->transferMode); 402 if ( ! $result) { 403 fclose($stream); 404admin.php https://github.com/gcao/ucenter.git | PHP | 179 lines
1<?php 2 6 7 $Id: admin.php 845 2008-12-08 05:36:51Z zhaoxiongfei $ 8*/ 28 29 //include_once UC_ROOT.'view/default/admin.lang.php'; 30 $status = 0; 84 if(UC_FOUNDERPW == md5(md5($oldpw).UC_FOUNDERSALT)) { 85 $configfile = UC_ROOT.'./data/config.inc.php'; 86 if(!is_writable($configfile)) { 98 @fwrite($fp, $config); 99 @fclose($fp); 100 $status = 2; 120 $userlist = $this->db->fetch_all("SELECT a.*,m.* FROM ".UC_DBTABLEPRE."admins a LEFT JOIN ".UC_DBTABLEPRE."members m USING(uid) LIMIT $start, $ppp"); 121 $multipage = $this->page($totalnum, $ppp, $page, 'admin.php?m=admin&a=admin'); 122 if($userlist) {fileio.cpp https://github.com/o1iver/Code-Backup.git | C++ | 620 lines
57as_value fileio_puts(const fn_call& fn); 58as_value fileio_fclose(const fn_call& fn); 59as_value fileio_getchar(const fn_call& fn); 69// Maybe this should be moved to a dedicated extension and a different class? 70// The scandir() syntax comes from PHP, since the C syntax is not quite 71// applicable in ActionScript. 93 bool fputs(const std::string &str); 94 int fclose(); 95 int fflush(); 130 obj.init_member("feof", gl.createFunction(fileio_feof)); 131 obj.init_member("fclose", gl.createFunction(fileio_fclose)); 132 164// GNASH_REPORT_FUNCTION; 165 fclose(); 166}RecipientImportField.php https://github.com/lenix/silverstripe-newsletter.git | PHP | 397 lines
1<?php 2 115 116 fclose( $tempFile ); 117class.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 117 // close handles 118 fclose($op); 119 fclose($sp); 300 if ($connected){ 301 @fclose($connected); 302 return true; 327 //FALL BACK: Windows XP has bug with glob, 328 //add secondary check for PHP lameness 329 if ($dh = opendir('.'))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 211 212 fclose($fpDestination); 213file_helper.php https://gitlab.com/lisit1003/TTPHPServer | 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 * 66 flock($fp, LOCK_UN); 67 fclose($fp); 68 97 flock($fp, LOCK_UN); 98 fclose($fp); 99 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 fileautoload.php https://gitlab.com/ilya.webcity/anna | PHP | 196 lines
18 * 3. Any custom integration code. If you use any global variables 19 * here, they can be accessed in config.php via $GLOBALS array. 20 * It's recommended to use constants instead. 23 24// PHP VERSION CHECK 25if (substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.')) < 5) 25if (substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.')) < 5) 26 die("You are using PHP " . PHP_VERSION . " when KCFinder require at least version 5! Some systems has an option to change the active PHP version. Please refer to your hosting provider or upgrade your PHP distribution."); 27 30if (ini_get("safe_mode")) 31 die("The \"safe_mode\" PHP ini setting is turned on! You cannot run KCFinder in safe mode."); 32 46 elseif ($class == "browser") 47 require "core/browser.php"; 48 elseif (file_exists("core/types/$class.php"))pwp.c https://bitbucket.org/wallwizz/imagemagick-6.8.4-for-bb10.git | C | 319 lines
25% % 26% http://www.imagemagick.org/script/license.php % 27% % 215 } 216 (void) fclose(file); 217 next_image=ReadImage(read_info,exception);helper.php https://github.com/DanielTichy/plagat.com.git | PHP | 278 lines
1<?php 2/** 2/** 3 * @version $Id: helper.php 10381 2008-06-01 03:35:53Z pasamio $ 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 */ 46 47 // Capture PHP errors 48 $php_errormsg = 'Error Unknown'; 55 $inputHandle = @ fopen($url, "r"); 56 $error = strstr($php_errormsg,'failed to open stream:'); 57 if (!$inputHandle) {base.php https://github.com/mx504/Provisioner.git | PHP | 135 lines
1<?PHP 2/** 18 $pass = (isset($this->options['admin_pass']) ? $this->options['admin_pass'] : 'admin'); 19 //This is lame. I need to do this in php not over the command line. etc, I AM THE LAME. 20 exec('curl -c cookies.txt -d"P2='.$pass.'&Login=Login&gnkey=0b82" http://'.$ip.'/dologin.htm'); 29 fwrite($fp, $data); 30 fclose($fp); 31 35 $contents = stream_get_contents($handle); 36 fclose($handle); 37 unlink($this->root_dir. self::$modules_path . $this->brand_name . "/" . $this->family_line . "/cfg".$this->mac); 65 } 66 fclose ($f); 67Log.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 247 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 119 $this->_file_ext = (isset($config['log_file_extension']) && $config['log_file_extension'] !== '') 120 ? ltrim($config['log_file_extension'], '.') : 'php'; 121 181 $newfile = TRUE; 182 // Only add protection to php files 183 if ($this->_file_ext === 'php') 184 { 185 $message .= "<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>\n\n"; 186 } 219 flock($fp, LOCK_UN); 220 fclose($fp); 221Stream.php https://gitlab.com/ealexis.t/trends | PHP | 245 lines
1<?php 2namespace GuzzleHttp\Psr7; 6/** 7 * PHP stream implementation. 8 * 114 if (is_resource($this->stream)) { 115 fclose($this->stream); 116 }share.php https://gitlab.com/AaronDeb/cloudbox | PHP | 190 lines
1<?PHP 2include 'init.php'; 62 } 63 fclose($fh); 64DiscISAM.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)) {rcs.php https://github.com/wrobel/horde-fw3.git | PHP | 235 lines
1<?php 2/** 6 * 7 * $Horde: framework/VC/VC/rcs.php,v 1.3.8.7 2007-12-20 13:50:17 jan Exp $ 8 * 59 fwrite($pipes[0], "\n.\n"); 60 fclose($pipes[0]); 61 64 } 65 fclose($pipes[1]); 66 proc_close($process);kanji-encoding.lib.php https://github.com/drbowen/openemr.git | PHP | 161 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 6 * 7 * PHP4 configure requirements: 8 * --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex 11 * 12 * @package PhpMyAdmin 13 */ 13 */ 14if (! defined('PHPMYADMIN')) { 15 exit; 18/** 19 * Gets the php internal encoding codes and sets the available encoding 20 * codes list 125 PMA_change_enc_order(); 126 fclose($fps); 127 fclose($fpd);message_output_jabber.php https://github.com/dhamma-dev/SEA.git | PHP | 156 lines
1<?php 2 33 34require_once($CFG->dirroot.'/message/output/lib.php'); 35require_once($CFG->libdir.'/jabber/XMPP/XMPP.php'); 48 if (!empty($CFG->noemailever)) { 49 // hidden setting for development sites, set in config.php if needed 50 debugging('$CFG->noemailever active, no jabber message sent.', DEBUG_MINIMAL); 53 54 //hold onto jabber id preference because /admin/cron.php sends a lot of messages at once 55 static $jabberaddresses = array(); 69 70 $conn = new XMPPHP_XMPP($CFG->jabberhost,$CFG->jabberport,$CFG->jabberusername,$CFG->jabberpassword,'moodle',$CFG->jabberserver); 71 78 $conn->disconnect(); 79 } catch(XMPPHP_Exception $e) { 80 debugging($e->getMessage());class-zip.php https://gitlab.com/endomorphosis/falkenstein | PHP | 306 lines
1<?php 2 101 if (!is_array($files) || 0 == count($files)) { 102 fclose($pipes[0]); 103 $write = array(); 113 fwrite($pipes[0], $file."\n"); 114 if (0 == count($files)) fclose($pipes[0]); 115 } 151 152 fclose($pipes[1]); 153 fclose($pipes[2]); 217 public function open($path, $flags = 0) { 218 if(!class_exists('PclZip')) include_once(ABSPATH.'/wp-admin/includes/class-pclzip.php'); 219 if(!class_exists('PclZip')) {paypal_payment_helper.php https://github.com/katzgrau/notes.git | PHP | 137 lines
1<?php 2 82 83 fclose ($fp); 84 }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{ 27 if (is_resource($this->stream) === true) { 28 fclose($this->stream); 29 } 42 { 43 $stream = fopen('php://temp', $mode); 44 fwrite($stream, $this->text);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. 40 public function disconnect() { 41 if ($this->_sock) @fclose($this->_sock); 42 $this->_sock = null;helper.php https://bitbucket.org/VirtualReality/joomla.git | PHP | 201 lines
1<?php 2defined('_JEXEC') or die('Direct Access to this location is not allowed.'); 31 32 header("Location: /send_to_paypal.php"); 33 return ""; 149 } else{ 150 if ($fp) fclose($fp); 151 return false; 153 $response = @stream_get_contents($fp); 154 if ($fp) fclose($fp); 155 return $response;netapp-storage-action.php https://github.com/qyjohn/openqrm.git | PHP | 121 lines
1<?php 2/* 23$RootDir = $_SERVER["DOCUMENT_ROOT"].'/openqrm/base/'; 24require_once "$RootDir/include/openqrm-database-functions.php"; 25require_once "$RootDir/include/user.inc.php"; 25require_once "$RootDir/include/user.inc.php"; 26require_once "$RootDir/include/openqrm-server-config.php"; 27require_once "$RootDir/class/storage.class.php"; 27require_once "$RootDir/class/storage.class.php"; 28require_once "$RootDir/class/resource.class.php"; 29require_once "$RootDir/class/deployment.class.php"; 29require_once "$RootDir/class/deployment.class.php"; 30require_once "$RootDir/class/event.class.php"; 31require_once "$RootDir/class/authblocker.class.php"; 31require_once "$RootDir/class/authblocker.class.php"; 32require_once "$RootDir/class/openqrm_server.class.php"; 33require_once "$RootDir/include/htmlobject.inc.php";index.ajx.php https://github.com/messyo/rEmote.git | PHP | 201 lines
1<?php 2 6 7require_once(TO_ROOT.'inc/global.php'); 8 23define('IS_REFRESH', true); 24require_once(TO_ROOT.'inc/defines/torrent.php'); 25require_once(TO_ROOT.'inc/functions/list.fun.php'); 25require_once(TO_ROOT.'inc/functions/list.fun.php'); 26require_once(TO_ROOT.'inc/boxarea.php'); 27session_write_close(); 71 $loads = explode(' ', fgets($l)); 72 fclose($l); 73 $perc = $loads[0] > 1 ? 100 : ($loads[0]*100);Csv.php https://bitbucket.org/kdms/sh-magento.git | PHP | 142 lines
1<?php 2/** 90 } 91 fclose($fp); 92 unset($sessionId);File.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 274 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) 2010 Magento Inc. (http://www.magentocommerce.com) 24* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25*/ 240 { 241 fclose($this->_fileHandler); 242 }Printer.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 173 lines
1<?php 2/* 2/* 3 * This file is part of PHPUnit. 4 * 4 * 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 6 * 13 * 14 * @author Sebastian Bergmann <sebastian@phpunit.de> 15 * @copyright Sebastian Bergmann <sebastian@phpunit.de> 16 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 17 * @link http://www.phpunit.de/ 18 * @since Class available since Release 2.0.0 19 */ 20class PHPUnit_Util_Printer 21{akismet.php https://github.com/micz/elencode.git | PHP | 309 lines
1<?php 2/* 28 <div> 29 <input class="text" name="akismet_key" id="akismet_key" value="<?php bb_form_option('akismet_key'); ?>" /> 30 <p><?php _e('You do not need a key to run bbPress, but if you want to take advantage of Akismet\'s powerful spam blocking, you\'ll need one.'); ?></p> 30 <p><?php _e('You do not need a key to run bbPress, but if you want to take advantage of Akismet\'s powerful spam blocking, you\'ll need one.'); ?></p> 31 <p><?php _e('You can get an Akismet key at <a href="http://wordpress.com/api-keys/">WordPress.com</a>') ?></p> 32 </div> 41</form> 42<?php 43} 107 $response .= fgets($fs, 1160); // One TCP-IP packet 108 fclose($fs); 109 $response = explode("\r\n\r\n", $response, 2); 272 if ( !bb_akismet_verify_key( bb_get_option( 'akismet_key' ) ) ) : ?> 273<div class="error"><p><?php printf(__('The API key you have specified is invalid. Please double check the <strong>Akismet Key</strong> set in <a href="%s">Akismet configuration</a>. If you don\'t have an API key yet, you can get one at <a href="%s">WordPress.com</a>.'), 'admin-base.php?plugin=bb_ksd_configuration_page', 'http://wordpress.com/api-keys/'); ?></p></div> 274<?php endif;Stream.php https://github.com/digitalstrategyworks/Reese-WordPress.git | PHP | 235 lines
1<?php 2 18 * @subpackage Response 19 * @version $Id: Response.php 17131 2009-07-26 10:03:39Z shahar $ 20 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) 219 } 220 fclose($this->stream); 221 $this->stream = null; 226 if(is_resource($this->stream)) { 227 fclose($this->stream); 228 $this->stream = null;file.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 339 lines
1<?php 2/** 2/** 3 * $Header: /repository/pear/Log/Log/file.php,v 1.46 2006/12/07 04:15:02 jon Exp $ 4 * 12 * 13 * @author Jon Parise <jon@php.net> 14 * @author Roman Neuhauser <neuhauser@bellavista.cz> 17 * 18 * @example file.php Using the file handler. 19 */ 26 */ 27 var $_filename = 'php.log'; 28 142 } else { 143 $this->_eol = (strstr(PHP_OS, 'WIN')) ? "\r\n" : "\n"; 144 }FileStorage.php https://github.com/vohnicky/treeview.git | PHP | 451 lines
1<?php 2 6 * @copyright Copyright (c) 2004, 2010 David Grudl 7 * @license http://nettephp.com/license Nette license 8 * @link http://nettephp.com 106 if ($meta && $this->verify($meta)) { 107 return $this->readData($meta); // calls fclose() 108 228 $head = serialize($meta) . '?>'; 229 $head = '<?php //netteCache[01]' . str_pad((string) strlen($head), 6, '0', STR_PAD_LEFT) . $head; 230 $headLen = strlen($head); 246 247 fclose($handle); 248 return TRUE; 303 304 fclose($meta[self::HANDLE]); 305 }streams.php https://bitbucket.org/zenoalbisser/webkit.git | PHP | 191 lines
1<?php 2/** 2/** 3 * PHP-Gettext External Library: StreamReader classes 4 * 5 * @package External 6 * @subpackage PHP-gettext 7 * 10 11 This file is part of PHP-gettext. 12 12 13 PHP-gettext is free software; you can redistribute it and/or modify 14 it under the terms of the GNU General Public License as published by 17 18 PHP-gettext is distributed in the hope that it will be useful, 19 but WITHOUT ANY WARRANTY; without even the implied warranty offunction.imap-mail-compose.html https://bitbucket.org/thncr/manuals.git | HTML | 104 lines
11 <div class="up"><a href="ref.imap.html">IMAP 函数</a></div> 12 <div class="home"><a href="index.html">PHP Manual</a></div> 13</div><hr /><div id="function.imap-mail-compose" class="refentry"> 15 <h1 class="refname">imap_mail_compose</h1> 16 <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">imap_mail_compose</span> — <span class="dc-title">Create a MIME message based on given envelope and body sections</span></p> 17 89<div class="phpcode"><code><span style="color: #000000"> 90<span style="color: #0000BB"><?php<br /><br />$envelope</span><span style="color: #007700">[</span><span style="color: #DD0000">"from"</span><span style="color: #007700">]= </span><span style="color: #DD0000">"joe@example.com"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$envelope</span><span style="color: #007700">[</span><span style="color: #DD0000">"to"</span><span style="color: #007700">] = </span><span style="color: #DD0000">"foo@example.com"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$envelope</span><span style="color: #007700">[</span><span style="color: #DD0000">"cc"</span><span style="color: #007700">] = </span><span style="color: #DD0000">"bar@example.com"</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$part1</span><span style="color: #007700">[</span><span style="color: #DD0000">"type"</span><span style="color: #007700">] = </span><span style="color: #0000BB">TYPEMULTIPART</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$part1</span><span style="color: #007700">[</span><span style="color: #DD0000">"subtype"</span><span style="color: #007700">] = </span><span style="color: #DD0000">"mixed"</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$filename </span><span style="color: #007700">= </span><span style="color: #DD0000">"/tmp/imap.c.gz"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$fp </span><span style="color: #007700">= </span><span style="color: #0000BB">fopen</span><span style="color: #007700">(</span><span style="color: #0000BB">$filename</span><span style="color: #007700">, </span><span style="color: #DD0000">"r"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$contents </span><span style="color: #007700">= </span><span style="color: #0000BB">fread</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">, </span><span style="color: #0000BB">filesize</span><span style="color: #007700">(</span><span style="color: #0000BB">$filename</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">fclose</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$part2</span><span style="color: #007700">[</span><span style="color: #DD0000">"type"</span><span style="color: #007700">] = </span><span style="color: #0000BB">TYPEAPPLICATION</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$part2</span><span style="color: #007700">[</span><span style="color: #DD0000">"encoding"</span><span style="color: #007700">] = </span><span style="color: #0000BB">ENCBINARY</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$part2</span><span style="color: #007700">[</span><span style="color: #DD0000">"subtype"</span><span style="color: #007700">] = </span><span style="color: #DD0000">"octet-stream"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$part2</span><span style="color: #007700">[</span><span style="color: #DD0000">"description"</span><span style="color: #007700">] = </span><span style="color: #0000BB">basename</span><span style="color: #007700">(</span><span style="color: #0000BB">$filename</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$part2</span><span style="color: #007700">[</span><span style="color: #DD0000">"contents.data"</span><span style="color: #007700">] = </span><span style="color: #0000BB">$contents</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$part3</span><span style="color: #007700">[</span><span style="color: #DD0000">"type"</span><span style="color: #007700">] = </span><span style="color: #0000BB">TYPETEXT</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$part3</span><span style="color: #007700">[</span><span style="color: #DD0000">"subtype"</span><span style="color: #007700">] = </span><span style="color: #DD0000">"plain"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$part3</span><span style="color: #007700">[</span><span style="color: #DD0000">"description"</span><span style="color: #007700">] = </span><span style="color: #DD0000">"description3"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$part3</span><span style="color: #007700">[</span><span style="color: #DD0000">"contents.data"</span><span style="color: #007700">] = </span><span style="color: #DD0000">"contents.data3\n\n\n\t"</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$body</span><span style="color: #007700">[</span><span style="color: #0000BB">1</span><span style="color: #007700">] = </span><span style="color: #0000BB">$part1</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$body</span><span style="color: #007700">[</span><span style="color: #0000BB">2</span><span style="color: #007700">] = </span><span style="color: #0000BB">$part2</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$body</span><span style="color: #007700">[</span><span style="color: #0000BB">3</span><span style="color: #007700">] = </span><span style="color: #0000BB">$part3</span><span style="color: #007700">;<br /><br />echo </span><span style="color: #0000BB">nl2br</span><span style="color: #007700">(</span><span style="color: #0000BB">imap_mail_compose</span><span style="color: #007700">(</span><span style="color: #0000BB">$envelope</span><span style="color: #007700">, </span><span style="color: #0000BB">$body</span><span style="color: #007700">));<br /><br /></span><span style="color: #0000BB">?></span> 91</span> 102 <div class="up"><a href="ref.imap.html">IMAP 函数</a></div> 103 <div class="home"><a href="index.html">PHP Manual</a></div> 104</div></body></html>Database.php https://github.com/ckdimka/core.git | PHP | 419 lines
1<?php 2// vim: set ts=4 sw=4 sts=4 et: 11 * It is also available through the world-wide-web at this URL: 12 * http://opensource.org/licenses/osl-3.0.php 13 * If you did not receive a copy of the license and are unable to 16 * 17 * PHP version 5.3.0 18 * 21 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved 22 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 23 * @link http://www.litecommerce.com/ 365 366 } while (substr($c, $endPos) != PHP_EOL && !feof($fp)); 367 413 414 fclose($fp); 415 }Mbox.php https://github.com/kervin/kyzstudio.git | PHP | 447 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Mbox.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 27 */ 28// #require_once 'Zend/Loader.php'; 29 32 */ 33#require_once 'Zend/Mail/Storage/Abstract.php'; 34 37 */ 38#require_once 'Zend/Mail/Message/File.php'; 39 126 */ 127 #require_once 'Zend/Mail/Storage/Exception.php'; 128 throw new Zend_Mail_Storage_Exception('id does not exist');ext_imagick.cpp https://github.com/tstarling/hiphop-php.git | C++ | 359 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | 6 | Copyright (c) 1997-2010 The PHP Group | 7 +----------------------------------------------------------------------+ 7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.txt | 12 | If you did not receive a copy of the PHP license and are unable to | 13 | obtain it through the world-wide-web, please send a note to | 14 | license@php.net so we can mail you a copy immediately. | 15 +----------------------------------------------------------------------+Error.php https://bitbucket.org/vaneves/repono.git | PHP | 220 lines
1<?php 2/* 16 /** 17 * Método que é executado quando ocorre algum erro no PHP 18 * @param int $type tipo do erro, que pode ser E_STRICT 65 /** 66 * Método executado quando ocorre algum erro fatal no PHP, esse método é chamado 67 * antes que o PHP pare a execução da página 97 if (Debug::enabled()) 98 return require_once root . 'core/error/debug.php'; 99 100 $files = array(); 101 $files[0] = root . 'app/views/_error/' . $number . '.php'; 102 $files[1] = root . 'core/error/default.php'; 182 } 183 fclose($handle); 184 }EntityManagerTest.php https://github.com/dlondero/fantamanager.git | PHP | 158 lines
1<?php 2 4 5require_once __DIR__ . '/../TestInit.php'; 6 123 124 static public function dataAffectedByErrorIfClosedException() 125 { 135 /** 136 * @dataProvider dataAffectedByErrorIfClosedException 137 * @param string $methodName 138 */ 139 public function testAffectedByErrorIfClosedException($methodName) 140 {File.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 274 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 240 { 241 fclose($this->_fileHandler); 242 }