Welcome Guest!   Please Login or Register
Subscribe Today

You are not subscriber of DaDaNuke | Making PHP-Nuke Better!. You can subscribe from here now!

Sponsored Links




Search




Site Navigation

· Home
· About Us
· Advertise With Us
· Club
· CVS
· Downloads
· Feedback
· Forums
· Gallery
· Groups
· Journal
· Private Messages
· Search
· Stories Archive
· Submit News
· Top 10
· Topics
· Web Links
· Your Account

Survey

I Want This Addon:

SEO
Gaming
Commerce
Database
Security



Results
Polls

Votes 560

Advertisers





Who's Online

There are currently, 27 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here

Total Hits

We received
3752676
page views since September 2005




DaDaNuke :: View topic - [FIX] Gallery Can't Access File Directly
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log inLog in 

[FIX] Gallery Can't Access File Directly

 
Post new topic   Reply to topic    DaDaNuke Forum Index -> PHP-Nuke Modules
View previous topic :: View next topic  
Author Message
dogbone
dadaMember
dadaMember


Joined: Mar 24, 2006
Posts: 3


PostPosted: Sat Jul 14, 2007 4:55 am    Post subject: [FIX] Gallery Can't Access File Directly Reply with quote

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
View user's profile Send private message
dadaBIT
General Manager
General Manager


Joined: Jun 23, 2005
Posts: 582
Location: United States

PostPosted: Sat Jul 14, 2007 1:18 pm    Post subject: Reply with quote

Hello dogbone - welcome to DaDaNuke Smile 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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
dogbone
dadaMember
dadaMember


Joined: Mar 24, 2006
Posts: 3


PostPosted: Sun Jul 15, 2007 7:36 am    Post subject: Cant open gallery Reply with quote

Did not help, still get the message: You can't access this file directly...
Back to top
View user's profile Send private message
dadaBIT
General Manager
General Manager


Joined: Jun 23, 2005
Posts: 582
Location: United States

PostPosted: Sun Jul 15, 2007 11:06 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
dogbone
dadaMember
dadaMember


Joined: Mar 24, 2006
Posts: 3


PostPosted: Sun Jul 15, 2007 12:58 pm    Post subject: Cant open gallery Reply with quote

Hello again.....

Jepp's now it's working great..... Thank's a lot for good support
Back to top
View user's profile Send private message
Maximus-Sniper
dadaMember
dadaMember


Joined: Nov 13, 2005
Posts: 1


PostPosted: Tue Jan 08, 2008 8:01 pm    Post subject: Reply with quote

Thanks

It's worked for me too Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DaDaNuke Forum Index -> PHP-Nuke Modules All times are GMT - 4 Hours
Page 1 of 1

 
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
Powered by phpBB © 2001 phpBB Group Version 2.0.6 of PHP-Nuke Port by Tom Nitzschner © 2002 www.toms-home.com
Theme designed by Western Studios



Terms of Use | Privacy Policy © 1996-2007, DaDaNuke

Listed on FeedBurner

PHP-Nuke Copyright © 2006 by Francisco Burzi. This is free software, and you may redistribute it under the GPL.
PHP-Nuke comes with absolutely no warranty, for details, see the license.

Theme Designed by Western Studios