<?php
/**
 * @package   AdminTools
 * @copyright Copyright (c)2010-2014 Nicholas K. Dionysopoulos
 * @license   GNU General Public License version 3, or later
 * @version   $Id$
 */

// Protect from unauthorized access
defined('_JEXEC') or die;

class AdmintoolsViewMasterpw extends F0FViewHtml
{
	protected function onBrowse($tpl = null)
	{
		if (interface_exists('JModel'))
		{
			$model = JModelLegacy::getInstance('Masterpw', 'AdmintoolsModel');
		}
		else
		{
			$model = JModel::getInstance('Masterpw', 'AdmintoolsModel');
		}
		$masterpw = $model->getMasterPassword();

		$this->masterpw = $masterpw;

		return parent::onBrowse($tpl);
	}
}