All pastes #409051 Raw Edit

Miscellany

public php v1 · immutable
#409051 ·published 2007-03-25 12:10 UTC
rendered paste body
<?php####################################################################### PHP-Nuke                                                           ##====================================================================##  Copyright (c) 2003 - Francisco Burzi                              ##  http://phpnuke.org/                                               ##====================================================================##  block-kayan_yenihaber.php blogu PHP-Nuke 7+X/3.1 patch  uyumlu    ##====================================================================##  Copyright (c) 2006 - James FOX. (james.fox46@hotmail.com)         ##  http://wwww.turkmeydan.com/                                       #######################################################################if ( !defined('BLOCK_FILE') ) {	Header("Location: ../index.php");	die();}global $prefix, $multilingual, $currentlang, $db;//Block Ayarlar&#305;//$behavior = "scroll";/////"Blogun kayd&#305;rma veya normal olarak kullan&#305;lma ayar&#305; buradan yap&#305;lacakt&#305;r.$direction = "left";//////Eger kayan block olarak kullanacaksan&#305;z kayd&#305;rmay&#305;. "up" (yukar&#305;) veya, "down" (asag&#305;) ayarlayabilirsiniz.$height = "150";//////Block yuksekligini buradan ayarlay&#305;n pixel cinsinden.//Turkmeydan.com//$width = "460";//////Block genislik ayar&#305; buradan.$content .="";//Turkmeydan.com//$content .= "<br>";$content .= "<A name= \"scrollingCode\"></A>";$content .="<marquee behavior= \"$behavior\" align= \"center\" direction= \"$direction\" height=\"$height\" width=\"$width\" scrollamount= \"1\" scrolldelay= \"0\" onmouseover='this.stop()' onmouseout='this.start()'>";$content .="<div align=\"center\">";$content .="<STYLE=\"text-decoration: none\">";//# Kayd&#305;rma kodlar&#305; bitisi #if ($multilingual == 1) {	$querylang = "WHERE (alanguage='$currentlang' OR alanguage='')";} else {	$querylang = "";}//Kodlama basl&#305;yor////$sql = "SELECT sid, title, hometext, bodytext, comments, counter FROM ".$prefix."_stories $querylang WHERE topic=1 ORDER BY sid DESC LIMIT 0,15";$sql = "SELECT sid, title, hometext, bodytext, comments, counter FROM ".$prefix."_stories $querylang ORDER BY sid DESC LIMIT 0,15"; // Blockta gosterilecek haber say&#305;s&#305;n&#305; buradan ayarlay&#305;n.$result = $db->sql_query($sql);while ($row = $db->sql_fetchrow($result)) {	$sid = $row['sid'];	$title = $row[title];	$hometext = $row[hometext];	$bodytext = $row[bodytext];	$comtotal = $row[comments];	$counter = $row[counter];	$content .= "<table align=\"left\" cellpadding=\"0\" cellspacing=\"0\"><tbody>	<tr><td><a href=\"modules.php?name=News&amp;file=article&amp;sid=$sid\"><b><span style=\"font-size:12px;font-family:Tahoma,verdana,sans-serif;color:#FA5106\">$title</a></span></b></td></tr>	<tr><td><span style=\"font-size:11px;font-family:Tahoma,verdana,sans-serif;color:#000000\" width=\"300\">$hometext<br>$bodytext</td></tr>	</tbody></table>";}$content .="</marquee>";$content .= "<br><br><center><a href=\"modules.php?name=Stories_Archive\"><b>Haber Arsivi</b></center><br>";?>