Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
1161
??? Sitem deki Haberleri ..(25357 okuma, 26 yanıt) Free Hosta Php Nuke Kurul ..(16447 okuma, 14 yanıt) EKLENTİ: Misafire mesajın ..(36856 okuma, 38 yanıt) Php Nuke 9.0 Geliyor ..(20849 okuma, 19 yanıt) Bu başlık için mesaj bulu ..(14012 okuma, 15 yanıt) Facebook Sohbet Tipi Sohb ..(17739 okuma, 15 yanıt) üye aktivasyon ..(10631 okuma, 8 yanıt) Facebook tarzı altbar... ..(6258 okuma, 1 yanıt) kaldırmak istediğim bölüm ..(6530 okuma, 2 yanıt) Resimli RSS ..(23218 okuma, 25 yanıt) Onay linkini kaldirmak ..(11065 okuma, 8 yanıt) Yardım :( Site açılırken ..(6633 okuma, 2 yanıt) .Htaccess ile uzantıda ke ..(8257 okuma, 4 yanıt) block genişliği ..(5701 okuma, 1 yanıt) Haber Resimleri ve Slide ..(14373 okuma, 12 yanıt) Foruma büyük boyutlu resi ..(7297 okuma, 3 yanıt) Php-Nuke 8.0 Paket ..(9419 okuma, 6 yanıt) Hangi sürümü önerirsiniz? ..(10483 okuma, 8 yanıt) ethai1 3 ..(13143 okuma, 10 yanıt) Yeni PEHASPESEO ..(69802 okuma, 82 yanıt) Türkçe Karakter sorunu ? ..(37709 okuma, 36 yanıt) tek modul için sağ ve sol ..(11395 okuma, 8 yanıt) Php-nuke8.0 başlıklarda t ..(10574 okuma, 8 yanıt) Phpden iyi anlayan ..(5412 okuma, 1 yanıt) Php nuke 7.6 - 3.1 patch ..(73179 okuma, 89 yanıt) Mp3 Üst Player Yardım ..(29482 okuma, 40 yanıt) Toplu üyelik silme? ..(11107 okuma, 8 yanıt) Çözümleyemediğim hata... ..(12368 okuma, 11 yanıt) bloğu kayan hale getirmek ..(5962 okuma, 2 yanıt) Makale modulu ..(8575 okuma, 5 yanıt) PHP-Nuke Haber V.1 Paylas ..(85167 okuma, 121 yanıt) title değiştirme ..(10290 okuma, 6 yanıt) Arkadaşlar bu sorunun çöz ..(10024 okuma, 6 yanıt) Php Nuke 8.1 ..(4339 okuma, 0 yanıt) merhaba ..(10263 okuma, 9 yanıt) Anasayfa için boş modül o ..(13477 okuma, 13 yanıt) admin panelinde Access De ..(6377 okuma, 2 yanıt) Bu başlığa hiç cevap gelm ..(26364 okuma, 25 yanıt) Nuke Tema yapilisi ..(17094 okuma, 16 yanıt) Mavisce-net temasina bann ..(8714 okuma, 6 yanıt) PHP-Nuke wTeam - eklentil ..(6629 okuma, 2 yanıt) coppermine hata ..(10672 okuma, 8 yanıt) içerik tanıtımı ..(6270 okuma, 2 yanıt) Haber Ve İçeriğe Resim Ek ..(7154 okuma, 3 yanıt) google keywords ..(8949 okuma, 6 yanıt) 8.0'da html sorunu ..(5492 okuma, 1 yanıt) PHP-Nuke_8.1.3.5+NukeSent ..(53989 okuma, 76 yanıt) üye olunurken gereksiz is ..(10002 okuma, 7 yanıt) Arkadaşlar kolifa haber s ..(6348 okuma, 2 yanıt) Hesabınız'a tıklayınca te ..(10483 okuma, 7 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - powernuke uymlu mavimsn temasinda hata
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
huseyinkoc Mesaj: 200+
Kayıt: Nov 30, 2005 Mesajlar: 269
Tarih: 2008-02-21, 19:45:26 Mesaj konusu: powernuke uymlu mavimsn temasinda hata
temayı yükledim hata verdi
Fatal error: Call to undefined function OpenTable6() in /home2/lavavri1/public_html/avril/modules/Haberler/index.php on line 236
index.php kodaları
Kod:
<?php
echo"<!--PowerNuke CMS Diamond Extreme Bütün Haklari ve Kodlamalari Sadece ve Sadece PHPTürk.De Sitesine Aittir izinsiz Degisitirilemez, Dagitilamaz ve Degistirilmeye Ön Görülemez. -->"
. "<!--Copyright By ibrahim www.phpturk.de webmaster@phpturk.de -->"."";
/* Genel Ayarlar Baslangici*/
//Sitenizin Diline Göre Ayarlama Yapabilirsiniz
if ($currentlang=='english') {
$limit = 4; // display how many articles per topic
$show=2; //Rasgele Haber Kactane Göstersin
$rcolumn=2; //Rasgele Haber Kac block olsun Yanyana
$width="50%"; //Blocklarin Genisligi
$column = 2; // topics' column - default = 1
$textlenght = 15; // Haber Basligi icin Kelime siniri Belirleyin
}
else{
$limit = 4; // Kac konu Göstersin
$show=2; //Kac Haber Göstersin
$rcolumn=2; //Rasgele Haber Blogu gösterim sekli yan yana
$width="50%"; //block genisligi
$column = 2; // topics' column - default = 1
$textlenght = 15; // Haber Basligi icin Kelime siniri Belirleyin
}
/* Genel Ayarlar Bitimi */
if (!defined('MODULE_FILE')) {
die("You can't access this file directly...");
}
define('INDEX_FILE', true);
$index = 1;
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
function cut($str,$max){
$count = strlen($str);
if($count >= $max) {
for ($pos=$max;$pos>0 && ord($str[$pos-1])>=127;$pos--);
if (($max-$pos)%2 == 0)
$str = substr($str, 0, $max) . "...";
else
$str = substr($str, 0, $max+1) . "...";
return $str;
} else {
$str = "$str";
return $str;
}
}
function theindex($new_topic=0) {
global $db, $storyhome, $topicname, $topicimage, $topictext, $datetime, $user, $c o o k i e, $nukeurl, $prefix, $multilingual, $currentlang, $articlecomm, $sitename, $user_news,$limit, $column, $textlenght,$tipath,$querylang,$rcolumn,$width,$show;
if ($multilingual == 1) {
$querylang = "AND (alanguage='$currentlang' OR alanguage='')";
} else {
$querylang = "";
}
include("header.php");
automated_news();
if ($new_topic == 0) {
$qdb = "WHERE (ihome='0' OR catid='0')";
$home_msg = "";
} else {
$qdb = "WHERE topic='$new_topic'";
$sql_a = "SELECT topictext FROM ".$prefix."_topics WHERE topicid='$new_topic'";
$result_a = $db->sql_query($sql_a);
$row_a = $db->sql_fetchrow($result_a);
$numrows_a = $db->sql_numrows($result_a);
$topic_title = $row_a[topictext];
OpenTable();
if ($numrows == 0) {
echo "<center><font class=\"title\">$sitename</font><br><br>"._NOINFO4TOPIC."<br><br>[ <a href=\"modules.php?name=News\">"._GOTONEWSINDEX."</a> | <a href=\"modules.php?name=Topics\">"._SELECTNEWTOPIC."</a> ]</center>";
} else {
echo "<center><font class=\"title\">$sitename: $topic_title</font><br><br>"
."<form action=\"modules.php?name=Search\" method=\"post\">"
."<input type=\"hidden\" name=\"topic\" value=\"$new_topic\">"
.""._SEARCHONTOPIC.": <input type=\"name\" name=\"query\" size=\"30\"> "
."<input type=\"submit\" value=\""._SEARCH."\">"
."</form>"
."[ <a href=\"index.php\">"._GOTOHOME."</a> | <a href=\"modules.php?name=Topics\">"._SELECTNEWTOPIC."</a> ]</center>";
}
CloseTable();
echo "<br>";
}
$today = getdate();
$day = $today["mday"];
if ($day < 10) {
$day = "0$day";
}
$month = $today["mon"];
if ($month < 10) {
$month = "0$month";
}
$year = $today["year"];
$tdate = "$year-$month-$day";
$x=1;
//OpenTable();
echo"<table width=\"100%\" height=\"100%\">\n";
$sql = "SELECT sid, catid, aid, title, time, hometext, bodytext, comments, counter, topic, informant, notes, acomm, score, ratings FROM ".$prefix."_stories $qdb $querylang ORDER BY sid DESC limit $show";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
$s_sid = $row[sid];
$catid = $row[catid];
$aid = $row[aid];
$title = $row[title];
$time = $row[time];
$hometext = $row[hometext];
$bodytext = $row[bodytext];
$comments = $row[comments];
$counter = $row[counter];
$topic = $row[topic];
$informant = $row[informant];
$notes = $row[notes];
$acomm = $row[acomm];
$score = $row[score];
$ratings = $row[ratings];
if ($catid > 0) {
$sql2 = "SELECT title FROM ".$prefix."_stories_cat WHERE catid='$catid'";
$result2 = $db->sql_query($sql2);
$row2 = $db->sql_fetchrow($result2);
$cattitle = $row2[title];
}
getTopics($s_sid);
formatTimestamp($time);
$subject = stripslashes($subject);
$hometext = stripslashes($hometext);
$notes = stripslashes($notes);
$introcount = strlen($hometext);
$fullcount = strlen($bodytext);
$totalcount = $introcount + $fullcount;
$c_count = $comments;
$r_options = "";
if (isset($c o o k i e[4])) { $r_options .= "&mode=$c o o k i e[4]"; }
if (isset($c o o k i e[5])) { $r_options .= "&order=$c o o k i e[5]"; }
if (isset($c o o k i e[6])) { $r_options .= "&thold=$c o o k i e[6]"; }
if (is_user($user)) {
$the_icons = " | <a href=\"modules.php?name=News&file=article&sid=$s_sid\"><img src=\"images/print.gif\" border=\"0\" alt=\""._PRINTER."\" title=\""._PRINTER."\" width=\"16\" height=\"11\"></a> <a href=\"modules.php?name=News&op=NEFriend&sid=$s_sid\"><img src=\"images/friend.gif\" border=\"0\" alt=\""._FRIEND."\" title=\""._FRIEND."\" width=\"16\" height=\"11\"></a>";
} else {
$the_icons = "";
}
$story_link = "<a href=\"modules.php?name=News&file=article&sid=$s_sid$r_options\">";
$morelink = "(";
if ($fullcount > 0 OR $c_count > 0 OR $articlecomm == 0 OR $acomm == 1) {
$morelink .= "$story_link<b>"._READMORE."</b></a> | ";
} else {
$morelink .= "";
}
if ($articlecomm == 1 AND $acomm == 0) {
if ($c_count == 0) { $morelink .= "$story_link"._COMMENTSQ."</a>"; } elseif ($c_count == 1) { $morelink .= "$story_link$c_count "._COMMENT."</a>"; } elseif ($c_count > 1) { $morelink .= "$story_link$c_count "._COMMENTS."</a>"; }
}
$morelink .= "$the_icons";
$sid = $s_sid;
if ($catid != 0) {
$sql3 = "SELECT title FROM ".$prefix."_stories_cat WHERE catid='$catid'";
$result3 = $db->sql_query($sql3);
$row3 = $db->sql_fetchrow($result3);
$title1 = $row3[title];
$title = "<a href=\"modules.php?name=News&file=categories&op=newindex&catid=$catid\"><font class=\"storycat\">$title1</font></a>: $title";
$morelink .= " | <a href=\"modules.php?name=News&file=categories&op=newindex&catid=$catid\">$title1</a>";
}
$morelink = str_replace(" | | ", " | ", $morelink);
if( $x>$rcolumn ) { $x=1; }
if( $x==1 ) { echo "<TR height=\"100%\">"; }
else { echo "<td> </td>"; }
echo "<td align=center valign=top width=$width height=\"100%\">";
themeindex($aid, $informant, $datetime, $title, $counter, $topic, $hometext, $notes, $morelink, $topicname, $topicimage, $topictext);
echo"</td>\n";
if($x==$rcolumn) { echo "</TR><tr><td> </td></tr>"; }
$x++;
}
echo"</table>";
if ($multilingual == 1) {
$querylang = "AND (alanguage='$currentlang' OR alanguage='')";
} else {
$querylang = "";
}
$sql1 = "SELECT topicid, topicname, topictext,topicimage FROM ".$prefix."_topics where displayhome='1' ORDER BY displayorder";
$result1 = $db->sql_query($sql1);
$x = 1;
echo "\n<!-- Baslangic-->\n"."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" align=\"center\">";
while ($row = $db->sql_fetchrow($result1)) {
$topicid = $row[topicid];
$topicname = $row[topicname];
$topictext = $row[topictext];
$topicimage = $row[topicimage];
$sql2 = "SELECT sid FROM ".$prefix."_stories WHERE topic=$topicid $querylang";
$result2 = $db->sql_query($sql2);
$cnt = $db->sql_numrows($result2);
if ( $cnt > 0 ){
if( $x>$column ) { $x=1; }
if( $x==1 ) { echo "<TR>"; }
else { echo "<td> </td>"; }
echo "<td align=center valign=top>";
$img_name=explode(" ",$topictext);
$img_nametwo=$img_name[0];
if(file_exists("modules/Haberler/img/$img_nametwo.gif")) {
echo "";
} else {
echo "<center>\n";
}
OpenTable6();
#########################################################################
#
# BURADAN BASLIYOR
#
#########################################################################
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" height=\"22\" width=\"100%\" align=\"center\" bgcolor=\"ffffff\">\n"
."<tr>\n"
."<td background=\"modules/Haberler/img/$img_nametwo.gif\" align=left width=\"100%\"> <a href=\"modules.php?name=News&new_topic=".$topicid."\"><font color=#ffffff><b>$topictext</b></font></a> </td>\n"
."</tr>\n"
."</table>\n"
."</table>\n";
echo <<<html_kodu
<table>
<tr>
<td><a href=modules.php?name=News&new_topic=$topicid><img height="66" width="69" src=$tipath$topicimage border=\"0\" Alt=$topictext></td>
<td>
html_kodu;
$sql3= "SELECT sid, catid, aid, title, time, comments, counter, topic, informant, score, ratings FROM ".$prefix."_stories where topic=$topicid $querylang ORDER BY sid DESC limit 0,$limit";
$result3 = $db->sql_query($sql3);
while ($row = $db->sql_fetchrow($result3)) {
$s_sid = $row[sid];
$catid = $row[catid];
$aid = $row[aid];
$title = $row[title];
$time = $row[time];
$comments = $row[comments];
$counter = $row[counter];
$topic = $row[topic];
$informant = $row[informant];
$acomm = $row[acomm];
$score = $row[score];
$ratings = $row[ratings];
$Y = substr($time, 0, 4);
$M = substr($time, 5, 2);
$D = substr($time, 8, 2);
$time = $D.".".$M.".".$Y;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"
."<tr><td>\n"
."<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" width=\"100%\">\n"
."<tr height=20>\n"
."<td align=\"left\"> "
."<img src=\"modules/Haberler/img/icon_dot.gif\" align=absmiddle>"
." <a href=\"modules.php?name=News&file=article&sid=$s_sid$r_options\">"
.cut($title,$textlenght)
."</a>\n";
$jd = gregoriantojd($M,$D,$Y);
$jd2 = gregoriantojd($month,$day,$year);
$count = $jd2-$jd;
if ($count<=3) {
echo "<img src=\"modules/Haberler/img/new_rd.gif\" alt=\"**\" height=\"10\" width=\"28\">";
}
if ($count<=5 && $count>3) {
echo "<img src=\"modules/Haberler/img/new_bl.gif\" alt=\"**\" height=\"10\" width=\"28\">";
}
if ($count<=10 && $count>5) {
echo "<img src=\"modules/Haberler/img/new_gn.gif\" alt=\"**\" height=\"10\" width=\"28\">";
}
if ($count>=10) {
echo " ";
}
echo "</td>\n";
echo "</tr></table></td></tr></table>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" align=\"center\">\n"
."<tr>\n"
."<td></td>\n"
."</tr>\n"
."</table>\n";
}
echo "</td>";
CloseTable6();
#######################################################################
#
# BURAYA KADAR ICINDEN AYIR BAKIM
#
########################################################################
if($x==$column) { echo "</TR><tr><td> </td></tr>"; }
$x++;
}
}
$col = $column+1;
echo "<tr><td align=right colspan=".$col."></td></tr></td></table>\n<!-- END -->\n";
include("footer.php");
}
function rate_article($sid, $score) {
global $prefix, $dbi, $ratec o o k i e, $sitename, $r_options;
$score = intval($score);
if ($score) {
if ($score > 5) { $score = 5; }
if ($score < 1) { $score = 1; }
if ($score != 1 AND $score != 2 AND $score != 3 AND $score != 4 AND $score != 5) {
Header("Location: index.php");
die();
}
if (isset($ratec o o k i e)) {
$rc o o k i e = base64_decode($ratec o o k i e);
$r_c o o k i e = explode(":", $rc o o k i e);
}
for ($i=0; $i < sizeof($r_c o o k i e); $i++) {
if ($r_c o o k i e[$i] == $sid) {
$a = 1;
}
}
if ($a == 1) {
Header("Location: modules.php?name=News&op=rate_complete&sid=$sid&rated=1");
} else {
$result = sql_query("update ".$prefix."_stories set score=score+$score, ratings=ratings+1 where sid='$sid'", $dbi);
$info = base64_encode("$rc o o k i e$sid:");
setc o o k i e("ratec o o k i e","$info",time()+3600);
Header("Location: modules.php?name=News&op=rate_complete&sid=$sid$r_options");
}
} else {
include("header.php");
title("$sitename: "._ARTICLERATING."");
OpenTable();
echo "<center>"._DIDNTRATE."<br><br>"
.""._GOBACK."</center>";
CloseTable();
include("footer.php");
}
}
function rate_complete($sid, $rated=0) {
global $sitename, $user, $c o o k i e;
$r_options = "";
if (is_user($user)) {
if (isset($c o o k i e[4])) { $r_options .= "&mode=$c o o k i e[4]"; }
if (isset($c o o k i e[5])) { $r_options .= "&order=$c o o k i e[5]"; }
if (isset($c o o k i e[6])) { $r_options .= "&thold=$c o o k i e[6]"; }
}
include("header.php");
title("$sitename: "._ARTICLERATING."");
OpenTable();
if ($rated == 0) {
echo "<center>"._THANKSVOTEARTICLE."<br><br>"
."[ <a href=\"modules.php?name=News&file=article&sid=$sid$r_options\">"._BACKTOARTICLEPAGE."</a> ]</center>";
} elseif ($rated == 1) {
echo "<center>"._ALREADYVOTEDARTICLE."<br><br>"
."[ <a href=\"modules.php?name=News&file=article&sid=$sid$r_options\">"._BACKTOARTICLEPAGE."</a> ]</center>";
}
CloseTable();
include("footer.php");
}
switch ($op) {
default:
theindex($new_topic);
break;
case "rate_article":
rate_article($sid, $score);
break;
case "rate_complete":
rate_complete($sid, $rated);
break;
}
?>
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-06-01, 20:59:52 Mesaj konusu: Forum Arası Reklamlar
Başa dön
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız