- admin web: remove outdated code that tried to show SVN version

in the admin main page
This commit is contained in:
David Anderson 2013-02-02 21:09:30 -08:00 committed by Oliver Bock
parent 123c725cac
commit d4a40a8841
3 changed files with 0 additions and 45 deletions

View File

@ -21,23 +21,6 @@ require_once("../inc/util_ops.inc");
require_once("../inc/uotd.inc"); require_once("../inc/uotd.inc");
require_once("../project/project.inc"); require_once("../project/project.inc");
function svn_revision($path) {
$out = array();
$cmd = "svn info http://boinc.berkeley.edu/svn/$path";
if (defined("SVN_CONFIG_DIRECTORY")) {
$cmd .= " --config-dir ". SVN_CONFIG_DIRECTORY;
}
exec($cmd, $out);
foreach ($out as $line) {
$x = strstr($line, "Last Changed Rev: ");
if ($x) {
$y = substr($x, strlen("Last Changed Rev: "));
return (int) $y;
}
}
return null;
}
$config = get_config(); $config = get_config();
$cgi_url = parse_config($config, "<cgi_url>"); $cgi_url = parse_config($config, "<cgi_url>");
$stripchart_cgi_url = parse_config($config, "<stripchart_cgi_url>"); $stripchart_cgi_url = parse_config($config, "<stripchart_cgi_url>");
@ -50,29 +33,6 @@ admin_page_head($title);
// Notification area // Notification area
echo "<ul>\n"; echo "<ul>\n";
echo "<li>";
if (file_exists("../../local.revision")) {
$local_rev = file_get_contents("../../local.revision");
}
if ($local_rev) {
echo "Using BOINC SVN revision: ".$local_rev."; ";
}
if (0
//if (file_exists("../cache/remote.revision")
// && (time() < filemtime("../cache/remote.revision")+(24*60*60))
) {
$remote_rev = file_get_contents("../cache/remote.revision");
} else {
$remote_rev = svn_revision("branches/server_stable");
}
if ($remote_rev) {
echo "BOINC server_stable SVN revision: $remote_rev";
} else {
echo "Can't get BOINC server_stable SVN revision";
}
if (!file_exists(".htaccess")) { if (!file_exists(".htaccess")) {
echo "<li><span style=\"color: #ff0000\">The Project Management directory is not echo "<li><span style=\"color: #ff0000\">The Project Management directory is not
protected from public access by a .htaccess file.</span></li>\n"; protected from public access by a .htaccess file.</span></li>\n";

View File

@ -29,10 +29,6 @@ define("UOTD_ADMIN_EMAIL", "admin@$master_url");
// offensive forum posts. // offensive forum posts.
define("POST_REPORT_EMAILS", "moderator1@$master_url|moderator2@$master_url"); define("POST_REPORT_EMAILS", "moderator1@$master_url|moderator2@$master_url");
// set the following if SVN requires specific configuration (e.g. proxy)
// Used on ops/index.php.
// define("SVN_CONFIG_DIRECTORY", "/home/boincadm/.subversion/");
function project_banner($title, $prefix) { function project_banner($title, $prefix) {
// Put your project title and logo here // Put your project title and logo here
// If you include any links, prepend URL with $prefix // If you include any links, prepend URL with $prefix

View File

@ -78,7 +78,6 @@ init()
install_boinc_files(INSTALL_DIR, not options.server_only, not options.web_only) install_boinc_files(INSTALL_DIR, not options.server_only, not options.web_only)
print "Upgrading files... done" print "Upgrading files... done"
print "Finding SVN revision"
print "Updating translations" print "Updating translations"
try: try: