Added example env
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
fv
|
|
||||||
@@ -7,7 +7,7 @@ use RomhackPlazaFS\RomhackPlazaFS;
|
|||||||
|
|
||||||
defined( 'ROMHACKPLAZA_FS' ) || exit;
|
defined( 'ROMHACKPLAZA_FS' ) || exit;
|
||||||
|
|
||||||
class Downloadfilelist extends Abstract_Endpoint {
|
class Entryfilelist extends Abstract_Endpoint {
|
||||||
|
|
||||||
private int $post_id;
|
private int $post_id;
|
||||||
private string $custom_post_type;
|
private string $custom_post_type;
|
||||||
@@ -42,6 +42,7 @@ class Generatetestkey extends Abstract_Endpoint {
|
|||||||
|
|
||||||
$end = base64_encode( $json ) . "|" . $sig;
|
$end = base64_encode( $json ) . "|" . $sig;
|
||||||
RomhackPlazaFS::success_response( [ 'zeus' => $end ] );
|
RomhackPlazaFS::success_response( [ 'zeus' => $end ] );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ trait SecurityTrait {
|
|||||||
if( count( $enc_info ) < 2 )
|
if( count( $enc_info ) < 2 )
|
||||||
throw new \Exception();
|
throw new \Exception();
|
||||||
} catch ( \Exception $e ){
|
} catch ( \Exception $e ){
|
||||||
RomhackPlazaFS::fatal_stop( 400, "There are some missing informations for reaching Zeus...");
|
RomhackPlazaFS::fatal_stop( 400, "There are some missing informations for reaching Zeus..." );
|
||||||
}
|
}
|
||||||
|
|
||||||
$json = base64_decode( $enc_info[0] );
|
$json = base64_decode( $enc_info[0] );
|
||||||
|
|||||||
Reference in New Issue
Block a user