Added base36 support to eventz.inc
authorHarvie <tomas@mudrunka.cz>
Wed, 22 Dec 2010 00:27:32 +0000 (01:27 +0100)
committerHarvie <tomas@mudrunka.cz>
Wed, 22 Dec 2010 00:27:32 +0000 (01:27 +0100)
wwwroot/inc/eventz.inc

index 26b1378235c85013b5817cf9db72ea6ef56f6682..9312f205187819f0c6a28c1af25350791c07b3d5 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+if(preg_match('/36$/', $event) || preg_match('/36$/', $_POST['event'])) {
+  $event = preg_replace('/36$/', '', $event);
+  $_POST['event'] = preg_replace('/36$/', '', $_POST['event']);
+  $_POST['nodeshell_id'] = base_convert($_POST['nodeshell_id'], 36, 10); //put36
+  $_POST['new_parent'] = base_convert($_POST['new_parent'], 36, 10); //set_parent36
+}
+
 //do not make a permission check if an event was executed before
 if ($_SESSION['eventz'][$event]) {
        include_once(INCLUDE_DIR."eventz/$event.inc");
This page took 0.128428 seconds and 4 git commands to generate.