+ // Compile {?some_var?} to getConfig('some_var')
+ preg_match_all('/\{\?(([a-zA-Z0-9-_]+)*)\?\}/', $code, $matches);
+
+ // Some entries found?
+ if ((count($matches) > 0) && (count($matches[0]) > 0)) {
+ // Replace all matches
+ foreach ($matches[0] as $key => $match) {
+ // Replace it
+ //* DEBUG: */ if ($key == 0) { print '<pre>'; debug_print_backtrace(); print '</pre>'; }
+ //* DEBUG: */ print $match.'='.$matches[1][$key].' ('.$key.')<br />';
+ $code = str_replace($match, getConfig($matches[1][$key]), $code);
+ } // END - foreach
+ } // END - if
+