Thursday, July 29th 2010, 1:28pm UTC+2

You are not logged in.

  • Login
  • Register

undefined

Super Moderator

Posts: 4,248

Location: Germany

1

Wednesday, February 16th 2005, 12:27pm

Script zum Debuggen von Server Request's

Vorrausetzung ist das register_globals auf off steht! In der Flashbattle Referenz wird in Kürze ein Ausführlicher Artikel erscheinen!

PHP Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
/** GET/POST Debugging Script fuer Flash
 */

$unhide true;

function writeLog$t$data )
{
    $d realpath"." );
    if ( is_writeable$d ) )
    {
        $h fopen$d "/Globals.txt""a+" );
        $data "[" $t " " date"h:i:s"mktime() ) . "]\n" $data "\n";
        if ( strtolower$t ) == "get" )
            $data .= "ApacheCGI:" $_SERVER['argc'] . " " implode" "$_SERVER['argv'] ) . "\n";

        $l strlen$data );
        fwrite $h$data$l );
        fclose$h );
        return true;
    } else
        return false;
}

function Debugging$t$data )
{
    $deb "";
    if ( is_array$data ) && sizeOf$data ) != )
    {
        foreach ( $data AS $k => $v ) {
            $deb .= $k "=" $v " ";
        }
        
        if ( writeLog$t$deb ) )
            return utf8_encode"fertig=" $t "&" $deb );
        else
            return utf8_encode"fertig=KeineSchreibrechte" );
    }
}

if ( isset( $_REQUEST ) && sizeOf$_REQUEST ) >= ) {
    print Debugging$_SERVER['REQUEST_METHOD'], $_REQUEST );
    $unhide false;
}

if ( $unhide )
{

$BoxStyle "width : 70%;
          border: 1px dotted #000000;
          padding: 0px 10px 6px 10px;
          text-align: center;
          position: relative;
          background: #898900;";

$LabelStyle "color: #000000;
        text-transform: capitalize;
        text-align: right;
        orphans: inherit;
        vertical-align: top;";

$InputStyle "position: relative; top: -2px;";

echo '
<div align="center" style="' $BoxStyle '">
    <form action="' $_SERVER['PHP_SELF'] . '" method="POST" style="float: left;">
        <label for="sendpost" style="' $LabelStyle '">
            sendpost:
        </label>
            <input type="text" name="sendpost" value="SendPostData" style="' $InputStyle '" />
                <input type="submit" style="' $InputStyle '" />
    </form>
    <form action="' $_SERVER['PHP_SELF'] . '" style="float: right;">
        <label for="sendget" style="' $LabelStyle '">
            sendget:
        </label>
            <input type="text" name="sendget" value="SendGetData" style="' $InputStyle '" />
                <input type="submit" style="' $InputStyle '" />
    </form>
</div>';
unset( $BoxStyle$LabelStyle$InputStyle $unhide );
}

flush();

?>
Undefined Behavior (undefiniertes Verhalten) bedeutet meistens etwas ungültiges.
PHP Katepart - Speichenrechner - .htpasswd - RPM XDG Tool - Kcmnvview - QTidy
  • Go to the top of the page