Zeusking19 wrote:
Warning: include(sql.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\includes\Localsettings.php on line 14
Warning: include() [function.include]: Failed opening 'sql.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\includes\Localsettings.php on line 14
The loading bar appears, but that is about it.
First of all, does sql.php exist? Second, is it in the same folder as Localsettings.php? And third, is it type include('sql.php'); or include(sql.php);?
Offline
Zeusking19 wrote:
Warning: include(sql.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\includes\Localsettings.php on line 14
Warning: include() [function.include]: Failed opening 'sql.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\includes\Localsettings.php on line 14
The loading bar appears, but that is about it.
bug is filed here
Offline
Magnie wrote:
Zeusking19 wrote:
Warning: include(sql.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\includes\Localsettings.php on line 14
Warning: include() [function.include]: Failed opening 'sql.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\includes\Localsettings.php on line 14
The loading bar appears, but that is about it.First of all, does sql.php exist? Second, is it in the same folder as Localsettings.php? And third, is it type include('sql.php'); or include(sql.php);?
fixed bug: ID: 3488093
small fail by me i put sql.php in my .svn folder
Offline
Hmm. Yeah.
Anyway, what should we call the alpha version in terms of codenames?
Offline
Bluetrocket, Another fix, how come the title for the main page says Error?
Offline
Zeusking i get this with the url changes in rev.70:
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.php
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.php
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.php
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.php
Offline
TRocket wrote:
Zeusking i get this with the url changes in rev.70:
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.php
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.php
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.php
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.php
Everything works for me.
I will file that into the bug tracker.
Offline
--bug Report--
Status: Open - Filed On Sourceforge
Bug Id: 3488192
Assigned To: Zeusking19-mit
Reported By: Bluetrocket
Since: Revision 70
Offline
Zeusking19 wrote:
TRocket wrote:
Zeusking i get this with the url changes in rev.70:
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.php
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.php
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.php
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.phpEverything works for me.
I will file that into the bug tracker.
are you on windows?
i'm doing this in linux with Apache istalled manually
Offline
TRocket wrote:
Zeusking19 wrote:
TRocket wrote:
Zeusking i get this with the url changes in rev.70:
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.php
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.php
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.php
[Thu Feb 16 11:31:01 2012] [error] [client ::1] File does not exist: /srv/www/htdocs/ScratchBB/lib, referer: http://localhost/ScratchBB/scratchbb/?pg=pages/main.phpEverything works for me.
I will file that into the bug tracker.are you on windows?
i'm doing this in linux with Apache istalled manually
[offtopic] TRocket can you take a look at the beta of the panther Os
thanks [/offtopic
Offline
muppetds wrote:
TRocket wrote:
Zeusking19 wrote:
Everything works for me.
I will file that into the bug tracker.are you on windows?
i'm doing this in linux with Apache istalled manually[offtopic] TRocket can you take a look at the beta of the panther Os
thanks [/offtopic
sorry to be a pain but please could you package it as a .7z since my laptop isn't liking zip files
Offline
How do we edit the site?
Offline
scimonster wrote:
How do we edit the site?
I can give you the code, but I have to upload it...
Offline
TRocket wrote:
muppetds wrote:
TRocket wrote:
are you on windows?
i'm doing this in linux with Apache istalled manually[offtopic] TRocket can you take a look at the beta of the panther Os
thanks [/offtopicsorry to be a pain but please could you package it as a .7z since my laptop isn't liking zip files
OK link = http://dl.dropbox.com/u/62430118/Panthe … windows.7z
Any more problems post on the Dev thread
Last edited by muppetds (2012-02-16 16:01:12)
Offline
muppetds wrote:
TRocket wrote:
muppetds wrote:
[offtopic] TRocket can you take a look at the beta of the panther Os
thanks [/offtopicsorry to be a pain but please could you package it as a .7z since my laptop isn't liking zip files
OK link = http://dl.dropbox.com/u/62430118/Panthe … windows.7z
Any more problems post on the Dev thread
Please do not post about other topics, please keep discussion related to ScratchBB to avoid confusion.
Thank you
Offline
Offline
I decided to take part in this, and I have a question.
Why doesn't this work?
<!doctype html> <html> <head> <title>Auth</title> </head> <body> <h1>Auth</h1> <?php if (file_get_contents("http://scratch.mit.edu/api/authenticateuser?username=" + $_GET['username'] + "&password=" + $_GET['password'] = "false") { echo "<h3 style='color:red;'>NOT authed</h3>"; } else { echo "<h3>Authed</h3>"; } ?> </body> </html>
Offline
You also need == not =.
Fixed:
<!doctype html> <html> <head> <title>Auth</title> </head> <body> <h1>Auth</h1> <?php if (trim(file_get_contents("http://scratch.mit.edu/api/authenticateuser?username=" . $_GET['username'] . "&password=" . $_GET['password']) == "false") { echo "<h3 style='color:red;'>NOT authed</h3>"; } else { echo "<h3>Authed</h3>"; } ?> </body> </html>
Note that I also added a trim() around the return, since I believe there is a little whitespace around the word false. So that's . not + (+ is javascript) and == not = (= is set a to b, == is boolean statement).
Offline
sparks wrote:
You also need == not =.
Fixed:Code:
<!doctype html> <html> <head> <title>Auth</title> </head> <body> <h1>Auth</h1> <?php if (trim(file_get_contents("http://scratch.mit.edu/api/authenticateuser?username=" . $_GET['username'] . "&password=" . $_GET['password']) == "false") { echo "<h3 style='color:red;'>NOT authed</h3>"; } else { echo "<h3>Authed</h3>"; } ?> </body> </html>Note that I also added a trim() around the return, since I believe there is a little whitespace around the word false. So that's . not + (+ is javascript) and == not = (= is set a to b, == is boolean statement).
It errored. Parse error: syntax error, unexpected '{' in C:\xampp\htdocs\phptests\scratchbb\auth.php on line 9
Offline
cocolover76 wrote:
It errored. Parse error: syntax error, unexpected '{' in C:\xampp\htdocs\phptests\scratchbb\auth.php on line 9
<!doctype html> <html> <head> <title>Auth</title> </head> <body> <h1>Auth</h1> <?php if (trim(file_get_contents("http://scratch.mit.edu/api/authenticateuser?username=" . urlencode($_GET['username']) . "&password=" . urlencode($_GET['password']))) == "false") { echo "<h3 style='color:red;'>NOT authed</h3>"; } else { echo "<h3>Authed</h3>"; } ?> </body> </html>
Missing an rparen. Also, always sanitize your user input values: in this case, urlencode() them; for SQL queries, use mysql_real_escape_string().
Offline
fg123 wrote:
Hey, I've been gone for a while. Could someone quickly update me on stuff? Thanks!
Hey I have no clue. I am all surrounded by bug fixes and sourceforge pages. Try asking sparks or TRocket.
Offline