| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/rescommittee/administrator/components/com_admintools/views/fixperms/ |
Upload File : |
<?php
/**
* @package AdminTools
* @copyright Copyright (c)2010-2013 Nicholas K. Dionysopoulos
* @license GNU General Public License version 3, or later
* @version $Id$
*/
// Protect from unauthorized access
defined('_JEXEC') or die();
class AdmintoolsViewFixperms extends FOFViewHtml
{
protected function onBrowse($tpl = null)
{
$model = $this->getModel();
$state = $model->getState('scanstate',false);
$total = $model->totalFolders;
$done = $model->doneFolders;
if($state)
{
if($total > 0)
{
$percent = min(max(round(100 * $done / $total),1),100);
}
$more = true;
}
else
{
$percent = 100;
$more = false;
JToolBarHelper::back('JTOOLBAR_BACK', 'index.php?option=com_admintools');
}
$this->assign('more', $more);
$this->assign('percentage', $percent);
$this->setLayout('default');
if($more) {
$script = "window.addEvent( 'domready' , function() {\n";
$script .= "document.forms.adminForm.submit();\n";
$script .= "});\n";
JFactory::getDocument()->addScriptDeclaration($script);
}
}
public function onRun()
{
$this->onBrowse();
}
}