Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

You can't access this file directly...

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 1 Integration View previous topicPrinter friendly versionView next topic
Author Message
miso

Beginner
Beginner


Joined: Aug 06, 2003
Posts: 12

PostPosted: Wed Aug 13, 2003 8:55 pm    Post subject: You can't access this file directly... Reply with quote

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
Offline View user's profile Send private message
AdBot
   Post subject: You can't access this file directly...  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 13, 2003 8:57 pm    Post subject: Re: You can't access this file directly... Reply with quote

hmm...that's interesting....i know of many people who place the gallery as their home module with out issue..URL?
Back to top
Offline View user's profile Send private message Visit poster's website
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Thu Aug 14, 2003 2:59 am    Post subject: Reply with quote

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?)
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Thu Aug 14, 2003 7:23 am    Post subject: Re: You can't access this file directly... Reply with quote

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.
Back to top
Offline View user's profile Send private message Visit poster's website
jaco

Beginner
Beginner


Joined: Aug 17, 2003
Posts: 2

PostPosted: Mon Aug 18, 2003 3:04 pm    Post subject: Re: You can't access this file directly... Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Mon Aug 18, 2003 3:50 pm    Post subject: Reply with quote

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
Back to top
Offline View user's profile Send private message Visit poster's website
jaco

Beginner
Beginner


Joined: Aug 17, 2003
Posts: 2

PostPosted: Tue Aug 19, 2003 6:05 pm    Post subject: Reply with quote

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
Back to top
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Wed Aug 20, 2003 2:00 am    Post subject: Reply with quote

Try this instead:

Code: ›
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) { 
die ("You can't access this file directly..."); 
}
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Kit

Moderator
Moderator


Joined: Aug 31, 2003
Posts: 163

PostPosted: Sun Aug 31, 2003 12:00 am    Post subject: Reply with quote

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
Offline View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
brettlee

Novice
Novice


Joined: Jul 15, 2010
Posts: 23

PostPosted: Thu Jul 15, 2010 2:23 am    Post subject: Re: You can't access this file directly... Reply with quote

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
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 1 Integration View previous topicPrinter friendly versionView next topic

 
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
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filter

8th year online! 2003-2011
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia