*/ function dwp_display_wiki_page($wikipagename) { global $conf, $lang; global $auth; global $ID, $REV; //save status $backup['ID'] = $ID; $backup['REV'] = $REV; $result = ''; //Check user permissions... $perm = auth_quickaclcheck(trim(strtolower($wikipagename), ":")); if (@file_exists(wikiFN($wikipagename)) && $perm >= AUTH_READ) { if ($perm >= AUTH_READ) { $result = p_wiki_xhtml($wikipagename, '', false); if ($perm >= AUTH_EDIT) { $result .='
' . $lang['btn_secedit'] . '
'; } } else { //show access denied $result = p_locale_xhtml('Access Denied'); } } else { if ($perm >= AUTH_CREATE) { $result .='
' . $lang['btn_create'] . '
'; } } echo $result; $ID = $backup['ID']; $REV = $backup['REV']; }