コード例 #1
0
ファイル: admin.php プロジェクト: nicholasmr/obblm
function sec_admin()
{
    global $rules, $settings, $DEA, $coach, $lng, $admin_menu;
    global $leagues, $divisions, $tours;
    if (!is_object($coach)) {
        fatal('Please login.');
    }
    if (!isset($_GET['subsec'])) {
        $_GET['subsec'] = '_NONE_';
    }
    $IS_GLOBAL_ADMIN = $coach->ring == Coach::T_RING_GLOBAL_ADMIN;
    $ONLY_FOR_GLOBAL_ADMIN = "Note: This feature may only be used by <i>global</i> administrators.";
    # Used string in a few common feature/action boxes.
    // Deny un-authorized users.
    if (!in_array($_GET['subsec'], array_keys($admin_menu))) {
        fatal("Sorry. Your access level does not allow you opening the requested page.");
    }
    switch ($_GET['subsec']) {
        case 'usr_man':
            include 'admin/admin_usr_man.php';
            break;
        case 'ct_man':
            include 'admin/admin_ct_man.php';
            break;
        case 'nodes':
            include 'admin/admin_nodes.php';
            break;
        case 'schedule':
            include 'admin/admin_schedule.php';
            break;
        case 'import':
            include 'admin/admin_import.php';
            break;
        case 'log':
            Module::run('LogSubSys', array('logViewPage'));
            break;
        case 'cpanel':
            include 'admin/admin_cpanel.php';
            break;
        default:
            fatal('The requested admin page does not exist.');
    }
    echo "<br><br>";
    HTMLOUT::dnt();
}
コード例 #2
0
ファイル: upgrade.php プロジェクト: nicholasmr/obblm
        <td>0.96 to 0.97</td>
        <td><i>None</i></td>
    </tr>
    <tr>
        <td><INPUT TYPE=RADIO NAME="version" VALUE="091-095"></td>
        <td>0.91 to 0.95</td>
        <td><i>None</i></td>
    </tr>
    <tr>
        <td><INPUT TYPE=RADIO NAME="version" VALUE="090-091"></td>
        <td>0.90 to 0.91</td>
        <td><i>None</i></td>
    </tr>
    <tr>
        <td><INPUT TYPE=RADIO NAME="version" VALUE="080-090"></td>
        <td>0.80 to 0.90</td>
        <td><i>None</i></td>
    </tr>
    <tr>
        <td><INPUT TYPE=RADIO NAME="version" VALUE="075-080"></td>
        <td>0.75 to 0.80</td>
        <td>The <u>current</u> 0.75 LRB used is: LRB5<INPUT TYPE=RADIO NAME="lrb" VALUE="5"> LRB5b/LRB6x<INPUT TYPE=RADIO NAME="lrb" VALUE="6x"></td>
    </tr>
</table>
    <br>
    <input type="submit" name='submit' value="Run upgrade SQLs" onclick="if(!confirm('Please backup your current database if you have not done so already.\n\nAre you sure you wish to continue?')){return false;}">
</form>
    <br>
<?php 
HTMLOUT::dnt();
HTMLOUT::frame_end();
コード例 #3
0
ファイル: sections.php プロジェクト: rythos42/naflm
function sec_about()
{
    global $lng, $credits;
    title("About OBBLM");
    HTMLOUT::dnt();
    ?>
    <br>
    <p>
        <b>OBBLM version <?php 
    echo OBBLM_VERSION;
    ?>
</b><br><br>
        Online Blood Bowl League Manager is an online game management system for Game Workshop's board game Blood Bowl.<br>
        <br>
        The authors of this program are
        <ul>
            <li> <a href="mailto:nicholas.rathmann@gmail.com">Nicholas Mossor Rathmann</a>
            <li> <a href="http://www.mercuryvps.com">William Leonard</a>
            <li> Niels Orsleff Justesen</a>
        </ul>
        With special thanks to <?php 
    $lc = array_pop($credits);
    echo implode(', ', $credits) . " and {$lc}";
    ?>
.<br><br>
        Bugs reports and suggestions are welcome.
        <br>
        OBBLM consists of valid HTML 4.01 transitional document type pages.
        <br><br>
        <img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88">
        <br><br>
        <b>Modules loaded:</b><br>
        <?php 
    $mods = array();
    foreach (Module::getRegistered() as $modname) {
        list($author, $date, $moduleName) = Module::getInfo($modname);
        $mods[] = "<i>{$moduleName}</i> ({$author}, {$date})";
    }
    echo implode(', ', $mods);
    ?>
    </p>

    <?php 
    title("OBBLM Hosting");
    echo 'Please visit <a href="http://www.mercuryvps.com">Mercury VPS</a> and click on the OBBLM tab to get started.';
    title("Documentation");
    echo "See the <a TARGET='_blank' href='" . DOC_URL . "'>OBBLM documentation wiki</a>";
    ?>

    <?php 
    title("Disclaimer");
    ?>
    <p>
        By installing and using this software you hereby accept and understand the following disclaimer
        <br><br>
        <b>This web site is completely unofficial and in no way endorsed by Games Workshop Limited.</b>
        <br><br>
        Bloodquest, Blood Bowl, the Blood Bowl logo, The Blood Bowl Spike Device, Chaos, the Chaos device, the Chaos logo, Games Workshop, Games Workshop logo, Nurgle, the Nurgle device, Skaven, Tomb Kings, 
        and all associated marks, names, races, race insignia, characters, vehicles, locations, units, illustrations and images from the Blood Bowl game, the Warhammer world are either ®, TM and/or © Games Workshop Ltd 2000-2006, 
        variably registered in the UK and other countries around the world. Used without permission. No challenge to their status intended. All Rights Reserved to their respective owners.
    </p>

    <?php 
    title("License");
    ?>
    <p>
        Copyright (c) Niels Orsleff Justesen and Nicholas Mossor Rathmann 2007-2011. All Rights Reserved.
        <br><br>
        OBBLM 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 3 of the License, or
        (at your option) any later version.
        <br><br>
        OBBLM 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.
        <br><br>
        You should have received a copy of the GNU General Public License
        along with this program.  If not, see http://www.gnu.org/licenses/.
    </p>
    <?php 
}