| Pages: [1] :: one page |
| Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Aknors
|
Posted - 2004.08.25 03:37:00 -
[1]
Hello I was just wondering if someone with a rotating signature could point me in the direction of the script they are using to do it. Thanks.
|

Aknors
|
Posted - 2004.08.25 03:37:00 -
[2]
Hello I was just wondering if someone with a rotating signature could point me in the direction of the script they are using to do it. Thanks.
|

AvanCade
|
Posted - 2004.08.25 07:05:00 -
[3]
Here is one i use, the rest is up to you:
Quote: <?php if ($dir = opendir(".")) { $list = buildimagearray($dir); displayrandomimage($list); }
// This function reads all the files in the current directory and adds all image files to the array $list[] function buildimagearray($dir) { while (false !== ($file = readdir($dir))) { if (!is_dir($file) && getimagesize($file)) { $list[] = $file; } } return $list; }
function displayrandomimage($list) { srand ((double) microtime() * 10000000); $sig = array_rand ($list);
$size = getimagesize ($list[$sig]); $fp = fopen($list[$sig], "rb");
if ($size && $fp) { header("Content-type: {$size['mime']}"); fpassthru($fp); exit; } } ?>
|

AvanCade
|
Posted - 2004.08.25 07:05:00 -
[4]
Here is one i use, the rest is up to you:
Quote: <?php if ($dir = opendir(".")) { $list = buildimagearray($dir); displayrandomimage($list); }
// This function reads all the files in the current directory and adds all image files to the array $list[] function buildimagearray($dir) { while (false !== ($file = readdir($dir))) { if (!is_dir($file) && getimagesize($file)) { $list[] = $file; } } return $list; }
function displayrandomimage($list) { srand ((double) microtime() * 10000000); $sig = array_rand ($list);
$size = getimagesize ($list[$sig]); $fp = fopen($list[$sig], "rb");
if ($size && $fp) { header("Content-type: {$size['mime']}"); fpassthru($fp); exit; } } ?>
|

Kerosene
|
Posted - 2004.08.25 07:11:00 -
[5]
I don't mean to pee on anyone's strawberries but I'm sure being able to run php scripts through the [img] tags is cross site scripting and generally not a good idea for the security of eve. I won't go any further into this.
|

Kerosene
|
Posted - 2004.08.25 07:11:00 -
[6]
I don't mean to pee on anyone's strawberries but I'm sure being able to run php scripts through the [img] tags is cross site scripting and generally not a good idea for the security of eve. I won't go any further into this.
|

Nafri
|
Posted - 2004.08.25 10:16:00 -
[7]
Originally by: Kerosene I don't mean to pee on anyone's strawberries but I'm sure being able to run php scripts through the tags is cross site scripting and generally not a good idea for the security of eve. I won't go any further into this.
nah i cant live without my rotation sigs Wanna fly with me?
|

Nafri
|
Posted - 2004.08.25 10:16:00 -
[8]
Originally by: Kerosene I don't mean to pee on anyone's strawberries but I'm sure being able to run php scripts through the tags is cross site scripting and generally not a good idea for the security of eve. I won't go any further into this.
nah i cant live without my rotation sigs Wanna fly with me?
|

Elissen
|
Posted - 2004.08.25 10:26:00 -
[9]
Originally by: Kerosene I don't mean to pee on anyone's strawberries but I'm sure being able to run php scripts through the [img] tags is cross site scripting and generally not a good idea for the security of eve. I won't go any further into this.
For starters, this site runs ASP, not PHP. The PHP scripts posted above is something you can place on a DIFFERENT server. Then you place http://www.yourserver.tld/script.php in IMG-tags. The PHP-scripts outputs a image.
It is NOT cross site scripting.
P.S. A while back, Starvos (I think) posted that t20 added a RND-tag. It's a random number for each post. using http://www.yourserver.tld/script.php?id=[ RND ] (without the spaces) forces your browser to refresh the image for each post (ofherwise it you get cached for each page).
|

Elissen
|
Posted - 2004.08.25 10:26:00 -
[10]
Originally by: Kerosene I don't mean to pee on anyone's strawberries but I'm sure being able to run php scripts through the [img] tags is cross site scripting and generally not a good idea for the security of eve. I won't go any further into this.
For starters, this site runs ASP, not PHP. The PHP scripts posted above is something you can place on a DIFFERENT server. Then you place http://www.yourserver.tld/script.php in IMG-tags. The PHP-scripts outputs a image.
It is NOT cross site scripting.
P.S. A while back, Starvos (I think) posted that t20 added a RND-tag. It's a random number for each post. using http://www.yourserver.tld/script.php?id=[ RND ] (without the spaces) forces your browser to refresh the image for each post (ofherwise it you get cached for each page).
|

Maridia
|
Posted - 2004.08.25 10:30:00 -
[11]
sig changers can't do alot of harm to the forum, it can only make it slow when the host of the sigs is down ;)
|

Maridia
|
Posted - 2004.08.25 10:30:00 -
[12]
sig changers can't do alot of harm to the forum, it can only make it slow when the host of the sigs is down ;)
|
| |
|
| Pages: [1] :: one page |
| First page | Previous page | Next page | Last page |