This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#351 2012-02-15 23:28:10

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Scratch Forum Development Thread

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

 

#352 2012-02-16 02:21:53

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Scratch Forum Development Thread

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


http://i.imgur.com/1QqnHxQ.png

Offline

 

#353 2012-02-16 02:32:59

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Scratch Forum Development Thread

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


http://i.imgur.com/1QqnHxQ.png

Offline

 

#354 2012-02-16 03:43:54

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Scratch Forum Development Thread

Hmm. Yeah.

Anyway, what should we call the alpha version in terms of codenames?


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#355 2012-02-16 03:45:06

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Scratch Forum Development Thread

Bluetrocket, Another fix, how come the title for the main page says Error?


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#356 2012-02-16 06:35:30

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Scratch Forum Development Thread

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


http://i.imgur.com/1QqnHxQ.png

Offline

 

#357 2012-02-16 07:23:38

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Scratch Forum Development Thread

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.


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#358 2012-02-16 07:31:33

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Scratch Forum Development Thread

--bug Report--

Status: Open - Filed On Sourceforge
Bug Id: 3488192
Assigned To: Zeusking19-mit
Reported By: Bluetrocket
Since: Revision 70


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#359 2012-02-16 07:43:35

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Scratch Forum Development Thread

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.php

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


http://i.imgur.com/1QqnHxQ.png

Offline

 

#360 2012-02-16 08:32:57

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: Scratch Forum Development Thread

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.php

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


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#361 2012-02-16 08:37:48

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Scratch Forum Development Thread

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


http://i.imgur.com/1QqnHxQ.png

Offline

 

#362 2012-02-16 09:55:41

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Scratch Forum Development Thread

How do we edit the site?

Offline

 

#363 2012-02-16 10:35:26

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Scratch Forum Development Thread

scimonster wrote:

How do we edit the site?

I can give you the code, but I have to upload it...


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#364 2012-02-16 15:57:19

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: Scratch Forum Development Thread

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 [/offtopic

sorry 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)


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#365 2012-02-16 16:12:38

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Scratch Forum Development Thread

muppetds wrote:

TRocket wrote:

muppetds wrote:


[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

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  smile


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#366 2012-02-17 06:37:36

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Scratch Forum Development Thread

user authentication is starting to take shape


http://i.imgur.com/1QqnHxQ.png

Offline

 

#367 2012-02-19 03:15:17

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Scratch Forum Development Thread

bump

EDIT:900th post
i think i've been posting more now the post counts have changed  wink

Last edited by TRocket (2012-02-19 03:16:03)


http://i.imgur.com/1QqnHxQ.png

Offline

 

#368 2012-02-20 13:23:34

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: Scratch Forum Development Thread

bump

Offline

 

#369 2012-02-20 16:38:08

cocolover76
Scratcher
Registered: 2011-10-09
Posts: 500+

Re: Scratch Forum Development Thread

I decided to take part in this, and I have a question.
Why doesn't this work?

Code:

<!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>

http://i.imgur.com/HfEPZ.gifhttp://i.imgur.com/pvKb6.png

Offline

 

#370 2012-02-20 17:01:02

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Scratch Forum Development Thread

Use . Not +


http://i.imgur.com/1QqnHxQ.png

Offline

 

#371 2012-02-20 17:31:06

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch Forum Development Thread

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).


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#372 2012-02-20 18:02:06

cocolover76
Scratcher
Registered: 2011-10-09
Posts: 500+

Re: Scratch Forum Development Thread

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


http://i.imgur.com/HfEPZ.gifhttp://i.imgur.com/pvKb6.png

Offline

 

#373 2012-02-20 18:48:54

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Scratch Forum Development Thread

cocolover76 wrote:

It errored. Parse error: syntax error, unexpected '{' in C:\xampp\htdocs\phptests\scratchbb\auth.php on line 9

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=" . 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().


nXIII

Offline

 

#374 2012-02-21 02:10:02

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Scratch Forum Development Thread

Hey, I've been gone for a while. Could someone quickly update me on stuff?  tongue  Thanks!


Hai.

Offline

 

#375 2012-02-21 02:38:58

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: Scratch Forum Development Thread

fg123 wrote:

Hey, I've been gone for a while. Could someone quickly update me on stuff?  tongue  Thanks!

Hey  smile  I have no clue. I am all surrounded by bug fixes and sourceforge pages. Try asking sparks or TRocket.


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

Board footer