compile_check = true; //print_r($_GET); if ($_GET['erreur'] == '0'){ $smarty->assign('error',"El usuario no existe"); } if ($_GET['erreur'] == '1'){ $smarty->assign('error',"Usuario ha sido validado todavia"); } if ($_GET['erreur'] == '3'){ $smarty->assign('error',"El Password es Incorrecto"); } if ($_SESSION['studentid'] != ''){ $student = new student($_SESSION['studentid']); $smarty->assign('data',$student->get()); }//print_r($_SESSION);exit; $protion = new photoPromotion(); $res = $protion->lastXmessagePhorum(3); //$smarty->assign('forum',$res); //print_r($res); $smarty->assign('year',$protion->getListeSchoolYear()); $smarty->assign('countYear',count($protion->getListeSchoolYear())); $smarty->assign('under',10); $smarty->display('www/index.tpl.htm'); ?>