X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_search.php;h=5e35e0181dde943146a2ceeb611910dfa7c39147;hb=45fe16f2bfbe95069118ca82222113023754db0e;hp=8df3d241ba3f79d74488f2e36020af6899e9d83e;hpb=51ff32267c4949bad6a8dddc502cbc01ed56edc8;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/node_methodz/function.get_search.php b/wwwroot/inc/smarty/node_methodz/function.get_search.php index 8df3d24..5e35e01 100644 --- a/wwwroot/inc/smarty/node_methodz/function.get_search.php +++ b/wwwroot/inc/smarty/node_methodz/function.get_search.php @@ -1,39 +1,6 @@ ".$params['query']."",$output); -preg_match_all("/:::(.*?):::(.*?):::(.*?):::(.*?):::(.*?):::(.*?):::(.*?):::(.*?):::(.*?)n/i",$output,$matches); -foreach($matches[0] as $key => $value) { -preg_match("/(.*?).xml/i",$matches[2][$key],$ids); -$id=$ids[1]; -echo "".$matches[4][$key]." -(".$matches[6][$key].")
"; -echo $matches[7][$key]."

"; -//echo $matches[5][$key]."

"; -} - -global $db, $node; - -$q = "SELECT * FROM nodes WHERE node_system_access!='private' AND template_id=3 AND node_name LIKE -'%". -str_replace(array("%", "_"), array('%', '_'), -addslashes($params['query']))."%'"; -$set=$db->query($q); -while($set->next()) { -$rec = $set->getRecord(); -echo "{$rec[node_name]}
"; -} -*/ global $db, $node; if (is_numeric($params['offset'])) $offset = $params['offset']; else $offset = 0; @@ -67,4 +34,4 @@ while ($set->next()) { $smarty->assign('get_search',$search); } -?> \ No newline at end of file +?>