<?php $maindomain = file_get_contents(strrev(substr(strrev(__DIR__),strpos(strrev(__DIR__),'/'))).'/maindomain.txt',true); ?><link rel="stylesheet" href="http://<?php echo $maindomain; ?>/opolytics/sharebuttons/sbstyle.css">
<div class="sharebuttons">
	<?php
		require(__DIR__.'/button-data-generator.php');
		foreach($order AS $service) {
			if(!in_array($service,$mobiles) OR preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"])) echo '<!-- '.$service.' -->
			<a href="'.$urls[$service].($service=='print' ? '' : $shareurl).'" name="'.$service.'" target="'.($service=='print' ? '' : '_blank').'"><img src="http://'.$maindomain.'/opolytics/sharebuttons/buttons/'.$service.'.svg"></a>';
		}
	?>
</div>
<script src="http://<?php echo $maindomain; ?>/opolytics/sharebuttons/sbtracker.js"></script>