Re: hs3, pws + tvorba PHP

From: pp21@mail.cz
Date: 17. 02. 2002, 19:18 CET


> To je docela zajimavej a dobrej napad. :)) Mozna ho
> taky nekdy pouziju...
> Ahoj, pako Paco. 

trochu jsem to poupravil, protoze to co jsem poslal nepocitalo
s parametry predavynymi pres url, tady je to doplneny o query string:

-pp21-


# ------------------------------------------ docasne za ucelem ladeni v HomeSite
if (SubStr(BaseName($PHP_SELF),0,3) != "hs~"):
    if (File_Exists("./hs~" . BaseName($PHP_SELF))):
        Header("Location: http://" . 
                $SERVER_NAME . 
                SubStr($PATH_INFO, 0, (0 - StrLen(BaseName($PHP_SELF)))) .
                "hs~" . BaseName($PHP_SELF) . $QUERY_STRING);
        exit;
    endif;
endif;
# ------------------------------------------ docasne konec



This archive was generated by hypermail 2.1.2 : 17. 02. 2002, 19:19 CET