function plugininterface_getall() { foreach ($GLOBALS as $temp_name => $temp_value) { if (preg_match("/^(Action|Filter|Response)_/i", $temp_name, $matches)) { switch (strtolower($matches[1])) { case 'filter': plugininterface_formatfilter($temp_name, true); } } } }
if (!$zbp->CheckRights($action)) { $zbp->ShowError(6); die; } if (!$zbp->CheckPlugin('ZBPDK')) { $zbp->ShowError(48); die; } if (isset($_GET['act'])) { switch ($_GET['act']) { case 'interface': $interface_name = GetVars("interface", "POST"); preg_match("/^(Action|Filter|Response)_/i", $interface_name, $matches); $interface_type = strtolower($matches[1]); if ($interface_name != 'Filter_ZBPDK_Display_All') { plugininterface_formatfilter($interface_name); } else { plugininterface_getall(); } echo '<table width="100%"><tr><td height="40">挂接口数量(共' . count($GLOBALS['zbdk_interface_defined_plugins']['filter']) . '个)</td></tr>'; foreach ($GLOBALS['zbdk_interface_defined_plugins']['filter'] as $temp) { echo '<tr onclick="show_code(\'' . $temp['orig'] . '\',$(this).attr(\'_interface\'),this)" _interface="' . $temp['interface_name'] . '">'; echo '<td height="40">' . TransferHTML($temp['output'], "[html-format]") . '</td></tr>'; } echo '</table>'; exit; break; case 'showcode': $func_name = GetVars("func", "POST"); $interface_name = GetVars("if", "POST"); echo TransferHTML(plugininterface_outputfunc($interface_name, $func_name), "[html-format][enter]");