}
}
+//set the timezone, php 5.3+ problem. http://atutor.ca/atutor/mantis/view.php?id=4409
+date_default_timezone_set('UTC');
+
// define as constants. more constants are defined in include/constants.inc.php
define('EMAIL', $_config['contact_email']);
define('SITE_NAME', $_config['site_name']);
return $rows[0]['dir_name'];
}
+/**
+ * Convert all '&' to '&' from the input
+ * @param string any string input, mainly URLs.
+ * @return input with & replaced to '&'
+ * @author Harris Wong
+ * @date Oct 7, 2010
+ */
+function convertAmp($input){
+ $input = str_replace('&', '&', $input); //convert everything to '&' first
+ return str_replace('&', '&', $input);
+}
+
?>