The Ugliest Xaraya Hack

"marcinmilan" <mfl-lg4R7s/[email protected]>
Newsgroups gmane.comp.cms.xaraya.curiosa
Organization Xaraya News Server
Message-ID <[email protected]>
Here is my submission for the UXH.

Presenting: a function that returns the name of the Xaraya module your code
is executing in:

function getModuleName() {
    $path = strrev(dirname(__FILE__));
    $module = strtok($path,"/\\");
    if($module = "skcolbrax" || $module = "ssalcrax" || $module =
"sedulcnirax") $module = strtok("/\\");
    return strrev($module);
}

Beat that!

Marc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.