* * @since 2.0.14 * @version 2.1 * @package jTips * * Description: list jTips files and directories that cannot be written to */ global $database, $jTips, $mosConfig_absolute_path; $header = array($jLang['_ADMIN_UPGRADER_TYPE'], $jLang['_ADMIN_UPGRADER_LOCATION'], $jLang['_ADMIN_UPGRADER_PERMISSIONS'], $jLang['_ADMIN_UPGRADER_OCTAL'], $jLang['_ADMIN_UPGRADER_OWNER']); $formData = array('title' => $jLang['_ADMIN_UPGRADER_TITLE'], 'editTask' => '', 'module' => 'Upgrade', 'icon' => 'install'); $files = filesWritable(true); $data = array(); $index = 0; if (is_array($files) and !empty($files)) { foreach ($files as $f) { $file = $mosConfig_absolute_path . '/' . $f; $owner = posix_getpwuid(fileowner($file)); if (is_dir($file)) { $img = 'sections.png'; $title = $jLang['_ADMIN_UPGRADER_DIR_TITLE']; $tip = $jLang['_ADMIN_UPGRADER_DIR_INFO']; } else { $img = 'document.png'; $title = $jLang['_ADMIN_UPGRADER_FILE_TITLE']; $tip = $jLang['_ADMIN_UPGRADER_FILE_INFO']; } $data[$index] = array(jTipsToolTip($tip, $title, '', $img), $f, getFilePermissions($file), substr(sprintf('%o', fileperms($file)), -3), $owner['name']); $index++; } } jTipsAdminDisplay::ListView($formData, $header, $data, null, '', null, $jLang['_ADMIN_UPGRADER_LIST_INFO']);
} $tpl->css = jTipsStripslashes($css); $tpl->display(); */ global $jLang; $formData = array('title' => $jLang['_ADMIN_CSS_TITLE'], 'editTask' => 'edit', 'module' => 'Styles', 'icon' => 'css'); $header = array('', 'Filename', 'Date Modified', $jLang['_ADMIN_UPGRADER_PERMISSIONS']); global $mosConfig_absolute_path; if (isJoomla15()) { $dir = $mosConfig_absolute_path . DS . 'components' . DS . 'com_jtips' . DS . 'css' . DS; jimport('joomla.filesystem.folder'); $files = JFolder::files($dir); } else { $dir = $mosConfig_absolute_path . '/components/com_jtips/css/'; $files = findAllFiles($dir); } // get the key of the index.html file $flipped = array_flip($files); unset($files[$flipped['index.html']]); sort($files); $data = array(); $index = 0; if (is_array($files) and !empty($files)) { foreach ($files as $f) { $file = $mosConfig_absolute_path . $f; $data[$index] = array(makeListLink($f, $index), date('Y-m-d H:i:s', filemtime($dir . $f)), getFilePermissions($dir . $f)); $index++; } } jTipsAdminDisplay::ListView($formData, $header, $data, null);
;" href='<?php echo $self; ?> ?open=<?php echo $dir . $file; ?> '><?php echo $file; ?> </a></td> <td class='info'><?php echo HumanReadableFilesize(filesize($dir . $file)); ?> </td> <td class='info'><?php echo getFilePermissions($dir . $file); ?> </td> <td class="info"><a href="<?php echo $self; ?> ?delete=<?php echo $dir . $file; ?> ">Delete</a></td> <td class="info"><a href="<?php echo $self; ?> ?rename=<?php echo $dir . $file; ?>
* @copyright Copyright © 2009, jTips * @license Commercial - See website for details * * @since 2.1 - 02/10/2008 * @version 2.1 * @package jTips * * Description: build a paginated list of customisation files */ global $jLang, $database, $mosConfig_absolute_path, $mainframe; $mainframe->addCustomHeadTag("<script type='text/javascript' src='components/com_jtips/modules/Customisations/List.js'></script>"); $formData = array('title' => $jLang['_ADMIN_DASH_CUSTOMISATION_LIST'], 'editTask' => 'edit', 'module' => 'Customisations', 'icon' => 'customisations'); $currentDir = jTipsGetParam($_REQUEST, 'filter_order_Dir', 'asc'); if ($currentDir == 'asc') { $dir = 'desc'; } else { $dir = 'asc'; } //The header row $header = array('', 'File Path', 'Permissions', 'Owner'); $path = $mosConfig_absolute_path . '/components/com_jtips/custom/'; $data = $files = array(); if (file_exists($path)) { $fileList = findAllFiles($path, $files); $index = 0; foreach ($fileList as $file) { $owner = posix_getpwuid(fileowner($file)); $data[] = array(makeListLink(str_replace($path, '', $file), $index++), getFilePermissions($file), $owner['name']); } } jTipsAdminDisplay::ListView($formData, $header, $data, null, '', null, $jLang['_ADMIN_CUSTOMISATIONS_INFO']);