$proceed = "no"; } } if ($proceed == "yes") { if (isset($_REQUEST["payment_type"]) && $_REQUEST["payment_type"] == "cheque") { $payment_type = 'cheque'; $pending_reason = "Cheque"; } else { $payment_type = 'wire'; $pending_reason = "Wire transfer"; } $q = "UPDATE {$pro_mysql_pay_table} SET paiement_type='{$payment_type}',valid='pending',pending_reason='{$pending_reason}' WHERE hash_check_key='" . $_REQUEST["hash_check"] . "' AND id='" . $_REQUEST["item_id"] . "'"; $r = mysql_query($q) or die("Cannot query {$q} line " . __LINE__ . " file " . __FILE__ . " sql said: " . mysql_error()); } // Display the payment infos if ($proceed == "yes") { if (isset($_REQUEST["payment_type"]) && $_REQUEST["payment_type"] == "cheque") { $form = "<u>" . _("Cheques shall be written to be paid only to:") . "</u><br>" . $secpayconf_cheques_to_label . "<br><br>"; $form .= "<u>" . _("Cheques shall be sent to:") . "</u><br><pre>" . $secpayconf_cheques_send_address . "</pre><br><br>"; } else { $form = "<u>" . _("Wire transfers shall be made to: ") . "</u><br><pre>" . $secpayconf_wiretransfers_bank_details . "</pre><br><br>"; } $form .= "<b>" . _("Thanks for your order. Your order has been set on hold until someone checks for your payment.") . "</b> <a href=\"/\">" . _("Continue") . "</a><br><br>"; } $login_skined = skin($conf_skin, $form, _("Register a new account")); $mypage = layout_login_and_languages($login_skined, $lang_sel); if (function_exists("skin_NewAccountPage")) { skin_NewAccountPage($login_skined); } else { echo anotherPage("Client:", "", "", makePreloads(), $anotherTopBanner, "", $mypage, anotherFooter("")); }
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'] . ':>_' . $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>"; }
$text .= dtcFormLineDraw(_("Address (line3): "), "<input class=\"dtcDatagrid_input_alt_color\" size=\"40\" type=\"text\" name=\"addr3\" value=\"" . stripcslashes($b["addr3"]) . "\">", 0); $text .= dtcFormLineDraw(_("City: "), "<input class=\"dtcDatagrid_input_color\" size=\"40\" type=\"text\" name=\"city\" value=\"" . stripcslashes($b["city"]) . "\">"); $text .= dtcFormLineDraw(_("Zipcode: "), "<input class=\"dtcDatagrid_input_alt_color\" size=\"40\" type=\"text\" name=\"zipcode\" value=\"" . stripcslashes($b["zipcode"]) . "\">", 0); $text .= dtcFormLineDraw(_("State: "), "<input class=\"dtcDatagrid_input_color\" size=\"40\" type=\"text\" name=\"state\" value=\"" . stripcslashes($b["state"]) . "\">"); $text .= dtcFormLineDraw(_("Country: "), "<select class=\"dtcDatagrid_input_alt_color\" name=\"country\">" . cc_code_popup($b["country"]) . "</select>", 0); $text .= dtcFormLineDraw(_("Phone number: "), "<input class=\"dtcDatagrid_input_color\" size=\"40\" type=\"text\" name=\"phone\" value=\"" . stripcslashes($b["phone"]) . "\">"); $text .= dtcFormLineDraw(_("Fax: "), "<input class=\"dtcDatagrid_input_alt_color\" size=\"40\" type=\"text\" name=\"fax\" value=\"" . stripcslashes($b["fax"]) . "\">", 0); $text .= dtcFormLineDraw(_("Email: "), "<input class=\"dtcDatagrid_input_color\" size=\"40\" type=\"text\" name=\"email\" value=\"" . $b["email"] . "\">"); $text .= dtcFormLineDraw(_("Notes: "), "<textarea class=\"dtcDatagrid_input_alt_color\" cols=\"40\" rows=\"5\" name=\"custom_notes\">" . stripcslashes($b["custom_notes"]) . "</textarea>", 0); $text .= "<input type=\"hidden\" name=\"paiement_id\" value=\"" . $b["paiement_id"] . "\">"; if ($has_payement == 1) { $text .= "<input type=\"hidden\" name=\"secpay_site\" value=\"" . $p["secpay_site"] . "\">"; $text .= dtcFormLineDraw(_("Payment type: "), "<input class=\"dtcDatagrid_input_color\" size=\"40\" type=\"text\" name=\"paiement_type\" value=\"" . $p["paiement_type"] . "\">"); $text .= dtcFormLineDraw(_("Payment validated: "), "<input class=\"dtcDatagrid_input_alt_color\" size=\"40\" type=\"text\" name=\"valid\" value=\"" . $p["valid"] . "\">", 0); $text .= dtcFormLineDraw(_("Payment site: "), "<input class=\"dtcDatagrid_input_color\" size=\"40\" type=\"text\" name=\"secpay_site\" value=\"" . $p["secpay_site"] . "\">"); $text .= dtcFormLineDraw(_("Refund amount: "), "<input class=\"dtcDatagrid_input_alt_color\" size=\"40\" type=\"text\" name=\"refund_amount\" value=\"" . $p["refund_amount"] . "\">", 0); $text .= dtcFormLineDraw(_("Paiement cost: "), "<input class=\"dtcDatagrid_input_color\" size=\"40\" type=\"text\" name=\"paiement_cost\" value=\"" . $p["paiement_cost"] . "\">"); $text .= dtcFormLineDraw(_("Paiement total: "), "<input class=\"dtcDatagrid_input_alt_color\" size=\"40\" type=\"text\" name=\"paiement_total\" value=\"" . $p["paiement_total"] . "\">", 0); $text .= dtcFormLineDraw(_("Vat rate: "), "<input class=\"dtcDatagrid_input_color\" size=\"40\" type=\"text\" name=\"vat_rate\" value=\"" . $p["vat_rate"] . "\">"); $text .= dtcFormLineDraw(_("Vat total: "), "<input class=\"dtcDatagrid_input_alt_color\" size=\"40\" type=\"text\" name=\"vat_total\" value=\"" . $p["vat_total"] . "\">", 0); } else { $text .= dtcFormLineDraw(_("Payment site: "), _("Paiement not found!")); } $text .= dtcFormLineDraw(_("Shopper IP: "), $b["shopper_ip"]); $text .= "<input type=\"hidden\" name=\"shopper_ip\" value=\"" . $b["shopper_ip"] . "\">"; $text .= "\n<tr><td align=\"right\"></td><td><div class=\"input_btn_container\" onMouseOver=\"this.className='input_btn_container-hover';\" onMouseOut=\"this.className='input_btn_container';\">\n <div class=\"input_btn_left\"></div>\n <div class=\"input_btn_mid\"><input class=\"input_btn\" type=\"submit\" value=\"" . _("Save") . "\"></div>\n <div class=\"input_btn_right\"></div>\n</div></form>"; } $the_page[] = skin($conf_skin, $text, "User details:"); $pageContent = makeVerticalFrame($the_page); $anotherFooter = anotherFooter("Footer content<br><br>"); echo anotherPage("admin:", "", "", makePreloads(), $anotherTopBanner, $anotherMenu, $pageContent, $anotherFooter);
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); }
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"> </td> <td class="c_thm-1 hleft" nowrap="nowrap"> </td> <td class="c_thr-1" nowrap="nowrap"> </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"> </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"> </td> <td class="c_thm-1 hleft" nowrap="nowrap">' . _("Customer renewals") . '</td> <td class="c_thr-1" nowrap="nowrap"> </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"> </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"> </td> <td class="c_thm-1 hleft" nowrap="nowrap">' . _("Customer's bandwidth consumption") . '</td> <td class="c_thr-1" nowrap="nowrap"> </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"> </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"> </td> <td class="c_thm-1 hleft" nowrap="nowrap">' . _("Server statistic graphs") . '</td> <td class="c_thr-1" nowrap="nowrap"> </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"> </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"> </td> <td class="c_thm-1 hleft" nowrap="nowrap">' . _("Launching the configuration files generation") . '</td> <td class="c_thr-1" nowrap="nowrap"> </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"> </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"> </td> <td class="c_thm-1 hleft" nowrap="nowrap">' . _("Deamons states") . '</td> <td class="c_thr-1" nowrap="nowrap"> </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"> </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"> </td> <td class="c_thm-1 hleft" nowrap="nowrap"> </td> <td class="c_thr-1" nowrap="nowrap"> </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"> </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"> </td> <td class="c_thm-1 hleft" nowrap="nowrap"> </td> <td class="c_thr-1" nowrap="nowrap"> </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"> </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"> </td> <td class="c_thm-1 hleft" nowrap="nowrap">' . _("Hosting product manager") . '</td> <td class="c_thr-1" nowrap="nowrap"> </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"> </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'] . ':>_' . $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"> </td> <td class="c_thm-1 hleft" nowrap="nowrap"> </td> <td class="c_thr-1" nowrap="nowrap"> </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"> </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\"> </td>\n\t\t\t\t<td class=\"thm-1 hleft\" nowrap=\"nowrap\"> </td>\n\t\t\t\t<td class=\"thr-1\" nowrap=\"nowrap\"> </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\"> </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>"; }