alomtools.php
ALOM Tools
Tags
Table of Contents
- ALOM_VERSION = '2.8.3'
- ALOM_VERSION_NUMBER = 20803
- is_alom_obfuscated() : bool
- Check if input file is an obfuscated file by alom
- alom_protect() : bool
- Alom auto protection method
- alom_get_license_code() : string
- Alom get license code from license file
- alom_exists_license_code() : bool
- Alom check if exists license code in license file
- alom_insert_license_code() : bool
- Alom insert license code with license file
- alom_minify() : string
- Alom minify contents
- alom_phpify() : string
- Alom phpify contents
- alom_obfuscate() : string
- Alom obfuscate contents
- alom_put() : int
- Alom file put script
- alom_minify_into() : bool
- Alom minify contents into file
- alom_obfuscate_into() : bool
- Alom obfuscate contents into file
- alom_license_key_generate() : string
- Alom generate license key
- alom_license_systemhash_generate() : string
- Alom generate systemhash for license code
- alom_license_code_encrypt() : string
- Alom license code generator
- alom_license_code_decrypt() : array<string|int, mixed>
- Alom license code decryption
- alom_includekey_generate() : string
- Alom include key generate
- alom_includekey_encrypt() : string
- Alom include key encrypt
- alom_includekey_decrypt() : string
- Alom include key decrypt
- alom_includekey_encrypt_into() : int
- Alom include key encrypt into file
- alom_includekey_decrypt_into() : int
- Alom include key decrypt into file
- alom_prepare_oscript() : bool
- Alom oscript web server (send to output)
- alom_exec_oscript() : string
- Alom oscript client
- alom_obfuscate_dir() : mixed
- Alom directory obfuscator obfuscate all php files in directory into another directory
- alom_autogit() : bool
- Alom auto update files from github
Constants
ALOM_VERSION
public
mixed
ALOM_VERSION
= '2.8.3'
ALOM_VERSION_NUMBER
public
mixed
ALOM_VERSION_NUMBER
= 20803
Functions
is_alom_obfuscated()
Check if input file is an obfuscated file by alom
is_alom_obfuscated(string $file) : bool
Parameters
- $file : string
Return values
bool —alom_protect()
Alom auto protection method
alom_protect(string $file[, array<string|int, mixed> $settings = array() ]) : bool
Parameters
- $file : string
- $settings : array<string|int, mixed> = array()
-
= []
Tags
Return values
bool —true if now obfuscatored and false if before obfuscatored or file dont exists
alom_get_license_code()
Alom get license code from license file
alom_get_license_code(string $file) : string
Parameters
- $file : string
Return values
string —or false if licenese code do not exists
alom_exists_license_code()
Alom check if exists license code in license file
alom_exists_license_code(string $file) : bool
Parameters
- $file : string
Return values
bool —alom_insert_license_code()
Alom insert license code with license file
alom_insert_license_code(string $file, mixed $license_code) : bool
Parameters
- $file : string
- $license_code : mixed
Return values
bool —Return false if license file do not need license code or invalid license code
alom_minify()
Alom minify contents
alom_minify(string|callable $code) : string
Parameters
- $code : string|callable
Return values
string —minified script
alom_phpify()
Alom phpify contents
alom_phpify(string|callable $code) : string
Parameters
- $code : string|callable
Return values
string —phpified script
alom_obfuscate()
Alom obfuscate contents
alom_obfuscate(string|callable $code[, array<string|int, mixed> $settings = [] ]) : string
Parameters
- $code : string|callable
- $settings : array<string|int, mixed> = []
-
= []
Return values
string —obfuscated code
alom_put()
Alom file put script
alom_put(string $file, string|callable $code) : int
Parameters
- $file : string
- $code : string|callable
Return values
int —alom_minify_into()
Alom minify contents into file
alom_minify_into(string $code, string $file) : bool
Parameters
- $code : string
- $file : string
Return values
bool —alom_obfuscate_into()
Alom obfuscate contents into file
alom_obfuscate_into(string|callable $code, string $file[, array<string|int, mixed> $settings = [] ]) : bool
Parameters
- $code : string|callable
- $file : string
- $settings : array<string|int, mixed> = []
-
= []
Return values
bool —alom_license_key_generate()
Alom generate license key
alom_license_key_generate([string $init = null ]) : string
Parameters
- $init : string = null
-
= Random
Return values
string —alom_license_systemhash_generate()
Alom generate systemhash for license code
alom_license_systemhash_generate([array<string|int, mixed> $datas = array() ]) : string
Parameters
- $datas : array<string|int, mixed> = array()
-
[ string $uname, string $username, string $ipaddr, string $hostname ] = []
Return values
string —alom_license_code_encrypt()
Alom license code generator
alom_license_code_encrypt(string $systemhash, string $license_key[, int $expiration = 0x7fffffff ], int $ready) : string
Parameters
- $systemhash : string
- $license_key : string
- $expiration : int = 0x7fffffff
-
= 0x7fffffff Unix time
- $ready : int
-
= 0 Unix time
Return values
string —license code
alom_license_code_decrypt()
Alom license code decryption
alom_license_code_decrypt(string $license_code, string $license_key) : array<string|int, mixed>
Parameters
- $license_code : string
- $license_key : string
Return values
array<string|int, mixed> —or false if license code invalid
alom_includekey_generate()
Alom include key generate
alom_includekey_generate([string $init = null ]) : string
Parameters
- $init : string = null
-
= Random
Return values
string —alom_includekey_encrypt()
Alom include key encrypt
alom_includekey_encrypt(string|callable $code, string $key) : string
Parameters
- $code : string|callable
- $key : string
Return values
string —alom_includekey_decrypt()
Alom include key decrypt
alom_includekey_decrypt(string $code, string $key) : string
Parameters
- $code : string
- $key : string
Return values
string —alom_includekey_encrypt_into()
Alom include key encrypt into file
alom_includekey_encrypt_into(string|callable $code, string $file, string $key) : int
Parameters
- $code : string|callable
- $file : string
- $key : string
Return values
int —alom_includekey_decrypt_into()
Alom include key decrypt into file
alom_includekey_decrypt_into(string $code, string $file, string $key) : int
Parameters
- $code : string
- $file : string
- $key : string
Return values
int —alom_prepare_oscript()
Alom oscript web server (send to output)
alom_prepare_oscript(string $file, string $license_key[, string $password = '' ]) : bool
Parameters
- $file : string
-
obfuscated script with license_code
- $license_key : string
- $password : string = ''
-
= ''
Return values
bool —alom_exec_oscript()
Alom oscript client
alom_exec_oscript(string $url[, string $password = '' ]) : string
Parameters
- $url : string
- $password : string = ''
-
= ''
Tags
Return values
string —oscript code or false if oscript url is invalid
alom_obfuscate_dir()
Alom directory obfuscator obfuscate all php files in directory into another directory
alom_obfuscate_dir(string $from, string $to[, array<string|int, mixed> $settings = [] ][, bool $copy = false ]) : mixed
Parameters
- $from : string
-
directory
- $to : string
-
directory
- $settings : array<string|int, mixed> = []
-
= []
- $copy : bool = false
-
= false Copy non php files
Return values
mixed —alom_autogit()
Alom auto update files from github
alom_autogit([string $path = '.' ]) : bool
Parameters
- $path : string = '.'
-
= '.'