Untitled diff

Created Diff never expires
3 removals
15 lines
6 additions
18 lines
<?php
<?php
//parse the command line into the $_GET variable
session_start();
//parse the command line into the $_GET variable
if ( isset($_SERVER) && array_key_exists('QUERY_STRING', $_SERVER) ) {
if ( isset($_SERVER) && array_key_exists('QUERY_STRING', $_SERVER) ) {
parse_str($_SERVER['QUERY_STRING'], $_GET);
parse_str($_SERVER['QUERY_STRING'], $_GET);
}
}


//parse the standard input into the $_POST variable
//parse the standard input into the $_POST variable

if (($_SERVER['REQUEST_METHOD'] === 'POST')
if (($_SERVER['REQUEST_METHOD'] === 'POST')
&& ($_SERVER['CONTENT_LENGTH'] > 0))
&& (isset($argv[3])))
{
{
parse_str(fread(STDIN, $_SERVER['CONTENT_LENGTH']), $_POST);
parse_str($argv[3], $_POST);
}
}


chdir($argv[1]);
chdir($argv[1]);
require_once $argv[2];
require_once $argv[2];
?>