Revision | b6c072c9404bbabe448a7fa1b65d426273e9374f (tree) |
---|---|
Time | 2022-01-24 01:21:06 |
Author | hai-fun <haifun129@gmai...> |
Commiter | hai-fun |
PHP8
@@ -2,8 +2,9 @@ | ||
2 | 2 | ///////////////////////////////////////////////// |
3 | 3 | // PukiWiki - Yet another WikiWikiWeb clone. |
4 | 4 | // |
5 | -// $Id: attachref.inc.php,v 0.14 2003/10/08 04:10:29 sha Exp $ | |
5 | +// $Id: attachref.inc.php,v 0.16 2021/12/11 10:07:29 sha Exp $ | |
6 | 6 | // PHP7 Split関数終了によりexplode関数に変更 : 2019/12/11 |
7 | +// PHP8 ミス等二ヶ所修正 : 2021/12/11 by はいふん | |
7 | 8 | // |
8 | 9 | |
9 | 10 | /* |
@@ -177,7 +178,7 @@ function plugin_attachref_action() | ||
177 | 178 | { |
178 | 179 | return array('msg'=>'attach.inc.php not found or not correct version.'); |
179 | 180 | } |
180 | - $pass = array_key_exists('pass',$vars) ? md5($vars['pass']) : NULL; | |
181 | + $pass = array_key_exists('pass',$vars) ? $vars['pass'] : NULL; | |
181 | 182 | $retval = attach_upload($file,$vars['refer'],$pass); |
182 | 183 | if ($retval['result'] == TRUE) |
183 | 184 | { |
@@ -200,8 +201,8 @@ function attachref_insert_ref($filename) | ||
200 | 201 | |
201 | 202 | $ret['msg'] = $_attachref_messages['msg_title']; |
202 | 203 | |
203 | - $//args = split(",", $vars['attachref_opt']); | |
204 | - $args = explode(",", $vars['attachref_opt']); | |
204 | + //$args = split(",", $vars['attachref_opt']); | |
205 | + $args = explode(",", $vars['attachref_opt']); | |
205 | 206 | if ( count($args) ){ |
206 | 207 | $args[0] = $filename;//array_shift,unshiftって要するにこれね |
207 | 208 | $s_args = join(",", $args); |
@@ -316,4 +317,4 @@ function attachref_form($page) | ||
316 | 317 | </form> |
317 | 318 | EOD; |
318 | 319 | } |
319 | -?> | |
\ No newline at end of file | ||
320 | +?> |