brute-force changed access to $_GET['key'] to use get_array instead
[plewww.git] / plekit / php / logSorting.php
1 <?php
2
3 // Require login
4 require_once 'plc_login.php';
5
6 // Get session and API handles
7 require_once 'plc_session.php';
8 global $plc, $api;
9
10 //print header
11 require_once 'plc_drupal.php';
12
13 // Common functions
14 require_once 'plc_functions.php';
15
16 $value=get_array($_GET, "value");
17 $person_id=get_array($_GET, "person_id");
18 $slice_id=get_array($_GET, "slice_id");
19
20 $myFile = "/var/log/myslice/myslice.log";
21 $fh = fopen($myFile, 'a') or die("can't open file");
22 $stringData = date('Ymd-H:i')."|".$person_id.":".$slice_id.":".$value."\n";
23 fwrite($fh, $stringData);
24 fclose($fh);
25
26 ?>