Beispiel #1
0
function skin_LayoutAdminPage_Default()
{
    global $rub;
    global $adm_login;
    global $adm_pass;
    global $conf_session_expir_minute;
    global $pro_mysql_config_table;
    global $conf_skin;
    global $top_commands;
    global $adm_random_pass;
    $anotherTopBanner = anotherTopBanner("DTC", "yes");
    ///////////////////////
    // Make All the page //
    ///////////////////////
    switch ($rub) {
        case "crm":
            // CRM TOOL
            $rightFrameCells[] = skin($conf_skin, DTCRMeditClients(), _("Customer's address"));
            if (isset($_REQUEST["id"]) && $_REQUEST["id"] != "" && $_REQUEST["id"] != 0) {
                $rightFrameCells[] = skin($conf_skin, DTCRMclientAdmins(), _("Customer's administrators"));
            }
            $rightFrame = makeVerticalFrame($rightFrameCells);
            $leftFrameCells[] = skin($conf_skin, DTCRMlistClients(), _("Customers list"));
            $leftFrame = makeVerticalFrame($leftFrameCells);
            $zemain_content = anotherLeftFrame($leftFrame, $rightFrame);
            break;
        case "renewal":
            $out = drawRenewalTables();
            $zemain_content = skin($conf_skin, $out, _("Customer renewals"));
            break;
        case "monitor":
            // Monitor button
            $out = drawAdminMonitor();
            $zemain_content = skin($conf_skin, $out, _("Customer's bandwidth consumption"));
            break;
        case "graph":
            $zemain_content = skin($conf_skin, drawRrdtoolGraphs(), _("Server statistic graphs"));
            break;
        case "generate":
            // Gen Config Files
            $mainFrameCells[] = skin($conf_skin, $top_commands, _("Launching the configuration files generation"));
            $the_iframe = "<br><br>" . _("Please note that you need to create at least one email and one FTP account in order to have the daemon status working!") . "<br><IFRAME src=\"deamons_state.php\" width=\"100%\" height=\"135\"></iframe>";
            $mainFrameCells[] = skin($conf_skin, $the_iframe, _("Deamons states"));
            // fixed bug by seeb
            // The console
            $mainFrameCells[] = skinConsole();
            $zemain_content = makeVerticalFrame($mainFrameCells);
            break;
        case "config":
            // Global Config
            $chooser_menu = drawDTCConfigMenu();
            $leftFrameCells[] = skin($conf_skin, $chooser_menu, "Menu");
            $leftFrame = makeVerticalFrame($leftFrameCells);
            $rightFrameCells[] = skin($conf_skin, drawDTCConfigForm(), _("DTC Configuration"));
            $rightFrame = makeVerticalFrame($rightFrameCells);
            $zemain_content = anotherLeftFrame($leftFrame, $rightFrame);
            break;
        case "product":
            $bla = productManager();
            $zemain_content = skin($conf_skin, $bla, _("Hosting product manager"));
            break;
        case "user":
            // User Config
        // User Config
        case "domain_config":
        case "adminedit":
        default:
            // No rub selected
            // A virtual admin edition
            // We have to call it first, in case it will generate a random pass (edition of an admin with inclusion of user's panel)
            $rightFrameCells[] = userEditForms($adm_login, $adm_pass);
            $rightFrameCells[] = skinConsole();
            $rightFrame = makeVerticalFrame($rightFrameCells);
            // Our list of admins
            // If random password was not set before this, we have to calculate it now!
            if (isset($adm_random_pass)) {
                $rand = $adm_pass;
            } else {
                $rand = getRandomValue();
                $expirationTIME = mktime() + 60 * $conf_session_expir_minute;
                $q = "UPDATE {$pro_mysql_config_table} SET root_admin_random_pass='******', pass_expire='{$expirationTIME}';";
                $r = mysql_query($q) or die("Cannot execute query \"{$q}\" !");
            }
            $leftFrameCells[] = skin($conf_skin, adminList($rand), _("Admins list"));
            // Make the frame
            $leftFrame = makeVerticalFrame($leftFrameCells);
            $zemain_content = anotherLeftFrame($leftFrame, $rightFrame);
            break;
    }
    if (function_exists("skin_Navbar")) {
        $dtc_main_menu = skin_Navbar();
    } else {
        $dtc_main_menu = skin_Navbar_Default();
    }
    $the_page[] = skin($conf_skin, $dtc_main_menu, _("Domain Technologie Control : root admin console"));
    $the_page[] = $zemain_content;
    $pageContent = makeVerticalFrame($the_page);
    $anotherFooter = anotherFooter("Footer content<br><br>");
    if (!isset($anotherHilight)) {
        $anotherHilight = "";
    }
    if (!isset($anotherMenu)) {
        $anotherMenu = "";
    }
    echo anotherPage("admin:", "", $anotherHilight, makePreloads(), $anotherTopBanner, $anotherMenu, $pageContent, $anotherFooter);
}
Beispiel #2
0
function skin_LayoutAdminPage()
{
    global $rub;
    global $adm_login;
    global $adm_pass;
    global $conf_session_expir_minute;
    global $pro_mysql_config_table;
    global $pro_mysql_tik_admins_table;
    global $conf_skin;
    global $top_commands;
    global $adm_random_pass;
    global $page_metacontent;
    global $meta;
    global $confirm_javascript;
    global $java_script;
    global $skinCssString;
    global $console;
    ///////////////////////
    // Make All the page //
    ///////////////////////
    switch ($rub) {
        case "crm":
            // CRM TOOL
            $admin_list = DTCRMlistClients();
            $client_editor = DTCRMeditClients();
            if (isset($_REQUEST["id"]) && $_REQUEST["id"] != "" && $_REQUEST["id"] != 0) {
                $client_editor .= DTCRMclientAdmins();
            }
            $zemain_content = '
<table class="box_wnb" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="box_wnb_nb" valign="top">
    	<div class="box_wnb_nb_title"><div class="box_wnb_nb_title_left"><div class="box_wnb_nb_title_right"><div class="box_wnb_nb_title_mid">' . _("Customers list") . '</div></div></div></div>
    	' . $admin_list . '
    </td>
    <td class="box_wnb_content" valign="top">
      <div class="box_wnb_content_container">
      <h2>' . _("Customer's address") . '</h2>
      ' . $client_editor . '
      </div>
    </td>
  </tr>
  <tr>
    <td class="box_wnb_nb_bottom"></td>
    <td class="box_wnb_content_bottom" valign="top"></td>
  </tr>
</table>';
            break;
        case "renewal":
            $out = drawRenewalTables();
            $zemain_content = skin($conf_skin, $out, _("Customer renewals"));
            break;
        case "monitor":
            // Monitor button
            $out = drawAdminMonitor();
            $zemain_content = skin($conf_skin, $out, _("Customer's bandwidth consumption"));
            break;
        case "graph":
            $zemain_content = skin($conf_skin, drawRrdtoolGraphs(), _("Server statistic graphs"));
            break;
        case "generate":
            // Gen Config Files
            $mainFrameCells[] = skin($conf_skin, $top_commands, _("Launching the configuration files generation"));
            $the_iframe = "<br><br>" . _("Please note that you need to create at least one email and one FTP account in order to have the daemon status working!") . "<br><IFRAME src=\"deamons_state.php\" width=\"100%\" height=\"135\"></iframe>";
            $mainFrameCells[] = skin($conf_skin, $the_iframe, _("Deamons states"));
            // fixed bug by seeb
            // The console
            $mainFrameCells[] = skinConsole();
            $zemain_content = makeVerticalFrame($mainFrameCells);
            break;
        case "config":
            // Global Config
            $zemain_content = '
<table class="box_wnb" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="box_wnb_nb" valign="top">
    	<div class="box_wnb_nb_title"><div class="box_wnb_nb_title_left"><div class="box_wnb_nb_title_right"><div class="box_wnb_nb_title_mid">' . _("Menu") . '</div></div></div></div>
    	' . drawDTCConfigMenu() . '
    </td>
    <td class="box_wnb_content" valign="top">
    	 <div class="box_wnb_content_container">
	  <h2>' . _("DTC Configuration") . '</h2>
' . drawDTCConfigForm() . '
	</div>
    </td>
  </tr>
  <tr>
    <td class="box_wnb_nb_bottom"></td>
    <td class="box_wnb_content_bottom" valign="top"></td>
  </tr>
</table>';
            break;
        case "product":
            $bla = productManager();
            $zemain_content = skin($conf_skin, $bla, _("Hosting product manager"));
            break;
        case "user":
            // User Config
        // User Config
        case "domain_config":
        case "adminedit":
        default:
            // No rub selected
            $bwoup_user_edit = bwoupUserEditForms($adm_login, $adm_pass);
            if (isset($adm_random_pass)) {
                $rand = $adm_random_pass;
            } else {
                $rand = getRandomValue();
                $adm_random_pass = $rand;
                $expirationTIME = mktime() + 60 * $conf_session_expir_minute;
                $q = "UPDATE {$pro_mysql_tik_admins_table} SET pass_next_req='{$rand}', pass_expire='{$expirationTIME}' WHERE pseudo='" . $_SERVER["PHP_AUTH_USER"] . "';";
                $r = mysql_query($q) or die("Cannot execute query \"{$q}\" !");
            }
            $skinedConsole = '<table cellpadding="0" cellspacing="0" class="console">
	  <tr><td class="console_title">' . _("Console output") . ' :</td>
	  </tr><tr>		<td class="console_output"><pre>' . $_SERVER['SERVER_NAME'] . ':&gt;_' . $console . '<br><span id="console_content" class="console_content"></span></pre></td></tr></table>';
            $adm_list = adminList($rand) . '
	  <div class="voider"></div>
	  <br /><br />
		<div class="voider"></div>';
            $zemain_content = '
<table class="box_wnb" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="box_wnb_nb" valign="top">
    	<div class="box_wnb_nb_title"><div class="box_wnb_nb_title_left"><div class="box_wnb_nb_title_right"><div class="box_wnb_nb_title_mid">' . _("Admins list") . '</div></div></div></div>
    	' . $adm_list . '
    </td>
    <td class="box_wnb_content" valign="top">
      <div class="box_wnb_content_container">
      <h2>' . _("User administration") . " {$adm_login}" . '</h2>
      ' . $bwoup_user_edit . $skinedConsole . '
      </div>
    </td>
  </tr>
  <tr>
    <td class="box_wnb_nb_bottom"></td>
    <td class="box_wnb_content_bottom" valign="top"></td>
  </tr>
</table>';
            break;
    }
    $dtc_main_menu = skin_Navbar();
    $anotherFooter = anotherFooter("Footer content<br><br>");
    echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html>\n<head>\n<title>DTC: Admin: " . $_SERVER['SERVER_NAME'] . "</title>\n{$page_metacontent}\n{$meta}\n</head>\n<body id=\"page\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n\t  <div id=\"outerwrapper\">\n    <div id=\"wrapper\">\n\n" . makePreloads() . "\n{$confirm_javascript}\n{$java_script}\n<link rel=\"stylesheet\" href=\"gfx/skin/bwoup/skin.css\" type=\"text/css\">\n{$skinCssString}\n\n" . anotherTopBanner("DTC", "yes") . $dtc_main_menu . "\n<div id=\"content\">" . $zemain_content . "</div>\n<div id=\"footer\">" . anotherFooter("Footer content<br><br>") . "</div>\n    </div>\n</div>\n</body>\n</html>";
}
Beispiel #3
0
function skin_LayoutAdminPage()
{
    global $rub;
    global $adm_login;
    global $adm_pass;
    global $conf_session_expir_minute;
    global $pro_mysql_config_table;
    global $pro_mysql_tik_admins_table;
    global $conf_skin;
    global $top_commands;
    global $adm_random_pass;
    global $page_metacontent;
    global $meta;
    global $confirm_javascript;
    global $java_script;
    global $skinCssString;
    global $console;
    ///////////////////////
    // Make All the page //
    ///////////////////////
    switch ($rub) {
        case "crm":
            // CRM TOOL
            $admin_list = DTCRMlistClients();
            $client_editor = DTCRMeditClients();
            if (isset($_REQUEST["id"]) && $_REQUEST["id"] != "" && $_REQUEST["id"] != 0) {
                $client_editor .= DTCRMclientAdmins();
            }
            // main content
            $zemain_content = '
<table class="box_wnb" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="box_wnb_nb" valign="top">
			<div class="box_wnb_nb_title_left"><div class="box_wnb_nb_title_mid">' . _("Customers list") . '</div></div>
			' . $admin_list . '
		</td>
		<td class="box_wnb_content" valign="top">
			<table class="c_tht" cellpadding="0" cellspacing="0">
				<tr>
					<td class="c_thl-1" nowrap="nowrap">&nbsp;</td>
					<td class="c_thm-1 hleft" nowrap="nowrap">&nbsp;</td>
					<td class="c_thr-1" nowrap="nowrap">&nbsp;</td>
				</tr>
				<tr>
					<td class="c_bord-left" nowrap="nowrap"></td>
					<td class="c_back">
						<div class="thtitle">' . _("Customer's address") . '</div><br />
						' . $client_editor . '
					</td>
					<td class="c_bord-right" nowrap="nowrap"></td>
				</tr>
				<tr>
					<td class="c_tbl-1" nowrap="nowrap"></td>
					<td class="c_tbm-1 hleft" nowrap="nowrap">&nbsp;</td>
					<td class="c_tbr-1" nowrap="nowrap"></td>
				</tr>
			</table>
		</td>
	</tr>
</table>';
            break;
            //renewal page skin
        //renewal page skin
        case "renewal":
            $out = drawRenewalTables();
            $zemain_content = '
<table class="c_tht" cellpadding="0" cellspacing="0">
	<tr>
		<td class="c_thl-1" nowrap="nowrap">&nbsp;</td>
		<td class="c_thm-1 hleft" nowrap="nowrap">' . _("Customer renewals") . '</td>
		<td class="c_thr-1" nowrap="nowrap">&nbsp;</td>
	</tr>
	<tr>
		<td class="c_bord-left" nowrap="nowrap"></td>
		<td class="c_back">
			' . drawRenewalTables() . '
		</td>
		<td class="c_bord-right" nowrap="nowrap"></td>
	</tr>
	<tr>
		<td class="c_tbl-1" nowrap="nowrap"></td>
		<td class="c_tbm-1 hleft" nowrap="nowrap">&nbsp;</td>
		<td class="c_tbr-1" nowrap="nowrap"></td>
	</tr>
</table>';
            break;
            // server monitor skin
        // server monitor skin
        case "monitor":
            // Monitor button
            $out = drawAdminMonitor();
            $zemain_content = '
<table class="c_tht" cellpadding="0" cellspacing="0">
	<tr>
		<td class="c_thl-1" nowrap="nowrap">&nbsp;</td>
		<td class="c_thm-1 hleft" nowrap="nowrap">' . _("Customer's bandwidth consumption") . '</td>
		<td class="c_thr-1" nowrap="nowrap">&nbsp;</td>
	</tr>
	<tr>
		<td class="c_bord-left" nowrap="nowrap"></td>
		<td class="c_back">
			' . drawAdminMonitor() . '
		</td>
		<td class="c_bord-right" nowrap="nowrap"></td>
	</tr>
	<tr>
		<td class="c_tbl-1" nowrap="nowrap"></td>
		<td class="c_tbm-1 hleft" nowrap="nowrap">&nbsp;</td>
		<td class="c_tbr-1" nowrap="nowrap"></td>
	</tr>
</table>';
            break;
            // server RDDtool graphs skin
        // server RDDtool graphs skin
        case "graph":
            $zemain_content = '
<table class="c_tht" cellpadding="0" cellspacing="0">
	<tr>
		<td class="c_thl-1" nowrap="nowrap">&nbsp;</td>
		<td class="c_thm-1 hleft" nowrap="nowrap">' . _("Server statistic graphs") . '</td>
		<td class="c_thr-1" nowrap="nowrap">&nbsp;</td>
	</tr>
	<tr>
		<td class="c_bord-left" nowrap="nowrap"></td>
		<td class="c_back">
			' . drawRrdtoolGraphs() . '
		</td>
		<td class="c_bord-right" nowrap="nowrap"></td>
	</tr>
	<tr>
		<td class="c_tbl-1" nowrap="nowrap"></td>
		<td class="c_tbm-1 hleft" nowrap="nowrap">&nbsp;</td>
		<td class="c_tbr-1" nowrap="nowrap"></td>
	</tr>
</table>';
            break;
            // deamon gen skin
        // deamon gen skin
        case "generate":
            // Gen Config Files
            $mainFrameCells[] = '
<table class="c_tht" cellpadding="0" cellspacing="0">
	<tr>
		<td class="c_thl-1" nowrap="nowrap">&nbsp;</td>
		<td class="c_thm-1 hleft" nowrap="nowrap">' . _("Launching the configuration files generation") . '</td>
		<td class="c_thr-1" nowrap="nowrap">&nbsp;</td>
	</tr>
	<tr>
		<td class="c_bord-left" nowrap="nowrap"></td>
		<td class="c_back">' . $top_commands . ' </td>
		<td class="c_bord-right" nowrap="nowrap"></td>
	</tr>
	<tr>
		<td class="c_tbl-1" nowrap="nowrap"></td>
		<td class="c_tbm-1 hleft" nowrap="nowrap">&nbsp;</td>
		<td class="c_tbr-1" nowrap="nowrap"></td>
	</tr>
</table><br />';
            $the_iframe = "<br /><IFRAME src=\"deamons_state.php\" width=\"100%\" height=\"135\"></iframe>";
            $mainFrameCells[] = '
<table class="c_tht" cellpadding="0" cellspacing="0">
	<tr>
		<td class="c_thl-1" nowrap="nowrap">&nbsp;</td>
		<td class="c_thm-1 hleft" nowrap="nowrap">' . _("Deamons states") . '</td>
		<td class="c_thr-1" nowrap="nowrap">&nbsp;</td>
	</tr>
	<tr>
		<td class="c_bord-left" nowrap="nowrap"></td>
		<td class="c_back">' . $the_iframe . '</td>
		<td class="c_bord-right" nowrap="nowrap"></td>
	</tr>
	<tr>
		<td class="c_tbl-1" nowrap="nowrap"></td>
		<td class="c_tbm-1 hleft" nowrap="nowrap">&nbsp;</td>
		<td class="c_tbr-1" nowrap="nowrap"></td>
	</tr>
</table><br />';
            // The console
            $mainFrameCells[] = '
<table class="c_tht" cellpadding="0" cellspacing="0">
	<tr>
		<td class="c_thl-1" nowrap="nowrap">&nbsp;</td>
		<td class="c_thm-1 hleft" nowrap="nowrap">&nbsp;</td>
		<td class="c_thr-1" nowrap="nowrap">&nbsp;</td>
	</tr>
	<tr>
		<td class="c_bord-left" nowrap="nowrap"></td>
		<td class="c_back">' . skinConsole() . '</td>
		<td class="c_bord-right" nowrap="nowrap"></td>
	</tr>
	<tr>
		<td class="c_tbl-1" nowrap="nowrap"></td>
		<td class="c_tbm-1 hleft" nowrap="nowrap">&nbsp;</td>
		<td class="c_tbr-1" nowrap="nowrap"></td>
	</tr>
</table><br />';
            $zemain_content = makeVerticalFrame($mainFrameCells);
            break;
            // main config skin
        // main config skin
        case "config":
            // Global Config
            $zemain_content = '
<table class="box_wnb" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="box_wnb_nb" valign="top">
			<div class="dtctitle">' . "Menu" . '</div>
			' . drawDTCConfigMenu() . '
		</td>
		<td class="box_wnb_content" valign="top">
			<table class="c_tht" cellpadding="0" cellspacing="0">
				<tr>
					<td class="c_thl-1" nowrap="nowrap">&nbsp;</td>
					<td class="c_thm-1 hleft" nowrap="nowrap">&nbsp;</td>
					<td class="c_thr-1" nowrap="nowrap">&nbsp;</td>
				</tr>
				<tr>
					<td class="c_bord-left" nowrap="nowrap"></td>
					<td class="c_back">
						<div class="box_wnb_content_container">
							<div class="thtitle">' . _("DTC Configuration") . '</div><br />
							' . drawDTCConfigForm() . '
						</div>
					</td>
					<td class="c_bord-right" nowrap="nowrap"></td>
				</tr>
				<tr>
					<td class="c_tbl-1" nowrap="nowrap"></td>
					<td class="c_tbm-1 hleft" nowrap="nowrap">&nbsp;</td>
					<td class="c_tbr-1" nowrap="nowrap"></td>
				</tr>
			</table>
		</td>
	</tr>
</table>';
            break;
            // product setting page skin
        // product setting page skin
        case "product":
            $bla = productManager();
            $zemain_content = '<table class="c_tht" cellpadding="0" cellspacing="0">
			<tr>
				<td class="c_thl-1" nowrap="nowrap">&nbsp;</td>
				<td class="c_thm-1 hleft" nowrap="nowrap">' . _("Hosting product manager") . '</td>
				<td class="c_thr-1" nowrap="nowrap">&nbsp;</td>
			</tr>

			<tr>
				<td class="c_bord-left" nowrap="nowrap"></td>
				<td class="c_back">' . $bla . '</td>
				<td class="c_bord-right" nowrap="nowrap"></td>
			</tr>

			<tr>
				<td class="c_tbl-1" nowrap="nowrap"></td>
				<td class="c_tbm-1 hleft" nowrap="nowrap">&nbsp;</td>
				<td class="c_tbr-1" nowrap="nowrap"></td>
			</tr>
		</table>';
            break;
        case "user":
            // User Config
        // User Config
        case "domain_config":
            // admin home page skin
        // admin home page skin
        case "adminedit":
        default:
            // No rub selected
            $bwoup_user_edit = bwoupUserEditForms($adm_login, $adm_pass);
            if (isset($adm_random_pass)) {
                $rand = $adm_random_pass;
            } else {
                $rand = getRandomValue();
                $expirationTIME = mktime() + 60 * $conf_session_expir_minute;
                $q = "UPDATE {$pro_mysql_tik_admins_table} SET pass_next_req='{$rand}', pass_expire='{$expirationTIME}' WHERE pseudo='" . $_SERVER["PHP_AUTH_USER"] . "';";
                $r = mysql_query($q) or die("Cannot execute query \"{$q}\" !");
                $adm_random_pass = $rand;
            }
            $skinedConsole = '<table cellpadding="0" cellspacing="0" class="console">
		<tr>
			<td class="console_title">' . _("Console outputi") . ' :</td>
		</tr>
		<tr>
			<td class="console_output"><pre>' . $_SERVER['SERVER_NAME'] . ':&gt;_' . $console . '<br /><span id="console_content" class="console_content"></span></pre></td>
		</tr></table>';
            $adm_list = adminList($rand) . '
	  <div class="voider"></div>
	  <br /><br />
		<div class="voider"></div>';
            $zemain_content = '
<table class="box_wnb" border="0" cellpadding="0" cellspacing="0">
  <tr>
	<td class="box_wnb_nb" valign="top">
		<div class="box_wnb_nb_title_left"><div class="dtctitle">' . _("Admins list") . '</div></div>
		' . $adm_list . '
	</td>
	<td class="box_wnb_content" valign="top">
		<table class="c_tht" cellpadding="0" cellspacing="0">
			<tr>
				<td class="c_thl-1" nowrap="nowrap">&nbsp;</td>
				<td class="c_thm-1 hleft" nowrap="nowrap">&nbsp;</td>
				<td class="c_thr-1" nowrap="nowrap">&nbsp;</td>
			</tr>
			<tr>
				<td class="c_bord-left" nowrap="nowrap"></td>
				<td class="c_back">
					<div class="thtitle">' . _("User administration") . '</div><br />
					' . $bwoup_user_edit . $skinedConsole . '
				</td>
				<td class="c_bord-right" nowrap="nowrap"></td>
			</tr>
			<tr>
				<td class="c_tbl-1" nowrap="nowrap"></td>
				<td class="c_tbm-1 hleft" nowrap="nowrap">&nbsp;</td>
				<td class="c_tbr-1" nowrap="nowrap"></td>
			</tr>
		</table>
	</td>
  </tr>
</table>';
            break;
    }
    // admin page general layout
    $dtc_main_menu = skin_Navbar();
    $anotherFooter = anotherFooter("Footer content<br /><br />");
    echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" dir=\"ltr\" lang=\"en\" xml:lang=\"en\">\n<head>\n<title>DTC: Admin: " . $_SERVER['SERVER_NAME'] . "</title>\n{$page_metacontent}\n{$meta}\n<link rel=\"stylesheet\" href=\"gfx/skin/paperboard/skin.css\" type=\"text/css\" media=\"all\" />\n</head>\n<body id=\"page\">\n<div id=\"outerwrapper\">\n\t<div id=\"wrapper\">\n\t\t" . makePreloads() . "\n\t\t{$confirm_javascript}\n\t\t{$java_script}\n\t\t{$skinCssString}\n\t\t" . anotherTopBanner("DTC", "yes") . $dtc_main_menu . "\n\t\t<table class=\"tht\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t<tr>\n\t\t\t\t<td class=\"thl-1\" nowrap=\"nowrap\">&nbsp;</td>\n\t\t\t\t<td class=\"thm-1 hleft\" nowrap=\"nowrap\">&nbsp;</td>\n\t\t\t\t<td class=\"thr-1\" nowrap=\"nowrap\">&nbsp;</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class=\"bord-left\" nowrap=\"nowrap\"></td>\n\t\t\t\t<td class=\"w-full\">" . $zemain_content . "</td>\n\t\t\t\t<td class=\"bord-right\" nowrap=\"nowrap\"></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class=\"tbl-1\" nowrap=\"nowrap\"></td>\n\t\t\t\t<td class=\"tbm-1 hleft\" nowrap=\"nowrap\">&nbsp;</td>\n\t\t\t\t<td class=\"tbr-1\" nowrap=\"nowrap\"></td>\n\t\t\t</tr>\n\t\t</table>\n\t\t<div id=\"footer\">" . anotherFooter("Footer content<br /><br />") . "PaperBoard template for DTC made by <a href=\"http://www.labestiole.net\" title=\"la bestiole\" target=\"_blank\">cali</a></div>\n\t</div>\n</div>\n</body>\n</html>";
}