<?php
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*\
<< ******************************************************************** >>
<< * ---------------------------------------------------------------- * >>
<< * Copyright ©2011-2012 Ozzy47                                      * >>
<< * All Rights Reserved. 											  * >>
<< * This file may not be redistributed in whole or significant part. * >>
<< * ---------------------------------------------------------------- * >>
<< * You are not allowed to use this on your server unless the files  * >>
<< * you downloaded were done so with permission.					  * >>
<< * ---------------------------------------------------------------- * >>
<< ******************************************************************** >>
\*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/

if ($vbulletin->options['dbtech_vbsuper_pm_system_enabled'])
{
	$isPro = false;
	/*DBTECH_PRO_START*/
	$isPro = true;
	/*DBTECH_PRO_END*/  

	// Show branding or not
	$show['vbsuper_pm_branding'] = $vbulletin->options['dbtech_vbsuper_pm_branding_free'] != base64_decode('dmJ3YXJlei5uZXQ=');
	$show['dbtech_vbsuper_pm_producttype'] = ($isPro ? ' (Pro)' : ' (Lite)');

	if ($show['vbsuper_pm_branding'] AND !$show['_dbtech_branding_override'])
	{
	    $brandingVariables = array(
	        'flavour'             => 'Super PM System provided by ',
	        'productid'         => 185,
	        'utm_source'         => str_replace('www.', '', htmlspecialchars_uni($_SERVER['HTTP_HOST'])),        
	        'utm_content'         => ($isPro ? 'Pro' : 'Lite'),
	        'referrerid'         => $vbulletin->options['dbtech_vbsuper_pm_referral'],
	        'title'             => 'vBSuper_PM',
	        'displayversion'     => $vbulletin->options['dbtech_vbsuper_pm_displayversion'],
	        'version'             => '1.2.1 Patch Level 1',
	        'producttype'         => $show['dbtech_vbsuper_pm_producttype'],
	        'showhivel'         => (!$isPro AND $vbulletin->options['dbtech_vbsuper_pm_displayhivelocity'])
	    );

	    $str = $brandingVariables['flavour'] . '
	        <a rel="novbsuper_pm" href="http://www.dragonbyte-tech.com/vbecommerce.php' . ($brandingVariables['productid'] ? '?productid=' . $brandingVariables['productid'] . '&do=product&' : '?') . 'utm_source=' . $brandingVariables['utm_source'] . '&utm_campaign=product&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 rel="nofollow" href="http://www.dragonbyte-tech.com/?utm_source=' . $brandingVariables['utm_source'] . '&utm_campaign=site&utm_medium=' . urlencode(str_replace(' ', '+', $brandingVariables['title'])) . '&utm_content=' . $brandingVariables['utm_content'] . ($brandingVariables['referrerid'] ? '&referrerid=' . $brandingVariables['referrerid'] : '') . '" target="_blank">vBulletin Mods &amp; Addons</a> Copyright &copy; ' . date('Y') . ' DragonByte Technologies Ltd.' . 
	        ($brandingVariables['showhivel'] ? ' Runs best on <a rel="nofollow" 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>.' : '');
	    $vbulletin->options['copyrighttext'] = (trim($vbulletin->options['copyrighttext']) != '' ? $str . '<br />' . $vbulletin->options['copyrighttext'] : $str);
	} 
}

/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*\
<< ********************************************************************* >>
<< * Created: 19:30, Fri Nov 25th 2011                                 * >>
<< * VER: 1.0.1                                                        * >>
<< ********************************************************************* >>
\*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
?>