Added qgit package installation to developer appliance and cvs demo scripts.
[openemr.git] / index.php
bloba3454d3699371d475007e9fa665c9c24b5e3b3b8
1 <?php
2 // This program is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU General Public License
4 // as published by the Free Software Foundation; either version 2
5 // of the License, or (at your option) any later version.
7 // Set the site ID if required. This must be done before any database
8 // access is attempted.
10 if (!empty($_GET['site']))
11 $site_id = $_GET['site'];
12 else if (is_dir("sites/" . $_SERVER['HTTP_HOST']))
13 $site_id = $_SERVER['HTTP_HOST'];
14 else
15 $site_id = 'default';
17 require_once("sites/$site_id/sqlconf.php");
19 <html>
20 <?php if ($config == 1) { ?>
21 <body ONLOAD="javascript:top.location.href='<?php echo "interface/login/login_frame.php?site=$site_id" ?>';">
22 <?php } else { ?>
23 <body ONLOAD="javascript:top.location.href='<?php echo "setup.php?site=$site_id" ?>';">
24 <?php } ?>
25 Redirecting...
26 </body>
27 </html>