From e45d8daaba0fed0deb766f46b773c3f83c596ed1 Mon Sep 17 00:00:00 2001 From: simo Date: Fri, 10 Jun 2005 23:24:34 +0000 Subject: fixed some relative links and rss problems with https --- web/html/index.php | 2 +- web/html/rss2.php | 12 ++++++------ web/lib/aur.inc | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'web') diff --git a/web/html/index.php b/web/html/index.php index b2f4590..94e193d 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -87,7 +87,7 @@ $q.= "WHERE DummyPkg != 1 "; $q.= "ORDER BY SubmittedTS DESC "; $q.= "LIMIT 0 , 10"; $result = db_query($q,$dbh); -print "".__("Latest Packages:")."(rss)
\n"; +print "".__("Latest Packages:")."(rss)
\n"; while ($row = mysql_fetch_assoc($result)) { print " "; print $row["Name"]."
\n"; diff --git a/web/html/rss2.php b/web/html/rss2.php index c716ac6..2ec05b0 100644 --- a/web/html/rss2.php +++ b/web/html/rss2.php @@ -9,12 +9,12 @@ $rss->useCached("RSS2.0","xml/newestpkg.xml",3600); #All the general RSS setup $rss->title = "AUR Newest Packages"; $rss->description = "The latest and greatest packages in the AUR"; -$rss->link = 'http://'.$_SERVER['HTTP_HOST']; -$rss->syndicationURL = 'http://'.$_SERVER['HTTP_HOST'].'/rss2.php'; +$rss->link = "http" . ($_SERVER["HTTPS"]=='on'?"s":"") . "://".$_SERVER['HTTP_HOST']; +$rss->syndicationURL = "http" . ($_SERVER["HTTPS"]=='on'?"s":"") . "://".$_SERVER['HTTP_HOST']."/rss2.php"; $image = new FeedImage(); $image->title = "AUR"; -$image->url = "http://".$_SERVER['HTTP_HOST']."/images/AUR-logo-80.png"; -$image->link = "http://".$_SERVER['HTTP_HOST']; +$image->url = "http" . ($_SERVER["HTTPS"]=='on'?"s":"") . "://".$_SERVER['HTTP_HOST']."/images/AUR-logo-80.png"; +$image->link = "http" . ($_SERVER["HTTPS"]=='on'?"s":"") . "://".$_SERVER['HTTP_HOST']; $image->description = "AUR Newest Packages Feed"; $rss->image = $image; @@ -28,10 +28,10 @@ $result = db_query($q, $dbh); while ($row = mysql_fetch_assoc($result)) { $item = new FeedItem(); $item->title = $row["Name"]; - $item->link = 'http://'.$_SERVER['HTTP_HOST'].'/packages.php?do_Details&ID='.$row["ID"]; + $item->link = "http" . ($_SERVER["HTTPS"]=='on'?"s":"") . "://".$_SERVER['HTTP_HOST'].'/packages.php?do_Details&ID='.$row["ID"]; $item->description = $row["Description"]; $item->date = intval($row["SubmittedTS"]); - $item->source = 'http://'.$_SERVER['HTTP_HOST']; + $item->source = "http" . ($_SERVER["HTTPS"]=='on'?"s":"") . "://".$_SERVER['HTTP_HOST']; $item->author = username_from_id($row["MaintainerUID"]); $rss->addItem($item); } diff --git a/web/lib/aur.inc b/web/lib/aur.inc index 5fffb33..494e70a 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -362,7 +362,7 @@ function html_header() { print "\n"; print "\n"; print "\n"; - print "\n"; + print "\n"; print "\n"; print "\n"; -- cgit v1.2.3-70-g09d2