diff options
author | Colin Smith <colin@pfsense.org> | 2005-05-09 01:33:23 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-05-09 01:33:23 +0000 |
commit | 55d111f62b2ec057a7784b2387a5cd848ebd4f67 (patch) | |
tree | 9c89da2585ae136ff3d9dfba01e421c57210dccb /usr/local/www/diag_backup.php | |
parent | e355c693f47b6a82c51a62d4860f410ee4e564c2 (diff) | |
download | pfsense-55d111f62b2ec057a7784b2387a5cd848ebd4f67.zip pfsense-55d111f62b2ec057a7784b2387a5cd848ebd4f67.tar.gz |
Trim some more code.
Diffstat (limited to 'usr/local/www/diag_backup.php')
-rwxr-xr-x | usr/local/www/diag_backup.php | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 10365c6..d95592f 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -168,33 +168,6 @@ if ($_POST) { } } - -/* XXX - billm: begginnings of version control code - * don't set system/version_control :) - */ -if (isset($config['system']['version_control'])) { - $dir="{$g['cf_conf_path']}/bak"; - $old_versions = array(); - if (is_dir($dir)) { - if ($dh = opendir($dir)) { - while (($file = readdir($dh)) !== false) { - if ($file != "." && $file != "..") { - if (ereg("config-([0-9]+).xml", $file, $fname_array)) { - $old_ver = array(); - $conf = return_filename_as_string("{$g['cf_conf_path']}/bak/" .$file); - ereg("<lastchangedesc>(.*)</lastchangedesc>", $conf, $desc_array); - $old_ver['date']=date("Y-m-d H:i:s", $fname_array[1]); - $old_ver['desc']=$desc_array[1]; - - array_push(&$old_versions, $old_ver); - } - } - } - closedir($dh); - } - } -} - $id = rand() . '.' . time(); $mth = ini_get('upload_progress_meter.store_method'); |