kostenloser Webspace werbefrei: lima-city


Suche auf lima-city

  • in: Dynamische Signatur

    geschrieben von twinker

    Hab das Problem schon gelöst aber danke
  • in: Dynamische Signatur

    geschrieben von twinker

    Hallo,
    Ich habe ein Problem ich möchte per Radiobutton die Schriftart und die Farbe bei einer Dynamischen Signatur ändern.
    Die Sig.php sieht so aus
    <?php
    error_reporting(0);
    include_once("get.php");
    header("content-type: image/png");
    if($_GET['bg'] == 0) {
    $bg = "";
    } else {
    $bg = (int)$_GET['bg'];
    }
    $image = imagecreatefromPNG("sig".$bg.".png");
    $image1 = imagecreatefromJPEG($rank);
    $color = imagecolorallocate($image,255,255,255);
    if($_GET['bg'] == 0) {
    $color2 = imagecolorallocate($image,140,142,142);
    $color1 = imagecolorallocate($image,250,250,250);
    } else {
    $color1 = imagecolorallocate($image,255,255,255);
    }
    imagettftext ( $image, 11, 0, 275, 136, $color1, './arial.ttf', "Name: " .$user);
    imagettftext ( $image, 11, 0, 62, 136, $color1, './arial.ttf', "EXP: ".$exp);
    imagettftext ( $image, 11, 0, 275, 159, $color1, './arial.ttf', "Clan: ".$clan);
    imagettftext ( $image, 11, 0, 62, 38, $color1, './arial.ttf', "Wins: ".$wins);
    imagettftext ( $image, 11, 0, 62, 84, $color1, './arial.ttf', "Kills: ".$total_kills);
    imagettftext ( $image, 11, 0, 62, 159, $color1, './arial.ttf', "Headshots: ".$headshots);
    imagettftext ( $image, 11, 0, 62, 62, $color1, './arial.ttf', "Loses: ".$loses);
    imagettftext ( $image, 11, 0, 62, 108, $color1, './arial.ttf', "Deaths: ".$death);
    imagettftext ( $image, 11, 0, 0, 0, $color1, './arial.ttf', "TK's: ".$team_kill);
    imagettftext ( $image, 9, 0, 247, 49, $color2, './arial.ttf', "K/D: ".sprintf("%01.3f",$total_kills/$death));
    imagecopyresized ( $image, $image1, 315, 14, 0, 0, 98, 98, 100, 100 ); 
    imagePNG($image);
    destroyimage($image);
    
    ?>

    Und die Index.php so
    <?
    $datei_name = "counter.txt";
    if (!file_exists($datei_name)) {
    $dz = fopen($datei_name, "w");
    fwrite($dz,"0");
    fclose($dz);
    }
    $dz = fopen($datei_name,"r");
    $counter = fread($dz, 10);
    fclose($dz);
    $counter++;
    $dz = fopen($datei_name, "w");
    fwrite($dz, $counter);
    fclose($dz);
    ?>
    
    <script type="text/javascript">
    function popup (url) {
     fenster = window.open(url, "Popupfenster", "width=400,height=300,resizable=no");
     fenster.focus();
     return false;
    }
    </script>
    <style type="text/css">
    body {
    background-image:url(bg.png);
    background-repeat:repeat-x;
    font-family: arial;
    text-align: center;
    }
    input {
    font-family:Calibri Bold;
    color:#000000;
    font-size:12px;
    border: 1px solid #008030;
    background-color:#F4FFF4;
    height:22px;
    width:250px;
    }
    </style>
    <center>
    <body>
    <title>Deine CrossFire Signatur bei Signatur.Twinker.eu</title>
    <h1>CrossFire Signatur</h1>
    
    <form action="" method="post">
    </div>
    <table>
    <tr>
    <td>
    <font color="#000000" >ID Eintragen:</font> <input type="text" name="id" >
    <input type="submit" name="sub" value="Signatur erstellen"><br>
     <label>
    
    </label>
    </td><td></td></tr>
    </table>
    </form>
    <?php
    if(isset($_POST['sub'])) {
    ?>
    <img src="sig.php?id=<?php echo $_POST['id']; ?>&bg=<?php echo $_POST['sig']; ?>"><br><br>
    <br>
    <br><table>
    Dirketlink:<input type="text" value="http://Signatur.Twinker.eu/sig.php?id=<?php echo $_POST['id']; ?>&bg=<?php echo $_POST['sig']; ?>" style="width: 400px;"><br>
    Link für Forum:<input type="text" value="[IMG]http://Signatur.Twinker.eu/sig.php?id=<?php echo $_POST['id']; ?>&bg=<?php echo $_POST['sig']; ?>[/IMG]" style="width: 400px;">
    <?php
    }
    ?><br><br>
    <br>
    <br><a href="http://signatur.twinker.eu/howto?page=login" target="_blank" onclick="return popup(this.href);">ID rausfinden</a>
    <br>
    Copyright 2011 - Twinker and .craY<br>
    Diese Seite wurde jetzt zum <?=$counter;?>. Mal aufgerufen.
    </center>

    Ich wollte mal fragen ob mir wer dabei helfen kann wie man das steuern kann...


    Mfg Twinker
  • in: Probleme mit FTP

    geschrieben von twinker

    Ich hab das selbe Problem

Login zum Webhosting ohne Werbung!