| Author |
Message |
dirtbag
Lieutenant


Joined: May 08, 2003
Posts: 159
|
Posted:
Tue Jul 29, 2003 3:52 pm |
  |
When i try to RATE THIS SITE or RATE THIS DOWNLOAD i get a return page that says
| Quote: |
| You can't access this file directly... |
Visit the link below and try to rate a site to see what i mean....
http://www.subfighter.com/modules.php?name=Web_Links&l_op=viewlink&cid=5
i installed a fresh copy PHPNUKE 6.8 which is the version i am having the problem on.. But the information in the Weblinks and Downloads sections was originally from phpnuke 6.5 which i exported then i imported the tables into my PHPNUKE 6.8.. Could of have done something wrong there???
these are the tables for the DOWNLOADS i exported from 6.5 and then imported to 6.8
| Quote: |
nuke_downloads_categories
nuke_downloads_downloads
nuke_downloads_editorials
nuke_downloads_modrequest
nuke_downloads_newdownload
nuke_downloads_votedata |
these are the tables i exported for the WEBLINKS from 6.5 and then imported to 6.8
| Quote: |
nuke_links_categories
nuke_links_editorials
nuke_links_links
nuke_links_modrequest
nuke_links_newlink
nuke_links_votedata
|
Any help will be greatly appreciated |
_________________ Rick Estrada
http://www.subfighter.com
Online Jiu Jitsu Techniques MMA News |
|
   |
 |
dirtbag
Lieutenant


Joined: May 08, 2003
Posts: 159
|
Posted:
Tue Jul 29, 2003 5:08 pm |
  |
|
   |
 |
dirtbag
Lieutenant


Joined: May 08, 2003
Posts: 159
|
Posted:
Wed Jul 30, 2003 2:37 pm |
  |
|
   |
 |
mynukecops
Private


Joined: Jun 19, 2003
Posts: 41
|
Posted:
Thu Jul 31, 2003 3:53 am |
  |
I moved from 6.5 to 6.7, just found the same problem.
In 6.7/6.8 voteinclude.php, it added these two lines:
if (!eregi("index.php", $_SERVER["PHP_SELF"])) {
die("You can't access this file directly....");
}
if you change index.php to modules.php, everything will be fine. You can see it here. www.natrindex.com |
|
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Thu Jul 31, 2003 3:57 am |
  |
mynukecops,
Thanks for sharing this fix. I have moved the thread to Bug Fixes! |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
mynukecops
Private


Joined: Jun 19, 2003
Posts: 41
|
Posted:
Thu Jul 31, 2003 3:57 am |
  |
It seems that voteinclude.php in Downloads module is the same file as in Web_links. If you make above change, th eproblem should be gone. |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Thu Jul 31, 2003 7:15 am |
  |
Hi, I tried voting here at NC for a download and web link (web link is admin only here), and I didn't see any errors? |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Thu Jul 31, 2003 7:20 am |
  |
|
    |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Thu Jul 31, 2003 7:28 am |
  |
For downloads, index.php has this:
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
voteinclude doesn't have that at all. I think perhaps that is where it should be. CVS voteinclude for download mod is the same. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Thu Jul 31, 2003 7:31 am |
  |
But if you check the distro's for 6.6 at least which is all I have access to right now, it reads index.php and not modules.php. Wonder if this was in a fix pack? |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Thu Jul 31, 2003 7:34 am |
  |
Good call... betaNC will soon be 6.7. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
dirtbag
Lieutenant


Joined: May 08, 2003
Posts: 159
|
Posted:
Thu Jul 31, 2003 7:42 am |
  |
yeah if you change voteinclude.php in both the Weblinks and Download Module than it seems to work correctly
| Code: |
if (!eregi("index.php", $_SERVER["PHP_SELF"])) {
die("You can't access this file directly....");
} |
to
| Code: |
if (!eregi("modules.php", $_SERVER["PHP_SELF"])) {
die("You can't access this file directly....");
} |
thanks |
_________________ Rick Estrada
http://www.subfighter.com
Online Jiu Jitsu Techniques MMA News
Last edited by dirtbag on Thu Jul 31, 2003 8:04 am; edited 1 time in total |
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Thu Jul 31, 2003 7:54 am |
  |
Tell you what, I'll add that in right now to both, and you guys can forward everyone to the CVS for download.
They are now done. Thanks for the catch. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
|
|