Esempio n. 1
0
<?php

// No direct access to this file
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.formvalidation');
$input = JFactory::getApplication()->input;
//$post=$input->post;
$document = JFactory::getDocument();
//$document->addScript(JUri::root().'media://techjoomla_strapper/js/akeebajq.js');
//$document->addScript(JUri::root().'components/com_socialads/css/socialads.css');
$document->addStyleSheet(JUri::root() . 'components/com_socialads/css/campaign.css');
require JPATH_SITE . DS . "administrator" . DS . "components" . DS . "com_socialads" . DS . "config" . DS . "config.php";
require_once JPATH_COMPONENT . DS . 'helper.php';
$socialadshelper = new socialadshelper();
$init_balance = $socialadshelper->getbalance();
if ($init_balance != NULL && $init_balance != 1.0) {
    $itemid = $socialadshelper->getSocialadsItemid('payment');
    $not_msg = JText::_('MIM_BALANCE');
    $not_msg = str_replace('{clk_pay_link}', '<a href="' . JRoute::_('index.php?option=com_socialads&view=payment&Itemid=' . $itemid) . '">' . JText::_('SA_CLKHERE') . '</a>', $not_msg);
    JError::raiseNotice(100, $not_msg);
}
$user = JFactory::getUser();
?>
<div class="techjoomla-bootstrap">
<?php 
if (!$user->id) {
    ?>
	<div class="alert alert-block">
	<?php 
    echo JText::_('BUILD_LOGIN');
    ?>