Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.218
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ?This sh...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriousl...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - 2nd download module error
2nd download module error

9 Replies / 1993 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » General PhpNuke

View previous topic :: View next topic


sueco
Reputation: 30.7 Add RepSubtract Rep
Local time: 12:30 PM
Location: Kristianstad
sweden.gif

Rocket Noob
Rocket Noob

0.01 posts per day
Medals: 0

Joined: Nov 24, 2007
Last Visit: 15 Apr 2010
Posts: 20
Points: 717 

Post 2nd download module error Posted: Wed Feb 13, 2008 11:11 pm

I downloaded and installed 2nd Download Module. When I click the icon in admin I got a white page with the text: Access Denied
Everything is correct installed, in Sql server as well.

Last edited by sueco on Thu Feb 14, 2008 4:39 pm; edited 1 time in total
 

#uic.ut  
View user's profileSend private messageVisit poster's website Reply with quote

StevieH
Reputation: 601.5 Add RepSubtract Rep
votes: 4
Local time: 11:30 AM
Location: Bristol
uk.gif



0.09 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Site Helper
Site Helper
Joined: Mar 19, 2007
Last Visit: 31 Oct 2011
Posts: 167
Points: 20114 

View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote

floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 6:30 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post 2nd download module error Posted: Thu Feb 14, 2008 3:01 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

What version of phpnuke are you running?
 

Phpnuke Downloads | VMaxxRx Male Enhancement  
View user's profileSend private messageVisit poster's website Reply with quote


sueco
Reputation: 30.7 Add RepSubtract Rep
Local time: 12:30 PM
Location: Kristianstad
sweden.gif

Rocket Noob
Rocket Noob

0.01 posts per day
Medals: 0

Joined: Nov 24, 2007
Last Visit: 15 Apr 2010
Posts: 20
Points: 717 

Post 2nd download module error Posted: Thu Feb 14, 2008 3:07 pm

I running Platinum Nuke V 7.6 b4 I don't find any error. The SQL install was successfull too.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 6:30 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post 2nd download module error Posted: Thu Feb 14, 2008 3:10 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

If you open the index.php inside that modules folder and find "Access Denied", paste that code here. I am not very familiar with platinum, but I know that is where the problem lies.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

sueco
Reputation: 30.7 Add RepSubtract Rep
Local time: 12:30 PM
Location: Kristianstad
sweden.gif

Rocket Noob
Rocket Noob

0.01 posts per day
Medals: 0

Joined: Nov 24, 2007
Last Visit: 15 Apr 2010
Posts: 20
Points: 717 

Post 2nd download module error Posted: Thu Feb 14, 2008 3:46 pm

I couldn't find any row with "Acces Denied" and I looked through the index files 2 times. When I click the icon in admin I got this link with Access Denied. http://www.ut2004tournament.com/website/admin.php?op=downloads2
 

 
View user's profileSend private messageVisit poster's website Reply with quote


floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 6:30 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post 2nd download module error Posted: Thu Feb 14, 2008 4:09 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

Oh, look at the index.php in the admin folder then.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

sueco
Reputation: 30.7 Add RepSubtract Rep
Local time: 12:30 PM
Location: Kristianstad
sweden.gif

Rocket Noob
Rocket Noob

0.01 posts per day
Medals: 0

Joined: Nov 24, 2007
Last Visit: 15 Apr 2010
Posts: 20
Points: 717 

Post 2nd download module error Posted: Thu Feb 14, 2008 4:16 pm

My index.php in admin folder only contains HallOfShame lines. Confused
Code:
<?php

/************************************************************************/
/* PHP-Nuke Platinum: Expect to be impressed                  COPYRIGHT */
/*                                                                      */
/* Copyright (c) 2004 - 2006 by http://www.techgfx.com                  */
/*     Techgfx - Graeme Allan                       (goose@techgfx.com) */
/*                                                                      */
/* Copyright (c) 2004 - 2006 by http://www.conrads-berlin.de            */
/*     MrFluffy - Axel Conrads                 (axel@conrads-berlin.de) */
/*                                                                      */
/* Copyright (c) 2004 - 2006 by http://www.nukeplanet.com               */
/*     Loki / Teknerd - Scott Partee           (loki@nukeplanet.com)    */
/*                                                                      */
/* Refer to Nukeplanet.com for detailed information on PHP-Nuke Platinum*/
/*                                                                      */
/* TechGFX: Your dreams, our imagination                                */
/************************************************************************/

require_once("mainfile.php");
global $prefix, $db, $admin_file;
define('MODULE_FILE', true);

