3a2d8389e24ad1a5670451b43c7f44845f311bd4
bernd initiales freewvs-modul

bernd authored 16 years ago

1) <?php
2) 
3) require_once('session/start.php');
bernd Zeige Freewvs-Resultate an

bernd authored 15 years ago

4) 
5) require_once('freewvs.php');
6) 
bernd initiales freewvs-modul

bernd authored 16 years ago

7) require_role(array(ROLE_SYSTEMUSER));
8) 
9) $uid = (int) $_SESSION['userinfo']['uid'];
10) 
11) if (in_array($_POST['freq'],array("day","week","month"))) {
bernd Zeige Freewvs-Resultate an

bernd authored 15 years ago

12)   check_form_token('freewvs_freq'); 
bernd initiales freewvs-modul

bernd authored 16 years ago

13) 	db_query("REPLACE INTO qatools.freewvs (user,freq) VALUES ({$uid},'{$_POST['freq']}');");
bernd eliminate .php extensions f...

bernd authored 15 years ago

14) 	header("Location: freewvs");
bernd initiales freewvs-modul

bernd authored 16 years ago

15) 	die();
16) }
17) 
18) $result = db_query("SELECT freq FROM qatools.v_freewvs WHERE uid={$uid};");
19) $result=mysql_fetch_assoc($result);
20) $freq=$result['freq'];
21)