}
/**
+ * php_self
+ *
* Creates an URL for the page calling this function, using either the PHP global
* REQUEST_URI, or the PHP global PHP_SELF with QUERY_STRING added.
*
/**
+ * get_location
+ *
* Determines the location to forward to, relative to your server.
* This is used in HTTP Location: redirects.
* If this doesnt work correctly for you (although it should), you can
/**
+ * Encrypts password
+ *
* These functions are used to encrypt the password before it is
* stored in a cookie. The encryption key is generated by
* OneTimePadCreate();
}
/**
- * Decrypt a password from the cookie, encrypted by OneTimePadEncrypt.
+ * Decrypts a password from the cookie
+ *
+ * Decrypts a password from the cookie, encrypted by OneTimePadEncrypt.
* This uses the encryption key that is stored in the session.
*
* @param string string the string to decrypt
/**
- * Randomize the mt_rand() function. Toss this in strings or integers
- * and it will seed the generator appropriately. With strings, it is
- * better to get them long. Use md5() to lengthen smaller strings.
+ * Randomizes the mt_rand() function.
+ *
+ * Toss this in strings or integers and it will seed the generator
+ * appropriately. With strings, it is better to get them long.
+ * Use md5() to lengthen smaller strings.
*
* @param mixed val a value to seed the random number generator
* @return void
/**
+ * Init random number generator
+ *
* This function initializes the random number generator fairly well.
* It also only initializes it once, so you don't accidentally get
* the same 'random' numbers twice in one session.
}
/**
+ * Creates encryption key
+ *
* Creates an encryption key for encrypting the password stored in the cookie.
* The encryption key itself is stored in the session.
*
* 4 = add numbers 0-9 to $chars
* @return string the random string
*/
-
function GenerateRandomString($size, $chars, $flags = 0) {
if ($flags & 0x1) {
$chars .= 'abcdefghijklmnopqrstuvwxyz';
/**
* Escapes special characters for use in IMAP commands.
+ *
* @param string the string to escape
* @return string the escaped string
*/
}
/**
+ * Trims array
+ *
* Trims every element in the array, ie. remove the first char of each element
* @param array array the array to trim
*/
}
/**
+ * Create compose link
+ *
* Returns a link to the compose-page, taking in consideration
* the compose_in_new and javascript settings.
* @param string url the URL to the compose page
}
/**
+ * Print variable
+ *
* sm_print_r($some_variable, [$some_other_variable [, ...]]);
+ *
* Debugging function - does the same as print_r, but makes sure special
* characters are converted to htmlentities first. This will allow
* values like <some@email.address> to be displayed.
- * The output is wrapped in <pre> and </pre> tags.
+ * The output is wrapped in <<pre>> and <</pre>> tags.
*
* @return void
*/
return $count;
}
-
-
$PHP_SELF = php_self();
-?>
+?>
\ No newline at end of file