_getTableStruct($_POST['tbl'], $OutPutType); if ($_POST['savetype'] == 'client') { $sqlfile = date("Y-m-d_H:i:s").'_'.$_POST['tbl'].'.sql'; header("Content-Type: text/plain"); header("Content-Disposition: attachment;filename=\"".$sqlfile."\""); echo $oNewBackup -> sInputs; exit(); } if ($_POST['savetype'] == 'server') { $sqlfile = BX_DIRECTORY_PATH_ROOT . 'backup/'.date("Y-m-d_H-i-s").'_'.$_POST['tbl'].'.sql'; $file = fopen($sqlfile, 'w'); fputs($file, $oNewBackup -> sInputs); $status_text .= "
|
|
Database Restore from your PC | |
= $status_text ?> |