Autoindex! :)
Started on the old forum in May 2012 · view the original in the archive · old links redirect here
nothing much modded from the one NEOstar posted here but yup, liked the simpliness of it.
thanks for sharing:)
icedroplet1987 wrote: nothing much modded from the one NEOstar posted here but yup, liked the simpliness of it.
thanks for sharing:)
Sorry if it is already here, just simple validated small errors and maked better and simplest look. ☺️
XML Parsing Error: junk after document element Location: Downloads Line Number 9, Column 924:fullmasti.tk Downloads Preview: +/- Sort by: name/date External image (may be gone) Games [0 / 0 kb] External image (may be gone) Images [0 / 0 kb] External image (may be gone) Music [0 / 0 kb] External image (may be gone) Themes [0 / 0 kb] External image (may be gone) Videos [0 / 0 kb] fullmasti.tk</body></html><script type="text/javascript"> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^
How to remove this error...
Image.php
some editing with image.php
<?php
// Get new dimensions
$RESuploadFolderPath = '';
extract($_REQUEST);
if($f){
if ( isset( $w , $h , $q ) )
{
$w = (int) $w;
$h = (int) $h;
$q = (int) $q;
$w = ( $w > 0 && $w < 1000 ) ? $w : 50;
$h = ( $h > 0 && $h < 1000 ) ? $h : 60;
$h = ( $h > 0 && $h <= 100 ) ? $h : 80;
}
else
{
$w = 50;
$h = 60;
$h = 80;
}
$filename = $RESuploadFolderPath.$f;
if ( is_file( $filename ) )
{
// get original file's height & width
list($width, $height) = getimagesize($filename);
$filetype = pathinfo($filename);
$fileNameOnly = $filetype['filename'];
switch($filetype['extension'])
{
case 'jpg':
$source = imagecreatefromjpeg($filename);
break;
case 'gif';
$source = imagecreatefromgif($filename);
break;
case 'png':
$source = imagecreatefrompng($filename);
break;
}
$image_p = imagecreatetruecolor($new_width, $new_height);
imagecopyresampled($image_p, $source, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
header('Content-type: image/jpeg');
header("Content-Disposition: attachment; filename=\"".$fileNameOnly."\";" );
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($filename));
imagejpeg($image_p, null ,$quality);
}
else
{
echo 'Some Text Here :P ';
}
}
thanks for sharing, got solution for other script from this :)
Don't think i am bad , i used to be too good one time...
StunningNick wrote: some editing with image.php
<?php // Get new dimensions $RESuploadFolderPath = ''; extract($_REQUEST); if($f){ if ( isset( $w , $h , $q ) ) { $w = (int) $w; $h = (int) $h; $q = (int) $q; $w = ( $w > 0 && $w < 1000 ) ? $w : 50; $h = ( $h > 0 && $h < 1000 ) ? $h : 60; $h = ( $h > 0 && $h <= 100 ) ? $h : 80; } else { $w = 50; $h = 60; $h = 80; } $filename = $RESuploadFolderPath.$f; if ( is_file( $filename ) ) { // get original file's height & width list($width, $height) = getimagesize($filename); $filetype = pathinfo($filename); $fileNameOnly = $filetype['filename']; switch($filetype['extension']) { case 'jpg': $source = imagecreatefromjpeg($filename); break; case 'gif'; $source = imagecreatefromgif($filename); break; case 'png': $source = imagecreatefrompng($filename); break; } $image_p = imagecreatetruecolor($new_width, $new_height); imagecopyresampled($image_p, $source, 0, 0, 0, 0, $new_width, $new_height, $width, $height); header('Content-type: image/jpeg'); header("Content-Disposition: attachment; filename=\"".$fileNameOnly."\";" ); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".filesize($filename)); imagejpeg($image_p, null ,$quality); } else { echo 'Some Text Here :P '; } }thanks for sharing, got solution for other script from this :)
🙂 Always welcome!
brother i got error in this code
kristapsm wrote: Hope u all will like! :)
Notice: Undefined variable: dir in C:\xampp\htdocs\101\index.php on line 96