if ($_SESSION["UsErId"] == "" && $_SESSION["UnAmE"] == "") { header("Location:index.php"); } //Creates object for global class file $hldGlobal = new clsGlobal($hdlDb); //Creates object for sigma template $hdlTpl =& new HTML_Template_Sigma(DIR_ADMIN_TEMPLATE, DIR_ADMIN_TEMPLATE . "/prepared"); //Loads message template. $hdlTpl->loadTemplateFile("message.htm", TRUE, TRUE); $strHeader = $hldGlobal->fnGetHeader(); //Fetches header template $strFooter = $hldGlobal->fnGetFooter(); //Fetches footer template $strLeftMenu = $hldGlobal->fnGetLMenu(); //Fetches menu template $strMetatag = $hldGlobal->fnGetMetatag(); //Fetches Metatag template $hdlTpl->setVariable("metatag", $strMetatag); //Assigns Metatag $hdlTpl->setVariable("header", $strHeader); //Assigns header template $hdlTpl->setVariable("footer", $strFooter); //Assigns footer template $return = $hldGlobal->fnDecodeURL($_GET["return"]); if ($_GET["mess"]) { //Checks if mess has any value or not if ($_GET["mess"] == 1) { //Assigns message to variable $strMessage = "Cources added successfully... <br><a href='addcource.php' class='green_link'><< Back</a>"; } if ($_GET["mess"] == 2) {