| Foundation, either version 3 of the License, or (at your option) any later | version. | | Bitsand 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 | Bitsand. If not, see <http://www.gnu.org/licenses/>. +---------------------------------------------------------------------------*/ include '../inc/version.php'; // Retrieve the MySQL version if (function_exists('mysql_get_server_info')) { $sql_version = mysql_get_server_info(); } elseif (function_exists('mysqli_get_server_info')) { $sql_version = mysqli_get_server_info(); } else { $sql_version = '0'; } $data = array('bitsand' => BitsandVersion::get(), 'php' => PHP_VERSION, 'mysql' => $sql_version); /* * We need to obfuscicate this data so that if the file is "chanced" upon then * we aren't giving out easily readable versions and with them any * vulnerabilities that exist. We use json_encode rather than serialize * because serialize can be replaced and as such may prevent cross-server * sharing of this data. We then base64 encode it into a plain illegible * string. */ $data = json_encode($data); echo base64_encode($data);
</p> <h3>Site Admin etc</h3> <p> <a href = "admin_faq.php">Add/edit/delete FAQ items</a><br> <a href = 'admin_ancestors.php'>Add/edit/delete ancestors</a><br> <a href = 'admin_groups.php'>Add/edit/delete groups</a><br> <a href = 'admin_locations.php'>Add/edit/delete locations</a><br> </p> <p> <?php include '../inc/version.php'; include '../inc/git.php'; $current_version = BitsandVersion::get(); $git = new GithubRepository('PeteAUK/bitsand'); $git_version = $git->getLatestTag(); if (!$git->connected()) { ?> Unable to connect with Git Repository, please ensure the server has CURL available.<br/> <?php } elseif (!BitsandVersion::under($git_version)) { ?> You are running on the latest version of Bitsand (v<?php echo $current_version; ?> )<br/> <?php } elseif ($git->gitControlled()) { ?>
} echo "<hr>\n<p>"; echo "Logged in with Player ID " . PID_PREFIX . sprintf('%03s', $PLAYER_ID) . "<br>\n"; echo "<ul>\n"; echo "<li><a href = '{$CSS_PREFIX}terms.php'>Terms & conditions</a></li>\n"; echo "<li>Problem? See the <a href = '{$CSS_PREFIX}faq.php'>FAQ</a>. Or e-mail <a href = 'mailto:" . Obfuscate(EVENT_CONTACT_MAIL) . "'>" . EVENT_CONTACT_NAME . "</a> with event queries, or <a href = 'mailto:" . Obfuscate(TECH_CONTACT_MAIL) . "'>" . TECH_CONTACT_NAME . "</a> with web site problems.</li>\n"; echo "</ul>\n"; } /* * Use include_once to include the version file so that we have access to the * BitsandVersion object. This is until we implement v9 with an MVC framework * with autoloader. */ if (file_exists(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'version.php')) { include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'version.php'; $version = ' v' . BitsandVersion::get(); } else { $version = ''; } ?> <hr> <p class = 'smallprint'> This online booking system runs on Bitsand, a web-based booking system for LRP events. Bitsand is copyright (c) <a href = "http://github.com/PeteAUK/Bitsand">The Bitsand Project<?php echo $version; ?> </a>.<br> Found a bug? <a href = "https://github.com/PeteAUK/bitsand/issues">Report it</a>.<br> Bitsand is free software; you can redistribute it and/or modify it under the terms of the <a href = "<?php echo $CSS_PREFIX; ?>