%PDF- %PDF-
Direktori : /home/dordingu/public_html/iadapt/ |
Current File : /home/dordingu/public_html/iadapt/bloggingi.php |
<html> <HEAD> <TITLE>I adapt</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> </HEAD> <BODY BGCOLOR=#D40000 text="#FFFFFF" link="#FF0000" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> <? include("header.inc.php"); ?> <table width="815" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01"> <tr> <td rowspan="2" valign="top"><img src="images/newsitetemplate4_02.gif" width="52" height="368" alt=""></td> <td width="723" rowspan="3" valign="top" bgcolor="#000000"><table width="100%" border="0" cellspacing="6" cellpadding="6"> <tr> <td><div> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><strong>INGI</strong><br> <br> <br> <?php echo "<table width=100%>"; echo "<tr><td align=left>"; include("news/news.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 iadapt_blogg_ingi"; $result=mysql_query($sql,$db); $myrow=mysql_fetch_array($result); $num_rows=$myrow[0]; $data = fread(fopen($show_iadaptnews1, "r"), filesize($show_iadaptnews1)); $sql="select n_id,UNIX_TIMESTAMP(n_date) as my_date,n_title_eng, news_english, pic_link,n_pic,n_newstype from iadapt_blogg_ingi where n_newstype = 0 order by n_date desc,n_id desc $limit"; $result=@mysql_query($sql,$db); while ($myrow=mysql_fetch_array($result)) { $n_id=$myrow["n_id"]; $n_date=date($date_format,$myrow["my_date"]); $end_date=$myrow["end_date"]; $news_english=$myrow["news_english"]; $pic_link=$myrow["pic_link"]; $news_hold=explode("\n",$news_english); $picture=$myrow["n_pic"]; $n_newstype=$myrow["n_newstype"]; $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,7)=="http://") { $hold_word[$n]="<a href=".$hold_word[$n]." target=_new>".$hold_word[$n]."</a>"; } //----------------------------------- if (substr($hold_word[$n],0,4)=="www.") { $hold_word[$n]="<a href=http://".$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); //-------- $hold=$data; $hold=str_replace("{start_date}",$n_date,$hold); $hold=str_replace("{end_date}",$end_date,$hold); $hold=str_replace("{news_english}",$news_english,$hold); $hold=str_replace("{news_number}",$n_id,$hold); $hold=str_replace("{topic_eng}",$n_title_eng,$hold); if ($picture) { if ($pic_link) { $hold=str_replace("{picture}","<a href=\"$pic_link\" target=_new><img src=news/upload/".$picture." align=\"right\" border=0></a>",$hold); } else { $hold=str_replace("{picture}","<img align=\"right\" border=\"0\" src=\"news/upload/".$picture."\">",$hold); } } else { $hold=str_replace("{picture}","",$hold); } echo $hold; } 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 $showing; if ($start!=0) { echo "<Center><a href=news.php?prev=$start>Latest News</a></Center>"; } if ($num_rows> $stop ) { echo "<Center><a href=news.php?start=$start>More news..</a></Center>"; } echo "</td></tr>"; echo "</table>"; ?> </font></div> </div> <div align="left"><br> </div></td> </tr> </table></td> <td rowspan="3" valign="top"><img src="images/newsitetemplate4_04.gif" width="39" height="392" alt=""></td> <td><img src="images/spacer.gif" width="1" height="192" alt=""></td> </tr> <tr> <td height="200"><img src="images/spacer.gif" width="1" height="199" alt=""></td> </tr> <tr> <td valign="top"> </td> <td><img src="images/spacer.gif" width="1" height="1" alt=""></td> </tr> </table> <!-- End ImageReady Slices --> <map name="Map"> <area shape="rect" coords="506,153,543,165" href="music.php" alt="Music and media"> <area shape="rect" coords="593,152,616,165" href="guestbook" alt="Guestbook"> <area shape="rect" coords="624,152,641,165" href="about.php" alt="About I adapt"> <area shape="rect" coords="549,152,585,164" href="news.php" alt="Band news"> <area shape="rect" coords="647,150,697,166" href="photo/index.php" alt="Band Photos"> <area shape="rect" coords="706,151,772,166" href="words.php" alt="Words"> <area shape="rect" coords="533,167,574,180" href="lyrics.php" alt="Lyrics"> <area shape="rect" coords="583,165,644,180" href="albums.php" alt="Our Releases"> <area shape="rect" coords="711,166,747,180" href="links.php" alt="Links"> <area shape="rect" coords="753,165,778,179" href="buy.php" alt="Where to get our stuff"> <area shape="poly" coords="647,167,647,179,704,179,704,167" href="theysay.php" alt="What they say"> </map> <? include("footer.inc.php"); ?></BODY></html>