Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
163
??? Sitem deki Haberleri ..(25224 okuma, 26 yanıt) Free Hosta Php Nuke Kurul ..(16366 okuma, 14 yanıt) EKLENTİ: Misafire mesajın ..(36670 okuma, 38 yanıt) Php Nuke 9.0 Geliyor ..(20747 okuma, 19 yanıt) Bu başlık için mesaj bulu ..(13925 okuma, 15 yanıt) Facebook Sohbet Tipi Sohb ..(17637 okuma, 15 yanıt) üye aktivasyon ..(10584 okuma, 8 yanıt) Facebook tarzı altbar... ..(6233 okuma, 1 yanıt) kaldırmak istediğim bölüm ..(6511 okuma, 2 yanıt) Resimli RSS ..(23104 okuma, 25 yanıt) Onay linkini kaldirmak ..(11017 okuma, 8 yanıt) Yardım :( Site açılırken ..(6613 okuma, 2 yanıt) .Htaccess ile uzantıda ke ..(8227 okuma, 4 yanıt) block genişliği ..(5672 okuma, 1 yanıt) Haber Resimleri ve Slide ..(14282 okuma, 12 yanıt) Foruma büyük boyutlu resi ..(7263 okuma, 3 yanıt) Php-Nuke 8.0 Paket ..(9382 okuma, 6 yanıt) Hangi sürümü önerirsiniz? ..(10426 okuma, 8 yanıt) ethai1 3 ..(13084 okuma, 10 yanıt) Yeni PEHASPESEO ..(69472 okuma, 82 yanıt) Türkçe Karakter sorunu ? ..(37537 okuma, 36 yanıt) tek modul için sağ ve sol ..(11330 okuma, 8 yanıt) Php-nuke8.0 başlıklarda t ..(10521 okuma, 8 yanıt) Phpden iyi anlayan ..(5397 okuma, 1 yanıt) Php nuke 7.6 - 3.1 patch ..(72824 okuma, 89 yanıt) Mp3 Üst Player Yardım ..(29366 okuma, 40 yanıt) Toplu üyelik silme? ..(11057 okuma, 8 yanıt) Çözümleyemediğim hata... ..(12316 okuma, 11 yanıt) bloğu kayan hale getirmek ..(5942 okuma, 2 yanıt) Makale modulu ..(8535 okuma, 5 yanıt) PHP-Nuke Haber V.1 Paylas ..(84762 okuma, 121 yanıt) title değiştirme ..(10237 okuma, 6 yanıt) Arkadaşlar bu sorunun çöz ..(9995 okuma, 6 yanıt) Php Nuke 8.1 ..(4325 okuma, 0 yanıt) merhaba ..(10220 okuma, 9 yanıt) Anasayfa için boş modül o ..(13410 okuma, 13 yanıt) admin panelinde Access De ..(6355 okuma, 2 yanıt) Bu başlığa hiç cevap gelm ..(26221 okuma, 25 yanıt) Nuke Tema yapilisi ..(17016 okuma, 16 yanıt) Mavisce-net temasina bann ..(8677 okuma, 6 yanıt) PHP-Nuke wTeam - eklentil ..(6603 okuma, 2 yanıt) coppermine hata ..(10635 okuma, 8 yanıt) içerik tanıtımı ..(6251 okuma, 2 yanıt) Haber Ve İçeriğe Resim Ek ..(7115 okuma, 3 yanıt) google keywords ..(8914 okuma, 6 yanıt) 8.0'da html sorunu ..(5471 okuma, 1 yanıt) PHP-Nuke_8.1.3.5+NukeSent ..(53774 okuma, 76 yanıt) üye olunurken gereksiz is ..(9972 okuma, 7 yanıt) Arkadaşlar kolifa haber s ..(6320 okuma, 2 yanıt) Hesabınız'a tıklayınca te ..(10425 okuma, 7 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - sayfa numaralandırma...
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
k4dir Mesaj: 1+
Kayıt: Jan 27, 2005 Mesajlar: 6 Konum: samsun
Tarih: 2007-05-01, 06:24:19 Mesaj konusu: sayfa numaralandırma...
sayfa numaralandırma olayını bir türlü beceremedim altını çevirdim üstünü çevirdim yok olmadı :)
index.php yi atıyorum kullandığım anlayacan arkadaşlar el atarsanız sevinirim...
Kod:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2005 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (!defined('MODULE_FILE')) {
die ("You can't access this file directly...");
}
define('INDEX_FILE', true);
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
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, $userinfo;
if (is_user($user)) { getusrinfo($user); }
$new_topic = intval($new_topic);
if ($multilingual == 1) {
$querylang = "AND (alanguage='$currentlang' OR alanguage='')";
} else {
$querylang = "";
}
include("header.php");
automated_news();
if (isset($userinfo['setstorynum']) AND $user_news == 1) {
$storynum = $userinfo['setstorynum'];
} else {
$storynum = $storyhome;
}
if ($new_topic == 0) {
$qdb = "WHERE (ihome='0' OR catid='0')";
$home_msg = "";
} else {
$qdb = "WHERE topic='$new_topic'";
$result_a = $db->sql_query("SELECT topictext FROM ".$prefix."_topics WHERE topicid='$new_topic'");
$row_a = $db->sql_fetchrow($result_a);
$numrows_a = $db->sql_numrows($result_a);
$topic_title = filter($row_a['topictext'], "nohtml");
OpenTable();
if ($numrows_a == 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 {
$db->sql_query("UPDATE ".$prefix."_topics SET counter=counter+1");
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>";
}
$result = $db->sql_query("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 $storynum");
while ($row = $db->sql_fetchrow($result)) {
$s_sid = intval($row['sid']);
$catid = intval($row['catid']);
$aid = filter($row['aid'], "nohtml");
$title = filter($row['title'], "nohtml");
$time = $row['time'];
$hometext = filter($row['hometext']);
$bodytext = filter($row['bodytext']);
$comments = intval($row['comments']);
$counter = intval($row['counter']);
$topic = intval($row['topic']);
$informant = filter($row['informant'], "nohtml");
$notes = filter($row['notes']);
$acomm = intval($row['acomm']);
$score = intval($row['score']);
$ratings = intval($row['ratings']);
if ($catid > 0) {
$row2 = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_stories_cat WHERE catid='$catid'"));
$cattitle = stripslashes(check_html($row2['title'], "nohtml"));
}
getTopics($s_sid);
formatTimestamp($time);
$subject = filter($subject, "nohtml");
$introcount = strlen($hometext);
$fullcount = strlen($bodytext);
$totalcount = $introcount + $fullcount;
$c_count = $comments;
$r_options = "";
if (isset($userinfo['umode'])) { $r_options .= "&mode=".$userinfo['umode']; }
if (isset($userinfo['uorder'])) { $r_options .= "&order=".$userinfo['uorder']; }
if (isset($userinfo['thold'])) { $r_options .= "&thold=".$userinfo['thold']; }
$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 ($fullcount > 0) { $morelink .= "$totalcount "._BYTESMORE." | "; }
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>"; }
}
$sid = intval($s_sid);
if ($catid != 0) {
$row3 = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_stories_cat WHERE catid='$catid'"));
$title1 = filter($row3['title'], "nohtml");
$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>";
}
if ($score != 0) {
$rated = substr($score / $ratings, 0, 4);
} else {
$rated = 0;
}
$morelink .= " | "._SCORE." $rated";
$morelink .= ")";
$morelink = str_replace(" | | ", " | ", $morelink);
themeindex($aid, $informant, $datetime, $title, $counter, $topic, $hometext, $notes, $morelink, $topicname, $topicimage, $topictext);
}
include("footer.php");
}
function rate_article($sid, $score, $random_num="0", $gfx_check) {
global $prefix, $db, $ratec o o k i e, $sitename, $r_options, $sitekey, $gfx_chk, $module_name;
if (isset($random_num)) {
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER['HTTP_USER_AGENT'] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 3);
if (extension_loaded("gd") AND $code != $gfx_check AND $gfx_chk != 0) {
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
include("header.php");
title("$sitename: "._ARTICLERATING."");
OpenTable();
$row = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_stories WHERE sid='$sid'"));
$row[title] = filter($row[title], "nohtml");
echo "<center><a href=\"modules.php?name=$module_name&file=article&sid=$sid$r_options\"><b>".$row['title']."</b></a><br>"._ARTICLERATING.": <img src=\"images/articles/stars-$score.gif\" border=\"0\" alt=\"$score/5\" title=\"$score/5\"> ($score/5)<br><br>";
echo ""._TOFINISHRATINGERROR."<br><br>";
echo "<form action=\"modules.php?name=$module_name\" method=\"post\">";
echo ""._SECURITYCODE.":<br><img src='?gfx=gfx_little&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'><br><br>\n";
echo ""._TYPESECCODE.":<br><input type=\"text\" NAME=\"gfx_check\" SIZE=\"3\" MAXLENGTH=\"3\"><br>\n";
echo "<input type=\"hidden\" name=\"random_num\" value=\"$random_num\"><br>\n";
echo "<input type=\"hidden\" name=\"score\" value=\"$score\"><br>\n";
echo "<input type=\"hidden\" name=\"sid\" value=\"$sid\">\n";
echo "<input type=\"hidden\" name=\"op\" value=\"rate_article\">";
echo "<input type=\"submit\" value=\""._CASTMYVOTE."\"></font></center></form>";
CloseTable();
include("footer.php");
die();
} else {
$score = intval($score);
$sid = intval($sid);
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();
}
$ip = $_SERVER['REMOTE_ADDR'];
$num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_stories WHERE sid='$sid' AND rating_ip='$ip'"));
if ($num != 0) {
Header("Location: modules.php?name=News&op=rate_complete&sid=$sid&rated=1");
die();
}
if (isset($ratec o o k i e)) {
$rc o o k i e = base64_decode($ratec o o k i e);
$rc o o k i e = addslashes($rc 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");
die();
} else {
$ip = $_SERVER['REMOTE_ADDR'];
$result = $db->sql_query("update ".$prefix."_stories set score=score+$score, ratings=ratings+1, rating_ip='$ip' where sid='$sid'");
$info = base64_encode("$rc o o k i e$sid:");
setc o o k i e("ratec o o k i e","$info",time()+86400);
update_points(7);
Header("Location: modules.php?name=News&op=rate_complete&sid=$sid&score=$score");
}
} else {
include("header.php");
title("$sitename: "._ARTICLERATING."");
OpenTable();
echo "<center>"._DIDNTRATE."<br><br>"
.""._GOBACK."</center>";
CloseTable();
include("footer.php");
}
}
} else {
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
if (extension_loaded("gd") AND $gfx_chk != 0 ) {
include("header.php");
title("$sitename: "._ARTICLERATING."");
OpenTable();
$row = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_stories WHERE sid='$sid'"));
echo "<center><a href=\"modules.php?name=$module_name&file=article&sid=$sid$r_options\"><b>".$row['title']."</b></a><br>"._ARTICLERATING.": <img src=\"images/articles/stars-$score.gif\" border=\"0\" alt=\"$score/5\" title=\"$score/5\"> ($score/5)<br><br>";
echo ""._TOFINISHRATING."<br><br>";
echo "<form action=\"modules.php?name=$module_name\" method=\"post\">";
echo ""._SECURITYCODE.":<br><img src='?gfx=gfx_little&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'><br><br>\n";
echo ""._TYPESECCODE.":<br><input type=\"text\" NAME=\"gfx_check\" SIZE=\"3\" MAXLENGTH=\"3\"><br>\n";
echo "<input type=\"hidden\" name=\"random_num\" value=\"$random_num\"><br>\n";
echo "<input type=\"hidden\" name=\"score\" value=\"$score\"><br>\n";
echo "<input type=\"hidden\" name=\"sid\" value=\"$sid\">\n";
echo "<input type=\"hidden\" name=\"op\" value=\"rate_article\">";
echo "<input type=\"submit\" value=\""._CASTMYVOTE."\"></font></center></form>";
CloseTable();
include("footer.php");
} else {
$random_num = "$random_num";
$gfx_check = "$code";
Header("Location: modules.php?name=$module_name&op=rate_article&sid=$sid&score=$score&random_num=$random_num");
}
}
}
function rate_complete($sid, $rated=0, $score) {
global $sitename, $user, $c o o k i e, $module_name, $userinfo;
$r_options = "";
if (is_user($user)) {
getusrinfo($user);
if (isset($userinfo['umode'])) { $r_options .= "&mode=".$userinfo['umode']; }
if (isset($userinfo['uorder'])) { $r_options .= "&order=".$userinfo['uorder']; }
if (isset($userinfo['thold'])) { $r_options .= "&thold=".$userinfo['thold']; }
}
include("header.php");
title("$sitename: "._ARTICLERATING."");
OpenTable();
if ($rated == 0) {
$row = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_stories WHERE sid='$sid'"));
$row[title] = filter($row[title], "nohtml");
echo "<center><a href=\"modules.php?name=$module_name&file=article&sid=$sid$r_options\"><b>".$row['title']."</b></a><br>"._YOURATEDARTICLE.": <img src=\"images/articles/stars-$score.gif\" border=\"0\" alt=\"$score/5\" title=\"$score/5\"> ($score/5)<br><br>";
echo "<center>"._THANKSVOTEARTICLE."<br><br>"
."[ <a href=\"modules.php?name=$module_name&file=article&sid=$sid$r_options\">"._BACKTOARTICLEPAGE."</a> ]</center>";
} elseif ($rated == 1) {
echo "<center>"._ALREADYVOTEDARTICLE."<br><br>"
."[ <a href=\"modules.php?name=$module_name&file=article&sid=$sid$r_options\">"._BACKTOARTICLEPAGE."</a> ]</center>";
}
CloseTable();
include("footer.php");
}
if (!(isset($new_topic))) { $new_topic = 0; }
if (!(isset($op))) { $op = ""; }
switch ($op) {
default:
theindex($new_topic);
break;
case "rate_article":
rate_article($sid, $score, $random_num, $gfx_check);
break;
case "rate_complete":
rate_complete($sid, $rated, $score);
break;
}
?>
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-05-17, 05:23:32 Mesaj konusu: Forum Arası Reklamlar
Başa dön
sade_kahve Mesaj: 500+
Kayıt: Oct 08, 2005 Mesajlar: 925 Konum: Kasımpaşa
Tarih: 2007-05-01, 07:02:15 Mesaj konusu:
News sayfa numaralandırmada yapamadığınız yer nedır acaba dosyalar bolumunde tum bolumlere gore dosyalar var ve ayrıntıları anlatımları mevcut içinde.
Başa dön
Aliosman Teknik Yönetici
Kayıt: Jul 20, 2002 Mesajlar: 3836 Konum: Balıkesir
Başa dön
k4dir Mesaj: 1+
Kayıt: Jan 27, 2005 Mesajlar: 6 Konum: samsun
Tarih: 2007-05-02, 03:09:56 Mesaj konusu:
arkadaşlar 9.0 kullanıyorum hiç birisi çalışmıyor index.php yi attım gerekli yerleri düzenleyip sizde atarsanız sevinirim...
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