mirror of
https://github.com/php/web-doc.git
synced 2025-08-10 02:56:24 +00:00
fix errors spotted by Vincent, and add site specific setting file
This commit is contained in:
@ -22,8 +22,8 @@ $Id$
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
define('PATH_ROOT', '/home/user/doc');
|
||||
define('WEB_ROOT', 'doc.keliglia.com');
|
||||
include_once 'lib_site_conf.inc.php';
|
||||
|
||||
define('SQLITE_DIR', PATH_ROOT . '/sqlite/');
|
||||
define('CVS_DIR', PATH_ROOT . '/cvs/');
|
||||
|
||||
@ -197,7 +197,7 @@ function site_footer()
|
||||
</div>
|
||||
<div id="footer">
|
||||
<p>
|
||||
<a href="{$master}copyright">Copyright</a> 2004 The PHP Documentation Teams - All rights reserved.
|
||||
<a href="{$master}copyright.php">Copyright</a> 2004 The PHP Documentation Teams - All rights reserved.
|
||||
<p>
|
||||
<p>
|
||||
<a href="{$master}credits.php">Credits</a> | <a href="{$master}contact.php">Contact</a>
|
||||
|
7
include/lib_site_conf.inc.php
Normal file
7
include/lib_site_conf.inc.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
// Set your local site settings here (and do not commit this file!)
|
||||
|
||||
define('WEB_ROOT', 'doc.keliglia.com');
|
||||
define('PATH_ROOT', '/home/user/doc');
|
||||
|
1
www/.htaccess
Normal file
1
www/.htaccess
Normal file
@ -0,0 +1 @@
|
||||
ErrorDocument 404 /error.php
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
include '../../include/lib_general.inc.php';
|
||||
include '../../include/lib_revcheck.inc.php';
|
||||
include '../include/lib_general.inc.php';
|
||||
include '../include/lib_revcheck.inc.php';
|
||||
|
||||
|
||||
if( !isset($_SERVER["REDIRECT_STATUS"]) || $_SERVER["REDIRECT_STATUS"] == 200 ) {
|
||||
|
Reference in New Issue
Block a user