Notings of Attention™
Acmlmboard 2 Released
Github/GIT | @acmlmboard
Chatting Places
Discord

Affiliates
Super Mario Bros. X | Kuribo64 | NeoRHDN
Views: 11,030,472
Main | FAQ | IRC chat | Memberlist | Active users | Latest posts | Stats | Ranks | Online users | Search
11-21-24 11:38 AM
Guest: Register | Login

0 users currently in AcmlmBoard Developer Zone | 6 bots

Main - AcmlmBoard Developer Zone - BoardC - Another Acmlmboard Clone (1)
Next newer thread | Next older thread

Pages: 1 2

Kak
Posted on 07-26-16 08:02 PM (rev. 8 of 10-13-16 08:06 AM by Kak) Link | ID: 91220
Global Moderator

Bullet Bill
well then
Level: 131


Posts: 4658/5515
EXP: 25736431
Next: 688189

Since: 01-29-14
From: ???

Last post: 1046 days
Last view: 992 days
Post #4658

BoardC

This is a little project I've been working on and off since early January that basically attempts to clone the Jul codebase. The original plan was to port the actual Jul in PDO but it failed pretty badly, so I ended up creating this for whatever reason.

The current version (1.0d) is finally "finished" and it's pretty much complete.
well, complete for what can go in a distributable release

Current list of distributed versions:
0.06 - Link
0.15 - Link
1.0 - Link
1.0a - Link (fixes username related issues and a broken query)
1.0b - Link
1.0d - Link (more bugfixes)

