pierrot10 Posted April 7, 2012 Share Posted April 7, 2012 Dear All I am writing a small module. For now I have a page which is opened in iframe windows with Fancybox. In thaz window, I do not want to have a them layout, as the header and the footer. Here is my code (very simple and in progress) <?php include('../../config/config.inc.php'); include('../../init.php'); ini_set('display_errors',1); /* If the user is not logged, the login box and account creation box is diplay. Then ihes are redirected to that page */ global $smarty; $cookie = new Cookie('ps'); /* //This dos not work if (!$cookie->isLogged() ){ Tools::redirect('authentication.php?back=hwdeals_update.php'); } */ if(count($_POST) >0){ print_r($_POST); } $smarty->assign(array( 'id_product' => $_GET['id'], 'now' => date('Y-m-d H:i:s') )); $smarty->display(dirname(__FILE__).'/hwdeals_update.tpl'); ?> If the user is not loggin, I would like to have the loging box and the box to create an account, but without the them layout (header.php and footer.php) When he is loggin, I would like to have him back to that simple page which is under development. Do you have an idea to help me? Thank a lot Cheers Link to comment Share on other sites More sharing options...
Recommended Posts