* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/');
-define ('DEBUG', true);
require (JIRAFEAU_ROOT . 'lib/config.php');
require (JIRAFEAU_ROOT . 'lib/settings.php');
require (JIRAFEAU_ROOT . 'lib/functions.php');
require (JIRAFEAU_ROOT . 'lib/lang.php');
+if (file_exists (JIRAFEAU_ROOT . 'install.php')
+ && !file_exists (JIRAFEAU_ROOT . 'lib/config.local.php'))
+{
+ header('Location: install.php');
+ exit;
+}
+
/* check if the destination dirs are writable */
$writable = is_writable (VAR_FILES) && is_writable (VAR_LINKS);
$res = array ();
if ($writable && isset ($_POST['jirafeau']))
{
-
$key = $_POST['key'];
$time = time ();
$key, $time, $cfg, $_SERVER['REMOTE_ADDR']);
}
-if (file_exists (JIRAFEAU_ROOT . 'install.php')
- && !file_exists (JIRAFEAU_ROOT . 'lib/config.local.php'))
-{
- header('Location: install.php');
- exit;
-}
-
require (JIRAFEAU_ROOT . 'lib/template/header.php');
/* Checking for errors. */