enhanced downloads module

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 


Originally posted by Telli @ Wed Apr 26, 2006 2:57 am:

Looks like your missing the $admin_file variable. This was added in 7.5 I believe, so admins could change the name of the admin file. Where did you find the above link in your site?


Where would I look to correct this telli?



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Search for $admin_file and make sure where it used there is a global $admin_file added. You should see a global line at the top of each function just add it there.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: enhanced downloads module
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
Ok in modules/downloads/admin/index.php added $admin_file to globals for these functions.

around line 858, needs to look like this
function DownloadsListBrokenDownloads() {
global $bgcolor1, $bgcolor2, $prefix, $user_prefix, $dbi, $anonymous, $admin_file;


around line 1357, needs to look like this
function DownloadsDelDownload($lid, $delfile, $delimg, $deldl = "no") {
global $prefix, $dbi, $admin_file;


That fixed it. There may be other places it needs to be added, because I noticed a few other globals that didn't have it. Thank You Telli.


Back to top Reply with quote
#4   re: enhanced downloads module
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
Here are the rest of the changes.

Around line 1336, global needs to look like this
function DownloadsModDownloadS($lid, $title, $url, $description, $name, $email, $hits, $cat, $filesize, $version, $homepage, $ns_compat, $ns_des_img, $ns_disable, $ns_mirror_one, $ns_mirror_two, $ns_dl_down_note) {
global $prefix, $dbi, $admin_file;


Around line 1777, global needs to look like this
function DownloadsValidate($cid, $sid, $ttitle) {
global $bgcolor2, $prefix, $dbi, $admin_file;


Around line 1834, global needs to look like this
function DownloadsAddDownload($new, $lid, $title, $url, $cat, $description, $name, $email, $submitter, $filesize, $version, $homepage, $hits, $ns_compat, $ns_des_img, $ns_disable, $ns_mirror_one, $ns_mirror_two, $ns_dl_down_note) {
global $prefix, $dbi, $admin_file;


I think I got them all, but if I stumble across anymore I will post them.


Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

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 cannot download files in this forum