From 827c8e7dbe1be62a0549b0b285ae10e50dd1aebf Mon Sep 17 00:00:00 2001 From: Harvie Date: Mon, 29 Nov 2010 01:20:48 +0100 Subject: [PATCH] Added inc/getTemplate.inc - i will use this for loading templates directly from DB --- wwwroot/inc/getTemplate.inc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 wwwroot/inc/getTemplate.inc 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')); +} -- 2.30.2