File name to be displayed in <title>

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

    File name to be displayed in <title>

    hii.. im using ffmpeg auto index script for my site. i need a little help. i want to display file name in the
    <title>
    so what code shud i put in <title>CODE??<title> to show file name in title bar of the browsers?
    pls help someone

    #2
    please attach the page where u wana do this..
    Free Web Hosting @HostersPoint.com
    php Hosting with Web Builder

    Buy - Sell ADs
    ADMOLA ADs Network
    Monetize Your Site Traffic

    Comment


      #3
      this is my index.php
      PHP Code:
      <?php
      $mt
      =microtime(1);
      require 
      'config.php';
      require 
      'func.php';
      if(
      $zip)
      {include(
      'zip.php');}

      //Sorting and preview:

      $p=intval($_GET['p']);
      $sort=intval($_GET['sort']);
      if(
      $sort>OR $sort<0)
      {
      $sort=0;}

      //Folder:
      $dir=htmlspecialchars($_GET['dir']);

      while(
      substr($dir,0,1)=='/')
      {
      $dir=substr($dir,1,strlen($dir));}

      if(
      strstr($dir,'..') OR !is_dir('load/'.$dir) OR strstr($dir,'://'))
      {
      $dir=null;}

      $opis false;
      //HATS
      echo"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
      print
      '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">'
      ;
      print
      '<head>';
      print
      '<meta name="Author" content="Singh">';
      print
      '<meta name="Publisher" content="www.aaa.Com">';
      print
      '<meta name="Copyright" content="2008-09">';
      print
      '<meta name="Revisit-After" content="1 days">';
      print
      '<meta name="Pagetopic" content="Mobile Porn Movies">';
      print
      '<meta name="Audience" content=" All">';
      print
      '<meta name="revisit-after" content="1 days" />';
      print
      '<meta name="googlebot" content="index, follow" />';
      print
      '<meta name="robots" content="index, follow" />';
      print
      '<meta name="rating" content="general" />';
      print
      '<title>mysite.com</title>';
      print
      '<style type="text/css">
      .cool {
          background-color: #FFFFFF;
          color: black;
          font-family: Comic Sans MS, Bold, Helvetica, sans-serif;
          font-size: 1em;
      }
      span.linklist { text-align: left; border: 3px dotted #C0C0C0; padding-left: 4; padding-right:
                     4; padding-top: 1; padding-bottom: 1 }
       body {
          background-color: #FFFFFF;
          color: #808080;
          font-family: Comic Sans MS, Bold, Helvetica, sans-serif;
          font-size: 0.80em;
      }
      a:link, a:active, a:visited
      { color: #1E90FF;text-decoration: none; }
      a:hover { text-decoration: none; color: white; background-color: #1E90FF; border: 0.06em solid #98F698; padding: 0.06em; position: relative; top: 0.06em }
      a:hover, a:active  {
          text-decoration: none;
          color: white;
      }
      .line5
      { border-left-style: dotted; border-left-width: 1; border-right-style: dotted;
                     border-right-width: 1; border-top-width: 1;
                     border-bottom-width: 1; color:#0099cc }
      span.linklist { text-align: left; border: 3px dotted #0099cc; padding-left: 4; padding-right:
                     4; padding-top: 1; padding-bottom: 1 }
      .dot
      {
      background-color: #FFFFFF;
      color: #336666;
      font-size: small;
      font-family: Comic Sans MS, Bold, Helvetica, sans-serif;
      font-weight:bold;
      width: 100%;
      border-bottom: 1px dashed #0099cc;
      padding: 3px 0;
      display: block;
      }
      .header {
              text-align: center;
          background-color: white;
          color: #000000;
          border: thin dashed #006600;
          padding: 0.13em;
          margin-bottom: 0.19em;
      }
      .main_links {
          border: thin solid #B0C4DE;
          font-family: "Trebuchet MS", "Segoe UI", Arial, Tahoma;
          font-size: 15px;
          background-color: #EFF3F6;
          color: #708090;
          margin: 5px;
      }
      .updates
      {
      background-color:#ADD8E6;
      padding:2px;
      text-align:left
      font-family: Comic Sans MS, Bold, Helvetica, sans-serif;
      font-size: small; color:#FF0000
      }
      .surfmenu {
          text-align: center;
          background-color: #99CC66;
          color: #000000;
          border: thin dashed #006600;
          padding: 0.13em;
          margin-bottom: 0.19em;
      }
      .surfmenu1 { border-style:dotted; border-width:1; text-align:center; padding: 2px; background-color: #33CCFF; font-weight:bold }
      .ad {
          text-align: center;
          background-color: #EFF3F6;
          color: #000000;
          border: thin dashed #AFCDDC;;
          padding: 0.13em;
          margin-bottom: 0.19em; font-weight:bold
      }
      .surfmenu2 { border-style:dotted; border-width:1; text-align:center; padding: 2px; background-color: white; font-weight:bold }

      .mysteve {
          BORDER-BOTTOM: #323232 1px solid; PADDING-BOTTOM: 5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BACKGROUND: #EFF3F6; PADDING-TOP: 5px
      }
      .my{margin:0px;color:#000;background-color:#f6f6f6;font-size:12px;font-weight:normal;padding:2px; text-align:center}

      .filemark {
          border: thin dashed #CCCCCC;
          padding: 0.13em;
          margin-bottom: 0.19em;
      }
      .footer {background-color:#8FCDF0}
      .fuk {text-align: center;}
      .copyright {
      PADDING-RIGHT: 1px; BORDER-TOP: #afcddc 1px dotted; PADDING-LEFT: 1px; FONT-WEIGHT: bold; PADDING-BOTTOM: 1px; COLOR: white; PADDING-TOP: 1px; BORDER-BOTTOM: #afcddc 1px dotted; BACKGROUND-COLOR: #8FCDF0; TEXT-ALIGN: center
      }
      </style>'
      ;
      print
      '</head>';
      if(!
      $dir)
      {print 
      '<div class="surfmenu"><b>Videos</b></div>';}
      else
      {
      $dir_exp=explode('/',$dir);
      print 
      '<div class="surfmenu">'.transdir($dir_exp[count($dir_exp)-1]).'</div>';
      }

      include 
      'headerad.php' ;
      if(
      $sort)
      {print 
      '<div class="surfmenu1">Sort by: <a href="index.php?p='.$p.'&amp;sort=0&amp;dir='.$dir.'">name</a>/date<br/></div>';}
      else
      {print 
      '<div class="surfmenu1">Sort by: name/<a href="index.php?p='.$p.'&amp;sort=1&amp;dir='.$dir.'">date</a><br/></div>';}

      //Subfolders
      $glob_dir=glob('load/'.$dir.'/*',GLOB_ONLYDIR);
      if(
      $glob_dir)
      {
      $count=sizeof($glob_dir);
      $countstr=ceil($count/$dirstr);
      $page=intval($_GET['page']);
      if(
      $sort)
      {
      usort($glob_dir'sortnew');}
      $start $page $dirstr;
      if(
      $start>=$count OR $start<0)
      {
      $start=0;}
      $end $start $dirstr;
      if(
      $end>=$count)
      {
      $end $count;}
      for(
      $i=$start$i<$end$i++)
      {
      $dirt=str_replace('load/',null,$glob_dir[$i]);
      $dir_exp=explode('/',$dirt);
      $count=countf($dirt);
      print 
      '<div class="mysteve"><b>» <a href="index.php?dir='.$dirt.'&amp;p='.$p.'&amp;sort='.$sort.'">'.transdir($dir_exp[count($dir_exp)-1]).'</a></div><br/>';
      include 
      'ad15.php'; echo'<br>';
      }
      }
      $glob_file=glob("load/$dir/*.{{$allfile}}",GLOB_BRACE);
      if(
      $glob_file//FILES
      {
      if(
      $sort)
      {
      usort($glob_file'sortnew');}
      $count=sizeof($glob_file);
      $countstr=ceil($count/$filestr);
      $page=intval($_GET['page']);
      $start $page $filestr;
      if(
      $start>=$count OR $start<0)
      {
      $start=0;}
      $end $start $filestr;
      if(
      $end>=$count)
      {
      $end $count;}
      for(
      $i=$start$i<$end$i++)
      {
      $name=translit($glob_file[$i]);
      $filesize=filesize($glob_file[$i]);
      if(
      $filesize>1024)
      {
      $filesize=round($filesize/10242).' kb';}
      else
      {
      $filesize.=' bytes';}
      if(
      r($glob_file[$i])=='txt')
      {
      $text=file($glob_file[$i]);
      $name=$text[0];
      $opis=$text[1].$text[2].$text[3].$text[4];
      }

      $basename=basename($glob_file[$i]);
      //Screenshot
      if($p and file_exists('skrin/'.$basename.'.gif'))
      {print 
      '<img src="pic.php?file=skrin/'.$basename.'.gif" alt="Screen" /><br />';}
      elseif(
      $p and file_exists('skrin/'.$basename.'.jpg'))
      {print 
      '<div class="mysteve"><img src="pic.php?file=skrin/'.$basename.'.jpg" alt="Screen" /><br />';}
      elseif(
      $p and file_exists('skrin/'.$basename.'.png'))
      {print 
      '<div class="mysteve"><img src="pic.php?file=skrin/'.$basename.'.png" alt="Screen" /><br />';}
      if((
      r($glob_file[$i])=='jpg' or r($glob_file[$i])=='gif' or r($glob_file[$i])=='png') and $p)
      {print 
      '<div class="mysteve"><img src="pic.php?file='.$glob_file[$i].'" alt="Screen" /><br />';}
      else 
      {print 
      '<div class="mysteve"><img src="picview.php?file='.$glob_file[$i].'" alt="Screen" /><br />';} //FFMPEG
      print '<strong>'.$name.'</strong><br />';

      if(
      file_exists('opis/'.$basename.'.txt'))
      {
      $opis=htmlspecialchars(file_get_contents('opis/'.$basename.'.txt'));}

      if(
      $opis)
      {print 
      nl2br(htmlspecialchars($opis)).'<br />';}
      $opis false;

      if(
      r($glob_file[$i])=='jar')
      {
      print 
      '<a href="'.$glob_file[$i].'">Download JAR ('.$filesize.')</a>[<a href="file.php?p='.$p.'&amp;file='.$glob_file[$i].'&amp;sort='.$sort.'">?</a>]</div><br />';
      print 
      '<a href="jad.php?p='.$p.'&amp;file='.$glob_file[$i].'&amp;sort='.$sort.'">Download JAD</a></div><br />';
      }
      elseif(
      r($glob_file[$i])=='txt')
      {print 
      '<a href="txt.php?p='.$p.'&amp;file='.$glob_file[$i].'&amp;sort='.$sort.'">Read</a><br />';}
      else
      {print 
      '<a href="file.php?p='.$p.'&amp;file='.$glob_file[$i].'&amp;sort='.$sort.'">Download ('.$filesize.')</a></div><br />';}
      include 
      'ad7.php' ;
      }
      }

      //Pagination:
      if($countstr>1)
      {print 
      nav_page($countstr,$page,$dir,$p,$sort,'index');}
      //Return to level up:
      $dir_exp=explode('/',$dir);
      if(
      $dir)
      {print 
      '<b></div><div class="info">Back:</b><br />';}
      if((
      $countj=count(explode('/',$dir)))>1)
      {
      $j=explode('/',$dir);
      for(
      $i=0$i<=$countj$i++)
      {
      $u=$j[count($j)-2];
      if(
      $u)
      {
      unset(
      $j[count($j)-1]);
      $g[$i]= '|<a href="index.php?dir='.join('/'$j).'&amp;p='.$p.'&amp;sort='.$sort.'">'.transdir($u).'</a>';
      include 
      'ad9.php'; echo'<br>';
      }
      }
      for(
      $i=count($g)-1$i>=0$i--)
      {print 
      $g[$i];}

      print 
      '<br/>';
      }


      if(
      $dir)
      {print 
      '<a href="index.php?p='.$p.'&amp;sort='.$sort.'">Videos</a><br/>';}

      include 
      'footer.php';
      ?>
      and this is where file is downloaded file.php

      PHP Code:
      <?php
      $mt
      =microtime(1);
      require 
      'config.php';
      require 
      'func.php';
      if(
      $zip)
      {include 
      'zip.php';}

      //Sorting and preview:
      $p=intval($_GET['p']);
      $sort=intval($_GET['sort']);
      if(
      $sort>OR $sort<0)
      {
      $sort=0;}

      $file=str_replace("\0"nullhtmlspecialchars($_GET['file']));

      if(!
      file_exists($file) OR !is_file($file) OR !in_array(r($file), explode(',',$allfile)) OR strstr($file,'..') OR strstr($file,'://'))
      {
      $file null;}

      //HATS
      echo"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
      print
      '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">'
      ;
      print
      '<head>';
      print
      '<meta http-equiv="content-type" content="application/vnd.wap.xhtml+xml; charset=utf-8" />';
      print
      '<meta name="Author" content="singh">';
      print
      '<meta name="Copyright" content="2008-11">';
      print
      '<meta name="Revisit-After" content="1 days">';
      print
      '<meta name="Pagetopic" content="Mobile XXX Videos">';
      print
      '<meta name="Audience" content=" All">';
      print
      '<meta name="revisit-after" content="1 days" />';
      print
      '<meta name="googlebot" content="index, follow" />';
      print
      '<meta name="robots" content="index, follow" />';
      print
      '<meta name="rating" content="general" />';
      print
      '<title>mysite.com</title>';
      print
      '<style type="text/css">
      .cool {
          background-color: #FFFFFF;
          color: black;
          font-family: Comic Sans MS, Bold, Helvetica, sans-serif;
          font-size: 1em;
      }
      span.linklist { text-align: left; border: 3px dotted #C0C0C0; padding-left: 4; padding-right:
                     4; padding-top: 1; padding-bottom: 1 }
       body {
          background-color: #FFFFFF;
          color: #808080;
          font-family: Comic Sans MS, Bold, Helvetica, sans-serif;
          font-size: 0.80em;
      }
      a:link, a:active, a:visited
      { color: #1E90FF;text-decoration: none; }
      a:hover { text-decoration: none; color: white; background-color: #1E90FF; border: 0.06em solid #98F698; padding: 0.06em; position: relative; top: 0.06em }
      a:hover, a:active  {
          text-decoration: none;
          color: white;
      }
      .line5
      { border-left-style: dotted; border-left-width: 1; border-right-style: dotted;
                     border-right-width: 1; border-top-width: 1;
                     border-bottom-width: 1; color:#0099cc }
      span.linklist { text-align: left; border: 3px dotted #0099cc; padding-left: 4; padding-right:
                     4; padding-top: 1; padding-bottom: 1 }
      .dot
      {
      background-color: #FFFFFF;
      color: #336666;
      font-size: small;
      font-family: Comic Sans MS, Bold, Helvetica, sans-serif;
      font-weight:bold;
      width: 100%;
      border-bottom: 1px dashed #0099cc;
      padding: 3px 0;
      display: block;
      }
      .header {
              text-align: center;
          background-color: white;
          color: #000000;
          border: thin dashed #006600;
          padding: 0.13em;
          margin-bottom: 0.19em;
      }
      .main_links {
          border: thin solid #B0C4DE;
          font-family: "Trebuchet MS", "Segoe UI", Arial, Tahoma;
          font-size: 15px;
          background-color: #EFF3F6;
          color: #708090;
          margin: 5px;
      }
      .updates
      {
      background-color:#ADD8E6;
      padding:2px;
      text-align:left
      font-family: Comic Sans MS, Bold, Helvetica, sans-serif;
      font-size: small; color:#FF0000
      }
      .surfmenu {
          text-align: center;
          background-color: #99CC66;
          color: #000000;
          border: thin dashed #006600;
          padding: 0.13em;
          margin-bottom: 0.19em;
      }
      .surfmenu3 {
          text-align: left;
          background-color: #99CC66;
          color: #000000;
          border: thin dashed #006600;
          padding: 0.13em;
          margin-bottom: 0.19em;
      }
      .surfmenu1 { border-style:dotted; border-width:1; text-align:center; padding: 2px; background-color: #33CCFF; font-weight:bold }
      .stevead {
          text-align: center;
          background-color: #EFF3F6;
          color: #000000;
          border: thin dashed #AFCDDC;;
          padding: 0.13em;
          margin-bottom: 0.19em; font-weight:bold
      }
      .stevead1 {
          text-align: left;
          background-color: #EFF3F6;
          color: #000000;
          border: thin dashed #AFCDDC;;
          padding: 0.13em;
          margin-bottom: 0.19em; font-weight:bold
      }
      .surfmenu2 { border-style:dotted; border-width:1; text-align:center; padding: 2px; background-color: white; font-weight:bold }

      .mysteve {
          BORDER-BOTTOM: #323232 1px solid; PADDING-BOTTOM: 5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BACKGROUND: #EFF3F6; PADDING-TOP: 5px
      }
      .my{margin:0px;color:#000;background-color:#f6f6f6;font-size:12px;font-weight:normal;padding:2px; text-align:center}

      .filemark {
          border: thin dashed #CCCCCC;
          padding: 0.13em;
          margin-bottom: 0.19em;
      }
      .footer {background-color:#8FCDF0}
      .fuk {text-align: center;}
      .copyright {
      PADDING-RIGHT: 1px; BORDER-TOP: #afcddc 1px dotted; PADDING-LEFT: 1px; FONT-WEIGHT: bold; PADDING-BOTTOM: 1px; COLOR: white; PADDING-TOP: 1px; BORDER-BOTTOM: #afcddc 1px dotted; BACKGROUND-COLOR: #8FCDF0; TEXT-ALIGN: center
      }
      </style>'
      ;
      print
      '</head>';
      include 
      'headerad.php';


      if(!
      $file)
      {exit(
      '<div class="info">File does not exist<br/></div>'.$foot);}


      $r r($file);
      print 
      '<div class="surfmenu3">Video Details For '.translit($file).'</div>';
      print 
      '<div class="mainbox">';
      $filesize=filesize($file);
      if(
      $filesize>1024)
      {
      $filesize=round($filesize/10242).' kB';}
      else
      {
      $filesize.=' byte';}
      print 
      'Size: '.$filesize.'<br/>';
      include 
      'ad16.php'; echo'<br>';
      $filectime=filemtime($file);
      print 
      'Added: '.date('d/m/y H:i',filemtime($file)).'<br/>';
      include 
      'ad17.php'; echo'<br>';
      $basename=basename($file);
      if(
      file_exists('skrin/'.$basename.'.jpg') and $p)
      {print 
      'Screenshot: <br/><img src="skrin/'.$basename.'.jpg" alt="'.translit($file).'"/><br/>';}
      elseif(
      file_exists('skrin/'.$basename.'.gif') and $p)
      {print 
      'Screenshot: <br/><img src="skrin/'.$basename.'.gif" alt="'.translit($file).'"/><br/>';}
      elseif(
      file_exists('skrin/'.$basename.'.png') and $p)
      {print 
      'Screenshot: <br/><img src="skrin/'.$basename.'.png" alt="'.translit($file).'"/><br/>';}
      else
      {print 
      'Screenshot: <br/><img src="picview.php?file='.$file.'" alt=""/><img src="picview1.php?file='.$file.'" alt=""/><img src="picview2.php?file='.$file.'" alt=""/><img src="picview3.php?file='.$file.'" alt=""/><br/>';}
      include 
      'ad18.php'; echo'<br>';
      $opis=@file_get_contents('opis/'.$basename.'.txt');
      if(
      $opis)
      {print 
      'Description: '.$opis.'<br/>';}


      if(
      $r == 'mp3')
      {
      include 
      $mp3;
      $id3 = new MP3_Id();
      $result $id3->read($file);
      $result $id3->study();
      $bitrate $id3->getTag('bitrate') OR $bitrate='(undefined)';
      print 
      'Track title: '.iconv('windows-1251','UTF-8',$id3->getTag('name')).'<br/>';
      if(
      $id3->getTag('genre'))
      {print 
      'Genre: '.$id3->getTag('genre').'<br/>';}
      if(
      $id3->getTag('artists'))
      {print 
      'Artist: '.iconv('windows-1251','UTF-8',$id3->getTag('artists')).'<br/>';}
      print 
      'Size: '.round($id3->getTag('filesize')/1024).' kb<br/>
      Type: '
      .r($file).'<br/>
      Quality: '
      .$bitrate.' kbps ('.$id3->getTag('mode').')<br/>';
      if(
      $id3->getTag('year'))
      {print 
      'Year: '.$id3->getTag('year').'<br/>';}
      print 
      'Length: '.$id3->getTag('length').' sec<br/>';
      }
      elseif(
      $r=='zip')
      {
      include 
      $pclzip;

      $folder 0;
      $zip = new PclZip($file);
      if((
      $list $zip->listContent())==0)
      {print 
      '<div class="info">Unable to Open Archive<br/></div>';}
      else
      {
      $s sizeof($list);

      for(
      $i=0$i<$s$i++)
      {
      if(
      $list[$i]['folder'])
      {++
      $folder;}
      else
      {
      $link.= '»<span class="info">'.iconv('windows-1251','UTF-8',$list[$i]['filename']).'</span> ('.round($list[$i]['size']/1024,2).' kb)<br/>';
      }
      }

      print 
      'Files: '.($s-$folder).'<br/>
      Folder: '
      .$folder.'<br/>
      '
      .$link;
      }
      }
      elseif(
      $r=='rar')
      {
      if(
      function_exists('rar_open'))
      {
      $rar rar_open(dirname(__FILE__).'/'.$file);
      $list rar_list($rar);

      if(!
      $list)
      {print 
      '<div class="info">Unable to Open Archive<br/></div>';}
      else
      {
      $s sizeof($list);
      $folder 0;

      // Ebuchie objects
      for($i=0$i<$s$i++)
      {
      if(!
      $list[$i]->getCrc()) // Enjoying a checksum crc, if its gone, it's on the move folder
      {++$folder;}
      else
      {
      $link.= '»<span class="info">'.iconv('windows-1251','UTF-8',$list[$i]->getName()).'</span> ('.round($list[$i]->getUnpackedSize()/1024,2).' kb)<br/>';}
      }

      rar_close($rar);

      print 
      'Files: '.($s-$folder).'<br/>
      Folder: '
      .$folder.'<br/>
      '
      .$link;
      }
      }
      else
      {print 
      '<div class="info">Unable to Open Archive<br/></div>';}
      }

      if(
      $r!='jpg' AND $r!='gif' AND $r!='png')
      {print 
      '';}
      else
      {
      list(
      $x,$y$type,)=@getimagesize($file);
      if(
      $type==1){$type='gif';}
      if(
      $type==2){$type='jpeg';}
      if(
      $type==3){$type='png';}
      if(
      $p)
      {print 
      '<img src="pic.php?file='.$file.'" alt="'.basename($file).'" /><br/>';}
      print 
      'Type: '.$type.'<br/>
      Permission: '
      .$x.'x'.$y.'<br/>
      <img src="load.gif" alt="Download"/><a href="'
      .$file.'">Download the original file</a><br/>
      &gt;<a href="imgload.php?x=128&amp;y=128&amp;file='
      .$file.'">Download 128х128</a><br/>
      &gt;<a href="imgload.php?x=130&amp;y=130&amp;file='
      .$file.'">Download 130х130</a><br/>
      &gt;<a href="imgload.php?x=128&amp;y=160&amp;file='
      .$file.'">Download 128х160</a><br/>
      &gt;<a href="imgload.php?x=132&amp;y=176&amp;file='
      .$file.'">Download 132х176</a><br/>
      &gt;<a href="imgload.php?x=176&amp;y=144&amp;file='
      .$file.'">Download 176х144</a><br/>
      &gt;<a href="imgload.php?x=176&amp;y=220&amp;file='
      .$file.'">Download 176х220</a><br/>
      &gt;<a href="imgload.php?x=176&amp;y=208&amp;file='
      .$file.'">Download 176х208</a><br/>
      &gt;<a href="imgload.php?x=208&amp;y=208&amp;file='
      .$file.'">Download 208х208</a><br/>
      &gt;<a href="imgload.php?x=240&amp;y=320&amp;file='
      .$file.'">Download 240х320</a><br/>
      &gt;<a href="imgload.php?x=320&amp;y=440&amp;file='
      .$file.'">Download 240х320</a><br/>
      Your Size<br/>
      <form method="post" action="imgload.php?file='
      .$file.'">
      <div>
      <input name="x" maxlength="3" size="3"/>x<input name="y" maxlength="3" size="3"/><br/>
      <input name="pr" type="checkbox" value="1"/>Discard ratio<br/>
      <input value="Submit" type="submit"/>
      </div>
      </form>'
      ;
      }

      if(
      $r=='jar')
      {print 
      '<a href="jad.php?file='.$file.'">Download JAD</a><br/>';}

      include 
      'ad19.php'; echo'<br>';

      print 
      '<div class="surfmenu3">User Reviews For '.translit($file).'</div>';
      include 
      'counter.php' ;
      @include 
      'rating.dat';

      if(@
      in_array($file,@array_keys($rating)))
      {
      $tmp_rating explode('|',$rating[$file]);
      $show_rating $tmp_rating[0];
      $all_rating $tmp_rating[1];
      }
      else
      {
      // exactly string
      $show_rating '0';
      $all_rating '0';
      }


      if(
      $_POST['rating'])
      {
      $new_rating intval($_POST['rating']);

      $all_rating += 1;
      $show_rating round((($show_rating*($all_rating-1))+$new_rating)/$all_rating,1);

      $rating[$file] = $show_rating.'|'.$all_rating;

      foreach(
      $rating as $var => $k)
      {
      $ob_rating.= '\''.$var.'\'=>\''.$k.'\',';}

      file_put_contents('rating.dat','<?php
      $rating = array('
      .$ob_rating.');
      ?>'
      );
      }


      print 
      '<form action="file.php?file='.$file.'&amp;sort='.$sort.'&amp;p='.$p.'" method="post">
      <div>
      Total Rating: <strong>'
      .$show_rating.'</strong><br/>
      Total Votes: <strong>'
      .$all_rating.'</strong><br/>';
      print 
      '<div class="stevead1"><a href="komm.php?file='.$file.'" alt="" />Comments</a>  [Be First To Add Comment]</div>' ;

      print 
      '</div>' ;
      print 
      '<div class="stevead1"><a href="'.$file.'">3GP</a></div>' ;

      print 
      '<form action="file.php?file='.$file.'&amp;sort='.$sort.'&amp;p='.$p.'" method="post">';
      print 
      '<div class="surfmenu3">Give Your Rating For '.translit($file).'</div>';
      print 
      '<div>
      <select name="rating">
      <option value="5">5</option>
      <option value="4">4</option>
      <option value="3">3</option>
      <option value="2">2</option>
      <option value="1">1</option>
      </select> 
      <input type="submit" value="Rate This Now"/>
      </div>
      </form>'
      ;

      print
      '<div class="bor">Go Back:<br />';
      //Возврат

      if(($countj=count(explode('/',$dir)))>1)
      {
      $j=explode('/',$dir);
      for(
      $i=0$i<=$countj$i++)
      {
      $u=$j[count($j)-1];
      if(
      $u)
      {
      $g[$i]= '/<a href="index.php?dir='.join('/'$j).'&amp;p='.$p.'&amp;sort='.$sort.'">'.transdir($u).'</a>';
      unset(
      $j[count($j)-1]);
      }
      }
      for(
      $i=count($g)-1$i>=0$i--)
      {print 
      $g[$i];}

      print 
      '<br/>';
      }

      print 
      '<a href="index.php?p='.$p.'&amp;sort='.$sort.'">-Videos</a><br/></div>';
      include 
      'footer.php';
      ?>

      Comment


        #4
        can u show zip.php and zipf.php
        Last edited by desikida; 14.11.11, 10:45.

        Comment


          #5
          title for your index.php
          replace print'<title>mysite.com</title>'; with this
          Code:
          if($dir != NULL) { echo '<title>'.$dir.'</title>'; }
          else { echo '<title>mysite.com</title>'; }
          for file.php replace with this
          Code:
          if($file != NULL) { echo '<title>'.$file.'</title>'; }
          else { echo '<title>mysite.com</title>'; }

          Comment


            #6
            Add this to the head tag of ur code
            Code:
            <title><?php 
            $title=$_SERVER['REQUEST_URI'];
            $title=str_replace(".php","",$title);
            $title=str_replace("/","",$title);
            echo $title;
            ?>
            </title>
            Last edited by razzbee; 14.11.11, 11:42.

            Comment


              #7
              thank u mates.. both of ur codes works.. but it show title like load/collection/video.3gp is it possible to just show video name in the title than to show its path?? i googled alot but couldnt find the solution.. pls post ur replies.. and thanx for ur help

              Comment


                #8
                <title><?php
                $title=basename($_SERVER['REQUEST_URI']);
                $title=str_replace(".php","",$title);
                echo $title;
                ?>
                </title>
                PHP Code:
                $("#mfreak").find(".head brain").clone(); 
                Progress:
                Code:
                [|||___________________________] : 5%
                Output:
                Code:
                Memory limit reached, unable to complete operation.
                Support answer:
                Code:
                Try using a super uber strong mega computer to reach at least 10%.

                Comment


                  #9
                  Originally posted by mFreak View Post
                  <title><?php
                  $title=basename($_SERVER['REQUEST_URI']);
                  $title=str_replace(".php","",$title);
                  echo $title;
                  ?>
                  </title>
                  thank you mfreak this code works

                  Comment


                    #10
                    @mfreak
                    Plz check my site Download nepali ringtones wallpaper themes and much more only on nepalwap.com

                    Comment


                      #11
                      Download my sea autoindex view.php and head php zip file link http://nepalwap.com/Sea.zip
                      thanx advance
                      Last edited by Nepsalone; 11.01.12, 11:07.

                      Comment


                        #12
                        Its solved while ago, for header.php:
                        PHP Code:
                        if (strpos($_SERVER['PHP_SELF'], 'view.php') !== false) { 
                        $file mysql_fetch_array(mysql_query('SELECT * FROM `files` WHERE `id` = '.$id)); 
                        $file_title $file['name']; 
                        } else { 
                        $file_title ''

                        <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

                        Comment

                        Working...
                        X