| Server IP : 180.180.241.3 / Your IP : 216.73.216.35 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/syncerrordetails/ |
Upload File : |
<?php
/**
* This is view file for syncErrordetails
*
* PHP version 5
*
* @category JFusion
* @package ViewsAdmin
* @subpackage SyncErrordetails
* @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 SyncErrordetails
* @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 jfusionViewsyncerrordetails extends JView
{
/**
* displays the view
*
* @param string $tpl template name
*
* @return mixed|string html output of view
*/
function display($tpl = null)
{
$mainframe = JFactory::getApplication();
// add the JFusion CSS
$document = JFactory::getDocument();
$document->addStyleSheet('components/com_jfusion/css/jfusion.css');
$template = $mainframe->getTemplate();
$document->addStyleSheet("templates/$template/css/general.css");
$css = 'table.adminlist, table.admintable{ font-size:11px; }';
$document->addStyleDeclaration($css);
/**
* Load usersync and debug library
*/
include_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'models' . DS . 'model.usersync.php';
include_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'models' . DS . 'model.debug.php';
//check to see if the sync has already started
$syncid = JRequest::getVar('syncid');
$syncdata = JFusionUsersync::getSyncdata($syncid);
$synclog = JFusionUsersync::getLogData($syncid, 'error');
$this->assignRef('syncdata', $syncdata);
$this->assignRef('synclog', $synclog);
$this->assignRef('syncid', $syncid);
parent::display($tpl);
}
}