From 8c944932150872f3ebf04acde24849133b437bdc Mon Sep 17 00:00:00 2001 From: Imran Hussain Date: Mon, 15 Jan 2018 14:34:39 +0000 Subject: [PATCH 1/2] Tweaks to the sucs site css. Taking inspration from unreturnables work but without the drastic changes to the style/theme of the site --- htdocs/css/sucs.css | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/css/sucs.css b/htdocs/css/sucs.css index 7ce8a82..5099ec5 100644 --- a/htdocs/css/sucs.css +++ b/htdocs/css/sucs.css @@ -3,8 +3,9 @@ -------------------------------------------------- */ body { - background: #fff; + background: #fff0cd; min-width: 600px; + margin: 0px; } hr { @@ -34,12 +35,12 @@ a:hover { /* -------------------------------------------------- Page corners -------------------------------------------------- */ -#branding, #brandingC { +/*#branding, #brandingC { border-top-left-radius: 15px; border-top-right-radius: 15px; -moz-border-radius-topleft: 15px; -moz-border-radius-topright: 15px; -} +}*/ #footer { border-bottom-left-radius: 15px; @@ -110,7 +111,7 @@ a:hover { background: #fff0cd; padding: 0; clear: both; - border: 2px solid #e76808; + /*border: 2px solid #e76808;*/ border-top: 0; border-bottom: 0; } @@ -264,6 +265,7 @@ ul#valid { margin: 0; margin-bottom: 0.5em; background: url('/images/orangefade-bottom.png') top repeat-x #ffc62b; + visibility: hidden; } #footer p { -- GitLab From 5ba33ffa87925e633319231684004dab5caf2ee9 Mon Sep 17 00:00:00 2001 From: Imran Hussain Date: Sun, 23 Sep 2018 11:38:46 +0100 Subject: [PATCH 2/2] Fix renewal (via the susignup system) print credits not being added --- lib/member_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/member_functions.php b/lib/member_functions.php index f5f4d7b..be31e5f 100644 --- a/lib/member_functions.php +++ b/lib/member_functions.php @@ -126,7 +126,7 @@ function renew_membership($username) $sucsDB->Execute("UPDATE members SET paid=?, lastupdate=DEFAULT, lastedit=? WHERE username=?", array(paidUntil(time()), "99999", $username)); // Give them their 200 print credits - exec("/usr/local/sbin/printerrenew.apache ${username} 200"); + exec("sudo /usr/local/sbin/printerrenew.apache ${username} 200"); // apprently sending them an email confirming so is nice $message = "Your Swansea University Computer Society (SUCS) membership has been renewed\n\n"; -- GitLab