summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
authorPaul Merrill <napalminc@gmail.com>2010-11-04 04:41:52 -0700
committerPaul Merrill <napalminc@gmail.com>2010-11-04 04:41:52 -0700
commit5805de70b42d8674bcfd96cf57192f6c4a641d2c (patch)
treedb6e1c0ba9ba717200fe2600edf3e80d53a64882 /inc/functions.php
parent455f0c2602350f229e6f58d624790c3d7448a68b (diff)
Reformatted error(), moved commaize()
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/inc/functions.php b/inc/functions.php
index e251c054..10f23e7f 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -8,11 +8,6 @@
array_values($replaces), $str);
}
- function commaize($n) {
- $n = strval($n);
- return (intval($n) < 1000) ? $n : commaize(substr($n, 0, -3)) . ',' . substr($n, -3);
- }
-
function sql_open() {
global $sql;
$sql = @mysql_connect(MY_SERVER, MY_USER, MY_PASSWORD) or error('Database error.');
@@ -517,3 +512,4 @@
return chr($n & 255).chr(($n >> 8) & 255);
}
?>
+