From: Harvie Date: Mon, 29 Nov 2010 00:20:48 +0000 (+0100) Subject: Added inc/getTemplate.inc - i will use this for loading templates directly from DB X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=827c8e7dbe1be62a0549b0b285ae10e50dd1aebf;p=mirrors%2FKyberia-bloodline.git Added inc/getTemplate.inc - i will use this for loading templates directly from DB --- diff --git a/wwwroot/inc/getTemplate.inc b/wwwroot/inc/getTemplate.inc new file mode 100644 index 0000000..00269c9 --- /dev/null +++ b/wwwroot/inc/getTemplate.inc @@ -0,0 +1,23 @@ +$add_template_id by user ".$_SESSION['user_name']); + nodes::addNode($params); + */ + + if(!($set=$db->query("select node_content from nodes where node_id='$add_template_id'"))) return false; + $set->next(); + return stripslashes($set->getString('node_content')); +}