// // back plugin // Allow specifying back link by page name and anchor, or // by relative or site-abusolute path define('PLUGIN_BACK_ALLOW_PAGELINK', PKWK_SAFE_MODE); // FALSE(Compat), TRUE // Allow JavaScript (Compat) define('PLUGIN_BACK_ALLOW_JAVASCRIPT', TRUE); // TRUE(Compat), FALSE // ---- define('PLUGIN_BACK_USAGE', '#back([text],[center|left|right][,0(no hr)[,Page-or-URI-to-back]])'); function plugin_back_convert() { global $_msg_back_word, $script; if (func_num_args() > 4) return PLUGIN_BACK_USAGE; list($word, $align, $hr, $href) = array_pad(func_get_args(), 4, ''); $word = trim($word); $word = ($word == '') ? $_msg_back_word : htmlsc($word); $align = strtolower(trim($align)); switch($align){ case '' : $align = 'center'; /*FALLTHROUGH*/ case 'center': /*FALLTHROUGH*/ case 'left' : /*FALLTHROUGH*/ case 'right' : break; default : return PLUGIN_BACK_USAGE; } $hr = (trim($hr) != '0') ? '