dbtech > usertag > hooks > global_start
php dosyasındakilerin içindekini boşaltın alttakileri yazın
PHP- Kodu:
<?php
// Fetch required classes
require_once(DIR . '/dbtech/usertag/includes/class_core.php');
require_once(DIR . '/dbtech/usertag/includes/class_cache.php');
if (intval($vbulletin->versionnumber) == 3 AND !class_exists('vB_Template'))
{
// We need the template class
require_once(DIR . '/dbtech/usertag/includes/class_template.php');
}
if (isset($this) AND is_object($this))
{
// Loads the cache class
USERTAG_CACHE::init($vbulletin, $this->datastore_entries);
}
else
{
// Loads the cache class
USERTAG_CACHE::init($vbulletin, $specialtemplates);
}
// Initialise forumon
USERTAG::init($vbulletin);
$vbulletin->options['dbtech_usertag_emaildefault'] = isset($vbulletin->options['dbtech_usertag_emaildefault']) ? $vbulletin->options['dbtech_usertag_emaildefault'] : 1;
//if (USERTAG::$permissions['canview'])
//{
$show['usertag'] = $vbulletin->options['dbtech_usertag_navbar'];
$show['usertag_ispro'] = USERTAG::$isPro;
if ($vbulletin->options['dbtech_usertag_integration'] & 1)
{
$show['usertag_ql'] = true;
}
if ($vbulletin->options['dbtech_usertag_integration'] & 2)
{
$show['usertag_cm'] = true;
$show['usertag_cm2'] = !($vbulletin->options['dbtech_usertag_disabledfeatures'] & 8);
}
// Whether stats are enabled
$show['usertag_enablestats'] = $vbulletin->options['dbtech_usertag_enablestats'];
//}
// Show branding or not
$show['dbtech_usertag_producttype'] = (USERTAG::$isPro ? ' (Pro)' : ' (Lite)');
$show['usertag_branding'] = $vbulletin->options['dbtech_usertag_branding_free'] != '25599748-c04cf8c62f9e2c151de89a3f61dea8c2';
if ($show['usertag_branding'] AND !$show['_dbtech_branding_override'])
{
$brandingVariables = array(
'flavour' => 'User Alert System provided by ',
'productid' => 20,
'utm_source' => str_replace('www.', '', $_SERVER['HTTP_HOST']),
'utm_content' => (USERTAG::$isPro ? 'Pro' : 'Lite'),
'referrerid' => $vbulletin->options['dbtech_usertag_referral'],
'title' => 'Advanced User Tagging',
'displayversion' => $vbulletin->options['dbtech_usertag_displayversion'],
'version' => USERTAG::$version,
'producttype' => $show['dbtech_usertag_producttype'],
'showhivel' => (!USERTAG::$isPro AND !$vbulletin->options['dbtech_usertag_nohivel'])
);
$str = $brandingVariables['flavour'] . '
<a rel="nofollow" href="http://www.dragonbyte-tech.com/vbecommerce.php' . ($brandingVariables['productid'] ? '?productid=' . $brandingVariables['productid'] . '&do=product&' : '?') . 'utm_source=' . $brandingVariables['utm_source'] . '&utm_campaign=Footer%2BLinks&utm_medium=' . urlencode(str_replace(' ', '+', $brandingVariables['title'])) . '&utm_content=' . $brandingVariables['utm_content'] . ($brandingVariables['referrerid'] ? '&referrerid=' . $brandingVariables['referrerid'] : '') . '" target="_blank">' . $brandingVariables['title'] . ($brandingVariables['displayversion'] ? ' v' . $brandingVariables['version'] : '') . $brandingVariables['producttype'] . '</a> -
<a href="http://www.dragonbyte-tech.com/?utm_source=' . $brandingVariables['utm_source'] . '&utm_campaign=Footer%2BLinks&utm_medium=' . urlencode(str_replace(' ', '+', $brandingVariables['title'])) . '&utm_content=' . $brandingVariables['utm_content'] . ($brandingVariables['referrerid'] ? '&referrerid=' . $brandingVariables['referrerid'] : '') . '" target="_blank">vBulletin Mods & Addons</a> Copyright © ' . date('Y') . ' DragonByte Technologies Ltd.' .
($brandingVariables['showhivel'] ? ' Runs best on <a href="http://www.hivelocity.net/?utm_source=Iain%2BKidd&utm_medium=back%2Blink&utm_term=Dedicated%2BServer%2BSponsor&utm_campaign=Back%2BLinks%2Bfrom%2BIain%2BKidd" target="_blank">HiVelocity Hosting</a>.' : '');
}