示例#1
0
function showLogFile()
{
    $fid = JRequest::getVar('f');
    $option = JRequest::getCmd('option');
    jimport('joomla.filesystem.file');
    $filecontent = JFile::read(JPATH_ROOT . DS . 'logs' . DS . $fid);
    HTML_chem::showLogFile($filecontent);
}
示例#2
0
function pakageDeleteProcess()
{
    $todelete = JRequest::getVar('itemtodelete');
    $filetodelete = JRequest::getVar('filetodelete', null, 'FILES');
    if ($filetodelete['name'] !== '') {
        $list_from_file = file($filetodelete['tmp_name']);
    }
    if ($todelete !== '') {
        $list_from_field = explode(PHP_EOL, $todelete);
    }
    print_r($list_from_file);
    exit;
    //TODO: Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in Z:\home\chem\www\administrator\components\com_chem\admin.chem.php on line 389
    if ($list_from_field !== '' && !is_null($list_from_file)) {
        $all_list = array_merge_recursive($list_from_field, $list_from_file);
    }
    if ($list_from_field !== '' && $list_from_file == '') {
        $all_list = $list_from_field;
    }
    if ($list_from_field == '' && $list_from_file !== '') {
        $all_list = $list_from_file;
    }
    HTML_chem::pakageDeleteProcess($all_list);
}