Example #1
0
<?php

require_once 'modules/commander/functions.php';
if ($_GET['GetZoneMap']) {
    echo Draw2DMap($_GET['GetZoneMap']);
}
if ($_GET['sidebar_menu']) {
    if ($_GET['sidebar_menu'] == "entity_search") {
        echo '
                <ul class="list-items borderless">
                    <h3 style="padding-left:10px; color:white">
                        <i class="fa fa-angle-double-right" style="font-size:20px"></i> Entity List

                    </h3><hr>
                    <li>
                        <input type="text" class="form-control" placeholder="Search entity list..." onkeypress="SearchEntity(this.value)"><hr>

                    </li>
                    <div id="entity_list"></div>
                </ul>
            ';
        echo '<script type="text/javascript">
                SearchEntity("");
            </script>';
    }
    if ($_GET['sidebar_menu'] == "entity") {
        require_once 'includes/constants.php';
        $race_sel = '<select onchange="SetEntAttribute(' . $_GET['ent_id'] . ', \'race\', this.value)" class="form-control input-inline input-sm input-small">';
        foreach ($races as $key => $value) {
            if ($_POST['race'] == $key) {
                $race_sel .= '<option selected value="' . $key . '">' . $key . ': ' . $value . ' </option>';
Example #2
0
<?php

echo '<link rel="stylesheet" type="text/css" href="modules/commander/commander.css">';
require_once 'modules/commander/functions.php';
if (isset($_GET['zone'])) {
    echo Draw2DMap($_GET['zone'], 1);
} else {
    if (isset($_GET['ace_test'])) {
        echo '<!DOCTYPE html>
			<html lang="en">
			<head>
				<title>ACE in Action</title>
				<style type="text/css" media="screen">
					#editor {
						position: absolute;
						top: 0;
						right: 0;
						bottom: 0;
						left: 0;
					}
				</style>
			</head>
			<body>

			<div id="editor">function foo(items) {
				var x = "All this is syntax highlighted";
				return x;
				}
			</div>';
        if (isset($_GET['lua'])) {
            echo '