Computer Science Canada

Computer Forum!!

Author:  DanShadow [ Sun Jan 25, 2004 4:53 pm ]
Post subject:  Computer Forum!!

This is a l33t program I made last night, which is pretty great. The main purpose of this program was just testing, etc...but eventually (maybe) ill code up a server, and make it so the message b oard is multi-user with multiple computers..but for now, here it is. The program has the ability to create new accounts, consisting of their user access, user name, and password. If a user tries to create a name that already exists, it wont be able too Very Happy . Also, when you try to login, and if the username doesnt exist, it will prompt the user to either create a new login, or sign it with a different name. Once logged in, a normal user has the ability to read posts, write posts, exit and change their password. [DOESNT WORK RIGHT YET!!] If you create a user by the name of "Dan"...(hahah) then you are given administrator abilities. (which include deleting posts, and editing posts (glitchy)). This forum can be accessed by any one using the computer on that login. Each post contains the senders name, the su bject of the message, the message, and the date that post was written. This program can hold a maximum of 50 posts, so the administrator must look into it every once in a while, and delete useless posts. Now DO NOT delete the "Forum" file...the program is dependant on that...I couldnt get it working so that if "Forum" didnt exist, it would create another one...for some reason it kept saying that the datafile stream was already opened. Confused ..anyway. Some use for this could be like this:
Some people using the program wrote:

Sender: Mom
Subject: read this jimmy
Message: Jimmy! Dont forget to do your chores you lazy kid!
Date Written: 24 Jan 04, 15:42:23
------------
Sender: Jim
Subject: to mom
Message: Ok mom...geez, I did the chores. Post me a message when you get home from work !
Date Written: 25 Jan 04, 22:28:57

see? ....well its a pretty good program...and it has protection f rom stupid users trying to put string values in integers, and from people trying to overflow integers, and from people trying to read the "67th" post even though there are only "50". Wink Please tell me what you think!

Author:  Lezlan [ Sun Jan 25, 2004 5:38 pm ]
Post subject: 

so... i don't get it is this a forum for someone to talk to them selves on?

Author:  shorthair [ Sun Jan 25, 2004 5:39 pm ]
Post subject: 

Just look in his message , its not fins=ished yet , its just a taste of what it could do

Author:  sport [ Sun Jan 25, 2004 8:00 pm ]
Post subject: 

1) There is no exit after you enter the forum
2) If you create a user name and then log in, but misspell the password it will ask you to enter the user name and if you enter the same user name it will tell you that the user name does not exist and will ask you to create the user name.

Author:  shorthair [ Sun Jan 25, 2004 8:11 pm ]
Post subject: 

only a person that cant spell would ver find that bug Very Happy Just playin wih ya sport , its good that the problems are being brought up thosh , helps Dan make hte next version Sweeter , than sweet , woul you ever avtually consider making this a real forum dan ?

Author:  DanShadow [ Sun Jan 25, 2004 8:56 pm ]
Post subject: 

Yeah...and listen to this:
Command List:
- commands == displays command list
- read 1 == reads the first msg
- post msg == post a message
- exit == exit the forum

sorry...forgot to post that, lol.
And yes, I am thinking of making it an actual forum.....but exams are on right now...and Im just starting to learn how to use a server to connect to multiple clients. But [i]eventually[i], ill probably have it so the forum datafile is at my house, and all of you will connect to a server on my PC, that will save, and send the forum data around to all the clients. So yes, th is is just a taste of what can be done. Very Happy

To: Sport
have you ever tried TYPING "exit" to exit the forum?? duh
To: Lezlan
no...this forum is to talk to other people on your computer. Like my mom asks me to leave notes, or phone messages telling her if im going out for a long period of time...so I designed this to leave messages. It tells her the time I wrote it, who wrote it, the subject, and the message..works out Smile

Author:  santabruzer [ Sun Jan 25, 2004 9:03 pm ]
Post subject: 

what about encrypting and protecting your user database, or "sav"s files

Author:  DanShadow [ Sun Jan 25, 2004 9:07 pm ]
Post subject: 

grrr...dont ruin my moment. Read my signature damn you, then rethink your post!! Twisted Evil hahahah Twisted Evil
Sorry, lol. I havent had time to encrypt all that crap....to hard right now with exams and all. Crying or Very sad

Author:  santabruzer [ Sun Jan 25, 2004 9:11 pm ]
Post subject: 

ha ha.. it's pretty simple to do.. and i guess exams are killing us all.. but seriously.. if you ever do make a forum product like this.. be sure to encrypt Smile ... whatever you do, make sure that if you do, don't write it in turing Razz

Author:  shorthair [ Sun Jan 25, 2004 9:20 pm ]
Post subject: 

i think the point , is to show that turing ca ndo this , its to pus hthe limits of turing , that why i code in turing sometimes ,jsut to say that i got turing ot do this and that , sure its not efficiant butit works

Author:  DanShadow [ Sun Jan 25, 2004 10:01 pm ]
Post subject: 

....wow shorthair....thanks for backing me up...multiple times.... Laughing
(and shorthair is correct.)


: