Subversion Repositories Applications.papyrus

Rev

Rev 1087 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
// Partie publique 

if (!defined("WIKINI_VERSION"))
{
        die ("acc&egrave;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;
        }       

';