Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 58
journeyman
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?

Joined: Feb 2007
Posts: 1,294
Likes: 2
Veteran
Veteran
Joined: Feb 2007
Posts: 1,294
Likes: 2
If you would actually go to that page you would get a blank page.

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


Joined: Jun 2006
Posts: 58
journeyman
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.

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
i wouldn't worry about changing it.. smile

Joined: Jun 2006
Posts: 58
journeyman
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.

Joined: Feb 2007
Posts: 1,294
Likes: 2
Veteran
Veteran
Joined: Feb 2007
Posts: 1,294
Likes: 2
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>

Joined: Jun 2006
Posts: 58
journeyman
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.

Joined: Feb 2007
Posts: 1,294
Likes: 2
Veteran
Veteran
Joined: Feb 2007
Posts: 1,294
Likes: 2
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
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Ruben), 476 guests, and 111 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)