Quellcode durchsuchen

Fix bug Hash Phone View

master
heuzef vor 9 Jahren
Ursprung
Commit
56ccfe40a1
3 geänderte Dateien mit 11 neuen und 35 gelöschten Zeilen
  1. +2
    -2
      medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml
  2. +7
    -31
      medias/c0f08ae603e364cb554fe71c9fc94ffd/index.php
  3. +2
    -2
      play/action_phone.php

+ 2
- 2
medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml Datei anzeigen

@@ -3,13 +3,13 @@
<entry>
<nom>derpy</nom>
<level>2</level>
<hp>22</hp>
<hp>23</hp>
<xp>50</xp>
<money>5</money>
<attack>0</attack>
<defense>0</defense>
<ecos>
<verte>0</verte>
<verte>1</verte>
<bleue>0</bleue>
<jaune>0</jaune>
<rouge>0</rouge>


+ 7
- 31
medias/c0f08ae603e364cb554fe71c9fc94ffd/index.php Datei anzeigen

@@ -1,39 +1,15 @@
<?php
function button_modif_level($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>';
}
function button_modif_hp($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-sm" style="float:left">'.$texte_bouton.'</button></form>';
}
function button_modif_xp($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>';
}
function button_modif_money($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>';
}
function trans($nom_parametre, $nom_perso, $couleur)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs"><i class="ionicons ion-fireball" style="color:'.$couleur.'";></i></button></form>';
}
function button_modif_attack($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>';
}
function button_modif_defense($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>';
$currentpath = explode("/", dirname(__FILE__));
$hash=$currentpath[6];
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'&amp;hash='.$hash.'" method="post"><button type="submit" class="btn btn-default btn-sm" style="float:left">'.$texte_bouton.'</button></form>';
}
function button_modif_ecos($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-sm">'.$texte_bouton.'</button></form>';
}
function button_modif_gift($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>';
$currentpath = explode("/", dirname(__FILE__));
$hash=$currentpath[6];
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'&amp;hash='.$hash.'" method="post"><button type="submit" class="btn btn-default btn-sm">'.$texte_bouton.'</button></form>';
}
?>

@@ -69,7 +45,7 @@ if(!empty($_GET["view"]))
<div class="panel-heading">
<div class="container-fluid">
<span class="level_phone"><?php echo $entry->level; ?></span>&nbsp;&nbsp;&nbsp;
<span class="player_name_phone"><?php echo $entry->nom; ?></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span class="player_name_phone"><?php echo $entry->nom; ?></span>&nbsp;&nbsp;&nbsp;&nbsp;
<strong>Attaque</strong> <span class="skill_phone">+ <?php echo $entry->attack+$entry->level+$entry->stuff->stuff_1->spec; ?></span>&nbsp;&nbsp;&nbsp;
<strong>D&eacute;fense</strong> <span class="skill_phone">+ <?php echo $entry->defense+$entry->level+$entry->stuff->stuff_2->spec; ?></span>
<?php


+ 2
- 2
play/action_phone.php Datei anzeigen

@@ -1,6 +1,6 @@
<?php include "../header.php";
<?php
$nom_modif="";
$hash=$_GET['hash'];
if (isset($_GET['entry'])) {
$nom_modif = $_GET['entry'];


Laden…
Abbrechen
Speichern