Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • osian/sucs-site
  • kais58/sucs-site
  • imranh/sucs-site
  • foshjedi2004/sucs-site
  • gigosaurus/sucs-site
  • matstn/sucs-site
  • ripp_/sucs-site
  • eggnog/sucs-site
  • sucssite/sucs-site
  • elbows/sucs-site
  • realitykiller/sucs-site
  • crox/sucs-site
  • vectre/sucs-site
  • welshbyte/sucs-site
  • paperclipman/sucs-site
15 results
Show changes
Showing
with 822 additions and 398 deletions
// minmax.js - written by Andrew Clover <and@doxdesk.com>
// Adapted for PunBB by Rickard Andersson and Paul Sullivan
/*@cc_on
@if (@_win32 && @_jscript_version>4)
var minmax_elements;
function minmax_bind(el) {
var em, ms;
var st= el.style, cs= el.currentStyle;
if (minmax_elements==window.undefined) {
if (!document.body || !document.body.currentStyle) return;
minmax_elements= new Array();
window.attachEvent('onresize', minmax_delayout);
}
if (cs['max-width'])
st['maxWidth']= cs['max-width'];
ms= cs['maxWidth'];
if (ms && ms!='auto' && ms!='none' && ms!='0' && ms!='') {
st.minmaxWidth= cs.width;
minmax_elements[minmax_elements.length]= el;
minmax_delayout();
}
}
var minmax_delaying= false;
function minmax_delayout() {
if (minmax_delaying) return;
minmax_delaying= true;
window.setTimeout(minmax_layout, 0);
}
function minmax_stopdelaying() {
minmax_delaying= false;
}
function minmax_layout() {
window.setTimeout(minmax_stopdelaying, 100);
var i, el, st, cs, optimal, inrange;
for (i= minmax_elements.length; i-->0;) {
el= minmax_elements[i]; st= el.style; cs= el.currentStyle;
st.width= st.minmaxWidth; optimal= el.offsetWidth;
inrange= true;
if (inrange && cs.minWidth && cs.minWidth!='0' && cs.minWidth!='auto' && cs.minWidth!='') {
st.width= cs.minWidth;
inrange= (el.offsetWidth<optimal);
}
if (inrange && cs.maxWidth && cs.maxWidth!='none' && cs.maxWidth!='auto' && cs.maxWidth!='') {
st.width= cs.maxWidth;
inrange= (el.offsetWidth>optimal);
}
if (inrange) st.width= st.minmaxWidth;
}
}
var minmax_SCANDELAY= 500;
function minmax_scan() {
var el;
for (var i= 0; i<document.all.length; i++) {
el= document.all[i];
if (!el.minmax_bound) {
el.minmax_bound= true;
minmax_bind(el);
}
}
}
var minmax_scanner;
function minmax_stop() {
window.clearInterval(minmax_scanner);
minmax_scan();
}
minmax_scan();
minmax_scanner= window.setInterval(minmax_scan, minmax_SCANDELAY);
window.attachEvent('onload', minmax_stop);
@end @*/
<html>
<head>
<title>.</title>
</head>
<body>
.
</body>
</html>
\ No newline at end of file
form { /* --------------------------------------------------
margin: 0; Page corners
padding: 0; -------------------------------------------------- */
.cornerTopLeft {
height: 100%;
background: url('/images/left-top-corner.png') top left no-repeat;
}
.cornerTopRight {
height: 100%;
background: url('/images/right-top-corner.png') top right no-repeat;
} }
#navigationC ul li { .cornerBottomLeft {
line-height: 0; height: 100%;
background: url('/images/left-bottom-corner.png') bottom left no-repeat;
} }
#loginForm input.button { .cornerBottomRight {
font-size: 80%; height: 100%;
background: url('/images/right-bottom-corner.png') bottom right no-repeat;
}
/* --------------------------------------------------
Menu
-------------------------------------------------- */
#navigationC ul li a {
background: #e76808 url('/images/menu-top-right.png') no-repeat top right;
}
#navigationC ul ul li a span {
background: url('/images/menu-bottom-right.png') no-repeat bottom right;
}
#navigationC ul li a span {
display: block;
background: url('/images/menu-bottom-right.png') no-repeat bottom right;
}
/* --------------------------------------------------
Error box
-------------------------------------------------- */
.error {
margin-right: 0.5em;
margin-bottom: 0.5em;
}
.error div.errorcontent {
background: #ffffff;
border: 2px solid #ff0000;
}
.error .errorhead h3 {
color: #ffffff;
}
.error .errorhead {
background: #ff0000 url('/images/menu-top-left.png') no-repeat top left;
}
.errorbar, .navbar, .infobar {
margin: 0.5em 0 0 0;
font-size: 80%;
}
.errorbar {
background: #ff0000 url('/images/menu-top-left.png') no-repeat top left;
color: #ffffff;
margin-right: 0.5em;
}
.infobar {
background: #e76808 url('/images/menu-top-left.png') no-repeat top left;
color: #ffffff;
margin-right: 0.5em;
}
.infobar a {
color: #ffc62b;
}
.infobar a:active {
color: #ffffff;
}
.navbar {
background: #e76808 url('/images/menu-top-left.png') no-repeat top left;
}
.navbar a {
color: #ffc62b;
font-weight: bold;
text-decoration: none;
}
.errorbar div, .navbar div, .infobar div {
background: url('/images/menu-top-right.png') no-repeat top right;
}
.errorbar div div, .navbar div div, .infobar div div {
background: url('/images/menu-bottom-left.png') no-repeat bottom left;
}
.errorbar div div div, .navbar div div div, .infobar div div div {
background: url('/images/menu-bottom-right.png') no-repeat bottom right;
padding: 0.2em 0.5em;
} }
/* -------------------------------------------------- /* --------------------------------------------------
Content box (e.g. for news items) Content box (e.g. for news items)
-------------------------------------------------- */ -------------------------------------------------- */
.box .boxhead {
background: #e76808 url('/images/menu-top-left.png') no-repeat top left;
}
.box .hollowhead {
background: #ffffff url('/images/border-bottom.png') repeat-x top;
height: 5px;
margin: 0;
padding: 0;
border: none;
}
.box .hollowhead div {
background: url('/images/border-top-left.png') no-repeat top left;
height: 100%;
}
ol.roman { .box .hollowhead div div {
list-style-type: i; background: url('/images/border-top-right.png') no-repeat top right;
height: 100%;
}
.box .boxhead h2, .box .boxhead h3, .error .errorhead h3 {
background: url('/images/menu-top-right.png') no-repeat top right;
}
.box .boxfoot {
background: #e76808 url('/images/menu-bottom-left.png') no-repeat bottom left;
}
.box .boxfoot p {
background: url('/images/menu-bottom-right.png') no-repeat bottom right;
}
.box .hollowfoot {
background: #ffffff url('/images/border-bottom.png') repeat-x bottom;
height: 5px;
margin: 0;
padding: 0;
}
.box .hollowfoot div {
background: url('/images/border-bottom-left.png') no-repeat bottom left;
height: 100%;
}
.box .hollowfoot div div {
background: url('/images/border-bottom-right.png') no-repeat bottom right;
height: 100%;
}
/* --------------------------------------------------
Error box
-------------------------------------------------- */
.error .errorhead {
background: #ff0000 url('/images/menu-top-left.png') no-repeat top left;
} }
div#searchbox { div#searchbox {
height: 5em; height: 5em;
} }
.buttons { .buttons {
padding-top: 5px; padding-top: 5px;
} }
\ No newline at end of file
...@@ -3,19 +3,19 @@ ...@@ -3,19 +3,19 @@
-------------------------------------------------- */ -------------------------------------------------- */
.cornerTopLeft { .cornerTopLeft {
background: url('/images/left-top-corner.gif') top left no-repeat; background: url('/images/left-top-corner.gif') top left no-repeat;
} }
.cornerTopRight { .cornerTopRight {
background: url('/images/right-top-corner.gif') top right no-repeat; background: url('/images/right-top-corner.gif') top right no-repeat;
} }
.cornerBottomLeft { .cornerBottomLeft {
background: url('/images/left-bottom-corner.gif') bottom left no-repeat; background: url('/images/left-bottom-corner.gif') bottom left no-repeat;
} }
.cornerBottomRight { .cornerBottomRight {
background: url('/images/right-bottom-corner.gif') bottom right no-repeat; background: url('/images/right-bottom-corner.gif') bottom right no-repeat;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -23,43 +23,42 @@ ...@@ -23,43 +23,42 @@
-------------------------------------------------- */ -------------------------------------------------- */
#branding { #branding {
/* background: #ffc62b; /* background: #ffc62b;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='/images/orangefade.png'); */ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='/images/orangefade.png'); */
} }
#loginForm { #loginForm {
margin-right: 0.5em; margin-right: 0.5em;
margin-bottom: 0.2em; margin-bottom: 0.2em;
} }
#brandingC { #brandingC {
background: transparent; background: transparent;
/* filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='/images/bgfade.png'); */ /* filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='/images/bgfade.png'); */
} }
/* -------------------------------------------------- /* --------------------------------------------------
Menu Menu
-------------------------------------------------- */ -------------------------------------------------- */
#navigationC ul li { #navigationC ul li {
line-height: 0; line-height: 0;
} }
#navigationC ul li a { #navigationC ul li a {
background-image: url('/images/menu-top-right.gif'); background-image: url('/images/menu-top-right.gif');
} }
#navigationC ul ul li a { #navigationC ul ul li a {
background: #ffc62b url('/images/menu-top-right.gif') norepeat top right; background: #ffc62b url('/images/menu-top-right.gif') norepeat top right;
} }
#navigationC ul li a span { #navigationC ul li a span {
background-image: url('/images/menu-bottom-right.gif'); background-image: url('/images/menu-bottom-right.gif');
} }
#navigationC ul ul li a span { #navigationC ul ul li a span {
background-image: url('/images/menu-bottom-right.gif'); background-image: url('/images/menu-bottom-right.gif');
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -67,7 +66,7 @@ ...@@ -67,7 +66,7 @@
-------------------------------------------------- */ -------------------------------------------------- */
#search input.text { #search input.text {
width: 95%; width: 95%;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -75,8 +74,8 @@ ...@@ -75,8 +74,8 @@
-------------------------------------------------- */ -------------------------------------------------- */
#footer { #footer {
/* background: #ffc62b; /* background: #ffc62b;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='/images/orangefade-bottom.png'); */ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='/images/orangefade-bottom.png'); */
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -84,43 +83,43 @@ ...@@ -84,43 +83,43 @@
-------------------------------------------------- */ -------------------------------------------------- */
.box { .box {
line-height: 1.1; line-height: 1.1;
} }
.box .boxhead { .box .boxhead {
background: #e76808 url('/images/menu-top-left.gif') no-repeat top left; background: #e76808 url('/images/menu-top-left.gif') no-repeat top left;
} }
.box .hollowhead, .box .hollowfoot { .box .hollowhead, .box .hollowfoot {
font-size: 0; font-size: 0;
} }
.box .hollowhead div { .box .hollowhead div {
background: url('/images/border-top-left.gif') no-repeat top left; background: url('/images/border-top-left.gif') no-repeat top left;
} }
.box .hollowhead div div { .box .hollowhead div div {
background: url('/images/border-top-right.gif') no-repeat top right; background: url('/images/border-top-right.gif') no-repeat top right;
} }
.box .boxhead h2, .box .boxhead h3, .error .errorhead h3 { .box .boxhead h2, .box .boxhead h3, .error .errorhead h3 {
background: url('/images/menu-top-right.gif') no-repeat top right; background: url('/images/menu-top-right.gif') no-repeat top right;
} }
.box .boxfoot { .box .boxfoot {
background: #e76808 url('/images/menu-bottom-left.gif') no-repeat bottom left; background: #e76808 url('/images/menu-bottom-left.gif') no-repeat bottom left;
} }
.box .boxfoot p { .box .boxfoot p {
background: url('/images/menu-bottom-right.gif') no-repeat bottom right; background: url('/images/menu-bottom-right.gif') no-repeat bottom right;
} }
.box .hollowfoot div { .box .hollowfoot div {
background: url('/images/border-bottom-left.gif') no-repeat bottom left; background: url('/images/border-bottom-left.gif') no-repeat bottom left;
} }
.box .hollowfoot div div { .box .hollowfoot div div {
background: url('/images/border-bottom-right.gif') no-repeat bottom right; background: url('/images/border-bottom-right.gif') no-repeat bottom right;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -128,21 +127,21 @@ ...@@ -128,21 +127,21 @@
-------------------------------------------------- */ -------------------------------------------------- */
.error .errorhead { .error .errorhead {
background: #ff0000 url('/images/menu-top-left.gif') no-repeat top left; background: #ff0000 url('/images/menu-top-left.gif') no-repeat top left;
} }
.errorbar { .errorbar {
background: #ff0000 url('/images/menu-top-left.gif') no-repeat top left; background: #ff0000 url('/images/menu-top-left.gif') no-repeat top left;
} }
.errorbar div { .errorbar div {
background: url('/images/menu-top-right.gif') no-repeat top right; background: url('/images/menu-top-right.gif') no-repeat top right;
} }
.errorbar div div { .errorbar div div {
background: url('/images/menu-bottom-left.gif') no-repeat bottom left; background: url('/images/menu-bottom-left.gif') no-repeat bottom left;
} }
.errorbar div div div { .errorbar div div div {
background: url('/images/menu-bottom-right.gif') no-repeat bottom right; background: url('/images/menu-bottom-right.gif') no-repeat bottom right;
} }
form {
margin: 0;
padding: 0;
}
#navigationC ul li {
line-height: 0;
}
#loginForm input.button {
font-size: 80%;
}
/* --------------------------------------------------
Content box (e.g. for news items)
-------------------------------------------------- */
ol.roman {
list-style-type: i;
}
/* -------------------------------------------------- /* --------------------------------------------------
Secondary content Secondary content
-------------------------------------------------- */ -------------------------------------------------- */
#secondary ul { #secondary ul {
margin-left: 2em; margin-left: 2em;
} }
\ No newline at end of file
li.column1 { li.column1 {
margin-left: 0em; margin-left: 0em;
} }
li.column2 { li.column2 {
margin-left: 10em; margin-left: 10em;
} }
div.memberlist ul li { div.memberlist ul li {
line-height: 1.2em; line-height: 1.2em;
} }
div.memberlist ul { div.memberlist ul {
margin-top: 0; margin-top: 0;
} }
ul.bananas { ul.bananas {
margin-left: 0; margin-left: 0;
padding-left: 0; padding-left: 0;
list-style: none; list-style: none;
} }
ul.bananas li { ul.bananas li {
margin-bottom: 0.5em; margin-bottom: 0.5em;
background-repeat: no-repeat; background-repeat: no-repeat;
padding-left: 30px; padding-left: 30px;
} }
ul.bananas li small { ul.bananas li small {
color: grey; color: grey;
} }
ul.bananas li.yellow1 { ul.bananas li.yellow1 {
background-image: url('/images/bananas/banana1.png'); background-image: url('/images/bananas/banana1.png');
background-position: 0.5em; background-position: 0.5em;
} }
ul.bananas li.yellow2 { ul.bananas li.yellow2 {
background-image: url('/images/bananas/banana2.png'); background-image: url('/images/bananas/banana2.png');
background-position: 0.2em; background-position: 0.2em;
} }
ul.bananas li.yellow3 { ul.bananas li.yellow3 {
background-position: 0; background-position: 0;
background-image: url('/images/bananas/banana3.png'); background-image: url('/images/bananas/banana3.png');
} }
ul.bananas li.green1 { ul.bananas li.green1 {
background-position: 0.5em; background-position: 0.5em;
background-image: url('/images/bananas/banana-g-1.png'); background-image: url('/images/bananas/banana-g-1.png');
} }
ul.bananas li.green2 { ul.bananas li.green2 {
background-position: 0.2em; background-position: 0.2em;
background-image: url('/images/bananas/banana-g-2.png'); background-image: url('/images/bananas/banana-g-2.png');
} }
ul.bananas li.green3 { ul.bananas li.green3 {
background-position: 0; background-position: 0;
background-image: url('/images/bananas/banana-g-3.png'); background-image: url('/images/bananas/banana-g-3.png');
} }
.date {
background-color: #e0e0ff;
}
.time {
background-color: #e0ffe0;
}
.user {
background-color: #ffe0e0;
}
.taglist {
background-color: #ffffe0;
}
/******************************************************************************** /********************************************************************************
* CodeHighlight Classes * CodeHighlight Classes
* Originally from the Wordpress Code Highlight Plugin * Originally from the Wordpress Code Highlight Plugin
...@@ -16,27 +15,82 @@ ...@@ -16,27 +15,82 @@
} }
/* .hl-surround, .hl-surround pre, .hl-surround span, */ /* .hl-surround, .hl-surround pre, .hl-surround span, */
.hl-main { font: normal 10pt 'Courier New', monospace;} .hl-main {
font: normal 10pt 'Courier New', monospace;
.hl-default { color: Black; } }
.hl-code { color: Black; }
.hl-brackets { color: Olive; } .hl-default {
.hl-comment { color: #ffa500; } /* Orange */ color: Black;
.hl-quotes { color: #8b0000; } /* Dark red */ }
.hl-string { color: Red; }
.hl-identifier { color: Blue; } .hl-code {
.hl-builtin { color: Teal; } color: Black;
.hl-reserved { color: Green; } }
.hl-inlinedoc { color: Blue; }
.hl-var { color: #00008b; } /* Dark blue */ .hl-brackets {
.hl-url { color: Blue; } color: Olive;
.hl-special { color: Navy; } }
.hl-number { color: Maroon; }
.hl-inlinetags { color: Blue; } .hl-comment {
.hl-main { background-color: transparent; } color: #ffa500;
}
.hl-main pre { margin: 0; padding: 0; }
/* Orange */
.hl-quotes {
color: #8b0000;
}
/* Dark red */
.hl-string {
color: Red;
}
.hl-identifier {
color: Blue;
}
.hl-builtin {
color: Teal;
}
.hl-reserved {
color: Green;
}
.hl-inlinedoc {
color: Blue;
}
.hl-var {
color: #00008b;
}
/* Dark blue */
.hl-url {
color: Blue;
}
.hl-special {
color: Navy;
}
.hl-number {
color: Maroon;
}
.hl-inlinetags {
color: Blue;
}
.hl-main {
background-color: transparent;
}
.hl-main pre {
margin: 0;
padding: 0;
}
div#displayCode * { div#displayCode * {
font: normal 10pt 'Courier New', monospace; font: normal 10pt 'Courier New', monospace;
} }
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
-------------------------------------------------- */ -------------------------------------------------- */
#branding { #branding {
border-bottom: 1px solid #000000; border-bottom: 1px solid #000000;
} }
#loginForm { #loginForm {
display: none; display: none;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
-------------------------------------------------- */ -------------------------------------------------- */
#navigation { #navigation {
display: none; display: none;
} }
#secondary { #secondary {
...@@ -26,14 +26,14 @@ ...@@ -26,14 +26,14 @@
-------------------------------------------------- */ -------------------------------------------------- */
#footer { #footer {
border-top: 1px solid #000000; border-top: 1px solid #000000;
} }
#footer p { #footer p {
margin: 0; margin: 0;
text-align: center; text-align: center;
font-size: 80%; font-size: 80%;
padding: 0.5em; padding: 0.5em;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -41,12 +41,12 @@ ...@@ -41,12 +41,12 @@
-------------------------------------------------- */ -------------------------------------------------- */
.box { .box {
border: 1px solid #e76808; border: 1px solid #e76808;
} }
.box div.boxcontent { .box div.boxcontent {
border-top: 1px solid #e76808; border-top: 1px solid #e76808;
border-bottom: 1px solid #e76808; border-bottom: 1px solid #e76808;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -54,5 +54,5 @@ ...@@ -54,5 +54,5 @@
-------------------------------------------------- */ -------------------------------------------------- */
#edit { #edit {
display: none; display: none;
} }
...@@ -3,12 +3,13 @@ ...@@ -3,12 +3,13 @@
-------------------------------------------------- */ -------------------------------------------------- */
body { body {
background: #fff; background: #fff0cd;
min-width: 600px; min-width: 600px;
margin: 0px;
} }
hr { hr {
border: 1px solid #e76808; border: 1px solid #e76808;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -16,16 +17,15 @@ hr { ...@@ -16,16 +17,15 @@ hr {
-------------------------------------------------- */ -------------------------------------------------- */
a:link { a:link {
color: #d45e08; color: #d45e08;
} }
a:visited { a:visited {
color: #a52f0f; color: #a52f0f;
} }
a:active { a:active {
color: #ffc62b; color: #ffc62b;
} }
a:hover { a:hover {
...@@ -35,25 +35,18 @@ a:hover { ...@@ -35,25 +35,18 @@ a:hover {
/* -------------------------------------------------- /* --------------------------------------------------
Page corners Page corners
-------------------------------------------------- */ -------------------------------------------------- */
/*#branding, #brandingC {
border-top-left-radius: 15px;
border-top-right-radius: 15px;
-moz-border-radius-topleft: 15px;
-moz-border-radius-topright: 15px;
}*/
.cornerTopLeft { #footer {
height: 100%; border-bottom-left-radius: 15px;
background: url('/images/left-top-corner.png') top left no-repeat; border-bottom-right-radius: 15px;
} -moz-border-radius-bottomleft: 15px;
-moz-border-radius-bottomright: 15px;
.cornerTopRight {
height: 100%;
background: url('/images/right-top-corner.png') top right no-repeat;
}
.cornerBottomLeft {
height: 100%;
background: url('/images/left-bottom-corner.png') bottom left no-repeat;
}
.cornerBottomRight {
height: 100%;
background: url('/images/right-bottom-corner.png') bottom right no-repeat;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -61,29 +54,29 @@ a:hover { ...@@ -61,29 +54,29 @@ a:hover {
-------------------------------------------------- */ -------------------------------------------------- */
#branding { #branding {
background: url('/images/orangefade.png') repeat-x #ffc62b bottom; background: url('/images/orangefade.png') repeat-x #ffc62b bottom;
clear: both; clear: both;
} }
#brandingC { #brandingC {
background: url('/images/bgfade.png') repeat-y; background: url('/images/bgfade.png') repeat-y;
} }
#title { #title {
color: #a52f0f; color: #a52f0f;
} }
#loginForm { #loginForm {
float: right; float: right;
padding: 1em; padding: 1em;
padding-bottom: 0; padding-bottom: 0;
line-height: 1.5em; line-height: 1.5em;
text-align: right; text-align: right;
font-size: 80%; font-size: 80%;
} }
#loginForm input.text { #loginForm input.text {
width: 8em; width: 8em;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -91,23 +84,23 @@ a:hover { ...@@ -91,23 +84,23 @@ a:hover {
-------------------------------------------------- */ -------------------------------------------------- */
#breadcrumb { #breadcrumb {
font-weight: bold; font-weight: bold;
font-size: 80%; font-size: 80%;
color: #ffc62b; color: #ffc62b;
} }
#breadcrumb ul { #breadcrumb ul {
margin: 0; margin: 0;
padding: 0; padding: 0;
list-style-type: none; list-style-type: none;
} }
#breadcrumb li { #breadcrumb li {
display: inline; display: inline;
} }
#breadcrumb a { #breadcrumb a {
text-decoration: none; text-decoration: none;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -115,39 +108,39 @@ a:hover { ...@@ -115,39 +108,39 @@ a:hover {
-------------------------------------------------- */ -------------------------------------------------- */
#wrapper { #wrapper {
background: #fff0cd; background: #fff0cd;
padding: 0; padding: 0;
clear: both; clear: both;
border: 2px solid #e76808; /*border: 2px solid #e76808;*/
border-top: 0; border-top: 0;
border-bottom: 0; border-bottom: 0;
} }
#navigation { #navigation {
float: left; float: left;
width: 17%; width: 17%;
padding-top: 0.5em; padding-top: 0.5em;
/* overflow: auto; */ /* overflow: auto; */
} }
#content { #content {
float: right; float: right;
width: 82%; width: 82%;
} }
#primary { #primary {
float: left; float: left;
width: 66%; width: 66%;
padding: 0; padding: 0;
} }
#primaryC { #primaryC {
padding-right: 0.5em; padding-right: 0.5em;
} }
#secondary { #secondary {
float: right; float: right;
width: 33%; width: 33%;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -155,57 +148,81 @@ a:hover { ...@@ -155,57 +148,81 @@ a:hover {
-------------------------------------------------- */ -------------------------------------------------- */
#navigationC ul { #navigationC ul {
margin: 0; margin: 0;
padding-left: 0; padding-left: 0;
list-style-type: none; list-style-type: none;
} }
/* --- Menu item */ /* --- Menu item */
#navigationC ul li a { #navigationC ul li a {
display: block; display: block;
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
line-height: 1.5em; line-height: 1.5em;
font-size: 95%; font-size: 95%;
color: #ffc62b; color: #ffc62b;
background: #e76808 url('/images/menu-top-right.png') no-repeat top right; background: #e76808;
padding-left: 1em; border-top-right-radius: 7px;
margin-bottom: 2px; border-bottom-right-radius: 7px;
-moz-border-radius-topright: 7px;
-moz-border-radius-bottomright: 7px;
padding-left: 1em;
margin-bottom: 2px;
} }
#navigationC ul li a:hover { #navigationC ul li a:hover {
background-color: #d45e08; background-color: #d45e08;
} }
#navigationC ul li a.select { #navigationC ul li a.select {
color: #fff0cd; color: #fff0cd;
border-bottom-right-radius: 0;
-moz-border-radius-bottomright: 0;
} }
/* --- Submenu item */ /* --- Submenu item */
#navigationC ul ul li a { #navigationC ul ul li a {
font-size: 80%; font-size: 80%;
font-weight: normal; font-weight: normal;
padding-left: 2em; padding-left: 2em;
background: #ffa405; background: #ffa405;
color: #d45e08; border-top-right-radius: 0;
border-bottom-right-radius: 0;
-moz-border-radius-topright: 0;
-moz-border-radius-bottomright: 0;
color: #d45e08;
} }
#navigationC ul li li a:hover { #navigationC ul li li a:hover {
background-color: #e69200; background-color: #e69200;
} }
#navigationC ul ul li a.select { #navigationC ul ul li a.select {
color: #fff0cd; color: #fff0cd;
} }
#navigationC ul ul li.lastsub a {
border-bottom-right-radius: 7px;
-moz-border-radius-bottomright: 7px;
}
#navigationC ul ul li a span { #navigationC ul li.lastsub a {
background: url('/images/menu-bottom-right.png') no-repeat bottom right; display: block;
border-bottom-right-radius: 7px;
-moz-border-radius-bottomright: 7px;
} }
#navigationC ul li a span { /* --------------------------------------------------
display: block; Boxes
background: url('/images/menu-bottom-right.png') no-repeat bottom right; -------------------------------------------------- */
div.cbb {
border-radius: 12px;
-moz-border-radius: 12px;
-webkit-border-radius: 12px;
padding: 1em;
box-shadow: 3px 3px 5px #777;
-moz-box-shadow: 3px 3px 5px #777;
-webkit-box-shadow: 3px 3px 5px #777;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -213,20 +230,20 @@ a:hover { ...@@ -213,20 +230,20 @@ a:hover {
-------------------------------------------------- */ -------------------------------------------------- */
#search input.text { #search input.text {
width: 100%; width: 100%;
} }
#search .buttons { #search .buttons {
margin-top: 0.5em; margin-top: 0.5em;
} }
#search div.left { #search div.left {
float: left; float: left;
} }
#search input.submit { #search input.submit {
float: right; float: right;
padding: 0; padding: 0;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -234,29 +251,28 @@ a:hover { ...@@ -234,29 +251,28 @@ a:hover {
-------------------------------------------------- */ -------------------------------------------------- */
ul#valid { ul#valid {
margin: 0; margin: 0;
margin-left: 1em; margin-left: 1em;
margin-bottom: 0.3em; margin-bottom: 0.3em;
padding: 0; padding: 0;
} }
/* -------------------------------------------------- /* --------------------------------------------------
Footer Footer
-------------------------------------------------- */ -------------------------------------------------- */
#footer { #footer {
margin: 0; margin: 0;
margin-bottom: 0.5em; margin-bottom: 0.5em;
background: url('/images/orangefade-bottom.png') top repeat-x #ffc62b; background: url('/images/orangefade-bottom.png') top repeat-x #ffc62b;
visibility: hidden;
} }
#footer p { #footer p {
margin: 0; margin: 0;
text-align: center; text-align: center;
font-size: 80%; font-size: 80%;
padding: 0.5em; padding: 0.5em;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -264,68 +280,63 @@ ul#valid { ...@@ -264,68 +280,63 @@ ul#valid {
-------------------------------------------------- */ -------------------------------------------------- */
.box { .box {
background: #ffffff; background: #ffffff;
border-radius: 7px;
-moz-border-radius: 7px;
} }
.box div.boxcontent { .box div.boxcontent {
border: 2px solid #e76808; border: 2px solid #e76808;
border-top: 1px solid #e76808; border-top: 1px solid #e76808;
border-bottom: 1px solid #ffffff; border-bottom: 1px solid #ffffff;
} }
.box .boxhead a, .box .boxhead h2, .box .boxhead h3, .box .boxfoot p, .boxfoot a { .box .boxhead a, .box .boxhead h2, .box .boxhead h3, .box .boxfoot p, .boxfoot a {
color: #ffc62b; color: #ffc62b;
} }
.box .boxhead { .box .boxhead {
background: #e76808 url('/images/menu-top-left.png') no-repeat top left; background: #e76808;
border-top-left-radius: 7px;
border-top-right-radius: 7px;
-moz-border-radius-topleft: 7px;
-moz-border-radius-topright: 7px;
} }
.box .hollowhead { .box .hollowhead {
background: #ffffff url('/images/border-bottom.png') repeat-x top; background: #ffffff;
height: 5px; border-top: 2px solid #e76808;
margin: 0; border-left: 2px solid #e76808;
padding: 0; border-right: 2px solid #e76808;
} border-top-left-radius: 7px;
border-top-right-radius: 7px;
.box .hollowhead div { -moz-border-radius-topleft: 7px;
background: url('/images/border-top-left.png') no-repeat top left; -moz-border-radius-topright: 7px;
height: 100%; height: 5px;
} margin: 0;
padding: 0;
.box .hollowhead div div {
background: url('/images/border-top-right.png') no-repeat top right;
height: 100%;
}
.box .boxhead h2, .box .boxhead h3, .error .errorhead h3 {
background: url('/images/menu-top-right.png') no-repeat top right;
} }
.box .boxfoot { .box .boxfoot {
background: #e76808 url('/images/menu-bottom-left.png') no-repeat bottom left; background: #e76808;
} border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
.box .boxfoot p { -moz-border-radius-bottomleft: 7px;
background: url('/images/menu-bottom-right.png') no-repeat bottom right; -moz-border-radius-bottomright: 7px;
} }
.box .hollowfoot { .box .hollowfoot {
background: #ffffff url('/images/border-bottom.png') repeat-x bottom; background: #ffffff;
height: 5px; height: 5px;
margin: 0; margin: 0;
padding: 0; padding: 0;
} border-bottom: 2px solid #e76808;
border-left: 2px solid #e76808;
.box .hollowfoot div { border-right: 2px solid #e76808;
background: url('/images/border-bottom-left.png') no-repeat bottom left; border-bottom-left-radius: 7px;
height: 100%; border-bottom-right-radius: 7px;
} -moz-border-radius-bottomleft: 7px;
-moz-border-radius-bottomright: 7px;
.box .hollowfoot div div {
background: url('/images/border-bottom-right.png') no-repeat bottom right;
height: 100%;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -333,69 +344,68 @@ ul#valid { ...@@ -333,69 +344,68 @@ ul#valid {
-------------------------------------------------- */ -------------------------------------------------- */
.error { .error {
margin-right: 0.5em; margin-right: 0.5em;
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
.error div.errorcontent { .error div.errorcontent {
background: #ffffff; background: #ffffff;
border: 2px solid #ff0000; border: 2px solid #ff0000;
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
-moz-border-radius-bottomleft: 7px;
-moz-border-radius-bottomright: 7px;
padding-bottom: 0.5em;
} }
.error .errorhead h3 { .error .errorhead h3 {
color: #ffffff; color: #ffffff;
} }
.error .errorhead { .error .errorhead {
background: #ff0000 url('/images/menu-top-left.png') no-repeat top left; background: #ff0000;
border-top-left-radius: 7px;
border-top-right-radius: 7px;
-moz-border-radius-topleft: 7px;
-moz-border-radius-topright: 7px;
} }
.errorbar, .navbar, .infobar { .errorbar, .navbar, .infobar {
margin: 0.5em 0 0 0; margin: 0.5em 0 0 0;
font-size: 80%; font-size: 80%;
border-radius: 7px;
-moz-border-radius: 7px;
padding: 0.2em 0.5em;
} }
.errorbar { .errorbar {
background: #ff0000 url('/images/menu-top-left.png') no-repeat top left; background: #ff0000;
color: #ffffff; color: #ffffff;
margin-right: 0.5em; margin-right: 0.5em;
} }
.infobar { .infobar {
background: #e76808 url('/images/menu-top-left.png') no-repeat top left; background: #e76808;
color: #ffffff; color: #ffffff;
margin-right: 0.5em; margin-right: 0.5em;
} }
.infobar a { .infobar a {
color: #ffc62b; color: #ffc62b;
} }
.infobar a:active { .infobar a:active {
color: #ffffff; color: #ffffff;
} }
.navbar { .navbar {
background: #e76808 url('/images/menu-top-left.png') no-repeat top left; background: #e76808;
} }
.navbar a { .navbar a {
color: #ffc62b; color: #ffc62b;
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
}
.errorbar div, .navbar div, .infobar div {
background: url('/images/menu-top-right.png') no-repeat top right;
}
.errorbar div div, .navbar div div, .infobar div div {
background: url('/images/menu-bottom-left.png') no-repeat bottom left;
}
.errorbar div div div, .navbar div div div, .infobar div div div {
background: url('/images/menu-bottom-right.png') no-repeat bottom right;
padding: 0.2em 0.5em;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -403,9 +413,9 @@ ul#valid { ...@@ -403,9 +413,9 @@ ul#valid {
-------------------------------------------------- */ -------------------------------------------------- */
.dialog { .dialog {
text-align: center; text-align: center;
margin: auto; margin: auto;
width: 20em; width: 20em;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -413,16 +423,16 @@ ul#valid { ...@@ -413,16 +423,16 @@ ul#valid {
-------------------------------------------------- */ -------------------------------------------------- */
table.border th { table.border th {
background: #e76808; background: #e76808;
color: #ffc62b; color: #ffc62b;
} }
table.border td { table.border td {
background: #ffffff; background: #ffffff;
} }
table.border a:link { table.border a:link {
color: #d45e08; color: #d45e08;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -430,20 +440,24 @@ table.border a:link { ...@@ -430,20 +440,24 @@ table.border a:link {
-------------------------------------------------- */ -------------------------------------------------- */
.edit { .edit {
margin-top: 1em; margin-top: 1em;
border-top: 2px solid #e76808; border-top: 2px solid #e76808;
font-size: 80%; font-size: 80%;
text-align: right; text-align: right;
} }
.edit ul { .edit ul {
margin: 0; margin: 0;
} }
.edit li { .edit li {
display: inline; display: inline;
float: right; float: right;
padding-left: 1em; padding-left: 1em;
}
form.admin {
float: left;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -459,5 +473,5 @@ table.border a:link { ...@@ -459,5 +473,5 @@ table.border a:link {
-------------------------------------------------- */ -------------------------------------------------- */
fieldset { fieldset {
border: 2px dotted #e76808; border: 2px dotted #e76808;
} }
div.susignup-admin-menu {
float: left;
width: 22%;
margin-left: 10px;
background: #E76808;
border-radius: 15px;
border-radius: 15px;
-moz-border-radius: 15px;
-moz-border-radius: 15px;
}
div.susignup-admin-menu select {
position: relative;
width: 65%;
}
div.susignup-admin-menu label {
position: relative;
width: 9em;
}
div.susignup-admin-menu input#rnsubmit {
position: relative;
width: 70px;
}
#susignup-renewals {
width: 90%;
border: 1px solid black;
border-collapse: collapse;
}
#susignup-renewals td {
border: 1px solid black;
padding-left: 4px;
padding-right: 2px;
}
#susignup-renewals th {
border: 1px solid black;
text-align: center;
padding-left: 2px;
padding-right: 2px;
}
.centre {
text-align: center;
}
<?
function msg_tx($text, $time, $fg, $bg)
{
$f = fopen("http://door.sucs.org/sendstatus.py?text=".urlencode($text)."&amp;timeout=$time&amp;fg=$fg&amp;bg=$bg", "r");
fclose($f);
}
function msg_good($text, $time=5)
{
msg_tx($text, $time, "0,0,0", "128,255,128");
}
function msg_bad($text, $time=3)
{
msg_tx($text, $time, "0,0,0", "255,64,64");
}
header("Content-type: text/plain");
// Initialise the database
require("/usr/share/adodb/adodb.inc.php");
$DB = NewADOConnection('postgres8');
if ($DB->Connect('dbname=sucs') === FALSE) {
echo "DB fail\n";
exit;
}
$DB->SetFetchMode(ADODB_FETCH_ASSOC);
$f = fopen("/tmp/doorlog", "a");
if (isset($_REQUEST['code'])) {
// Expire old requests
$DB->Execute("delete from doorknock where start < NOW() - 30 seconds:reltime");
// Parse out the string
$code = $_REQUEST['code'];
$codes = split(' ',$code);
if ($codes[0] != "SUCS") {
echo "Unrecognised codeword '{$codes[0]}'\n";
msg_bad("Invalid slip");
exit;
}
// look up the user
$user = $DB->GetAll("select * from signup where id=?",array($codes[1]));
if (!is_array($user) || count($user) < 1) {
echo "Unrecognised signup id\n";
msg_bad("Invalid slip");
exit;
}
if ($codes[2] != $user[0]['password']) {
echo "Password mismatch\n";
msg_bad("Invalid slip");
exit;
}
if ($user[0]['card'] != "") {
echo "User already has a card\n";
msg_bad("Slip already used");
exit;
}
// all looks valid so far
// check we arent bouncing ourselves out
$exist = $DB->GetAll("select * from doorknock");
if (is_array($exist) && count($exist) > 0) {
print_r($exist);
if ($exist[0]['suid'] == $user[0]['id']) {
echo "Already in progress, no action\n";
exit;
}
$DB->Execute("delete from doorknock");
echo "Bouncing out signup id={$exist[0]['suid']}\n";
}
$DB->Execute("insert into doorknock (suid,start) values(?,NOW())", array($user[0]['id']));
echo "Start waiting for id={$user[0]['id']}\n";
msg_good("Please swipe ID Card to complete registration", 10);
exit;
} else
// a card was swiped at the door, try to match it
if (isset($_REQUEST['id'])) {
$card = $_REQUEST['id'];
$exist = $DB->GetAll("select * from doorknock");
if (!is_array($exist) || count($exist) < 1) {
echo "No registration in progress, ignoring.\n";
exit;
}
$signup = $DB->GetAll("select * from signup where id=?",array($exist[0]['suid']));
if (!is_array($signup) || count($signup) < 1) {
echo "Unrecognised signup id\n";
msg_bad("Invalid slip");
$DB->Execute("delete from doorknock");
exit;
}
// should really check the card isnt already registered first
$DB->Execute("update signup set card=? where id=?", array($card, $signup[0]['id']));
echo "Registering card '$card' to signup id {$signup[0]['id']}\n";
$DB->Execute("delete from doorknock");
// User is registered, stick it in the real doorcards list too
if ($signup[0]['username'] != "") {
$user = $DB->GetAll("select * from members where username=?", array($signup[0]['username']));
if (!is_array($user) || count($user) < 1) {
echo "Cant find username '{$signup[0]['username']}' to full reg the card\n";
} else {
$DB->Execute("insert into doorcards (uid, cardnumber) values (?,?)", array($user[0]['uid'], $card));
echo "Registering card to uid={$user[0]['uid']} username {$user[0]['username']}\n";
}
}
unlink("/tmp/cards");
system("/usr/local/bin/db-to-cards.php");
system("sudo /usr/local/bin/putcardsfile");
unlink("/tmp/cards");
msg_good("Card now registered, swipe again for access");
exit;
}
?>
AddType application/x-apple-diskimage dmg
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>My Homepage</title>
</head>
<body>
<h1>Hello, this is my page</h1>
<p>I'm a student at <strong>Swansea University.</strong></p>
<p>I'm also a member of <a href="http://sucs.org/">SUCS</a></p>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ConsentText</key>
<dict>
<key>default</key>
<string>Please use your SUCS username and password when prompted.</string>
</dict>
<key>PayloadContent</key>
<array>
<dict>
<key>AutoJoin</key>
<true/>
<key>EAPClientConfiguration</key>
<dict>
<key>AcceptEAPTypes</key>
<array>
<integer>21</integer>
</array>
<key>EAPFASTProvisionPAC</key>
<false/>
<key>EAPFASTProvisionPACAnonymously</key>
<false/>
<key>EAPFASTUsePAC</key>
<false/>
<key>TTLSInnerAuthentication</key>
<string>PAP</string>
</dict>
<key>EncryptionType</key>
<string>WPA</string>
<key>HIDDEN_NETWORK</key>
<false/>
<key>PayloadDescription</key>
<string>Configures wireless connectivity settings.</string>
<key>PayloadDisplayName</key>
<string>WiFi (SUCS)</string>
<key>PayloadIdentifier</key>
<string>com.sucs.wifi.wifi1</string>
<key>PayloadOrganization</key>
<string>Swansea University Computer Society</string>
<key>PayloadType</key>
<string>com.apple.wifi.managed</string>
<key>PayloadUUID</key>
<string>5B8847BA-4E0B-4A0C-AAA7-58F02493C45B</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>ProxyType</key>
<string>None</string>
<key>SSID_STR</key>
<string>SUCS</string>
</dict>
</array>
<key>PayloadDescription</key>
<string>Profile for connecting to SUCS WiFi network.</string>
<key>PayloadDisplayName</key>
<string>SUCS WiFi</string>
<key>PayloadIdentifier</key>
<string>com.sucs.wifi</string>
<key>PayloadOrganization</key>
<string>Swansea University Computer Society</string>
<key>PayloadRemovalDisallowed</key>
<false/>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>CE79D61D-882C-4526-8A3B-0B29F9AAF28B</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>
htdocs/images/apple-touch-icon.png

2.69 KiB

htdocs/images/bananas/banana-container.png

7.23 KiB

htdocs/images/bananas/banana-g-container.png

7.09 KiB

../../components/disk.graph.php
\ No newline at end of file