summaryrefslogtreecommitdiffstats
path: root/code/util.inc.php
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-01-07 02:30:00 +0100
committerneoraider <devnull@localhost>2006-01-07 02:30:00 +0100
commit61f7b4cc39a399a16298453acbe5a8f49ad0513d (patch)
tree0689466391e396e8e62c883994148f09f60c467b /code/util.inc.php
parenta89ac4fda6c7cab6cace4078491c29f215213ab2 (diff)
downloadneon-61f7b4cc39a399a16298453acbe5a8f49ad0513d.tar
neon-61f7b4cc39a399a16298453acbe5a8f49ad0513d.zip
Hmm... die Content-Handler sind jetzt ansatzweise implementiert.
Diffstat (limited to 'code/util.inc.php')
-rw-r--r--code/util.inc.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/code/util.inc.php b/code/util.inc.php
new file mode 100644
index 0000000..275d3c7
--- /dev/null
+++ b/code/util.inc.php
@@ -0,0 +1,14 @@
+<?PHP
+ if(!defined('UTIL_INC')) {
+ define('UTIL_INC', 1);
+
+ function Subst($string, $subst = array()) {
+ $tr['$$'] = '$';
+
+ foreach($subst as $key => $value)
+ $tr['$' . $key] = $value;
+
+ return strtr($string, $tr);
+ }
+ }
+?>