mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-05-19 08:40:21 -07:00
update this fork with the main one
This commit is contained in:
commit
c0693ebe6c
4
.gitignore
vendored
4
.gitignore
vendored
@ -6,3 +6,7 @@ xkeeper/
|
||||
version.txt
|
||||
lib/config.php
|
||||
lib/firewall.php
|
||||
.htaccess
|
||||
favicon.gif
|
||||
robots.txt
|
||||
google*.html
|
||||
|
@ -1,7 +0,0 @@
|
||||
|
||||
ErrorDocument 403 /errors/403.html
|
||||
ErrorDocument 404 /errors/404.html
|
||||
ErrorDocument 500 /errors/500.html
|
||||
|
||||
Order Allow,Deny
|
||||
Allow from all
|
40
css/base.css
40
css/base.css
@ -18,16 +18,17 @@ img { border:none; }
|
||||
.center {text-align:center}
|
||||
.right {text-align:right}
|
||||
|
||||
/* Make code blocks scroll instead of stretching the page */
|
||||
code {
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
white-space: pre;
|
||||
display: block;
|
||||
/* Make code blocks slightly less likely to go haywire, since apparently
|
||||
"don't stretch the entire gat dang page" is not possible in HTML, lol */
|
||||
.code pre {
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
/* "Fix" for auto-generated <br> tags in <code> and <pre> blocks */
|
||||
code br, pre br { display: none; }
|
||||
/* "Fix" for auto-generated <br> tags in <pre> blocks */
|
||||
pre br { display: none; }
|
||||
|
||||
/* Make radio buttons look not terrible */
|
||||
input[type=radio] { color: black; background: white; }
|
||||
@ -54,3 +55,26 @@ input[type=radio] { color: black; background: white; }
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.spoiler-label:after { content: 'Spoiler'; color: white; background: black; font-style: italic; font-weight: bold; margin: 0 .2em; padding: 0.1em 0.4em; font-size: 80%; vertical-align: 10%; }
|
||||
.spoiler > input[type="checkbox"] { display: none; }
|
||||
.spoiler > .hidden { background: rgba(128, 128, 128, .5); }
|
||||
.spoiler > input[type="checkbox"]:checked + .hidden {
|
||||
background: unset;
|
||||
}
|
||||
|
||||
.spoiler-b > .spoiler-label:after { width: 100%; display: block; margin: 0; vertical-align: unset; padding: 0.25em 1em; box-sizing: border-box; content: 'Spoiler content - click to show/hide'; }
|
||||
|
||||
.spoiler-label:hover:after { background: #444; }
|
||||
.spoiler-label:hover + input[type="checkbox"]:checked ~ .hidden { background: rgba(128, 128, 128, .5); }
|
||||
|
||||
.spoiler > .hidden > * {
|
||||
visibility: hidden;
|
||||
}
|
||||
.spoiler > input[type="checkbox"]:checked + .hidden > * {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.imgtag { max-width: 100%; }
|
||||
|
||||
.post { position: relative; }
|
||||
|
@ -25,9 +25,21 @@ div.lastpost { font-size: 90%; text-align: right !important; }
|
||||
.center, center { text-align: center; }
|
||||
.right { text-align: right; }
|
||||
|
||||
code { overflow: auto; width: 100%; white-space: pre; display: block; }
|
||||
code br { display: none; }
|
||||
/* Make code blocks slightly less likely to go haywire, since apparently
|
||||
"don't stretch the entire gat dang page" is not possible in HTML, lol */
|
||||
.code pre {
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
/* "Fix" for auto-generated <br> tags in <pre> blocks */
|
||||
pre br { display: none; }
|
||||
|
||||
.pstspl1 {opacity:0;}
|
||||
.pstspl1:hover {opacity:1;}
|
||||
.pstspl2 {background:#000;color:#FFF;display:block;}
|
||||
|
||||
.imgtag { max-width: 100%; }
|
||||
.post { position: relative; }
|
||||
|
@ -30,9 +30,9 @@
|
||||
$checked5[$loguser['pagestyle']]='checked=1';
|
||||
$checked6[$loguser['pollstyle']]='checked=1';
|
||||
$sexlist="
|
||||
$radio=sex value=0 $checked1[0]> Male
|
||||
$radio=sex value=1 $checked1[1]> Female
|
||||
$radio=sex value=2 $checked1[2]> N/A";
|
||||
$radio=sex value=0 $checked1[0]> <strong style='color: #". getnamecolor(0, $loguser['powerlevel'], false) ."'>Male</strong>
|
||||
$radio=sex value=1 $checked1[1]> <strong style='color: #". getnamecolor(1, $loguser['powerlevel'], false) ."'>Female</strong>
|
||||
$radio=sex value=2 $checked1[2]> <strong style='color: #". getnamecolor(2, $loguser['powerlevel'], false) ."'>Other / N/A</strong>";
|
||||
if ($loguser['sex'] > 2)
|
||||
$sexlist .= "$radio=sex value=$loguser[sex] checked style=\"display:none;\">";
|
||||
|
||||
@ -128,8 +128,10 @@
|
||||
$tccell2l>$txta=signature ROWS=8 COLS=60 style='width: 100%;'>". htmlspecialchars($loguser['signature']) ."</TEXTAREA><tr>
|
||||
|
||||
$tccellh colspan='2'>Personal information</td><tr>
|
||||
$tccell1><b>Gender:$descbr This determines your name color (for now).</td>
|
||||
$tccell1><b>Gender/Name color:$descbr This mostly determines your name color.</td>
|
||||
$tccell2l>$sexlist<tr>
|
||||
$tccell1><b>Pronouns:$descbr You can put your pronouns here (e.g. they/them, he/him, she/her, etc).</td>
|
||||
$tccell2l>$inpt=pronouns VALUE=\"". htmlspecialchars($loguser['pronouns']) ."\" SIZE=40 MAXLENGTH=50><tr>
|
||||
<!-- $tccell1><b>Also known as:$descbr If you go by an alternate alias (or are constantly subjected to name changes), enter it here. It will be displayed in your profile if it doesn't match your current username.</td>
|
||||
$tccell2l>$inpt=aka VALUE=\"$loguser[aka]\" SIZE=25 MAXLENGTH=25><tr> -->
|
||||
$tccell1><b>Real name:$descbr Your real name (you can leave this blank).</td>
|
||||
@ -192,6 +194,14 @@
|
||||
";
|
||||
}
|
||||
if($action=='saveprofile'){
|
||||
|
||||
if (stripos($_POST['pronouns'], "helicopter") !== false) {
|
||||
// A wise guy, ey?
|
||||
// Real original, asshole.
|
||||
header("Location: https://www.youtube.com/embed/0WrFZAf6EEE?autoplay=1");
|
||||
die();
|
||||
}
|
||||
|
||||
if ($eddateformat == $defaultdateformat) $eddateformat = '';
|
||||
if ($eddateshort == $defaultdateshort) $eddateshort = '';
|
||||
|
||||
@ -272,9 +282,9 @@
|
||||
`threadsperpage` = '$threadsperpage',
|
||||
`viewsig` = '$viewsig',
|
||||
`layout` = '$tlayout',
|
||||
`moodurl` = '". $_POST['moodurl'] ."',".
|
||||
// `posttool` = '$posttool',
|
||||
"`imood` = '$imood',
|
||||
`moodurl` = '". $_POST['moodurl'] ."',
|
||||
`imood` = '$imood',
|
||||
`pronouns` = '{$_POST['pronouns']}',
|
||||
`signsep` = '$signsep',
|
||||
`pagestyle` = '$pagestyle',
|
||||
`pollstyle` = '$pollstyle'
|
||||
|
10
edituser.php
10
edituser.php
@ -76,7 +76,7 @@
|
||||
}
|
||||
$rsetlist="<select name=useranks>$rsetlist</select>";
|
||||
|
||||
if(!$_POST[action] and $log){
|
||||
if(!$_POST['action'] and $log){
|
||||
$lft="<tr>$tccell1><b>";
|
||||
$rgt=":</td>$tccell2l>";
|
||||
$hlft="<tr>$tccellh>";
|
||||
@ -130,15 +130,16 @@
|
||||
$lft User picture $rgt$inpt=picture VALUE=\"$user[picture]\" SIZE=60 MAXLENGTH=100>
|
||||
$lft Mood avatar $rgt$inpt=moodurl VALUE=\"$user[moodurl]\" SIZE=60 MAXLENGTH=100>
|
||||
$lft Post background $rgt$inpt=postbg VALUE=\"$user[postbg]\" SIZE=60 MAXLENGTH=100>
|
||||
$lft Post header $rgt$txta=postheader ROWS=5 COLS=60>". htmlspecialchars($user[postheader]) ."</TEXTAREA>
|
||||
$lft Signature $rgt$txta=signature ROWS=5 COLS=60>". htmlspecialchars($user[signature]) ."</TEXTAREA>
|
||||
$lft Post header $rgt$txta=postheader ROWS=5 COLS=60>". htmlspecialchars($user['postheader']) ."</TEXTAREA>
|
||||
$lft Signature $rgt$txta=signature ROWS=5 COLS=60>". htmlspecialchars($user['signature']) ."</TEXTAREA>
|
||||
|
||||
$hlft Personal information $hrgt
|
||||
$lft Sex $rgt$sexlist
|
||||
$lft Pronouns $rgt$inpt=pronouns VALUE=\"$user[pronouns]\" SIZE=40 MAXLENGTH=50>
|
||||
$lft Real name $rgt$inpt=realname VALUE=\"$user[realname]\" SIZE=40 MAXLENGTH=60>
|
||||
$lft Location $rgt$inpt=location VALUE=\"$user[location]\" SIZE=40 MAXLENGTH=60>
|
||||
$lft Birthday $rgt Month: $inpt=bmonth SIZE=2 MAXLENGTH=2 VALUE=$month> Day: $inpt=bday SIZE=2 MAXLENGTH=2 VALUE=$day> Year: $inpt=byear SIZE=4 MAXLENGTH=4 VALUE=$year>
|
||||
$lft Bio $rgt$txta=bio ROWS=5 COLS=60>". htmlspecialchars($user[bio]) ."</TEXTAREA>
|
||||
$lft Bio $rgt$txta=bio ROWS=5 COLS=60>". htmlspecialchars($user['bio']) ."</TEXTAREA>
|
||||
|
||||
$hlft Online services $hrgt
|
||||
$lft Email address $rgt $inpt=email VALUE=\"$user[email]\" SIZE=60 MAXLENGTH=60>
|
||||
@ -229,6 +230,7 @@
|
||||
"`moodurl` = '$moodurl',
|
||||
`profile_locked` = '$profile_locked',
|
||||
`editing_locked` = '$editing_locked',
|
||||
`pronouns` = '$pronouns',
|
||||
`titleoption` = '$titleoption'
|
||||
WHERE `id` = '$userid'") or print mysql_error();
|
||||
|
||||
|
378
faq.php
378
faq.php
@ -17,65 +17,266 @@
|
||||
|
||||
} else {
|
||||
|
||||
$faq .= faqformat("darules", "The Rules", "
|
||||
Our rules are really <i>really simple</i>, if you take the time to learn them. And you <i>should!</i>
|
||||
<ol>
|
||||
<li><b>Don't be a dick.</b> If you don't have something constructive to say, <i>don't say it!</i> This is the big one.
|
||||
<li><b>This forum's official language is English</b>. You're welcome to use other languages (if you at least post a machine translation), though. 'IM' or 'l33t' speak (such as 'u r dum lolol') isn't tolerated.
|
||||
<li><b>Be careful about bumping old threads.</b> You should only do so if you're contributing something major and new to the topic, doubly so for general discussions. If it's a hack thread, it's usually OK.
|
||||
<li><b>Be careful when double posting.</b> Replying within minutes asking if anybody has read your post is a terrible idea. Double posting after a day or two <i>with something new or updated</i> is fine, though.
|
||||
<li><b>Let the staff handle things.</b> Don't try to do our jobs for us — we'll handle problem users.
|
||||
<li><b>Don't post NSFW content without tagging it!</b> Not doing so is an instant ban. In general: <i>Think before you link.</i>
|
||||
<li><b>The staff have the final say in everything.</b> If we tell you to do something, do it. <b>No exceptions.</b>
|
||||
</ol>
|
||||
And some rules that are <i>mostly</i> specific to the ROM Hacking fora but still a good idea to follow everywhere else:
|
||||
<ol>
|
||||
<li><b>Read the stickies.</b> They're there for a reason.</li>
|
||||
<li><b>No ROM links/ROM requests!</b> If you need to upload a hack, use a patch; either IPS, UPS, or any of the other formats.</li>
|
||||
<li><b>Keep things in their forum.</b> Help/Suggestions is <i>not</i> for your hack!</li>
|
||||
</ol>
|
||||
<br>As for the punishments:
|
||||
<ol>
|
||||
<li>A warning.
|
||||
<li>A short ban to drive the point home.
|
||||
<li>Permanent ban.
|
||||
</ol>
|
||||
<br>These punishments are a guideline and may be disregarded entirely for particularly egregious screwups.
|
||||
|
||||
$faq .= faqformat("aboot", "About Jul, the community", "
|
||||
Jul itself is a community made up of people who predominantly like to just hang around friendlies and talk about whatever, though we also like games and occasionally anime/other things.
|
||||
<br>
|
||||
<br>We're often pretty relaxed, but constantly breaking the rules will get you banned fast.
|
||||
<br>It is a community that has gone on for over 10 years, founded early July 2007. It is based off of another (defunct) community that started in early 2001.
|
||||
<br>
|
||||
<br>If you have any questions, feel free to ask <a href='memberlist.php?pow=3'>one of the admins</a> for help.
|
||||
<!--
|
||||
<center><img src='http://i55.photobucket.com/albums/g138/shalpp/1262546103597.jpg' title='NO. FUN. ALLOWED.'></center>
|
||||
-->
|
||||
<br>While we're an old group, we always welcome new folks. Feel free to drop in and say hello.
|
||||
");
|
||||
|
||||
|
||||
$faq .= faqformat("aboot", "About Jul", "
|
||||
Jul itself is a community made up of people who predominantly like to just hang around friendlies and talk about whatever, though we also like games and occasionally anime/other things.
|
||||
$faq .= faqformat("aboot", "About the forum", "
|
||||
This forum is based off of 2001-era custom software, and is pretty different from most other forums on the internet. <strong>There are no push notifications, no e-mail reminders, no 'we miss you' nags, no popups, no ads, no apps, and no tracking.</strong> What you see is exactly what you get.
|
||||
<br>
|
||||
<br>That being said, here is a quote from a <a href='https://www.doomworld.com/cacowards/2018'>different site</a> that explains us well:
|
||||
<blockquote>I think it is important in this moment to restate that [this site] is an independently owned and operated website; it is intended as a long term, not-for-profit informational and historical resource; we are dedicated to treating all people with respect; it will never be sunsetted or deprecated or paywalled; and we do not vacuum up your personal information, much less profit from it. If you despair for the future of the Internet, consider that [this site], and thousands of small websites just like it, continue to exist and thrive in the spirit of discovery and camaraderie in which the Internet was first conceived.</blockquote>
|
||||
");
|
||||
|
||||
$faq .= faqformat("newbies", "I'm new here. Where should I start?", "
|
||||
Always, by reading the rules... but since you're here, it's <i>probably</i> a safe bet that you've already done that. (If you haven't, <i>now is a great time.</i>)
|
||||
<br>
|
||||
<br>Once you've done that, <a href='register.php'>sign up for an account</a> (or <a href='login.php'>log in</a> if you've already made one). It's simple and very easy to do. After you're registered, you're more than welcome to just <a href='newthread.php?id=1'>jump in and say hi</a>. We're friendly people and won't bite (usually). Let us know about yourself, how you found us, or whatever's on your mind — or just jump in and start contributing to discussions.
|
||||
<br>Once you've done that, <a href='register.php'>sign up for an account</a> (or <a href='login.php'>log in</a> if you've already made one). It's simple and very easy to do. After you're registered, you're more than welcome to just <a href='forum.php?id=1'>jump in and say hi</a> by posting in the Introductions thread, or even making your own. We're friendly people and won't bite (usually). Let us know about yourself, how you found us, or whatever's on your mind — or just jump in and start contributing to discussions.
|
||||
");
|
||||
|
||||
/*
|
||||
$faq .= faqformat("n00b", "I have this <img src='http://xkeeper.net/img/noobsticker2-4.png' alt='n00b' title='TKEP regulars know this one' align='absmiddle' style='margin-top: -4px; margin-bottom: -4px;'> sticker on my post. What's up with that?", "
|
||||
The n00b sticker is our way of telling you that your post was pretty awful. Usually it's for one of the following reasons:
|
||||
$faq .= faqformat("darules", "The Rules", "
|
||||
Our rules are really <em>really simple</em>:
|
||||
<ol>
|
||||
<li>Complete disregard for our rules. If you show that you really can't even be bothered to read the small number of rules we have here, you're going to wear your welcome out <em>very</em> fast.</li>
|
||||
<li>Flagrant lack of basic knowledge. For example, if there's a sticky saying 'don't make a new thread for this' and you make a new thread for it, that's a big sign that you don't read the rules.</li>
|
||||
<li>Using dumb memes or bandwagoning. Everybody loves a laugh every now and then. Nobody loves it being rammed down their throat every five seconds.</li>
|
||||
<li>Terrible spelling or grammar. This is beyond the occasional misspelling (even the best of us make mistakes), but if you make a post loaded with \"Your a looser\", well...</li>
|
||||
<li>Your post is just mind-bogglingly terrible or groan-worthy.</li>
|
||||
<li><strong>Don't be a jerk.</strong> If you don't have something constructive to say, <em>don't say it!</em>
|
||||
<li><strong>No slurs, hate speech, or homo-/trans-phobia.</strong> If you can't respect your fellow posters, you aren't welcome here.
|
||||
<li><strong>Post legibly</strong>. Keep it readable — you don't have to be perfect, but be understandable and don't post like this is an AOL chatroom.
|
||||
<li><strong>Don't spam.</strong> Posting over and over without adding to a conversation is annoying.
|
||||
<li><strong>Don't get in fights.</strong> If you're having trouble with another user, contact an administrator.
|
||||
<li><strong>No illegal content.</strong> Don't post stuff that would get you (or us) in legal trouble.
|
||||
</ol>
|
||||
The n00b sticker is something of a mark of shame. Usually it's an early warning indicator before we start taking issues with your actions on a broader scale, so if you see them, you should probably shape up. Note, however, that they can just as similarly be used as a joke.
|
||||
However, <strong>the admins have the final say in everything!</strong> We can ban you for any reason, or no reason at all.
|
||||
<br>
|
||||
<br><strong>Remember:</strong> The fastest way to get yourself stamped is to make a big deal out of it.
|
||||
<br>Breaking the rules will resort in whatever punishment we feel is worthy, from giving you a warning to banning you forever. Posting here is NOT a right.
|
||||
<br>
|
||||
<br>If you have any questions, feel free to ask <a href='memberlist.php?pow=3'>one of the admins</a> for help.
|
||||
");
|
||||
*/
|
||||
|
||||
$faq .= faqformat("layoutlowdown", "What are post layouts?", "
|
||||
Post layouts are like signatures on other forums, but on steroids. Rather than just some text, an image, and maybe a link, post layouts allow you to style your <em>entire post</em>! You too can turn your wonderful contributions into a GeoCities™-esque abomination.
|
||||
<br>
|
||||
<br>You can customize your layout with fun facts about your statistics by using &tags&, outlined below.
|
||||
<br>
|
||||
<br>You can enable or disable others' post layouts in your <a href='editprofile.php'>profile settings</a>.
|
||||
<br>
|
||||
<br>If you make a post layout that interferes with the board's interface, is particularly annoying, is hard-to-read, or is just awful, it will be removed. If you continue to do this, your ability to use them will be revoked. Malfunctioning layouts (due to broken images or CSS) may also be removed.
|
||||
");
|
||||
|
||||
$faq .= faqformat("tags", "What are &tags&?", "
|
||||
These are variables that can be used in your post header or signature. Once you post, they'll get replaced with a value depending on the tag used.
|
||||
<br>
|
||||
<br>
|
||||
<table class='table font' cellspacing='0' style='width: auto; margin: 0 auto;'>
|
||||
<tr>
|
||||
<td class='tbl tdbgh center'>Tag</td>
|
||||
<td class='tbl tdbgh center'>Description</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>/me</td>
|
||||
<td class='tbl tdbg1'>Your username (must have a space after it), like IRC.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&date&</td>
|
||||
<td class='tbl tdbg1'>The current date</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&numdays&</td>
|
||||
<td class='tbl tdbg1'>Number of days since you registered</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&numposts&</td>
|
||||
<td class='tbl tdbg1'>How many posts you've made</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&rank&</td>
|
||||
<td class='tbl tdbg1'>Current rank, according to your amount of posts</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&postrank&</td>
|
||||
<td class='tbl tdbg1'>Your 'ranking', by post count, among all members</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&5000&</td>
|
||||
<td class='tbl tdbg1'>Posts left until you have 5,000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&10000&</td>
|
||||
<td class='tbl tdbg1'>Posts left until you have 10,000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&20000&</td>
|
||||
<td class='tbl tdbg1'>Posts left until you have 20,000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&30000&</td>
|
||||
<td class='tbl tdbg1'>Posts left until you have 30,000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&level&</td>
|
||||
<td class='tbl tdbg1'>Your current level.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&exp&</td>
|
||||
<td class='tbl tdbg1'>Your current EXP.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&expgain&</td>
|
||||
<td class='tbl tdbg1'>How much EXP you gain per post.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&expgaintime&</td>
|
||||
<td class='tbl tdbg1'>How many seconds it takes to get 1 EXP naturally.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&expdone&</td>
|
||||
<td class='tbl tdbg1'>How much EXP you've done in your current level.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&expdone1k&</td>
|
||||
<td class='tbl tdbg1'>The above, divided by 1,000.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&expdone10k&</td>
|
||||
<td class='tbl tdbg1'>The above, divided by 10,000.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&expnext&</td>
|
||||
<td class='tbl tdbg1'>How much EXP you have left until the next level.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&expnext1k&</td>
|
||||
<td class='tbl tdbg1'>The above, divided by 1,000.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&expnext10k&</td>
|
||||
<td class='tbl tdbg1'>The above, divided by 10,000.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&exppct&</td>
|
||||
<td class='tbl tdbg1'>How much EXP you've done in your current level, in percent.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&exppct2&</td>
|
||||
<td class='tbl tdbg1'>How much EXP you have left in your current level, in percent.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&lvlexp&</td>
|
||||
<td class='tbl tdbg1'>Cumulative EXP for your next level.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>&lvllen&</td>
|
||||
<td class='tbl tdbg1'>EXP needed to go through your current level.</td>
|
||||
</tr>
|
||||
</table>
|
||||
For an explanation of how the Level and EXP tags work, hover over the highlighted parts below. (The percentages are useful when creating 'EXP bars', as you can use them as a width value.)
|
||||
<br>
|
||||
<br>Level <abbr title='&level&'>10</abbr> — <abbr title='&exp&'>1040</abbr> EXP (<abbr title='&expgain&'>20</abbr> per post, 1 EXP per <abbr title='&expgaintime&'>300</abbr> sec.)
|
||||
<br>(Next level at <abbr title='&lvlexp&'>1200</abbr> in <abbr title='&expnext&'>160</abbr> EXP. (<abbr title='&expdone&'>40</abbr>/<abbr title='&lvllen&'>200</abbr> EXP) — <abbr title='&exppct&'>20</abbr>% done, <abbr title='&exppct2&'>80</abbr>% left
|
||||
");
|
||||
|
||||
$faq .= faqformat("bbcode", "What is BBcode?", doreplace2("
|
||||
BBcode is a simple syntax which you can use on your posts to format the text or add images and videos. Below is a list of the supported tags:
|
||||
<br>
|
||||
<br>
|
||||
<table class='table font' cellspacing='0' style='width: auto; margin: 0 auto;'>
|
||||
<tr>
|
||||
<td class='tbl tdbgh center' style='width: 50%;'>BBcode</th>
|
||||
<td class='tbl tdbgh center' style='width: 50%;'>Result</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[b]Bolded text.[/b]</td>
|
||||
<td class='tbl tdbg1'>[b]Bolded text.[/b]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[i]Italicized text.[/i]</td>
|
||||
<td class='tbl tdbg1'>[i]Italicized text.[/i]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[u]Underlined text.[/u]</td>
|
||||
<td class='tbl tdbg1'>[u]Underlined text.[/u]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[s]Strikethrough text.[/s]</td>
|
||||
<td class='tbl tdbg1'>[s]Strikethrough text.[/s]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[abbr<!-- -->=Basic Input/Output System]BIOS[/abbr]</td>
|
||||
<td class='tbl tdbg1'>[abbr=Basic Input/Output System]BIOS[/abbr]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[sp<!-- -->=terrible]Great[/sp] software.</td>
|
||||
<td class='tbl tdbg1'>[sp=terrible]Great[/sp] software.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[url]http://example.com/[/url]</td>
|
||||
<td class='tbl tdbg1'>[url]http://example.com/[/url]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[url<!-- -->=http://example.com/]Link text here.[/url]</td>
|
||||
<td class='tbl tdbg1'>[url=http://example.com/]Link text here.[/url]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[img]https://jul.rustedlogic.net/images/smilies/toot.png[/img]</td>
|
||||
<td class='tbl tdbg1'>[img]https://jul.rustedlogic.net/images/smilies/toot.png[/img]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[red]Red color.[/color]</td>
|
||||
<td class='tbl tdbg1'>[red]Red color.[/color]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[green]Green color.[/color]</td>
|
||||
<td class='tbl tdbg1'>[green]Green color.[/color]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[blue]Blue color.[/color]</td>
|
||||
<td class='tbl tdbg1'>[blue]Blue color.[/color]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[orange]Orange color.[/color]</td>
|
||||
<td class='tbl tdbg1'>[orange]Orange color.[/color]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[yellow]Yellow color.[/color]</td>
|
||||
<td class='tbl tdbg1'>[yellow]Yellow color.[/color]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[pink]Pink color.[/color]</td>
|
||||
<td class='tbl tdbg1'>[pink]Pink color.[/color]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[white]White color.[/color]</td>
|
||||
<td class='tbl tdbg1'>[white]White color.[/color]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[black]Black color.[/color] (bad idea)</td>
|
||||
<td class='tbl tdbg1'>[black]Black color.[/color]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[quote<!-- -->=user]Quoted text.[/quote]</td>
|
||||
<td class='tbl tdbg1'>[quote=user]Quoted text.[/quote]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[code]Sample <b>code</b>.[/code]</td>
|
||||
<td class='tbl tdbg1'>[code]Sample <b>code</b>.[/code]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[spoiler]Spoiler text.[/spoiler]</td>
|
||||
<td class='tbl tdbg1'>[spoiler]Spoiler text.[/spoiler]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[spoileri]Spoiler text.[/spoileri]</td>
|
||||
<td class='tbl tdbg1'>[spoileri]Spoiler text.[/spoileri]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2'>[youtube]BrQn-O_zFRc[/youtube] (video ID)</td>
|
||||
<td class='tbl tdbg1'>A YouTube embed.</td>
|
||||
</tr>
|
||||
</table>
|
||||
"));
|
||||
|
||||
$faq .= faqformat("halp", "I've got a question and I need some help, or I found a bug somewhere.", "
|
||||
<a href='forum.php?id=39'>Post it in the forum here</a>, or alternatively just message the <a href='sendprivate.php?userid=1'>main administrator</a>. If it's a security bug in the code, we <i>really</i> recommend the latter.
|
||||
@ -87,30 +288,17 @@
|
||||
<br>On the other hand, if it's permanent, you can always try to show us you've changed and request a <i>second chance</i>... but any further antics after that will usually get your account <b>deleted</b>.
|
||||
");
|
||||
|
||||
$faq .= faqformat("cantpass", "I've lost/forgotten my password. Now what?", "
|
||||
The best thing you can do is to <a href='profile.php?id=1'>contact Xkeeper directly</a>. He can help you get it fixed.
|
||||
$faq .= faqformat("cantpass", "I've lost/forgotten my password.", "
|
||||
The best thing you can do is to <a href='profile.php?id=1'>contact Xkeeper directly</a>. They can help you get it reset. You'll need whatever information you have about your account, including your current IP address, the e-mail you added to your profile (if any), and any other information that can help confirm your identity.
|
||||
");
|
||||
|
||||
|
||||
$faq .= faqformat("frosteddonut", "I want to throw money at you guys. How do I do that?", "
|
||||
Really? How generous.
|
||||
$faq .= faqformat("leganese", "Legal Crap / Privacy Policy / et cetera", "
|
||||
The site does not own, and cannot be held responsible for, statements made by members on the forum. This site is offered as-is to the user. Any statements made on the board may be altered or removed at the discretion of the staff.
|
||||
<br>
|
||||
<br>Donations with this button go straight to the hosting bill, and we can't withdraw them, so you don't have to worry about us secretly buying drugs or other fancy stuff with your money.
|
||||
<br>We do not automatically collect or store personal information, with the exception of IP addresses used when registering, logging in, and posting. Unlike pretty much every other site on the internet, we do not use cookies with the sole exception of authenticating a user should they wish to sign in. That means we don't have to show you a cookie popup. Nice, huh? Pretty rare these days.
|
||||
<br>
|
||||
<br>However, there is a slight fee involved, so suffice it to say it's often better to donate $20 at once intead of ten $2 donations.
|
||||
<br>
|
||||
<br><a href=\"http://www.dreamhost.com/donate.cgi?id=11617\"><img border=\"0\" alt=\"Donate towards Jul's web hosting!\" title='Click this and give us your money.' src=\"https://secure.newdream.net/donate1.gif\" /></a>
|
||||
<br>
|
||||
<br>Thanks in advance.
|
||||
<br>
|
||||
<br>At some point we plan on getting a 'donor star' for those who paid our bills... other than that, there isn't really any other benefit than a warm, fuzzy feeling.
|
||||
");
|
||||
|
||||
|
||||
$faq .= faqformat("leganese", "Legal Crap", "
|
||||
The site does not own and cannot be held responsible for statements made by members on the forum. This site is offered as-is to the user. Any statements made on the board may be altered or removed at the discretion of the staff.
|
||||
<br>
|
||||
<br>We do not sell member information like e-mail addresses or passwords to any third party. Data entered into user profiles is completely optional and may be left out at the user's discretion; however, doing so may complicate matters such as account recovery.
|
||||
<br>All information on this site, excepting username, password, and IP address, is optional, and is provided by the user. If you do not want your information on this site, <em>don't submit it</em>.
|
||||
");
|
||||
|
||||
|
||||
@ -128,70 +316,6 @@
|
||||
";
|
||||
|
||||
|
||||
|
||||
/*
|
||||
print "<br>
|
||||
$tblstart
|
||||
<tr>$tccell1l>
|
||||
<b>What is this forum all about?</b>
|
||||
<br>Gaming, the internet in general, emulation, and rarely, ROM hacking. Though SM64 hacking is rather popular, considering.
|
||||
<br>
|
||||
|
||||
<br><b>Okay, I'm new here. Where should I start?</b>
|
||||
<br>First off, read the rules before. They're not that long, and not that hard to follow; it'll make your life here a lot easier.
|
||||
<br>Next, feel free to <a href='newthread.php?id=1'>drop by and say hello</a>. Tell us about yourself, how you found out about us, or anything -- or just jump in and start posting.
|
||||
<br>It's up to you.
|
||||
<br>
|
||||
|
||||
|
||||
<br><b>What about the rules?</b>
|
||||
<br>Honestly, we follow <a href='http://forums.sonicretro.org/index.php?showtopic=11220'>Sonic Retro's ruleset</a> pretty closely, so read up there. Some things aren't relevant to here, though.
|
||||
<br>The gist of it:
|
||||
<ol>
|
||||
<li>Don't try talking in anything other than well-written English. If you are posting in another language, include an English translation, even if by machine. 'lulz-speak' is not tolerated here.
|
||||
<li>Don't be a dick. Nobody likes dicks. This includes posting just to complain about something forum-related, especially temporary.
|
||||
<li>Don't bump old (more than a month or two) threads without a decent reason.
|
||||
<li>Don't post blank, repeated, or completely off-topic replies.
|
||||
<li>Don't backseat mod. We're the staff, you aren't.
|
||||
<li>NSFW content must be <b>linked</b> and <b>tagged as such</b>. Not doing so is an instant permanent ban. (It's best to just not post it)
|
||||
<li>Admins are the final rules. If we tell you to do something, do it. <b>No exceptions.</b>
|
||||
</ol>As for the punishments:
|
||||
<ol>
|
||||
<li>Subtle warning.
|
||||
<li>More obvious warning, usually via PM.
|
||||
<li>Ban.
|
||||
</ol>We're pretty leinient, but we have limits.
|
||||
<br>
|
||||
|
||||
|
||||
<br><b>Something isn't working right.</b>
|
||||
<br><a href='forum.php?id=39'>Great, let us know.</a> We <i>love</i> fixing bugs.
|
||||
<br>
|
||||
|
||||
<br><b>I've been banned!</b>
|
||||
<br>You probably did something against the rules and pissed off the staff. Check your title, it usually includes information as to why.
|
||||
<br>
|
||||
|
||||
<br><b>No, I want to be <i>unbanned!</i></b>
|
||||
<br>Great. First of all, <a href='sendprivate.php?userid=1'>let us know</a>. If you can prove that you've learned your lesson, we'll give you another chance.
|
||||
<br>If you decide to evade your ban by reregistering, we will IP ban you and you will be prohibited from viewing this site, even via proxies. If you're stupid enough to try requesting unbanning again, <a href='http://xkeeper.shacknet.nu:5/docs/temp/lulz/megamoron.php'>well...</a>
|
||||
<br>
|
||||
|
||||
<br><b>I'm g0nn4 h4x0rz ur 4um</b>
|
||||
<br>Sure you are. We've dealt with little script kiddies like you, and we know pretty much how you work. You might find one exploit somewhere, but we take daily backups and are sure to patch up the holes as soon as we find them.
|
||||
<br>
|
||||
|
||||
<br><b>I have a question that you didn't answer (enough).</b>
|
||||
<br><a href='forum.php?id=39'>Let us know</a>.
|
||||
<br>
|
||||
|
||||
<br><b>General Disclaimer</b> (i.e., Legal Crap)
|
||||
<br>The site does not own and cannot be held responsible for statements made by members on the forum. This site is offered as-is to the user. Any statements made on the board may be altered or removed at the discretion of the staff.
|
||||
<br>We do not sell member information like e-mail addresses or passwords to any third party. Data entered into user profiles is completely optional and may be left out at the user's discretion; however, doing so may complicate matters such as account recovery.
|
||||
</td></tr>
|
||||
$tblend
|
||||
";
|
||||
*/
|
||||
}
|
||||
|
||||
print "
|
||||
|
@ -24,9 +24,9 @@
|
||||
$linkcolor4='FFFFFF';
|
||||
$textcolor='E0E0E0';
|
||||
|
||||
$font ='verdana';
|
||||
$font2 ='verdana';
|
||||
$font3 ='tahoma';
|
||||
$font ='Verdana, sans-serif';
|
||||
$font2 ='Verdana, sans-serif';
|
||||
$font3 ='Tahoma, sans-serif';
|
||||
|
||||
$newpollpic = '<img src="images/newpoll.png" alt="New poll" align="absmiddle">';
|
||||
$newreplypic = '<img src="images/newreply.png" alt="New reply" align="absmiddle">';
|
||||
@ -97,7 +97,7 @@
|
||||
|
||||
$newpic = $statusicons['new']; # hack for compat
|
||||
|
||||
if ($loguser['powerlevel'] < 3) {
|
||||
if ($loguser['powerlevel'] <= 0) {
|
||||
$nmcol[0][1] = $nmcol[0][0];
|
||||
$nmcol[1][1] = $nmcol[1][0];
|
||||
$nmcol[2][1] = $nmcol[2][0];
|
||||
|
@ -198,7 +198,7 @@
|
||||
if($banned) $power=0;
|
||||
|
||||
$specialscheme = "";
|
||||
$smallbrowsers = array("Nintendo DS", "Android", "PSP", "Windows CE");
|
||||
$smallbrowsers = array("Nintendo DS", "Android", "PSP", "Windows CE", "iPhone", "Mobile");
|
||||
if ( (str_replace($smallbrowsers, "", $_SERVER['HTTP_USER_AGENT']) != $_SERVER['HTTP_USER_AGENT']) || filter_int($_GET['mobile']) == 1) {
|
||||
$loguser['layout'] = 2;
|
||||
$loguser['viewsig'] = 0;
|
||||
@ -329,7 +329,7 @@ function timeunits($sec){
|
||||
if($sec<86400) return floor($sec/3600).' hours';
|
||||
if($sec<172800) return '1 day';
|
||||
if($sec<31556926) return floor($sec/86400).' days';
|
||||
return sprintf("%.1f years", floor($sec/31556926));
|
||||
return sprintf("%.1f years", $sec/31556926);
|
||||
}
|
||||
|
||||
function timeunits2($sec){
|
||||
@ -486,7 +486,8 @@ function escape_codeblock($text) {
|
||||
$list2 = array("", "", "<", "\"", "\\", "\'", "[", ":", ")", "_");
|
||||
|
||||
// @TODO why not just use htmlspecialchars() or htmlentities()
|
||||
return "[quote]<code>". str_replace($list, $list2, $text[0]) ."</code>[/quote]";
|
||||
//return "<blockquote class='code'><hr><pre><code>". str_replace($list, $list2, $text[0]) ."</code></pre><hr></blockquote>";
|
||||
return "<blockquote class='code'><hr><pre><code>". str_replace($list, $list2, $text[0]) ."</code></pre><hr></blockquote>";
|
||||
}
|
||||
|
||||
function doreplace2($msg, $options='0|0'){
|
||||
@ -529,11 +530,13 @@ function doreplace2($msg, $options='0|0'){
|
||||
$msg=str_replace('[/quote]','<hr></blockquote>',$msg);
|
||||
$msg=preg_replace("'\[sp=(.*?)\](.*?)\[/sp\]'si", '<span style="border-bottom: 1px dotted #f00;" title="did you mean: \\1">\\2</span>', $msg);
|
||||
$msg=preg_replace("'\[abbr=(.*?)\](.*?)\[/abbr\]'si", '<span style="border-bottom: 1px dotted;" title="\\1">\\2</span>', $msg);
|
||||
$msg=str_replace('[spoiler]','<div class="fonts pstspl2"><b>Spoiler:</b><div class="pstspl1">',$msg);
|
||||
$msg=str_replace('[/spoiler]','</div></div>',$msg);
|
||||
$msg=str_replace('[spoiler]','<label class="spoiler spoiler-b"><div class="spoiler-label"></div><input type="checkbox"><div class="hidden"><div>',$msg);
|
||||
$msg=str_replace('[/spoiler]','</div></div></label>',$msg);
|
||||
$msg=str_replace('[spoileri]','<label class="spoiler"><span class="spoiler-label"></span><input type="checkbox"><span class="hidden"><span>',$msg);
|
||||
$msg=str_replace('[/spoileri]','</span></span></label>',$msg);
|
||||
$msg=preg_replace("'\[(b|i|u|s)\]'si",'<\\1>',$msg);
|
||||
$msg=preg_replace("'\[/(b|i|u|s)\]'si",'</\\1>',$msg);
|
||||
$msg=preg_replace("'\[img\](.*?)\[/img\]'si", '<img src=\\1>', $msg);
|
||||
$msg=preg_replace("'\[img\](.*?)\[/img\]'si", '<img class="imgtag" src=\\1>', $msg);
|
||||
$msg=preg_replace("'\[url\](.*?)\[/url\]'si", '<a href=\\1>\\1</a>', $msg);
|
||||
$msg=preg_replace("'\[url=(.*?)\](.*?)\[/url\]'si", '<a href=\\1>\\2</a>', $msg);
|
||||
$msg=str_replace('http://nightkev.110mb.com/justus_layout.css','about:blank',$msg);
|
||||
@ -1263,7 +1266,7 @@ function xss_clean($data) {
|
||||
#$data = preg_replace('#(<[^>]+?[\x00-\x20"\'])(?:on|xmlns)[^>]*+>#iu', '$1>', $data);
|
||||
do {
|
||||
$old_data = $data;
|
||||
$data = preg_replace('#(<[^>]+?[\x00-\x20"\'])(on|xmlns)([^>]*+)>#iu', '$1DISABLED_$2$3>', $data);
|
||||
$data = preg_replace('#(<[A-Za-z][^>]*?[\x00-\x20"\'])(on|xmlns)([^>]*+)>#iu', '$1DISABLED_$2$3>', $data);
|
||||
} while ($old_data !== $data);
|
||||
|
||||
// Remove javascript: and vbscript: protocols
|
||||
|
@ -93,16 +93,10 @@
|
||||
a:active { color: #$linkcolor3; }
|
||||
a:hover { color: #$linkcolor4; }
|
||||
body {
|
||||
scrollbar-face-color: #$scr3;
|
||||
scrollbar-track-color: #$scr7;
|
||||
scrollbar-arrow-color: #$scr6;
|
||||
scrollbar-highlight-color: #$scr2;
|
||||
scrollbar-3dlight-color: #$scr1;
|
||||
scrollbar-shadow-color: #$scr4;
|
||||
scrollbar-darkshadow-color: #$scr5;
|
||||
color: #$textcolor;
|
||||
font:13px $font;
|
||||
background: #$bgcolor$bgimage;
|
||||
|
||||
}
|
||||
div.lastpost { font: 10px $font2 !important; white-space: nowrap; }
|
||||
div.lastpost:first-line { font: 13px $font !important; }
|
||||
@ -120,7 +114,75 @@
|
||||
border-left: #$tableborder 1px solid;}
|
||||
td.tbl {border-right: #$tableborder 1px solid;
|
||||
border-bottom: #$tableborder 1px solid}
|
||||
";
|
||||
";
|
||||
|
||||
if (
|
||||
isset($scr1)
|
||||
&& isset($scr2)
|
||||
&& isset($scr3)
|
||||
&& isset($scr4)
|
||||
&& isset($scr5)
|
||||
&& isset($scr6)
|
||||
&& isset($scr7)
|
||||
) {
|
||||
$css .= "
|
||||
/* IE/Webkit/Chrome/etc. custom scrollbars. Remember these? */
|
||||
body {
|
||||
scrollbar-face-color: #$scr3;
|
||||
scrollbar-track-color: #$scr7;
|
||||
scrollbar-arrow-color: #$scr6;
|
||||
scrollbar-highlight-color: #$scr2;
|
||||
scrollbar-3dlight-color: #$scr1;
|
||||
scrollbar-shadow-color: #$scr4;
|
||||
scrollbar-darkshadow-color: #$scr5;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar, ::-webkit-scrollbar-button {
|
||||
width: 1.25em;
|
||||
height: 1.25em;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background-color: #$scr7;
|
||||
}
|
||||
::-webkit-scrollbar-track-piece {
|
||||
|
||||
}
|
||||
::-webkit-scrollbar-thumb, ::-webkit-scrollbar-button {
|
||||
background-color: #$scr3;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
border: 2px solid;
|
||||
color: #$scr6;
|
||||
border-color: #$scr1 #$scr4 #$scr5 #$scr2;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:active, ::-webkit-scrollbar-button:active {
|
||||
background-color: #$scr4;
|
||||
border-color: #$scr5 #$scr2 #$scr1 #$scr5;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-button:vertical:decrement {
|
||||
background-image: url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23$scr6'><polygon points='12 75, 50 25, 88 75'/></svg>\");
|
||||
|
||||
}
|
||||
::-webkit-scrollbar-button:vertical:increment {
|
||||
background-image: url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23$scr6'><polygon points='12 25, 50 75, 88 25'/></svg>\");
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-button:horizontal:decrement {
|
||||
background-image: url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23$scr6'><polygon points='75 12, 25 50, 75 88'/></svg>\");
|
||||
|
||||
}
|
||||
::-webkit-scrollbar-button:horizontal:increment {
|
||||
background-image: url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23$scr6'><polygon points='25 12, 75 50, 25 88'/></svg>\");
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-corner {
|
||||
background: #$scr7;
|
||||
}
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
$numcols=(filter_int($numcols) ? $numcols : 60);
|
||||
@ -340,7 +402,7 @@
|
||||
|
||||
$metatag = '';
|
||||
|
||||
if (filter_bool($meta['noindex']))
|
||||
if (true || filter_bool($meta['noindex']))
|
||||
$metatag .= "<meta name=\"robots\" content=\"noindex,follow\" />";
|
||||
|
||||
if (isset($meta['description']))
|
||||
@ -367,7 +429,7 @@
|
||||
<td width='120px' class='tbl tdbg2 center fonts'><nobr>Views: $dispviews<br><img src=images/_.gif width=120 height=1></td>
|
||||
<td width='100%' class='tbl tdbg2 center fonts'>$headlinks2</td>
|
||||
<td width='120px' class='tbl tdbg2 center fonts'><nobr>". date($dateformat,ctime()+$tzoff) ."<br><img src=images/_.gif width=120 height=1><tr>"
|
||||
: "<br>$dispviews views, ". date($dateformat,ctime()+$tzoff) ."
|
||||
: "<br>$dispviews views, ". date($dateformat,ctime()+$tzoff) ."<br>(mobile view enabled)
|
||||
</td><tr>
|
||||
<td width=100% class='tbl tdbg2 center fonts' colspan=3>$headlinks2</td><tr>") ."
|
||||
<td colspan=3 class='tbl tdbg1 center fonts'>$race
|
||||
|
@ -15,7 +15,8 @@
|
||||
$set['userlink'] = "<a name={$p}></a>{$userlink}";
|
||||
$set['date'] = date($dateformat,$post['date']+$tzoff);
|
||||
|
||||
if($post['location']) { $set['location']="<br>From: {$post['location']}"; }
|
||||
if($post['location']) { $set['location']="From: ". htmlspecialchars($post['location']); }
|
||||
if($post['pronouns']) { $set['pronouns']="Pronouns: ". htmlspecialchars($post['pronouns']); }
|
||||
|
||||
if($post['picture'] || ($post['moodid'] && $post['moodurl'])){
|
||||
$post['picture'] = str_replace('>','%3E',$post['picture']);
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
if($pow!='') {
|
||||
$pow = intval($pow);
|
||||
if (($pow == 1 || $pow == 0) && $loguser['powerlevel'] < 3)
|
||||
if (($pow == 1 || $pow == 0) && $loguser['powerlevel'] <= 0)
|
||||
$pow = "IN (0, 1)";
|
||||
elseif ($pow == 3 || $pow == 4) // merge admin + sysadmin (they appear the same)
|
||||
$pow = "IN (3, 4)";
|
||||
@ -42,12 +42,13 @@
|
||||
|
||||
$where = 'WHERE '.((empty($qwhere)) ? '1' : implode(' AND ', $qwhere));
|
||||
|
||||
if (!in_array($sort, array('name','reg','exp','age','posts')))
|
||||
if (!in_array($sort, array('name','reg','exp','age','posts', 'act')))
|
||||
$sort = 'posts';
|
||||
|
||||
$query='SELECT id,posts,regdate,name,minipic,sex,powerlevel,aka,r.* FROM users LEFT JOIN users_rpg r ON id=uid ';
|
||||
$query='SELECT id,posts,regdate,lastactivity,name,minipic,sex,powerlevel,aka,r.* FROM users LEFT JOIN users_rpg r ON id=uid ';
|
||||
if($sort=='name') $users1=$sql->query("$query$where ORDER BY name", MYSQL_ASSOC);
|
||||
if($sort=='reg') $users1=$sql->query("$query$where ORDER BY regdate DESC", MYSQL_ASSOC);
|
||||
if($sort=='act') $users1=$sql->query("$query$where ORDER BY lastactivity DESC", MYSQL_ASSOC);
|
||||
if($sort=='exp') $users1=$sql->query("$query$where", MYSQL_ASSOC);
|
||||
if($sort=='age') $users1=$sql->query("$query$where AND birthday ORDER BY birthday", MYSQL_ASSOC);
|
||||
if($sort=='posts') $users1=$sql->query("$query$where ORDER BY posts DESC", MYSQL_ASSOC);
|
||||
@ -80,6 +81,7 @@
|
||||
$lnk=exp$q$qpow$qsex>EXP</a> |
|
||||
$lnk=name$q$qpow$qsex>User name</a> |
|
||||
$lnk=reg$q$qpow$qsex>Registration date</a> |
|
||||
$lnk=act$q$qpow$qsex>Last activity</a> |
|
||||
$lnk=age$q$qpow$qsex>Age</a>
|
||||
</tr><tr>
|
||||
$tccell1s> Sex:
|
||||
@ -93,7 +95,7 @@
|
||||
$tccell2s>
|
||||
$lnk=$sort$q$qsex&pow=-1>Banned</a> |
|
||||
$lnk=$sort$q$qsex&pow=0>Normal</a> |
|
||||
". ($loguser['powerlevel'] >= 3 ? "$lnk=$sort$q$qsex&pow=1>Normal +</a> | " : "") ."
|
||||
". ($loguser['powerlevel'] >= 1 ? "$lnk=$sort$q$qsex&pow=1>Normal +</a> | " : "") ."
|
||||
$lnk=$sort$q$qsex&pow=2>Moderator</a> |
|
||||
$lnk=$sort$q$qsex&pow=3>Administrator</a> |
|
||||
$lnk=$sort$q$qsex>All</a>
|
||||
@ -107,6 +109,7 @@
|
||||
if(!$rpg) {
|
||||
print "
|
||||
$tccellh width=200>Registered on</td>
|
||||
$tccellh width=200>Last active</td>
|
||||
$tccellh width=60>Posts</td>
|
||||
$tccellh width=35>Level</td>
|
||||
$tccellh width=100>EXP</td></tr>
|
||||
@ -137,17 +140,18 @@
|
||||
|
||||
$userlink = getuserlink($user);
|
||||
$ulist.="
|
||||
$tccell2>".($i+1).".</td>
|
||||
$tccell2>".($i+1)."</td>
|
||||
$tccell1l>{$userpicture}</td>
|
||||
$tccell2l>{$userlink}</td>
|
||||
";
|
||||
|
||||
if(!$rpg){
|
||||
$ulist.="
|
||||
$tccell2>".date($dateformat,$user['regdate']+$tzoff)."</td>
|
||||
$tccell1>{$user['posts']}</td>
|
||||
$tccell1>{$user['lvl']}</td>
|
||||
$tccell1>{$user['exp']}</td>
|
||||
$tccell2><span title='". timeunits2(ctime() - $user['regdate']) ." ago'>".date($dateformat,$user['regdate']+$tzoff)."</span></td>
|
||||
$tccell2><span title='". timeunits2(ctime() - $user['lastactivity']) ." ago'>".date($dateformat,$user['lastactivity']+$tzoff)."</span></td>
|
||||
$tccell1r>{$user['posts']}</td>
|
||||
$tccell1r>{$user['lvl']}</td>
|
||||
$tccell1r>{$user['exp']}</td>
|
||||
";
|
||||
}
|
||||
else {
|
||||
|
@ -68,8 +68,6 @@
|
||||
<br>$radio=iconid value=-1 $checked> None
|
||||
Custom: $inpt=custposticon SIZE=40 MAXLENGTH=100 VALUE=\"". stripslashes($custposticon) ."\">
|
||||
";
|
||||
$subject=htmlspecialchars($subject);
|
||||
$question=htmlspecialchars($question);
|
||||
|
||||
if ($nosmilies) $nosmilieschk = " checked";
|
||||
if ($nohtml) $nohtmlchk = " checked";
|
||||
@ -94,13 +92,13 @@
|
||||
<!-- </FORM> -->
|
||||
":"
|
||||
<tr>$tccell1><b>Poll icon:</td> $tccell2l colspan=2>$posticonlist</td></tr>
|
||||
<tr>$tccell1><b>Poll title:</td> $tccell2l colspan=2>$inpt=subject SIZE=40 MAXLENGTH=100 VALUE=\"". stripslashes($subject) ."\"></td></tr>
|
||||
<tr>$tccell1><b>Question:</td> $tccell2l colspan=2>$inpt=question SIZE=60 MAXLENGTH=255 VALUE=\"". stripslashes($question) ."\"></td></tr>
|
||||
<tr>$tccell1><b>Briefing:</td> $tccell2l colspan=2>$txta=briefing ROWS=2 COLS=$numcols style=\"resize:vertical;\">". stripslashes($briefing) ."</TEXTAREA></td></tr>
|
||||
<tr>$tccell1><b>Poll title:</td> $tccell2l colspan=2>$inpt=subject SIZE=40 MAXLENGTH=100 VALUE=\"". htmlspecialchars(stripslashes($subject)) ."\"></td></tr>
|
||||
<tr>$tccell1><b>Question:</td> $tccell2l colspan=2>$inpt=question SIZE=60 MAXLENGTH=255 VALUE=\"". htmlspecialchars(stripslashes($question)) ."\"></td></tr>
|
||||
<tr>$tccell1><b>Briefing:</td> $tccell2l colspan=2>$txta=briefing ROWS=2 COLS=$numcols style=\"resize:vertical;\">". htmlspecialchars(stripslashes($briefing)) ."</TEXTAREA></td></tr>
|
||||
<tr>$tccell1><b>Multi-voting:</td>$tccell2l colspan=2>$radio=mltvote value=0 $checked0> Disabled   $radio=mltvote value=1 $checked1> Enabled</td></tr>
|
||||
<tr>$tccell1><b>Choices:</td> $tccell2l colspan=2>$choices</td></tr>
|
||||
<tr>$tccell1><b>Post:</td>$tccell2l width=800px valign=top>".replytoolbar(2)."
|
||||
$txta=message ROWS=21 COLS=$numcols style=\"width: 100%; max-width: 800px; resize:vertical;\">". stripslashes(htmlspecialchars($message)) ."</TEXTAREA></td>
|
||||
$txta=message ROWS=21 COLS=$numcols style=\"width: 100%; max-width: 800px; resize:vertical;\">". htmlspecialchars(stripslashes($message)) ."</TEXTAREA></td>
|
||||
$tccell2l width=*>".moodlist($moodid)."</td></tr>
|
||||
|
||||
<tr>
|
||||
@ -275,16 +273,17 @@
|
||||
";
|
||||
}
|
||||
$mlt=($mltvote?'enabled':'disabled');
|
||||
$subject = htmlspecialchars(stripslashes($subject));
|
||||
$question = htmlspecialchars(stripslashes($question));
|
||||
$briefing = htmlspecialchars(stripslashes($briefing));
|
||||
|
||||
$pollpreview="
|
||||
<td colspan=3 class='tbl tdbgc center font'><b>$question<tr>
|
||||
$tccell2ls colspan=3>$briefing<tr>
|
||||
<td colspan=3 class='tbl tdbgc center font'><b>". $question ."<tr>
|
||||
$tccell2ls colspan=3>". $briefing ."<tr>
|
||||
$pchoices
|
||||
$tccell2ls colspan=3>Multi-voting is $mlt.
|
||||
$tblend<br>$tblstart
|
||||
";
|
||||
$subject = htmlspecialchars(stripslashes($subject));
|
||||
$question = htmlspecialchars(stripslashes($question));
|
||||
$briefing = htmlspecialchars(stripslashes($briefing));
|
||||
}
|
||||
loadtlayout();
|
||||
$ppost=$user;
|
||||
|
@ -22,7 +22,7 @@
|
||||
$time = filter_int($_GET['time']) ? $_GET['time'] : 300;
|
||||
|
||||
// FOR THE LOVE OF GOD XKEEPER JUST GIVE ME ~NUKE ACCESS
|
||||
$banorama = ($_SERVER['REMOTE_ADDR'] == $x_hacks['adminip'] || $loguser['id'] == 1 || $loguser['id'] == 5 || $loguser['id'] == 2100);
|
||||
$banorama = ($loguser['id'] == 1 || $loguser['id'] == 2100);
|
||||
|
||||
if ($banorama && filter_string($_GET['banip']) && filter_string($_GET['valid']) == md5($_GET['banip'] . "aglkdgslhkadgshlkgds")) {
|
||||
$sql->query("INSERT INTO `ipbans` SET `ip` = '". $_GET['banip'] ."', `reason`='online.php ban', `date` = '". ctime() ."', `banner` = '$loguserid'") or print mysql_error();
|
||||
|
@ -211,14 +211,15 @@ $tblend
|
||||
<br>$tblstart
|
||||
$tccellh colspan=2><center>Personal information<tr>
|
||||
$tccell1l width=150><b>Real name</td> $tccell2l>$user[realname] <tr>
|
||||
$tccell1l width=150><b>Pronouns</td> $tccell2l>". htmlspecialchars($user['pronouns']) ." <tr>
|
||||
$tccell1l width=150><b>Location</td> $tccell2l>$user[location] <tr>
|
||||
$tccell1l width=150><b>Birthday</td> $tccell2l>$birthday $age <tr>
|
||||
$tccell1l width=150><b>User bio</td> $tccell2l>". dofilters(doreplace2(doreplace($user['bio'], $user['posts'], (ctime()-$user['regdate'])/86400, $user['name']))) ." <tr>
|
||||
$tblend
|
||||
<br>$tblstart
|
||||
$tccellh colspan=2><center>Sample post<tr>
|
||||
". threadpost($user, 1) ."
|
||||
$tblend
|
||||
". threadpost($user, 1) ."
|
||||
<br>$tblstart
|
||||
$tccellhs colspan=2><center>Options<tr>
|
||||
$tccell2s colspan=2>
|
||||
|
@ -1,4 +0,0 @@
|
||||
User-agent: *
|
||||
Crawl-delay: 120
|
||||
Disallow: /calendar.php
|
||||
Disallow: /board/calendar.php
|
@ -4,7 +4,7 @@
|
||||
$numdir='num2/';
|
||||
$numfil='numkafuka';
|
||||
$boardtitle='<img src=images/kafuka/kafuka.jpg>';
|
||||
$font='arial';
|
||||
$font='Arial, sans-serif';
|
||||
$bgimage='images/firebg4.jpg';
|
||||
$bgcolor='220000';
|
||||
$newthreadpic='<img src=images/kafuka/newthreadkaf.png border=0>';
|
||||
|
@ -6,8 +6,8 @@
|
||||
$threadclosedpic='<img class="post" src="images/mariomovie/threadclosed.png" alt="Thread closed" title="Thread closed">';
|
||||
$bgimage='images/mariomovie/zeroesbg3.png';
|
||||
$bgcolor='101010';
|
||||
$font='courier new';
|
||||
$font2='tahoma';
|
||||
$font='\'Courier New\', monospace';
|
||||
$font2='Tahoma, sans-serif';
|
||||
$textcolor='cccccc';
|
||||
$linkcolor='eeeeee';
|
||||
$linkcolor2='ffffff';
|
||||
|
@ -57,7 +57,7 @@
|
||||
$postlist="
|
||||
$tccellh width=150>User</td>
|
||||
$tccellh>Message<tr>
|
||||
$tcellbg><a href=profile.php?id=$user[id]>$user[name]</a>$smallfont<br>
|
||||
$tcellbg><a href=profile.php?id=$user[id] style='color: ". getnamecolor($user['sex'],$user['powerlevel'], false) .";'>$user[name]</a>$smallfont<br>
|
||||
Posts: $postnum$user[posts]</td>
|
||||
$tcellbg>".doreplace2($msg[text])."<tr>
|
||||
";
|
||||
|
@ -50,6 +50,6 @@
|
||||
if ($isadmin)
|
||||
$ip = (($quote) ? ' | ' : '') . "IP: <a href=ipsearch.php?ip=$msg[ip]>$msg[ip]</a>";
|
||||
|
||||
print $header.$top.$tblstart.threadpost($post,1).$tblend.$top.$footer;
|
||||
print $header.$top.threadpost($post,1).$top.$footer;
|
||||
printtimedif($startingtime);
|
||||
?>
|
59
stats-daily.php
Normal file
59
stats-daily.php
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
require 'lib/function.php';
|
||||
require 'lib/layout.php';
|
||||
|
||||
print "
|
||||
$header
|
||||
<br>$tblstart
|
||||
<tr>$tccellh>Information</td></tr>
|
||||
<tr>$tccellc>
|
||||
<br>
|
||||
Daily stats for the board. This page might take a while to fully display.
|
||||
<br><br>
|
||||
</td>
|
||||
</tr>
|
||||
$tblend
|
||||
<br>
|
||||
$tblstart<tr>
|
||||
$tccellh colspan=9>Daily stats<tr>
|
||||
$tccellc>Date</td>
|
||||
$tccellc>Total users</td>
|
||||
$tccellc>Total posts</td>
|
||||
$tccellc>Total threads</td>
|
||||
$tccellc>Total views</td>
|
||||
$tccellc>New users</td>
|
||||
$tccellc>New posts</td>
|
||||
$tccellc>New threads</td>
|
||||
$tccellc>New views</td></tr>
|
||||
";
|
||||
$users=0;
|
||||
$posts=0;
|
||||
$threads=0;
|
||||
$views=0;
|
||||
$stats=$sql->query("SELECT * FROM dailystats");
|
||||
$oldyear = "";
|
||||
while($day=$sql->fetch($stats)){
|
||||
$year = substr($day['date'], 6);
|
||||
if ($year !== $oldyear) {
|
||||
print "<tr>
|
||||
$tccellh colspan=9>20$year<tr>";
|
||||
$oldyear = $year;
|
||||
}
|
||||
print "<tr>
|
||||
$tccell1>$day[date]</td>
|
||||
$tccell2>". number_format($day['users']) ."</td>
|
||||
$tccell2>". number_format($day['posts']) ."</td>
|
||||
$tccell2>". number_format($day['threads']) ."</td>
|
||||
$tccell2>". number_format($day['views']) ."</td>
|
||||
$tccell2>". number_format($day['users']-$users)."</td>
|
||||
$tccell2>". number_format($day['posts']-$posts)."</td>
|
||||
$tccell2>". number_format($day['threads']-$threads)."</td>
|
||||
$tccell2>". number_format($day['views']-$views)."</td></tr>
|
||||
";
|
||||
$users=$day['users'];
|
||||
$posts=$day['posts'];
|
||||
$threads=$day['threads'];
|
||||
$views=$day['views'];
|
||||
}
|
||||
print $tblend.$footer;
|
||||
printtimedif($startingtime);
|
44
stats.php
44
stats.php
@ -31,7 +31,7 @@
|
||||
<li><a href='activeusers.php'>Recently active posters</a></li>
|
||||
<li><a href='acs.php'>Daily poster rankings</a></li>
|
||||
<li><a href='milestones.php'>Post milestones</a></li>
|
||||
<li><a href='sigsize.php'>Biggest posters</a></li>
|
||||
<li><a href='biggestposters.php'>Biggest posters</a></li>
|
||||
<li><a href='sigsize.php'>Largest post layouts</a></li>
|
||||
<li><a href='sigsize.php?bio=1'>Largest bios</a></li>
|
||||
<li><a href='activity.php?u=". ($loguserid ? $loguserid : 1) ."'>Graph of your posting history</a> (change the ID in the URL to see others)</li>
|
||||
@ -39,6 +39,7 @@
|
||||
<li><a href='activity3.php'>Graph of total post count and posts per day</a></li>
|
||||
<li><a href='activity3u.php'>Graph of active users per day</a></li>
|
||||
<li><a href='avatar.php'>Mood avatars</a></li>
|
||||
<li><a href='stats-daily.php'>Daily board-wide statistics</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
@ -82,42 +83,9 @@
|
||||
.tblinfo('dailystats')
|
||||
.tblinfo('rendertimes')
|
||||
."$tblend
|
||||
<br>
|
||||
$tblstart<tr>
|
||||
$tccellhs colspan=9>Daily stats<tr>
|
||||
$tccellcs>Date</td>
|
||||
$tccellcs>Total users</td>
|
||||
$tccellcs>Total posts</td>
|
||||
$tccellcs>Total threads</td>
|
||||
$tccellcs>Total views</td>
|
||||
$tccellcs>New users</td>
|
||||
$tccellcs>New posts</td>
|
||||
$tccellcs>New threads</td>
|
||||
$tccellcs>New views</td></tr>
|
||||
";
|
||||
$users=0;
|
||||
$posts=0;
|
||||
$threads=0;
|
||||
$views=0;
|
||||
$stats=$sql->query("SELECT * FROM dailystats");
|
||||
while($day=$sql->fetch($stats)){
|
||||
print "<tr>
|
||||
$tccell1s>$day[date]</td>
|
||||
$tccell2s>$day[users]</td>
|
||||
$tccell2s>$day[posts]</td>
|
||||
$tccell2s>$day[threads]</td>
|
||||
$tccell2s>$day[views]</td>
|
||||
$tccell2s>".($day['users']-$users)."</td>
|
||||
$tccell2s>".($day['posts']-$posts)."</td>
|
||||
$tccell2s>".($day['threads']-$threads)."</td>
|
||||
$tccell2s>".($day['views']-$views)."</td></tr>
|
||||
";
|
||||
$users=$day['users'];
|
||||
$posts=$day['posts'];
|
||||
$threads=$day['threads'];
|
||||
$views=$day['views'];
|
||||
}
|
||||
print $tblend.$footer;
|
||||
";
|
||||
|
||||
print $footer;
|
||||
printtimedif($startingtime);
|
||||
|
||||
|
||||
@ -147,5 +115,3 @@
|
||||
$tccell2l>".sp($t['Data_free'])."</td>
|
||||
$tccell2l>".sp($t['Data_length']+$t['Index_length'])."</td></tr>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -292,7 +292,7 @@
|
||||
$link = "<a href='?id={$id}&dat={$confirm}&{$linkact}vote=$pollc[id]'>";
|
||||
|
||||
$choices .= "<tr>
|
||||
$tccell1l width=20%>$dot$link".($pollc['choice'])."</a></td>
|
||||
$tccell1l width=20%>$dot$link".htmlspecialchars($pollc['choice'])."</a></td>
|
||||
$tccell2l width=60%>$barpart</td>
|
||||
$tccell1 width=20%>".($poll['doublevote'] ? "$pct% of users, $votes ($pct2%)" : "$pct%, $votes")."</td>
|
||||
</tr>";
|
||||
@ -308,7 +308,7 @@
|
||||
|
||||
$polltbl = "$tblstart
|
||||
<tr>$tccellc colspan=3><b>".htmlspecialchars($poll['question'])."</td></tr>
|
||||
<tr>$tccell2ls colspan=3>".nl2br(dofilters($poll['briefing']))."</td></tr>
|
||||
<tr>$tccell2ls colspan=3>".nl2br(htmlspecialchars(dofilters($poll['briefing'])))."</td></tr>
|
||||
$choices
|
||||
<tr>$tccell2l colspan=3>$smallfont $polltext $tvotes_u user$s_have voted. $polledit</td></tr>
|
||||
$tblend<br>
|
||||
@ -369,7 +369,6 @@
|
||||
preplayouts($posts);
|
||||
|
||||
for ($i = 0; $post = $sql->fetch($posts); $i++) {
|
||||
$postlist .= '<tr>';
|
||||
|
||||
$bg = $i % 2 + 1;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
function userfields(){
|
||||
return 'posts,sex,powerlevel,birthday,aka,picture,moodurl,title,useranks,location,lastposttime,lastactivity,imood';
|
||||
return 'posts,sex,powerlevel,birthday,aka,picture,moodurl,title,useranks,location,lastposttime,lastactivity,imood,pronouns';
|
||||
}
|
||||
|
||||
|
||||
@ -75,12 +75,12 @@
|
||||
|
||||
$sidebars = array(1, 3, 19, 89, 387, 45, 92, 47);
|
||||
|
||||
$sidebars = array(1, 19, 89, 387, 45, 92, 47, 1420, 1090, 2100, 2069);
|
||||
$sidebars = array(19, 89, 387, 45, 92, 47, 1420, 1090, 2100, 2069);
|
||||
|
||||
// Large block of user-specific hacks follows //
|
||||
|
||||
|
||||
if ($post['uid'] == 1 && !$x_hacks['host'] && true) {
|
||||
if (false && $post['uid'] == 1 && !$x_hacks['host'] && true) {
|
||||
|
||||
global $numdir;
|
||||
$numdir_ = $numdir;
|
||||
@ -93,7 +93,7 @@
|
||||
}
|
||||
$numdir = $numdir_;
|
||||
|
||||
return "
|
||||
return "<div class='post'>
|
||||
$tblstart
|
||||
$set[tdbg] rowspan=2 style='padding: 5px 1px 5px 1px;'>
|
||||
<center>$set[userlink]$smallfont<br>
|
||||
@ -110,7 +110,8 @@
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>
|
||||
$tblend";
|
||||
$tblend
|
||||
</div>";
|
||||
}
|
||||
|
||||
// Inu's sidebar
|
||||
@ -208,7 +209,8 @@
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg]{$dstyle} height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>
|
||||
$tblend";
|
||||
$tblend
|
||||
</div>";
|
||||
}
|
||||
// End Inu's sidebar
|
||||
|
||||
@ -231,13 +233,14 @@
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style='background: #000;' height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>
|
||||
$tblend";
|
||||
$tblend
|
||||
</div>";
|
||||
}
|
||||
|
||||
// Default layout
|
||||
if (!(in_array($post['uid'], $sidebars) && !$x_hacks['host']) || $loguser['viewsig'] == 0) {
|
||||
return "
|
||||
<div style='position:relative'>
|
||||
<div class='post'>
|
||||
$tblstart
|
||||
$set[tdbg] rowspan=2>
|
||||
$set[userlink]$smallfont<br>
|
||||
@ -246,7 +249,11 @@
|
||||
$set[userpic]<br>
|
||||
". (filter_bool($hacks['noposts']) ? "" : "$poststext$postnum$posttotal<br>") ."
|
||||
$experience<br><br>
|
||||
$since<br>".str_ireplace("<br>", "<br>", substr(htmlspecialchars($set['location']),10))."<br><br>
|
||||
$since<br>
|
||||
". (isset($set['pronouns']) ? "<br>".$set['pronouns'] : "")."
|
||||
". (isset($set['location']) ? "<br>".$set['location'] : "")."
|
||||
<br>
|
||||
<br>
|
||||
$sincelastpost<br>$lastactivity<br>
|
||||
</font>
|
||||
<br><img src=images/_.gif width=200 height=1>
|
||||
@ -271,7 +278,7 @@
|
||||
}
|
||||
|
||||
//". str_replace('valign=top', 'valign=top', $set[tdbg]) ."
|
||||
return "<table width=100% cellpadding=0 cellspacing=0 style=\"background: #004c5a; background-position: top right; background-repeat: repeat-x; border: 1px solid #000;\">
|
||||
return "<div class='post'><table width=100% cellpadding=0 cellspacing=0 style=\"background: #004c5a; background-position: top right; background-repeat: repeat-x; border: 1px solid #000;\">
|
||||
<tr>
|
||||
<td rowspan=2 valign=top align=center style=\"font-size: 12px; color: #fff; font-family: Verdana, sans-serif; border-right: 3px double #000; background: #004c5a;\">
|
||||
— $set[userlink] —
|
||||
@ -288,7 +295,7 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
<td valign='top' id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
<td valign='top' id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend</div>
|
||||
";
|
||||
} elseif ($post['uid'] == "3" && !$x_hacks['host']) {
|
||||
$lastactivity = 'Active </font>' .timeunits(ctime()-$post[lastactivity]) .'<font color=#bb0000> ago';
|
||||
@ -298,7 +305,7 @@
|
||||
$postnum = '';
|
||||
$postss = "s:";
|
||||
}
|
||||
return "$tblstart
|
||||
return "<div class='post'>$tblstart
|
||||
". str_replace('valign=top', 'valign=top', $set[tdbg]) ." rowspan=2 align=center style=\"background: #000; font-size: 12px; color: #f00; font-family: Verdana, sans-serif;\">
|
||||
— $set[userlink] —
|
||||
$smallfont
|
||||
@ -313,7 +320,7 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend</div>
|
||||
";
|
||||
|
||||
// ************************************************************
|
||||
@ -333,7 +340,7 @@
|
||||
$postnum = '';
|
||||
$postss = "s:";
|
||||
}
|
||||
return "$tblstart
|
||||
return "<div class='post'>$tblstart
|
||||
". str_replace('valign=top', 'valign=top', $set[tdbg]) ." rowspan=2 align=center style=\"background: $fcol3; font-size: 12px; color: $fcol1; font-family: Verdana, sans-serif;\">
|
||||
— $set[userlink] —
|
||||
$smallfont
|
||||
@ -349,7 +356,7 @@
|
||||
<td style='color: $fcol1;'>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend</div>
|
||||
";
|
||||
|
||||
|
||||
@ -374,7 +381,7 @@
|
||||
$postnum = '';
|
||||
$postss = "s:";
|
||||
}
|
||||
return "$tblstart
|
||||
return "<div class='post'>$tblstart
|
||||
". str_replace('valign=top', 'valign=top', $set[tdbg]) ." rowspan=2 align=center style=\"background: $fcol3". ($post['posts'] >= 20000 ? " url('http://www.ffalexandria.com/orlandu/anya/side_bg.jpg'); background-position:bottom left" : "") ."; font-size: 12px; color: $fcol1; font-family: Verdana, sans-serif;\">
|
||||
— $set[userlink] —
|
||||
<br>$smallfont
|
||||
@ -389,7 +396,7 @@
|
||||
<td style='color: $fcol1;'>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend</div>
|
||||
";
|
||||
|
||||
return "
|
||||
@ -410,7 +417,8 @@
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>
|
||||
$tblend";
|
||||
$tblend
|
||||
</div>";
|
||||
|
||||
// ************************************************************
|
||||
// SAKURA HIRYUU
|
||||
@ -429,7 +437,7 @@
|
||||
$postnum = '';
|
||||
$postss = "s:";
|
||||
}
|
||||
return "$tblstart
|
||||
return "<div class='post'>$tblstart
|
||||
". str_replace('valign=top', 'valign=top', $set[tdbg]) ." rowspan=2 align=center style=\"background: $fcol3; font-size: 12px; color: $fcol1; font-family: Verdana, sans-serif;\">
|
||||
— $set[userlink] —
|
||||
$smallfont
|
||||
@ -445,7 +453,7 @@
|
||||
<td style=\"color: $fcol1;\">Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend</div>
|
||||
";
|
||||
|
||||
|
||||
@ -477,7 +485,7 @@
|
||||
$postnum = '';
|
||||
$postss = "s:";
|
||||
}
|
||||
return "$tblstart
|
||||
return "<div class='post'>$tblstart
|
||||
". str_replace('valign=top', 'valign=top', $set[tdbg]) ." rowspan=2 align=center style=\"background: $fcol3; font-size: 12px; color: $fcol1; font-family: Verdana, sans-serif;\">
|
||||
— $set[userlink] —
|
||||
$smallfont
|
||||
@ -493,7 +501,7 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend</div>
|
||||
";
|
||||
|
||||
} elseif ($post['uid'] == "19" && !$x_hacks['host']) {
|
||||
@ -508,7 +516,7 @@
|
||||
$postnum = '';
|
||||
$postss = "s:";
|
||||
}
|
||||
return "$tblstart
|
||||
return "<div class='post'>$tblstart
|
||||
". str_replace('valign=top', 'valign=top', $set[tdbg]) ." rowspan=2 align=center style=\"background: $fcol3; font-size: 12px; color: $fcol1; font-family: Verdana, sans-serif;\">
|
||||
— $set[userlink] —
|
||||
$smallfont
|
||||
@ -526,7 +534,7 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend</div>
|
||||
";
|
||||
|
||||
} elseif ($post['uid'] == "4" && !$x_hacks['host']) {
|
||||
@ -541,7 +549,7 @@
|
||||
$postnum = '';
|
||||
$postss = "s:";
|
||||
}
|
||||
return "$tblstart
|
||||
return "<div class='post'>$tblstart
|
||||
". str_replace('valign=top', 'valign=top', $set[tdbg]) ." rowspan=2 align=center style=\"background: $fcol3; font-size: 12px; color: $fcol1; font-family: Verdana, sans-serif;\">
|
||||
— $set[userlink] —
|
||||
$smallfont
|
||||
@ -558,7 +566,7 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend</div>
|
||||
";
|
||||
|
||||
} elseif ($post['uid'] == "387" && !$x_hacks['host']) {
|
||||
@ -572,7 +580,7 @@
|
||||
$postnum = '';
|
||||
$postss = "s:";
|
||||
}
|
||||
return "$tblstart
|
||||
return "<div class='post'>$tblstart
|
||||
". str_replace('\' valign=top', ' a1\' valign=top', $set[tdbg]) ." rowspan=2 align=center style=\"background: $fcol3; font-size: 12px; color: $fcol1; font-family: Verdana, sans-serif;\">
|
||||
$css
|
||||
<div class=a2>
|
||||
@ -589,7 +597,7 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend</div>
|
||||
";
|
||||
|
||||
|
||||
@ -598,7 +606,7 @@
|
||||
$fcol2 = "#555555";
|
||||
$fcol3 = "#181818";
|
||||
|
||||
return "$tblstart
|
||||
return "<div class='post'>$tblstart
|
||||
". str_replace('valign=top', 'valign=top', $set[tdbg]) ." rowspan=2 align=center style=\"background: $fcol3; font-size: 14px; color: $fcol1; font-family: Verdana, sans-serif; padding-top: .5em;\">
|
||||
$set[userlink]
|
||||
<br><span style=\"letter-spacing: 0px; color: $fcol2; font-size: 10px;\">Collection of nobodies</span>
|
||||
@ -609,7 +617,7 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"background: $fcol3; padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
$set[tdbg] style=\"background: $fcol3; padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend</div>
|
||||
";
|
||||
|
||||
|
||||
@ -671,7 +679,7 @@
|
||||
}
|
||||
|
||||
|
||||
return "$tblstart
|
||||
return "<div class='post'>$tblstart
|
||||
". str_replace('valign=top', 'valign=top', $set[tdbg]) ." rowspan=2 width=200>
|
||||
<table style=\"font-family: Tahoma; font-size: 12px; color: #000; background: #e1cfb6;\" width=100% cellspacing=0>
|
||||
<tr>
|
||||
@ -721,7 +729,7 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend</div>
|
||||
";
|
||||
/*
|
||||
<!--
|
||||
@ -736,8 +744,15 @@
|
||||
elseif ($post['uid'] == 1090 && !$x_hacks['host']) {
|
||||
$brltype = "catgirlredux2011";
|
||||
|
||||
$brsidebar = "
|
||||
<link rel=\"stylesheet\" type=\"text/css\" href=\"http://lain.rustedlogic.net/layouts/css/_br_sidebar.css\" />
|
||||
static $brembedcss = false;
|
||||
$brsidebar = "";
|
||||
if (!$brembedcss) {
|
||||
$brsidebar .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"http://lain.rustedlogic.net/layouts/css/_br_sidebar.css\" />";
|
||||
$brembedcss = true;
|
||||
}
|
||||
|
||||
$brsidebar .= "
|
||||
<div class='post'>
|
||||
$tblstart
|
||||
$set[tdbg] rowspan=2>
|
||||
<div class=\"brsidebar lain-sidebar-$brltype\">
|
||||
@ -753,7 +768,7 @@
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>
|
||||
$tblend";
|
||||
$tblend</div>";
|
||||
|
||||
return $brsidebar;
|
||||
}
|
||||
@ -762,6 +777,7 @@
|
||||
// (Adelheid uses this)
|
||||
else {
|
||||
return "
|
||||
<div class='post'>
|
||||
$tblstart
|
||||
$set[tdbg] rowspan=2>
|
||||
$set[userlink]$smallfont<br>
|
||||
@ -774,7 +790,7 @@
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>
|
||||
$tblend";
|
||||
$tblend</div>";
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user