I've released the MM Members section version 1.0 Super SUPER Alpha.
Please report known bugs here. I'm working on it slowly
Features:
-Unique login
-Ability to customize your information
-Admin panel 
-MM logo designated for paid members
-Ability to have an infinute number of cars (for those of you who have pooloads)
-Ability to upload one image per car
-Ability to view everyone's UPDATED info realtime
Known bugs
1. no appostrophes allowed yet
2. IE Only: If you upload a picture over another, it will work, but you need to refresh the page for it to show up.
Hope you guys like it. I think it was worth the wait
EDIT:
TODO LIST:
1. Last modified
2. Icon for pictures by username
3. Officer positions
woo hoo!!!
1996 BMW 328is white │ 89 BMW 325i track car │84 BMW 325e for sale!│Past: 94 Honda Del Sol S, 2003 Toyota 4Runner V8 Limited, 1996 BMW 328i
e30/e36 parts for sale... PM me
JackoliciousLegs Wrote:I've released the MM Members section version 1.0 Super SUPER Alpha.
Please report known bugs here. I'm working on it slowly 
I do like it. Nice work Jack.
Formatting of the member pages is a bit strange in Safari (long mod lines don't wrap, thus widening the whole layout), but it looked fine in Firefox. Other than that - no issues so far.
My two feet.
looks AWESOME Jack
2010 Civic Si
2019 4Runner TRD Off-Road
--------------------------
Past: 03 Xterra SE 4x4 | 05 Impreza 2.5RS | 99.5 A4 Quattro 1.8T | 01 Accord EX | 90 Maxima GXE | 96 Explorer XLT
mongooze Wrote:Formatting of the member pages is a bit strange in Safari (long mod lines don't wrap, thus widening the whole layout), but it looked fine in Firefox. Other than that - no issues so far. Right now I'm using pre tags to deal with database output so I don't have to put in br tags at the end of every line. There's got to be a better way and I'm looking into it.
edit: phpbb parses every piece of form input for hard returns and inserts BRs. Ugh.... i guess I'll do that.
some very minor formatting errors in Opera, but better than most sites show up! :wink: Good work!
JackoliciousLegs Wrote:mongooze Wrote:Formatting of the member pages is a bit strange in Safari (long mod lines don't wrap, thus widening the whole layout), but it looked fine in Firefox. Other than that - no issues so far. Right now I'm using pre tags to deal with database output so I don't have to put in br tags at the end of every line. There's got to be a better way and I'm looking into it.
Why are you bothering with pre at all? Run the db output through htmlspecialchars() and be done with it - let the wrapping happen naturally within the td tags... or use the white-space property applied to your 'thetext' css class, lots of options there.
I'm curious as to why you're doing things the way you are simply because I'm having to get back into the layout and design game after a few years - most of my experience is backend data manipulation and then a lot of random low-level stuff that has nothing to do with web apps :roll:
didn't know about htmlspecialchars() ... implementing
edit: that doesn't handle line breaks
JackoliciousLegs Wrote:didn't know about htmlspecialchars() ... implementing
edit: that doesn't handle line breaks
Thats correct, it doesn't. What it does do is turn all of the potential nasties into HTML-safe strings like & and " and < and >, etc...
As for the line breaks, are you trying to preserve line breaks from people's entries into the database, or just control the wrapping at a specific character width?
I'm not trying to preserve at a specific width. I just figure I have three options:
1. Output directly to browser and lose hard returns that the user entered
2. Use PRE but cut it off at a certain number of chars
3. Write a function that inserts "<BR>" after every line break in a mysql response
If someone has a quick fix let me know... other wise 3 is the way i'm going
and i thought i was a loser...
I Am Mike
4 wheels: '01 RAV4 (Formerly '93 Civic CX, '01 S2000, '10 GTI, '09 A4 Avant)
2 wheels: '12 Surly Cross-Check Custom | '14 Trek Madone 2.1 105 | '17 Norco Threshold SL Force 1 | '17 Norco Revolver 9.2 FS | '18 BMC Roadmachine 02 Two | '19 Norco Search XR Steel (Formerly '97 Honda VFR750F, '05 Giant TCR 2, '15 WeThePeople Atlas 24, '10 Scott Scale 29er XT, '11 Cervelo R3 Rival, '12 Ridley X-Fire Red)
No longer onyachin.
JackoliciousLegs Wrote:I'm not trying to preserve at a specific width. I just figure I have three options:
1. Output directly to browser and lose hard returns that the user entered
2. Use PRE but cut it off at a certain number of chars
3. Write a function that inserts "<BR>" after every line break in a mysql response
If someone has a quick fix let me know... other wise 3 is the way i'm going
nl2br() might work...
oh, another thing... passwords are hashed i.e. I can't see them so don't worry
JackoliciousLegs Wrote:oh, another thing... passwords are hashed i.e. I can't see them so don't worry 
You need to hash, add salt, and hash again. I can crack MD5 single hash on my P4 in 1hr. Add a field to the DB (3 chars is enough) that will store the salt. Generate salt at random.
So, say they enter sEcReT when they create the account you would,
$randChars = gen3RandChars();
$hash = md5( "sEcReT" );
$hash .= $randChars;
$hash = md5( $hash );
savePassword( $username, $hash, $randChars );
Then when they login you,
$testPW = md5( $enteredPassword );
$testPW .= $randChars;
$testPW = md5( $testPW );
if( strcmp( $testPW, $hash ) ) $valid = true;
else $valid = false;
etc...
Since you are NOT using SSL for the login, may I suggest that you do the first Hash in javascript that way you are not sending the user's PW via clear text. Then you add the salt, hash and compare. The majority of your users are at JMU, on the same network. Do you have ANY idea how easy it is to sniff a network like that? You are CS, you should. Oh, they are using switches hu, well even switches can be sniffed, all you have to do is MAC flood the switch and it will default to fail open mode where all packets will be sent to all ports, just like a hub, drop the NIC in promiscuous mode and sniff away for that plain text password...
For the single quote problem, make sure magic quotes is turned off in php.ini then use the functions john suggested. Then read this
<!-- m --><a class="postlink" href="http://www.webmasterstop.com/tutorials/php-magic-quotes.shtml">http://www.webmasterstop.com/tutorials/ ... otes.shtml</a><!-- m -->
and do what is says.
--chad
white_2kgt Wrote:I can crack MD5 single hash on my P4 in 1hr.
I can do it in 50min on my Athlon :lol: .
Why do people just post what they are thinking? Without thinking.
2012 Ford Mustang
1995 BMW 540i/A
1990 Eagle Talon TSI AWD
addslashes are coming.
i won't discuss the security of the site here but there are many easy ways into systems like this.
JackoliciousLegs Wrote:addslashes are coming.
i won't discuss the security of the site here but there are many easy ways into systems like this.
Then why add more holes?
ViPER1313 Wrote:white_2kgt Wrote:I can crack MD5 single hash on my P4 in 1hr.
I can do it in 50min on my Athlon :lol: .
Bullshit  You don't have my program.
--chad
MichaelJComputer Wrote:and i thought i was a loser...
Damn, me too.
(09-25-2019, 03:18 PM)V1GiLaNtE Wrote: I think you need to see a mental health professional.
I think you should just remove all security measures... Think of all the fun that could be had!!!
My two feet.
|