json content
This commit is contained in:
2
api.php
2
api.php
@@ -23,6 +23,8 @@ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
||||
OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
header('Content-Type: application/json');
|
||||
|
||||
|
||||
/**
|
||||
* @api {get} /api.php 01. Basic Information
|
||||
|
||||
0
include/Blacklist.php.save
Normal file
0
include/Blacklist.php.save
Normal file
31
include/Blacklist.php.save.1
Normal file
31
include/Blacklist.php.save.1
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Arionum;
|
||||
|
||||
/**
|
||||
* Class Blacklist
|
||||
*/
|
||||
final class Blacklist
|
||||
{
|
||||
/**
|
||||
* The official list of blacklisted public keys
|
||||
*/
|
||||
public const PUBLIC_KEYS = [
|
||||
// phpcs:disable Generic.Files.LineLength
|
||||
'PZ8Tyr4Nx8MHsRAGMpZmZ6TWY63dXWSCvVQcHHCNLfiP9LmzWhhpCHx39Bhc67P5HMQM9cctEFvcsUdgrkGqy18taz9ZMrAGtq7NhBYpQ4ZTHkKYiZDaSUqQ' => 'Faucet Abuser',
|
||||
'PZ8Tyr4Nx8MHsRAGMpZmZ6TWY63dXWSCxYDeQHk7Ke66UB2Un3UMmMoJ7RF5vDZXihdEXi8gk8ZBRAi35aFrER2ZLX1mgND7sLFXKETGTjRYjoHcuRNiJN1g' => 'Octaex Exchange',
|
||||
|
||||
// phpcs:enable
|
||||
];
|
||||
|
||||
/**
|
||||
* Check if a public key is blacklisted
|
||||
*
|
||||
* @param string $publicKey
|
||||
* @return bool
|
||||
*/
|
||||
public static function checkPublicKey(string $publicKey): bool
|
||||
{
|
||||
return key_exists($publicKey, static::PUBLIC_KEYS);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user