Exemple #1
0
<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()) {
    ?>
There is a newer version of Bitsand available: v<?php 
    echo $git_version;
    ?>
, please update using <span style="font-family:monospace;">git pull origin master --tag <?php 
    echo $git->getLatestTag(false);
    ?>
</span><br/>
include '../inc/inc_head_html.php';
?>
<script src="../inc/sorttable.js" type="text/javascript"></script>

<h1><?php 
echo TITLE;
?>
 - Update Core</h1>

<?php 
include '../inc/version.php';
include '../inc/git.php';
$git = new GithubRepository('PeteAUK/bitsand');
$git_version = $git->getLatestTag();
$success = false;
if (BitsandVersion::under($git_version)) {
    if ($git->gitControlled()) {
        ?>
<p>Your installation of Bitsand is version controlled using Git.  Please execute the following command to update to the latest version:</p>
<code>git pull origin master --tag v<?php 
        echo $git->getLatestTag(false);
        ?>
</code>
<?php 
    } else {
        if ($git->update($git_version)) {
            ?>
<p class="success">Success: Bitsand has been successfully updated</p>
<?php 
        } else {
            ?>
Exemple #3
0
 | 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);
Exemple #4
0
    }
    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 &amp; 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;
?>