Location: PHPKode > scripts > Minecraft Admin > minecraft-admin/includes/templates/mc-core/interne_einstellungen.php
<?php
/***
*
*
* NOTE because we need the variable "$MC_core" in this template we put the code in a function so we can include it in our class
*
*
*/
function template_interne_einstellungen($MC_core,$mc_updated=false){
						$MC_core->server = (isset($MC_core->server) ? $MC_core->server : "bukkit");
						$sel["orginal"]    = ($MC_core->server == "orginal") ? "selected" : "";
						$sel["bukkit"]     = ($MC_core->server == "bukkit") ? "selected" : "";
?>
<div class="wrap"><h2><?php _e('Settings', 'minecraft-admin'); ?></h2>
    <?php if ( $mc_updated===true ){ ?>
    <?php echo "<div id='message' class='updated fade'><p>" . __('Settings Updated.', 'minecraft-admin' ) . "</p></div>" ?>
    <?php }; ?>
    <form method="post" action="<?php echo site_url(); ?>/wp-admin/admin.php?page=minecraft-admin?mc=settings">

						<table class="form-table"><tr valign="top"><th scope="row">
<?php _e( 'Path', 'minecraft-admin'); ?>
</th>
<td>
    <input type="text" name="mc_settings_options[pfad]" value="<?php echo $MC_core->pfad; ?>" size="<?php echo strlen($MC_core->pfad); ?>px" disabled="disabled" />
</td>
<td><?php echo  mc_core_info("Pfad"); ?></td>
</tr>
<tr valign="top">
    <th scope="row">
        <?php _e( 'Logs', 'minecraft-admin'); ?>
    </th>
    <td>
        <input type="text" name="mc_settings_options[log]" value="<?php echo $MC_core->log; ?>"
        />
    </td>
    <td><?php echo  mc_core_info("log"); ?></td>
</tr>
<tr valign="top">
    <th scope="row">
        <?php _e( 'Worlds', 'minecraft-admin'); ?>
    </th>
    <td>
        <input type="text" name="mc_settings_options[worlds]" value="<?php echo $MC_core->worlds; ?>"
        />
    </td>
    <td><?php echo  mc_core_info("worlds"); ?></td>
</tr>
<tr valign="top">
    <th scope="row">
        <?php _e( 'CPU\'s', 'minecraft-admin'); ?>
    </th>
    <td>
	<input type="text" name="mc_settings_options[cpu]" value="<?php echo $MC_core->cpu; ?>" />
    </td>
    <td>
	<?php echo  mc_core_info("CPU"); ?>
    </td>
</tr>
<tr valign="top">
    <th scope="row">
        <?php _e( 'RAM', 'minecraft-admin'); ?>
    </th>
    <td>
        <input type="text" name="mc_settings_options[ram]" value="<?php echo $MC_core->ram; ?>"
        />
    </td>
    <td><?php echo  mc_core_info("RAM"); ?></td>
</tr>
<tr valign="top">
    <th scope="row">
        <?php _e( 'Backup path', 'minecraft-admin'); ?>
    </th>
    <td>
        <input type="text" name="mc_settings_options[backup]" value="<?php echo $MC_core->pfad; ?>backup/"  size="<?php echo strlen($MC_core->pfad."backup/"); ?>px" disabled="disabled"  />
    </td>
    <td><?php echo  mc_core_info("backup"); ?></td>
</tr>
<tr valign="top">
    <th scope="row">
        <?php _e( 'Minecraft server', 'minecraft-admin'); ?>
    </th>
    <td>
        <select name="mc_settings_options[server]" size="1">
            <option value="orginal" <?php echo $sel["orginal"]; ?>>Orginal</option>
            <option value="bukkit" <?php echo $sel["bukkit"]; ?>>Bukkit</option>
        </select>
    </td>
    <td><?php echo  mc_core_info("server"); ?></td>
</tr>
<tr valign="top">
    <th scope="row">
        <?php _e( 'Name', 'minecraft-admin'); ?>
    </th>
    <td>
        <input type="text" name="mc_settings_options[name]" value="<?php echo $MC_core->name; ?>"  />
    </td>
    <td><?php echo  mc_core_info("name"); ?></td>
</tr>
<tr valign="top">
    <th scope="row">
        <?php _e( 'Users', 'minecraft-admin'); ?>
    </th>
    <td>
        <input type="text" name="mc_settings_options[users]" value="<?php echo $MC_core->users; ?>" />
    </td>
    <td><?php echo  mc_core_info("users"); ?></td>
</tr>
</table>
<p class="submit">
    <input type="submit" name="submit" class="button-primary" value="<?php _e('save changes', 'minecraft-admin'); ?>" />
</p>
<input type="hidden" name="settings" value="hidden" />
<?php wp_nonce_field( 'mc-core-einstellungen' ); ?>
</form>
</div>
<?php } ?>
Return current item: Minecraft Admin