Ejemplo n.º 1
0
    function cbTabHandler() {

        if(!file_exists(JPATH_SITE.DS.'components'.DS.'com_bids'.DS.'bids.php')) {
            return "<div>You must First install <a href='http://www.thefactory.ro/shop/joomla-components/auction-factory.html'> Auction Factory </a></div>";
        }

        //need the whole framework loaded so we can access the price_item classes, in order to get the correct price for current user (verified, powerseller,...)
        require_once(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_bids'.DS.'thefactory'.DS.'application'.DS.'application.class.php');

        $cnfigfile = JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_bids'.DS.'application.ini';
        $MyApp = JTheFactoryApplication::getInstance($cnfigfile, true);

        JTable::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_bids'.DS.'tables');
        JHTML::addIncludePath(JPATH_SITE.DS.'components'.DS.'com_bids'.DS.'helpers'.DS.'html');

        require_once(JPATH_ROOT.DS.'components'.DS.'com_bids'.DS.'options.php');
        require_once(JPATH_ROOT.DS.'components'.DS.'com_bids'.DS.'defines.php');

        require_once(JPATH_SITE.DS.'components'.DS.'com_bids'.DS.'helpers'.DS.'bids.php');
        BidsHelper::LoadHelperClasses();

        JFactory::getLanguage()->load('com_bids');

        parent::cbTabHandler();
    }
Ejemplo n.º 2
0
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

if(JRequest::getVar('option')=='com_comprofiler' &&
   JRequest::getVar('view')  == 'userprofile' &&
   JRequest::getVar('task')  == 'userprofile'
){
    $user_id =JRequest::getVar('user');
    if(!$user_id){
        return;
    }
    require_once (JPATH_ROOT.DS."components".DS."com_bids".DS.'options.php');
    require_once (JPATH_ROOT.DS."components".DS."com_bids".DS.'defines.php');
    require_once (JPATH_ROOT.DS."components".DS."com_bids".DS.'helpers'.DS.'bids.php');

    BidsHelper::LoadHelperClasses();
    JHtml::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_bids'.DS.'htmlelements');

    $mid = $module->id;

    $module_type		=	$params->get("type_display",0);
    $nr_auctions		=	$params->get("nr_auctions_displayed",1);
    $image_width		=	$params->get("image_width",30);
    $image_height		=	$params->get("image_height",30);
    $display_image		=	$params->get("display_image",1);
    $display_counter	=	$params->get("display_counter",0);
    $layout             =   $params->get('template','list');

    $sort_by			=	$params->get("sort_by","start_date");
    $filter_featured	=	$params->get("featured",false);