| Server IP : 180.180.241.3 / Your IP : 216.73.216.25 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/umedia3/root.backup/ |
Upload File : |
<?
;
set_time_limit (600);
include("../inc/config.inc.php");
head();
mn_root("backup");
?>
<html>
<head>
<title> :: Backup <? echo getlang("เสร็จเรียบร้อย::l::Complete"); ?></title>
<style type = "text/css">
body
{
font-family: "verdana", sans-serif
}
</style>
</head>
<BR><BR><BR><BR>
<TABLE width=650 align=center>
<TR>
<TD>
<?
barcodeval_set("lastbackup-$bktype-date",time());
filelogs("Operate Backup",thaidatestr(time()),"BACKUPLOG-$bktype");
$bkfilename="backup-$bktype.sql";
flush();
$path=$path . "../_output/";
if (!is_dir($path))
mkdir($path, 0777);
chmod($path, 0777);
if (file_exists($path . "$bkfilename"))
{
unlink($path . "$bkfilename");
}
$cur_time=date("Y-m-d H:i");
$tables=mysql_list_tables($dbname, $conn);
$num_tables=@tmq_num_rows($tables);
$forceskipdb=getval("_SETTING","backup-forceskip");
$forceskipdborig=$forceskipdb;
$forceskipdb=explode("
",$forceskipdb);
if ($bktype=="light") {
$stagdeloldtablewhenskip="NO";
$skipdb=getval("_SETTING","backup-skip");
$skipdborig=$skipdb;
$skipdb=explode("
",$skipdb);
} else {
$stagdeloldtablewhenskip="YES";
$skipdb=Array();
}
//print_r($forceskipdb);
$i=0;
while ($i < $num_tables)
{
$newfile="";
$table = mysql_tablename($tables, $i);
$i++;
echo "<IMG SRC='../neoimg/Green.gif' WIDTH='16' HEIGHT='16' BORDER='0' ALT='' align=absmiddle> Operating ... $table";
if (in_array ($table,$skipdb) || in_array ($table,$forceskipdb)) {
echo " <I style='color: #990000'>skip</I>.<BR>";
$newfile.=get_def($dbname, $table, "$stagdeloldtablewhenskip");
$newfile.="\n\n";
fso_file_write($path . "$bkfilename","a",$newfile);
continue;
}
$newfile.=get_def($dbname, $table);
$newfile.="\n\n";
$newfile.=get_content($dbname, $table);
$newfile.="\n\n";
fso_file_write($path . "$bkfilename","a",$newfile);
echo " <I>done</I>.<BR>";
}
?>
</TD>
</TR>
</TABLE>
<CENTER>
<BR>
<BR>
<TABLE WIDTH = "750">
<TR>
<TD>
<H1> :: <? echo getlang("การสำรองข้อมูลเสร็จเรียบร้อย::l::Backup complete"); ?></H1>
<BR> <!--
<b>Your backup request was processed.</b> If you did not receive any errors on the screen, then
you should find a directory called "dump" (without the quotes) in the sub-directory that you
created when you installed MySQL PHP Helper. In the "dump" directory, you should find a file
titled "backup.sql" (without the quotes). This file is an unzipped backup of your database and
must have the same name if you wish to do a restore using MySQL PHP Helper. Also you may zip
the backup, but before restoring, you must unzip the backup before proceeding with the restore.
<BR><BR>-->
<BLOCKQUOTE>
<B><? echo getlang("หมายเหตุ :: ไฟล์ต่อไปนี้ถูกยกเว้นไม่ให้ได้รับการ Backup::l::Note :: following tables are skipped form backup"); ?></B><BR><BR><?
$skipdb = array_merge($skipdb, $forceskipdb);
$skipdb = array_unique($skipdb);
foreach ($skipdb as $a) {
echo "<nobr><IMG SRC='../neoimg/Seal.gif' WIDTH='16' HEIGHT='16' BORDER='0' ALT='' align=absmiddle> $a </nobr>";
}
?>
</BLOCKQUOTE> </TD></TR></TABLE>
<BR>
<BR>
<B><A HREF = "get.php?mode=<? echo $bktype; ?>" target = _blank><? echo getlang("ดาวน์โหลดไฟล์ข้อมูล::l::Download backup file"); ?></A></B> [<? echo getlang("คลิกขวาแล้วเลือก::l::Right-click then choose"); ?> Save Target As....]
<BR>
<BR>
<!--
phpMyBackup Copyright © 2000-2001 by Holger Mauermann.<br>
MySQL PHP Helper Copyright © 2002 by zMola Washer.<br><br>
-->
<?
foot(); ?>