From f38242e78e8f5aca174fdadc8abf3f92e4e845d1 Mon Sep 17 00:00:00 2001
From: Imran Hussain <imranh@sucs.org>
Date: Thu, 2 Apr 2015 11:41:25 +0000
Subject: [PATCH] Misc fixes to the website

---
 components/motd_wrapper.php     | 10 ++++++++++
 static/About/Room-secondary.txt |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/components/motd_wrapper.php b/components/motd_wrapper.php
index 84fd872..3ad74b7 100644
--- a/components/motd_wrapper.php
+++ b/components/motd_wrapper.php
@@ -1,4 +1,14 @@
 <?PHP
 require("/var/www/sucssite/htdocs/settings.php");
 
+require("/usr/share/php/adodb/adodb.inc.php");
+
+$dbname = 'sucssite';
+$dbuser = 'apache';
+
+$DB = NewADOConnection('postgres8');
+$DB->Connect('dbname='.$dbname.' user='.$dbuser);
+$DB->SetCharSet('utf8');
+$DB->SetFetchMode(ADODB_FETCH_ASSOC);
+
 include($base."components/motd.php");
diff --git a/static/About/Room-secondary.txt b/static/About/Room-secondary.txt
index fc62648..e66b016 100644
--- a/static/About/Room-secondary.txt
+++ b/static/About/Room-secondary.txt
@@ -24,7 +24,7 @@
 -->
 
 	<div>
-		<img style="max-height:100%; max-width:100%;" src="https://sucs.org/cam/lastsnap.jpg">
+		<img style="max-height:100%; max-width:100%;" src="https://sucs.org/images/lastsnap.jpg">
 	</div>
 
 </div>
\ No newline at end of file
-- 
GitLab