Location: PHPKode > projects > Rilke CMS > rilkecms_095b_release/install_rilkecms/preview.php
<?php
//This page previews a theme in the index.php template
//The theme id is passed via the URL
require_once("prefs.php");
require_once("lib/gettheme.php");
require_once("lib/checktheme.php");

require_once("rodin.php");
require_once("bbbook/comments_class_two.php");
require_once("lib/comments.php");
require_once("lib/displaypost.php");
require_once("lib/makenavbox.php");
require("adminpear/lib/getusercinfo.php");
require("lib/displaypubcinfo.php");
 require("lib/makefavesitesbox.php");

$theme = $_GET['theme'];

//Preview a theme:
if (!empty($theme))
{
	if (checktheme($theme))//security check
		{
		 //echo "$theme is an installed theme!";
                 $tpath = gettheme(false,$theme);
		 //echo "The path for $theme is $tpath";
		 $tpath = $tpath . "index.php";
		 include($tpath);
		}
}


?>
Return current item: Rilke CMS