index 2901f8d2a6675e6a9109bcd967bc43111b21ddc3..6e1b51b5fa4bcca2ecbdfd887f536d46fd216d25 100644 (file)
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+define ("LOCALE_DIR", dirname(dirname(__FILE__))."/locale/compiled");
+
function gosaRaiseError($errno, $errstr, $errfile, $errline)
{
global $error_collector,$config, $error_collector_mailto;
"*** PHP error information ***\n\n");
}
- if (isset($_SESSION['js']) && $_SESSION['js']==FALSE){
+ if (session::is_set('js') && session::get('js')==FALSE){
$error_collector= "<div>";
} else {
$error_collector= "
}
+function prepare4mailbody($string)
+{
+ $string = html_entity_decode($string);
+
+ $from = array(
+ "/%/",
+ "/ /",
+ "/\n/",
+ "/\r/",
+ "/!/",
+ "/#/",
+ "/\*/",
+ "/\//",
+ "/</",
+ "/>/",
+ "/\?/",
+ "/\"/");
+
+ $to = array(
+ "%25",
+ "%20",
+ "%0A",
+ "%0D",
+ "%21",
+ "%23",
+ "%2A",
+ "%2F",
+ "%3C",
+ "%3E",
+ "%3F",
+ "%22");
+
+ $string = preg_replace($from,$to,$string);
+
+ return($string);
+}
+
+
function dummy_error_handler()
{
}
ini_set("track_vars",1);
ini_set("display_errors",1);
ini_set("report_memleaks",1);
-ini_set("include_path",".:$BASE_DIR/include:$BASE_DIR/include/php_writeexcel");
+ini_set("include_path",".:$BASE_DIR/include:$BASE_DIR/include/utils/excel");
/* Do smarty setup */
require("smarty/Smarty.class.php");