<?php
- /**
- ** newmails_opt.php
- **
- ** Copyright (c) 1999-2002 The SquirrelMail Project Team
- ** Licensed under the GNU GPL. For full terms see the file COPYING.
- **
- ** Displays all options relating to new mail sounds
- **
- ** $Id$
- **
- **/
+/**
+ * newmails_opt.php
+ *
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Displays all options relating to new mail sounds
+ *
+ * $Id$
+ */
- chdir('..');
- define('SM_PATH','../');
+define('SM_PATH','../../');
- /* SquirrelMail required files. */
- require_once(SM_PATH . 'include/validate.php');
- require_once(SM_PATH . 'functions/page_header.php');
- require_once(SM_PATH . 'functions/display_messages.php');
- require_once(SM_PATH . 'functions/imap.php');
- require_once(SM_PATH . 'functions/array.php');
- require_once(SM_PATH . 'include/load_prefs.php');
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/page_header.php');
+require_once(SM_PATH . 'functions/display_messages.php');
+require_once(SM_PATH . 'functions/imap.php');
+require_once(SM_PATH . 'include/load_prefs.php');
displayPageHeader($color, 'None');
// Iterate sound files for options
- $d = dir('../plugins/newmail/sounds');
+ $d = dir(SM_PATH . 'plugins/newmail/sounds');
while($entry=$d->read()) {
$fname = $d->path . "/" . $entry;
if ($entry != '..' && $entry != '.') {