function printerror($error = '', $gotourl = '', $ecms = 0)
{
    global $empire, $public_r, $editor;
    if ($editor == 1) {
        $a = '../';
    } elseif ($editor == 2) {
        $a = '../../';
    } elseif ($editor == 3) {
        $a = '../../../';
    } else {
        $a = '';
    }
    if (strstr($gotourl, '(') || empty($gotourl)) {
        $gotourl_js = 'history.go(-1)';
        $gotourl = 'javascript:history.go(-1)';
    } else {
        $gotourl_js = "self.location.href='{$gotourl}';";
    }
    if (empty($error)) {
        $error = 'DbError';
    }
    if ($ecms == 0) {
        @(include $a . LoadLang('m.php'));
        $error = $message_r[$error];
        @(include $a . LoadAdminTemp('message.php'));
    } elseif ($ecms == 9) {
        @(include $a . LoadLang('m.php'));
        $error = $message_r[$error];
        echo "<script>alert('" . $error . "');" . $gotourl_js . '</script>';
    }
    exit;
}
Exemple #2
0
function printerror($error = "", $gotourl = "", $ecms = 0)
{
    global $empire, $public_r, $editor;
    if ($editor == 1) {
        $a = "../";
    } elseif ($editor == 2) {
        $a = "../../";
    } elseif ($editor == 3) {
        $a = "../../../";
    } else {
        $a = "";
    }
    if (strstr($gotourl, "(") || empty($gotourl)) {
        $gotourl_js = "history.go(-1)";
        $gotourl = "javascript:history.go(-1)";
    } else {
        $gotourl_js = "self.location.href='{$gotourl}';";
    }
    if (empty($error)) {
        $error = "DbError";
    }
    if ($ecms == 0) {
        @(include $a . LoadLang("m.php"));
        $error = $message_r[$error];
        @(include $a . LoadAdminTemp('message.php'));
    } elseif ($ecms == 9) {
        @(include $a . LoadLang("m.php"));
        $error = $message_r[$error];
        echo "<script>alert('" . $error . "');" . $gotourl_js . "</script>";
    }
    exit;
}
Exemple #3
0
<?php

require "class/connect.php";
include "class/config.php";
include "class/functions.php";
include "lang/dbchar.php";
require LoadAdminTemp('eindex.php');
Exemple #4
0
<?php

require 'class/connect.php';
require 'class/db_sql.php';
require 'class/functions.php';
$lur = islogin();
$loginin = $lur['username'];
$rnd = $lur['rnd'];
$mypath = $_GET['mypath'];
require LoadAdminTemp('eRepFiletext.php');
Exemple #5
0
include "class/functions.php";
$loginin = getcvar('bakusername');
$rnd = getcvar('bakrnd');
islogin($loginin, $rnd);
if ($limittype) {
    $checklimittype = " checked";
}
if ($filechmod == 1) {
    $filechmod1 = " checked";
    $filechmod0 = "";
} else {
    $filechmod1 = "";
    $filechmod0 = " checked";
}
//mysql°æ±¾
if (empty($phome_db_ver)) {
    $getmysqlver = @mysql_get_server_info();
    if (empty($getmysqlver)) {
        $getmysqlver = '5.0';
    }
    if ($getmysqlver >= '5.0') {
        $phome_db_ver = '5.0';
    } elseif ($getmysqlver >= '4.1') {
        $phome_db_ver = '4.1';
    } else {
        $phome_db_ver = '4.0';
    }
}
include "lang/dbchar.php";
require LoadAdminTemp('eSetDb.php');
Exemple #6
0
<?php

require 'class/connect.php';
require 'class/functions.php';
$lur = islogin();
$loginin = $lur['username'];
$rnd = $lur['rnd'];
require LoadAdminTemp('eadmin.php');
Exemple #7
0
<?php

