Posted: Wed Mar 01, 2006 7:11 pm Post subject: Re: 0.5.4 block-G2_ImageBlock
Dari, saw your last post, and thought to myself... "self, thats an excellent idea!"
Dug through some php docs and there's no $_SERVER var (that I could find) that returns the document path, without the document, and you can't use __FILE__ because you can't gaurantee everyone's webroot will be public_html, or how many subdirectories deep the admin.php file is.
This second chunk of code seems the most simple. I tested that also, seems to work just fine. Being based on $nukeurl, I'm assuming this has to be configured properly or other things beyond gallery wouldn't be working. Right?
Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
Posted: Thu Mar 02, 2006 8:01 am Post subject: Re: 0.5.4 block-G2_ImageBlock
yes, admin.php can be renamed to asdfhklh24fdkdhsag.php in new versions of nuke, for security reasons...just use the $admin_file (i think) variable... _________________
Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
Posted: Thu Mar 02, 2006 8:43 am Post subject: Re: 0.5.4 block-G2_ImageBlock
also, turns out that my implementation of the integration doesn't require loginRedirect, so adding $nukeurl to the embed/g2Uri values would be the best route here methinks i'll change that. _________________
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