Viewing File: /people/testlab/www/testlab.com.pl/script/s513.php

<?
$db = new DBConnect();
$db2 = new DBConnect();
$sql="select * from pages where id='".$_GET['page']."'";
$db->query($sql);
$row=$db->fetchrow(); 
$nazwa_strony=$row['nazwa'];
$opis_strony=$row['tresc'];


if ($opis_strony!='') echo $opis_strony."<br>";
$sql = "select * from `aktualnosci` where skrypt_id='".$_GET['page']."'"; //and (`tresc_krotka` like '".$_GET['page'].",%' or `tresc_krotka` like '%,".$_GET['page'].",%'  or `tresc_krotka`='')  order by rand()
$result = $db->query($sql);

//<div id=links>
//<div id=links_header></div>
//<div id=links_body>

while ($row=$db->fetchrow())
{
$typ = end(explode(".",$row['plik']));
if ($typ!='swf')
{
echo "<br>";
//echo "<div id=links_block>";
if ($row['opcje']=='_blank') $row['link']='http://'.$row['link'];
if ($row['link']!='http://') echo "<a href='".$row['link']."' target='".$row['opcje']."' title=''>";
if (file_exists("upload/".$row['plik'].".jpg")) echo "<img src='upload/".$row['plik'].".jpg' alt='' style='vertical-align:middle;'>";
if (($row['nazwa']!='') || ($row['tresc']!='')) echo " ".$row['nazwa']." ".$row['tresc']; 
if ($row['link']!='http://') echo "</a>";
//echo "</div>";
}
else
{
echo "<div id=baner".$row['id']." style='height:155px;width:680px;z-index:1;'> </div>";
?>
<script type="text/javascript">
			
var so = new SWFObject("upload/<?echo "".$row['plik'];?>", "movie", "680", "155", "6", "#fff'");
so.addParam("loop", "true");
so.addParam("allowfullscreen", "true");
so.addParam("wmode", "transparent");
so.write("baner<?echo $row['id']?>");
			
		</script>
		<?
}

}
 

//</div>
//</div>
?>


Back to Directory File Manager