if (!is_array($hooks['hook'])) { $hooks['hook'] = array($hooks['hook']); } foreach ($hooks['hook'] AS $hook) { $hookid = (is_string($hook) ? $hook : $hook['value']); $hooklocations["$hooktype"]["$hookid"] = $hookid; } } } ksort($hooklocations); $plugin = $db->query_first(" SELECT plugin.*, IF(product.productid IS NULL, 0, 1) AS foundproduct, IF(plugin.product = 'vbulletin', 1, product.active) AS productactive FROM " . TABLE_PREFIX . "plugin AS plugin LEFT JOIN " . TABLE_PREFIX . "product AS product ON(product.productid = plugin.product) WHERE pluginid = " . $vbulletin->GPC['pluginid'] ); if (!$plugin) { $plugin = array(); } print_form_header('plugin', 'update'); construct_hidden_code('pluginid', $plugin['pluginid']); if ($_REQUEST['do'] == 'add') { $heading = $vbphrase['add_new_plugin']; } else { $heading = construct_phrase($vbphrase['edit_plugin_x'], $plugin['title']); }
Show Your Support