brute-force changed access to $_GET['key'] to use get_array instead
[plewww.git] / plekit / php / logSorting.php
index 69e98aa..e3c6877 100644 (file)
@@ -13,14 +13,14 @@ require_once 'plc_drupal.php';
 // Common functions
 require_once 'plc_functions.php';
 
-$value=$_GET["value"];
-$person_id=$_GET["person_id"];
-$slice_id=$_GET["slice_id"];
+$value=get_array($_GET, "value");
+$person_id=get_array($_GET, "person_id");
+$slice_id=get_array($_GET, "slice_id");
 
-$myFile = "/var/log/myslice.log";
+$myFile = "/var/log/myslice/myslice.log";
 $fh = fopen($myFile, 'a') or die("can't open file");
 $stringData = date('Ymd-H:i')."|".$person_id.":".$slice_id.":".$value."\n";
 fwrite($fh, $stringData);
 fclose($fh);
 
-?> 
+?>