} else { $product['title'] = htmlspecialchars_uni($product['title']); } if ($group_by == 'hook') { if ($hook['hookname'] != $prevgroup) { $prevgroup = $hook['hookname']; print_description_row($vbphrase['hook_location'] . ' : ' . $hook['hookname'], 0, 7, 'tfoot', '" style="text-align: left;'); } } else { if ($product['title'] != $prevgroup) { $prevgroup = $product['title']; print_description_row($vbphrase['product'] . ' : ' . $product['title'], 0, 7, 'tfoot', '" style="text-align: left;'); } } if (!$product['active']) { $product['title'] = '<strike>' . $product['title'] . '</strike>'; } $title = htmlspecialchars_uni($hook['title']); $title = ($hook['active'] and $product['active']) ? $title : "<strike>{$title}</strike>"; print_cells_row(array(vB_Library_Admin::buildElementCell('hook' . $hook['hookid'], $title, 0, false, 'hook.php', 'edit&hookid=' . $hook['hookid'], vB::getCurrentSession()->get('sessionurl')), vB_Library_Admin::buildDisplayCell($group_by == 'hook' ? $product['title'] : $hook['hookname']), vB_Library_Admin::buildTextInputCell('order[' . $hook['hookid'] . ']', $hook['hookorder'], 1, $title = 'Execution Order'), vB_Library_Admin::buildDisplayCell($hook['template']), vB_Library_Admin::buildDisplayCell($hook['arguments'] ? 'Yes' : 'No'), vB_Library_Admin::buildCheckboxCell('active[' . $hook['hookid'] . ']', 1, 'hook' . $hook['hookid'], $hook['active'], false, false, false), vB_Library_Admin::buildElementCell('edit' . $hook['hookid'], '[' . $vbphrase['edit'] . ']', 0, false, 'hook.php', 'edit&hookid=' . $hook['hookid'], vB::getCurrentSession()->get('sessionurl')) . vB_Library_Admin::buildElementCell('delete' . $hook['hookid'], '[' . $vbphrase['delete'] . ']', 0, false, 'hook.php', 'delete&hookid=' . $hook['hookid'], vB::getCurrentSession()->get('sessionurl')))); } print_submit_row($vbphrase['save_status'], false, 7); echo '<p align="center">' . vB_Library_Admin::buildElementCell('', '[' . $vbphrase['add_new_hook'] . ']', 0, false, 'hook.php', 'add', vB::getCurrentSession()->get('sessionurl')) . '</p>'; } print_cp_footer(); /*=========================================================================*\ || ####################################################################### || # Downloaded: 15:45, Tue Sep 8th 2015 || # CVS: $RCSfile$ - $Revision: 83435 $ || ####################################################################### \*=========================================================================*/
if (isset($extn['__failed'])) { $result = each($extn['__failed']); $failed[] = array('dir' => $result['key'], 'file' => $result['value'][0]); continue; } if ($product != $extn['product']) { print_description_row($vbphrase['package'] . ': ' . ucfirst(strtolower($extn['package'])), false, 7, 'boldrow'); $product = $extn['product']; } if (!$vbulletin->options['enablehooks'] or defined('DISABLE_HOOKS')) { $extn['enabled'] = false; } $title = htmlspecialchars_uni($extn['title']); $title = $extn['enabled'] ? $title : "<strike>{$title}</strike>"; $enabled = $extn['enabled'] ? $vbphrase['yes'] : ($extn['dependancy'] ? $vbphrase['no_dep'] : $vbphrase['no']); print_cells_row(array(vB_Library_Admin::buildElementCell('', $title, 0, false, '', '', '', $extn['version'], $extn['developer']), vB_Library_Admin::buildDisplayCell($extn['class']), vB_Library_Admin::buildDisplayCell($enabled, $extn['enabled'] and $extn['compatible']), vB_Library_Admin::buildDisplayCell($extn['minver']), vB_Library_Admin::buildDisplayCell($extn['maxver']), vB_Library_Admin::buildDisplayCell($extn['compatible'] ? $vbphrase['yes'] : $vbphrase['no'], $extn['compatible']), vB_Library_Admin::buildDisplayCell($extn['order'])), false, false, 0.5); } if (!empty($failed)) { print_table_break(); print_description_row($vbphrase['failed_extensions'], false, 2, 'boldrow'); print_label_row($vbphrase['directory'], $vbphrase['filename_gcpglobal'], 'boldrow'); foreach ($failed as $info) { print_label_row($info['dir'], $info['file']); } } } else { print_description_row($vbphrase['no_extensions'], false, 7, 'boldrow'); } print_table_footer(); } print_cp_footer();