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