additional_plugins/setup/s9y_conf/s9y_conf_2.0.0/licence.php
2011-12-13 12:29:05 +01:00

94 lines
2.7 KiB
PHP

<?php
/*
licence.php
S9Y_Conf GPL Licence Information
Copyright (C) 2006 Chris Lander
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Contact:
Chris Lander Email: clander@labbs.com
LABBS Web Services
54 Stanley Street
Luton
Bedfordshire
United Kingdom
LU1 5AN
*/
// Read in the config file and check if the program is installed
if (file_exists('config.php')) {
// Include configuration
include_once 'config.php';
}else{
// If no headers are sent, send one
if (!headers_sent()) {
header("Location: http://" . $_SERVER['HTTP_HOST']
. dirname($_SERVER['PHP_SELF'])
. "/install");
}else{
echo '<div class="error">ERROR!</div>';
echo '<p>The main configuration file does NOT exist!</p>';
echo '<p>Click ';
html_link('./install/index.php', $text = 'here', $status = 'Install S9Y_Conf', $target = '');
echo 'to installS9Y_Conf.</p>';
}
exit;
}
// Installed
if(!defined('S9YCONF_INSTALLED')) {
// If no headers are sent, send one
if (!headers_sent()) {
header("Location: http://" . $_SERVER['HTTP_HOST']
. dirname($_SERVER['PHP_SELF'])
. "/install");
}else{
echo '<div class="error">ERROR!</div>';
echo '<p>The main configuration file does NOT exist!</p>';
echo '<p>Click ';
html_link('./install/index.php', $text = 'here', $status = 'Install S9Y_Conf', $target = '');
echo 'to installS9Y_Conf.</p>';
}
exit;
}
debug_msg ("FILE: ".__FILE__,3);
db_connect();
html_header("S9Y_Conf Licence Information");
?>
<div class="textpage">
<h2>Welcome to <?php echo S9YCONF_PROGRAM_NAME; ?></h2>
<p>This program is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.</p>
<p>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</p>
<p>See the GNU General Public License for more details.</p>
<?php
//include ('inc/gpl.inc.php');
display_gpl_licence();
?>
</div>
<?php
html_footer();
?>