?

Log in

No account? Create an account

Previous Entry | Next Entry

Oof.

Okay, have to think out this validation system better before attempting to write out the code. ee, Am trying to write the 'edit' script for the wiki. And it is definitely something that will require more planning, instead of writing on the fly..  (^*^);

Arg.. lessee.

If info (name/email/password) entered (manually or from cookie), check against database. If valid, and user is not blocked, submit entry to the 'edits' database, with corresponding user ID attached. If current IP has not been logged, log it. Check info against cookie: if no cookie, create; if mismatching cookie, delete and create new. If info mismatch against database, send error message. If user is blocked, send error message.

If no info entered (manually or from cookie), check IP against database. If IP attached to existing user, check if blocked. If user blocked, send error message. If not blocked, prompt for login. If login declined, create new user ID with IP address; attach new user ID to entry, and submit to 'edits' database. If IP not attached to existing user, create new user ID with IP address; attach new user ID to entry, and submit to 'edits' database. Create new cookie for user ID.

Am also thinking of overwriting cookies so they remain in the system.. deleting old, each time an entry is made, and replacing it with a new cookie, set to expire at a later date. User files will be editable (change name/email/password), once one is logged in (registration/login not required to use site.. info simply maintained on each user to keep people from abusing the site). The interesting thing will be users who do not enter information initially.. if they decide they want a name/email/password to post with.. how to change that, when they start with a blank user file? hrm..

Comments

( 2 comments — Leave a comment )
sablemoonsilk
Dec. 27th, 2004 03:39 am (UTC)
*so... utterly... confused...*
aekiy
Dec. 27th, 2004 06:16 am (UTC)
ee.. :hug: Sorry. Is a programming thing. Trying to figure out how to set up a website. Just needing to actually type something up to help the thought processes go. (^*^);
( 2 comments — Leave a comment )

Profile

lilga
aekiy
Gorotsuki Tenshi
miniverse.nu

Latest Month

August 2012
S M T W T F S
   1234
567891011
12131415161718
19202122232425
262728293031 

Tags

Powered by LiveJournal.com
Designed by Lilia Ahner