Exemplo n.º 1
0
        exit;
    }
    sql_free_result($result2);
    sql_free_result($tabsta);
    ++$l;
}
$tableout = null;
$num = count($TableNames);
$renee_s = 0;
$sqldump = "-- " . $OrgName . " " . $SQLDumper . "\n";
$sqldump .= "-- version " . $VerInfo['iDB_Ver_SVN'] . "\n";
$sqldump .= "-- " . $iDBHome . "support/\n";
$sqldump .= "--\n";
$sqldump .= "-- Host: " . $Settings['sqlhost'] . "\n";
$sqldump .= "-- Generation Time: " . GMTimeGet('F d, Y \\a\\t h:i A', $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST']) . "\n";
$sqldump .= "-- Server version: " . sql_server_info($SQLStat) . "\n";
$sqldump .= "-- PHP Version: " . phpversion() . "\n\n";
$sqldump .= "SET SESSION SQL_MODE='ANSI_QUOTES,NO_AUTO_VALUE_ON_ZERO';\n\n";
$sqldump .= "--\n";
$sqldump .= "-- Database: \"" . $Settings['sqldb'] . "\"\n";
$sqldump .= "--\n\n";
$sqldump .= "-- --------------------------------------------------------\n\n";
while ($renee_s < $num) {
    $tnum = $num - 1;
    $trow = GetAllRows($TableNames[$renee_s]);
    $numz = count($trow);
    $kazuki_p = 0;
    $sqldump .= "--\n";
    $sqldump .= "-- Table structure for table \"" . $TableNames[$renee_s] . "\"\n";
    $sqldump .= "--\n\n";
    $sqldump .= $FullTable[$renee_s] . "\n";
Exemplo n.º 2
0
    $Settings['sqltype'] = "mysql";
}
if ($Settings['sqltype'] == "mysql" || $Settings['sqltype'] == "mysqli") {
    $DBType['Server'] = "MySQL " . sql_server_info($SQLStat);
    $DBType['Client'] = "MySQL " . sql_client_info($SQLStat);
}
if ($Settings['sqltype'] == "pgsql") {
    $DBType['Server'] = "Postgres " . sql_server_info($SQLStat);
    $DBType['Client'] = "Postgres " . sql_client_info($SQLStat);
}
if ($Settings['sqltype'] == "sqlite") {
    $DBType['Server'] = "SQLite " . sql_server_info($SQLStat);
    $DBType['Client'] = sql_client_info($SQLStat);
}
if ($Settings['sqltype'] == "cubrid") {
    $DBType['Server'] = "CUBRID " . sql_server_info($SQLStat);
    $DBType['Client'] = "CUBRID " . sql_client_info($SQLStat);
    $DBType['PHP'] = "CUBRID " . cubrid_version();
}
if (!isset($Settings['vercheck'])) {
    $Settings['vercheck'] = 2;
}
if ($Settings['vercheck'] != 1 && $Settings['vercheck'] != 2) {
    $Settings['vercheck'] = 2;
}
if (!isset($Settings['start_date'])) {
    $Settings['start_date'] = GMTimeStamp();
}
if (!isset($Settings['SQLThemes'])) {
    $Settings['SQLThemes'] = 'off';
}