$[An author name is required.]"); $DoubleBrackets['/{{~([[:alpha:]][-\\w\\s]*)}}/'] = "$AuthorGroup/\{\{$1}}"; if (!isset($Author)) { if (isset($_POST['author'])) { $Author = htmlspecialchars(stripmagic($_POST['author']),ENT_QUOTES); setcookie('author',$Author,$AuthorCookieExpires,$AuthorCookieDir); } else { $Author = htmlspecialchars(stripmagic(@$_COOKIE['author']),ENT_QUOTES); } $Author = preg_replace('/(^[^[:alpha:]]+)|[^\\w- ]/','',$Author); } if ($k=FreeLink("{{".$Author."}}")) { SDV($AuthorPage,"$AuthorGroup/".$k['name']); SDV($AuthorLink,"$AuthorGroup/{{".$k['name']."}}"); } SDV($AuthorLink,$Author); if ($EnablePostAuthorRequired && $Author=='' && $action=='edit' && $_POST['post']) { unset($_POST['post']); $preview = 'y'; $EditMessageFmt .= $AuthorRequiredFmt; } ?>