| View previous topic :: View next topic |
| Author |
Message |
dogbone dadaMember


Joined: Mar 24, 2006 Posts: 3
|
Posted: Sat Jul 14, 2007 4:55 am Post subject: [FIX] Gallery Can't Access File Directly |
|
|
Running the latest ver of EVO. I have uploaded and installed the Gallery for evo, i downloaded it here, and when i try to access the gallery i only get this: You can't access this file directly...
Here is what i done in the block-files:
// EDIT THESE VALUES
$GALLERY_BASEDIR = "/home/dogbone/public_html/modules/gallery/";
define(PHPNUKE_ADDR,"http://ktdforums.org/");
define(ALBUM_DIRECTORY,"/home/dogbone/public_html/modules/gallery/albums/");
define(GALLERY_DIR_NAME,"gallery");
define(EXPIRE_TIME,86400); //Number of seconds between cache file rebuilds.
// DON"T EDIT ANY FURTHER |
|
| Back to top |
|
 |
dadaBIT General Manager


Joined: Jun 23, 2005 Posts: 582 Location: United States
|
Posted: Sat Jul 14, 2007 1:18 pm Post subject: |
|
|
Hello dogbone - welcome to DaDaNuke The answer you seek young Padawan, is written below. Decode the text and the Kingdom shall be yours!
Open /html/modules/gallery/html_wrap/wrapper.header.default and find
| Code: |
if(isset($GALLERY_EMBEDDED_INSIDE)) {
global $PHP_SELF;
if (
($GALLERY_EMBEDDED_INSIDE_TYPE == 'phpnuke' && !eregi("modules.php", $PHP_SELF))
) {
die ("You can't access this file directly...");
}
|
And replace with this
| Code: |
if(isset($GALLERY_EMBEDDED_INSIDE)) {
global $PHP_SELF;
if (($GALLERY_EMBEDDED_INSIDE_TYPE == 'postnuke' && !defined("LOADED_AS_MODULE")) ||
($GALLERY_EMBEDDED_INSIDE_TYPE == 'phpnuke' && !eregi("modules.php", $_SERVER['PHP_SELF']))) {
die ("You can't access this file directly...");
}
|
SAVE AND CLOSE FILE
-Kev _________________
 Visit the DaDaNuke Wish List |
|
| Back to top |
|
 |
dogbone dadaMember


Joined: Mar 24, 2006 Posts: 3
|
Posted: Sun Jul 15, 2007 7:36 am Post subject: Cant open gallery |
|
|
| Did not help, still get the message: You can't access this file directly... |
|
| Back to top |
|
 |
dadaBIT General Manager


Joined: Jun 23, 2005 Posts: 582 Location: United States
|
Posted: Sun Jul 15, 2007 11:06 am Post subject: |
|
|
Hi, and you have set permissions correctly?
| Quote: |
CHMOD 777:
root/modules/gallery/albums/
CHMOD 777:
root/modules/gallery/tmp/
CHMOD 777:
root/modules/gallery/.htaccess
CHMOD 777:
root/modules/gallery/config.php
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
ADMIN LOGIN:
http://your_host/admin.php
CONFIGURATION:
http://your_host/modules/gallery/setup/index.php
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
CHMOD 644:
root/modules/gallery/.htaccess
CHMOD 644:
root/modules/gallery/config.php
|
-K _________________
 Visit the DaDaNuke Wish List |
|
| Back to top |
|
 |
dogbone dadaMember


Joined: Mar 24, 2006 Posts: 3
|
Posted: Sun Jul 15, 2007 12:58 pm Post subject: Cant open gallery |
|
|
Hello again.....
Jepp's now it's working great..... Thank's a lot for good support |
|
| Back to top |
|
 |
Maximus-Sniper dadaMember


Joined: Nov 13, 2005 Posts: 1
|
Posted: Tue Jan 08, 2008 8:01 pm Post subject: |
|
|
Thanks
It's worked for me too  |
|
| Back to top |
|
 |
|