ispapi.util
index
/var/www/whmcs-dev2/whmcs/ispapi/python/ispapi/util.py

 
Modules
       
base64
re
time
urllib

 
Functions
       
base64_decode(string)
Decodes data encoded with MIME base64
base64_encode(string)
Encodes data with MIME base64
This encoding is designed to make binary data survive transport through transport layers that are not 8-bit clean, such as mail bodies.
command_encode(command)
Encode the command array in a command-string
response_to_hash(response)
Convert the response string as a hash
response_to_list_hash(response)
Convert the response string as a list hash
sqltime(timestamp=None)
Convert the Unix-Timestamp to a SQL datetime
If no timestamp given, returns the current datetime
timesql(sqldatetime)
Convert the SQL datetime to Unix-Timestamp
url_decode(string)
Decodes URL-encoded string Decodes any %## encoding in the given string.
url_encode(string)
URL-encodes string
This function is convenient when encoding a string to be used in a query part of a URL