Index: trunk/admin/install/restore_select.php =================================================================== diff -u -N --- trunk/admin/install/restore_select.php (revision 8397) +++ trunk/admin/install/restore_select.php (revision 0) @@ -1,113 +0,0 @@ -Execute($sql); - - $filepath = $rs->fields['VariableValue']; - if (!strlen($filepath)) { - $filepath = $pathtoroot.$admin.$path_char.'backupdata'; - } -} - -function getRestoreDirList($dirName) -{ - global $objSession, $path_char; - $filedates = array(); - $d = @dir($dirName); - - if (!$d) { - $restore_error = 'Cannot open backup directory!'; - return; - } - - while($entry = $d->read()) - { - if ($entry != "." && $entry != "..") - { - if (!is_dir($dirName.$path_char.$entry) && eregi("dump",$entry)) - { - $shortversion=chopchop($entry); - $filedate[]=$shortversion; - - } - } - } - $d->close(); - rsort($filedate); - - return $filedate; - -} - -function chopchop ($filename) -{ - eregi(BACKUP_NAME, $filename, $rets); - return $rets[1]; -} -?> - - $value) - { - $sel = ($value == $_REQUEST['backupdate']) ? ' checked' : ''; - $options .= ""; - $options .= ""; - $options .= '"; - $count++; - if($count>10) - break; - } - } - else { - $tmp_step = 2; - $next_step = 3; - $restore_error = "No backup files found or directory does not exist!"; - } - - if ($_POST["state"]=="restore_select") { - $tmp_step = 2; - $next_step = 3; - } - ?> - - -  Select Backup File

- - - - - -
- - - - - \ No newline at end of file
- - - - - - - - - - -
- Backup Directory: - -


-
- - - - - -
-