diff --git a/README.md b/README.md new file mode 100644 index 0000000..d3a07fc --- /dev/null +++ b/README.md @@ -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. diff --git a/images/pointlessbannerv2-2.png b/images/pointlessbannerv2-2.png new file mode 100644 index 0000000..4367787 Binary files /dev/null and b/images/pointlessbannerv2-2.png differ diff --git a/images/pointlessbannerv2.png b/images/pointlessbannerv2.png new file mode 100644 index 0000000..b56d414 Binary files /dev/null and b/images/pointlessbannerv2.png differ diff --git a/images/starsbg.png b/images/starsbg.png new file mode 100644 index 0000000..dceeda8 Binary files /dev/null and b/images/starsbg.png differ diff --git a/lib/function.php b/lib/function.php index 9fddcaa..5b76d15 100644 --- a/lib/function.php +++ b/lib/function.php @@ -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']; } diff --git a/lib/layout.php b/lib/layout.php index a2001a3..d16285f 100644 --- a/lib/layout.php +++ b/lib/layout.php @@ -74,8 +74,11 @@ $css = ""; } elseif (isset($schemetype) && $schemetype == 1) { $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 .= ""; @@ -384,7 +388,6 @@ $metatag $css - $body $yyy diff --git a/schemes/desolation.php b/schemes/desolation.php index 7897a66..c74c7a2 100644 --- a/schemes/desolation.php +++ b/schemes/desolation.php @@ -1,5 +1,5 @@ '; + $boardtitle=''; $newthreadpic='New thread'; $newreplypic='New reply'; $bgimage='images/desolation/desolation.jpg'; @@ -43,4 +43,4 @@ $scr4='701077'; $scr5='A040AA'; -?> \ No newline at end of file +?> diff --git a/schemes/fragmentation2.php b/schemes/fragmentation2.php index 2b9ea3b..468dd43 100644 --- a/schemes/fragmentation2.php +++ b/schemes/fragmentation2.php @@ -11,7 +11,7 @@ $numcols = 100; # Width of text entry, just use css extra again # Banner; comment for default - $boardtitle = ''; + $boardtitle = ''; # Page background color, background image, and text color $bgcolor = '000810'; @@ -79,4 +79,4 @@ body, .tdbg1, .tdbg2 {background-attachment: fixed; background-position: top-left;} input, textarea, select {border: 1px solid #008;} "; - \ No newline at end of file + diff --git a/schemes/night.php b/schemes/night.php index cfebc93..0a42698 100644 --- a/schemes/night.php +++ b/schemes/night.php @@ -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'; /*