/*****************************************************/
/* Forum - Arcade v.3.0.2                      START */
/*****************************************************/

//Arcade MOD - IBProSupport
$arcade = $HTTP_GET_VARS['act'];
$newscore = $HTTP_GET_VARS['do'];
if($arcade == 'Arcade' && $newscore='newscore')
{
   $gamename = str_replace("\'","''",$HTTP_POST_VARS['gname']);
   $gamename = preg_replace(array('#&(?!(\#[0-9]+;))#', '#<#', '#>#'), array('&amp;', '&lt;', '&gt;'),$gamename);
   $gamescore = intval($HTTP_POST_VARS['gscore']);

   //Get Game ID
   $row = $db->sql_fetchrow($db->sql_query("SELECT game_id from ".$prefix."_bbgames WHERE game_scorevar='$gamename'"));
   $gid = intval($row['game_id']);
   
   $ThemeSel = get_theme();
   echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
   echo "<form method='post' name='ibpro_score' action='modules.php?name=Forums&file=proarcade&valid=X&gpaver=GFARV2'>";
   echo "<input type=hidden name='vscore' value='$gamescore'>";
   echo "<input type=hidden name='gid' value='$gid'>";
   echo "</form>";
   
   echo "<script type=\"text/javascript\">";
   echo "window.onload = function(){document.forms[\"ibpro_score\"].submit()}";
   echo "</script>";
   exit;
}
/*****************************************************/
/* Forum - Arcade v.3.0.2                        END */
/*****************************************************/

$modpath = '';
$_SERVER['PHP_SELF'] = "modules.php";
$_SERVER['SCRIPT_NAME'] = "modules.php";
$row = $db->sql_fetchrow($db->sql_query("SELECT main_module from ".$prefix."_main"));
$name = $row['main_module'];
$home = 1;
define('HOME_FILE', true);

if (isset($url) AND is_admin($admin)) {
   Header("Location: $url");
   die();
}

if ($httpref == 1) {
    if (isset($_SERVER['HTTP_REFERER'])) {
    $referer = $_SERVER['HTTP_REFERER'];
    $referer = check_html($referer, "nohtml");
    }
    if (!empty($referer) && !stripos_clone($referer, "unknown") && !stripos_clone($referer, "bookmark") && !stripos_clone($referer, $_SERVER['HTTP_HOST'])) {
    $result = $db->sql_query("INSERT INTO ".$prefix."_referer VALUES (NULL, '".$referer."')");
    }
    $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_referer"));
    if($numrows>=$httprefmax) {
   $result2 = $db->sql_query("DELETE FROM ".$prefix."_referer");
    }
}
if (!isset($mop)) { $mop="modload"; }
if (!isset($mod_file)) { $mod_file="index"; }
$name = trim($name);
if (isset($file)) { $file = trim($file); }
$mod_file = trim($mod_file);
$mop = trim($mop);
if (stripos_clone($name,"..") || (isset($file) && stripos_clone($file,"..")) || stripos_clone($mod_file,"..") || stripos_clone($mop,"..")) {
   die("You are so cool...");
} else {
    $ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/module.php")) {
   include("themes/$ThemeSel/module.php");
   if (is_active("$default_module") AND file_exists("modules/$default_module/".$mod_file.".php")) {
       $name = $default_module;
   }
    }
    if (file_exists("themes/$ThemeSel/modules/$name/".$mod_file.".php")) {
   $modpath = "themes/$ThemeSel/";
    }
    $modpath .= "modules/$name/".$mod_file.".php";
    if (file_exists($modpath)) {
   include($modpath);
    } else {
   define('INDEX_FILE', true);
   include("header.php");
   OpenTable();
   if (is_admin($admin)) {
       echo "<center><font class=\"\"><b>"._HOMEPROBLEM."</b></font><br><br>[ <a href=\"".$admin_file.".php?op=modules\">"._ADDAHOME."</a> ]</center>";
   } else {
       echo "<center>"._HOMEPROBLEMUSER."</center>";
   }
   CloseTable();
   include("footer.php");
    }
}

?>
 

 
View user's profileSend private messageVisit poster's website Reply with quote

sueco
Reputation: 30.7 Add RepSubtract Rep
Local time: 12:30 PM
Location: Kristianstad
sweden.gif

Rocket Noob
Rocket Noob

0.01 posts per day
Medals: 0

Joined: Nov 24, 2007
Last Visit: 15 Apr 2010
Posts: 20
Points: 717 

Post 2nd download module error Posted: Thu Feb 14, 2008 5:15 pm

