Previous Thread
Next Thread
Print Thread
Hop To
Location of config.inc outside of web
#219113 11/12/2008 9:43 AM
Joined: Jun 2006
Posts: 58
journeyman
OP Offline
journeyman
Joined: Jun 2006
Posts: 58
In the past I have kept the config outside of the web directory to enhance security and changed the location of it in the main.php in previous versions. I assume I can still keep the config script out of the web direectory and change line 64 in ubbthreads.php from

Code
 require_once("includes/config.inc.php"); 

to the full path

Code
 require_once("full/path/to/my/config.inc.php");


Will this break anything and is there anywhere else I would need to change the path?

Re: Location of config.inc outside of web
Fishtails #219115 11/12/2008 10:06 AM
Joined: Feb 2007
Posts: 1,285
Likes: 1
Veteran
Offline
Veteran
Joined: Feb 2007
Posts: 1,285
Likes: 1
If you would actually go to that page you would get a blank page.

http://www.yourdomain.ext/folder/includes/config.inc.php


Re: Location of config.inc outside of web
JAISP #219123 11/12/2008 11:27 AM
Joined: Jun 2006
Posts: 58
journeyman
OP Offline
journeyman
Joined: Jun 2006
Posts: 58
True, however it is more secure outside of the web directory. The suggestion came from Infopop a very long time ago during the 6.x series in one of their news letters.

Re: Location of config.inc outside of web
Fishtails #219126 11/12/2008 12:32 PM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
i wouldn't worry about changing it.. smile

Re: Location of config.inc outside of web
JAISP #219131 11/12/2008 1:14 PM
Joined: Jun 2006
Posts: 58
journeyman
OP Offline
journeyman
Joined: Jun 2006
Posts: 58
I visited your sites. Can you tell me how you cloak the URL in the address bar and does that change anything for search engines? Thanks.

Re: Location of config.inc outside of web
Fishtails #219133 11/12/2008 1:19 PM
Joined: Feb 2007
Posts: 1,285
Likes: 1
Veteran
Offline
Veteran
Joined: Feb 2007
Posts: 1,285
Likes: 1
What site is that? My sites?

Code
<script>
function hidestatus(){
 window.status=''
 return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
</script>

Re: Location of config.inc outside of web
JAISP #219134 11/12/2008 1:29 PM
Joined: Jun 2006
Posts: 58
journeyman
OP Offline
journeyman
Joined: Jun 2006
Posts: 58
The ones in your sig. Thanks for sharing the code. Are the forums in a subdirectory or in the root. I was going to install one in thee root web but if I can still put it in a subdirectory and cloak it as such would be great.

Thanks again.

Re: Location of config.inc outside of web
Fishtails #219145 11/12/2008 5:21 PM
Joined: Feb 2007
Posts: 1,285
Likes: 1
Veteran
Offline
Veteran
Joined: Feb 2007
Posts: 1,285
Likes: 1
Code
[url=http://www.ourbeagleworld.com][b]Beagle World[/b][/url] - A forum for those who are owned by beagles.


Link Copied to Clipboard
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Non-Admin users can't see attached pictures
by jjjjj - 07/11/2020 8:09 PM
[NOTABUG] Report Post bug..
by Morgan - 07/05/2020 1:48 PM
Trial Subscription question.
by Ruben - 07/03/2020 2:34 PM
Unread posts no longer tracked per user...
by KirkW - 06/16/2020 12:21 AM
Max Image file size upload
by jjjjj - 06/10/2020 10:25 PM
Who's Online Now
0 members (), 89 guests, and 39 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4