Notice: You have been identified as a bot, so no internal UID will be assigned to you. If you are a real person messing with your useragent, you should change it back to something normal.

Minichan

Topic: While writing the new AnonBBS software...

AnonBBS !!jCWdyGwJm started this discussion 15 years ago #9,072

I came into an error...
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/u489911180/public_html/index.php on line 7
The heck is this?

Anonymous B joined in and replied with this 15 years ago, 5 minutes later[^] [v] #160,623

It's jewspeak for forgetting the $ on a variable.

TheSheep !kJ.A4PF7.k joined in and replied with this 15 years ago, 16 seconds later, 5 minutes after the original post[^] [v] #160,624

@OP
> The heck is this?

It's an error in line 7 in index.php

Anonymous D joined in and replied with this 15 years ago, 6 minutes later, 12 minutes after the original post[^] [v] #160,625

@160,623 (B)
> It's jewspeak for forgetting the $ on a variable.
No it isn't.

Anonymous B replied with this 15 years ago, 2 minutes later, 14 minutes after the original post[^] [v] #160,626

@previous (D)
In the OP's case, it probably is. I doubt he's using OOP.

Edit: Nevermind, misread the error.

(Edited 2 minutes later.)

AnonBBS !!jCWdyGwJm (OP) replied with this 15 years ago, 3 minutes later, 18 minutes after the original post[^] [v] #160,629

@previous (B)
Not using OOP.
I managed to fix that error, now I'm getting this one:
Fatal error: Class 'sqlite_open' not found in /home/u489911180/public_html/board.php on line 3
i don't think they have SQLite installed

Anonymous D replied with this 15 years ago, 59 seconds later, 19 minutes after the original post[^] [v] #160,630

@160,626 (B)
But if it was just missing $ it would say "unexpected =".

T_PAAMAYIM_NEKUDOTAYIM is for the double colon.

r04r joined in and replied with this 15 years ago, 3 minutes later, 22 minutes after the original post[^] [v] #160,631

http://en.wikipedia.org/wiki/Scope_resolution_operator#PHP

@160,629 (AnonBBS !!jCWdyGwJm)
There is no class named sqlite_open. Maybe you want the function.

What a glorious site this will be. Also, sqlite for a PHP site. Lol. Enjoy the raep.

(Edited 19 seconds later.)

Anonymous F joined in and replied with this 15 years ago, 4 minutes later, 27 minutes after the original post[^] [v] #160,633

> Syntax error
Check your code for any incorrect uses of "eye" and such. This sort of error can become very annoying if not sorted out quickly.

AnonBBS !!jCWdyGwJm (OP) replied with this 15 years ago, 3 minutes later, 30 minutes after the original post[^] [v] #160,635

@160,631 (r04r)
No ::s anywhere... ;_;
@previous (F)
I re: Thee or thy 10 mile satellite

r04r replied with this 15 years ago, 39 seconds later, 31 minutes after the original post[^] [v] #160,637

@previous (AnonBBS !!jCWdyGwJm)
Try posting the code

Anonymous F replied with this 15 years ago, 1 minute later, 33 minutes after the original post[^] [v] #160,640

@160,635 (AnonBBS !!jCWdyGwJm)
eye r at cardiff by the c re: 10 mile satellite.

eye wood never claim to eye r re: m a t t m i l l e r has admitted his peadophilic tendencies and eels has sed he supports re: thy thee r eye

AnonBBS !!jCWdyGwJm (OP) replied with this 15 years ago, 19 seconds later, 33 minutes after the original post[^] [v] #160,642

@160,637 (r04r)
http://anonbbs.pastebay.com/132200
> inb4 stating the obvious (I'm not good at this SQL stuff)

(Edited 1 minute later.)

r04r replied with this 15 years ago, 5 minutes later, 39 minutes after the original post[^] [v] #160,644

@previous (AnonBBS !!jCWdyGwJm)
You're mixing OO and procedural. sqlite_open returns a resource, not a class so you can't later call on it with $db->queryExec. You'll have to use sqlite_query or whatever (like 24).

Also need to declare $db being global in each of the functions or they won't be able to access the variable.

And you're using $result on line 16 where it should be $row

And I won't begin over the XSS vulns & sql injection you got in there.

Did I miss anything else?

Oh and at line 7 youre probably missing a space in the sql query

(Edited 1 minute later.)

AnonBBS !!jCWdyGwJm (OP) replied with this 15 years ago, 1 minute later, 40 minutes after the original post[^] [v] #160,645

@previous (r04r)
:D
> yep, $db = new sqlite_open didn't work

(Edited 9 minutes later.)

definitely not protip joined in and replied with this 15 years ago, 1 hour later, 2 hours after the original post[^] [v] #160,718

@160,633 (F)
lol 10/10

@160,623 (B)
This is mostly correct :3

definitely not protip double-posted this 15 years ago, 1 minute later, 2 hours after the original post[^] [v] #160,720

@160,644 (r04r)
> And I won't begin over the XSS vulns & sql injection you got in there.

shhhh ^_^

Anonymous H joined in and replied with this 15 years ago, 35 minutes later, 3 hours after the original post[^] [v] #160,738

Crazy idea: Come up with your own name for a BBS.

vocalon !!jdS+H4VgV joined in and replied with this 15 years ago, 3 minutes later, 3 hours after the original post[^] [v] #160,742

@previous (H)
Crazy idea: Sup to4str?

definitely not protip replied with this 15 years ago, 45 seconds later, 3 hours after the original post[^] [v] #160,744

@previous (vocalon !!jdS+H4VgV)
COPYRIGHTED AND TRADEMARKED BRANDING WORLDWIDE

Nega !34Kas0OdzM joined in and replied with this 15 years ago, 12 seconds later, 3 hours after the original post[^] [v] #160,746

Do go plan for it to be active, or is it just an exercise?
@160,738 (H)
Everyone rips off everyone these days.

Anonymous K joined in and replied with this 15 years ago, 5 seconds later, 3 hours after the original post[^] [v] #160,747

@160,738 (H)
How about VulnerableBBS?

Or the Pedo Dump?

(Edited 1 minute later.)

AnonBBS !!jCWdyGwJm replied with this 15 years ago, 3 minutes later, 3 hours after the original post[^] [v] #160,750

@160,746 (Nega !34Kas0OdzM)
Just an exercise.

definitely not protip replied with this 15 years ago, 4 minutes later, 3 hours after the original post[^] [v] #160,753

@160,746 (Nega !34Kas0OdzM)
Postmodernist scum detected

ltamake !!onnLC5KY8 joined in and replied with this 15 years ago, 1 hour later, 4 hours after the original post[^] [v] #160,814

@160,738 (H)
sup to4str

@160,642 (AnonBBS !!jCWdyGwJm)
Don't send user-submitted values to the database uncleansed. Also, needs moar htmlspecialchars().

Nega !34Kas0OdzM replied with this 15 years ago, 9 hours later, 14 hours after the original post[^] [v] #161,309

@160,753 (definitely not protip)
<3

AnonBBS.tk !!jCWdyGwJm replied with this 15 years ago, 5 minutes later, 14 hours after the original post[^] [v] #161,310

@160,814 (ltamake !!onnLC5KY8)
Like I said in the OP, it's not finished, here's the functions file now:
http://pastebay.com/132253
:

Please familiarise yourself with the rules and markup syntax before posting.