In the Admin i found download2.php and in the begining this lines:
Code:
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
$aid = trim($aid);
$result = $db->sql_query("select radmindownload, radminsuper from ".$prefix."_authors where aid='$aid'");
list($radmindownload, $radminsuper) = $db->sql_fetchrow($result);
if (($radmindownload==1) OR ($radminsuper==1)) {
 

 
View user's profileSend private messageVisit poster's website Reply with quote


sueco
Reputation: 30.7 Add RepSubtract Rep
Local time: 12:30 PM
Location: Kristianstad
sweden.gif

Rocket Noob
Rocket Noob

0.01 posts per day
Medals: 0

Joined: Nov 24, 2007
Last Visit: 15 Apr 2010
Posts: 20
Points: 717 

Post Re: 2nd download module error Posted: Thu Feb 14, 2008 5:17 pm

sueco wrote:
My index.php in admin folder only contains HallOfShame lines. Confused
Code:
<?php

/************************************************************************/
/* PHP-Nuke Platinum: Expect to be impressed                  COPYRIGHT */
/*                                                                      */
/* Copyright (c) 2004 - 2006 by http://www.techgfx.com                  */
/*     Techgfx - Graeme Allan                       (goose@techgfx.com) */
/*                                                                      */
/* Copyright (c) 2004 - 2006 by http://www.conrads-berlin.de            */
/*     MrFluffy - Axel Conrads                 (axel@conrads-berlin.de) */
/*                                                                      */
/* Copyright (c) 2004 - 2006 by http://www.nukeplanet.com               */
/*     Loki / Teknerd - Scott Partee           (loki@nukeplanet.com)    */
/*                                                                      */
/* Refer to Nukeplanet.com for detailed information on PHP-Nuke Platinum*/
/*                                                                      */
/* TechGFX: Your dreams, our imagination                                */
/************************************************************************/

require_once("mainfile.php");
global $prefix, $db, $admin_file;
define('MODULE_FILE', true);

/*****************************************************/
/* Forum - Arcade v.3.0.2                      START */
/*****************************************************/

//Arcade MOD - IBProSupport
$arcade = $HTTP_GET_VARS['act'];
$newscore = $HTTP_GET_VARS['do'];
if($arcade == 'Arcade' && $newscore='newscore')
{
   $gamename = str_replace("\'","''",$HTTP_POST_VARS['gname']);
   $gamename = preg_replace(array('#&(?!(\#[0-9]+;))#', '#<#', '#>#'), array('&amp;', '&lt;', '&gt;'),$gamename);
   $gamescore = intval($HTTP_POST_VARS['gscore']);

   //Get Game ID
   $row = $db->sql_fetchrow($db->sql_query("SELECT game_id from ".$prefix."_bbgames WHERE game_scorevar='$gamename'"));
   $gid = intval($row['game_id']);
   
   $ThemeSel = get_theme();
   echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
   echo "<form method='post' name='ibpro_score' action='modules.php?name=Forums&file=proarcade&valid=X&gpaver=GFARV2'>";
   echo "<input type=hidden name='vscore' value='$gamescore'>";
   echo "<input type=hidden name='gid' value='$gid'>";
   echo "</form>";
   
   echo "<script type=\"text/javascript\">";
   echo "window.onload = function(){document.forms[\"ibpro_score\"].submit()}";
   echo "</script>";
   exit;
}
/*****************************************************/
/* Forum - Arcade v.3.0.2                        END */
/*****************************************************/

$modpath = '';
$_SERVER['PHP_SELF'] = "modules.php";
$_SERVER['SCRIPT_NAME'] = "modules.php";
$row = $db->sql_fetchrow($db->sql_query("SELECT main_module from ".$prefix."_main"));
$name = $row['main_module'];
$home = 1;
define('HOME_FILE', true);

if (isset($url) AND is_admin($admin)) {
   Header("Location: $url");
   die();
}

if ($httpref == 1) {
    if (isset($_SERVER['HTTP_REFERER'])) {
    $referer = $_SERVER['HTTP_REFERER'];
    $referer = check_html($referer, "nohtml");
    }
    if (!empty($referer) && !stripos_clone($referer, "unknown") && !stripos_clone($referer, "bookmark") && !stripos_clone($referer, $_SERVER['HTTP_HOST'])) {
    $result = $db->sql_query("INSERT INTO ".$prefix."_referer VALUES (NULL, '".$referer."')");
    }
    $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_referer"));
    if($numrows>=$httprefmax) {
   $result2 = $db->sql_query("DELETE FROM ".$prefix."_referer");
    }
}
if (!isset($mop)) { $mop="modload"; }
if (!isset($mod_file)) { $mod_file="index"; }
$name = trim($name);
if (isset($file)) { $file = trim($file); }
$mod_file = trim($mod_file);
$mop = trim($mop);
if (stripos_clone($name,"..") || (isset($file) && stripos_clone($file,"..")) || stripos_clone($mod_file,"..") || stripos_clone($mop,"..")) {
   die("You are so cool...");
} else {
    $ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/module.php")) {
   include("themes/$ThemeSel/module.php");
   if (is_active("$default_module") AND file_exists("modules/$default_module/".$mod_file.".php")) {
       $name = $default_module;
   }
    }
    if (file_exists("themes/$ThemeSel/modules/$name/".$mod_file.".php")) {
   $modpath = "themes/$ThemeSel/";
    }
    $modpath .= "modules/$name/".$mod_file.".php";
    if (file_exists($modpath)) {
   include($modpath);
    } else {
   define('INDEX_FILE', true);
   include("header.php");
   OpenTable();
   if (is_admin($admin)) {
       echo "<center><font class=\"\"><b>"._HOMEPROBLEM."</b></font><br><br>[ <a href=\"".$admin_file.".php?op=modules\">"._ADDAHOME."</a> ]</center>";
   } else {
       echo "<center>"._HOMEPROBLEMUSER."</center>";
   }
   CloseTable();
   include("footer.php");
    }
}

