PiRadio v. ".$piradio_version.""; ?>
config


0) { echo "Error: " . $_FILES["file"]["error"] . "
"; } else { echo "File: "; echo $_FILES["file"]["name"] ; echo " loaded.
\r\n"; move_uploaded_file($_FILES["file"]["tmp_name"], "/tmp/piradio.set"); $tablica = explode('.', $_FILES["file"]["name"]); $ostatni = count($tablica); if($tablica[$ostatni-1] == 'set') { $end = shell_exec('sudo ./scripts/restore_config.sh unpack'); if (file_exists("/tmp/radiod/config/version")) { echo "Setting new configuration.
\r\n"; $end = shell_exec('sudo ./scripts/restore_config.sh apply'); echo "O.K.
\r\n"; $end = shell_exec('sudo ./scripts/reboot.sh'); /* UWAGA! Folder z plikami uruchamianymi przez sudo musi byc dopisany w pliku /etc/sudoers */ echo "Reboot in progress.
\r\n"; echo "Wait!
\r\n"; echo "\r\n"; } else { echo "This is not PiRadio config file!!!
\r\n"; echo "\r\n"; } } else { unlink("/tmp/piradio.set"); echo "This is wrong file!
\r\n"; echo "\r\n"; } } } else { $end = shell_exec('sudo ./scripts/make_config_file.sh'); echo "Backup PiRadio configuration
\r\n"; echo "
\r\nClick the 'Backup' button to download the configuration backup file to your computer.\r\n
\r\n"; echo ''; echo "
\r\n"; echo "Restore PiRadio configuration
\r\n"; echo "
After restoringing the reboot will be performed!
\r\n"; echo "
\r\n"; echo "
\r\n"; echo " \r\n"; echo "
\r\n"; echo " \r\n"; echo "
\r\n"; } ?>