if (strcmp($post_stop, "stop") == 0) { stop_radio(); echo "Radio stop"; } if (strcmp($post_start, "start") == 0) { start_radio(); echo "Radio start"; } if ($post_laut != 0) { if ($post_laut > 100) { $post_laut = 100; } if ($post_laut < 0) { $post_laut = 0; } set_volume($post_laut); echo "Lautstaerke auf " . $post_laut . " geaendert."; } if ($post_sender != 0 && strcmp($post_change, "sender aendern") == 0) { change_sender($post_sender); echo "Sender wurde geaendert"; } if (strcmp($post_alarm, "alarm") == 0) { echo "Stunde: " . $post_hour; echo "Minute: " . $post_min; $send_string = "./mybash.sh {$post_hour} {$post_min} 1"; echo "</br>"; echo "{$send_string}"; shell_exec($send_string); } ?>
*/ save_current_volume(); $output = set_volume(0); } //Unmute the sounds system: if ($action == $VOL_UNMUTE) { if (get_volume() == 0) { dprint('unmuting'); set_volume($_COOKIE['level']); } else { dprint("skipped"); } } //Set the volume level: if ($action == $VOL_SET) { if (isset($_POST["level"])) { //Is the level variable also set? dprint('set ' . $_POST["level"]); set_volume($_POST["level"]); } } //Set the sound level 5% louder: if ($action == $VOL_UP) { dprint('+5%'); $output = shell_exec('sudo amixer set Master 5%+'); } //Set the sound level 5% lower: if ($action == $VOL_DOWN) { dprint('+5%'); $output = shell_exec('sudo amixer set Master 5%-'); }