Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* db.php (db_get_assoc, db_get_assocs): new functions to ease use of new template...
[wfpl.git]
/
misc.php
diff --git
a/misc.php
b/misc.php
index
1737a86
..
b18abd4
100644
(file)
--- a/
misc.php
+++ b/
misc.php
@@
-67,15
+67,12
@@
function exec_pipe($command, $stdin) {
}
}
-
-
-
-
function unix_newlines($str) {
$str = str_replace("\r\n", "\n", $str);
return str_replace("\r", "\n", $str);
}
function unix_newlines($str) {
$str = str_replace("\r\n", "\n", $str);
return str_replace("\r", "\n", $str);
}
+
# return current year (all 4 digits)
function this_year() {
return strftime('%Y');
# return current year (all 4 digits)
function this_year() {
return strftime('%Y');
@@
-129,4
+126,8
@@
function ref(&$foo) {
return new stupid_reference($foo);
}
return new stupid_reference($foo);
}
+function &last(&$array) {
+ if(count($array)) return $array[count($array) - 1];
+}
+
?>
?>