File name to be displayed in <title>

Started on the old forum in November 2011 · view the original in the archive · old links redirect here

#auto #ffmpeg #index #php #title

11 replies · 1,169 views · started 15 years ago · 1 min read

TL;DR · summary of 11 replies
  • -title>mysite.com&lt;/title>
  • Add this to the head tag of your code:

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

8 participants
pyramid_raider Developer · 60 posts #1

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
pyramid_raider Developer · 60 posts #3

this is my index.php

<?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>1 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.'&sort=0&dir='.$dir.'">name</a>/date<br/></div>';}
else
{print '<div class="surfmenu1">Sort by: name/<a href="index.php?p='.$p.'&sort=1&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.'&p='.$p.'&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/1024, 2).' 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.'&file='.$glob_file[$i].'&sort='.$sort.'">?</a>]</div><br />';
print '<a href="jad.php?p='.$p.'&file='.$glob_file[$i].'&sort='.$sort.'">Download JAD</a></div><br />';
}
elseif(r($glob_file[$i])=='txt')
{print '<a href="txt.php?p='.$p.'&file='.$glob_file[$i].'&sort='.$sort.'">Read</a><br />';}
else
{print '<a href="file.php?p='.$p.'&file='.$glob_file[$i].'&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).'&p='.$p.'&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.'&sort='.$sort.'">Videos</a><br/>';}

include 'footer.php';
?>

and this is where file is downloaded file.php

<?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>1 OR $sort<0)
{$sort=0;}

$file=str_replace("\0", null, htmlspecialchars($_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/1024, 2).' 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/>
><a href="imgload.php?x=128&y=128&file='.$file.'">Download 128х128</a><br/>
><a href="imgload.php?x=130&y=130&file='.$file.'">Download 130х130</a><br/>
><a href="imgload.php?x=128&y=160&file='.$file.'">Download 128х160</a><br/>
><a href="imgload.php?x=132&y=176&file='.$file.'">Download 132х176</a><br/>
><a href="imgload.php?x=176&y=144&file='.$file.'">Download 176х144</a><br/>
><a href="imgload.php?x=176&y=220&file='.$file.'">Download 176х220</a><br/>
><a href="imgload.php?x=176&y=208&file='.$file.'">Download 176х208</a><br/>
><a href="imgload.php?x=208&y=208&file='.$file.'">Download 208х208</a><br/>
><a href="imgload.php?x=240&y=320&file='.$file.'">Download 240х320</a><br/>
><a href="imgload.php?x=320&y=440&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.'&sort='.$sort.'&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.'&sort='.$sort.'&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).'&p='.$p.'&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.'&sort='.$sort.'">-Videos</a><br/></div>';
include 'footer.php';
?>
desikida Junior · 13 posts #4

can u show zip.php and zipf.php

ogah Junior · 17 posts #5

title for your index.php replace print'<title>mysite.com</title>'; with this

if($dir != NULL) { echo '<title>'.$dir.'</title>'; }
else { echo '<title>mysite.com</title>'; }

for file.php replace with this

if($file != NULL) { echo '<title>'.$file.'</title>'; }
else { echo '<title>mysite.com</title>'; }
razzbee Developer · 130 posts #6

Add this to the head tag of ur code

<title><?php 
$title=$_SERVER['REQUEST_URI'];
$title=str_replace(".php","",$title);
$title=str_replace("/","",$title);
echo $title;
?>
</title>
pyramid_raider Developer · 60 posts #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

mFreak Developer · 66 posts #8
<title><?php $title=basename($_SERVER['REQUEST_URI']); $title=str_replace(".php","",$title); echo $title; ?> </title>
$("#mfreak").find(".head brain").clone();

Progress:

[|||___________________________] : 5%

Output:

Memory limit reached, unable to complete operation.

Support answer:

Try using a super uber strong mega computer to reach at least 10%.

👋

pyramid_raider Developer · 60 posts #9

mFreak wrote:

<title><?php $title=basename($_SERVER['REQUEST_URI']); $title=str_replace(".php","",$title); echo $title; ?> </title>

thank you mfreak this code works8)

arnage Lead · 811 posts #12

Its solved while ago, for header.php:

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***

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close