session_start(); echo 'intrati pe testare.rbw.ro'; die(); include_once('config.php'); include_once('classes/diverse.php'); include_once('classes/utilizatori.php'); include_once('classes/teste.php'); require('template/Smarty/libs/Smarty.class.php'); $smarty = new Smarty(); $smarty->template_dir = 'template/templates'; $smarty->compile_dir = 'template/templates_c'; $smarty->cache_dir = 'template/cache'; $smarty->config_dir = 'template/configurari'; $segment=explode('/',$_GET['var1']); $tip=$segment[0]; $idp=$segment[1]; $dir=$config_site_url; if ($tip=='logout') { unset($_SESSION['login']); unset($_SESSION['desfasurare']); header("Location:".$dir); } //user login screen if ($_SESSION['login']<1) {$user=new utilizatori; $user->login();} //end user login screen //lista teste (intro) if ($_SESSION['login']>0 and $_SESSION['desfasurare']<1 and $tip=='') { $result=$mysqli->query("SELECT id,nume,idinstructiuni,completare from utilizatori where id='".$_SESSION['login']."' LIMIT 1"); if ($result->num_rows) { $row=$result->fetch_array(); $numeutilizator=$row['nume']; $completare=$row['completare']; $idinstructiuni=$row['idinstructiuni']; } $completare=1; $continut.='