]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Rewrites/fixes for broken template cache, the actual value was rendered but instead...
[mailer.git] / inc / wrapper-functions.php
index dbd6e713f4c0173f6106b82e8dc2edd9852ded04..a184c20331912e39e1c1e0651c62ed124c88bd51 100644 (file)
@@ -946,5 +946,27 @@ function preCompileCode ($code, $template = '', $compiled = false, $full = true,
        return compileCode($code, false, true, $full);
 }
 
+// Setter for HTTP status
+function setHttpStatus ($status) {
+       $GLOBALS['http_status'] = (string) $status;
+}
+
+// Getter for HTTP status
+function getHttpStatus () {
+       return $GLOBALS['http_status'];
+}
+
+// Compiles config entries for SQL queries
+function compileSqlConfig ($sqlString) {
+       // Replace all
+       foreach (array('_MYSQL_PREFIX', '_TABLE_TYPE') as $configEntry) {
+               // "Compile" it
+               $sqlString = str_replace('{?' . $configEntry . '?}', getConfig($configEntry), $sqlString);
+       } // END - foreach
+
+       // Return the compiled SQL string
+       return $sqlString;
+}
+
 // [EOF]
 ?>