403Webshell
Server IP : 172.67.178.83  /  Your IP : 216.73.217.141
Web Server : Apache
System : Linux hosting01.arsenalhost.com 4.18.0-425.13.1.lve.el8.x86_64 #1 SMP Mon Feb 27 15:23:24 EST 2023 x86_64
User : corbizre ( 1013)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/corbizre/gotofindhomes.com3/components/LogSystem/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/corbizre/gotofindhomes.com3/components/LogSystem/LogSystem.php
<?php
/**
 * Documentation
 * @author [email protected]
 * @category
 * @package
 * @subpackage
 * @copyright  Copyright (c) 2005-2009 ITCrimea Ukraine Inc. (http://www.itcrimea.com)
 * @license
 */
class LogSystem extends System_Db_Object
{

    const SEVERITY_EMERG    = 0;  // Emergency: system is unusable
    const SEVERITY_ALERT    = 1;  // Alert: action must be taken immediately
    const SEVERITY_CRIT     = 2;  // Critical: critical conditions
    const SEVERITY_ERR      = 3;  // Error: error conditions
    const SEVERITY_WARN     = 4;  // Warning: warning conditions
    const SEVERITY_NOTICE   = 5;  // Notice: normal but significant condition
    const SEVERITY_INFO     = 6;  // Informational: informational messages
    const SEVERITY_DEBUG    = 7;  // Debug: debug messages
    
    const STATUS_UNREVIEWED = 0;  // Unreviewed:
    const STATUS_REVIEWED   = 1;  // Reviewed:

    /**
     * Insert new log
     * @author [email protected]
     * @param string $System
     * @param string $Subsystem
     * @param integer $Subsystem_ID
     * @param integer $Severity
     * @param string|array $Message
     * @param string|array $Details
     * @return object
     */
    public static function addLog($Reporter,$System,$Subsystem,$Subsystem_ID,$Severity,$Message,$Details=null)
    {
        if (!$Details) $Details = '';
        $tableLogSystem = new LogSystem_Table();
        $objectLogSystem = $tableLogSystem->fetchNew();
        $objectLogSystem->Reporter     = strval($Reporter);
        $objectLogSystem->System       = strval($System);
        $objectLogSystem->Subsystem    = strval($Subsystem);
        $objectLogSystem->Subsystem_ID = intval($Subsystem_ID);
        $objectLogSystem->Severity     = intval($Severity);
        $objectLogSystem->Message      = is_array($Message) ? serialize($Message) : strval($Message);
        $objectLogSystem->Details      = is_array($Details) ? serialize($Details) : strval($Details);
        $objectLogSystem->save();
        return $objectLogSystem;
    }
    
    public static function getSeverityText($Severity)
    {
        switch ($Severity) {
           case LogSystem::SEVERITY_EMERG:  return 'Emergency'; break;
           case LogSystem::SEVERITY_ALERT:  return 'Alert'; break;
           case LogSystem::SEVERITY_CRIT:   return 'Critical'; break;
           case LogSystem::SEVERITY_ERR:    return 'Error'; break;
           case LogSystem::SEVERITY_WARN:   return 'Warning'; break;
           case LogSystem::SEVERITY_NOTICE: return 'Notice'; break;
           case LogSystem::SEVERITY_INFO:   return 'Informational'; break;
           case LogSystem::SEVERITY_DEBUG:  return 'Debug'; break;
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit