Security cleanup (sqli)
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / executorlist.inc
diff --git a/wwwroot/inc/eventz/executorlist.inc b/wwwroot/inc/eventz/executorlist.inc
deleted file mode 100644 (file)
index 04231bb..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-function executorlist() {
-        global $db,$error,$node;
-        $node_id=$node['node_id'];
-        if ($node['node_permission']!='owner') {
-                $error=$error_messages['EVENT_PERMISSION_ERROR'];
-                return false;
-        }
-
-        $executors=explode(";",$_POST['executorlist']); // XXX sqli
-        $db->query("update node_access set node_permission='' where
-               node_id=$node_id and node_permission='exec'");
-        foreach ($executors as $execitpr) {
-                 $set=$db->query("select user_id from users where login='$executor'");
-                 $set->next();
-                 if ($set->getString('user_id')) {
-                        $q="update node_access set node_permission='exec' where node_id=$node_id and
-user_id='".$set->getString('user_id')."'";
-                        $changed=$db->update($q);
-                        if (!$changed) {
-                                $q="insert into node_access set
-node_permission='exec',node_id=$node_id,user_id=".$set->getString('user_id');
-                                $db->query($q);
-                                $logger::log('add exec',$node_id,'ok',$executor);
-
-                        }
-                }
-                else { $error .= "$executor does not exist..."; }
-        }
-}
-?>
This page took 0.143082 seconds and 4 git commands to generate.