Register globals

This commit is contained in:
Alan Garcia 2012-08-21 13:25:01 +00:00
parent 83eb97f679
commit c3677c463a
2 changed files with 14 additions and 3 deletions

View File

@ -29,7 +29,13 @@
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
if (!$id) { $fields = array (
"id" => array ("post", "integer", ""),
"dir" => array ("post", "string", ""),
);
getFields($fields);
if (empty($id)) {
$error=_("No Statistics selected!"); $error=_("No Statistics selected!");
} else { } else {
$r=$sta2->put_stats_details_raw($id,$dir); $r=$sta2->put_stats_details_raw($id,$dir);

View File

@ -31,7 +31,12 @@ require_once("../class/config.php");
include_once("head.php"); include_once("head.php");
if (!$id) { $fields = array (
"id" => array ("get", "integer", ""),
);
getFields($fields);
if (empty($id)) {
$error=_("No Statistics selected!"); $error=_("No Statistics selected!");
} else { } else {
$r=$sta2->get_stats_details_raw($id); $r=$sta2->get_stats_details_raw($id);
@ -45,7 +50,7 @@ if (!$id) {
<hr id="topbar"/> <hr id="topbar"/>
<br /> <br />
<?php <?php
if ($error) { if (isset($error) && $error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";
include_once("foot.php"); include_once("foot.php");
exit(); exit();