View previous topic :: View next topic |
Author |
Message |
Lyfa The Lonely Man
Reputation: 12
Joined: 02 Nov 2008 Posts: 743
|
Posted: Wed Jun 23, 2010 8:46 pm Post subject: testing, no need to enter |
|
|
[img]http://quinnheagy.org/image/image.png?text=Haha,%20Hitler%20is%20a%20fag[/img]
Edit: Didn't work
_________________
|
|
Back to top |
|
 |
Nirojan How do I cheat?
Reputation: 108
Joined: 16 Sep 2008 Posts: 0 Location: seshville
|
Posted: Wed Jun 23, 2010 8:58 pm Post subject: |
|
|
I"M NOT A FAG
_________________
Quote: | yo i b 22 tryna make it in dis rap game but da steetz dont got luv for no wun na mean so im out hea tryna holla at da fams on dis innernet shit u no way i sayin |
|
|
Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Wed Jun 23, 2010 9:08 pm Post subject: |
|
|
Need help with that?
|
|
Back to top |
|
 |
Lyfa The Lonely Man
Reputation: 12
Joined: 02 Nov 2008 Posts: 743
|
Posted: Wed Jun 23, 2010 10:10 pm Post subject: |
|
|
compactwater wrote: | Need help with that? | IRC
_________________
|
|
Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Thu Jun 24, 2010 3:24 am Post subject: |
|
|
F3ar wrote: | compactwater wrote: | Need help with that? | IRC | Sorry about that.
A few things that a board will usually check to protect its users:
The image is accessible (no password), has the proper mime-type, and has the proper extension.
CEF uses the third.
This will not work:
http://www.com/some.png?usr=Hitler
This will work:
http://www.com/Hitler.png
There are two common ways you could do this. Have a 404 redirect to a PHP script with a mime-type of the proper image extension using GD/ImageMagick, or mod_rewrite. Using rewrite is the more proper way of doing it (and will avoid issues with some browsers/board checks) as it will not be a 404.
Make a .htaccess file with the following content in the same directory as your scripts, absolutely do not not not attempt to use that directory or any directory in it for anything else, as it'll totally screw things up (the htaccess file works recursively.)
Execute .png files with PHP:
Code: | AddType application/x-httpd-php .png |
404 method:
Code: | ErrorDocument 404 /hax/script.php |
In that script, use $_SERVER["REQUEST_URI"] to get the URL being used to access it, which will contain the username.
More proper mod_rewrite method:
Code: | RewriteEngine On
RewriteRule (.*)\.png /hax/script.php?usr=$1 [PT] |
Example script.php for debugging:
Code: | <?php
echo $_SERVER["REQUEST_URI"] . "\n" . $_GET["usr"];
?> | Would print:
And for mime, on the VERY FIRST LINE OF CODE, making sure there is ABSOLUTELY NO WHITE-SPACE ANYWHERE and that the file is in ASCII Unix/Windows/Mac format depending on your OS/Apache configuration.
Code: | header('Content-Type: image/png'); |
|
|
Back to top |
|
 |
Haxory' Grandmaster Cheater Supreme
Reputation: 92
Joined: 30 Jul 2007 Posts: 1900
|
Posted: Thu Jun 24, 2010 4:03 am Post subject: |
|
|
And how could you remove the http 404 status flag?
header("HTTP/1.0 OK - 200"); was giving me an internal 500 error :S
_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel |
|
Back to top |
|
 |
Cheat Engine User Something epic
Reputation: 60
Joined: 22 Jun 2007 Posts: 2071
|
Posted: Thu Jun 24, 2010 4:13 am Post subject: |
|
|
You can also call upon ip2user.
|
|
Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
Posted: Thu Jun 24, 2010 4:13 am Post subject: |
|
|
Haxory' wrote: | And how could you remove the http 404 status flag?
header("HTTP/1.0 OK - 200"); was giving me an internal 500 error :S | 404 status is only there if you use the 404 method. If you have problems, use mod_rewrite instead.
|
|
Back to top |
|
 |
Haxory' Grandmaster Cheater Supreme
Reputation: 92
Joined: 30 Jul 2007 Posts: 1900
|
Posted: Thu Jun 24, 2010 4:35 am Post subject: |
|
|
compactwater wrote: | Haxory' wrote: | And how could you remove the http 404 status flag?
header("HTTP/1.0 OK - 200"); was giving me an internal 500 error :S | 404 status is only there if you use the 404 method. If you have problems, use mod_rewrite instead. |
Well it's regarding the DF pserver i'm coding, could I use mod rewrite on a (paid) host?
_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel |
|
Back to top |
|
 |
Cheat Engine User Something epic
Reputation: 60
Joined: 22 Jun 2007 Posts: 2071
|
Posted: Thu Jun 24, 2010 4:45 am Post subject: |
|
|
Haxory' wrote: | compactwater wrote: | Haxory' wrote: | And how could you remove the http 404 status flag?
header("HTTP/1.0 OK - 200"); was giving me an internal 500 error :S | 404 status is only there if you use the 404 method. If you have problems, use mod_rewrite instead. |
Well it's regarding the DF pserver i'm coding, could I use mod rewrite on a (paid) host? | Possibly, if the host allows that.
|
|
Back to top |
|
 |
|