require 'class/connect.php';
require 'class/db_sql.php';
require 'class/functions.php';
$lur = islogin();
$loginin = $lur['username'];
$rnd = $lur['rnd'];
$p = $_GET['p'];
$f = $_GET['f'];
$file = $bakzippath . "/" . $f;
require LoadAdminTemp('eDownZip.php');
Exemple #8
0
<?php

require 'class/connect.php';
require 'class/db_sql.php';
require 'class/functions.php';
require LoadLang('f.php');
$lur = islogin();
$loginin = $lur['username'];
$rnd = $lur['rnd'];
$link = db_connect();
$empire = new mysqlquery();
//д╛хойЩ╬щ©Б
if (!empty($phome_db_dbname)) {
    echo $fun_r['GotoDefaultDb'] . "<script>self.location.href='ChangeTable.php?mydbname=" . $phome_db_dbname . "'</script>";
    exit;
}
$sql = $empire->query("SHOW DATABASES");
require LoadAdminTemp('eChangeDb.php');
db_close();
$empire = null;
Exemple #9
0
<?php

require "class/connect.php";
include "class/config.php";
include "class/functions.php";
$loginin = getcvar('bakusername');
$rnd = getcvar('bakrnd');
islogin($loginin, $rnd);
require LoadAdminTemp('eleft.php');
Exemple #10
0
    $content .= '</div></body></html>';
    echo $content;
    exit;
}
$phome = $_GET['phome'];
if (empty($phome)) {
    $phome = $_POST['phome'];
}
if ($phome == "ReData") {
    $add = $_POST['add'];
    $mypath = $_POST['mypath'];
    Ebak_ReData($add, $mypath);
} else {
    $db = '';
    if ($canlistdb) {
        $db .= "<option value='" . $selectdbname . "' selected>" . $selectdbname . "</option>";
    } else {
        $sql = $empire->query("SHOW DATABASES");
        while ($r = $empire->fetch($sql)) {
            if ($r[0] == $selectdbname) {
                $select = " selected";
            } else {
                $select = "";
            }
            $db .= "<option value='" . $r[0] . "'" . $select . ">" . $r[0] . "</option>";
        }
    }
    require LoadAdminTemp('DatabaseRestore.php');
    db_close();
    $empire = null;
}
Exemple #11
0
require 'class/db_sql.php';
require 'class/functions.php';
$lur = islogin();
$loginin = $lur['username'];
$rnd = $lur['rnd'];
$link = db_connect();
$empire = new mysqlquery();
$chars = Ebak_ReturnDbCharList('');
//Êý¾Ý¿âÁбí
$mydbname = $_GET['mydbname'];
$selectdbname = $phome_db_dbname;
if ($mydbname) {
    $selectdbname = $mydbname;
}
$db = '';
if ($canlistdb) {
    $db .= "<option value='" . $selectdbname . "' selected>" . $selectdbname . "</option>";
} else {
    $sql = $empire->query("SHOW DATABASES");
    while ($r = $empire->fetch($sql)) {
        if ($r[0] == $selectdbname) {
            $select = " selected";
        } else {
            $select = "";
        }
        $db .= "<option value='" . $r[0] . "'" . $select . ">" . $r[0] . "</option>";
    }
}
require LoadAdminTemp('eDoSql.php');
db_close();
$empire = null;
Exemple #12
0
<?php

require 'global.php';
require 'class/connect.php';
require 'class/db_sql.php';
require 'class/functions.php';
$rnd = $lur['rnd'];
$link = db_connect();
$empire = new mysqlquery();
$mydbname = RepPostVar($_GET['mydbname']);
$mytbname = RepPostVar($_GET['mytbname']);
if (empty($mydbname) || empty($mytbname)) {
    printerror('ErrorUrl', 'history.go(-1)');
}
$form = $_GET['form'];
if (empty($form)) {
    $form = 'ebakchangetb';
}
$usql = $empire->query("use `{$mydbname}`");
$sql = $empire->query('SHOW FIELDS FROM `' . $mytbname . '`');
require LoadAdminTemp('eListField.php');
db_close();
$empire = null;
Exemple #13
0
<?php

