define("CLIENTAREA",true);
require("init.php");
$at = $whmcs->get_req_var("at");
$ca = new WHMCS_ClientArea();
$ca->setPageTitle("虚拟主机"); //页面标题
$ca->addToBreadCrumb('index.php',$whmcs->get_lang('globalsystemname'));
$ca->addToBreadCrumb('hosting.php','虚拟主机');
$ca->initPage();
if ($at == ""){ $ca->setTemplate("mogupapapa_com_hostingpage");}//默认访问hosting.php页面和模板
if ($at == "linux") //访问hosting.php?at=linux
{
$ca->addToBreadCrumb('hosting.php?at=linux', 'Linux虚拟主机');//访问hosting.php?at=linux页面标题
$ca->setTemplate("mogupapapa_com_hostin_linuxg_page");//模板
$ca->setPageTitle("Linux虚拟主机"); //标题
}
//下面不解释了,再看不懂只能说你是猪啊,以此类推!可以无限创建多个
if ($at == "win") {
$ca->addToBreadCrumb('hosting.php?at=win', 'Windows虚拟主机');
$ca->setTemplate("mogupapapa_com_hostingpage");
$ca->setPageTitle("Windows虚拟主机");
}
$ca->output();
?>