Some notes you may want to read:

  • I have tested this under PHP 5.6.15 and MySQL 5.0.11. It should work with later 5.x versions. I'm not sure about PHP 7.x since I've never tested it on that (I assume some features like error reporting won't work properly), but it won't run on anything earlier than PHP 5.5 as it uses functions like password_hash
  • The majority of the settings are stored in lib/config.php. While the installer creates this file, the "supported" way to edit this file is to... edit it yourself. I hope you like using text editors :v
  • Various default strings are stored at the beginning of lib/layout.php (ie: ""user groups"", post syndromes). Again, I hope you like using text editors.
  • To install this you launch install.php and follow the instructions. It's recommended to delete it after a successful install. You should do the same with sandbox.php, (which I use on my local test board for my own convenience - if you have a local test board you really do want to keep it in case of stuff accidentaly blowing up).
  • By default, the installer options are in "AB1.x Compatiblity" mode, which (lazily) recreates register_globals and tccell declarations for AB1.92 porting convenience. I'm not going to change this as clicking on a radio box isn't hard.
  • While this is inspired and is meant to look like Jul, it's not an *exact* clone. There are some... various differences on the way it works.
  • Some of the features, such as the Log, Denied Requests, ipinfo flags and the news engine either do not work or have been removed from the distributable releases, depending on version.

This thread is mostly for feature suggestion and/or to help spot possible bugs in the codebase.

-----

Arisotura
Posted on 08-02-16 11:29 AM Link | ID: 91541
Developer
pancakes
Level: 84


Posts: 1081/1870
EXP: 5546089
Next: 115863

Since: 01-05-12
From: France

Last post: 37 days
Last view: 37 days
I saw that it keeps you IP-banned when you change IPs, that's interesting.


no bonus for global $_POST escaping though -- better escape things whenever they need escaped.

____________________
Kuribo64 - melonDS

want some revolution in your coffee?

Kak
Posted on 08-02-16 11:41 AM (rev. 2 of 08-02-16 11:42 AM by Kak) Link | ID: 91542
Global Moderator

Bullet Bill
well then
Level: 131


Posts: 4706/5515
EXP: 25736431
Next: 688189

Since: 01-29-14
From: ???

Last post: 1046 days
Last view: 992 days
Post #4706
that escaping is used mostly to remove ascii and unicode control codes. that bit can't be touched, especially since other parts of the board (mis)use the null value (ie: the unconventional way poll data is stored)

I assume it's the other part (entities removal) the problem. I put it there to block people who use certain entities to get around the JS filter, but as a downside, well, it disallows entities. I'm not entirely sure how to fix that.

Originally it was worse, as it did all of that to _GET and _COOKIE :P

-----

shan
Posted on 08-26-16 12:21 AM Link | ID: 92216
Normal User

Level: 110


Posts: 340/4003
EXP: 14111312
Next: 297574

Since: 05-23-16

Last post: 448 days
Last view: 447 days
more of an annoyance than a bug, but why only alpha-numerical characters in usernames? at least include dashes and underscores, since a lot of people use those :P

Kak
Posted on 08-26-16 12:00 PM Link | ID: 92220
Global Moderator

Bullet Bill
well then
Level: 131


Posts: 4812/5515
EXP: 25736431
Next: 688189

Since: 01-29-14
From: ???

Last post: 1046 days
Last view: 992 days
Post #4812
Posted by skyu
more of an annoyance than a bug, but why only alpha-numerical characters in usernames? at least include dashes and underscores, since a lot of people use those :P
I think I put it like that so I could use the username directly without having to use a prepared query for everything that required the username.

The idea was that you should use the display name for more complex usernames.

That said, I can add spaces and dashes with no problems, but for everything else nope.

Unrelated, I've been quite slow for the next update, mostly because I'm going through all the files in the attempt to replace dumb shit (see XSS filter or how poll data is stored) and generally have a cleaner formatting.

-----

shan
Posted on 08-26-16 02:54 PM Link | ID: 92222
Normal User

Level: 110


Posts: 341/4003
EXP: 14111312
Next: 297574

Since: 05-23-16

Last post: 448 days
Last view: 447 days
oh, yeah, I was mostly referring to spaces and dashes/underscores.

also, I think I noted this at Jul, but was deleting/erasing posts that weren't on the first page fixed? :P

Kak
Posted on 09-13-16 01:12 PM Link | ID: 92514
Global Moderator

Bullet Bill
well then
Level: 131


Posts: 4843/5515
EXP: 25736431
Next: 688189

Since: 01-29-14
From: ???

Last post: 1046 days
Last view: 992 days
Post #4843
I finally got to release v0.30. That certainly took a while

Featuring:

- A lot of bugfixes
- A new installer
- RPG System lifted directly from AB 1.92 (which was a pretty painful experience due to code differences)
- Things that look more like what you'd see on Jul.
- XSS Protection that isn't an absolute joke
- more misc stuff

If it weren't for the lack of certain details, I'd have considered this v1.0. It's getting closer though.

-----

Kak
Posted on 09-15-16 11:31 PM (rev. 2 of 09-16-16 11:44 AM by Kak) Link | ID: 92574
Global Moderator

Bullet Bill
well then
Level: 131


Posts: 4853/5515
EXP: 25736431
Next: 688189

Since: 01-29-14
From: ???

Last post: 1046 days
Last view: 992 days
Post #4853
oh dear it happened

I actually replaced the horrible, horrible poll format with something that makes more sense (and, unrelated, I fixed the broken thread trash function in the way)

Previously the thread title, briefing, multivote flag and all the choices were serialized in the title field using NULL values. While it worked it would have made adding extra options a pain.

Now the polls and the poll choices have their own tables in the database.

(this is the SQL update for the extra tables)

CREATE TABLE `poll_choices` (
`id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`thread` int(32) NOT NULL,
`name` text NOT NULL,
`color` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `polls` (
`id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`thread` int(32) NOT NULL,
`question` text NOT NULL,
`briefing` text NOT NULL,
`multivote` tinyint(1) NOT NULL DEFAULT '0',
`closed` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
ALTER TABLE `polls` ADD UNIQUE KEY `thread` (`thread`);


This also means that now thread title and poll question are two different things.

EDIT: And I accidentaly left the debug redirect on in this version. whoops.

-----

shan
Posted on 09-16-16 01:06 AM Link | ID: 92584
Normal User

Level: 110


Posts: 454/4003
EXP: 14111312
Next: 297574

Since: 05-23-16

Last post: 448 days
Last view: 447 days
yay more bug reports (you should maybe make a devboard for this :P)

bug #1: Birthdays show up one day off. If I input my birthday as 1/1/2000, it will appear on the header on 1/2/2000.

bug #2: The firewall was a tiny bit trigger happy, my thread was blocked for having
<a href="sadhads>blah</a>
in it. It's trigger happy either way, but BBcode support would be nice. :P

Kak
Posted on 09-16-16 08:52 AM Link | ID: 92612
Global Moderator

Bullet Bill
well then
Level: 131


Posts: 4855/5515
EXP: 25736431
Next: 688189

Since: 01-29-14
From: ???

Last post: 1046 days
Last view: 992 days
Post #4855
1 - I tried doing that in my local copy and the date was correct. Are you sure you haven't edited the default time zone offset? (I think that has a tendency to break stuff, you should always leave it to 0)

2 - There is no firewall in the github version. I tried it in my local copy which has it, but it didn't trigger anything. (though I did notice problems when putting that link as thread name).

3 - BBCode was implemented in v0.30a

-----

shan
Posted on 09-16-16 11:32 AM Link | ID: 92614
Normal User

Level: 110


Posts: 467/4003
EXP: 14111312
Next: 297574

Since: 05-23-16

Last post: 448 days
Last view: 447 days
What I changed was d/m/y to m/d/y, so that could have something to do with it

anyway, I'll go update my copy and see if that fixes issues :P

Kak
Posted on 09-16-16 11:48 AM Link | ID: 92615
Global Moderator

Bullet Bill
well then
Level: 131


Posts: 4856/5515
EXP: 25736431
Next: 688189

Since: 01-29-14
From: ???

Last post: 1046 days
Last view: 992 days
Post #4856
I don't think it's that, as the unix timestamp is identical regardless of date / time format

I did try anyway just to make sure, and it gives me correct results

-----

EzioisAwesome56
Posted on 10-04-16 09:41 PM (rev. 2 of 10-04-16 09:56 PM by EzioisAwesome56) Link | ID: 92997
Normal User
Newcomer

Level: 6


Posts: 1/6
EXP: 806
Next: 101

Since: 08-21-16

Last post: 2967 days
Last view: 1529 days
So I found this bug with the item shop
for some reason you can buy items when you don't even have enough coins to buy it. I even took away all my green coins and it still happens.

This happened in 0.30 and 1.0b
EDIT- forgot to say that after doing said action, you end up with negative coins, with which the issue is still active and you can just keep digging yourself a hole

Kak
Posted on 10-05-16 06:31 PM Link | ID: 93034
Global Moderator

Bullet Bill
well then
Level: 131


Posts: 4895/5515
EXP: 25736431
Next: 688189

Since: 01-29-14
From: ???

Last post: 1046 days
Last view: 992 days
Post #4895
well, I couldn't recreate the bug (checked both on the local copy and on a clean install).

what you said also shouldn't happen, as the item shop checks the correct amount of money before showing the Buy option.

-----

Moonlight Capital
Posted on 10-05-16 07:25 PM Link | ID: 93035
Normal User
Click here for catgirls
Level: 33


Posts: 36/243
EXP: 211950
Next: 17229

Since: 04-26-16
From: Italy

Last post: 2132 days
Last view: 2131 days
Maybe youh broke something in the sql. Have you tried to reinstall the board?

shan
Posted on 10-05-16 09:33 PM Link | ID: 93043
Normal User

Level: 110


Posts: 578/4003
EXP: 14111312
Next: 297574

Since: 05-23-16

Last post: 448 days
Last view: 447 days
It's probably to,do with green coins being weird when there's also a coin value - I was only able to get negative gree coins, not normal coins. Odd.

either way you may want to stop having lots of green coin items :P

EzioisAwesome56
Posted on 10-05-16 11:09 PM Link | ID: 93058
Normal User
Newcomer

Level: 6


Posts: 3/6
EXP: 806
Next: 101

Since: 08-21-16

Last post: 2967 days
Last view: 1529 days
Posted by xkitten
It's probably to,do with green coins being weird when there's also a coin value - I was only able to get negative gree coins, not normal coins. Odd.

either way you may want to stop having lots of green coin items :P


I might have to do that. Would I have to remove all user's green coins?

Kak
Posted on 10-05-16 11:16 PM Link | ID: 93059
Global Moderator

Bullet Bill
well then
Level: 131


Posts: 4896/5515
EXP: 25736431
Next: 688189

Since: 01-29-14
From: ???

Last post: 1046 days
Last view: 992 days
Post #4896
Posted by xkitten
It's probably to,do with green coins being weird when there's also a coin value
excuse me? (both normal and green coins are checked)

unless you can tell me how to reproduce the bug, I have no idea where the problem is.

-----

EzioisAwesome56
Posted on 10-05-16 11:33 PM Link | ID: 93060
Normal User
Newcomer

Level: 6


Posts: 4/6
EXP: 806
Next: 101

Since: 08-21-16

Last post: 2967 days
Last view: 1529 days
Posted by Kak
Posted by xkitten
It's probably to,do with green coins being weird when there's also a coin value
excuse me? (both normal and green coins are checked)

unless you can tell me how to reproduce the bug, I have no idea where the problem is.


Well them IDK, if you want a live demo (Plz dont destory my board), pm me and I'll give you a link to the board where it happens

shan
Posted on 10-05-16 11:52 PM Link | ID: 93061
Normal User

Level: 110


Posts: 588/4003
EXP: 14111312
Next: 297574

Since: 05-23-16

Last post: 448 days
Last view: 447 days
guess not, the board did keep bugging letting me achieve negative green coins (now it let's me have negative normal coins now, looks like my theory was wrong, heh)
Pages: 1 2


Next newer thread | Next older thread
Main - AcmlmBoard Developer Zone - BoardC - Another Acmlmboard Clone (1)


Acmlmboard v2.5.6 (06/11/2024)
© 2005-2024 Acmlm, Emuz, et al.

Page rendered in 5.824 seconds. (875KB of memory used)
MySQL - queries: 216, rows: 608/641, time: 5.769 seconds.