" . date ("m/d/y", filemtime($filename));
echo "";
}
}
?>
Translate this page:
Share This Page:
|
|
- Advertisement -
|
|
|
= 60 and $dtime < 3600 ) {
$n = intval($dtime/60);
$pstring = "$n minutes ago";
} ElseIf ( $dtime >= 3600 and $dtime < 86400 ) {
$n = intval($dtime/3600);
$pstring = "$n hours ago";
} ElseIf ( $dtime >= 86400 and $dtime < 604800 ) {
$n = intval($dtime/86400);
$pstring = "$n days ago";
} else {
$pstring = "More than one week ago";
}
if ( $title == $oldtitle ) {
++$i;
continue;
}
$pattern[0] = '/\'/';
$pattern[1] = '/\"/';
$replace[0] = ''';
$replace[1] = '"';
$desc = preg_replace($pattern, $replace, $desc);
$pieces = array("-"," ",":");
$adate = str_replace($pieces,",",$adate);
if ( $src != $lastsrc ) {
if ( $i > 0 ) {
?>
" >
">" target="_blank">
.png" alt="" title="" style="vertical-align: middle;" /> " href="" style="font-weight: bold"> [] " target="_blank">
";
echo "
";
// print 'previous' link only if we're not
// on page one
if ($pageNum > 1)
{
$page = $pageNum - 1;
$prev = "
[Newer] ";
$first = "
[Newest Articles] ";
}
else
{
$prev = ' [Newer] '; // we're on page one, don't enable 'previous' link
$first = ' [Newest Articles] '; // nor 'first page' link
}
// print 'next' link only if we're not
// on the last page
if ($pageNum < $maxPage)
{
$page = $pageNum + 1;
$next = "
[Older] ";
$last = "
[Oldest Articles] ";
}
else
{
$next = ' [Older] '; // we're on the last page, don't enable 'next' link
$last = ' [Oldest Articles] '; // nor 'last page' link
}
// print the page navigation link
echo $first . $prev . " Showing page
$pageNum of
$maxPage pages " . $next . $last;
mysql_close();
// echo "
";
?>