| Author |
Message |
miso
Beginner


Joined: Aug 06, 2003 Posts: 12
|
Posted: Wed Aug 13, 2003 8:55 pm Post subject: You can't access this file directly... |
|
|
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): |
|
| Back to top |
|
|
AdBot
|
| Post subject: You can't access this file directly... |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


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


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Thu Aug 14, 2003 2:59 am Post subject: |
|
|
I feel a new Nuked Gallery block coming on!
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?) |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Aug 14, 2003 7:23 am Post subject: Re: You can't access this file directly... |
|
|
could be...
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. |
|
| Back to top |
|
|
jaco
Beginner


Joined: Aug 17, 2003 Posts: 2
|
Posted: Mon Aug 18, 2003 3:04 pm Post subject: Re: You can't access this file directly... |
|
|
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): |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Aug 18, 2003 3:50 pm Post subject: |
|
|
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  |
|
| Back to top |
|
|
jaco
Beginner


Joined: Aug 17, 2003 Posts: 2
|
Posted: Tue Aug 19, 2003 6:05 pm Post subject: |
|
|
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  |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Wed Aug 20, 2003 2:00 am Post subject: |
|
|
Try this instead:
Code: ›
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
|
|
| Back to top |
|
|
Kit
Moderator


Joined: Aug 31, 2003 Posts: 163
|
Posted: Sun Aug 31, 2003 12:00 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
|
brettlee
Novice


Joined: Jul 15, 2010 Posts: 23
|
Posted: Thu Jul 15, 2010 2:23 am Post subject: Re: You can't access this file directly... |
|
|
| 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 |
|
| Back to top |
|
|
|
|
|
|
|