X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fnodes.inc;h=008a527a0be424320be4325cb2d390d9d452dedb;hb=d235991a608d7aedf6528ba2b44a2280106d61bd;hp=46cbeaa2683f09d79fd272373e92506dd58929ad;hpb=94c8f5b3e574715cc692f8a92f8d332e0c55804a;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/nodes.inc b/wwwroot/inc/nodes.inc index 46cbeaa..008a527 100644 --- a/wwwroot/inc/nodes.inc +++ b/wwwroot/inc/nodes.inc @@ -61,10 +61,13 @@ function addNode($params) { $template_id=$params['template_id']; if (!is_numeric($template_id)) $template_id=DEFAULT_TEMPLATE_ID; + if(!isset($params['node_system_access'])) $params['node_system_access'] = $node['node_system_access']; + if(!isset($params['node_external_access'])) $params['node_external_access'] = $node['node_external_access']; + $q="insert into nodes set node_name='".$params['node_name']."', -node_external_access='".$node['node_external_access']."', -node_system_access='".$node['node_system_access']."', +node_external_access='".$params['node_external_access']."', +node_system_access='".$params['node_system_access']."', node_creator='".$params['node_creator']."', template_id='".$template_id."', external_link='".$external_link."', @@ -148,7 +151,7 @@ function processContent($node_content) { } $node_content = eregi_Replace("((( )|(\n)|(^))+)(http://|ftp://|https://)([[:alnum:]][^,[:space:]]*)","\\2\\6\\7",$node_content); - $node_content = mysql_real_escape_string($node_content); + //$node_content = mysql_real_escape_string($node_content); once is enough } return $node_content;