From 393e063db5a21a5c0ea97086cff1b08cc1e12269 Mon Sep 17 00:00:00 2001 From: Harvie Date: Fri, 24 Dec 2010 03:18:08 +0100 Subject: [PATCH] Removed transport event... Do not need this anymore... --- wwwroot/inc/eventz/transport.inc | 41 -------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 wwwroot/inc/eventz/transport.inc diff --git a/wwwroot/inc/eventz/transport.inc b/wwwroot/inc/eventz/transport.inc deleted file mode 100644 index 79f4218..0000000 --- a/wwwroot/inc/eventz/transport.inc +++ /dev/null @@ -1,41 +0,0 @@ - print_r(preg_split('/[:@]/','kyberia.sk:23456@lol')); -Array -( - [0] => kyberia.sk - [1] => 23456 - [2] => domena.tld -) -*/ - -$nodeshell_id=$_POST['nodeshell_id']; - -$transport = preg_split('/[:@]/',$nodeshell_id); -$nodeshell_id=$chosen; -$chosen=$transport[1]; -if(isset($transport[2])) $domain=$transport[2]; -$transport=$transport[0]; - - global $error_messages,$db,$node,$error; - $user_id = $_SESSION['user_id']; - - $nodeshell = nodes::getNodeById($nodeshell_id,UBIK_ID); - //$nodeshell_permissions = permissions::checkPermissions($nodeshell); - $nodeshell_vector = $nodeshell['node_vector']; - - $dst_vector = $nodeshell_vector.str_pad($chosen,VECTOR_CHARS,0,STR_PAD_LEFT); - $q = "update neurons set synapse_created=NOW(),link='hard',synapse=synapse+1, -dst_vector='$dst_vector' where src='$chosen' and dst='$nodeshell_id'"; - $result=$db->update($q); - - if (!$result) $db->query("insert into neurons set synapse_creator='$user_id',synapse_created=NOW(), -src='$chosen',dst='$nodeshell_id',dst_vector='$dst_vector',link='hard',synapse=1,transport='$transport'"); - - $db->query("update nodes set lastdescendant_created=NOW() where node_id='$nodeshell_id'"); -} -?> -- 2.30.2