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 .= "
|