Register globals
This commit is contained in:
		
							parent
							
								
									83eb97f679
								
							
						
					
					
						commit
						c3677c463a
					
				|  | @ -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); | ||||||
|  |  | ||||||
|  | @ -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(); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Alan Garcia
						Alan Garcia