grimpirate Posted November 6, 2006 Share Posted November 6, 2006 This is some code I wrote up for a simple forum.Abilities:LoginLogoutRegistrationUses file read and write operations rather than database supportPost new topicsAutomatic locking of topics based on a time limitAutomatic removal of usernames based on a time limitSimple style sheetsLimitations:Cannot yet post repliesAdministrative functions not yet supportedStyle sheets need workBetter code documentationI made it very simple on purpose as I wanted the forum to be purely text, and to not contain any superfluous information.[attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/26375-php-forum-code/ Share on other sites More sharing options...
xtentic Posted November 6, 2006 Share Posted November 6, 2006 Do you have a version online? would be nice seeing what you've created! :) Quote Link to comment https://forums.phpfreaks.com/topic/26375-php-forum-code/#findComment-120620 Share on other sites More sharing options...
XxDeadmanxX Posted November 6, 2006 Share Posted November 6, 2006 [quote author=grimpirate link=topic=114061.msg463892#msg463892 date=1162846933]This is some code I wrote up for a simple forum.Abilities:LoginLogoutRegistrationUses file read and write operations rather than database supportPost new topicsAutomatic locking of topics based on a time limitAutomatic removal of usernames based on a time limitSimple style sheetsLimitations:Cannot yet post repliesAdministrative functions not yet supportedStyle sheets need workBetter code documentationI made it very simple on purpose as I wanted the forum to be purely text, and to not contain any superfluous information.[/quote]Ok , can you upload it so we can see how it looks like?? Quote Link to comment https://forums.phpfreaks.com/topic/26375-php-forum-code/#findComment-120654 Share on other sites More sharing options...
grimpirate Posted November 6, 2006 Author Share Posted November 6, 2006 Update:It's all functional now I'll shortly upload a link to where you can test it out on the web, but in the meantime if people would download and test/debug it, I would appreciate the help. So please make it malfunction lol.To do:Comment code properly and correct style sheets.[attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/26375-php-forum-code/#findComment-120656 Share on other sites More sharing options...
grimpirate Posted November 7, 2006 Author Share Posted November 7, 2006 Well you can see the forum in action at [URL=http://grimpirate.4mak.net/portal.php]http://grimpirate.4mak.net/portal.php[/URL]. The source code for it isn't the same because I had to change the [I]hash()[/I] and [I]scandir()[/I] functions since they only function in PHP5. I had to implement [I]crc32()[/I], [I]md5()[/I], [I]opendir()[/I], [I]readdir()[/I], and [I]closedir()[/I]. Curiously the [I]crc32($somestring)[/I] function does not produce the same result as [I]hash('crc32', $somestring)[/I]. In order to post in the forum it's necessary to register. Basically, that just means make up a username and password. The forum doesn't accept any personal information. Quote Link to comment https://forums.phpfreaks.com/topic/26375-php-forum-code/#findComment-120820 Share on other sites More sharing options...
grimpirate Posted November 10, 2006 Author Share Posted November 10, 2006 [b]Update:[/b]New style up be sure to check it out.I've also started a developer's blog [url=http://www.dreamincode.net/forums/blog/grimbb]http://www.dreamincode.net/forums/blog/grimbb[/url] Quote Link to comment https://forums.phpfreaks.com/topic/26375-php-forum-code/#findComment-122501 Share on other sites More sharing options...
grimpirate Posted November 13, 2006 Author Share Posted November 13, 2006 The passwords were recently hacked on GrimBB. This helped expose a flaw in using md5 as the encoding scheme and the way the forum was storing the passwords. As a solution I changed the board_users.inc file to board_users.php that way its content is not viewable. Futhermore, I created a custom hashing function to encode the passwords to prevent library attacks. Quote Link to comment https://forums.phpfreaks.com/topic/26375-php-forum-code/#findComment-124018 Share on other sites More sharing options...
SharkBait Posted November 13, 2006 Share Posted November 13, 2006 I noticed that when I went to http://grimpirate.4mak.net/portal.php. the URLs were all Localhost ;) Quote Link to comment https://forums.phpfreaks.com/topic/26375-php-forum-code/#findComment-124024 Share on other sites More sharing options...
grimpirate Posted November 13, 2006 Author Share Posted November 13, 2006 Hehe sorry about that SharkBait, I forgot to change the BASE_URL variable in the board_constants.inc file. The board should be ok now. Quote Link to comment https://forums.phpfreaks.com/topic/26375-php-forum-code/#findComment-124037 Share on other sites More sharing options...
grimpirate Posted November 14, 2006 Author Share Posted November 14, 2006 GrimBB now has a new host located at http://tuz.hopto.org/grimbb/ and another update it now supports sorting of topics via their dates. Quote Link to comment https://forums.phpfreaks.com/topic/26375-php-forum-code/#findComment-124229 Share on other sites More sharing options...
grimpirate Posted December 28, 2006 Author Share Posted December 28, 2006 I know I'm reviving a semi-old thread here, but there have been a lot of updates to GrimBB and I know there were some curious to see an online demonstration. Well the final home of GrimBB lies at http://grimbb.awardspace.com/, which will track its changes and versions and the like. Quote Link to comment https://forums.phpfreaks.com/topic/26375-php-forum-code/#findComment-148652 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.