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 682 additions and 487 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
......@@ -3,165 +3,168 @@
-------------------------------------------------- */
.cornerTopLeft {
height: 100%;
background: url('/images/left-top-corner.png') top left no-repeat;
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;
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;
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;
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;
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;
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;
display: block;
background: url('/images/menu-bottom-right.png') no-repeat bottom right;
}
/* --------------------------------------------------
Error box
-------------------------------------------------- */
.error {
margin-right: 0.5em;
margin-bottom: 0.5em;
margin-right: 0.5em;
margin-bottom: 0.5em;
}
.error div.errorcontent {
background: #ffffff;
border: 2px solid #ff0000;
background: #ffffff;
border: 2px solid #ff0000;
}
.error .errorhead h3 {
color: #ffffff;
color: #ffffff;
}
.error .errorhead {
background: #ff0000 url('/images/menu-top-left.png') no-repeat top left;
background: #ff0000 url('/images/menu-top-left.png') no-repeat top left;
}
.errorbar, .navbar, .infobar {
margin: 0.5em 0 0 0;
font-size: 80%;
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;
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;
background: #e76808 url('/images/menu-top-left.png') no-repeat top left;
color: #ffffff;
margin-right: 0.5em;
}
.infobar a {
color: #ffc62b;
color: #ffc62b;
}
.infobar a:active {
color: #ffffff;
color: #ffffff;
}
.navbar {
background: #e76808 url('/images/menu-top-left.png') no-repeat top left;
background: #e76808 url('/images/menu-top-left.png') no-repeat top left;
}
.navbar a {
color: #ffc62b;
font-weight: bold;
text-decoration: none;
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;
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;
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;
background: url('/images/menu-bottom-right.png') no-repeat bottom right;
padding: 0.2em 0.5em;
}
/* --------------------------------------------------
Content box (e.g. for news items)
-------------------------------------------------- */
.box .boxhead {
background: #e76808 url('/images/menu-top-left.png') no-repeat top left;
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;
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%;
background: url('/images/border-top-left.png') no-repeat top left;
height: 100%;
}
.box .hollowhead div div {
background: url('/images/border-top-right.png') no-repeat top right;
height: 100%;
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;
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;
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;
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;
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%;
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%;
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;
background: #ff0000 url('/images/menu-top-left.png') no-repeat top left;
}
div#searchbox {
height: 5em;
height: 5em;
}
.buttons {
padding-top: 5px;
padding-top: 5px;
}
\ No newline at end of file
......@@ -3,19 +3,19 @@
-------------------------------------------------- */
.cornerTopLeft {
background: url('/images/left-top-corner.gif') top left no-repeat;
background: url('/images/left-top-corner.gif') top left no-repeat;
}
.cornerTopRight {
background: url('/images/right-top-corner.gif') top right no-repeat;
background: url('/images/right-top-corner.gif') top right no-repeat;
}
.cornerBottomLeft {
background: url('/images/left-bottom-corner.gif') bottom left no-repeat;
background: url('/images/left-bottom-corner.gif') bottom left no-repeat;
}
.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 @@
-------------------------------------------------- */
#branding {
/* background: #ffc62b;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='/images/orangefade.png'); */
/* background: #ffc62b;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='/images/orangefade.png'); */
}
#loginForm {
margin-right: 0.5em;
margin-bottom: 0.2em;
margin-right: 0.5em;
margin-bottom: 0.2em;
}
#brandingC {
background: transparent;
/* filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='/images/bgfade.png'); */
background: transparent;
/* filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop src='/images/bgfade.png'); */
}
/* --------------------------------------------------
Menu
-------------------------------------------------- */
#navigationC ul li {
line-height: 0;
line-height: 0;
}
#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 {
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 {
background-image: url('/images/menu-bottom-right.gif');
background-image: url('/images/menu-bottom-right.gif');
}
#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 @@
-------------------------------------------------- */
#search input.text {
width: 95%;
width: 95%;
}
/* --------------------------------------------------
......@@ -75,8 +74,8 @@
-------------------------------------------------- */
#footer {
/* background: #ffc62b;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='/images/orangefade-bottom.png'); */
/* background: #ffc62b;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='/images/orangefade-bottom.png'); */
}
/* --------------------------------------------------
......@@ -84,43 +83,43 @@
-------------------------------------------------- */
.box {
line-height: 1.1;
line-height: 1.1;
}
.box .boxhead {
background: #e76808 url('/images/menu-top-left.gif') no-repeat top left;
.box .boxhead {
background: #e76808 url('/images/menu-top-left.gif') no-repeat top left;
}
.box .hollowhead, .box .hollowfoot {
font-size: 0;
font-size: 0;
}
.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 {
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 {
background: url('/images/menu-top-right.gif') no-repeat top right;
background: url('/images/menu-top-right.gif') no-repeat top right;
}
.box .boxfoot {
background: #e76808 url('/images/menu-bottom-left.gif') no-repeat bottom left;
.box .boxfoot {
background: #e76808 url('/images/menu-bottom-left.gif') no-repeat bottom left;
}
.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 {
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 {
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 @@
-------------------------------------------------- */
.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 {
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 {
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 {
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 {
background: url('/images/menu-bottom-right.gif') no-repeat bottom right;
.errorbar div div div {
background: url('/images/menu-bottom-right.gif') no-repeat bottom right;
}
form {
margin: 0;
padding: 0;
margin: 0;
padding: 0;
}
#navigationC ul li {
line-height: 0;
line-height: 0;
}
#loginForm input.button {
font-size: 80%;
font-size: 80%;
}
/* --------------------------------------------------
......@@ -16,11 +16,12 @@ form {
-------------------------------------------------- */
ol.roman {
list-style-type: i;
list-style-type: i;
}
/* --------------------------------------------------
Secondary content
-------------------------------------------------- */
#secondary ul {
margin-left: 2em;
margin-left: 2em;
}
\ No newline at end of file
li.column1 {
margin-left: 0em;
margin-left: 0em;
}
li.column2 {
margin-left: 10em;
margin-left: 10em;
}
div.memberlist ul li {
line-height: 1.2em;
line-height: 1.2em;
}
div.memberlist ul {
margin-top: 0;
margin-top: 0;
}
ul.bananas {
margin-left: 0;
padding-left: 0;
list-style: none;
margin-left: 0;
padding-left: 0;
list-style: none;
}
ul.bananas li {
margin-bottom: 0.5em;
background-repeat: no-repeat;
padding-left: 30px;
margin-bottom: 0.5em;
background-repeat: no-repeat;
padding-left: 30px;
}
ul.bananas li small {
color: grey;
color: grey;
}
ul.bananas li.yellow1 {
background-image: url('/images/bananas/banana1.png');
background-position: 0.5em;
background-image: url('/images/bananas/banana1.png');
background-position: 0.5em;
}
ul.bananas li.yellow2 {
background-image: url('/images/bananas/banana2.png');
background-position: 0.2em;
background-image: url('/images/bananas/banana2.png');
background-position: 0.2em;
}
ul.bananas li.yellow3 {
background-position: 0;
background-image: url('/images/bananas/banana3.png');
background-position: 0;
background-image: url('/images/bananas/banana3.png');
}
ul.bananas li.green1 {
background-position: 0.5em;
background-image: url('/images/bananas/banana-g-1.png');
background-position: 0.5em;
background-image: url('/images/bananas/banana-g-1.png');
}
ul.bananas li.green2 {
background-position: 0.2em;
background-image: url('/images/bananas/banana-g-2.png');
background-position: 0.2em;
background-image: url('/images/bananas/banana-g-2.png');
}
ul.bananas li.green3 {
background-position: 0;
background-image: url('/images/bananas/banana-g-3.png');
background-position: 0;
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; }
.date {
background-color: #e0e0ff;
}
.time {
background-color: #e0ffe0;
}
.user {
background-color: #ffe0e0;
}
.taglist {
background-color: #ffffe0;
}
/********************************************************************************
* CodeHighlight Classes
* Originally from the Wordpress Code Highlight Plugin
......@@ -16,27 +15,82 @@
}
/* .hl-surround, .hl-surround pre, .hl-surround span, */
.hl-main { font: normal 10pt 'Courier New', monospace;}
.hl-default { color: Black; }
.hl-code { color: Black; }
.hl-brackets { color: Olive; }
.hl-comment { color: #ffa500; } /* 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; }
.hl-main {
font: normal 10pt 'Courier New', monospace;
}
.hl-default {
color: Black;
}
.hl-code {
color: Black;
}
.hl-brackets {
color: Olive;
}
.hl-comment {
color: #ffa500;
}
/* 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 * {
font: normal 10pt 'Courier New', monospace;
font: normal 10pt 'Courier New', monospace;
}
......@@ -3,11 +3,11 @@
-------------------------------------------------- */
#branding {
border-bottom: 1px solid #000000;
border-bottom: 1px solid #000000;
}
#loginForm {
display: none;
display: none;
}
/* --------------------------------------------------
......@@ -15,7 +15,7 @@
-------------------------------------------------- */
#navigation {
display: none;
display: none;
}
#secondary {
......@@ -26,14 +26,14 @@
-------------------------------------------------- */
#footer {
border-top: 1px solid #000000;
border-top: 1px solid #000000;
}
#footer p {
margin: 0;
text-align: center;
font-size: 80%;
padding: 0.5em;
margin: 0;
text-align: center;
font-size: 80%;
padding: 0.5em;
}
/* --------------------------------------------------
......@@ -41,12 +41,12 @@
-------------------------------------------------- */
.box {
border: 1px solid #e76808;
border: 1px solid #e76808;
}
.box div.boxcontent {
border-top: 1px solid #e76808;
border-bottom: 1px solid #e76808;
border-top: 1px solid #e76808;
border-bottom: 1px solid #e76808;
}
/* --------------------------------------------------
......@@ -54,5 +54,5 @@
-------------------------------------------------- */
#edit {
display: none;
display: none;
}
......@@ -3,12 +3,13 @@
-------------------------------------------------- */
body {
background: #fff;
min-width: 600px;
background: #fff0cd;
min-width: 600px;
margin: 0px;
}
hr {
border: 1px solid #e76808;
border: 1px solid #e76808;
}
/* --------------------------------------------------
......@@ -16,16 +17,15 @@ hr {
-------------------------------------------------- */
a:link {
color: #d45e08;
color: #d45e08;
}
a:visited {
color: #a52f0f;
color: #a52f0f;
}
a:active {
color: #ffc62b;
color: #ffc62b;
}
a:hover {
......@@ -35,17 +35,18 @@ a:hover {
/* --------------------------------------------------
Page corners
-------------------------------------------------- */
#branding, #brandingC {
border-top-left-radius: 15px;
border-top-right-radius: 15px;
-moz-border-radius-topleft: 15px;
-moz-border-radius-topright: 15px;
}
/*#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;
border-bottom-right-radius: 15px;
-moz-border-radius-bottomleft: 15px;
-moz-border-radius-bottomright: 15px;
border-bottom-left-radius: 15px;
border-bottom-right-radius: 15px;
-moz-border-radius-bottomleft: 15px;
-moz-border-radius-bottomright: 15px;
}
/* --------------------------------------------------
......@@ -53,29 +54,29 @@ a:hover {
-------------------------------------------------- */
#branding {
background: url('/images/orangefade.png') repeat-x #ffc62b bottom;
clear: both;
background: url('/images/orangefade.png') repeat-x #ffc62b bottom;
clear: both;
}
#brandingC {
background: url('/images/bgfade.png') repeat-y;
background: url('/images/bgfade.png') repeat-y;
}
#title {
color: #a52f0f;
color: #a52f0f;
}
#loginForm {
float: right;
padding: 1em;
padding-bottom: 0;
line-height: 1.5em;
text-align: right;
font-size: 80%;
float: right;
padding: 1em;
padding-bottom: 0;
line-height: 1.5em;
text-align: right;
font-size: 80%;
}
#loginForm input.text {
width: 8em;
width: 8em;
}
/* --------------------------------------------------
......@@ -83,23 +84,23 @@ a:hover {
-------------------------------------------------- */
#breadcrumb {
font-weight: bold;
font-size: 80%;
color: #ffc62b;
font-weight: bold;
font-size: 80%;
color: #ffc62b;
}
#breadcrumb ul {
margin: 0;
padding: 0;
list-style-type: none;
margin: 0;
padding: 0;
list-style-type: none;
}
#breadcrumb li {
display: inline;
display: inline;
}
#breadcrumb a {
text-decoration: none;
text-decoration: none;
}
/* --------------------------------------------------
......@@ -107,39 +108,39 @@ a:hover {
-------------------------------------------------- */
#wrapper {
background: #fff0cd;
padding: 0;
clear: both;
border: 2px solid #e76808;
border-top: 0;
border-bottom: 0;
background: #fff0cd;
padding: 0;
clear: both;
/*border: 2px solid #e76808;*/
border-top: 0;
border-bottom: 0;
}
#navigation {
float: left;
width: 17%;
padding-top: 0.5em;
/* overflow: auto; */
float: left;
width: 17%;
padding-top: 0.5em;
/* overflow: auto; */
}
#content {
float: right;
width: 82%;
float: right;
width: 82%;
}
#primary {
float: left;
width: 66%;
padding: 0;
float: left;
width: 66%;
padding: 0;
}
#primaryC {
padding-right: 0.5em;
padding-right: 0.5em;
}
#secondary {
float: right;
width: 33%;
float: right;
width: 33%;
}
/* --------------------------------------------------
......@@ -147,82 +148,81 @@ a:hover {
-------------------------------------------------- */
#navigationC ul {
margin: 0;
padding-left: 0;
list-style-type: none;
margin: 0;
padding-left: 0;
list-style-type: none;
}
/* --- Menu item */
#navigationC ul li a {
display: block;
text-decoration: none;
font-weight: bold;
line-height: 1.5em;
font-size: 95%;
color: #ffc62b;
background: #e76808;
border-top-right-radius: 7px;
border-bottom-right-radius: 7px;
-moz-border-radius-topright: 7px;
-moz-border-radius-bottomright: 7px;
padding-left: 1em;
margin-bottom: 2px;
display: block;
text-decoration: none;
font-weight: bold;
line-height: 1.5em;
font-size: 95%;
color: #ffc62b;
background: #e76808;
border-top-right-radius: 7px;
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 {
background-color: #d45e08;
background-color: #d45e08;
}
#navigationC ul li a.select {
color: #fff0cd;
border-bottom-right-radius: 0;
-moz-border-radius-bottomright: 0;
color: #fff0cd;
border-bottom-right-radius: 0;
-moz-border-radius-bottomright: 0;
}
/* --- Submenu item */
#navigationC ul ul li a {
font-size: 80%;
font-weight: normal;
padding-left: 2em;
background: #ffa405;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
-moz-border-radius-topright: 0;
-moz-border-radius-bottomright: 0;
color: #d45e08;
font-size: 80%;
font-weight: normal;
padding-left: 2em;
background: #ffa405;
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 {
background-color: #e69200;
background-color: #e69200;
}
#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;
border-bottom-right-radius: 7px;
-moz-border-radius-bottomright: 7px;
}
#navigationC ul li.lastsub a {
display: block;
border-bottom-right-radius: 7px;
-moz-border-radius-bottomright: 7px;
display: block;
border-bottom-right-radius: 7px;
-moz-border-radius-bottomright: 7px;
}
/* --------------------------------------------------
Boxes
-------------------------------------------------- */
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;
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;
}
/* --------------------------------------------------
......@@ -230,20 +230,20 @@ div.cbb {
-------------------------------------------------- */
#search input.text {
width: 100%;
width: 100%;
}
#search .buttons {
margin-top: 0.5em;
margin-top: 0.5em;
}
#search div.left {
float: left;
float: left;
}
#search input.submit {
float: right;
padding: 0;
float: right;
padding: 0;
}
/* --------------------------------------------------
......@@ -251,29 +251,28 @@ div.cbb {
-------------------------------------------------- */
ul#valid {
margin: 0;
margin-left: 1em;
margin-bottom: 0.3em;
padding: 0;
margin: 0;
margin-left: 1em;
margin-bottom: 0.3em;
padding: 0;
}
/* --------------------------------------------------
Footer
-------------------------------------------------- */
#footer {
margin: 0;
margin-bottom: 0.5em;
background: url('/images/orangefade-bottom.png') top repeat-x #ffc62b;
margin: 0;
margin-bottom: 0.5em;
background: url('/images/orangefade-bottom.png') top repeat-x #ffc62b;
visibility: hidden;
}
#footer p {
margin: 0;
text-align: center;
font-size: 80%;
padding: 0.5em;
margin: 0;
text-align: center;
font-size: 80%;
padding: 0.5em;
}
/* --------------------------------------------------
......@@ -281,63 +280,63 @@ ul#valid {
-------------------------------------------------- */
.box {
background: #ffffff;
border-radius: 7px;
-moz-border-radius: 7px;
background: #ffffff;
border-radius: 7px;
-moz-border-radius: 7px;
}
.box div.boxcontent {
border: 2px solid #e76808;
border-top: 1px solid #e76808;
border-bottom: 1px solid #ffffff;
border: 2px solid #e76808;
border-top: 1px solid #e76808;
border-bottom: 1px solid #ffffff;
}
.box .boxhead a, .box .boxhead h2, .box .boxhead h3, .box .boxfoot p, .boxfoot a {
color: #ffc62b;
color: #ffc62b;
}
.box .boxhead {
background: #e76808;
border-top-left-radius: 7px;
border-top-right-radius: 7px;
-moz-border-radius-topleft: 7px;
-moz-border-radius-topright: 7px;
background: #e76808;
border-top-left-radius: 7px;
border-top-right-radius: 7px;
-moz-border-radius-topleft: 7px;
-moz-border-radius-topright: 7px;
}
.box .hollowhead {
background: #ffffff;
border-top: 2px solid #e76808;
border-left: 2px solid #e76808;
border-right: 2px solid #e76808;
border-top-left-radius: 7px;
border-top-right-radius: 7px;
-moz-border-radius-topleft: 7px;
-moz-border-radius-topright: 7px;
height: 5px;
margin: 0;
padding: 0;
background: #ffffff;
border-top: 2px solid #e76808;
border-left: 2px solid #e76808;
border-right: 2px solid #e76808;
border-top-left-radius: 7px;
border-top-right-radius: 7px;
-moz-border-radius-topleft: 7px;
-moz-border-radius-topright: 7px;
height: 5px;
margin: 0;
padding: 0;
}
.box .boxfoot {
background: #e76808;
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
-moz-border-radius-bottomleft: 7px;
-moz-border-radius-bottomright: 7px;
background: #e76808;
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
-moz-border-radius-bottomleft: 7px;
-moz-border-radius-bottomright: 7px;
}
.box .hollowfoot {
background: #ffffff;
height: 5px;
margin: 0;
padding: 0;
border-bottom: 2px solid #e76808;
border-left: 2px solid #e76808;
border-right: 2px solid #e76808;
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
-moz-border-radius-bottomleft: 7px;
-moz-border-radius-bottomright: 7px;
background: #ffffff;
height: 5px;
margin: 0;
padding: 0;
border-bottom: 2px solid #e76808;
border-left: 2px solid #e76808;
border-right: 2px solid #e76808;
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
-moz-border-radius-bottomleft: 7px;
-moz-border-radius-bottomright: 7px;
}
/* --------------------------------------------------
......@@ -345,68 +344,68 @@ ul#valid {
-------------------------------------------------- */
.error {
margin-right: 0.5em;
margin-bottom: 0.5em;
margin-right: 0.5em;
margin-bottom: 0.5em;
}
.error div.errorcontent {
background: #ffffff;
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;
background: #ffffff;
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 {
color: #ffffff;
color: #ffffff;
}
.error .errorhead {
background: #ff0000;
border-top-left-radius: 7px;
border-top-right-radius: 7px;
-moz-border-radius-topleft: 7px;
-moz-border-radius-topright: 7px;
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 {
margin: 0.5em 0 0 0;
font-size: 80%;
border-radius: 7px;
-moz-border-radius: 7px;
padding: 0.2em 0.5em;
margin: 0.5em 0 0 0;
font-size: 80%;
border-radius: 7px;
-moz-border-radius: 7px;
padding: 0.2em 0.5em;
}
.errorbar {
background: #ff0000;
color: #ffffff;
margin-right: 0.5em;
background: #ff0000;
color: #ffffff;
margin-right: 0.5em;
}
.infobar {
background: #e76808;
color: #ffffff;
margin-right: 0.5em;
background: #e76808;
color: #ffffff;
margin-right: 0.5em;
}
.infobar a {
color: #ffc62b;
color: #ffc62b;
}
.infobar a:active {
color: #ffffff;
color: #ffffff;
}
.navbar {
background: #e76808;
background: #e76808;
}
.navbar a {
color: #ffc62b;
font-weight: bold;
text-decoration: none;
color: #ffc62b;
font-weight: bold;
text-decoration: none;
}
/* --------------------------------------------------
......@@ -414,9 +413,9 @@ ul#valid {
-------------------------------------------------- */
.dialog {
text-align: center;
margin: auto;
width: 20em;
text-align: center;
margin: auto;
width: 20em;
}
/* --------------------------------------------------
......@@ -424,16 +423,16 @@ ul#valid {
-------------------------------------------------- */
table.border th {
background: #e76808;
color: #ffc62b;
background: #e76808;
color: #ffc62b;
}
table.border td {
background: #ffffff;
background: #ffffff;
}
table.border a:link {
color: #d45e08;
color: #d45e08;
}
/* --------------------------------------------------
......@@ -441,20 +440,24 @@ table.border a:link {
-------------------------------------------------- */
.edit {
margin-top: 1em;
border-top: 2px solid #e76808;
font-size: 80%;
text-align: right;
margin-top: 1em;
border-top: 2px solid #e76808;
font-size: 80%;
text-align: right;
}
.edit ul {
margin: 0;
margin: 0;
}
.edit li {
display: inline;
float: right;
padding-left: 1em;
display: inline;
float: right;
padding-left: 1em;
}
form.admin {
float: left;
}
/* --------------------------------------------------
......@@ -470,5 +473,5 @@ table.border a:link {
-------------------------------------------------- */
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;
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%;
position: relative;
width: 65%;
}
div.susignup-admin-menu label {
position: relative;
width: 9em;
position: relative;
width: 9em;
}
div.susignup-admin-menu input#rnsubmit {
position: relative;
width: 70px;
position: relative;
width: 70px;
}
#susignup-renewals {
width: 90%;
border: 1px solid black;
border-collapse: collapse;
width: 90%;
border: 1px solid black;
border-collapse: collapse;
}
#susignup-renewals td {
border: 1px solid black;
padding-left: 4px;
padding-right: 2px;
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;
border: 1px solid black;
text-align: center;
padding-left: 2px;
padding-right: 2px;
}
.centre{
text-align: center;
.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

../../components/disk.graph.php
\ No newline at end of file
../../lib/punbb/img/
\ No newline at end of file
htdocs/images/hard_drive.png

110 KiB