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 704 additions and 781 deletions
/****************************************************************/
/* 1. initial settings */
/****************************************************************/
.pun table, .pun div, .pun form, .pun p, .pun h1, .pun h2, .pun h3,
.pun h4, .pun pre, .pun blockquote, .pun ul, .pun ol, .pun li, .pun dl,
.pun dt, .pun dd, .pun th, .pun td, .pun fieldset, .pun img {
margin: 0px;
padding: 0px;
font-weight: normal;
list-style: none;
}
.pun img {border: none}
.pun input, .pun select, .pun textarea, .pun optgroup {margin: 0}
/****************************************************************/
/* 2. structural settings - very important - do not change */
/****************************************************************/
/* 2.1 clearing floats and invisible items */
.pun .clearer, .pun .nosize {
height: 0;
width: 0;
line-height: 0px;
font-size: 0;
overflow: hidden;
}
.pun .clearer, .pun .clearb {clear: both}
.pun .nosize {position: absolute; left: -10000px}
/* 2.2 overflow settings for posts */
div.blockpost div.box, div.postleft, div.postsignature, div.postmsg {overflow: hidden}
/****************************************************************/
/* 3. bug fixes - very important - do not change */
/****************************************************************/
/* 3.1 this attempts to eliminate rounding errors in gecko browsers. */
div>div>div.postfootleft, div>div>div.postfootright {padding-top: 1px; margin-top: -1px}
/* 3.2 this is only visible to ie windows and cures various bugs. do not alter comments */
/* begin iewin fix \*/
* html .inbox, * html .inform, * html .pun, * html .intd, * html .tclcon {height: 1px}
* html .inbox div.postmsg {width: 98%}
/* end of iewin fix */
/****************************************************************/
/* 4. hidden elements */
/****************************************************************/
/* these are hidden in normal display. add comments to make them visible */
#brdfooter h2, #brdstats h2, #brdstats .conl dt, #brdstats .conr dt,
#modcontrols dt, #searchlinks dt, div.postright h3 {
position: absolute;
display: block;
overflow: hidden;
width: 1em;
left: -999em
}
/****************************************************************/
/* 5. box containers and floats */
/****************************************************************/
/* 5.1. setup all left and right content using floats. */
.conr {
float: right;
text-align: right;
clear: right;
width: 40%
}
.conl {
float: left;
width: 55%;
overflow: hidden;
white-space: nowrap
}
label.conl {
width: auto;
overflow: visible;
margin-right: 10px
}
/* 5.2 set up page numbering and posts links */
div.linkst .conl, div.linksb .conl, div.postlinksb .conl {width:18em}
div.linkst .conr, div.linksb .conr, div.postlinksb .conr {width:16em}
form div.linksb .conr {width: 32em}
/* 5.3 keep breadcrumbs from shifting to the right when wrapping */
.linkst ul, linksb ul, .postlinksb ul {margin-left: 18em}
/* 5.4 settings for profile and admin interface.*/
div.block2col {padding-bottom: 1px}
div.block2col div.blockform, div.block2col div.block, #viewprofile dd {margin-left: 14em}
div.blockmenu, #viewprofile dt {
float:left;
width: 13em
}
#profileavatar img {
float: right;
margin-left: 1em
}
#viewprofile dl {float: left; width: 100%; overflow: hidden}
/****************************************************************/
/* 6. table setup */
/****************************************************************/
/* 6.1 table basic setup */
.pun table {width: 100%}
/* 6.2 fixed table setup */
#punindex table, #vf table {table-layout: fixed}
.tcl {text-align: left; width: 50%}
.tc2, .tc3, .tcmod {width: 9%; text-align: center}
.tcr {width: 32%; text-align: left}
#punsearch #vf .tcl, #punmoderate #vf .tcl {width: 41%}
#punsearch #vf .tc2 {width: 18%; text-align: left}
.tcl, .tcr {overflow: hidden}
/* 6.3 other table setup */
#users1 .tcl {width: 40%}
#users1 .tcr {width: 25%}
#users1 .tc2 {width: 25%; text-align: left}
#users1 .tc3 {width: 10%; text-align: center}
#debug .tcr {width: 85%; white-space: normal}
#punindex td.tcr span.byuser {display: block}
/****************************************************************/
/* 7. viewtopic setup */
/****************************************************************/
/* 7.1 this is the basic structure. */
div.postleft, div.postfootleft {
float:left;
width: 18em;
overflow: hidden
}
div.postright, div.postfootright {
border-left-width: 18em;
border-left-style: solid
}
div.postfootright, p.multidelete {text-align: right}
div.blockpost>div>div.inbox {padding-bottom: 1px}
/* 7.3 this is the div which actually contains the post and is inside .postright */
div.postmsg {width:100%}
/* 7.4 these items control overflow and scrolling within posts. */
div.incqbox {width: 100%; overflow: hidden}
div.scrollbox {width: 100%; overflow: auto}
img.postimg {max-width: 100%}
a .postimg {max-width: 100%}
/* 7.5 turn off the poster information column for preview */
#postpreview div.postright {border-left: none}
/* 7.6 create the horizontal line above signatures */
div.postsignature hr {
margin-left: 0px;
width: 200px;
text-align: left;
height: 1px;
border:none
}
/* 7.7 maximum height for search results as posts. position go to post link */
div.searchposts div.postmsg {height: 8em}
div.searchposts dd p {padding-top: 3em}
/* 7.8 class for bbcode [u] */
span.bbu {text-decoration: underline}
/****************************************************************/
/* 8. lists special settings */
/****************************************************************/
/* 8.1 horizontal display of online list, main navigation menu and breadcrumbs */
#onlinelist dd, #onlinelist dt, #brdmenu li, div.linkst li, div.linksb li, div.postlinksb li,
div.postfootright li, ul.bblinks li {
display: inline;
height: 0
}
/* 8.2 turn on square icon for posterror list */
#posterror ul li {list-style: square inside}
/* 8.3 right alignment of descriptions in ordinary member view of other members profiles */
#viewprofile dt {text-align: right}
/****************************************************************/
/* 9. form settings */
/****************************************************************/
/* 9.1 makes textareas and long text inputs shrink with page */
div.txtarea {width: 75%}
div.txtarea textarea, input.longinput {width: 100%}
.pun label {display: block}
#qjump select {width: 50%}
/****************************************************************/
/* 10. help files and misc. */
/****************************************************************/
/* 10.1 put some space between sections of the help file */
#helpfile h2 {margin-top: 12px}
/* 10.2 internal padding */
#helpfile div.box {padding: 10px}
/* 10.3 other templates */
#punredirect div.block, #punmaint div.block {margin: 50px 20% 12px 20%}
#adminconsole .block2 {MARGIN-TOP: 12px}
/*** Admin Main Content ***/
* HTML #adstats DD {HEIGHT: 1%}
#adstats DD {MARGIN-LEFT: 14em; PADDING: 3px; MARGIN-BOTTOM: 5px; LINE-HEIGHT: 1.5em}
#adstats DT {FLOAT:left; WIDTH: 13em; PADDING: 3px; line-height: 1.5em}
#adstats {PADDING: 15px 15px 5px 10px}
#adintro {PADDING: 5px}
#adintro P {PADDING: 10px}
#adstats DL {PADDING: 5px 0 10px 5px}
#adminconsole FIELDSET TD {TEXT-ALIGN: left; PADDING: 4px; WHITE-SPACE: normal}
#adminconsole FIELDSET TH {TEXT-ALIGN: left; PADDING: 4px; WHITE-SPACE: normal}
#adminconsole FIELDSET TD SPAN, #adminconsole FIELDSET TH SPAN {DISPLAY: block; FONT-SIZE: 1em; FONT-WEIGHT: normal}
#adminconsole TH {WIDTH: 15em; FONT-WEIGHT: bold}
#adminconsole INPUT, #adminconsole SELECT, #adminconsole TEXTAREA {MARGIN-BOTTOM: 0; MARGIN-TOP: 0; FONT-WEIGHT: normal}
#adminconsole TABLE.aligntop TH, #adminconsole TABLE.aligntop TD {VERTICAL-ALIGN: top}
#adminconsole TABLE.aligntop TH {PADDING-TOP: 0.7em}
#adminconsole TD, #adminconsole TH {BORDER-STYLE: solid; BORDER-WIDTH: 3px 0px 3px 0px}
#adminconsole P {PADDING-BOTTOM: 6px}
#adminconsole .topspace {PADDING-TOP: 6px}
#adminconsole P.submittop, #adminconsole P.submitend {TEXT-ALIGN: center}
#adminconsole TH.hidehead {COLOR: #f1f1f1}
#adminconsole THEAD TH {PADDING-BOTTOM: 0px}
#adminconsole P.linkactions {FONT-WEIGHT: bold; PADDING-LEFT: 5px}
#adminconsole TH INPUT, #adminconsole DIV.fsetsubmit {MARGIN-TOP: 6px}
/*** Particular table settings ***/
#categoryedit .tcl {WIDTH: 25%}
#censoring .tcl, #censoring .tc2, #ranks .tcl, #ranks .tc2 {WIDTH: 20%}
TABLE#forumperms TH, TABLE#forumperms TD {WHITE-SPACE: normal; WIDTH: auto; TEXT-ALIGN: center}
TABLE#forumperms .atcl {TEXT-ALIGN: left; WIDTH: 15em; WHITE-SPACE: nowrap}
#adminconsole TD.nodefault {BACKGROUND-COLOR: #D59B9B}
/*** User Search Result Tables ***/
#users2 TH, #users2 TH {TEXT-ALIGN: left}
#users2 .tcl, #users2 .tc3, #users2 .tc5 {WIDTH: 15%; TEXT-ALIGN: left}
#users2 .tc2 {WIDTH: 22%; TEXT-ALIGN: left}
#users2 .tc4 {WIDTH: 8%}
#users2 .tc4 {TEXT-ALIGN: center}
#users2 .tcr {WHITE-SPACE: nowrap}
#adminconsole #linkst, #adminconsole #linksb A {FONT-WEIGHT: bold}
/*** Plugins ***/
#exampleplugin .inbox {PADDING: 6px 6px 0px 6px}
<html>
<head>
<title>.</title>
</head>
<body>
.
</body>
</html>
\ No newline at end of file
// 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 @@ ...@@ -3,165 +3,168 @@
-------------------------------------------------- */ -------------------------------------------------- */
.cornerTopLeft { .cornerTopLeft {
height: 100%; height: 100%;
background: url('/images/left-top-corner.png') top left no-repeat; background: url('/images/left-top-corner.png') top left no-repeat;
} }
.cornerTopRight { .cornerTopRight {
height: 100%; height: 100%;
background: url('/images/right-top-corner.png') top right no-repeat; background: url('/images/right-top-corner.png') top right no-repeat;
} }
.cornerBottomLeft { .cornerBottomLeft {
height: 100%; height: 100%;
background: url('/images/left-bottom-corner.png') bottom left no-repeat; background: url('/images/left-bottom-corner.png') bottom left no-repeat;
} }
.cornerBottomRight { .cornerBottomRight {
height: 100%; height: 100%;
background: url('/images/right-bottom-corner.png') bottom right no-repeat; background: url('/images/right-bottom-corner.png') bottom right no-repeat;
} }
/* -------------------------------------------------- /* --------------------------------------------------
Menu Menu
-------------------------------------------------- */ -------------------------------------------------- */
#navigationC ul li a { #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 { #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 { #navigationC ul li a span {
display: block; display: block;
background: url('/images/menu-bottom-right.png') no-repeat bottom right; background: url('/images/menu-bottom-right.png') no-repeat bottom right;
} }
/* -------------------------------------------------- /* --------------------------------------------------
Error box Error box
-------------------------------------------------- */ -------------------------------------------------- */
.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;
} }
.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 url('/images/menu-top-left.png') no-repeat top left;
} }
.errorbar, .navbar, .infobar { .errorbar, .navbar, .infobar {
margin: 0.5em 0 0 0; margin: 0.5em 0 0 0;
font-size: 80%; font-size: 80%;
} }
.errorbar { .errorbar {
background: #ff0000 url('/images/menu-top-left.png') no-repeat top left; background: #ff0000 url('/images/menu-top-left.png') no-repeat top left;
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 url('/images/menu-top-left.png') no-repeat top left;
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 url('/images/menu-top-left.png') no-repeat top left;
} }
.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 { .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 { .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 { .errorbar div div div, .navbar div div div, .infobar div div div {
background: url('/images/menu-bottom-right.png') no-repeat bottom right; background: url('/images/menu-bottom-right.png') no-repeat bottom right;
padding: 0.2em 0.5em; padding: 0.2em 0.5em;
} }
/* -------------------------------------------------- /* --------------------------------------------------
Content box (e.g. for news items) Content box (e.g. for news items)
-------------------------------------------------- */ -------------------------------------------------- */
.box .boxhead { .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 { .box .hollowhead {
background: #ffffff url('/images/border-bottom.png') repeat-x top; background: #ffffff url('/images/border-bottom.png') repeat-x top;
height: 5px; height: 5px;
margin: 0; margin: 0;
padding: 0; padding: 0;
border: none; border: none;
} }
.box .hollowhead div { .box .hollowhead div {
background: url('/images/border-top-left.png') no-repeat top left; background: url('/images/border-top-left.png') no-repeat top left;
height: 100%; height: 100%;
} }
.box .hollowhead div div { .box .hollowhead div div {
background: url('/images/border-top-right.png') no-repeat top right; background: url('/images/border-top-right.png') no-repeat top right;
height: 100%; height: 100%;
} }
.box .boxhead h2, .box .boxhead h3, .error .errorhead h3 { .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 { .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 { .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 { .box .hollowfoot {
background: #ffffff url('/images/border-bottom.png') repeat-x bottom; background: #ffffff url('/images/border-bottom.png') repeat-x bottom;
height: 5px; height: 5px;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.box .hollowfoot div { .box .hollowfoot div {
background: url('/images/border-bottom-left.png') no-repeat bottom left; background: url('/images/border-bottom-left.png') no-repeat bottom left;
height: 100%; height: 100%;
} }
.box .hollowfoot div div { .box .hollowfoot div div {
background: url('/images/border-bottom-right.png') no-repeat bottom right; background: url('/images/border-bottom-right.png') no-repeat bottom right;
height: 100%; height: 100%;
} }
/* -------------------------------------------------- /* --------------------------------------------------
Error box Error box
-------------------------------------------------- */ -------------------------------------------------- */
.error .errorhead { .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 { 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 { form {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
#navigationC ul li { #navigationC ul li {
line-height: 0; line-height: 0;
} }
#loginForm input.button { #loginForm input.button {
font-size: 80%; font-size: 80%;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -16,11 +16,12 @@ form { ...@@ -16,11 +16,12 @@ form {
-------------------------------------------------- */ -------------------------------------------------- */
ol.roman { ol.roman {
list-style-type: i; 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; } .date {
.time {background-color: #e0ffe0; } background-color: #e0e0ff;
.user {background-color: #ffe0e0; } }
.taglist {background-color: #ffffe0; }
.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,17 +35,18 @@ a:hover { ...@@ -35,17 +35,18 @@ a:hover {
/* -------------------------------------------------- /* --------------------------------------------------
Page corners Page corners
-------------------------------------------------- */ -------------------------------------------------- */
#branding, #brandingC { /*#branding, #brandingC {
border-top-left-radius: 15px; border-top-left-radius: 15px;
border-top-right-radius: 15px; border-top-right-radius: 15px;
-moz-border-radius-topleft: 15px; -moz-border-radius-topleft: 15px;
-moz-border-radius-topright: 15px; -moz-border-radius-topright: 15px;
} }*/
#footer { #footer {
border-bottom-left-radius: 15px; border-bottom-left-radius: 15px;
border-bottom-right-radius: 15px; border-bottom-right-radius: 15px;
-moz-border-radius-bottomleft: 15px; -moz-border-radius-bottomleft: 15px;
-moz-border-radius-bottomright: 15px; -moz-border-radius-bottomright: 15px;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -53,29 +54,29 @@ a:hover { ...@@ -53,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;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -83,23 +84,23 @@ a:hover { ...@@ -83,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;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -107,39 +108,39 @@ a:hover { ...@@ -107,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%;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -147,82 +148,81 @@ a:hover { ...@@ -147,82 +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; background: #e76808;
border-top-right-radius: 7px; border-top-right-radius: 7px;
border-bottom-right-radius: 7px; border-bottom-right-radius: 7px;
-moz-border-radius-topright: 7px; -moz-border-radius-topright: 7px;
-moz-border-radius-bottomright: 7px; -moz-border-radius-bottomright: 7px;
padding-left: 1em; padding-left: 1em;
margin-bottom: 2px; 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; border-bottom-right-radius: 0;
-moz-border-radius-bottomright: 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;
border-top-right-radius: 0; border-top-right-radius: 0;
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
-moz-border-radius-topright: 0; -moz-border-radius-topright: 0;
-moz-border-radius-bottomright: 0; -moz-border-radius-bottomright: 0;
color: #d45e08; 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 {
#navigationC ul ul li#lastsub a { border-bottom-right-radius: 7px;
border-bottom-right-radius: 7px; -moz-border-radius-bottomright: 7px;
-moz-border-radius-bottomright: 7px;
} }
#navigationC ul li#lastsub a { #navigationC ul li.lastsub a {
display: block; display: block;
border-bottom-right-radius: 7px; border-bottom-right-radius: 7px;
-moz-border-radius-bottomright: 7px; -moz-border-radius-bottomright: 7px;
} }
/* -------------------------------------------------- /* --------------------------------------------------
Boxes Boxes
-------------------------------------------------- */ -------------------------------------------------- */
div.cbb { div.cbb {
border-radius: 12px; border-radius: 12px;
-moz-border-radius: 12px; -moz-border-radius: 12px;
-webkit-border-radius: 12px; -webkit-border-radius: 12px;
padding: 1em; padding: 1em;
box-shadow: 3px 3px 5px #777; box-shadow: 3px 3px 5px #777;
-moz-box-shadow: 3px 3px 5px #777; -moz-box-shadow: 3px 3px 5px #777;
-webkit-box-shadow: 3px 3px 5px #777; -webkit-box-shadow: 3px 3px 5px #777;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -230,20 +230,20 @@ div.cbb { ...@@ -230,20 +230,20 @@ div.cbb {
-------------------------------------------------- */ -------------------------------------------------- */
#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;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -251,29 +251,28 @@ div.cbb { ...@@ -251,29 +251,28 @@ div.cbb {
-------------------------------------------------- */ -------------------------------------------------- */
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;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -281,63 +280,63 @@ ul#valid { ...@@ -281,63 +280,63 @@ ul#valid {
-------------------------------------------------- */ -------------------------------------------------- */
.box { .box {
background: #ffffff; background: #ffffff;
border-radius: 7px; border-radius: 7px;
-moz-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; background: #e76808;
border-top-left-radius: 7px; border-top-left-radius: 7px;
border-top-right-radius: 7px; border-top-right-radius: 7px;
-moz-border-radius-topleft: 7px; -moz-border-radius-topleft: 7px;
-moz-border-radius-topright: 7px; -moz-border-radius-topright: 7px;
} }
.box .hollowhead { .box .hollowhead {
background: #ffffff; background: #ffffff;
border-top: 2px solid #e76808; border-top: 2px solid #e76808;
border-left: 2px solid #e76808; border-left: 2px solid #e76808;
border-right: 2px solid #e76808; border-right: 2px solid #e76808;
border-top-left-radius: 7px; border-top-left-radius: 7px;
border-top-right-radius: 7px; border-top-right-radius: 7px;
-moz-border-radius-topleft: 7px; -moz-border-radius-topleft: 7px;
-moz-border-radius-topright: 7px; -moz-border-radius-topright: 7px;
height: 5px; height: 5px;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.box .boxfoot { .box .boxfoot {
background: #e76808; background: #e76808;
border-bottom-left-radius: 7px; border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px; border-bottom-right-radius: 7px;
-moz-border-radius-bottomleft: 7px; -moz-border-radius-bottomleft: 7px;
-moz-border-radius-bottomright: 7px; -moz-border-radius-bottomright: 7px;
} }
.box .hollowfoot { .box .hollowfoot {
background: #ffffff; background: #ffffff;
height: 5px; height: 5px;
margin: 0; margin: 0;
padding: 0; padding: 0;
border-bottom: 2px solid #e76808; border-bottom: 2px solid #e76808;
border-left: 2px solid #e76808; border-left: 2px solid #e76808;
border-right: 2px solid #e76808; border-right: 2px solid #e76808;
border-bottom-left-radius: 7px; border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px; border-bottom-right-radius: 7px;
-moz-border-radius-bottomleft: 7px; -moz-border-radius-bottomleft: 7px;
-moz-border-radius-bottomright: 7px; -moz-border-radius-bottomright: 7px;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -345,68 +344,68 @@ ul#valid { ...@@ -345,68 +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-left-radius: 7px;
border-bottom-right-radius: 7px; border-bottom-right-radius: 7px;
-moz-border-radius-bottomleft: 7px; -moz-border-radius-bottomleft: 7px;
-moz-border-radius-bottomright: 7px; -moz-border-radius-bottomright: 7px;
padding-bottom: 0.5em; padding-bottom: 0.5em;
} }
.error .errorhead h3 { .error .errorhead h3 {
color: #ffffff; color: #ffffff;
} }
.error .errorhead { .error .errorhead {
background: #ff0000; background: #ff0000;
border-top-left-radius: 7px; border-top-left-radius: 7px;
border-top-right-radius: 7px; border-top-right-radius: 7px;
-moz-border-radius-topleft: 7px; -moz-border-radius-topleft: 7px;
-moz-border-radius-topright: 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; border-radius: 7px;
-moz-border-radius: 7px; -moz-border-radius: 7px;
padding: 0.2em 0.5em; padding: 0.2em 0.5em;
} }
.errorbar { .errorbar {
background: #ff0000; background: #ff0000;
color: #ffffff; color: #ffffff;
margin-right: 0.5em; margin-right: 0.5em;
} }
.infobar { .infobar {
background: #e76808; 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; background: #e76808;
} }
.navbar a { .navbar a {
color: #ffc62b; color: #ffc62b;
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -414,9 +413,9 @@ ul#valid { ...@@ -414,9 +413,9 @@ ul#valid {
-------------------------------------------------- */ -------------------------------------------------- */
.dialog { .dialog {
text-align: center; text-align: center;
margin: auto; margin: auto;
width: 20em; width: 20em;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -424,16 +423,16 @@ ul#valid { ...@@ -424,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;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -441,20 +440,24 @@ table.border a:link { ...@@ -441,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;
} }
/* -------------------------------------------------- /* --------------------------------------------------
...@@ -470,5 +473,5 @@ table.border a:link { ...@@ -470,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