Updating the code

This commit is contained in:
RanAwaySuccessfully 2016-04-24 10:31:53 -03:00
commit a261a78ced
9 changed files with 40 additions and 18 deletions

19
README.md Normal file
View File

@ -0,0 +1,19 @@
# jul
Jul is a fork of "Acmlmboard 1.92", an *ancient* system designed by Acmlm (not me). This repository is mostly kept so that improvements and updates are possible by forum members, and to patch any possible vulnerabilities. The actual running code itself includes a few protections that are not in this repository, mostly to prevent and guard against automated attacks.
The code is largely from 2005 and earlier, and has not seen major work in about as long.
## installing
You are on your own for the time being. No default configuration or database dump is provided at this time.
## contributing
Pull requests are welcome, and are usually processed in a timely basis.
## license
This code is **not under a known license at this time**. That is not to say it is "free software" -- it is just not distributed under any license at the time being. In the future, maybe this will change.

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
images/starsbg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

View File

@ -1342,12 +1342,12 @@ function addslashes_array($data) {
$extra = " (". xk($color[1]) ."Password matches: ". xk($color[0]) . $in['pmatch'] . xk() .")";
}
$out = "1|New user: #". xk(12) . $in['id'] . xk(11) ." $user ". xk() ."(IP: ". xk(12) . $in['ip'] . xk() .")$extra: http://jul.rustedlogic.net/?u=". $in['id'];
$out = "1|New user: #". xk(12) . $in['id'] . xk(11) ." $user ". xk() ."(IP: ". xk(12) . $in['ip'] . xk() .")$extra: https://jul.rustedlogic.net/?u=". $in['id'];
} else {
// global $sql;
// $res = $sql -> resultq("SELECT COUNT(`id`) FROM `posts`");
$out = "$dest|New $type by ". xk(11) . $user . xk() ." (". xk(12) . $in['forum'] .": ". xk(11) . $in['thread'] . xk() ."): http://jul.rustedlogic.net/?p=". $in['pid'];
$out = "$dest|New $type by ". xk(11) . $user . xk() ." (". xk(12) . $in['forum'] .": ". xk(11) . $in['thread'] . xk() ."): https://jul.rustedlogic.net/?p=". $in['pid'];
}

View File

@ -74,8 +74,11 @@
$css = "";
} elseif (isset($schemetype) && $schemetype == 1) {
$css = "<link rel='stylesheet' href='/css/base.css' type='text/css'><link rel='stylesheet' type='text/css' href='/css/$schemefile.css'>";
$dateformat = "m/d/y h:i";
$dateshort = "m/d/y";
// possibly causes issue #19 - not sure why this was here
// likely irrelevant after addition of custom date formats
// (remove this later)
//$dateformat = "m/d/y h:i";
//$dateshort = "m/d/y";
// backwards compat
global $bgcolor, $linkcolor;
@ -145,6 +148,10 @@
}
code br { display: none; }
input[type=radio] { color: black; background: white; }
.pstspl1 {opacity:0;}
.pstspl1:hover {opacity:1;}
.pstspl2 {background:#000;color:#FFF;display:block;}
";
}
@ -281,22 +288,19 @@
if (!$ipbanned && !$torbanned && (!defined("IS_AJAX_REQUEST") || !IS_AJAX_REQUEST)) {
// Don't increment the view counter for bots
// Todo: Actually check for bots and disable it because hdurfs
$sql->query("UPDATE misc SET views=$views");
if($views%1000000>999000 or $views%1000000<1000) {
if($views%10000000>9999000 or $views%10000000<1000) {
$u=($loguserid?$loguserid:0);
$sql->query("INSERT INTO hits VALUES ($views,$u,'$userip',".ctime().')');
}
if ($views%1000000>999994 || ($views % 1000000 >= 991000 && $views % 1000 == 0) || ($views % 1000000 >= 999900 && $views % 10 == 0) || $views % 1000000 < 5) {
// Print out a message to IRC whenever a 10-million-view milestone is hit
if ($views%10000000>9999994 || ($views % 10000000 >= 9991000 && $views % 1000 == 0) || ($views % 10000000 >= 9999900 && $views % 10 == 0) || $views % 10000000 < 5) {
xk_ircsend("0|View ". xk(11) . str_pad(number_format($views), 10, " ", STR_PAD_LEFT) . xk() ." by ". ($loguser['id'] ? xk(11) . str_pad($loguser['name'], 25, " ") : xk(12) . str_pad($_SERVER['REMOTE_ADDR'], 25, " ")) . xk() . ($views % 1000000 > 500000 ? " (". xk(12) . str_pad(number_format(1000000 - ($views % 1000000)), 5, " ", STR_PAD_LEFT) . xk(2) ." to go" . xk() .")" : ""));
}
if ($views == 44444444 || $views == 55555555 || $views == 66666666 || $views == 67108864) {
xk_ircsend("0|View ". xk(11) . str_pad(number_format($views), 10, " ", STR_PAD_LEFT) . xk() ." by ". ($loguser['id'] ? xk(11) . str_pad($loguser['name'], 25, " ") : xk(12) . str_pad($_SERVER['REMOTE_ADDR'], 25, " ")) . xk());
}
}
// Dailystats update in one query
@ -367,7 +371,7 @@
$meta = array();
}
$metatag = '';
$metatag = '';
if (filter_bool($meta['noindex']))
$metatag .= "<meta name=\"robots\" content=\"noindex,follow\" />";
@ -384,7 +388,6 @@
$metatag
<link rel=\"shortcut icon\" href=\"/favicon". (!$x_hacks['host'] ? rand(1,8) ."" : "" ) .".ico\" type=\"image/x-icon\">
$css
<link rel=\"stylesheet\" href=\"http://xkeeper.net/img/layouts/fonts/stylesheet.css\" type=\"text/css\">
</head>
$body
$yyy

View File

@ -1,5 +1,5 @@
<?php
$boardtitle='<img src="http://jul.rustedlogic.net/xkeeper/img/pointlessbannerv2.png">';
$boardtitle='<img src="images/pointlessbannerv2.png">';
$newthreadpic='New thread';
$newreplypic='New reply';
$bgimage='images/desolation/desolation.jpg';

View File

@ -11,7 +11,7 @@
$numcols = 100; # Width of text entry, just use css extra again
# Banner; comment for default
$boardtitle = '<img src="http://jul.rustedlogic.net/xkeeper/img/pointlessbannerv2-2.png" title="Illegal in 10 states!">';
$boardtitle = '<img src="images/pointlessbannerv2-2.png" title="Illegal in 10 states!">';
# Page background color, background image, and text color
$bgcolor = '000810';

View File

@ -2,7 +2,7 @@
$formcss=1;
$inputborder='663399';
$bgimage='images/nightscheme_starsbg.png';
$bgimage='http://xkeeper.net/img/starsbg.png';
$bgimage='images/starsbg.png';
$bgcolor='000F1F';
$textcolor='DDDDDD';
/*