Topic Title: You can't access this file directly...

Forum Index » Gallery 1 Integration » You can't access this file directly...
Topic URL: http://www.nukedgallery.net/postt143.html

AuthorMessage
Post Title: You can't access this file directly...
miso
Joined: Aug 06, 2003
Posts: 12

Posted: Wed Aug 13, 2003 8:55 pm
Gallery works... but when I place it in home I get:
You can't access this file directly...

What am I doing wrong???
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):

AuthorMessage
Post Title: Re: You can't access this file directly...
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Wed Aug 13, 2003 8:57 pm
hmm...that's interesting....i know of many people who place the gallery as their home module with out issue..URL?

AuthorMessage
Post Title:
slackbladder
Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK
Posted: Thu Aug 14, 2003 2:59 am
I feel a new Nuked Gallery block coming on! Laughing

What do you reckon Dari? A center block that displays in the same way as GALLERYS albums.php but maybe 2 column. (I guess it's more or less the same as the LATEST BLOCK?)

AuthorMessage
Post Title: Re: You can't access this file directly...
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Thu Aug 14, 2003 7:23 am
could be... Smile
and this could be the (potential) answer to a question from a user awhile back on how to get the album contents displayed as a block, without using an iframe containing the standalone version.

AuthorMessage
Post Title: Re: You can't access this file directly...
jaco
Joined: Aug 17, 2003
Posts: 2

Posted: Mon Aug 18, 2003 3:04 pm
In the file wrapper.header.default comment from if to }

switch($GALLERY_EMBEDDED_INSIDE) {
case "nuke":
global $PHP_SELF;
//if (!eregi("modules.php", $PHP_SELF)) {
// die ("You can't access this file directly...");
//}

and all will works fine

Bye
Fabio


miso wrote: › Gallery works... but when I place it in home I get:
You can't access this file directly...

What am I doing wrong???
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):

AuthorMessage
Post Title:
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Mon Aug 18, 2003 3:50 pm
actually, that shouldn't be commented out, since it makes sure that modules.php shows up in the requested URL (the exclamation point before the eregi negates the match statement).

but, if it works, go for it Smile

AuthorMessage
Post Title:
jaco
Joined: Aug 17, 2003
Posts: 2

Posted: Tue Aug 19, 2003 6:05 pm
It works fine:) I've tried on my site.

dari wrote: › actually, that shouldn't be commented out, since it makes sure that modules.php shows up in the requested URL (the exclamation point before the eregi negates the match statement).

but, if it works, go for it Smile

AuthorMessage
Post Title:
slackbladder
Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK
Posted: Wed Aug 20, 2003 2:00 am
Try this instead:

Code: ›
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) { 
die ("You can't access this file directly..."); 
}

AuthorMessage
Post Title:
Kit
Joined: Aug 31, 2003
Posts: 163

Posted: Sun Aug 31, 2003 12:00 am
I created this fix long ago, withOUT comprmising modules or security checks, for phpnuke 6.5 and is listed on the gallery forums. I am suprised that it never made it to here. I haven't looked at the latest 134 release, I hope that it is at least there.

AuthorMessage
Post Title: Re: You can't access this file directly...
brettlee
Joined: Jul 15, 2010
Posts: 23

Posted: Thu Jul 15, 2010 2:23 am
The program has been shrouded in mystery and reports on the current status of the vessel have differed. It has been reported that the nuclear reactor and other systems were not included in the submarine's launch and that it was only a ceremonious float-out.[9] Although it has been reported that the new submarinencss [pass4sure.org] already conducting sea trials,[33] Navy chief Admiral Nirmal Verma said in December 2009, "Work is ncie [pass4sure.org]in progress to make INS Arihant operational for sea-trials...it should be inducted in two years or so."In these two years the submarine will under go harbour acceptance trials(HATs) where the submarineemc certification [pass4sure.org]'s nuclear reactor will be 'fired' and all the on board systems will be tested on the power generated by the submarine, which will be followed by sea acceptance trials (SATs) where the submarine will be operated at different speeds and different depths, the final phase will be the weapon trials where the submarine will fire its SLBMs (Submarine launched ballistic missiles) and torpedoes.[35][36] Before working together all hp csa [pass4sure.org] the systems installed in the submarine have to be tested one after the another (this process is called setting-to-work), the HATs and SATs are reported to last for one and a half year

All times are GMT - 5 Hours
Powered by PHPNuke and phpBB2 © 2006 phpBB Group