========================= */ /* */ /* Copyright (c) 2002 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. */ /* */ /************************************************************************/ /* Additional security & Abstraction layer conversion */ /* 2003 chatserv */ /* http://www.nukefixes.com -- http://www.nukeresources.com */ /************************************************************************/ if (!eregi("modules.php", $_SERVER['PHP_SELF'])) { die ("You can't access this file directly..."); } 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 = $row[cid]; $cid = intval(trim($cid)); $ptitle = $row[title]; $pparentid = $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 = $row['title']; $pparentid = $row['parentid']; if ($ptitle!="") $title="$ptitle/".$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 "
../../../../default.

"; } else { echo "
../../../../default.

"; } echo "
" ." " ."
"; echo "[ "; if ($maindownload>0) { echo ""._DOWNLOADSMAIN." | "; } if ($user_adddownload == 1) { echo ""._ADDDOWNLOAD."" ." | "; } echo ""._NEW."" ." | "._POPULAR."" ." |