assign("stylesheet",$_REQUEST["stylesheet"]); // tell smarty which page we're displaying $smarty->assign("site",$site); $smarty->assign("category",$category); // display standard html header in every page $smarty->display('header.tpl'); // assign a picture to display if we're in the screenShot page, don't use site.tpl if ($site == "screenShot" && array_key_exists('showPicture',$_REQUEST)) { $smarty->assign("showPicture",$_REQUEST["showPicture"]); $smarty->display('screenShot.tpl'); } else { // display the content according to $site-parameter $smarty->display('site.tpl'); } // display standard html footer in every page $smarty->display('footer.tpl'); ?>