%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/dordingu/www/vigspa/
Upload File :
Create Path :
Current File : /home/dordingu/www/vigspa/test.php

 <link href="site/lyrics.css" rel="stylesheet" type="text/css"> <body bgcolor="#000000" text="#FFFFFF">
<p align="center"> 
  <?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_lyricsone, "r"), filesize($show_lyricsone));
?>
</p>
<div align="center"> 
  <table border=0 cellspacing=20 valign=top>
    <tr> 
      <?
$sql="select * from vigspa_lyrics ORDER BY RAND() limit 0,01";
$result=@mysql_query($sql,$db);
while ($myrow=mysql_fetch_array($result))
	{

	$n_id=$myrow["n_id"];
	$n_date=date($date_format,$myrow["my_date"]);
	$news_english=$myrow["news_english"];
	$news_hold=explode("\n",$news_english);
	$about=$myrow["about"];
	$about_hold=explode("\n",$about);
	$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);
// ---------------	

// ---------------
	for ($i=0;$i<count($about_hold);$i++)
		{
		$hold_word=explode(" ",$about_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);	
		}
	$about=implode("\n",$about_hold);	
	$about=nl2br($about);
// ---------------	
	
	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("{NUMER}",$n_id,$hold);
 	$hold=str_replace("{TITILL}",$n_title_eng,$hold);
 	$hold=str_replace("{ABOUT}",$about,$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>";

?>
    </tr>
  </table>
</div>

 
<p align="center"><a href="lyrics.php"><font color="#CCCCCC" size="-2">back</font></a>
</body>
</html>

Zerion Mini Shell 1.0