%PDF- %PDF-
Direktori : /home/dordingu/www/vigspa/ |
Current File : /home/dordingu/www/vigspa/bio.php |
<html> <head> <title>V�gsp�</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="site/bio.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#333333" text="#FFFFFF" topmargin="0"> <p align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><br> <b> Bio<br> </b></font></p> <p> <?php echo "<table width=100%>"; echo "<tr><td align=left>"; //include("news/setup.inc"); include_once("news/database.inc.php"); //--------------------------- $show_news="1"; $show_bio="templates/bio.tmpl"; $time_offset="+5"; // user supplys a time zone off set for there server. 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; } //------------------ $sql="select count(*) from vigspa_bio"; $result=mysql_query($sql,$db); $myrow=mysql_fetch_array($result); $num_rows=$myrow[0]; $data = fread(fopen($show_bio, "r"), filesize($show_bio)); $sql="select * from vigspa_bio"; $result=@mysql_query($sql,$db); while ($myrow=mysql_fetch_array($result)) { $n_id=$myrow["n_id"]; $n_date=date($date_format,$myrow["my_date"]); $biotext=$myrow["biotext"]; $news_hold=explode("\n",$biotext); $biotitle=$myrow["biotitle"]; 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].""; } 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); } $biotext=implode("\n",$news_hold); $biotext=nl2br($biotext); if (!$end_date) { $end_date=""; } $hold=$data; $hold=str_replace("{DATE}",$n_date,$hold); $hold=str_replace("{TEXTI}",$biotext,$hold); $hold=str_replace("{NUMER}",$n_id,$hold); $hold=str_replace("{TITILL}",$biotitle,$hold); echo $hold; } echo ""; echo ""; ?> </p> <p align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><b> </b> </font></p> <p align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><font size="-2"> </font></font> </body> </html>