Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
1013
??? Sitem deki Haberleri ..(29460 okuma, 26 yanıt) Free Hosta Php Nuke Kurul ..(19326 okuma, 14 yanıt) EKLENTİ: Misafire mesajın ..(42308 okuma, 38 yanıt) Php Nuke 9.0 Geliyor ..(23678 okuma, 19 yanıt) Bu başlık için mesaj bulu ..(16326 okuma, 15 yanıt) Facebook Sohbet Tipi Sohb ..(20379 okuma, 15 yanıt) üye aktivasyon ..(12175 okuma, 8 yanıt) Facebook tarzı altbar... ..(7122 okuma, 1 yanıt) kaldırmak istediğim bölüm ..(7444 okuma, 2 yanıt) Resimli RSS ..(26155 okuma, 25 yanıt) Onay linkini kaldirmak ..(12488 okuma, 8 yanıt) Yardım :( Site açılırken ..(7526 okuma, 2 yanıt) .Htaccess ile uzantıda ke ..(9386 okuma, 4 yanıt) block genişliği ..(6469 okuma, 1 yanıt) Haber Resimleri ve Slide ..(16363 okuma, 12 yanıt) Foruma büyük boyutlu resi ..(8387 okuma, 3 yanıt) Php-Nuke 8.0 Paket ..(10736 okuma, 6 yanıt) Hangi sürümü önerirsiniz? ..(11896 okuma, 8 yanıt) ethai1 3 ..(14928 okuma, 10 yanıt) Yeni PEHASPESEO ..(78570 okuma, 82 yanıt) Türkçe Karakter sorunu ? ..(42159 okuma, 36 yanıt) tek modul için sağ ve sol ..(12845 okuma, 8 yanıt) Php-nuke8.0 başlıklarda t ..(11889 okuma, 8 yanıt) Phpden iyi anlayan ..(6208 okuma, 1 yanıt) Php nuke 7.6 - 3.1 patch ..(81838 okuma, 89 yanıt) Mp3 Üst Player Yardım ..(33901 okuma, 40 yanıt) Toplu üyelik silme? ..(12653 okuma, 8 yanıt) Çözümleyemediğim hata... ..(14131 okuma, 11 yanıt) bloğu kayan hale getirmek ..(6727 okuma, 2 yanıt) Makale modulu ..(9734 okuma, 5 yanıt) PHP-Nuke Haber V.1 Paylas ..(96569 okuma, 121 yanıt) title değiştirme ..(11688 okuma, 6 yanıt) Arkadaşlar bu sorunun çöz ..(11293 okuma, 6 yanıt) Php Nuke 8.1 ..(4877 okuma, 0 yanıt) merhaba ..(11756 okuma, 9 yanıt) Anasayfa için boş modül o ..(15443 okuma, 13 yanıt) admin panelinde Access De ..(7217 okuma, 2 yanıt) Bu başlığa hiç cevap gelm ..(29606 okuma, 25 yanıt) Nuke Tema yapilisi ..(19217 okuma, 16 yanıt) Mavisce-net temasina bann ..(9856 okuma, 6 yanıt) PHP-Nuke wTeam - eklentil ..(7447 okuma, 2 yanıt) coppermine hata ..(12108 okuma, 8 yanıt) içerik tanıtımı ..(7036 okuma, 2 yanıt) Haber Ve İçeriğe Resim Ek ..(8052 okuma, 3 yanıt) google keywords ..(10126 okuma, 6 yanıt) 8.0'da html sorunu ..(6159 okuma, 1 yanıt) PHP-Nuke_8.1.3.5+NukeSent ..(60709 okuma, 76 yanıt) üye olunurken gereksiz is ..(11346 okuma, 7 yanıt) Arkadaşlar kolifa haber s ..(7086 okuma, 2 yanıt) Hesabınız'a tıklayınca te ..(11792 okuma, 7 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - Modül Editleme
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
chylecesh Mesaj: 1+
Kayıt: Mar 16, 2006 Mesajlar: 8
Tarih: 2006-05-19, 19:45:15 Mesaj konusu: Modül Editleme
arkadaslar sıteme php-nuke kurdum gayet guzel gıdıyoır fakat bı kac ek ozellıgı kaldırmak ıstıyorum bunlar; download bolumune gırıste orta da bulunan ılk blok yanı download logosu arama motoru altında menu fılan var o blogu kaldırmak ıstıyorum ne yapmam gerek yanı hangı dosyadan nerelerı sılmem gerekıyor sadece download bolumu degıl sarkı sozu bolumu ve lınkler sayfasında da aynı seyı yapacagım bana bır yol gosterın lutfen ...
***Netopsiyon Groups***
Kural dışı Başlık Açıldığı İçin Başlıklık değiştirilmiştir.Kurallara Uyalım.
Forum başlığı olarak, "*YASAK KELİME** YARDIM,YARDIM, biri YARDIM etsin, bir de şuna bakın, YARDIM edecek yok mu, nedir bunun çözümü...vb. gibi" başlıklar KULLANMAYINIZ. Bu tür başlıklar nedeniyle forumda aranılan konular bulunamıyor. Bu tür başlığa sahip mesajlar forum yöneticileri tarafından SİLİNEBİLİR, DEĞİŞTİRİLEBİLİR yada KİLİTLENEBİLİR!.
***Amoki***
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2025-07-05, 17:47:47 Mesaj konusu: Forum Arası Reklamlar
Başa dön
serserialper21 Mesaj: 1000+
Kayıt: Jan 02, 2006 Mesajlar: 1660 Konum: Diyarbakır
Tarih: 2006-05-19, 19:47:22 Mesaj konusu:
Baslıgını değiştirmessen kimse YARDIM etmez bu baslık yasak
Başa dön
saho Forum Yöneticisi
Kayıt: Mar 18, 2005 Mesajlar: 2176 Konum: istanbul-tokat
Tarih: 2006-05-19, 19:54:27 Mesaj konusu:
modules/downloads/index.php yi açın logonun adresini alın bakın zaten yüksek ihtimal 1 tane grafik olacka download modulunde onu silersiniz oradan
Başa dön
chylecesh Mesaj: 1+
Kayıt: Mar 16, 2006 Mesajlar: 8
Tarih: 2006-05-19, 19:57:11 Mesaj konusu:
oncelıkle yanlıs baslık kullandıgım ıcın herkesten ozur dılerım...sahonun verdıgı yanıt ıcınde kardes yanlıs anlattım sanırım ben orda download klasorunun en ustunde bulunan blogu tamamıyla kaldırmak ıstıyorum sadece dosya kategorılerının bulundugu yer kalsın ıstıyorum ve o blogu kaldırmam ıcın nerelerı sılmem gerekıyor...
Başa dön
saho Forum Yöneticisi
Kayıt: Mar 18, 2005 Mesajlar: 2176 Konum: istanbul-tokat
Tarih: 2006-05-19, 20:09:54 Mesaj konusu:
index.php yi yaz buraya
+
arama alanı ve download logosu olması lazım orada zaten
Başa dön
chylecesh Mesaj: 1+
Kayıt: Mar 16, 2006 Mesajlar: 8
Tarih: 2006-05-19, 20:12:41 Mesaj konusu:
[code:1:20328b2f01]<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2005 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* Based on Journey Links Hack */
/* Copyright (c) 2000 by James Knickelbein */
/* Journey Milwaukee (http://www.journeymilwaukee.com) */
/* */
/* 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...");
}
if (isset($min)) {
$min = intval($min);
}
if (isset($show)) {
$show = intval($show);
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = "- "._UDOWNLOADS."";
require_once("modules/$module_name/d_config.php");
$index = 1;
// ALTERED BY PALADIN - 170102 - Start
function getparent($parentid,$title) {
global $prefix, $db;
$parentid = intval($parentid);
$sql = "SELECT cid, title, parentid FROM ".$prefix."_downloads_categories WHERE cid='$parentid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$cid = intval($row[cid]);
$ptitle = stripslashes(check_html($row[title], "nohtml"));
$pparentid = intval($row[parentid]);
if ($ptitle=="$title") $title=$title;
elseif ($ptitle!="") $title=$ptitle."/".$title;
if ($pparentid!=0) {
$title=getparent($pparentid,$ptitle);
}
return $title;
}
function getparentlink($parentid,$title) {
global $prefix, $db, $module_name;
$parentid = intval($parentid);
$sql = "SELECT cid, title, parentid FROM ".$prefix."_downloads_categories WHERE cid='$parentid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$cid = intval($row['cid']);
$ptitle = stripslashes(check_html($row['title'], "nohtml"));
$pparentid = intval($row['parentid']);
if ($ptitle!="") $title="<a href=modules.php?name=$module_name&d_op=viewdownload&cid=$cid>$ptitle</a>/".$title;
if ($pparentid!=0) {
$title=getparentlink($pparentid,$ptitle);
}
return $title;
}
// ALTERED BY PALADIN - 170102 - End
function menu($maindownload) {
global $prefix, $user_adddownload, $module_name;
OpenTable();
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/down-logo.gif")) {
echo "<br><center><a href=\"modules.php?name=$module_name\"><img src=\"themes/$ThemeSel/images/down-logo.gif\" border=\"0\" alt=\"\"></a><br><br>";
} else {
echo "<br><center><a href=\"modules.php?name=$module_name\"><img src=\"modules/$module_name/images/down-logo.gif\" border=\"0\" alt=\"\"></a><br><br>";
}
echo "<form action=\"modules.php?name=$module_name&d_op=search&query=$query\" method=\"post\">"
."<font class=\"content\"><input type=\"text\" size=\"25\" name=\"query\"> <input type=\"submit\" value=\""._SEARCH."\"></font>"
."</form>";
echo "<font class=\"content\">[ ";
if ($maindownload>0) {
echo "<a href=\"modules.php?name=$module_name\">"._DOWNLOADSMAIN."</a> | ";
}
if ($user_adddownload == 1) {
echo "<a href=\"modules.php?name=$module_name&d_op=AddDownload\">"._ADDDOWNLOAD."</a>"
." | ";
}
echo "<a href=\"modules.php?name=$module_name&d_op=NewDownloads\">"._NEW."</a>"
." | <a href=\"modules.php?name=$module_name&d_op=MostPopular\">"._POPULAR."</a>"
." | <a href=\"modules.php?name=$module_name&d_op=TopRated\">"._TOPRATED."</a> ]"
."</font></center>";
CloseTable();
}
function SearchForm() {
global $module_name;
echo "<form action=\"modules.php?name=$module_name\" method=\"post\">"
."<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">"
."<tr><td><font class=\"content\"><input type=\"hidden\" name=\"d_op\" value=\"search\"><input type=\"text\" size=\"25\" name=\"query\"> <input type=\"submit\" value=\""._SEARCH."\"></td></tr>"
."</table>"
."</form>";
}
function downloadinfomenu($lid, $ttitle) {
global $module_name, $user;
echo "<br><font class=\"content\">[ "
."<a href=\"modules.php?name=$module_name&d_op=viewdownloadcomments&lid=$lid&ttitle=$ttitle\">"._DOWNLOADCOMMENTS."</a>"
." | <a href=\"modules.php?name=$module_name&d_op=viewdownloaddetails&lid=$lid&ttitle=$ttitle\">"._ADDITIONALDET."</a>"
." | <a href=\"modules.php?name=$module_name&d_op=viewdownloadeditorial&lid=$lid&ttitle=$ttitle\">"._EDITORREVIEW."</a>"
." | <a href=\"modules.php?name=$module_name&d_op=modifydownloadrequest&lid=$lid\">"._MODIFY."</a>";
if (is_user($user)) {
echo " | <a href=\"modules.php?name=$module_name&d_op=brokendownload&lid=$lid\">"._REPORTBROKEN."</a>";
}
echo " ]</font>";
}
function index() {
global $prefix, $db, $show_links_num, $module_name;
include("header.php");
$maindownload = 0;
menu($maindownload);
echo "<br>";
OpenTable();
echo "<center><font class=\"title\"><b>"._DOWNLOADSMAINCAT."</b></font></center><br>";
echo "<table border=\"0\" cellspacing=\"10\" cellpadding=\"0\" align=\"center\"><tr>";
$sql = "SELECT cid, title, cdescription FROM ".$prefix."_downloads_categories WHERE parentid='0' ORDER BY title";
$result = $db->sql_query($sql);
$count = 0;
while ($row = $db->sql_fetchrow($result)) {
$cid = intval($row['cid']);
$title = stripslashes(check_html($row['title'], "nohtml"));
$cdescription = stripslashes($row['cdescription']);
if ($show_links_num == 1) {
$cnumrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_downloads WHERE cid='$cid'"));
$cnumm = "($cnumrows)";
} else {
$cnumm = "";
}
echo "<td><font class=\"option\"><strong><big>·</big></strong> <a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid\"><b>$title</b></a>$cnumm</font>";
categorynewdownloadgraphic($cid);
if ($cdescription) {
echo "<br><font class=\"content\">$cdescription</font><br>";
} else {
echo "<br>";
}
$sql2 = "SELECT cid, title FROM ".$prefix."_downloads_categories WHERE parentid='$cid' ORDER BY title LIMIT 0,3";
$result2 = $db->sql_query($sql2);
$space = 0;
while ($row2 = $db->sql_fetchrow($result2)) {
$cid = intval($row2['cid']);
$stitle = stripslashes(check_html($row2['title'], "nohtml"));
if ($space>0) {
echo ", ";
}
if ($show_links_num == 1) {
$cnumrows2 = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_downloads WHERE cid='$cid'"));
$cnum = " ($cnumrows2)";
} else {
$cnumrows2 = "";
}
echo "<font class=\"content\"><a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid\">$stitle</a>$cnum</font>";
$space++;
}
if ($count<1) {
echo "</td><td> </td>";
$dum = 1;
}
$count++;
if ($count==2) {
echo "</td></tr><tr>";
$count = 0;
$dum = 0;
}
}
if ($dum == 1) {
echo "</tr></table>";
} elseif ($dum == 0) {
echo "<td></td></tr></table>";
}
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_downloads"));
$catnum = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_categories"));
echo "<center><font class=\"content\">"._THEREARE." <b>$numrows</b> "._DOWNLOADS." "._AND." <b>$catnum</b> "._CATEGORIES." "._INDB."</font></center>";
CloseTable();
include("footer.php");
}
function AddDownload() {
global $prefix, $db, $c o o k i e, $user, $downloads_anonadddownloadlock, $module_name;
include("header.php");
$maindownload = 1;
menu(1);
echo "<br>";
OpenTable();
echo "<center><font class=\"title\"><b>"._ADDADOWNLOAD."</b></font></center><br><br>";
if (is_user($user) || $downloads_anonadddownloadlock != 1) {
echo "<b>"._INSTRUCTIONS.":</b><br>"
."<strong><big>·</big></strong> "._DSUBMITONCE."<br>"
."<strong><big>·</big></strong> "._DPOSTPENDING."<br>"
."<strong><big>·</big></strong> "._USERANDIP."<br>";
echo "<form method=\"post\" action=\"modules.php?name=$module_name&d_op=Add\">"
.""._DOWNLOADNAME.": <input type=\"text\" name=\"title\" size=\"40\" maxlength=\"100\"><br>"
.""._FILEURL.": <input type=\"text\" name=\"url\" size=\"50\" maxlength=\"100\" value=\"http://\"><br>";
echo ""._CATEGORY.": <select name=\"cat\">";
$sql = "SELECT cid, title, parentid FROM ".$prefix."_downloads_categories ORDER BY parentid,title";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
$cid2 = intval($row[cid]);
$ctitle2 = stripslashes(check_html($row[title], "nohtml"));
$parentid2 = intval($row[parentid]);
if ($parentid2!=0) $ctitle2=getparent($parentid2,$ctitle2);
echo "<option value=\"$cid2\">$ctitle2</option>";
}
echo "</select><br><br>"
.""._LDESCRIPTION."<br><textarea name=\"description\" cols=\"70\" rows=\"15\"></textarea><br><br>"
.""._AUTHORNAME.": <input type=\"text\" name=\"auth_name\" size=\"30\" maxlength=\"60\"><br>"
.""._AUTHOREMAIL.": <input type=\"text\" name=\"email\" size=\"30\" maxlength=\"60\"><br>"
.""._FILESIZE.": <input type=\"text\" name=\"filesize\" size=\"12\" maxlength=\"11\"> ("._INBYTES.")<br>"
.""._VERSION.": <input type=\"text\" name=\"version\" size=\"11\" maxlength=\"10\"><br>"
.""._HOMEPAGE.": <input type=\"text\" name=\"homepage\" size=\"50\" maxlength=\"200\" value=\"http://\"><br><br>"
."<input type=\"hidden\" name=\"d_op\" value=\"Add\">"
."<input type=\"submit\" value=\""._ADDTHISFILE."\"> "._GOBACK."<br><br>"
."</form>";
} else {
echo "<center>"._DOWNLOADSNOTUSER1."<br>"
.""._DOWNLOADSNOTUSER2."<br><br>"
.""._DOWNLOADSNOTUSER3."<br>"
.""._DOWNLOADSNOTUSER4."<br>"
.""._DOWNLOADSNOTUSER5."<br>"
.""._DOWNLOADSNOTUSER6."<br>"
.""._DOWNLOADSNOTUSER7."<br><br>"
.""._DOWNLOADSNOTUSER8."";
}
CloseTable();
include("footer.php");
}
function Add($title, $url, $auth_name, $cat, $description, $email, $filesize, $version, $homepage) {
global $prefix, $db, $user;
$sql = "SELECT url FROM ".$prefix."_downloads_downloads WHERE url='$url'";
$result = $db->sql_query($sql);
$numrows = $db->sql_numrows($result);
if ($numrows>0) {
include("header.php");
menu(1);
echo "<br>";
OpenTable();
echo "<center><b>"._DOWNLOADALREADYEXT."</b><br><br>"
.""._GOBACK."";
CloseTable();
include("footer.php");
} else {
if(is_user($user)) {
$user2 = base64_decode($user);
$user2 = addslashes($user2);
$c o o k i e = explode(":", $user2);
c o o k i edecode($user);
$submitter = $c o o k i e[1];
}
// Check if Title exist
if ($title=="") {
include("header.php");
menu(1);
echo "<br>";
OpenTable();
echo "<center><b>"._DOWNLOADNOTITLE."</b><br><br>"
.""._GOBACK."";
CloseTable();
include("footer.php");
}
// Check if URL exist
if ($url=="") {
include("header.php");
menu(1);
echo "<br>";
OpenTable();
echo "<center><b>"._DOWNLOADNOURL."</b><br><br>"
.""._GOBACK."";
CloseTable();
include("footer.php");
}
// Check if Description exist
if ($description=="") {
include("header.php");
menu(1);
echo "<br>";
OpenTable();
echo "<center><b>"._DOWNLOADNODESC."</b><br><br>"
.""._GOBACK."";
CloseTable();
include("footer.php");
}
$cat = explode("-", $cat);
if ($cat[1]=="") {
$cat[1] = 0;
}
$title = stripslashes(check_html(FixQuotes($title, "nohtml")));
$url = stripslashes($url);
$description = stripslashes(FixQuotes($description));
$auth_name = stripslashes($auth_name);
$email = stripslashes($email);
$filesize = ereg_replace("\.","",$filesize);
$filesize = ereg_replace("\,","",$filesize);
$cat[0] = intval($cat[0]);
$cat[1] = intval($cat[1]);
$num_new = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_newdownload WHERE title='$title' OR url='$url' OR description='$description'"));
if ($num_new == 0) {
$db->sql_query("INSERT INTO ".$prefix."_downloads_newdownload VALUES (NULL, '$cat[0]', '$cat[1]', '$title', '$url', '$description', '$auth_name', '$email', '$submitter', '$filesize', '$version', '$homepage')");
}
include("header.php");
menu(1);
echo "<br>";
OpenTable();
echo "<center><b>"._DOWNLOADRECEIVED."</b><br>";
if ($email == "") {
echo _CHECKFORIT;
}
CloseTable();
include("footer.php");
}
}
function NewDownloads($newdownloadshowdays) {
global $prefix, $db, $module_name;
if ($newdownloadshowdays != "") {
if (!is_numeric($newdownloadshowdays)) {
Header("Location: modules.php?name=$module_name");
}
}
include("header.php");
menu(1);
echo "<br>";
OpenTable();
echo "<center><font class=\"option\"><b>"._NEWDOWNLOADS."</b></font></center><br>";
$counter = 0;
$allweekdownloads = 0;
while ($counter <= 7-1){
$newdownloaddayRaw = (time()-(86400 * $counter));
$newdownloadday = date("d-M-Y", $newdownloaddayRaw);
$newdownloadView = date("F d, Y", $newdownloaddayRaw);
$newdownloadDB = Date("Y-m-d", $newdownloaddayRaw);
$totaldownloads = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_downloads WHERE date LIKE '%$newdownloadDB%'"));
$counter++;
$allweekdownloads = $allweekdownloads + $totaldownloads;
}
$counter = 0;
while ($counter <=30-1){
$newdownloaddayRaw = (time()-(86400 * $counter));
$newdownloadDB = Date("Y-m-d", $newdownloaddayRaw);
$totaldownloads = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_downloads WHERE date LIKE '%$newdownloadDB%'"));
$allmonthdownloads = $allmonthdownloads + $totaldownloads;
$counter++;
}
echo "<center><b>"._TOTALNEWDOWNLOADS.":</b> "._LASTWEEK." - $allweekdownloads \ "._LAST30DAYS." - $allmonthdownloads<br>"
.""._SHOW.": <a href=\"modules.php?name=$module_name&d_op=NewDownloads&newdownloadshowdays=7\">"._1WEEK."</a> - <a href=\"modules.php?name=$module_name&d_op=NewDownloads&newdownloadshowdays=14\">"._2WEEKS."</a> - <a href=\"modules.php?name=$module_name&d_op=NewDownloads&newdownloadshowdays=30\">"._30DAYS."</a>"
."</center><br>";
/* List Last VARIABLE Days of Downloads */
if (!isset($newdownloadshowdays)) {
$newdownloadshowdays = 7;
}
echo "<br><center><b>"._DTOTALFORLAST." $newdownloadshowdays "._DAYS.":</b><br><br>";
$counter = 0;
$allweekdownloads = 0;
while ($counter <= $newdownloadshowdays-1) {
$newdownloaddayRaw = (time()-(86400 * $counter));
$newdownloadday = date("d-M-Y", $newdownloaddayRaw);
$newdownloadView = date("F d, Y", $newdownloaddayRaw);
$newdownloadDB = Date("Y-m-d", $newdownloaddayRaw);
$totaldownloads = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_downloads WHERE date LIKE '%$newdownloadDB%'"));
$counter++;
$allweekdownloads = $allweekdownloads + $totaldownloads;
echo "<strong><big>·</big></strong> <a href=\"modules.php?name=$module_name&d_op=NewDownloadsDate&selectdate=$newdownloaddayRaw\">$newdownloadView</a> ($totaldownloads)<br>";
}
$counter = 0;
$allmonthdownloads = 0;
echo "</center>";
CloseTable();
include("footer.php");
}
function NewDownloadsDate($selectdate) {
global $prefix, $db, $module_name, $admin, $user, $admin_file;
$dateDB = (date("d-M-Y", $selectdate));
$dateView = (date("F d, Y", $selectdate));
include("header.php");
menu(1);
echo "<br>";
OpenTable();
$newdownloadDB = Date("Y-m-d", $selectdate);
$totaldownloads = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_downloads WHERE date LIKE '%$newdownloadDB%'"));
echo "<font class=\"option\"><b>$dateView - $totaldownloads "._NEWDOWNLOADS."</b></font>"
."<table width=\"100%\" cellspacing=\"0\" cellpadding=\"10\" border=\"0\"><tr><td><font class=\"content\">";
$sql = "SELECT lid, cid, title, description, date, hits, downloadratingsummary, totalvotes, totalcomments, filesize, version, homepage FROM ".$prefix."_downloads_downloads WHERE date LIKE '%$newdownloadDB%' ORDER BY title ASC";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
$lid = intval($row['lid']);
$cid = intval($row['cid']);
$title = stripslashes(check_html($row['title'], "nohtml"));
$description = stripslashes($row['description']);
$time = $row['date'];
$hits = intval($row['hits']);
$downloadratingsummary = $row['downloadratingsummary'];
$totalvotes = intval($row['totalvotes']);
$totalcomments = intval($row['totalcomments']);
$filesize = $row['filesize'];
$version = $row['version'];
$homepage = stripslashes($row['homepage']);
$downloadratingsummary = number_format($downloadratingsummary, $mainvotedecimal);
if (is_admin($admin)) {
echo "<a href=\"".$admin_file.".php?op=DownloadsModDownload&lid=$lid\"><img src=\"modules/$module_name/images/lwin.gif\" border=\"0\" alt=\""._EDIT."\"></a> ";
} else {
echo "<img src=\"modules/$module_name/images/lwin.gif\" border=\"0\" alt=\"\"> ";
}
echo "<a href=\"modules.php?name=$module_name&d_op=getit&lid=$lid\">$title</a>";
newdownloadgraphic($datetime, $time);
popgraphic($hits);
detecteditorial($lid, $transfertitle, 1);
echo "<br><b>"._DESCRIPTION.":</b> $description<br>";
setlocale (LC_TIME, $locale);
/* INSERT code for *editor review* here */
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime);
$datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
$datetime = ucfirst($datetime);
echo "<b>"._VERSION.":</b> $version <b>"._FILESIZE.":</b> ".CoolSize($filesize)."<br>";
echo "<b>"._ADDEDON.":</b> <b>$datetime</b> <b>"._UDOWNLOADS.":</b> $hits";
$transfertitle = str_replace (" ", "_", $title);
/* voting & comments stats */
if ($totalvotes == 1) {
$votestring = _VOTE;
} else {
$votestring = _VOTES;
}
if ($downloadratingsummary!="0" || $downloadratingsummary!="0.0") {
echo " <b>"._RATING.":</b> $downloadratingsummary ($totalvotes $votestring)";
}
if ($homepage == "") {
echo "<br>";
} else {
echo "<br><a href=\"$homepage\" target=\"new\">"._HOMEPAGE."</a> | ";
}
echo "<a href=\"modules.php?name=$module_name&d_op=ratedownload&lid=$lid&ttitle=$transfertitle\">"._RATERESOURCE."</a>";
if (is_user($user)) {
echo " | <a href=\"modules.php?name=$module_name&d_op=brokendownload&lid=$lid\">"._REPORTBROKEN."</a>";
}
echo " | <a href=\"modules.php?name=$module_name&d_op=viewdownloaddetails&lid=$lid&ttitle=$transfertitle\">"._DETAILS."</a>";
if ($totalcomments != 0) {
echo " | <a href=\"modules.php?name=$module_name&d_op=viewdownloadcomments&lid=$lid&ttitle=$transfertitle\">"._SCOMMENTS." ($totalcomments)</a>";
}
detecteditorial($lid, $transfertitle, 0);
echo "<br>";
$sql2 = "SELECT title FROM ".$prefix."_downloads_categories WHERE cid='$cid'";
$result2 = $db->sql_query($sql2);
$row2 = $db->sql_fetchrow($result2);
$ctitle = stripslashes(check_html($row2['title'], "nohtml"));
$ctitle = getparent($cid,$ctitle);
echo ""._CATEGORY.": $ctitle";
echo "<br><br>";
}
echo "</font></td></tr></table>";
CloseTable();
include("footer.php");
}
function TopRated($ratenum, $ratetype) {
global $prefix, $db, $admin, $module_name, $user, $admin_file;
include("header.php");
include("modules/$module_name/d_config.php");
menu(1);
echo "<br>";
OpenTable();
echo "<table border=\"0\" width=\"100%\"><tr><td align=\"center\">";
if ($ratenum != "" && $ratetype != "") {
$topdownloads = $ratenum;
if ($ratetype == "percent") {
$topdownloadspercentrigger = 1;
}
}
if ($topdownloadspercentrigger == 1) {
$topdownloadspercent = $topdownloads;
$totalrateddownloads = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_downloads WHERE downloadratingsummary != '0'"));
$topdownloads = $topdownloads / 100;
$topdownloads = $totalrateddownloads * $topdownloads;
$topdownloads = round($topdownloads);
}
if ($topdownloadspercentrigger == 1) {
echo "<center><font class=\"option\"><b>"._DBESTRATED." $topdownloadspercent% ("._OF." $totalrateddownloads "._TRATEDDOWNLOADS.")</b></font></center><br>";
} else {
echo "<center><font class=\"option\"><b>"._DBESTRATED." $topdownloads </b></font></center><br>";
}
echo "</td></tr>"
."<tr><td><center>"._NOTE." $downloadvotemin "._TVOTESREQ."<br>"
.""._SHOWTOP.": [ <a href=\"modules.php?name=$module_name&d_op=TopRated&ratenum=10&ratetype=num\">10</a> - "
."<a href=\"modules.php?name=$module_name&d_op=TopRated&ratenum=25&ratetype=num\">25</a> - "
."<a href=\"modules.php?name=$module_name&d_op=TopRated&ratenum=50&ratetype=num\">50</a> | "
."<a href=\"modules.php?name=$module_name&d_op=TopRated&ratenum=1&ratetype=percent\">1%</a> - "
."<a href=\"modules.php?name=$module_name&d_op=TopRated&ratenum=5&ratetype=percent\">5%</a> - "
."<a href=\"modules.php?name=$module_name&d_op=TopRated&ratenum=10&ratetype=percent\">10%</a> ]</center><br><br></td></tr>";
$sql = "SELECT lid, cid, title, description, date, hits, downloadratingsummary, totalvotes, totalcomments, filesize, version, homepage FROM ".$prefix."_downloads_downloads WHERE downloadratingsummary != '0' AND totalvotes >= '$downloadvotemin' ORDER BY downloadratingsummary DESC LIMIT 0,$topdownloads";
$result = $db->sql_query($sql);
echo "<tr><td>";
while ($row = $db->sql_fetchrow($result)) {
$lid = intval($row['lid']);
$cid = intval($row['cid']);
$title = stripslashes(check_html($row['title'], "nohtml"));
$description = stripslashes($row['description']);
$time = $row['date'];
$hits = intval($row['hits']);
$downloadratingsummary = $row['downloadratingsummary'];
$totalvotes = intval($row['totalvotes']);
$totalcomments = intval($row['totalcomments']);
$filesize = $row['filesize'];
$version = $row['version'];
$homepage = stripslashes($row['homepage']);
$downloadratingsummary = number_format($downloadratingsummary, $mainvotedecimal);
if (is_admin($admin)) {
echo "<a href=\"".$admin_file.".php?op=DownloadsModDownload&lid=$lid\"><img src=\"modules/$module_name/images/lwin.gif\" border=\"0\" alt=\""._EDIT."\"></a> ";
} else {
echo "<img src=\"modules/$module_name/images/lwin.gif\" border=\"0\" alt=\"\"> ";
}
echo "<a href=\"modules.php?name=$module_name&d_op=getit&lid=$lid\">$title</a>";
newdownloadgraphic($datetime, $time);
popgraphic($hits);
detecteditorial($lid, $transfertitle, 1);
echo "<br>";
echo "<b>"._DESCRIPTION.":</b> $description<br>";
setlocale (LC_TIME, $locale);
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime);
$datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
$datetime = ucfirst($datetime);
echo "<b>"._VERSION.":</b> $version <b>"._FILESIZE.":</b> ".CoolSize($filesize)."<br>";
echo "<b>"._ADDEDON.":</b> $datetime <b>"._UDOWNLOADS.":</b> $hits";
$transfertitle = str_replace (" ", "_", $title);
/* voting & comments stats */
if ($totalvotes == 1) {
$votestring = _VOTE;
} else {
$votestring = _VOTES;
}
if ($downloadratingsummary!="0" || $downloadratingsummary!="0.0") {
echo " <b>"._RATING.":</b> <b>$downloadratingsummary</b> ($totalvotes $votestring)";
}
if ($homepage == "") {
echo "<br>";
} else {
echo "<br><a href=\"$homepage\" target=\"new\">"._HOMEPAGE."</a> | ";
}
echo "<a href=\"modules.php?name=$module_name&d_op=ratedownload&lid=$lid&ttitle=$transfertitle\">"._RATERESOURCE."</a>";
if (is_user($user)) {
echo " | <a href=\"modules.php?name=$module_name&d_op=brokendownload&lid=$lid\">"._REPORTBROKEN."</a>";
}
echo " | <a href=\"modules.php?name=$module_name&d_op=viewdownloaddetails&lid=$lid&ttitle=$transfertitle\">"._DETAILS."</a>";
if ($totalcomments != 0) {
echo " | <a href=\"modules.php?name=$module_name&d_op=viewdownloadcomments&lid=$lid&ttitle=$transfertitle\">"._SCOMMENTS." ($totalcomments)</a>";
}
detecteditorial($lid, $transfertitle, 0);
echo "<br>";
$sql2 = "SELECT title FROM ".$prefix."_downloads_categories WHERE cid='$cid'";
$result2 = $db->sql_query($sql2);
$row2 = $db->sql_fetchrow($result2);
$ctitle = stripslashes(check_html($row2['title'], "nohtml"));
$ctitle = getparent($cid,$ctitle);
echo ""._CATEGORY.": $ctitle";
echo "<br><br>";
}
echo "</font></td></tr></table>";
CloseTable();
include("footer.php");
}
function MostPopular($ratenum, $ratetype) {
global $prefix, $db, $admin, $module_name, $user, $admin_file;
include("header.php");
include("modules/$module_name/d_config.php");
menu(1);
echo "<br>";
OpenTable();
echo "<table border=\"0\" width=\"100%\"><tr><td align=\"center\">";
if ($ratenum != "" && $ratetype != "") {
$mostpopdownloads = $ratenum;
if ($ratetype == "percent") $mostpopdownloadspercentrigger = 1;
}
if ($mostpopdownloadspercentrigger == 1) {
$topdownloadspercent = $mostpopdownloads;
$result = $db->sql_query("SELECT * FROM ".$prefix."_downloads_downloads");
$totalmostpopdownloads = $db->sql_numrows($result);
$mostpopdownloads = $mostpopdownloads / 100;
$mostpopdownloads = $totalmostpopdownloads * $mostpopdownloads;
$mostpopdownloads = round($mostpopdownloads);
}
if ($mostpopdownloadspercentrigger == 1) {
echo "<center><font class=\"option\"><b>"._MOSTPOPULAR." $topdownloadspercent% ("._OFALL." $totalmostpopdownloads "._DOWNLOADS.")</b></font></center>";
} else {
echo "<center><font class=\"option\"><b>"._MOSTPOPULAR." $mostpopdownloads</b></font></center>";
}
echo "<tr><td><center>"._SHOWTOP.": [ <a href=\"modules.php?name=$module_name&d_op=MostPopular&ratenum=10&ratetype=num\">10</a> - "
."<a href=\"modules.php?name=$module_name&d_op=MostPopular&ratenum=25&ratetype=num\">25</a> - "
."<a href=\"modules.php?name=$module_name&d_op=MostPopular&ratenum=50&ratetype=num\">50</a> | "
."<a href=\"modules.php?name=$module_name&d_op=MostPopular&ratenum=1&ratetype=percent\">1%</a> - "
."<a href=\"modules.php?name=$module_name&d_op=MostPopular&ratenum=5&ratetype=percent\">5%</a> - "
."<a href=\"modules.php?name=$module_name&d_op=MostPopular&ratenum=10&ratetype=percent\">10%</a> ]</center><br><br></td></tr>";
$result = $db->sql_query("SELECT lid, cid, title, description, date, hits, downloadratingsummary, totalvotes, totalcomments, filesize, version, homepage FROM ".$prefix."_downloads_downloads order by hits DESC limit 0,$mostpopdownloads ");
echo "<tr><td>";
while(list($lid, $cid, $title, $description, $time, $hits, $downloadratingsummary, $totalvotes, $totalcomments, $filesize, $version, $homepage) = $db->sql_fetchrow($result)) {
$lid = intval($lid);
$cid = intval($cid);
$downloadratingsummary = number_format($downloadratingsummary, $mainvotedecimal);
$hits = intval($hits);
$title = stripslashes(check_html($title, "nohtml"));
$totalvotes = intval($totalvotes);
$totalcomments = intval($totalcomments);
$description = stripslashes($description);
global $prefix, $db, $admin;
if (is_admin($admin)) {
echo "<a href=\"".$admin_file.".php?op=DownloadsModDownload&lid=$lid\"><img src=\"modules/$module_name/images/lwin.gif\" border=\"0\" alt=\""._EDIT."\"></a> ";
} else {
echo "<img src=\"modules/$module_name/images/lwin.gif\" border=\"0\" alt=\"\"> ";
}
echo "<font class=\"content\"><a href=\"modules.php?name=$module_name&d_op=getit&lid=$lid\">$title</a>";
newdownloadgraphic($datetime, $time);
popgraphic($hits);
detecteditorial($lid, $transfertitle, 1);
echo "<br>";
echo "<b>"._DESCRIPTION.":</b> $description<br>";
setlocale (LC_TIME, $locale);
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime);
$datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
$datetime = ucfirst($datetime);
echo "<b>"._VERSION.":</b> $version <b>"._FILESIZE.":</b> ".CoolSize($filesize)."<br>";
echo "<b>"._ADDEDON.":</b> $datetime <b>"._UDOWNLOADS.":</b> <b>$hits</b>";
$transfertitle = str_replace (" ", "_", $title);
/* voting & comments stats */
if ($totalvotes == 1) {
$votestring = _VOTE;
} else {
$votestring = _VOTES;
}
if ($downloadratingsummary!="0" || $downloadratingsummary!="0.0") {
echo " <b>"._RATING.":</b> $downloadratingsummary ($totalvotes $votestring)";
}
if ($homepage == "") {
echo "<br>";
} else {
echo "<br><a href=\"$homepage\" target=\"new\">"._HOMEPAGE."</a> | ";
}
echo "<a href=\"modules.php?name=$module_name&d_op=ratedownload&lid=$lid&ttitle=$transfertitle\">"._RATERESOURCE."</a>";
if (is_user($user)) {
echo " | <a href=\"modules.php?name=$module_name&d_op=brokendownload&lid=$lid\">"._REPORTBROKEN."</a>";
}
echo " | <a href=\"modules.php?name=$module_name&d_op=viewdownloaddetails&lid=$lid&ttitle=$transfertitle\">"._DETAILS."</a>";
if ($totalcomments != 0) {
echo " | <a href=\"modules.php?name=$module_name&d_op=viewdownloadcomments&lid=$lid&ttitle=$transfertitle\">"._SCOMMENTS." ($totalcomments)</a>";
}
detecteditorial($lid, $transfertitle, 0);
echo "<br>";
$result2 = $db->sql_query("SELECT title FROM ".$prefix."_downloads_categories WHERE cid='$cid'");
list($ctitle) = $db->sql_fetchrow($result2);
$ctitle = stripslashes(check_html($ctitle, "nohtml"));
$ctitle = getparent($cid,$ctitle);
echo ""._CATEGORY.": $ctitle";
echo "<br><br>";
}
echo "</font></td></tr></table>";
CloseTable();
include("footer.php");
}
function viewdownload($cid, $min, $orderby, $show) {
global $prefix, $db, $admin, $perpage, $module_name, $user, $admin_file;
include("header.php");
if (!isset($min)) $min=0;
if (!isset($max)) $max=$min+$perpage;
if(isset($orderby)) {
$orderby = convertorderbyin($orderby);
} else {
$orderby = "title ASC";
}
if ($show!="") {
$perpage = $show;
} else {
$show=$perpage;
}
menu(1);
echo "<br>";
OpenTable();
$cid = intval($cid);
$result = $db->sql_query("SELECT title,parentid FROM ".$prefix."_downloads_categories WHERE cid='$cid'");
list($title,$parentid)=$db->sql_fetchrow($result);
$title = stripslashes(check_html($title, "nohtml"));
$parentid = intval($parentid);
$title=getparentlink($parentid,$title);
$title="<a href=modules.php?name=$module_name>"._MAIN."</a>/$title";
echo "<center><font class=\"option\"><b>"._CATEGORY.": $title</b></font></center><br>";
echo "<table border=\"0\" cellspacing=\"10\" cellpadding=\"0\" align=\"center\"><tr>";
$cid = intval($cid);
$result2 = $db->sql_query("SELECT cid, title, cdescription FROM ".$prefix."_downloads_categories WHERE parentid='$cid' order by title");
$count = 0;
while(list($cid2, $title2, $cdescription2) = $db->sql_fetchrow($result2)) {
$cid2 = intval($cid2);
$title2 = stripslashes(check_html($title2, "nohtml"));
$cdescription2 = stripslashes($cdescription2);
$cresult = $db->sql_query("SELECT * FROM ".$prefix."_downloads_downloads WHERE cid='$cid2'");
$cnumrows = $db->sql_numrows($cresult);
echo "<td><font class=\"option\"><strong><big>·</big></strong> <a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid2\"><b>$title2</b></a></font> ($cnumrows)";
categorynewdownloadgraphic($cid2);
if ($cdescription2) {
echo "<font class=\"content\">$cdescription2</font><br>";
} else {
echo "<br>";
}
$result3 = $db->sql_query("SELECT cid, title FROM ".$prefix."_downloads_categories WHERE parentid='$cid2' order by title limit 0,3");
$space = 0;
while(list($cid3, $title3) = $db->sql_fetchrow($result3)) {
$cid3 = intval($cid3);
$title3 = stripslashes(check_html($title3, "nohtml"));
if ($space>0) {
echo ", ";
}
$cresult2 = $db->sql_query("SELECT * FROM ".$prefix."_downloads_downloads WHERE cid='$cid3'");
$cnumrows2 = $db->sql_numrows($cresult2);
echo "<font class=\"content\"><a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid3\">$title3</a> ($cnumrows2)</font>";
$space++;
}
if ($count<1) {
echo "</td><td> </td>";
$dum = 1;
}
$count++;
if ($count==2) {
echo "</td></tr><tr>";
$count = 0;
$dum = 0;
}
}
if ($dum == 1) {
echo "</tr></table>";
} elseif ($dum == 0) {
echo "<td></td></tr></table>";
}
echo "<hr noshade size=\"1\">";
$orderbyTrans = convertorderbytrans($orderby);
echo "<center><font class=\"content\">"._SORTDOWNLOADSBY.": "
.""._TITLE." (<a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid&orderby=titleA\">A</a>\<a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid&orderby=titleD\">D</a>) "
.""._DATE." (<a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid&orderby=dateA\">A</a>\<a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid&orderby=dateD\">D</a>) "
.""._RATING." (<a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid&orderby=ratingA\">A</a>\<a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid&orderby=ratingD\">D</a>) "
.""._POPULARITY." (<a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid&orderby=hitsA\">A</a>\<a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid&orderby=hitsD\">D</a>)"
."<br><b>"._RESSORTED.": $orderbyTrans</b></font></center><br><br>";
$result=$db->sql_query("SELECT lid, title, description, date, hits, downloadratingsummary, totalvotes, totalcomments, filesize, version, homepage FROM ".$prefix."_downloads_downloads WHERE cid='$cid' order by $orderby limit $min,$perpage ");
$fullcountresult=$db->sql_query("SELECT lid, title, description, date, hits, downloadratingsummary, totalvotes, totalcomments FROM ".$prefix."_downloads_downloads WHERE cid='$cid'");
$totalselecteddownloads = $db->sql_numrows($fullcountresult);
echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"10\" border=\"0\"><tr><td><font class=\"content\">";
$x=0;
while(list($lid, $title, $description, $time, $hits, $downloadratingsummary, $totalvotes, $totalcomments, $filesize, $version, $homepage)=$db->sql_fetchrow($result)) {
$lid = intval($lid);
$hits = intval($hits);
$totalvotes = intval($totalvotes);
$totalcomments = intval($totalcomments);
$downloadratingsummary = number_format($downloadratingsummary, $mainvotedecimal);
$title = stripslashes(check_html($title, "nohtml"));
$description = stripslashes($description);
global $prefix, $db, $admin;
if (is_admin($admin)) {
echo "<a href=\"".$admin_file.".php?op=DownloadsModDownload&lid=$lid\"><img src=\"modules/$module_name/images/lwin.gif\" border=\"0\" alt=\""._EDIT."\"></a> ";
} else {
echo "<img src=\"modules/$module_name/images/lwin.gif\" border=\"0\" alt=\"\"> ";
}
echo "<a href=\"modules.php?name=$module_name&d_op=getit&lid=$lid\">$title</a>";
newdownloadgraphic($datetime, $time);
popgraphic($hits);
/* INSERT code for *editor review* here */
detecteditorial($lid, $transfertitle, 1);
echo "<br>";
echo "<b>"._DESCRIPTION.":</b> $description<br>";
setlocale (LC_TIME, $locale);
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime);
$datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
$datetime = ucfirst($datetime);
echo "<b>"._VERSION.":</b> $version <b>"._FILESIZE.":</b> ".CoolSize($filesize)."<br>";
echo "<b>"._ADDEDON.":</b> $datetime <b>"._UDOWNLOADS.":</b> $hits";
$transfertitle = str_replace (" ", "_", $title);
/* voting & comments stats */
if ($totalvotes == 1) {
$votestring = _VOTE;
} else {
$votestring = _VOTES;
}
if ($downloadratingsummary!="0" || $downloadratingsummary!="0.0") {
echo " <b>"._RATING.":</b> $downloadratingsummary ($totalvotes $votestring)";
}
if ($homepage == "") {
echo "<br>";
} else {
echo "<br><a href=\"$homepage\" target=\"new\">"._HOMEPAGE."</a> | ";
}
echo "<a href=\"modules.php?name=$module_name&d_op=ratedownload&lid=$lid&ttitle=$transfertitle\">"._RATERESOURCE."</a>";
if (is_user($user)) {
echo " | <a href=\"modules.php?name=$module_name&d_op=brokendownload&lid=$lid\">"._REPORTBROKEN."</a>";
}
echo " | <a href=\"modules.php?name=$module_name&d_op=viewdownloaddetails&lid=$lid&ttitle=$transfertitle\">"._DETAILS."</a>";
if ($totalcomments != 0) {
echo " | <a href=\"modules.php?name=$module_name&d_op=viewdownloadcomments&lid=$lid&ttitle=$transfertitle\">"._SCOMMENTS." ($totalcomments)</a>";
}
detecteditorial($lid, $transfertitle, 0);
echo "<br><br>";
$x++;
}
echo "</font>";
$orderby = convertorderbyout($orderby);
/* Calculates how many pages exist. Which page one should be on, etc... */
$downloadpagesint = ($totalselecteddownloads / $perpage);
$downloadpageremainder = ($totalselecteddownloads % $perpage);
if ($downloadpageremainder != 0) {
$downloadpages = ceil($downloadpagesint);
if ($totalselecteddownloads < $perpage) {
$downloadpageremainder = 0;
}
} else {
$downloadpages = $downloadpagesint;
}
/* Page Numbering */
if ($downloadpages!=1 && $downloadpages!=0) {
echo "<br><br>";
echo ""._SELECTPAGE.": ";
$prev=$min-$perpage;
if ($prev>=0) {
echo " <b>[ <a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid&min=$prev&orderby=$orderby&show=$show\">";
echo " << "._PREVIOUS."</a> ]</b> ";
}
$counter = 1;
$currentpage = ($max / $perpage);
while ($counter<=$downloadpages ) {
$cpage = $counter;
$mintemp = ($perpage * $counter) - $perpage;
if ($counter == $currentpage) {
echo "<b>$counter</b> ";
} else {
echo "<a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid&min=$mintemp&orderby=$orderby&show=$show\">$counter</a> ";
}
$counter++;
}
$next=$min+$perpage;
if ($x>=$perpage) {
echo " <b>[ <a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid&min=$max&orderby=$orderby&show=$show\">";
echo " "._NEXT." >></a> ]</b> ";
}
}
echo "</td></tr></table>";
CloseTable();
include("footer.php");
}
function viewsdownload($sid, $min, $orderby, $show) {
global $prefix, $db, $admin, $module_name, $user, $admin_file;
include("modules/$module_name/d_config.php");
include("header.php");
$sid = intval($sid);
menu(1);
if (!isset($min)) $min=0;
if (!isset($max)) $max=$min+$perpage;
if(isset($orderby)) {
$orderby = convertorderbyin($orderby);
} else {
$orderby = "title ASC";
}
if ($show!="") {
$perpage = $show;
} else {
$show=$perpage;
}
echo "<br>";
OpenTable();
$cid = intval(trim($cid));
$result = $db->sql_query("SELECT title,parentid FROM ".$prefix."_downloads_categories WHERE cid='$cid'");
list($title,$parentid)=$db->sql_fetchrow($result);
$title = stripslashes(check_html($title, "nohtml"));
$parentid = intval($parentid);
$title=getparentlink($parentid,$title);
$title="<a href=modules.php?name=$module_name>"._MAIN."</a>/$title";
echo "<center><font class=\"option\"><b>"._CATEGORY.": $title</b></font></center><br>";
echo "<table border=\"0\" cellspacing=\"10\" cellpadding=\"0\" align=\"center\"><tr>";
$result2 = $db->sql_query("SELECT cid, title, cdescription FROM ".$prefix."_downloads_categories WHERE parentid='$cid' order by title");
$count = 0;
while(list($cid2, $title2, $cdescription2) = $db->sql_fetchrow($result2)) {
$cid2 = intval($cid2);
$title = stripslashes(check_html($title, "nohtml"));
$cdescription = stripslashes($cdescription);
echo "<td><font class=\"option\"><strong><big>·</big></strong> <a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid2\"><b>$title2</b></a></font>";
categorynewdownloadgraphic($cid2);
if ($cdescription2) {
echo "<font class=\"content\">$cdescription2</font><br>";
} else {
echo "<br>";
}
$result3 = $db->sql_query("SELECT cid, title FROM ".$prefix."_downloads_categories WHERE parentid='$cid2' order by title limit 0,3");
$space = 0;
while(list($cid3, $title3) = $db->sql_fetchrow($result3)) {
$cid3 = intval($cid3);
$title3 = stripslashes(check_html($title3, "nohtml"));
if ($space>0) {
echo ", ";
}
echo "<font class=\"content\"><a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid3\">$title3</a></font>";
$space++;
}
if ($count<1) {
echo "</td><td> </td>";
$dum = 1;
}
$count++;
if ($count==2) {
echo "</td></tr><tr>";
$count = 0;
$dum = 0;
}
}
if ($dum == 1) {
echo "</tr></table>";
} elseif ($dum == 0) {
echo "<td></td></tr></table>";
}
echo "<hr noshade size=\"1\">";
$orderbyTrans = convertorderbytrans($orderby);
echo "<br><center><font class=\"content\">"._SORTDOWNLOADSBY.": "
.""._TITLE." (<a href=\"modules.php?name=$module_name&d_op=viewdownload&sid=$sid&orderby=titleA\">A</a>\<a href=\"modules.php?name=$module_name&d_op=viewdownload&sid=$sid&orderby=titleD\">D</a>)"
." "._DATE." (<a href=\"modules.php?name=$module_name&d_op=viewdownload&sid=$sid&orderby=dateA\">A</a>\<a href=\"modules.php?name=$module_name&d_op=viewdownload&sid=$sid&orderby=dateD\">D</a>)"
." "._RATING." (<a href=\"modules.php?name=$module_name&d_op=viewdownload&sid=$sid&orderby=ratingA\">A</a>\<a href=\"modules.php?name=$module_name&d_op=viewdownload&sid=$sid&orderby=ratingD\">D</a>)"
." "._POPULARITY." (<a href=\"modules.php?name=$module_name&d_op=viewdownload&sid=$sid&orderby=hitsA\">A</a>\<a href=\"modules.php?name=$module_name&d_op=viewdownload&sid=$sid&orderby=hitsD\">D</a>)"
."<br><b>"._RESSORTED.": $orderbyTrans</b></font></center><br><br>";
$result=$db->sql_query("SELECT lid, url, title, description, date, hits, downloadratingsummary, totalvotes, totalcomments, filesize, version, homepage FROM ".$prefix."_downloads_downloads WHERE sid='$sid' order by $orderby limit $min,$perpage");
$fullcountresult=$db->sql_query("SELECT lid, title, description, date, hits, downloadratingsummary, totalvotes, totalcomments FROM ".$prefix."_downloads_downloads WHERE sid='$sid'");
$totalselecteddownloads = $db->sql_numrows($fullcountresult);
echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"10\" border=\"0\"><tr><td><font class=\"content\">";
$x=0;
while(list($lid, $url, $title, $description, $time, $hits, $downloadratingsummary, $totalvotes, $totalcomments, $filesize, $version, $homepage)=$db->sql_fetchrow($result)) {
$lid = intval($lid);
$hits = intval($hits);
$totalvotes = i
Başa dön
chylecesh Mesaj: 1+
Kayıt: Mar 16, 2006 Mesajlar: 8
Tarih: 2006-05-19, 20:14:35 Mesaj konusu:
hahaha arada smililer cıokmıs :)
Başa dön
saho Forum Yöneticisi
Kayıt: Mar 18, 2005 Mesajlar: 2176 Konum: istanbul-tokat
Tarih: 2006-05-19, 20:19:45 Mesaj konusu: Re: Modül Editleme
index.php den alttakini bul
Kod:
function menu($maindownload) {
global $prefix, $user_adddownload, $module_name;
OpenTable();
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/down-logo.gif")) {
echo "<br><center><img src=\"themes/$ThemeSel/images/down-logo.gif\" border=\"0\" alt=\"\"><br><br>";
} else {
echo "<br><center><img src=\"modules/$module_name/images/down-logo.gif\" border=\"0\" alt=\"\"><br><br>";
}
echo "<form action=\"modules.php?name=$module_name&d_op=search&query=$query\" method=\"post\">"
."<font class=\"content\"><input type=\"text\" size=\"25\" name=\"query\"> <input type=\"submit\" value=\""._SEARCH."\"></font>"
."</form>";
echo "<font class=\"content\">[ ";
if ($maindownload>0) {
echo ""._DOWNLOADSMAIN." | ";
}
if ($user_adddownload == 1) {
echo ""._ADDDOWNLOAD.""
." | ";
}
echo ""._NEW.""
." | "._POPULAR.""
." | "._TOPRATED." ]"
."</font></center>";
CloseTable();
}
bununla değiştir
Kod:
function menu($maindownload) {
echo"";
}
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2025-07-05, 17:47:47 Mesaj konusu: Forum Arası Reklamlar
Başa dön
saho Forum Yöneticisi
Kayıt: Mar 18, 2005 Mesajlar: 2176 Konum: istanbul-tokat
Tarih: 2006-05-19, 20:28:37 Mesaj konusu:
hala yazmadın çıkıyorum yarın bakabilirim cevabına ;)
Başa dön
chylecesh Mesaj: 1+
Kayıt: Mar 16, 2006 Mesajlar: 8
Tarih: 2006-05-19, 20:33:09 Mesaj konusu:
oldu cok tesekkur ederım saolun
Başa dön
chylecesh Mesaj: 1+
Kayıt: Mar 16, 2006 Mesajlar: 8
Tarih: 2006-05-19, 20:35:58 Mesaj konusu:
aaa gec gordum bıraz kusura bakma tekrar cok saolasın...
Başa dön
saho Forum Yöneticisi
Kayıt: Mar 18, 2005 Mesajlar: 2176 Konum: istanbul-tokat
Tarih: 2006-05-20, 10:39:07 Mesaj konusu:
tamam kolay gelsin
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