Esempio n. 1
0
 function check_session()
 {
     if (!isset($_SESSION['user_name'])) {
         $tpl = new tpl();
         $data = array('html_header' => $tpl->html_header, 'show_login' => $tpl->show_login);
         echo $tpl->replace_vars($tpl->html_show_login, $data);
         die;
     }
 }