* @package DOCman_1.4 * @copyright (C) 2003-2008 The DOCman Development Team * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @link http://www.joomlatools.org/ Official website **/ defined('_VALID_MOS') or die('Restricted access'); include_once dirname(__FILE__) . '/docman.html.php'; switch ($task) { case 'stats': showStatistics(); break; case 'credits': showCredits(); break; case 'sampledata': installSampleData(); break; // DOClink // DOClink case "doclink": require_once $_DOCMAN->getPath('includes_f', 'doclink'); showDoclink(); break; case "doclink-listview": require_once $_DOCMAN->getPath('includes_f', 'doclink'); showListview(); break; // CPanel // CPanel case 'cpanel': default:
public function installSampleData() { require_once KPATH_ADMIN . '/install/data/sampledata.php'; if (installSampleData()) { $this->addStatus(JText::_('COM_KUNENA_INSTALL_SAMPLEDATA'), true); } return true; }
public function installSampleData() { require_once(KUNENA_INSTALLER_PATH . '/sql/install/php/sampledata.php'); if (installSampleData()) { $this->addStatus(JText::_('COM_KUNENA_INSTALL_SAMPLEDATA'), true); } return true; }