Translated strings in plugin to gettext.
[squirrelmail.git] / plugins / newmail / testsound.php
index 4f2331bdbcb0ddeb83e823aec62b9a9f3e6aa5a2..b52c365103435ea3b916ace7b3dfb7b4af7cc030 100644 (file)
@@ -3,11 +3,9 @@
 /**
  * testsound.php
  *
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * 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$
  */
 
@@ -17,7 +15,12 @@ define('SM_PATH','../../');
 require_once(SM_PATH . 'include/validate.php');
 require_once(SM_PATH . 'functions/html.php');
 
-$sound = (!isset($sound) ? 'Click.wav' : $sound);
+if (!isset($_GET['sound'])) {
+    $sound = 'Click.wav';
+} else {
+    $sound = $_GET['sound'];
+}
+
 $sound = str_replace('../plugins/newmail/', '', $sound);
 $sound = str_replace('../', '', $sound);
 $sound = str_replace("..\\", '', $sound);