smarty displaying source code on output
Posted: Fri Apr 15, 2011 1:20 pm
hi to all,
i m using Vertrigo and have a website having smarty coding, it is displaying source code of (PHP & Smarty) on webpage like following...
"assign("site_mode",1); } //Check if single user mode 1 or multi-user mode 0 if ($site_mode == 1) { $smarty->assign("single_mode",1); } if (isset($_SESSION["admin"])) { //session_write_close(); header("Location: admin/admin.php"); } elseif (isset($_SESSION["user"])) { //session_write_close(); header("Location: member.php"); } $user = ""; $pass = ""; if (isset($_POST["user"])) { if (verifyLogin($_POST["user"],$_POST["pass"])) { $_SESSION["user"] = $_POST["user"];"
i did checked tags and comments but can't find any solution, please guide me what to do ??
thanks in advance.
i m using Vertrigo and have a website having smarty coding, it is displaying source code of (PHP & Smarty) on webpage like following...
"assign("site_mode",1); } //Check if single user mode 1 or multi-user mode 0 if ($site_mode == 1) { $smarty->assign("single_mode",1); } if (isset($_SESSION["admin"])) { //session_write_close(); header("Location: admin/admin.php"); } elseif (isset($_SESSION["user"])) { //session_write_close(); header("Location: member.php"); } $user = ""; $pass = ""; if (isset($_POST["user"])) { if (verifyLogin($_POST["user"],$_POST["pass"])) { $_SESSION["user"] = $_POST["user"];"
i did checked tags and comments but can't find any solution, please guide me what to do ??
thanks in advance.