?>

In the bottom of the file, this:
Code:

switch ($op) {
         
    case "downloads2":
    downloads2();
    break;

    case "DownloadsDelNew2":
    DownloadsDelNew2($lid);
    break;

    case "DownloadsAddCat2":
    DownloadsAddCat2($title, $cdescription);
    break;

    case "DownloadsAddSubCat2":
    DownloadsAddSubCat2($cid, $title, $cdescription);
    break;

    case "DownloadsAddDownload2":
    DownloadsAddDownload2($new, $lid, $title, $url, $cat, $description, $name, $email, $submitter, $filesize, $version, $homepage, $hits);
    break;
         
    case "DownloadsAddEditorial2":
    DownloadsAddEditorial2($downloadid, $editorialtitle, $editorialtext);
    break;         
         
    case "DownloadsModEditorial2":
    DownloadsModEditorial2($downloadid, $editorialtitle, $editorialtext);
    break;   
         
    case "DownloadsDownloadCheck2":
    DownloadsDownloadCheck2();
    break;   
      
    case "DownloadsValidate2":
    DownloadsValidate2($cid, $sid, $ttitle);
    break;

    case "DownloadsDelEditorial2":
    DownloadsDelEditorial2($downloadid);
    break;                  

    case "DownloadsCleanVotes2":
    DownloadsCleanVotes2();
    break;   
      
    case "DownloadsListBrokenDownloads2":
    DownloadsListBrokenDownloads2();
    break;

    case "DownloadsDelBrokenDownloads2":
    DownloadsDelBrokenDownloads2($lid);
    break;
         
    case "DownloadsIgnoreBrokenDownloads2":
    DownloadsIgnoreBrokenDownloads2($lid);
    break;         
         
    case "DownloadsListModRequests2":
    DownloadsListModRequests2();
    break;      
         
    case "DownloadsChangeModRequests2":
    DownloadsChangeModRequests2($requestid);
    break;   
         
    case "DownloadsChangeIgnoreRequests2":
    DownloadsChangeIgnoreRequests2($requestid);
    break;
         
    case "DownloadsDelCat2":
    DownloadsDelCat2($cid, $sid, $sub, $ok);
    break;

    case "DownloadsModCat2":
    DownloadsModCat2($cat);
    break;

    case "DownloadsModCatS2":
    DownloadsModCatS2($cid, $sid, $sub, $title, $cdescription);
    break;

    case "DownloadsModDownload2":
    DownloadsModDownload2($lid);
    break;

    case "DownloadsModDownloadS2":
    DownloadsModDownloadS2($lid, $title, $url, $description, $name, $email, $hits, $cat, $filesize, $version, $homepage);
    break;

    case "DownloadsDelDownload2":
    DownloadsDelDownload2($lid);
    break;

    case "DownloadsDelVote2":
    DownloadsDelVote2($lid, $rid);
    break;         

    case "DownloadsDelComment2":
    DownloadsDelComment2($lid, $rid);
    break;

    case "DownloadsTransfer2":
    DownloadsTransfer2($cidfrom,$cidto);
    break;

}
   
} else {
    echo "Access Denied";
}

?>
 

 
View user's profileSend private messageVisit poster's website Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » General PhpNuke


 
9 Replies / 1993 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum