Rev 1087 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php
// Partie publique
if (!defined("WIKINI_VERSION"))
{
die ("accès direct interdit");
}
// Surcharge methode GetUserName de la class Wiki
$wikiClasses [] = 'Hello';
$wikiClassesContent [] = '
function GetUserName() {
if ($user = $this->GetUser()) $name = $user["name"];
else if (!$name = gethostbyaddr($_SERVER["REMOTE_ADDR"])) $name = $_SERVER["REMOTE_ADDR"];
return "Bonjour ".$name;
}
';