summaryrefslogtreecommitdiffstats
path: root/functions.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-04-06 22:25:44 -0700
committerArun Persaud <arun@nubati.net>2008-04-07 22:50:33 -0700
commit42aae8a38789ec102478db6dc58795c4b095546e (patch)
tree35ce04dfef884f798af74536d9596dd04ae4fcd1 /functions.php
parent661cdf100d59bb0d7ee3ade0d392efa68aba1a19 (diff)
downloade-DoKo-42aae8a38789ec102478db6dc58795c4b095546e.tar.gz
e-DoKo-42aae8a38789ec102478db6dc58795c4b095546e.tar.bz2
e-DoKo-42aae8a38789ec102478db6dc58795c4b095546e.zip
CLEANUP: started some database cleanup and added some more comments
instead of having a different function for each possible way to query for example the full name of a player, there is now only one function with a switch statement that handles the different cases. Still not 100% perfect, but I think nicer to read than before. Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index d083593..af0cc8e 100644
--- a/functions.php
+++ b/functions.php
@@ -58,6 +58,9 @@ function mymail($To,$Subject,$message,$header="")
if($debug)
{
+ /* display email on screen,
+ * change txt -> html
+ */
$message = str_replace("\n","<br />\n",$message);
$message = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",
"<a href=\"\\0\">\\0</a>", $message);