%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/dordingu/public_html/vigspa/
Upload File :
Create Path :
Current File : /home/dordingu/public_html/vigspa/lyrics.php

<title>V&iacute;gsp&aacute;</title>
<link href="site/links.css" rel="stylesheet" type="text/css">

<body bgcolor="#333333" text="#FFFFFF" link="#000000" vlink="#999999" alink="#FF0000">
<p><font color="#FFFFFF"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Lyrics</font></strong></font></p>
<p>
  <?php

echo "<table width=100%>";
echo "<tr><td align=left>";
include("news/lyrics.inc");
include_once("news/database.inc.php");

if (($show_news!="all"))
	{
	
	
	if (isset($start) && !$prev)
		{
		
		$start_row=$start;
		$start=$start+$show_news;
		
		}
	else if (!$start && !$prev)
		{
		$start=0;
		$start_row=0;
		
		}
		
	if ($prev)
		{
		$start_row=$prev;
		$start=$prev-$show_news;
		
		}	
	if (!$end)
		{
		
		$end=$show_news;
		
		}	
	$limit="Limit $start,$end";
	
	
	}
	
$sql="select count(*) from vigspa_lyrics";
$result=mysql_query($sql,$db);
$myrow=mysql_fetch_array($result);
$num_rows=$myrow[0];	

$data = fread(fopen($show_lyrics, "r"), filesize($show_lyrics));
/*
?><div align="center">
  <table border=0 cellspacing=20 valign=top> </p>

  <tr> 
      <?
*/
$sql="select n_id,UNIX_TIMESTAMP(n_date) as my_date,n_title_eng, news_english from vigspa_lyrics  order by n_date desc,n_id desc $limit";
$result=@mysql_query($sql,$db);
$count=0;
while ($myrow=mysql_fetch_array($result))
	{
	if ($count % 2 == 0)
	{
			
	}

	$n_id=$myrow["n_id"];
	$n_date=date($date_format,$myrow["my_date"]);
	$news_english=$myrow["news_english"];
	$news_hold=explode("\n",$news_english);
	$n_title_eng=$myrow["n_title_eng"];
	for ($i=0;$i<count($news_hold);$i++)
		{
		$hold_word=explode(" ",$news_hold[$i]);
		for ($n=0;$n<count($hold_word);$n++)
			{
			if (substr($hold_word[$n],0,4)=="http:")
				{
				
				$hold_word[$n]="<a href=".$hold_word[$n]." target=_new>".$hold_word[$n]."</a>";
				
				}
			else if (strpos($hold_word[$n],"@"))
				{
				
				$hold_word[$n]="<a href=\"mailto:$hold_word[$n]\" target=_new>$hold_word[$n]</a>";
				
				}
			
			}	
		$news_hold[$i]=implode(" ",$hold_word);	
		}
	$news_english=implode("\n",$news_hold);	
	$news_english=nl2br($news_english);
	
	
	
	if (!$end_date)
		{
		$end_date="";
		}

	$hold = "";

	if ($count % 2 == 0)
	{
		$hold.="</tr><tr>";
	}
	$hold.=$data;

	$hold=str_replace("{DATE}",$n_date,$hold);
	$hold=str_replace("{TEXTI}",$news_english,$hold);
	$hold=str_replace("{ID}",$n_id,$hold);
 	$hold=str_replace("{TITILL}",$n_title_eng,$hold);
	echo $hold;
	$count++;
	}
echo "</tr></table>";
echo "</td></tr>";	
echo "<tr><td align=left>";
$stop=$start+$show_news;
if ($stop>$num_rows)
	{
	$stop=$num_rows;
	
	}
$start_point=$start+1;	
$showing="<Center># $start_point<br></Center>";
echo "<br><br>";

echo "</td></tr>";
echo "</table>";

?>

Zerion Mini Shell 1.0