Autoindex! :)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Autoindex! :)

    Hope u all will like!
    Attached Files
    Last edited by kristapsm; 11.08.12, 16:10.

    #2
    nothing much modded from the one NEOstar posted here but yup, liked the simpliness of it.

    thanks for sharing

    Comment


      #3
      Originally posted by icedroplet1987 View Post
      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.

      Comment


        #4
        XML Parsing Error: junk after document element
        Location: Downloads
        Line Number 9, Column 924:<div class="konon">fullmasti.tk<br/></div><div class="contur"><div class="head">Downloads<br/></div></div><div class="info">Preview: <a href="index.php?p=1&amp;sort=0&amp;dir=">+</a>/-<br/>Sort by: name/<a href="index.php?p=0&amp;sort=1&amp;dir=">date</a><br/></div><div class="mainbox"><img src="ico.gif" alt=""/> <a href="index.php?dir=/Games&amp;p=0&amp;sort=0">Games</a> [0 / 0 kb]<br /><img src="ico.gif" alt=""/> <a href="index.php?dir=/Images&amp;p=0&amp;sort=0">Images</a> [0 / 0 kb]<br /><img src="ico.gif" alt=""/> <a href="index.php?dir=/Music&amp;p=0&amp;sort=0">Music</a> [0 / 0 kb]<br /><img src="ico.gif" alt=""/> <a href="index.php?dir=/Themes&amp;p=0&amp;sort=0">Themes</a> [0 / 0 kb]<br /><img src="ico.gif" alt=""/> <a href="index.php?dir=/Videos&amp;p=0&amp;sort=0">Videos</a> [0 / 0 kb]<br /></div><div class="footer"><div class="footer"><div class="footer">fullmasti.tk</div></div></div></body></html><script type="text/javascript">
        -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^
        How to remove this error...

        Comment


          #5
          Image.php

          some editing with image.php

          Code:
          <?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

          Comment


            #6
            Originally posted by StunningNick View Post
            some editing with image.php

            Code:
            <?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!

            Comment


              #7
              thanks for sharing....
              Buying mobile traffic, PM me with your traffic details

              Comment


                #8
                brother i got error in this code

                Originally posted by kristapsm View Post
                Hope u all will like!
                Notice: Undefined variable: dir in C:\xampp\htdocs\101\index.php on line 96

                Comment

                Working...
                X