X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=plugin%2Fupdate_entities.inc.php;fp=plugin%2Fupdate_entities.inc.php;h=a8f7c5c22851f8a0c3ca2e5d3c53d853f91b45cf;hb=336b636f7d2e09d8a7eb5e3892fd1eddae7e8b5a;hp=0a744ce425cee89f90db356974e4834d14db4536;hpb=f2cdb898a96b9b1950716deb96118214efc31097;p=pukiwiki%2Fpukiwiki.git diff --git a/plugin/update_entities.inc.php b/plugin/update_entities.inc.php index 0a744ce..a8f7c5c 100644 --- a/plugin/update_entities.inc.php +++ b/plugin/update_entities.inc.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: update_entities.inc.php,v 1.2 2003/07/22 05:56:49 arino Exp $ +// $Id: update_entities.inc.php,v 1.3 2004/07/18 14:11:37 henoheno Exp $ // // DTD¤Î¾ì½ê @@ -37,10 +37,10 @@ PHP function plugin_update_entities_action() { - global $script,$post,$vars,$adminpass; + global $script, $vars; global $_entities_messages; - if (empty($vars['action']) or empty($post['adminpass']) or md5($post['adminpass']) != $adminpass) + if (empty($vars['action']) or empty($vars['adminpass']) or ! pkwk_login($vars['adminpass'])) { $items = plugin_update_entities_create(); $body = convert_html(sprintf($_entities_messages['msg_usage'],join("\n-",$items))); @@ -74,6 +74,7 @@ EOD; 'body'=>$_entities_messages['err_invalid'] ); } + function plugin_update_entities_create($do=FALSE) { $files = array('xhtml-lat1.ent','xhtml-special.ent','xhtml-symbol.ent');