lainchan / λ

bugfix

Anonymous · 2015-10-23 23:02
O great /Lambda/ will you please find it in your hearts to fix the newest bug on our board software? https://github.com/lainchan/lainchan/issues/40
Anonymous · 2015-10-23 23:34
I really would love to contribute but I am pretty new and learning C so I dont know how I could help as it looks like everything is in php. friendly bump tho
Anonymous · 2015-10-24 00:50
>>10910 Wooden Thinkpad? Someone's practically committing suicide. When wood is subjected to heat for a long time, it becomes super-dry. Super-dry wood is highly flammable.
Anonymous · 2015-10-24 00:56
>>10910 well what does ['board_locked'] do?
Anonymous · 2015-10-24 01:46
Have you tried reverting https://github.com/lainchan/lainchan/commit/6d28f9c98e8b436e0f79f0abb56f4d706fe3722d , e.g. restoring logic to https://github.com/lainchan/lainchan/commit/a93f168c79a0c8137a6d9032d42e598469b4b072 e.g. if (!$_POST['mod'] && $config['board_locked']) { error("Board is locked"); }
Anonymous · 2015-10-24 05:03
>>10915 Isn't the extra expensive model Novena?
Anonymous · 2015-10-24 05:18
>>10920 yes
Anonymous · 2015-10-24 16:42
I will give it a shot, trying to set up an environment right now.
Anonymous · 2015-10-24 18:57
>>10937 nvm, I gave up, it too much of a pain to set up.
Anonymous · 2015-10-24 21:59
>>>10910 the "board_locked" is set once in /inc/config.php, L 298 and called once in post.php L 20. Those 2 files are straight copies from vichan, nothing in those files has been altered. If locking the boards doesn't work isn't this a vichan bug? I tried to run the lainchan code locally from an old commit, there seem to be some problem with the latest commit. It told me the install was successful, I don't see an index file tho. Not sure how to run this Are you sure that true is spelled correctly, in all lowercase?
Anonymous · 2015-10-24 22:04
>>10910 Also, according to the comments mods are still able to post even if $config["board_locked"] == true. It only has an effect on regular users.
Anonymous · 2015-10-24 22:38
>>10920 That proves that money can't buy everything.
Anonymous · 2015-10-25 05:04
if (!$mod) { // Liar. You're not a mod. error($config['error']['notamod']); }
Anonymous · 2015-10-25 05:07
It's not a bug. Your software doesn't have that feature. You can either make it impossible for non-mods to post at all by changing the config file or you can let everyone post. >>10918 Then only mods would be able to post.
Anonymous · 2015-10-25 19:51
>>10955 >Your software doesn't have that feature. Sounds like a bug.
Anonymous · 2015-10-25 20:09
>>10955 We want a board to be locked to people who aren't mods/admin.
Anonymous · 2015-10-25 22:51
>>10964 >Sounds like a bug. Yes, in some sense. >>10966 Sorry, I misunderstood. You want the entire board locked? I'll look at it.
Anonymous · 2015-10-26 00:20
>>10966 Why do you need to be able to post on a locked board?
Anonymous · 2015-10-26 06:54
>>10983 So they can scheme without the plebs knowing.