*/
/**
- * Path for SquirrelMail required files.
- * @ignore
+ * Include the SquirrelMail initialization file.
*/
-define('SM_PATH','../');
-
-/* SquirrelMail required files. */
-require_once(SM_PATH . 'include/validate.php');
+include('../include/init.php');
/* get those globals into gear */
global $color;
$passed_ent_id = 0;
if ( ! sqgetGlobalVar('mailbox',$mailbox,SQ_GET) ||
! sqgetGlobalVar('passed_id',$passed_id,SQ_GET)) {
- error_box(_("Invalid URL"),$color);
+ error_box(_("Invalid URL"));
} else {
$passed_id= (int) $passed_id;
$view_unsafe_images = (bool) $_GET['view_unsafe_images'];