Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Sept 29, 2011 1:57:21 GMT
Well Nick's known for a while and now it's working I will tell you about it. It's basically a school project for Dragons Den, I'm going to precent this. It's a bit basic and at the moment has the basic post and see status', login, signup etc. Just thought this might be a cool place for a log.
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Sept 29, 2011 4:04:57 GMT
Todays work:
Status's done Post on other peoples profiles done Time which someone posted done
|
|
Nick
VIP
v5 Beta Tester[M:5000]
Philadelphia Eagles: 8-8
Posts: 2,239
|
Post by Nick on Sept 29, 2011 4:59:43 GMT
Attack of the double posting monster! (someone should really make a funny icon for this ) Hey, do you have any screenshots?
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Sept 29, 2011 6:02:19 GMT
Yes, Colin is the only one to see it live though.
|
|
edenwax
VIP
v5 Beta Tester[M:5000]
Posts: 1,266
|
Post by edenwax on Sept 29, 2011 6:20:04 GMT
Wooooooooooooo
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Sept 29, 2011 8:37:33 GMT
Tomorrow I plan on doing friendship things. Not sure how it will work ATM.
|
|
Nick
VIP
v5 Beta Tester[M:5000]
Philadelphia Eagles: 8-8
Posts: 2,239
|
Post by Nick on Sept 29, 2011 13:26:50 GMT
Make a table in your DB called friends, and store 2 user ids in each row. The person who sent the request and the person who recieved it. Then have another row called Status, that will keep track of whether or not the friend request has been accepted.
|
|
Jordan
Elite Poster
[M:5000]
Posts: 286
|
Post by Jordan on Sept 29, 2011 15:46:39 GMT
When do we get to break your code? ;P
|
|
edenwax
VIP
v5 Beta Tester[M:5000]
Posts: 1,266
|
Post by edenwax on Sept 30, 2011 5:08:46 GMT
WHELP. I may have put a pesky javascript redirect to google in...
Just testing vulnerabilities!
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Sept 30, 2011 9:19:34 GMT
At the moment just getting features done then security can be thought about.
|
|
Nick
VIP
v5 Beta Tester[M:5000]
Philadelphia Eagles: 8-8
Posts: 2,239
|
Post by Nick on Sept 30, 2011 13:34:26 GMT
Security > All 'Nuff said
|
|
edenwax
VIP
v5 Beta Tester[M:5000]
Posts: 1,266
|
Post by edenwax on Sept 30, 2011 21:24:26 GMT
Oh! Another thing, instead of having <input type="text" value="Post a status..." /> Use
<input type="text" placeholder="Post a status..." />
It makes it so when you click it the text disappears, and when you click something else it comes back. It beats having to erase the default text.
Also can you delete my statuses, it keeps redirecting me to google
|
|
|
Post by echnaret on Oct 1, 2011 5:25:39 GMT
Oh! Another thing, instead of having <input type="text" value="Post a status..." /> Use <input type="text" placeholder="Post a status..." /> It makes it so when you click it the text disappears, and when you click something else it comes back. It beats having to erase the default text. Also can you delete my statuses, it keeps redirecting me to googleOoh, me likey. I'll have to remember that for my code.
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Oct 1, 2011 18:27:01 GMT
Thanks Colin Trying to work out how to stop you from posting scripts.
|
|
xcessive
Epic Poster
.[M:5000]
Posts: 526
|
Post by xcessive on Oct 2, 2011 2:10:50 GMT
Thanks Colin Trying to work out how to stop you from posting scripts. Uh... htmlspecialchars?
|
|
Cam
Administrator
[M:5000]
Posts: 6,381
|
Post by Cam on Oct 2, 2011 7:53:46 GMT
Thanks Colin Trying to work out how to stop you from posting scripts. Uh... htmlspecialchars? M I saw something about that today
|
|
|
Post by echnaret on Oct 2, 2011 18:00:08 GMT
<?php $filtered_string = filter_var($string, FILTER_SANITIZE_SPECIAL_CHARS); ?> That's what I use.
|
|