$value) { switch ($option) { case 'e': case 's': case 'd': case 'i': case 'm': $notify .= " -{$option} \"{$value}\""; break; case 'x': case 't': $notify .= " -{$option}"; break; } } shell_exec("$notify add"); break; case 'get': echo shell_exec("$notify get"); break; case 'archive': shell_exec("$notify archive ".escapeshellarg($_POST['file'])); break; } ?>