Miscellany
public text v1 · immutable<?php
error_reporting(E_ALL);
session_start();
if($_GET['item'] && $_GET['p']){
require_once('functions.php');
$x = get_item($cookie_file_path,$_GET['item'],$_GET['p']);
$_SESSION['item']['title'] = $x['title'];
$_SESSION['item']['price'] = $_GET['p'];
$_SESSION['item']['item'] = $x['item'];
$_SESSION['item']['seller'] = $x['seller'];
echo $x['page'];
exit;
} else {
header("HTTP/1.0 404 Not Found");
exit;
}
?>