root/alternc-stats/branches/INIT/admin/stat_load.php

Revision 1340, 472 bytes (checked in by anonymous, 4 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2
3 require_once("../class/config.php");
4 require_once("stat_functions.php");
5
6
7 $db->query("SELECT * FROM bw_stats WHERE id='$id' AND uid='$cuid';");
8 if (!$db->next_record()) {
9   $error="Impossible de retrouver cette sauvegarde.";
10   include("stat.php");
11   exit;
12 }
13
14 $c=$db->Record;
15
16 $_POST=unserialize($c[params]);
17 $_POST["qname"]=addslashes($c[name]);
18 addslashes_rec($_POST);
19
20 reset($_POST);
21 while (list($k,$v)=each($_POST)) {
22   $$k=$v;
23 }
24
25 include("stat_list.php");
26
27
28 ?>
Note: See TracBrowser for help on using the browser.