[go: up one dir, main page]

File: index.php

package info (click to toggle)
sork-accounts 2.1.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 532 kB
  • ctags: 79
  • sloc: sh: 553; php: 360; makefile: 114; perl: 30; xml: 16
file content (28 lines) | stat: -rw-r--r-- 868 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/*
 * $Horde: accounts/index.php,v 1.1.1.1.2.7 2005/01/03 11:25:41 jan Exp $
 *
 * Copyright 2001-2005 Eric Rostetter <eric.rostetter@physics.utexas.edu>
 *
 * See the enclosed file LICENSE for license information (BSD). If you
 * did not receive this file, see http://www.horde.org/bsdl.php.
 */

define('ACCOUNTS_BASE', dirname(__FILE__));
$accounts_configured = (@is_readable(ACCOUNTS_BASE . '/config/conf.php'));

if ($accounts_configured) {
    include_once ACCOUNTS_BASE . '/lib/base.php';
    $uri = 'main.php';
    if (!empty($_SERVER['QUERY_STRING'])) {
       $uri .= '?' . $_SERVER['QUERY_STRING'];
    }
    header('Location: ' . Horde::applicationUrl($uri, true));
    exit;
} else {
    /* Accounts isn't configured */
    $title = 'Accounts module is not fully configured.';
    include ACCOUNTS_BASE . '/templates/index/notconfigured.inc';
}

?>