Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes
Author Message
trunks
Worker
Worker


Joined: Oct 05, 2007
Posts: 152
Location: United Kingdom

PostPosted: Fri Jan 02, 2009 11:53 pm Reply with quote

I have found a fix for many people receiving the same problem when uploading and installing this module.

It seems that you download this module, upload to the correct locations and when you try to install/alter the sql tables you get redirected to the home page?
Or if that works fine, you enter your phpnuke downloads page, click the download you want to download and it give you a white page?

Well we've figured out why, read below.



Locate your index.php in your downloads module, which should look like this;

public_html/yournukeroot/modules/Downloads/index.php

You will need to open this file and find the following lines of code:

Code:
Code:


    function makePass() {
        global $module_name;
        $cons = "bcdfghjklmnpqrstvwxyz";
        $vocs = "aeiou";
        for ($x=0; $x < 6; $x++) {
            mt_srand ((double) microtime() * 1000000);
            $con[$x] = substr($cons, mt_rand(0, strlen($cons)-1), 1);
            $voc[$x] = substr($vocs, mt_rand(0, strlen($vocs)-1), 1);
        }
        $makepass = $con[0] . $voc[0] .$con[2] . $con[1] . $voc[1] . $con[3] . $voc[3] . $con[4];
        return($makepass);
    }



Make sure you include that las '}' and delete ALL of those lines!

Save this file and upload and overwrite.



This should solve your problem Smile

Remember you are editing the index.php INSIDE the downloads module, and not your root index file!!

You can download this file from Only registered users can see links on this board! Get registered or login!

The file in their database is unmodified, as this version will work on other versions of nuke.
 
View user's profile Send private message Visit poster's website MSN Messenger
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sat Jan 03, 2009 1:11 am Reply with quote

Thanks for post this :clap:

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
trunks
PostPosted: Sat Jan 03, 2009 3:10 am Reply with quote

No problem Wink
 
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sat Jan 03, 2009 4:49 am Reply with quote

I've never heard of this module before so I was just wondering what it does?
 
View user's profile Send private message
trunks
PostPosted: Sat Jan 03, 2009 10:44 am Reply with quote

Its a different approach on the downloads module. Few more images here and there, different layout etc etc.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©