%PDF- %PDF-
Mini Shell

Mini Shell

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

<html>
<head>
<title>V&iacute;gsp&aacute;</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="site/main.css" type="text/css">
</head>

<body bgcolor="#333333" text="#FFFFFF" link="#CCCCCC" vlink="#999999" alink="#CC0000">
  
<p align="center"><font size="-2" face="Verdana, Arial, Helvetica, sans-serif">V&iacute;gsp&aacute;:</font></p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center" valign="top"> 
      <p align="center"><font size="-2" face="Verdana, Arial, Helvetica, sans-serif"></font></p>
      <?php
$show_vigspa="templates/band.html";
$time_offset="+5"; 
$date_format="d/m/Y";
 function time_zone($time_offset)

	{

	$offset=substr($time_offset,0,1);

	switch ($offset){

		case "+":

			$time_offset=str_replace("+","",$time_offset);

			$now=time()+($time_offset*3600);

			break;

		case "-":	

			$time_offset=str_replace("-","",$time_offset);

			$now=time()-($time_offset*3600);

			break;

		default:

			$now=time();

			break;

	}

		

	return $now;

	}


echo "<table width=100%>";
echo "<tr><td>";
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_members";
$result=mysql_query($sql,$db);
$myrow=mysql_fetch_array($result);
$num_rows=$myrow[0];	

$data = fread(fopen($show_vigspa, "r"), filesize($show_vigspa));

?>
      <div align="center">
        <table border=0 cellspacing=20 valign=top>
          <p></p>
          <td> 
            <?
$sql="select n_id,UNIX_TIMESTAMP(n_date) as my_date, name, email, life, iplay, likes, dislikes, addinfo, n_pic from vigspa_members";
$result=@mysql_query($sql,$db);
while ($myrow=mysql_fetch_array($result))
	{
	if ($count % 2 == 0)
	{
			
	}
	$n_id=$myrow["n_id"];
	$n_date=date($date_format,$myrow["my_date"]);
	$life=$myrow["life"];
	$story_hold=explode("\n",$life);
	$picture=$myrow["n_pic"];
	$email=$myrow["email"];
	$name=$myrow["name"];
	$iplay=$myrow["iplay"];
	$dislikes=$myrow["dislikes"];
	$likes=$myrow["likes"];
	$addinfo=$myrow["addinfo"];
	for ($i=0;$i<count($story_hold);$i++)
		{
		$hold_word=explode(" ",$story_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>";
				
				}
			
			}	
		$story_hold[$i]=implode(" ",$hold_word);	
		}
	$life=implode("\n",$story_hold);	
	$life=nl2br($life);
	$off_set=time_zone($time_offset);
	$today=date("Y-m-d H:i",$off_set);
//	$hold=$data;

	$hold = "";

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

	$hold=str_replace("{date}",$n_date,$hold);
	$hold=str_replace("(numer}",$n_id,$hold);
	$hold=str_replace("{name}",$name,$hold);
	$hold=str_replace("{iplay}",$iplay,$hold);

       if ($picture)
		{
		$hold=str_replace("{picture}","<a href=members.php?n_id=$n_id>
<img border=\"0\" src=\"news/upload/".$picture."\" width=100 height=132></a>",$hold);
		}
	else
		{
		$hold=str_replace("{picture}","",$hold);
		}
//--------------
       if ($email)
		{
		$hold=str_replace("{email}","<a href='mailto:$email'>$email</a>",$hold);
		}
	else
		{
		$hold=str_replace("{email}","",$hold);
		}
//--------------
       if ($life)
		{
		$hold=str_replace("{life}","<font size=-2>Life:</font><BR>$life",$hold);
		}
	else
		{
		$hold=str_replace("{life}","",$hold);
		}
//--------------
       if ($likes)
		{
		$hold=str_replace("{likes}","<font size=-2>Likes:</font><BR>$likes",$hold);
		}
	else
		{
		$hold=str_replace("{likes}","",$hold);
		}
//-------------
       if ($dislikes)
		{
		$hold=str_replace("{dislikes}","<font size=-2>Dislikes:</font><BR>$dislikes",$hold);
		}
	else
		{
		$hold=str_replace("{dislikes}","",$hold);
		}
//-----------------
       if ($addinfo)
		{
		$hold=str_replace("{addinfo}","<font size=-2>Additional Info:</font><BR>$addinfo",$hold);
		}
	else
		{
		$hold=str_replace("{addinfo}","",$hold);
		}
	echo $hold;
	}
//----------------
echo "</td></tr>";	
echo "</table>";
?>
          </td>
          </tr>
        </table>
      </div>
      <p align="center">&nbsp; </p>
      <p>&nbsp;</p>

</td>
  </tr>
</table>
<p align="center">&nbsp;</p>
          </body>
</html>

Zerion Mini Shell 1.0