diff --git a/ag/gm/gm_seite.php b/ag/gm/gm_seite.php index bcb4602..cf87f6e 100644 --- a/ag/gm/gm_seite.php +++ b/ag/gm/gm_seite.php @@ -223,7 +223,7 @@ if(checkLoginData($_SESSION['user'],$_SESSION['password'])){ } else if($_REQUEST['choose'] == 'logout'){ logout(); } else if($_REQUEST['choose'] == 'attacken'){ - displayAttackeOptions($_REQUEST['action'], $_REQUEST['attackname'], $_REQUEST['attackid'], $_REQUEST['depth'], $_REQUEST['name'], $_REQUEST['starke'], $_REQUEST['verteidigung'], $_REQUEST['speed'], $_REQUEST['hp'], $_REQUEST['mp'], $_REQUEST['rassen'], $_REQUEST['level'], $_REQUEST['geld'], $_REQUEST['type'], $_REQUEST['info'], $_REQUEST['req_atk'], $_REQUEST['req_lvl'], $_REQUEST['Frucht'], $_REQUEST['runden'], $_REQUEST['maxlvl']); + displayAttackenMenu($_REQUEST['action'], $_REQUEST['attackname'], $_REQUEST['attackid'], $_REQUEST['depth'], $_REQUEST['name'], $_REQUEST['starke'], $_REQUEST['verteidigung'], $_REQUEST['speed'], $_REQUEST['hp'], $_REQUEST['mp'], $_REQUEST['rassen'], $_REQUEST['level'], $_REQUEST['geld'], $_REQUEST['type'], $_REQUEST['info'], $_REQUEST['req_atk'], $_REQUEST['req_lvl'], $_REQUEST['Frucht'], $_REQUEST['runden'], $_REQUEST['maxlvl']); } else if($_REQUEST['choose'] == 'bann'){ displayBannOptions($_REQUEST['action'], $_REQUEST['username'],$_REQUEST['opfer'],$_REQUEST['gamebann'],$_REQUEST['shoutbann'],$_REQUEST['forenbann'],$_REQUEST['anonid']); } else if($_REQUEST['choose'] == 'items'){ diff --git a/ag/gm/include/attacken.inc.php b/ag/gm/include/attacken.inc.php index 115bd8a..3bffad1 100644 --- a/ag/gm/include/attacken.inc.php +++ b/ag/gm/include/attacken.inc.php @@ -8,7 +8,7 @@ */ ?> @@ -30,6 +30,29 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ Attacke löschen + + + + + + + + + + + + + + +
Attackenset-Conditions
+ Condition erstellen +
+ Condition editieren +
+ Condition löschen +
+
+
Zum Hauptmenu
@@ -38,8 +61,23 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $
= 1){ + deleteAttack($attackid, $depth); + } else if($action == 'edit' && $depth == 1){ + editAttack($attackname, $attackid, $Frucht, $starke, $verteidigung, $speed, $hp, $mp, $rassen, $level, $geld, $type, $info, $req_atk, $req_lvl, $runden, $maxlvl); + } +} + +function searchfirstAttack($action) { ?> -
+ @@ -61,10 +99,11 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $
-
@@ -96,8 +135,10 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $
- '> + '> @@ -132,7 +173,7 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ Stärke: - + '> @@ -140,7 +181,7 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ Verteidigung: - + '> @@ -148,7 +189,7 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ Speed: - + '> @@ -156,7 +197,7 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ HP: - + '> @@ -164,7 +205,7 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ MP: - + '> @@ -172,7 +213,7 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ Rassen: - + '> @@ -180,7 +221,7 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ Level: - + '> @@ -188,7 +229,7 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ Geld: - + '> @@ -196,7 +237,7 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ Type: - '> + '> @@ -204,7 +245,7 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ Info: - '> + '> @@ -212,7 +253,7 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ Required Attacks: - + '> @@ -220,7 +261,7 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ Required Level: - + '> @@ -257,7 +298,7 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ Runden: - + '> @@ -265,7 +306,7 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ Maxlvl: - '> + '> @@ -281,8 +322,10 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ Attacke sollte nun erstellt sein!!
Zum Hauptmenu
= 1){ - if($depth == 4){ +} + +function deleteAttack($attackid, $depth) { + if($depth == 4){ $sql = 'Delete from attacken where id = '.$attackid; // echo 'Debugnachricht: '.$sql.'
'; mysql_query($sql); @@ -307,8 +352,10 @@ function displayAttackeOptions($action, $attackname, $attackid, $depth, $name, $ ?>Sind sie sich sicher?? ja
Zum Hauptmenu
Zum Attackenmenü, Zum Hauptmenu
Zum Attackenmenü, Zum Hauptmenu
\ No newline at end of file