<?php
if (!is_array($this->post['permissions']))
{
	cache_permissions($this->post);
}

$vbsignatures = (array)@unserialize($this->post['dbtech_vbsignatures_configuration']);
if ($this->registry->options['dbtech_vbsignatures_postbit_block'] AND file_exists(DIR . '/dbtech/vbsignatures/images/signatures/' . $this->post['userid'] . '_' . $this->post['dbtech_vbsignatures_signature'] . '.png') AND $vbsignatures[$this->post['dbtech_vbsignatures_signature']]['parts'][0] AND ($this->post['permissions']['dbtech_vbsignaturespermissions'] & $this->registry->bf_ugp_dbtech_vbsignaturespermissions['canview']))
{
	$this->post['signature'] .= '<hr style="width:100%" /><img src="' . $this->registry->options['bburl'] . '/dbtech/vbsignatures/images/signatures/' . $this->post['userid'] . '_' . $this->post['dbtech_vbsignatures_signature'] . '.png?d=' . $this->post['dbtech_vbsignatures_dateline'] . '" alt="" />';
}
?>