REDROOM
PHP 8.0.30
Path:
Logout
Edit File
Size: 1.06 KB
Close
/home/certprox/template.certproxywizard.com/wp-content/plugins/hostinger-reach/src/Api/ResourceIdManager.php
Text
Base64
<?php namespace Hostinger\Reach\Api; use Hostinger\Reach\Setup\Encrypt; if ( ! defined( 'ABSPATH' ) ) { exit; } class ResourceIdManager { public const TRANSIENT_NAME = 'hostinger_reach_resource_id'; public const TRANSIENT_EXPIRATION_TIME = HOUR_IN_SECONDS; public const NON_EXISTENT_RESOURCE_ID = 'non_existent_resource_id'; public function store_resource_id( string $resource_id ): bool { return set_transient( self::TRANSIENT_NAME, $this->encrypt_resource_id( $resource_id ), self::TRANSIENT_EXPIRATION_TIME ); } public function clear_resource_id(): string { return delete_transient( self::TRANSIENT_NAME ); } public function get_resource_id(): string { return $this->decrypt_resource_id( get_transient( self::TRANSIENT_NAME, '' ) ); } public function encrypt_resource_id( string $resource_id ): string { return Encrypt::encrypt( $resource_id ); } public function decrypt_resource_id( string $resource_id ): string { return Encrypt::decrypt( $resource_id ); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 3 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Handlers
DIR
-
drwxr-xr-x
2026-06-14 00:14:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Routes
DIR
-
drwxr-xr-x
2026-06-14 00:14:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Webhooks
DIR
-
drwxr-xr-x
2026-06-14 00:14:19
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ApiKeyManager.php
2.63 KB
lrw-r--r--
2026-06-10 16:30:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ResourceIdManager.php
1.06 KB
lrw-r--r--
2026-06-10 16:30:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).