Commented out unused functions in database backend so we will not have to reimplement...
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / add.inc
index 83ea201f764cf68b962814363fa09e3d89656760..7bd3f9a0727c9611a7ee31da13b123129ba23a0b 100644 (file)
@@ -1,12 +1,15 @@
 <?php
 //funkcie na pridanie Re: alebo Re[x]: do nazvu (by Maniax)
-function title_reply_callback($_matches) {return ($_matches[1].($_matches[2] + 1).$_matches[3]);}
+function title_reply_callback($_matches) {
+       return ($_matches[1].($_matches[2] + 1).$_matches[3]);
+}
+
 function title_reply($_in) {
-if (preg_match('/^Re[:\[]/', $_in)) {
-if (preg_match('/^Re\[/', $_in))
-return (preg_replace_callback('/^(Re\[)(\d*)(\].*)$/', 'title_reply_callback', $_in));
-else return (preg_replace('/^(Re)(:.*)$/', '\1[2]\2', $_in));
-} else return ('Re: '.$_in);
+       if (preg_match('/^Re[:\[]/', $_in)) {
+               if (preg_match('/^Re\[/', $_in))
+                       return (preg_replace_callback('/^(Re\[)(\d*)(\].*)$/', 'title_reply_callback', $_in));
+               else return (preg_replace('/^(Re)(:.*)$/', '\1[2]\2', $_in));
+       } else return ('Re: '.$_in);
 }
 
 //Pridanie prispevku
@@ -103,10 +106,6 @@ function add() {
     $node_content=crypto::crypto($node_content,$key);
 
 
-    //setting generated crypto password for viewing
-    if ($node_system_access=='crypto') {
-    $_SESSION['crypto'][$id]=$key;
-    }
 
     }
 
@@ -115,9 +114,10 @@ function add() {
     $params['node_parent']=$node_parent;
     $params['node_system_access']=$node_system_access;
     $params['node_creator']=$_SESSION['user_id'];
-    $params['node_content']=$node_content;
+    $params['node_content']=mysql_escape_string($node_content);
     $params['external_link']=$external_link;
     nodes::addNode($params);
     return true;
-    }
-    ?>
+}
+
+?>
This page took 0.126002 seconds and 4 git commands to generate.