if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off"){ $redirect = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; header('HTTP/1.1 301 Moved Permanently'); header('Location: ' . $redirect); exit(); } session_start(); include_once 'config.php'; require('classes/Smarty/Smarty.class.php'); $smarty = new Smarty(); $smarty->template_dir = 'templates/templates'; $smarty->compile_dir = 'templates/templates_c'; $smarty->cache_dir = 'templates/cache'; $smarty->config_dir = 'templates/configurari'; //include clase noi include 'classes/database.php'; include 'classes/rpl.php'; //end include clase noi //define link location $segment=explode("/",$_GET['var1']); $tip=$segment[0]; $idp=$segment[1]; //end define link location if ($_GET['debug']==1) $_SESSION['debug']=1; if ($_SESSION['debug']!=1) { echo '
