5.3 버전 내용 적용
This commit is contained in:
32
plugin/social/includes/g5_endpoint_class.php
Normal file
32
plugin/social/includes/g5_endpoint_class.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
|
||||
class G5_Hybrid_Endpoint extends Hybrid_Endpoint
|
||||
{
|
||||
protected function processAuthStart(){
|
||||
try {
|
||||
parent::processAuthStart();
|
||||
}
|
||||
catch( Exception $e ){
|
||||
$this->dieError( "412 Precondition Failed", $e->getMessage(), $e );
|
||||
}
|
||||
}
|
||||
|
||||
protected function processAuthDone()
|
||||
{
|
||||
try {
|
||||
parent::processAuthDone();
|
||||
}
|
||||
catch( Exception $e ){
|
||||
$this->dieError( "410 Gone", $e->getMessage(), $e );
|
||||
}
|
||||
}
|
||||
|
||||
public function dieError( $code, $message, $e )
|
||||
{
|
||||
$get_error = $message;
|
||||
include_once(G5_SOCIAL_LOGIN_PATH.'/error.php');
|
||||
die();
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user