The first "production" version of the column selection interface
[plewww.git] / plekit / php / logSorting.php
diff --git a/plekit/php/logSorting.php b/plekit/php/logSorting.php
new file mode 100644 (file)
index 0000000..27e7ff5
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+// Require login
+require_once 'plc_login.php';
+
+// Get session and API handles
+require_once 'plc_session.php';
+global $plc, $api;
+
+//print header
+require_once 'plc_drupal.php';
+
+// Common functions
+require_once 'plc_functions.php';
+
+$value=$_GET["value"];
+$person_id=$_GET["slice_id"];
+
+$myFile = "/var/log/myslice-log";
+$fh = fopen($myFile, 'a') or die("can't open file");
+$stringData = "\n".date('Ymd-H:i')."|".$person_id.":".$value;
+fwrite($fh, $stringData);
+fclose($fh);
+
+?>