Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (36 sloc) 1.46 KB
require_once dirname(__FILE__).'/include/setup.php';
$path_extra = dirname(__FILE__).'/include/';
$path = ini_get('include_path');
$path = $path_extra . PATH_SEPARATOR . $path;
ini_set('include_path', $path);
require 'Auth/OpenID.php';
require_once dirname(__FILE__).'/include/connectDB.php';
if(!$_REQUEST['url']) die('Must specify a URL!');
$url = Auth_OpenID::normalizeUrl($_REQUEST['url']);
$url = mysql_real_escape_string($url, $db);
header('Content-Type: application/xhtml+xml; charset=utf-8');
echo '<?xml version="1.0" encoding="utf-8"?>';
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns="" xml:lang="en">
<title>Demand No Flash! - User <?php echo htmlentities($url); ?></title>
<link rel="stylesheet" media="screen" type="text/css" href="main.css" />
<?php require 'header.php' ?>
<h2>Demands by <?php echo htmlentities($url); ?></h2>
$demands = mysql_query("SELECT url,time FROM demand,login_ids WHERE demand.user_id=login_ids.user_id AND login_id='$url' ORDER BY time DESC", $db);
while($item = mysql_fetch_assoc($demands)) {
<li><a href="site.php?url=<?php echo htmlentities($item['url']); ?>"><?php echo htmlentities($item['url']); ?></a> <span class="published"><?php echo date('Y-m-d', $item['time']); ?></span></li>
<?php require 'footer.php' ?>