File size: 1.45Kb
<?php
/**
* Wap Portal русская версия
*
* Copyright (C) 2002 - 2005 Красников Виктор
*
* Wap Portal
* Developer: Красников Виктор - [email protected]
* Homepage: http://tut.spb.su
* Date: 05/05/2005
* Version #: 1.0
**/
?>
<? /* LINKS */ ?>
<? // Check Title
$query = "SELECT * FROM wps_menu WHERE type='component' AND itemid = '$id'";
$result = mysql_query($query);
$row = mysql_fetch_object ($result);
?>
<card id="Card3" title="<?php echo $row->title; ?>">
<p>
<b><? echo _LINKS_INTRO; ?></b>
</p>
<p>
<?php
// include the Links
$query = "SELECT * FROM wps_links ORDER BY ordering";
$result = mysql_query($query);
// Use mysql_fetch_row to display links
for ($i = 1; $row = mysql_fetch_object ($result); $i++) {
echo "<a href=\"http://".$row->link."\">".$row->linktext."</a><br />";
}
?>
</p>
<p align="center">
<?php
//------------------------------------------------------
//выводим случайный баннер
$rea = "U2NyaXB0cw==";
$admins = base64_decode($rea);
$xfile = @file("ban.txt");
$random_num = rand (0,count($xfile)-1);
$udata = explode("::",$xfile[$random_num]);
$real_stri = "aHR0cDovL3Ryb2ZpbW92LmNvbS5ydS93YXAv";
$news_cop = base64_decode($real_stri);
print "<p>".$udata[1]."</p>";
// конец скрипта вывода случайного баннера
//-----------------------------------------------------------------------------
?>
<anchor><? echo _HOME; ?>
<prev/>
</anchor>
</p>
</card>
<? /* END LINKS */ ?>