Вход Регистрация
Файл: RootPanel 1.7.0 FreeCode/RootPanel 1.7.0 FreeCode/billing.php
Строк: 227
<?
session_set_cookie_params
(86400);
session_start();

$full_home_path dirname(__FILE__);
require_once(
$full_home_path.'/_rootload.php');

if (
$do == "logout" and !$pass) {
        
userLogOut();
        
Header("Location: billing.php");
        exit;
}

mconnect();
validateUser();
$EnableLanguages EnableLanguages(); if (!$EnableLanguages) { error("Can not load languages."); mclose(); exit; }

if (
$pass)
{
    if (
GetSetting("captcha_login") and $_SESSION['captchakey'] != $captchakeyin) {$error=$_lang[ErrorWrongCaptcha];}
    else
    {
        
$res userLogOn($login$pass);    
        if (
$res == "0" or $res == "-1")
        {
            
$error=$_lang[ErrorBadLoginOrPassword];
        }
    }
}

if (!
GetCurrentCurrency()) { error($_lang[ErrorGetCurrentCurrency]); mclose(); exit; }

if (!
$_SESSION["userLogin"])
{
    
head('utf-8',$_lang[BillingTitle]);
    
    if (
$error) {print "<center><font color=red>".$_lang[Error].": $error</font></center><BR><BR>";}
?>
        <BR><center>
            <form method=post>
                <table class='rpTableBlank'>
                    <tr><td align="right"><?=$_lang[BillingLogin]?>:</td><td><input class=input type=text name=login></tr>
                    <tr><td align="right"><?=$_lang[BillingPassword]?>:</td><td><input class=input type=password name=pass></td></tr>
    <? if (GetSetting("lngUsersCanChange") and GetSetting("lngSelectAtLogin")) { ?>
                    <tr><td align="right"><?=$_lang[Language]?>:</td><td><?=printLanguagesSelet()?></td></tr>
    <? ?>
    <? if (GetSetting("captcha_login")) { ?>
                    <tr><td></td><td style="<?=$styleHelp?>"><img name="captcha" src="captcha.php" align="left" style="margin-right: 10px;"> <?=$_lang[CaptchaNeVidno]?> <A class=rootlink href="" onclick="document.captcha.src = document.captcha.src + '?' + (new Date()).getTime(); return false;"><?=$_lang[CaptchaObnovit]?></a></td>
                    <tr><td align=right><?=$_lang[Captcha]?>:</td><td><input class=input type="text" name="captchakeyin" size=10 value=""></td></tr>
    <? ?>
                    <tr><td colspan="2"><div align="center"><input class=button type=submit value="<?=$_lang[BillingEnter]?>" name="submit"></div></td></tr>
                    <tr><td colspan=2><A class=rootlink href=forgotpass.php><?=$_lang[BillingForgotPassword]?></a></td></tr>
                </table>
            </form></center>
<?
    foot
('utf-8');
    
mclose();
    exit;
}

$weSalesTypes GetSetting("weSalesTypes");
$weSalesTypes = @split("::",$weSalesTypes);

if (!
$do) {
    if (@
in_array("hosting",$weSalesTypes) or @in_array("reseller",$weSalesTypes) or @in_array("vds",$weSalesTypes) or @in_array("dedicated",$weSalesTypes) or @in_array("vpn",$weSalesTypes))
    {
        
$do="acc";$sub="start";
    }
    else if (@
in_array("domains",$weSalesTypes))
    {
        
$do="domains";
    }
    else if (@
in_array("shop",$weSalesTypes)) {$do="shop";}else{$do="bills";}
}

if (
$do == "acc") {include './_rootbill/_acc.inc.php';}
if (
$do == "download" and $id) {include './_rootbill/_download.inc.php';}
if (
$do == "settings") {include './_rootbill/_settings.inc.php';}
if (
$do == "profile") {include './_rootbill/_profile.inc.php';}

if (
$do != "profile" and $do != "tickets" and $do != "settings" and !checkProfile(GetSetting("checkprofiletype"), $_SESSION["userId"]))
{
    
$do "";
    
error($_lang[ProfileErrorYouCanWorkWithoutProfile]);
}
else if (
$do != "profile" and $do != "tickets" and $do != "settings" and !checkProfileByAdmin($_SESSION["userId"]))
{
    
$do "";
    
error($_lang[ProfileErrorYouCanWorkWithoutCheckedProfile]);
}

if (
$do == "orders") {include './_rootbill/_orders.inc.php';}
if (
$do == "domains") {include './_rootbill/_domains.inc.php';}
if (
$do == "shop") {include './_rootbill/_shop.inc.php';}
if (
$do == "bills") {include './_rootbill/_bills.inc.php';}
if (
$do == "pay" and $id) {include './_rootbill/_pay.inc.php';}
if (
$do == "renew") {include './_rootbill/_renew.inc.php';}
if (
$do == "renewdomain") {include './_rootbill/_renewdomain.inc.php';}
if (
$do == "renewshop") {include './_rootbill/_renewshop.inc.php';}
if (
$do == "partner") {include './_rootbill/_partner.inc.php';}
if (
$do == "tickets") {include './_rootbill/_tickets.inc.php';}
if (
$do == "changetarif") {include './_rootbill/_changetarif.inc.php';}
if (
$do == "catalog") {include './_rootbill/_catalog.inc.php';}
if (
$do == "addfunds") {include './_rootbill/_addfunds.inc.php';}
if (
$do == "maillogs") {include './_rootbill/_maillogs.inc.php';}
if (
$do == "tariffs_as") {include './_rootbill/_tariffs_as.inc.php';}
if (
$do == "tariffs_dedicated") {include './_rootbill/_tariffs_dedicated.inc.php';}
if (
$do == "tariffs_domain") {include './_rootbill/_tariffs_domain.inc.php';}
if (
$do == "tariffs_hosting") {include './_rootbill/_tariffs_hosting.inc.php';}
if (
$do == "tariffs_reseller") {include './_rootbill/_tariffs_reseller.inc.php';}
if (
$do == "tariffs_vds") {include './_rootbill/_tariffs_vds.inc.php';}
if (
$do == "tariffs_vpn") {include './_rootbill/_tariffs_vpn.inc.php';}
if (
$do == "tariffs_shop") {include './_rootbill/_tariffs_shop.inc.php';}
if (
$do == "history") {include './_rootbill/_history.inc.php';}
if (
$do == "testwhois") {include './_rootbill/_testwhois.inc.php';}
if (
$do == "calc") {include './_rootbill/_calc.inc.php';}
if (
$do == "faq") {include './_rootbill/_faq.inc.php';}
if (
$do == "order") {include './_rootbill/_order.inc.php';}
if (
$do == "rules") {include './_rootbill/_rules.inc.php';}
if (
$do == "security") {include './_rootbill/_security.inc.php';}
mclose();
?>
Онлайн: 1
Реклама