X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fwiki%2Ffarmconfig.php;h=2faf4f940d9ccf46d27eb46a48934678083d623f;hb=acc276daf2b9768b549504c64c94679e9c8ddd27;hp=b867000c080063a4aa4d9f008fc3aee9250da1be;hpb=eaf30d86cc99df2414cf4f171a9b0f11b0561e3b;p=platal.git diff --git a/include/wiki/farmconfig.php b/include/wiki/farmconfig.php index b867000..2faf4f9 100644 --- a/include/wiki/farmconfig.php +++ b/include/wiki/farmconfig.php @@ -6,6 +6,7 @@ $EnableUpload = 1; $UploadMaxSize = 500000; $LinkWikiWords = 0; # disable WikiWord links $EnableIMSCaching = 1; # allow browser caching +$EnablePageListProtect = 0; # We use our own permission system. $ScriptUrl = '.'; #\ $UploadUrlFmt = './uploads'; # } works thanks to the in skin @@ -19,7 +20,7 @@ $Skin = 'empty'; @include_once("$FarmD/cookbook/e-protect.php"); include_once($FarmD.'/scripts/xlpage-utf-8.php'); -ResolvePageName(); +$pagename = ResolvePageName($pagename); if ($action == 'rss' || $action == 'atom' || $action == 'rdf' || $action == 'dc') { $FmtPV['$MarkupExcerpt'] = '$page["text"]'; @@ -53,7 +54,7 @@ $GUIButtons['table'] = array(600, '$GUIButtonDirUrlFmt/table.gif"$[Table]"'); // set default author -$Author = $_SESSION['forlife'].'|'.$_SESSION['prenom'].' '.$_SESSION['nom']; +$Author = $_SESSION['hruid'].'|'.$_SESSION['prenom'].' '.$_SESSION['nom']; $InputTags['e_form'] = array( ':html' => "
fetchOneAssoc(); - $text = $row['prenom'] . ' ' . $row['nom'] . ' X' . $row['promo']; - if ($row['surnom']) { - $text .= ' (alias ' . $row['surnom'] . ')'; + $profile = Profile::get($link); + if (!$profile) { + return '##Utilisateur inconnu##' . $text . '##'; } + $text = $profile->fullName(); } return '' . $text . ''; }