| Server IP : 180.180.241.3 / Your IP : 216.73.216.216 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/news/administrator/components/com_jfusion/views/syncerror/ |
Upload File : |
<?php
/**
* This is view file for syncError
*
* PHP version 5
*
* @category JFusion
* @package ViewsAdmin
* @subpackage SyncError
* @author JFusion Team <webmaster@jfusion.org>
* @copyright 2008 JFusion. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.jfusion.org
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
/**
* Renders the main admin screen that shows the configuration overview of all integrations
*
* @category JFusion
* @package ViewsAdmin
* @subpackage SyncError
* @author JFusion Team <webmaster@jfusion.org>
* @copyright 2008 JFusion. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.jfusion.org
*/
class jfusionViewsyncerror extends JView
{
/**
* displays the view
*
* @param string $tpl template name
*
* @return mixed html output of view
*/
function display($tpl = null)
{
//Load usersync library
include_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'models' . DS . 'model.usersync.php';
//check to see if the sync has already started
$syncid = JRequest::getVar('syncid');
$syncdata = JFusionUsersync::getSyncdata($syncid);
//append log
$mainframe = JFactory::getApplication();
$client = JRequest::getWord( 'filter_client', 'site' );
$option = JRequest::getCmd('option');
$filter_order = $mainframe->getUserStateFromRequest( "$option.$client.filter_order", 'filter_order', 'id', 'cmd' );
$filter_order_Dir = $mainframe->getUserStateFromRequest( "$option.$client.filter_order_Dir", 'filter_order_Dir', '', 'word' );
$limit = (int)$mainframe->getUserStateFromRequest( 'global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int' );
$limitstart = (int)$mainframe->getUserStateFromRequest( $option.'.limitstart', 'limitstart', 0, 'int' );
$synclog = JFusionUsersync::getLogData($syncid, 'error', $limitstart, $limit, $filter_order, $filter_order_Dir);
$filter = array('order' => $filter_order, 'dir' => $filter_order_Dir, 'limit' => $limit, 'limitstart' => $limitstart, 'client' => $client);
$total = JFusionUsersync::countLogData($syncid, 'error');
jimport('joomla.html.pagination');
$pageNav = new JPagination($total, $limitstart, $limit);
$this->assignRef('pageNav', $pageNav);
$this->assignRef('filter', $filter);
$this->assignRef('syncid', $syncid);
$this->assignRef('syncdata', $syncdata);
$this->assignRef('synclog', $synclog);
parent::display($tpl);
}
}