Previous Thread
Next Thread
Print Thread
Hop To
Location of config.inc outside of web #219113 11/12/2008 8:43 AM
Joined: Jun 2006
Posts: 58
Fishtails Offline OP
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 [Re: Fishtails] #219115 11/12/2008 9:06 AM
Joined: Feb 2007
Posts: 1,276
JAISP Online Tapedshut
Veteran
Online Tapedshut
Veteran
Joined: Feb 2007
Posts: 1,276
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 [Re: JAISP] #219123 11/12/2008 10:27 AM
Joined: Jun 2006
Posts: 58
Fishtails Offline OP
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 [Re: Fishtails] #219126 11/12/2008 11:32 AM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
i wouldn't worry about changing it.. smile

Re: Location of config.inc outside of web [Re: JAISP] #219131 11/12/2008 12:14 PM
Joined: Jun 2006
Posts: 58
Fishtails Offline OP
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 [Re: Fishtails] #219133 11/12/2008 12:19 PM
Joined: Feb 2007
Posts: 1,276
JAISP Online Tapedshut
Veteran
Online Tapedshut
Veteran
Joined: Feb 2007
Posts: 1,276
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 [Re: JAISP] #219134 11/12/2008 12:29 PM
Joined: Jun 2006
Posts: 58
Fishtails Offline OP
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 [Re: Fishtails] #219145 11/12/2008 4:21 PM
Joined: Feb 2007
Posts: 1,276
JAISP Online Tapedshut
Veteran
Online Tapedshut
Veteran
Joined: Feb 2007
Posts: 1,276
Code
[url=http://www.ourbeagleworld.com][b]Beagle World[/b][/url] - A forum for those who are owned by beagles.


Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Mobile app?
by Baldeagle - 12/06/2019 9:32 PM
How do you change Text Line spacing?
by jorb - 11/23/2019 12:14 AM
What happened to FAQ or Forum Help
by Ruben - 11/20/2019 11:58 AM
Search feature encountering an Error message
by jorb - 11/20/2019 12:06 AM
Followed List v7.7.2 Question
by Ruben - 11/12/2019 12:22 PM
Who's Online Now
1 registered members (JAISP), 71 guests, and 400 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
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
(Snapshot build 20191023)