Adder logger object to eventz
authorniekt0 <niekt0@kyberia.cz>
Tue, 26 Oct 2010 22:18:18 +0000 (00:18 +0200)
committerniekt0 <niekt0@kyberia.cz>
Tue, 26 Oct 2010 22:18:18 +0000 (00:18 +0200)
wwwroot/inc/eventz/accesslist.inc
wwwroot/inc/eventz/banlist.inc
wwwroot/inc/eventz/configure_parent.inc
wwwroot/inc/eventz/executelist.inc
wwwroot/inc/eventz/executorlist.inc
wwwroot/inc/eventz/logout.inc
wwwroot/inc/eventz/masterlist.inc
wwwroot/inc/eventz/oplist.inc
wwwroot/inc/eventz/silencelist.inc
wwwroot/inc/eventz/unbook.inc

index 7fbe5ce29c44955f184422d2ece23754c5441ad8..337ccf145633ee8cf20631a40227b9a38d9f15af 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
        function accesslist() {
-               global $db,$error,$node,$error_messages;
+               global $db,$error,$node,$error_messages,$logger;
                $node_id=$node['node_id'];
                $access=explode(";",$_POST['access']);
 
index 4dd5dd87c5f7f1feb4511e4517f54d19953cc01e..9d4633266150e43ba9a6ddc5faec31e777994473 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
        function banlist() {
-               global $db,$error,$node;
+               global $db,$error,$node,$logger;
                $node_id=$node['node_id'];
 
 if ($node['node_permission']!=('owner' || 'master' || 'op')) {
index 1d97d7c6d5548b3cee5800b93a0005eecaaf9f9a..31846ff74cb272ba5d2e6ade4e1d5ed10deefd07 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 function configure_parent() {
-       global $db,$error,$node;
+       global $db,$error,$node,$logger;
        $user_id=$_SESSION['user_id'];
 
                        if (empty($_POST['node_creator'])) {
index 83c08acd23dc3330bbb51d21e1fad09b9bd6c635..18ff63c8fb9b4f7b54e5f3e3d39f6ea59b38b785 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 function executelist() {
-    global $db,$error,$node;
+    global $db,$error,$node,$logger;
     $node_id=$node['node_id'];
     $silence=explode(";",$_POST['execute']);
     if (($node['node_permission']!='owner') && ($node['node_permission']!='master')) {
index f6c24dc4e39124df46e03c21306356e07600d4f2..a00468cbd7b73e41b7f3361bdc01d129735775f8 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
         function executorlist() {
-                global $db,$error,$node;
+                global $db,$error,$node,$logger;
                 $node_id=$node['node_id'];
                 if ($node['node_permission']!='owner') {
                         $error=$error_messages['EVENT_PERMISSION_ERROR'];
index 2590c136149c0be71e864227fbdefb1e7cce8ae2..2d5ddb57b7477043d59d08bd3a56c48f130148ba 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
        function logout() {
-               global $db;
+               global $db,$logger;
                $q="update users set user_action_id=null where user_id='".$_SESSION['user_id']."'";
                $db->query($q);
                $logger->log('logout',$node['node_id'],'ok',$_SESSION['user_name']); 
index d2583658750c21ad3ef3b5f49cb3ce29d565db43..62832f0d606804d3deb4dd970ab4dca56707fd23 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
        function masterlist() {
-               global $db,$error,$node;
+               global $db,$error,$node,$logger;
                $node_id=$node['node_id'];
 if (($node['node_permission']!='owner') && ($node['node_permission']!='master')) {
 $error=$error_messages['EVENT_PERMISSION_ERROR'];
index ee048b7703126bb688b6df486c13fb16d189147f..f78bc560664361ea6d93f02dddbb698ace8a5bf6 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 function oplist() {
-    global $db,$error,$node;
+    global $db,$error,$node,$logger;
     $node_id=$node['node_id'];
 
     if (($node['node_permission']!='owner') && ($node['node_permission']!='master')) {
index 4aaf7032fc6f3d6ee6bee9d09e0bce4d130c99ce..eb59651f5e6981ffa1e70d72b55192b9adc2386e 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
        function silencelist() {
-               global $db,$error,$node;
+               global $db,$error,$node,$logger;
                $node_id=$node['node_id'];
                $silence=explode(";",$_POST['silence']);
 
index e92dd68445397640d8551e5f6b2300d0c3275e42..227f713b019857084c30d96974ce06a7e2b12177 100644 (file)
@@ -1,7 +1,7 @@
 <?php
        function unbook() {
 
-               global $db,$error,$node;
+               global $db,$error,$node,$logger;
                $q="update neurons set link='soft' where synapse_creator='".$_SESSION['user_id']."' and src='".$node['node_id']."' and link='bookmark'";
                $result=$db->update($q);
 
This page took 0.144038 seconds and 4 git commands to generate.