@ -281,11 +307,13 @@ function handleThirdPhaseForTester($type, $name, $char_lvl){
</tr>
</table>
</form>
<?php}else
<?php
}
} else
echo 'Ungültiger Levelbereich!';
}
}
function handleFirstPhase(){
function handleFirstPhase(){
?>
<formaction="index.php"method="get"name="charz"
onsubmit="return isAPhoneNumber()">
@ -317,19 +345,19 @@ function handleFirstPhase(){
</table>
</form>
<?php
}
}
$user_daten= mysql_fetch_assoc(mysql_query("SELECT char_max, id FROM user WHERE nickname='".$_COOKIE['name']."' LIMIT 1"));
$anzahl_spezialchars = mysql_num_rows(mysql_query('SELECT char_type,name from chars WHERE (rasse = "Kaioshin" OR fusion_rasse = "Kaioshin" OR rasse = "Shichibukai" OR fusion_rasse = "Shichibukai") AND besitzer='.$user_daten['id']));
$anzahl_charactere= mysql_num_rows(mysql_query("SELECT id FROM chars WHERE besitzer='".$user_daten['id']."'"));
$user_daten= mysql_fetch_assoc(mysql_query("SELECT char_max, id FROM user WHERE nickname='".$_COOKIE['name']."' LIMIT 1"));
$anzahl_spezialchars = mysql_num_rows(mysql_query('SELECT char_type,name from chars WHERE (rasse = "Kaioshin" OR fusion_rasse = "Kaioshin" OR rasse = "Shichibukai" OR fusion_rasse = "Shichibukai") AND besitzer='.$user_daten['id']));
$anzahl_charactere= mysql_num_rows(mysql_query("SELECT id FROM chars WHERE besitzer='".$user_daten['id']."'"));
if ($anzahl_spezialchars >= 1 AND $user_daten['char_max'] == 7) {
if ($anzahl_spezialchars >= 1 AND $user_daten['char_max'] == 7) {
$chars_max= 8;
} else {
} else {
$chars_max= $user_daten['char_max'];
}
}
if ($anzahl_charactere < $chars_max) {
if ($anzahl_charactere < $chars_max) {
if($charm === NULL){
handleFirstPhase($user_daten,$anzahl_charactere);
} else if($charm == 1){
@ -341,14 +369,14 @@ if ($anzahl_charactere < $chars_max) {
echo 'Du hast bereits die maximal mögliche Menge an Characteren erstellt, die du erstellen kannst.<br/>Nämlich '.$anzahl_charactere.' von '.$chars_max.' Charaktere.';