'on', 'auth' => '', 'table_mod' => '', 'calc' => '0', 'row' => '', 'column' => '', 'dot' => '0', // 'comma' => '', ); $auth_chk = auth::check_auth(); foreach($edit_auth_pages as $key=>$val){ if (preg_match($key, $page)){ $opt['edit'] = 'off'; if(! empty($auth_chk)){ $opt['edit'] = 'on'; } } } // if(is_editable($page)){ } $head_button = ''; $body = ''; $args = func_get_args(); $arg = array_pop($args); foreach ($args as $opt_key) { list($key, $val) = explode('=', strtolower($opt_key)); $opt[$key] = htmlspecialchars($val); } // if (PKWK_READONLY) { if (auth::check_role('readonly') || is_freeze($page) ) { $opt['edit'] = 'off'; } // open or close if ($opt['table_mod'] != 'off' && $opt['edit'] != 'off'){ if ($opt['table_mod'] == 'open' || $opt['table_mod'] == ''){ $image_png = 'close.png" width="11" height="11" alt="" title="close"'; $table_mod = 'close'; } else if ($opt['table_mod'] == 'close'){ $image_png = 'paraedit.png" width="9" height="9" alt="" title="open"'; $opt['edit'] = 'off'; $table_mod = 'open'; } $head_button = '