misc stuff

added update.webgui.org
This commit is contained in:
JT Smith 2006-05-04 04:01:38 +00:00
parent 96645ef7e8
commit d4299c3bbb
4 changed files with 6 additions and 5 deletions

View file

@ -5,7 +5,8 @@
WebGUI is Copyright 2001-2006 Plain Black Corporation. All rights
reserved.
WebGUI is a trademark of Plain Black Corporation.
WebGUI Content Engine, WebGUI Runtime Environment, and Plain Black
are registered trademarks of Plain Black Corporation.
WebGUI is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License (version 2) as

View file

@ -216,7 +216,7 @@ sub view {
}
$vars{'addFile.label'} = $i18n->get('add file label');
$vars{'addFile.url'} = $self->getUrl('func=add&class=WebGUI::Asset::FilePile');
$vars{'addFile.url'} = $self->getUrl('func=add;class=WebGUI::Asset::FilePile');
my $out = $self->processTemplate(\%vars,undef,$self->{_viewTemplate});
if ($self->session->user->userId eq '1') {

View file

@ -115,7 +115,7 @@ sub www_viewStatistics {
return $session->privilege->adminOnly() unless ($session->user->isInGroup(3));
my ($output, $data);
my $i18n = WebGUI::International->new($session);
my $url = "http://www.plainblack.com/downloads/latest-version.txt";
my $url = "http://update.webgui.org/latest-version.txt";
my $cache = WebGUI::Cache->new($session,$url,"URL");
my $version = $cache->get;
if (not defined $version) {
@ -127,7 +127,7 @@ sub www_viewStatistics {
if ($version ne $WebGUI::VERSION) {
my @rev = split(/\./,$version);
$version = '<a href="http://files.plainblack.com/downloads/'.$rev[0].'.x.x/webgui-'.$version.'.tar.gz">'.$version.'</a>';
$version = '<a href="http://update.webgui.org/'.$rev[0].'.x.x/webgui-'.$version.'.tar.gz">'.$version.'</a>';
}
$output .= '<tr><td align="right" class="tableHeader">'.$i18n->get(349).':</td><td class="tableData">'.$version.'</td></tr>';
($data) = $session->db->quickArray("select count(*) from asset where state='published'");

View file

@ -238,7 +238,7 @@ sub getLatestWebguiVersion {
my $referer = "http://".`hostname`."/webgui-cli-version";
chomp $referer;
$header->referer($referer);
my $currentversionRequest = new HTTP::Request (GET => "http://www.plainblack.com/downloads/latest-version.txt", $header);
my $currentversionRequest = new HTTP::Request (GET => "http://update.webgui.org/latest-version.txt", $header);
my $currentversionResponse = $currentversionUserAgent->request($currentversionRequest);
my $version = $currentversionResponse->content;
chomp $version;