X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffunctions.php;h=01dd840977e15583dbfaf171e096e672cf0d025f;hp=af966907f678950999a0501f479ee3d47b96c567;hb=e72031bcfdcd8e91f62bec6cc88f36b7a11d9221;hpb=d22205247313f4b67db5c9aa3aac07cd9d073bce diff --git a/inc/functions.php b/inc/functions.php index af966907f6..01dd840977 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1978,7 +1978,7 @@ function VALIDATE_URL ($URL, $compile=true) { return isUrlValid($URL); } -// +// Generate a list of administrative links to a given userid function MEMBER_ACTION_LINKS ($uid, $status = "") { // Define all main targets $TARGETS = array("del_user", "edit_user", "lock_user", "add_points", "sub_points"); @@ -2015,13 +2015,6 @@ function MEMBER_ACTION_LINKS ($uid, $status = "") { return $OUT; } -// Function for backward-compatiblity -// @TODO Can this function be deprecated? -function ADD_CATEGORY_TABLE ($MODE, $return=false) { - // Load it from the register extension - return REGISTER_ADD_CATEGORY_TABLE ($MODE, $return); -} - // Generate an email link function CREATE_EMAIL_LINK ($email, $table = "admins") { // Default email link (INSECURE! Spammer can read this by harvester programs) @@ -2045,6 +2038,7 @@ function CREATE_EMAIL_LINK ($email, $table = "admins") { // Return email link return $EMAIL; } + // Generate a hash for extra-security for all passwords function generateHash ($plainText, $salt = "") { global $_SERVER; @@ -2095,7 +2089,8 @@ function generateHash ($plainText, $salt = "") { // Return hash return $salt.sha1($salt.$plainText); } -// + +// Scramble a string function scrambleString($str) { // Init $scrambled = ""; @@ -2126,7 +2121,8 @@ function scrambleString($str) { //* DEBUG: */ echo "***Scrambled=".$scrambled."***
"; return $scrambled; } -// + +// De-scramble a string scrambled by scrambleString() function descrambleString($str) { // Scramble only 40 chars long strings if (strlen($str) != 40) return $str; @@ -2149,7 +2145,8 @@ function descrambleString($str) { //* DEBUG: */ echo "+++Original=".$orig."+++
"; return $orig; } -// + +// Generated a "string" for scrambling function genScrambleString ($len) { // Prepare array for the numbers $scrambleNumbers = array();