All pastes #247645 Raw Edit

Anonymous

public text v1 · immutable
#247645 ·published 2006-11-13 19:04 UTC
rendered paste body
function sendvars () {
    var lv_antwort:LoadVars = new LoadVars();
    lv_antwort.onLoad = function(success:Boolean) {
        if (success)
        {
            if (lv_antwort.answer)
            {
                tf_status.text = "Bild erfolgreich erstellt.";
                tf_status.setTextFormat(tf_textformat);
                getURL("pages.php?page=guests", "_self");
            }
            else
            {
                tf_status.text = "Fehler: Bild konnte nicht erstellt werden.";
                tf_status.setTextFormat(tf_textformat);
            }
        }
        else
        {
            tf_status.text = "Fehler: Keine Verbindung zum Server";
            tf_status.setTextFormat(tf_textformat);
        }
    };
    
    var lv_bilddaten:LoadVars = new LoadVars();
    lv_bilddaten.data = s_bmpdata;
    lv_bilddaten.x = n_pixelzahl_x;
    lv_bilddaten.y = n_pixelzahl_y;
    lv_bilddaten.name = tf_name.text;
    if (host != undefined)
    {
        if (host == "localhost")
        {
            lv_bilddaten.sendAndLoad("http://127.0.0.1/kunden/me/savegb.php", lv_antwort, "POST");
            //lv_bilddaten.sendAndLoad("http://192.168.6.24/kunden/me/savegb.php", lv_antwort, "POST");
            //lv_bilddaten.sendAndLoad("http://localhost/kunden/me/savegb.php", lv_antwort, "POST");
        }
        else
        {
            lv_bilddaten.sendAndLoad("http://www.luftis-world.de/kunden/me/savegb.php", lv_antwort, "POST");
        }
    }
    else
    {
        lv_bilddaten.sendAndLoad("http://www.luftis-world.de/kunden/me/savegb.php", lv_antwort, "POST");
    }
}