100+ results results for 'php fputs repo:jjasko/opencart_serbian' (943 ms)
1<?php 2/* 6 */ 7include(dirname(__FILE__).'/../../config/config.inc.php'); 8include(dirname(__FILE__).'/paybox.php'); 69 if(_PS_VERSION_ < '1.5') 70 Tools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?id_cart='.intval($cart->id).'&id_module='.intval($paybox->id).'&id_order='.$order->id.'&key='.$order->secure_key); 71 else 71 else 72 Tools::redirect(__PS_BASE_URI__.'index.php?controller=order-confirmation&id_cart='.$cart->id.'&id_module='.$paybox->id.'&id_order='.Order::getOrderByCartId(intval($cart->id)).'&key='.$customer->secure_key); 73 } else { 73 } else { 74 Tools::redirectLink(__PS_BASE_URI__.'history.php'); 75 } 76 } 77Tools::redirectLink(__PS_BASE_URI__.'history.php'); 78function verification_ip_appelant() {civicrm.php https://github.com/michaelmcandrew/lbc.git | PHP | 270 lines
1<?php 2 71 } 72 fputs( $fd, $buffer ); 73 fclose( $fd ); 112 $siteDir . DIRECTORY_SEPARATOR . 113 'civicrm.settings.php'; 114 } elseif( $installType == 'wordpress' ) { 116 $cmsPath . DIRECTORY_SEPARATOR . 117 'civicrm.settings.php'; 118 } 127 128 require_once "$crmPath/packages/DB.php"; 129 214 215 $str = file_get_contents( $tplPath . 'civicrm.settings.php.tpl' ); 216 foreach ( $params as $key => $value ) {spx_edit.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 132 lines
1<?php 2/*------------------------------------------------------------------------------ 12 13 The Original Code is fun_edit.php, released on 2003-03-31. 14 57 if($fp===false) show_error(basename($file_name).": "._T('spixplorer:savefile')); 58 fputs($fp, $code); 59 @fclose($fp);ssl.inc.php https://github.com/axxtel/agilebill.git | PHP | 186 lines
1<?php 2 23{ 24 include_once('../../config.inc.php'); 25 $test = new CORE_ssl; 38 if ( function_exists('curl_init') && $curl_version = curl_version()) { 39 if ( phpversion() >= 5 ) { 40 if (preg_match('/openssl/i', @$curl_version['ssl_version'] )) 47 48 if (phpversion() >= '4.3.0') 49 if (function_exists("fsockopen") ) 60 } elseif ( @$this->connect_curl_module ) { 61 echo 'Using Curl PHP Module: '; 62 echo $this->connect('www.amazon.com', '', '', true, 1); 63 } elseif ( @$this->connect_fsockopen ) { 64 echo 'Using PHP fsockopen() function + openssl_public_decrypt(): '; 65 echo $this->connect('www.amazon.com', '', '', true, 1);compatibility_helper.php https://github.com/lckamal/FUEL-CMS.git | PHP | 202 lines
34 * another option http://derekallard.com/blog/post/using-json-on-servers-without-native-support/ 35 * Original function found here: http://php.net/manual/en/function.json-encode.php 36 * 37 * @access public 38 * @param mixed php value to encode into JSON format 39 * @return string 89/** 90 * Used for older versions of PHP that don't support json_decode. 91 * another option http://derekallard.com/blog/post/using-json-on-servers-without-native-support/ 91 * another option http://derekallard.com/blog/post/using-json-on-servers-without-native-support/ 92 * Original function found here: http://php.net/manual/en/function.json-decode.php 93 * 143 * Used for older versions of PHP that don't support str_getcsv. 144 * Original function found here: http://php.net/manual/en/function.str-getcsv.php 145 *mail.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 406 lines
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; 169 if (substr($this->hostname, 0, 3) == 'tls') { 170 fputs($handle, 'STARTTLS' . $this->crlf); 171 254 } else { 255 fputs($handle, 'HELO ' . getenv('SERVER_NAME') . $this->crlf); 256 275 } else { 276 fputs($handle, 'MAIL FROM: <' . $this->from . '>' . $this->crlf); 277 } 294 if (!is_array($this->to)) { 295 fputs($handle, 'RCPT TO: <' . $this->to . '>' . $this->crlf); 296webformmailer.php https://github.com/wesleyzhao/trailertrack.git | PHP | 218 lines
1<?php 2 149 } 150 fputs($fp,"$csvkeys\n"); 151 fputs($fp,"$csvvals\n"); 153 case ".html": 154 fputs($fp,"<table border=\"1\" cellspacing=\"1\" cellpadding=\"2\">\n"); 155 break; 156 case ".xml": 157 fputs($fp,"<form>\n"); 158 break; 174 case ".html": 175 fputs($fp,"\t<tr>\n"); 176 fputs($fp,"\t\t<td><b>$key</b></td>\n"); 176 fputs($fp,"\t\t<td><b>$key</b></td>\n"); 177 fputs($fp,"\t\t<td>$val</td>\n"); 178 fputs($fp,"\t</tr>\n");mail.php https://gitlab.com/2202Programming/navxmxp | PHP | 406 lines
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; 169 if (substr($this->hostname, 0, 3) == 'tls') { 170 fputs($handle, 'STARTTLS' . $this->crlf); 171 254 } else { 255 fputs($handle, 'HELO ' . getenv('SERVER_NAME') . $this->crlf); 256 275 } else { 276 fputs($handle, 'MAIL FROM: <' . $this->from . '>' . $this->crlf); 277 } 294 if (!is_array($this->to)) { 295 fputs($handle, 'RCPT TO: <' . $this->to . '>' . $this->crlf); 296version_helper.php https://bitbucket.org/tdevonshire/guinness-jazz-festival.git | PHP | 250 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 58 { 59 fputs($fp,"GET ".$dl_page_url." HTTP/1.0\r\n" ); 60 fputs($fp,"Host: ".$target['host'] . "\r\n" ); 60 fputs($fp,"Host: ".$target['host'] . "\r\n" ); 61 fputs($fp,"User-Agent: EE/EllisLab PHP/\r\n"); 62 fputs($fp,"If-Modified-Since: Fri, 01 Jan 2004 12:24:04\r\n\r\n"); 248 249/* End of file version_helper.php */ 250/* Location: ./system/expressionengine/helpers/version_helper.php */lib.php https://github.com/dariusgm/PHPFee.git | PHP | 268 lines
1<?php 2$db=mysql_connect("localhost","portal","psacln"); 221 if ($fp) { 222 fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); 223 while(!feof($fp))chorcreator.php https://github.com/mkweb/NabServ.git | PHP | 298 lines
1<?php 2$slots = 20; 28 $fh = fopen($filename, 'w'); 29 fputs($fh, $data); 30 fclose($fh); 131 $apicall = join(',', $apicall); 132 $url = BASE_URL . "/vl/api.php?sn=" . $serial . "&token=" . $token . "&chor=" . $apicall; 133 file_get_contents($url); 222 223<?php 224$fields = array(Sntp.php https://gitlab.com/rsilveira1987/Expresso | PHP | 119 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Sntp.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 20 */ 24 */ 25require_once 'Zend/TimeSync/Protocol.php'; 26 97 $this->_delay = time(); 98 fputs($this->_socket, $data); 99 }ficiauploader.c https://github.com/yappo/ficiauploader.git | C | 263 lines
14#define API_LOGINNAME "ficia" 15#define API_ENDPOINT "http://ficia.com/api/gr2/eyefi/main.php" 16#define GR2_STATUS_LOGIN_OK "#__GR2PROTO__\nserver_version=2.11\nstatus=0\nstatus_text=OK\n" 25{ 26 fputs("ficiauploader\n" 27 "\n" 45{ 46 fputs("ficiauploader " VERSION_STR "\n" 47 "\n"fgets.html https://github.com/whitypig/emacs-cppref.git | HTML | 100 lines
14<meta name="keywords" content="c,io,fgets" /> 15<link rel="search" type="application/opensearchdescription+xml" href="/wiki/lib/exe/opensearch.php" title="C++ Reference" /> 16<link rel="start" href="/wiki/" /> 17<link rel="contents" href="/wiki/c/io/fgets?do=index" title="Index" /> 18<link rel="alternate" type="application/rss+xml" title="Recent Changes" href="/wiki/feed.php" /> 19<link rel="alternate" type="application/rss+xml" title="Current Namespace" href="/wiki/feed.php?mode=list&ns=c:io" /> 22<link rel="alternate" type="text/plain" title="Wiki Markup" href="/wiki/_export/raw/c/io/fgets" /> 23<link rel="stylesheet" media="all" type="text/css" href="/wiki/lib/exe/css.php?s=all&t=custom1" /> 24<link rel="stylesheet" media="screen" type="text/css" href="/wiki/lib/exe/css.php?t=custom1" /> 24<link rel="stylesheet" media="screen" type="text/css" href="/wiki/lib/exe/css.php?t=custom1" /> 25<link rel="stylesheet" media="print" type="text/css" href="/wiki/lib/exe/css.php?s=print&t=custom1" /> 26<script type="text/javascript" charset="utf-8" src="/wiki/lib/exe/js.php?edit=0&write=1" ></script> 75<p> 76Related Topics: <a href="../../c/io/fputs.html" class="wikilink1" title="c:io:fputs">fputs</a>, <a href="../../c/io/fscanf.html" class="wikilink1" title="c:io:fscanf">fscanf</a>, <a href="../../c/io/gets.html" class="wikilink1" title="c:io:gets">gets</a>, <a href="../../c/io/scanf.html" class="wikilink1" title="c:io:scanf">scanf</a> 77</p>trackback.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 * 84 // Send the trackback 85 fputs($tb_sock, "POST " . @$target["path"] . $target["query"] . " HTTP/1.1\r\n"); 86 fputs($tb_sock, "Host: " . $target["host"] . "\r\n");Writer.php https://github.com/pauln/moodle.git | PHP | 101 lines
1<?php 2 65 // Adds UTF-8 BOM for Unicode compatibility 66 $this->globalFunctionsHelper->fputs($this->filePointer, EncodingHelper::BOM_UTF8); 67 }install.php https://github.com/Lukeas14/hip-hop-goblin.git | PHP | 281 lines
1<?php 2/*************************************************************************** 7 * 8 * Notice: Most of this file is taken from the install.php file of the phpBB v2 forum 9 * The stylesheet associated is also a modified version of the subSilver.css stylesheet that comes with the phpBB v2 forum 22 23if (@file_exists('../config.php')) 24{ 172 { 173 if (!($fp = @fopen('../config.php', 'w'))) 174 { 199 { 200 $text = 'VOGOO PHP LIB installation is complete. Thank you for choosing the VOGOO PHP Lib.<br />You can now close this window and start using the VOGOO PHP Lib in your own PHP scripts.'; 201 } 274 </tr> 275<?php } ?> 276 </table></td>ideal.class.php https://bitbucket.org/anneivycat/ebcookhouse.git | PHP | 466 lines
1<?php 2/*----------------------------------------------------------------------- 235 236 @fputs($fp, "POST $path HTTP/1.0\n"); 237 @fputs($fp, "Host: $hostname\n"); 237 @fputs($fp, "Host: $hostname\n"); 238 @fputs($fp, "Content-type: application/x-www-form-urlencoded\n"); 239 @fputs($fp, "Content-length: " . strlen($data) . "\n"); 239 @fputs($fp, "Content-length: " . strlen($data) . "\n"); 240 @fputs($fp, "Connection: close\n\n"); 241 @fputs($fp, $data);Sntp.php https://github.com/jpratt/cal.git | PHP | 119 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Sntp.php 10835 2008-08-08 22:28:26Z thomas $ 20 */ 24 */ 25#require_once 'Zend/TimeSync/Protocol.php'; 26 97 $this->_delay = time(); 98 fputs($this->_socket, $data); 99 }Paypal.php https://github.com/hukumonline/quart80.git | PHP | 123 lines
1<?php 2 12 * @category Library 13 * @author Md Emran Hasan <phpfour@gmail.com> 14 * @link http://www.phpfour.com 16 17include_once ('PaymentGateway.php'); 18 92 93 fputs($fp, "POST ".$urlParsed['path']." HTTP/1.1\r\n"); 94 fputs($fp, "Host: ".$urlParsed['host']."\r\n"); 94 fputs($fp, "Host: ".$urlParsed['host']."\r\n"); 95 fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n"); 96 fputs($fp, "Content-length: " . strlen($postString) . "\r\n"); 96 fputs($fp, "Content-length: " . strlen($postString) . "\r\n"); 97 fputs($fp, "Connection: close\r\n\r\n"); 98 fputs($fp, $postString . "\r\n\r\n");Sntp.php https://github.com/sitengine/sitengine.git | PHP | 119 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Sntp.php 10835 2008-08-08 22:28:26Z thomas $ 20 */ 24 */ 25require_once 'Zend/TimeSync/Protocol.php'; 26 97 $this->_delay = time(); 98 fputs($this->_socket, $data); 99 }rpc.php https://github.com/juanda/symfonite.git | PHP | 111 lines
1<?php 2/** 2/** 3 * $Id: rpc.php 822 2008-04-28 13:45:03Z spocke $ 4 * 8 9require_once("./includes/general.php"); 10 36 if (!function_exists('file_get_contents')) { 37 $fp = fopen("php://input", "r"); 38 if ($fp) { 46 } else 47 $raw = "" . file_get_contents("php://input"); 48} 72 // Send request headers 73 fputs($socket, $req); 74class.wsdlcache.php https://github.com/fusenigk/mantisbt-1.git | PHP | 209 lines
1<?php 2/* 14* @author Ingo Fischer <ingo@apollon.de> 15* @version $Id: class.wsdlcache.php,v 1.7 2007/04/17 16:34:03 snichol Exp $ 16* @access public 153 } 154 fputs($fp, $s); 155 fclose($fp);nabaztag.php https://github.com/mkweb/NabServ.git | PHP | 425 lines
1<?php 2namespace nabserv; 387 $fh = fopen($this->file, 'w'); 388 fputs($fh, $content); 389 fclose($fh); 405 $fh = fopen($this->configFile, 'w'); 406 fputs($fh, $content); 407 fclose($fh);FunctionAliasSniff.php https://bitbucket.org/gsteshenko/ra.git | PHP | 356 lines
8 * @package PHP_CodeSniffer 9 * @link http://pear.php.net/package/PHP_CodeSniffer 10 */ 16 * @package PHP_CodeSniffer 17 * @link http://pear.php.net/package/PHP_CodeSniffer 18 */ 23 * Holds all PHP funtion name aliases (keys) and orginals (values). See 24 * http://php.net/manual/en/aliases.php 25 * 320 * 321 * @param PHP_CodeSniffer_File $phpcsFile 322 * The file being scanned. 335 public function processFunctionCall( 336 PHP_CodeSniffer_File $phpcsFile, 337 $stackPtr,Agent.php https://gitlab.com/remyvianne/krowkaramel | PHP | 297 lines
1<?php 2 3/** 4 * Pure-PHP ssh-agent client. 5 * 7 * 8 * PHP version 5 9 * 11 * <code> 12 * <?php 13 * include 'vendor/autoload.php'; 14 * 15 * $agent = new \phpseclib3\System\SSH\Agent(); 16 * 16 * 17 * $ssh = new \phpseclib3\Net\SSH2('www.domain.tld'); 18 * if (!$ssh->login('username', $agent)) {kanji-encoding.lib.php https://gitlab.com/albert925/lading-ach | PHP | 152 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 12 * @version $Id$ 13 * @package phpMyAdmin 14 */ 14 */ 15if (! defined('PHPMYADMIN')) { 16 exit; 19/** 20 * Gets the php internal encoding codes and sets the available encoding 21 * codes list 119 $dist = PMA_kanji_str_conv($line, $enc, $kana); 120 fputs($fpd, $dist); 121 } // end whileFile.php https://github.com/EthanBlast/Glam-Star-Life.git | PHP | 237 lines
1<?php 2 9 */ 10require_once W3TC_LIB_W3_DIR . '/Cache/Base.php'; 11 31 /** 32 * PHP5 constructor 33 * 42 /** 43 * PHP4 constructor 44 * 93 94 @fputs($fp, pack('L', $expire)); 95 @fputs($fp, @serialize($var));Mail.php https://bitbucket.org/smr/omc.git | PHP | 140 lines
1<?php 2/** 50 { 51 fputs($this->skt, $CMD . self::CRLF); 52test_ext_stream.cpp https://github.com/zsj888/hiphop-php.git | C++ | 440 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 350 Variant f = f_fopen("test/test_ext_file.tmp", "w"); 351 f_stream_set_write_buffer(f, 1 /* PHP_STREAM_BUFFER_LINE */); 352 f_fputs(f, "testing\nanother line\n");Pop3.php https://github.com/jorgenils/zend-framework.git | PHP | 400 lines
1<?php 2/** 22 */ 23require_once 'Zend/Mail/Transport/Exception.php'; 24 125 { 126 $result = fputs($this->_socket, $request."\n"); 127 if (!$result) {updatePerson.php https://gitlab.com/kirr/erp5 | PHP | 143 lines
1<?php 2 include("includes/config.inc.php"); 2 include("includes/config.inc.php"); 3 include("includes/function.php"); 4 123 $fp = fopen("test.txt","a"); // ouverture du fichier en écriture 124 fputs($fp, "\n---"); // on va a la ligne 125 fputs($fp, $now." - ".$personUpdateQuery2.""); // on écrit le nom et email dans le fichierLogger.php https://gitlab.com/hoanghung.dev/phunuvadoisong.com | PHP | 456 lines
1<?php 2/** 2/** 3 * Logger.php 4 * 448 if (($fp = fopen($logFile, "a")) != null) { 449 fputs($fp, $message); 450 fflush($fp);common.php https://github.com/robertatakenaka/Web.git | PHP | 255 lines
1<?PHP 2//============================================================================================= 201 202 fputs( $fp, $ReqHeader ); 203 if ($fp) {MboxTest.php https://github.com/jorgenils/zend-framework.git | PHP | 348 lines
1<?php 2 12 */ 13require_once 'Zend/Mail/Storage/Mbox.php'; 14 17 */ 18require_once 'Zend/Config.php'; 19 20/** 21 * PHPUnit test case 22 */ 22 */ 23require_once 'PHPUnit/Framework/TestCase.php'; 24 30 */ 31class Zend_Mail_MboxTest extends PHPUnit_Framework_TestCase 32{QuestionHelperTest.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 238 lines
1<?php 2 24 */ 25class QuestionHelperTest extends \PHPUnit_Framework_TestCase 26{ 209 { 210 $stream = fopen('php://memory', 'r+', false); 211 fputs($stream, $input); 218 { 219 return new StreamOutput(fopen('php://memory', 'r+', false)); 220 }trackInput.php https://github.com/kadewe/rea.framework.git | PHP | 173 lines
1<?php 2/* ---------------------------------------------------------------------- 125$file = fopen($path, "w"); 126fputs($file,$xml); 127fclose($file);NodeImportTestCase.php https://github.com/arielalvarez88/yaquemotors.git | PHP | 284 lines
1<?php 2 74 $s = node_import_write_to_string($row, $file_options); 75 fputs($fp, $s); 76 } 212 * @param $group 213 * The type of assertion - examples are "Browser", "PHP". 214 * 231 * @param $group 232 * The type of assertion - examples are "Browser", "PHP". 233 * 250 * @param $group 251 * The type of assertion - examples are "Browser", "PHP". 252 * 269 * @param $group 270 * The type of assertion - examples are "Browser", "PHP". 271 *flock.php https://github.com/denisbz/SPIP-1.git | PHP | 411 lines
77// options = array( 78// 'phpcheck' => 'oui' # verifier qu'on a bien du php 79// dezippe automatiquement les fichiers .gz 148 if ($fp2 = spip_fopen_lock("$fichier.$id", 'w',LOCK_EX)) { 149 $s = @fputs($fp2, $contenu, $a = strlen($contenu)); 150 $ok = ($s == $a); 174 @ftruncate($fp,0); 175 $s = @fputs($fp, $contenu, $a = strlen($contenu)); 176 202 if (substr($fichier,-4) !== '.php') 203 spip_log('Erreur de programmation: '.$fichier.' doit finir par .php'); 204 $contenu = "<"."?php die ('Acces interdit'); ?".">\n" . $contenu; 325 if ($test = @fopen("$path/dir_test.php", "w")) { 326 @fputs($test, '<'.'?php $ok = true; ?'.'>'); 327 @fclose($test);blocks.php https://bitbucket.org/benjamin_cassinat/meute-apax.git | PHP | 102 lines
75 <div style="width:100%;height:67px;padding-top:50px;vertical-align:text-bottom;background-color:#3bc1ff; text-align:center;"> 76 <select name="block1"><?php echo verif($block1,$block1); ?><option value="0"><?php echo block_hide; ?></option><option value="1"><?php echo block_show; ?></option></select> 77 </div> 78 <div style="width:100%;height:96px;padding-top:60px;vertical-align:text-bottom;background-color:#8a00ff; text-align:center;"> 79 <select name="block2"><?php echo verif($block2,$block2); ?><option value="0"><?php echo block_hide; ?></option><option value="1"><?php echo block_show; ?></option></select> 80 </div> 81 <div style="width:100%;height:65px;padding-top:60px;vertical-align:text-bottom;background-color:#18ff00; text-align:center;"> 82 <select name="block3"><?php echo verif($block3,$block3); ?><option value="0"><?php echo block_hide; ?></option><option value="1"><?php echo block_show; ?></option></select> 83 </div><div style="width:100%;height:38px;padding-top:25px;vertical-align:text-bottom;background-color:#ff3000; text-align:center;"> 83 </div><div style="width:100%;height:38px;padding-top:25px;vertical-align:text-bottom;background-color:#ff3000; text-align:center;"> 84 <select name="block4"><?php echo verif($block4,$block4); ?><option value="0"><?php echo block_hide; ?></option><option value="1"><?php echo block_show; ?></option></select> 85 </div> 97 98<center><a href="theme_cfg.php" title="index"><b><?php echo page_mess; ?></b></a></center> 99<?php1652.php https://bitbucket.org/DinoRex99/exploit-database.git | PHP | 179 lines
1#!/usr/bin/php -q -d short_open_tag=on 2<? 2<? 3echo "PhpOpenChat 3.0.x ADODB Server.php \"sql\" SQL injection\r\n"; 4echo "by rgod rgod@autistici.org\r\n"; 10echo "host: target server (ip/hostname)\r\n"; 11echo "path: path to PhpOpenChat\r\n"; 12echo "cmd: a shell command\r\n"; 16echo "Examples:\r\n"; 17echo "php ".$argv[0]." localhost /chat/ \r\n"; 18echo "php ".$argv[0]." localhost /chat/ ls -la -p81\r\n"; 39so, this vulnerability is very hard to exploit 40however, here is the code for PhpOpenChat, you can easily change it to work 41against the program you want 127#step 1->read DOCUMENT ROOT from phpinfo 128$packet ="GET ".$p."include/adodb/tests/tmssql.php?do=phpinfo HTTP/1.0\r\n"; 129$packet.="User-Agent: Googlebot/2.1\r\n";sms_at.inc.php https://gitlab.com/mattyhead/mysms | PHP | 409 lines
1<?php 2#----------------------------------------------------------------- 8 var $VERSION; 9 var $REQUIRED_PHP_VERSION; 10 32 $this->VERSION = "0.1"; 33 $this->REQUIRED_PHP_VERSION = "4.0"; 34 173 174 fputs($fp, "$header"); 175 fputs($fp, "$request");Pop3.php https://gitlab.com/rsilveira1987/Expresso | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Pop3.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 21 */ 107 */ 108 require_once 'Zend/Mail/Protocol/Exception.php'; 109 throw new Zend_Mail_Protocol_Exception('cannot connect to host : ' . $errno . ' : ' . $errstr); 128 */ 129 require_once 'Zend/Mail/Protocol/Exception.php'; 130 throw new Zend_Mail_Protocol_Exception('cannot enable TLS'); 146 { 147 $result = @fputs($this->_socket, $request . "\r\n"); 148 if (!$result) { 151 */ 152 require_once 'Zend/Mail/Protocol/Exception.php'; 153 throw new Zend_Mail_Protocol_Exception('send failed - connection closed?');ps_ipayment.php https://github.com/Shigaru/shigaru.git | PHP | 211 lines
79 <tr class="row1"> 80 <td><strong><?php echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_PAYPAL_STATUS_SUCCESS') ?></strong></td> 81 <td> 82 <select name="IPAYMENT_VERIFIED_STATUS" class="inputbox" > 83 <?php 84 $q = "SELECT order_status_name,order_status_code FROM #__{vm}_order_status ORDER BY list_order"; 102 </td> 103 <td><?php echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_PAYPAYL_STATUS_SUCCESS_EXPLAIN') ?> 104 </td> 124 <tr class="row1"> 125 <td><strong><?php echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_PAYPAL_STATUS_FAILED') ?></strong></td> 126 <td> 138 </td> 139 <td><?php echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_PAYPAL_STATUS_FAILED_EXPLAIN') ?> 140 </td>DialogHelperTest.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 192 lines
1<?php 2 19 20class DialogHelperTest extends \PHPUnit_Framework_TestCase 21{ 102 { 103 if (defined('PHP_WINDOWS_VERSION_BUILD')) { 104 $this->markTestSkipped('This test is not supported on Windows'); 173 { 174 $stream = fopen('php://memory', 'r+', false); 175 fputs($stream, $input); 182 { 183 return new StreamOutput(fopen('php://memory', 'r+', false)); 184 }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 ) ); 176 if ( $fp2 ) { 177 @fputs( $fp2, pack( 'L', time() + 30 ) ); 178 @fclose( $fp2 ); 241 242 @fputs( $fp, pack( 'L', 0 ) ); // make it expired 243 @fclose( $fp ); 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 );PlainHTTPFetcher.php https://github.com/clioweb/DH-Answers.git | PHP | 160 lines
1<?php 2 6 * 7 * PHP versions 4 and 5 8 * 19 */ 20require_once("HTTPFetcher.php"); 21 35 * Fetches the specified URL using optional extra headers and 36 * returns the server's response. Uses plain PHP library calls 37 * and doesn't rely on any extensions. 87 88 $user_agent = "PHP Yadis Library Fetcher"; 89 118 119 fputs($sock, implode("\r\n", $headers) . "\r\n\r\n"); 120Pop3.php https://github.com/adrienne/Readability.git | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Pop3.php 12539 2008-11-11 02:47:17Z yoshida@zend.co.jp $ 21 */ 107 */ 108 require_once 'Zend/Mail/Protocol/Exception.php'; 109 throw new Zend_Mail_Protocol_Exception('cannot connect to host : ' . $errno . ' : ' . $errstr); 128 */ 129 require_once 'Zend/Mail/Protocol/Exception.php'; 130 throw new Zend_Mail_Protocol_Exception('cannot enable TLS'); 146 { 147 $result = @fputs($this->_socket, $request . "\r\n"); 148 if (!$result) { 151 */ 152 require_once 'Zend/Mail/Protocol/Exception.php'; 153 throw new Zend_Mail_Protocol_Exception('send failed - connection closed?');identify.c https://bitbucket.org/bosp/benchmarks-parsec.git | C | 119 lines
25% % 26% http://www.imagemagick.org/script/license.php % 27% % 110 { 111 (void) fputs(text,stdout); 112 (void) fputc('\n',stdout);7_FixDropdownData.php https://bitbucket.org/hatim_alam/sugar-8.git | PHP | 132 lines
1<?php 2/* 35 36 foreach (glob($originalPath . '/*.lang.php') as $file) { 37 require $file; 47 if (is_array($fields) && $this->isCustomField($name, $fields, $file)) { 48 $newFileName = $newPath . '/' . $lang . '.sugar_' . $name . '.php'; 49 $this->write_to_file($newFileName, 'app_list_strings', $name, $fields, true); 123 if ($timeHeader) { 124 $output = "<?php\n" . 125 "// created: " . date('Y-m-d H:i:s') . "\n"; 128 $fp = fopen($file, 'a'); 129 fputs($fp, $output); 130 fclose($fp);Bug30709Test.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 206 lines
42 if(file_exists('custom/include/language/en_us.lang.php')) { 43 copy('custom/include/language/en_us.lang.php', 'custom/include/language/en_us.lang.php.backup'); 44 } 110EOQ; 111 fputs( $fh, $string); 112 fclose( $fh ); 147EOQ; 148 fputs( $fh, $string); 149 fclose( $fh ); 155 if(file_exists('custom/include/language/en_us.lang.php.backup')) { 156 copy('custom/include/language/en_us.lang.php.backup', 'custom/include/language/en_us.lang.php'); 157 unlink('custom/include/language/en_us.lang.php.backup'); 166 if(file_exists('custom/include/language/en_us.lang.php.php_bak')) { 167 unlink('custom/include/language/en_us.lang.php.php_bak'); 168 }Pop3.php https://github.com/grandison/budo16.git | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Pop3.php 16219 2009-06-21 19:45:39Z thomas $ 21 */ 107 */ 108 // require_once 'Zend/Mail/Protocol/Exception.php'; 109 throw new Zend_Mail_Protocol_Exception('cannot connect to host : ' . $errno . ' : ' . $errstr); 128 */ 129 // require_once 'Zend/Mail/Protocol/Exception.php'; 130 throw new Zend_Mail_Protocol_Exception('cannot enable TLS'); 146 { 147 $result = @fputs($this->_socket, $request . "\r\n"); 148 if (!$result) { 151 */ 152 // require_once 'Zend/Mail/Protocol/Exception.php'; 153 throw new Zend_Mail_Protocol_Exception('send failed - connection closed?');ddt.php https://github.com/socialplanning/oc-js.git | PHP | 288 lines
1<?php 2/* 80 81 fputs( $fvDEBUG[ "logfile_fp" ], "$msgline" ); 82 fflush( $fvDEBUG[ "logfile_fp" ] ); 190 { 191 fputs( $fp, date("D M j G:i:s T Y") . " - $file:$line: $msg\n" ); 192 fclose( $fp );pop3mail.class.php https://github.com/usagi-project/mynets1.git | PHP | 155 lines
1<?php 2/* ======================================================================== 3 * 4 * @license This source file is subject to version 3.01 of the PHP license, 5 * that is available at http://www.php.net/license/3_01.txt 5 * that is available at http://www.php.net/license/3_01.txt 6 * If you did not receive a copy of the PHP license and are unable 7 * to obtain it through the world-wide-web, please send a note to 7 * to obtain it through the world-wide-web, please send a note to 8 * license@php.net so we can mail you a copy immediately. 9 * 24 */ 25require_once OPENPNE_WEBAPP_DIR . '/lib/OpenPNE/KtaiMail.php'; 26require_once OPENPNE_WEBAPP_DIR . '/lib/mail/sns.php'; 80 function sendCommand($cmd) { 81 fputs($this->sock, $cmd . "\r\n"); 82 $buf = fgets($this->sock, 512);Voicemail.php https://github.com/testruby/Tine-2.0-Open-Source-Groupware-and-CRM.git | PHP | 167 lines
1<?php 2/** 61 /** 62 * (non-PHPdoc) 63 * @see Tinebase/Controller/Record/Tinebase_Controller_Record_Abstract#create($_record) 76 /** 77 * (non-PHPdoc) 78 * @see Tinebase/Controller/Record/Tinebase_Controller_Record_Abstract#delete($_ids) 91 /** 92 * (non-PHPdoc) 93 * @see Tinebase/Controller/Record/Tinebase_Controller_Record_Abstract#update($_record) 129 130 $fp = fopen("php://temp", 'r+'); 131 145 146 fputs($fp, "[" . $context->name . "]\n"); 147fianet_socket.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 173 lines
1<?php 2 68 { 69 fianet_insert_log("fianet_socket.php - build_header() <br />\nMaximum length in get method reached(".strlen($this->path."?".$data).") : <br />\n".$this->path."?".$data); 70 } 135 $data_reached = false; 136 if (@fputs($socket, $header.$data)) 137 { 159 { 160 fianet_insert_log("fianet_socket.php - connect() <br />\nEnvoie des données impossible sur : <br />\n".$host); 161 $res = false; 166 { 167 fianet_insert_log("fianet_socket.php - connect() <br />\nConnexion socket impossible : <br />\n".$host); 168 $res = false;2660.php https://bitbucket.org/DinoRex99/exploit-database.git | PHP | 103 lines
1#!/usr/bin/php 2<?php 10 * Usage: 11 * php script.php [host] [path] [table prefix] [user id] [username] [password] 12 * 13 * Usage Example: 14 * php script.php domain.com /coppermine/ cpg149_ 1 john secret 15 * 27die("Usage: 28php $argv[0] [host] [path] [table prefix] [user id] [username] [password]\n 29Usage Example: 29Usage Example: 30php $argv[0] domain.com /coppermine/ cpg149_ 1 john secret\n"); 31} 57$post = "username=".urlencode($userl)."&password=".urlencode($passl)."&submitted=Login"; 58$req = "POST ".$path."login.php?referer=index.php HTTP/1.1\r\n"; 59$req .= "Referer: http://".$host.$path."login.php?referer=index.php\r\n";HTTPClient.php https://github.com/engel/yase.git | PHP | 172 lines
1<?php 2 51 if($this->oSocket) 52 fputs( $this->oSocket, $sRequest."\r\n"); 53 }MboxTest.php https://bitbucket.org/saifshuvo/zf2.git | PHP | 303 lines
1<?php 2/** 21 */ 22class MboxTest extends \PHPUnit_Framework_TestCase 23{ 292 $fh = fopen($this->_mboxFile, 'w'); 293 fputs($fh, "From \r\nSubject: test\r\nFrom \r\nSubject: test2\r\n"); 294 fclose($fh);OPS.php https://github.com/axxtel/agilebill.git | PHP | 667 lines
1<?php 2/* 4 * 5 * OpenSRS-PHP 6 * 28 * vim: set expandtab tabstop=4 shiftwidth=4: 29 * $Id: OPS.php,v 1.1 2004/09/30 09:25:23 Tony Exp $ 30 * 34 35require_once 'PEAR.php'; 36 104 $len = strlen($msg); 105 fputs($fh, 'Content-Length: ' . $len . $this->CRLF . $this->CRLF); 106 fputs($fh, $msg, $len ); 142 143 /* PHP doesn't have timeout for fread ... we just set the timeout for the socket */ 144payment.php https://github.com/jongleur/oscommerce.git | PHP | 360 lines
1<?php 2/* 14 15 include(dirname(__FILE__) . '/credit_card.php'); 16 125 if ($fp = @fsockopen(($server['scheme'] == 'https' ? 'ssl' : $server['scheme']) . '://' . $server['host'], $server['port'])) { 126 @fputs($fp, 'POST ' . $server['path'] . (isset($server['query']) ? '?' . $server['query'] : '') . ' HTTP/1.1' . "\r\n" . 127 'Host: ' . $server['host'] . "\r\n" .Pop3.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Pop3.php 12539 2008-11-11 02:47:17Z yoshida@zend.co.jp $ 21 */ 107 */ 108 #require_once 'Zend/Mail/Protocol/Exception.php'; 109 throw new Zend_Mail_Protocol_Exception('cannot connect to host : ' . $errno . ' : ' . $errstr); 128 */ 129 #require_once 'Zend/Mail/Protocol/Exception.php'; 130 throw new Zend_Mail_Protocol_Exception('cannot enable TLS'); 146 { 147 $result = @fputs($this->_socket, $request . "\r\n"); 148 if (!$result) { 151 */ 152 #require_once 'Zend/Mail/Protocol/Exception.php'; 153 throw new Zend_Mail_Protocol_Exception('send failed - connection closed?');ipn.php https://github.com/nadavkav/MoodleTAO.git | PHP | 232 lines
1<?php // $Id$ 2 15 16 require("../../config.php"); 17 require("enrol.php"); 80 81 fputs ($fp, $header.$req); 82 178 $a->coursename = $course->fullname; 179 $a->profileurl = "$CFG->wwwroot/user/view.php?id=$user->id"; 180 email_to_user($user, $teacher, get_string("enrolmentnew", '', $course->shortname),AddressFilter.php https://github.com/imr/horde.git | PHP | 108 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 11 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 12 * @link http://pear.horde.org/index.php?package=Kolab_Filter 13 */ 27 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 28 * @link http://pear.horde.org/index.php?package=Kolab_Filter 29 */ 30class Horde_Kolab_Filter_Unit_Helper_AddressFilterTest 31extends PHPUnit_Framework_TestCase 32{ 34 { 35 $fp = fopen('php://memory', 'w+'); 36 fputs($fp, "hello\n");function.fetch.php https://bitbucket.org/isaaczhang/dotproject.git | PHP | 217 lines
1<?php 2/** 14 * Purpose: fetch file, web or ftp data and display results 15 * @link http://smarty.php.net/manual/en/language.function.fetch.php {fetch} 16 * (Smarty online manual) 31 $_params = array('resource_type' => 'file', 'resource_name' => $params['file']); 32 require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.is_secure.php'); 33 if(!smarty_core_is_secure($_params, $smarty)) { 149 if($_is_proxy) { 150 fputs($fp, 'GET ' . $params['file'] . " HTTP/1.0\r\n"); 151 } else { 151 } else { 152 fputs($fp, "GET $uri HTTP/1.0\r\n"); 153 } 154 if(!empty($host)) { 155 fputs($fp, "Host: $host\r\n"); 156 }validation.php https://github.com/hecbuma/quali-fisioterapia.git | PHP | 139 lines
1<?php 2/* 9* It is also available through the world-wide-web at this URL: 10* http://opensource.org/licenses/afl-3.0.php 11* If you did not receive a copy of the license and are unable to 23* @version Release: $Revision: 1.4 $ 24* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 25* International Registered Trademark & Property of PrestaShop SA 27 28include(dirname(__FILE__).'/../../config/config.inc.php'); 29include(dirname(__FILE__).'/paypal.php'); 78 'Connection: close'."\r\n\r\n"; 79 fputs($fp, $header.$params); 80dus-lib.php https://github.com/WimHager/DUS.git | PHP | 138 lines
1<?php 2/* 115 //Send Header and Data 116 fputs($Socket, "POST /$Path HTTP/1.1\r\n"); 117 fputs($Socket, "Host: $Host\r\n"); 117 fputs($Socket, "Host: $Host\r\n"); 118 fputs($Socket, "Content-type: application/x-www-form-urlencoded\r\n"); 119 fputs($Socket, "User-Agent: Opera/9.01 (Windows NT 5.1; U; en)\r\n"); 119 fputs($Socket, "User-Agent: Opera/9.01 (Windows NT 5.1; U; en)\r\n"); 120 fputs($Socket, "Accept-Language: de-DE,de;q=0.9,en;q=0.8\r\n"); 121 fputs($Socket, "Content-length: ".strlen($Data)."\r\n"); 121 fputs($Socket, "Content-length: ".strlen($Data)."\r\n"); 122 fputs($Socket, "Connection: close\r\n\r\n"); 123 fputs($Socket, $Data);cloner.php https://github.com/severnaya99/Sg-2010.git | PHP | 165 lines
1<?php 2// $Id$ 3// ------------------------------------------------------------------------ // 4// XOOPS - PHP Content Management System // 5// Copyright (c) 2000 XOOPS.org // 43 44 // work around for PHP < 5.0.x 45 if(!function_exists('file_put_contents')) { 51 } 52 fputs($fp, $data); 53 fclose($fp);file_variation.php https://github.com/tstarling/hiphop-php.git | PHP | 61 lines
1<?php 2/* 43 if( !strstr( $line, $key ) ) 44 fputs($file_handle2,$line); 45} 52?> 53<?php 54$file_path = dirname(__FILE__);main_body.php https://github.com/sdubois/phpMp.git | PHP | 133 lines
1<?php 2include "info.php"; 2include "info.php"; 3include "utils.php"; 4include "info2html.php"; 23 if(isset($password)) { 24 fputs($fp,"password \"$password\"\n"); 25 while(!feof($fp)) { 35 if(strlen($arg)>0) $command.=" \"$arg\""; 36 fputs($fp,"$command\n"); 37 while(!feof($fp)) { 72 } 73 $dprint[$i].="[<a href=\"playlist.php?add_dir=$dirstr\" target=playlist>add</a>] <a href=\"main.php?sort=$sort&dir=$dirstr\">$dirss[0]</a></td></tr>\n"; 74 # $dprint[$i].="[<a href=\"main.php?sort=$sort&dir=$dirstr\">dir</a>] [<a href=\"playlist.php?add_dir=$dirstr\" target=playlist>add</a>] $dirss[0]</td></tr>\n"; 83 if(isset($save) && $save) { 84 print "<br><form style=\"padding:0;margin:0;\" action=main.php? method=get>\n"; 85 print "<table border=0 cellspacing=1 bgcolor=\"";common.php https://gitlab.com/kidaa/portfolio | PHP | 386 lines
1<?php 2/** 64 if ( isset( $url['host'] ) && $url['host'] != @gethostbyname( $url['host'] ) ) { 65 if ( PHP_VERSION >= 5 ) { 66 $headers = @implode( '', @get_headers( "$url[scheme]://$url[host]:$url[port]$url[path]" ) ); 70 } 71 fputs( $fp, "HEAD $url[path] HTTP/1.1\r\nHost: $url[host]\r\n\r\n" ); 72 $headers = fread( $fp, 4096 );LDIFWriter.class.php https://github.com/treuter/xp-framework.git | PHP | 84 lines
1<?php 2/* This class is part of the XP framework 23 * $l= new LDAPClient($dsn->getHost(), $dsn->getPort(389)); 24 * $writer= new LDIFWriter(new File('php://stdout')); 25 * 32 * } catch(XPException $e) { 33 * fputs(STDERR, $e->getStackTrace()); 34 * }smtp.php https://bitbucket.org/wildanm/oplaysms | PHP | 617 lines
1<?php 2/* 2/* 3 * smtp.php 4 * 4 * 5 * @(#) $Header: /home/mlemos/cvsroot/PHPlibrary/smtp.php,v 1.25 2003/03/25 23:13:15 mlemos Exp $ 6 * 99 $this->OutputDebug("C $line"); 100 if(!fputs($this->connection,"$line\r\n")) 101 { 113 $this->OutputDebug("C $data"); 114 if(!fputs($this->connection,$data)) 115 { 227 $domain=$hosts[$host]; 228 // fixme anton - ereg is depreceted in php 5.3 229 // if(ereg('^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$',$domain))filestatus.php https://github.com/jasononeil/OpenRoadFTP.git | PHP | 155 lines
1<?php 2# PHP File Uploader with progress bar - JSON version 2# PHP File Uploader with progress bar - JSON version 3# Based on progress.php, a contrib to Megaupload, by Mike Hodgson. 4# Changed for use with AJAX by Tomas Larsson - http://tomas.epineer.se/ 28$moveToFolder = "uploadedfiles"; //Where the files will be moved upon upload, leave blank if you want it to be the same as $tempFolder. 29$bad_files = array('exe', 'php', 'php3', 'php4', 'ph3', 'ph4', 'perl', 'cgi', 'bin', 'scr', 'bat', 'pif', 'aps', 'ssi', 'swf', 'js'); 30 33error_reporting(E_ERROR | E_WARNING | E_PARSE); 34require('JSON.php'); 35header('Content-Type: text/plain'); 62} 63// Removes files in the upload directory that are over 3 hours old, except for index.php 64// You probably don't need it, but it might be nice for some people. Uncomment if you need it. 67 while (false !== ($file = readdir($handle))) { 68 if (filemtime('tempfiles/'.$file) < time() - 10800 && !is_dir('tempfiles/'.$file) && $file != 'index.php') { 69 @unlink('tempfiles/'.$file);start.html https://github.com/whitypig/emacs-cppref.git | HTML | 212 lines
14<meta name="keywords" content="c,io,start" /> 15<link rel="search" type="application/opensearchdescription+xml" href="/wiki/lib/exe/opensearch.php" title="C++ Reference" /> 16<link rel="start" href="/wiki/" /> 17<link rel="contents" href="/wiki/c/io/start?do=index" title="Index" /> 18<link rel="alternate" type="application/rss+xml" title="Recent Changes" href="/wiki/feed.php" /> 19<link rel="alternate" type="application/rss+xml" title="Current Namespace" href="/wiki/feed.php?mode=list&ns=c:io" /> 22<link rel="alternate" type="text/plain" title="Wiki Markup" href="/wiki/_export/raw/c/io/start" /> 23<link rel="stylesheet" media="all" type="text/css" href="/wiki/lib/exe/css.php?s=all&t=custom1" /> 24<link rel="stylesheet" media="screen" type="text/css" href="/wiki/lib/exe/css.php?t=custom1" /> 24<link rel="stylesheet" media="screen" type="text/css" href="/wiki/lib/exe/css.php?t=custom1" /> 25<link rel="stylesheet" media="print" type="text/css" href="/wiki/lib/exe/css.php?s=print&t=custom1" /> 26<script type="text/javascript" charset="utf-8" src="/wiki/lib/exe/js.php?edit=0&write=1" ></script> 99 <tr class="row11"> 100 <td class="col0"><a href="../../c/io/fputs.html" class="wikilink1" title="c:io:fputs">fputs</a></td><td class="col1">write a string to a file</td> 101 </tr>utility.c https://github.com/XULRunner42/ferite-modules.git | C | 427 lines
71 72 /* php/ext/zlib/zlib.c says that the following will compress without 73 * the zlib internal headers and that is good enough for me 109 110 /* from PHP, use multiple to expand our buffer until it is large enough*/ 111 for (multiple = 2; multiple < 16; ++multiple) { 163 164 /* from PHP, use multiple to expand our buffer until it is large enough*/ 165 for (multiple = 2; multiple < 16; ++multiple) { 368{ 369 fputs("zpipe: ", stderr); 370 switch (ret) { 372 if (ferror(stdin)) { 373 fputs("error reading stdin\n", stderr); 374 }sendmail.php https://github.com/magikcypress/bbbweb.git | PHP | 171 lines
1<?php 2// 3// +----------------------------------------------------------------------+ 4// | PHP Version 4 | 5// +----------------------------------------------------------------------+ 5// +----------------------------------------------------------------------+ 6// | Copyright (c) 1997-2003 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// +----------------------------------------------------------------------+function.fetch.php https://github.com/raphaelbastide/berta.git | PHP | 217 lines
1<?php 2/** 14 * Purpose: fetch file, web or ftp data and display results 15 * @link http://smarty.php.net/manual/en/language.function.fetch.php {fetch} 16 * (Smarty online manual) 151 if($_is_proxy) { 152 fputs($fp, 'GET ' . $params['file'] . " HTTP/1.0\r\n"); 153 } else { 153 } else { 154 fputs($fp, "GET $uri HTTP/1.0\r\n"); 155 } 156 if(!empty($host)) { 157 fputs($fp, "Host: $host\r\n"); 158 } 159 if(!empty($accept)) { 160 fputs($fp, "Accept: $accept\r\n"); 161 }Csv.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 142 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 50 $fp = tmpfile(); 51 fputs($fp, $this->getData()); 52 fseek($fp, 0);function.fetch.php https://github.com/SquattingSasquatches/Lucidity.git | PHP | 216 lines
1<?php 2/** 15 * 16 * @link http://www.smarty.net/manual/en/language.function.fetch.php {fetch} 17 * (Smarty online manual) 150 if($_is_proxy) { 151 fputs($fp, 'GET ' . $params['file'] . " HTTP/1.0\r\n"); 152 } else { 152 } else { 153 fputs($fp, "GET $uri HTTP/1.0\r\n"); 154 } 155 if(!empty($host)) { 156 fputs($fp, "Host: $host\r\n"); 157 } 158 if(!empty($accept)) { 159 fputs($fp, "Accept: $accept\r\n"); 160 }tidy.php https://github.com/socialplanning/oc-js.git | PHP | 179 lines
1<?php 2 /** This PHP file is intended for use with XMLHTTPRequest from Xinha 68 69 fputs($socket, $ReqHeader); 70 102 { 103 // PHP's urldecode doesn't understand %uHHHH for unicode 104 $_REQUEST['content'] = preg_replace('/%u([a-f0-9]{4,4})/ei', 'utf8_chr(0x$1)', $_REQUEST['content']); 161 ?> 162 {action:'setHTML',value:'<?php echo js_encode($content) ?>'}; 163 <?php 168 {action:'alert',value:'Tidy failed. Check your HTML for syntax errors.'}; 169 <?php 170 } 175 {action:'alert',value:"You don't have anything to tidy!"} 176 <?php 177 }Ftp.php https://gitlab.com/yousafsyed/easternglamor | PHP | 335 lines
1<?php 2/** 73 * @throws LocalizedException 74 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 75 * @SuppressWarnings(PHPMD.NPathComplexity) 159 * @return bool 160 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 161 */ 172 * @return bool 173 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 174 */ 194 * @return bool 195 * @SuppressWarnings(PHPMD.ShortMethodName) 196 */ 242 * @return bool 243 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 244 */globalsettings.inc.php https://github.com/timconstan/vtcalendar.git | PHP | 148 lines
1<?php 2 define("ALLOWINCLUDES", TRUE); // in effect, any file that includes "globalsettings.inc.php" is also authorized to call other include files 2 define("ALLOWINCLUDES", TRUE); // in effect, any file that includes "globalsettings.inc.php" is also authorized to call other include files 3 require_once('config.inc.php'); 4 require_once('DB.php'); 4 require_once('DB.php'); 5 require_once('inputvalidation.inc.php'); 6 31 } 32 //sets variable to according to week starting day specified in "config.inc.php". Sunday is default week starting day if WEEK_STARTING_DAY isn't defined in "config.inc.php' 33 94 if (!empty($_SESSION["AUTH_USERID"])) { $user = $_SESSION["AUTH_USERID"]; } else { $user = "anonymous"; } 95 fputs($logfile, date( "Y-m-d H:i:s", time() )." ".$_SERVER["REMOTE_ADDR"]." ".$user." ".$_SERVER["PHP_SELF"]." ".$query."\n"); 96 fclose($logfile); 104 if (isset($value)) { 105 // first, remove any escaping that may have happened if magic_quotes_gpc is set to ON in php.ini 106 if (get_magic_quotes_gpc()) {civicrm.php https://github.com/michaelmcandrew/vaw.git | PHP | 244 lines
1<?php 2 74 } 75 fputs( $fd, $buffer ); 76 fclose( $fd ); 111 $siteDir . DIRECTORY_SEPARATOR . 112 'civicrm.settings.php'; 113 121 122 require_once "$crmPath/packages/DB.php"; 123 190 191 $str = file_get_contents( $tplPath . 'civicrm.settings.php.tpl' ); 192 foreach ( $params as $key => $value ) { 242 $drupalURL = civicrm_cms_base( ); 243 return $drupalURL . 'index.php?q=civicrm'; 244}SetStamp.c https://gitlab.com/envieidoc/Clover | C | 491 lines
6which accompanies this distribution. The full text of the license may be found at 7http://opensource.org/licenses/bsd-license.php 8 117 118 if (fputs (buffer, fp) == EOF) { 119 printf ("Error: Cannot write time string to TIME file.\n");Request.php https://github.com/wrlee/gallery3-contrib.git | PHP | 220 lines
1<?php 2 21 /** 22 * PHP's $_SERVER data 23 * 48 * 49 * The serverData array can be used to override usage of PHP's 50 * global _SERVER variable. 161 } else { 162 $this->body = fopen('php://input','r'); 163 self::$defaultInputStream = $this->body; 180 * If the setAsDefaultInputStream is set to true, it means for this run of the 181 * script the supplied body will be used instead of php://input. 182 * 192 193 $stream = fopen('php://temp','r+'); 194 fputs($stream,$body);setup.php https://bitbucket.org/ekowabaka/wyf.git | PHP | 176 lines
1#!/usr/bin/env php 2<?php 44SYSTEM; 45file_put_contents($home . 'app/modules/system/package_redirect.php', $system); 46 47$index = <<< "INDEX" 48<?php 49/** 52 */ 53require "lib/entry.php"; 54INDEX; 54INDEX; 55file_put_contents($home . 'index.php', $index); 56 83file_put_contents($home . 'app/config.php', $config); 84file_put_contents($home . 'app/includes.php', "<?php\n"); 85file_put_contents($home . 'app/bootstrap.php', "<?php\n");PlainHTTPFetcher.php https://github.com/tanepiper/pastemonkey.git | PHP | 245 lines
1<?php 2 6 * 7 * PHP versions 4 and 5 8 * 19 */ 20require_once "Auth/Yadis/HTTPFetcher.php"; 21 69 70 $user_agent = "PHP Yadis Library Fetcher"; 71 98 99 fputs($sock, implode("\r\n", $headers) . "\r\n\r\n"); 100 206 // Write the POST request. 207 fputs($sock, $request); 208vivoRDFExport.php https://bitbucket.org/vsposato/vivo-tools.git | PHP | 457 lines
1#!/usr/bin/php 2 2 3<?php 4 77 // If the file was opened properly, then output the xml 78 fputs($fileHandle, $xmlOutput); 79 // Close the file handleps_pagseguro.php https://github.com/rafarubert/megafiltros.git | PHP | 85 lines
1<?php 2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); 24 function trataInput($input) { 25 require_once(CLASSPATH ."payment/".$this->classname.".cfg.php"); 26 if (!isset($input['type'])) $input['type'] = 'text'; 58 function configfile_writeable() { 59 return is_writeable( CLASSPATH."payment/".$this->classname.".cfg.php" ); 60 } 61 function configfile_readable() { 62 return is_readable( CLASSPATH."payment/".$this->classname.".cfg.php" ); 63 } 66 $configs = $this->configs(); 67 $config = "<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); \n\n"; 68 foreach($configs as $item) { 72 } 73 if ($fp = fopen(CLASSPATH ."payment/".$this->classname.".cfg.php", "w")) { 74 fputs($fp, $config, strlen($config));Agent.php https://gitlab.com/yousafsyed/easternglamor | PHP | 313 lines
1<?php 2/** 2/** 3 * Pure-PHP ssh-agent client. 4 * 4 * 5 * PHP versions 4 and 5 6 * 8 * <code> 9 * <?php 10 * include 'System/SSH/Agent.php'; 10 * include 'System/SSH/Agent.php'; 11 * include 'Net/SSH2.php'; 12 * 44 * @package System_SSH_Agent 45 * @author Jim Wigginton <terrafrost@php.net> 46 * @copyright 2014 Jim Wiggintonsmtp.php https://github.com/fuel/email.git | PHP | 350 lines
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework. 4 * 9 * @copyright 2010 - 2019 Fuel Development Team 10 * @link https://fuelphp.com 11 */ 125 126 fputs($this->smtp_connection, $line.$this->config['newline']); 127 } 281 stream_set_timeout($this->smtp_connection, $this->config['smtp']['timeout']); 282 if ( ! fputs($this->smtp_connection, $data . $this->config['newline'])) 283 {stream.php https://github.com/jamusj/iphone.git | PHP | 85 lines
1<?php 2 /* 32 33 require_once 'streamlib.php'; 34 62 $file=fsockopen($parsed_url["site"],$parsed_url["port"]); 63 fputs($file,"GET ".$parsed_url["loc"]." HTTP/1.0\n\n"); 64Passwd.php https://github.com/wrobel/horde.git | PHP | 423 lines
1<?php 2/** 5 * 6 * Copyright 1997-2007 Rasmus Lerdorf <rasmus@php.net> 7 * Copyright 2002-2012 Horde LLC (http://www.horde.org/) 11 * 12 * @author Rasmus Lerdorf <rasmus@php.net> 13 * @author Chuck Hagenbuch <chuck@horde.org> 119 } 120 fputs($this->_fplock, $data . "\n"); 121 }edv-datenbank-pass.php https://bitbucket.org/vincentbii/amurt.git | PHP | 242 lines
41 $line=date("d.m.Y").' '.date("H.i").' '.$report.' Username='.$userid.' Password='.$key.' Fileaccess='.$remark1.' Fileforward='.$remark2; 42 fputs($file,$line);fputs($file,"\r\n"); 43 fclose($file); 108 109<BODY <?php if (!$nofocus) echo 'onLoad="document.passwindow.userid.focus()"'; echo ' bgcolor='.$cfg['body_bgcolor']; 110 if (!$cfg['dhtml']){ echo ' link='.$cfg['body_txtcolor'].' alink='.$cfg['body_alink'].' vlink='.$cfg['body_txtcolor']; } 120<tr> 121<td colspan=3><img src=../img/einga-b.gif border=0 width=130 height=25><!-- <a href="op-pflege-logbuch-such-pass.php?sid=<?php echo $$ck_sid_buffer;?>"><img src="../img/such-gray.gif" border=0 width=130 height=25 <?php if($cfg['dhtml'])echo'style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)>';?></a><a href="op-pflege-logbuch-arch-pass.php?sid=<?php echo $$ck_sid_buffer;?>"><img src="../img/arch-gray.gif" border=0 width=130 height=25 <?php if($cfg['dhtml'])echo'style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)>';?></a> --></td> 122</tr> 162<tr> 163<?php if(!$passtag) echo' 164<td> 228<img src="../img/small_help.gif"> <a href="<?php echo $root_path; ?>main/ucons.php<?php echo URL_APPEND; ?>">Einf�hrung in die SQL Datenbank.</a><br> 229<img src="../img/small_help.gif"> <a href="<?php echo $root_path; ?>main/ucons.php<?php echo URL_APPEND; ?>">Wie mache ich was hier?</a><br> 230<HR>Ftp.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 327 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 */ 252 $stream = tmpfile(); 253 fputs($stream, $src); 254 fseek($stream, 0);ERunActionsHttpClient.php https://github.com/teeaich/snapity.git | PHP | 153 lines
1<?php 2 3/** 4 * ERunActionsHttpClient.php 5 * 6 * A simple Http request client based on 7 * http://www.php.net/manual/de/function.fsockopen.php#101872 8 * 11 * 12 * PHP version 5.2+ 13 * 33 * Socked based http request 34 * Based on code from: http://www.php.net/manual/de/function.fsockopen.php#101872 35 * Added touchOnly feature, changed headers 130 131 fputs($fp, $req); 132class.wsdlcache.php https://github.com/Dimyan/muhovyaz_ps.git | PHP | 209 lines
1<?php 2/* 14* @author Ingo Fischer <ingo@apollon.de> 15* @version $Id: class.wsdlcache.php 6626 2011-05-24 09:44:48Z aFolletete $ 16* @access public 153 } 154 fputs($fp, $s); 155 fclose($fp);tracker_gateway.php https://gitlab.com/oslc-cm-server/olbergers-ff5-oslc.git | PHP | 257 lines
1#! /usr/bin/php4 -f 2<?php 28 * 29 * This file is based on forum_gateway.php 30 */ 31 32require_once ('squal_pre.php'); 33require_once ('common/include/Group.class'); 91 $tmpfile = tempnam ("/tmp", "artifact_gateway.".rand()."-".rand()); 92 $in = fopen("php://stdin", "r"); 93 $out = fopen($tmpfile, "w"); 95 while($buffer = fgets($in, 4096)) { 96 fputs($out, $buffer); 97 }function.fetch.php https://gitlab.com/flyhope/Hiblog | PHP | 221 lines
1<?php 2/** 14 * 15 * @link http://www.smarty.net/manual/en/language.function.fetch.php {fetch} 16 * (Smarty online manual) 44 if ($protocol) { 45 // remote resource (or php stream, …) 46 if (!$template->smarty->security_policy->isTrustedUri($params['file'])) { 165 if ($_is_proxy) { 166 fputs($fp, 'GET ' . $params['file'] . " HTTP/1.0\r\n"); 167 } else { 167 } else { 168 fputs($fp, "GET $uri HTTP/1.0\r\n"); 169 } 170 if (!empty($host)) { 171 fputs($fp, "Host: $host\r\n"); 172 }deploy.php https://bitbucket.org/figurluk/unit_prague_2018.git | PHP | 145 lines
1<?php 2 4 5require 'recipe/common.php'; 6require 'recipe/laravel.php'; 9{ 10 $reading = fopen('database/seeds/production-seeds.php', 'r'); 11 $writing = fopen('database/seeds/production-seeds.tmp', 'w'); 17 if (strpos($line, $seeder)) { 18 fputs($writing, $line); 19 fgets($reading); 22 } 23 fputs($writing, $line); 24 } 28 if ($replaced) { 29 unlink('database/seeds/production-seeds.php'); 30 rename('database/seeds/production-seeds.tmp', 'database/seeds/production-seeds.php');VarnishAdminSocket.php https://github.com/arjenschat/php-varnish.git | PHP | 281 lines
1<?php 2/** 108 private function write( $data ){ 109 $bytes = fputs( $this->fp, $data ); 110 if( $bytes !== strlen($data) ){SSH_Agent.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 313 lines
1<?php 2/** 2/** 3 * Pure-PHP ssh-agent client. 4 * 4 * 5 * PHP versions 4 and 5 6 * 8 * <code> 9 * <?php 10 * include('System/SSH_Agent.php'); 10 * include('System/SSH_Agent.php'); 11 * include('Net/SSH2.php'); 12 * 44 * @package System_SSH_Agent 45 * @author Jim Wigginton <terrafrost@php.net> 46 * @copyright MMXIV Jim Wigginton