VB és la versió 3.84 global.php és la següent:
PHP Code:
// if user can control panel, allow selection of any style (for testing purposes)
// otherwise only allow styles that are user-selectable
$styleid = intval($styleid);
$style = NULL;
($hook = vBulletinHook::fetch_hook('style_fetch')) ? eval($hook) : false;
if (!is_array($style))
{
$style = $db->query_first_slave("
SELECT *
FROM " . TABLE_PREFIX . "style
WHERE (styleid = $styleid" . iif(!($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']) AND !$userselect, ' AND userselect = 1') . ")
OR styleid = " . $vbulletin->options['styleid'] . "
ORDER BY styleid " . iif($styleid > $vbulletin->options['styleid'], 'DESC', 'ASC') . "
LIMIT 1
");
}
define('STYLEID', $style['styleid']);
No estic segur si Dreamweaver està mostrant la línia correcta, i que va afegir el codi complet de prop d'aquest, 238 és
($ Ganxo = vBulletinHook:: fetch_hook ('style_fetch'))? eval ($ ganxo): false;