<form action="add_money.php" method="post">
<input type="hidden" name="mode" value="addit">
<table width="305">
<tbody>
<th width="130">ID</th>
<th width="155"><input name="id" type="text" value="1" size="3" /></th>
</tr><tr>
<th>Metal</th>
<th><input name="metal" type="text" value="1000" /></th>
</tr><tr>
<th>Krysztal</td>
<th><input name="cristal" type="text" value="1000" /></th>
</tr><tr>
<th>deuter</td>
<th><input name="deut" type="text" value="1000" /></th>
</tr><tr>
<th colspan="2"><input type="Submit" value="Dodaj" /></th>
</tbody>
</tr>
</table>
</form>
<?php
/**
* add_money.php
*
* @version 1.1
* @copyright 2008 By Chlorel for XNova
* portion to e-Zobar<form action="add_money.php" method="post">
<input type="hidden" name="mode" value="addit">
<table width="305">
<tbody>
<th width="130">ID</th>
<th width="155"><input name="id" type="text" value="1" size="3" /></th>
</tr><tr>
<th>Metal</th>
<th><input name="metal" type="text" value="1000" /></th>
</tr><tr>
<th>Krysztal</td>
<th><input name="cristal" type="text" value="1000" /></th>
</tr><tr>
<th>deuter</td>
<th><input name="deut" type="text" value="1000" /></th>
</tr><tr>
<th colspan="2"><input type="Submit" value="Dodaj" /></th>
</tbody>
</tr>
</table>
</form>
<?php
/**
* add_money.php
*
* @version 1.1
* @copyright 2008 By Chlorel for XNova
* portion to e-Zobar
*/
$xnova_root_path = './../';
include($xnova_root_path . 'extension.inc');
include($xnova_root_path . 'common.' . $phpEx);
if ($user['authlevel'] >= 0) {
includeLang('admin');
$mode = $_POST['mode'];
$PageTpl = gettemplate("admin/ad_mone");
$parse = $lang;
if ($mode == 'addit') {
$id = $_POST['id'];
$metal = $_POST['metal'];
$cristal = $_POST['cristal'];
$deut = $_POST['deut'];
$QryUpdatePlanet = "UPDATE {{table}} SET ";
$QryUpdatePlanet .= "`metal` = `metal` + '". $metal ."', ";
$QryUpdatePlanet .= "`crystal` = `crystal` + '". $cristal ."', ";
$QryUpdatePlanet .= "`deuterium` = `deuterium` + '". $deut ."' ";
$QryUpdatePlanet .= "WHERE ";
$QryUpdatePlanet .= "`id` = '". $id ."' ";
doquery( $QryUpdatePlanet, "planets");
AdminMessage ( $lang['adm_am_done'], $lang['adm_am_ttle'] );
}
$Page = parsetemplate($PageTpl, $parse);
display ($Page, $lang['adm_am_ttle'], false, '', true);
} else {
AdminMessage ( $lang['sys_noalloaw'], $lang['sys_noaccess'] );
}
?>
*/
define('INSIDE' , true);
define('INSTALL' , false);
define('IN_ADMIN', true);
$xnova_root_path = './../';
include($xnova_root_path . 'extension.inc');
include($xnova_root_path . 'common.' . $phpEx);
if ($user['authlevel'] >= 0) {
includeLang('admin');
$mode = $_POST['mode'];
$PageTpl = gettemplate("admin/ad_mone");
$parse = $lang;
if ($mode == 'addit') {
$id = $_POST['id'];
$metal = $_POST['metal'];
$cristal = $_POST['cristal'];
$deut = $_POST['deut'];
$QryUpdatePlanet = "UPDATE {{table}} SET ";
$QryUpdatePlanet .= "`metal` = `metal` + '". $metal ."', ";
$QryUpdatePlanet .= "`crystal` = `crystal` + '". $cristal ."', ";
$QryUpdatePlanet .= "`deuterium` = `deuterium` + '". $deut ."' ";
$QryUpdatePlanet .= "WHERE ";
$QryUpdatePlanet .= "`id` = '". $id ."' ";
doquery( $QryUpdatePlanet, "planets");
AdminMessage ( $lang['adm_am_done'], $lang['adm_am_ttle'] );
}
$Page = parsetemplate($PageTpl, $parse);
display ($Page, $lang['adm_am_ttle'], false, '', true);
} else {
AdminMessage ( $lang['sys_noalloaw'], $lang['sys_noaccess'] );
}
?>