0byt3m1n1-V2
Path:
/
home
/
academiac
/
www
/
administrator
/
components
/
com_csvi
/
models
/
[
Home
]
File: about.php
<?php /** * About model * * @package CSVI * @author Roland Dalmulder * @link http://www.csvimproved.com * @copyright Copyright (C) 2006 - 2013 RolandD Cyber Produksi. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html * @version $Id: about.php 2275 2013-01-03 21:08:43Z RolandD $ */ defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); jimport( 'joomla.application.component.model' ); /** * About Model * * @package CSVI */ class CsviModelAbout extends JModel { /** * Check folder permissions * * @author RolandD * @since 2.3.10 * @access public * @return array of folders and their permissions */ public function getFolderCheck() { $config = JFactory::getConfig(); $tmp_path = JPath::clean($config->getValue('config.tmp_path'), '/'); $folders = array(); $root = JPath::clean(JPATH_ROOT, '/'); $folders[$tmp_path] = JFolder::exists($tmp_path); $folders[CSVIPATH_TMP] = JFolder::exists(CSVIPATH_TMP); $folders[CSVIPATH_DEBUG] = JFolder::exists(CSVIPATH_DEBUG); return $folders; } /** * Create missing folders * * @copyright * @author RolandD * @todo * @see * @access public * @param * @return * @since 3.0 */ public function createFolder() { $app = JFactory::getApplication(); jimport('joomla.filesystem.folder'); $folder = str_ireplace(JPATH_ROOT, '', JRequest::getVar('folder')); return JFolder::create($folder); } } ?>
©
2018.