require 'class/connect.php';
require 'class/db_sql.php';
require 'class/functions.php';
$lur = islogin();
$loginin = $lur['username'];
$rnd = $lur['rnd'];
$hand = @opendir('setsave');
$mydbname = $_GET['mydbname'];
require LoadAdminTemp('eListSetbak.php');
Exemple #14
0
<?php

require "class/connect.php";
include "class/config.php";
include "class/db_sql.php";
include "class/functions.php";
$loginin = getcvar('bakusername');
$rnd = getcvar('bakrnd');
islogin($loginin, $rnd);
$hand = @opendir($bakpath);
$form = 'ebakredata';
if ($_GET['toform']) {
    $form = $_GET['toform'];
}
require LoadAdminTemp('eChangePath.php');
Exemple #15
0
require 'global.php';
echo '';
require 'class/connect.php';
require 'class/db_sql.php';
require 'class/functions.php';
$rnd = $lur['rnd'];
$link = db_connect();
$empire = new mysqlquery();
$mypath = $_GET['mypath'];
$mydbname = $_GET['mydbname'];
$selectdbname = $phome_db_dbname;
if ($mydbname) {
    $selectdbname = $mydbname;
}
$db = '';
if ($canlistdb) {
    $db .= "<option value='" . $selectdbname . "' selected>" . $selectdbname . '</option>';
} else {
    $sql = $empire->query('SHOW DATABASES');
    while ($r = $empire->fetch($sql)) {
        if ($r[0] == $selectdbname) {
            $select = ' selected';
        } else {
            $select = '';
        }
        $db .= "<option value='" . $r[0] . "'" . $select . '>' . $r[0] . '</option>';
    }
}
require LoadAdminTemp('eReData.php');
db_close();
$empire = null;
Exemple #16
0
}
//导入设置
$loadfile = RepPostVar($_GET['savefilename']);
if (strstr($loadfile, '.') || strstr($loadfile, '/') || strstr($loadfile, "\\")) {
    $loadfile = '';
}
if (empty($loadfile)) {
    $loadfile = 'def';
}
$loadfile = 'setsave/' . $loadfile;
@(include $loadfile);
if ($dmypath) {
    $mypath = $dmypath;
}
//查询
$keyboard = RepPostVar($_GET['keyboard']);
if (empty($keyboard)) {
    $keyboard = $dkeyboard;
    if (empty($keyboard)) {
        $keyboard = $baktbpre;
    }
}
$and = "";
if ($keyboard) {
    $and = " LIKE '%{$keyboard}%'";
}
$sql = $empire->query("SHOW TABLE STATUS" . $and);
include "lang/dbchar.php";
require LoadAdminTemp('eChangeTable.php');
db_close();
$empire = null;
Exemple #17
0
$mypath = $mydbname . "_" . date("YmdHis");
if ($phpsafemod) {
    $mypath = "safemod";
}
$loadfile = RepPostVar($_GET['savefilename']);
if (strstr($loadfile, '.') || strstr($loadfile, '/') || strstr($loadfile, "\\")) {
    $loadfile = '';
}
if (empty($loadfile)) {
    $loadfile = 'def';
}
$loadfile = 'setsave/' . $loadfile;
@(include $loadfile);
if ($dmypath) {
    $mypath = $dmypath;
}
$keyboard = RepPostVar($_GET['keyboard']);
if (empty($keyboard)) {
    $keyboard = $dkeyboard;
    if (empty($keyboard)) {
        $keyboard = $baktbpre;
    }
}
$and = "";
if ($keyboard) {
    $and = " LIKE '%{$keyboard}%'";
}
$sql = $empire->query("SHOW TABLE STATUS" . $and);
require LoadAdminTemp('DatabaseBackup.php');
db_close();
$empire = null;