Bestanden uploaden naar 'scripts'
This commit is contained in:
34
scripts/index.php
Normal file
34
scripts/index.php
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
#state 0 = not running
|
||||
#state 1 = now running
|
||||
#state 2 = Finished without errors
|
||||
#state 3 = Finished with errors
|
||||
#state B1 = Backup is running
|
||||
#State B2 = finished without errors
|
||||
*/
|
||||
|
||||
<?php
|
||||
|
||||
$shellout = shell_exec("bash -c 'source session-state; echo \$curstate'");
|
||||
if ($shellout==0) {
|
||||
header('Location: welcome.php');
|
||||
}
|
||||
if ($shellout==1) {
|
||||
header('Location: loader-import.php');;
|
||||
}
|
||||
|
||||
if ($shellout==2) {
|
||||
header('Location: success-import.php');;
|
||||
}
|
||||
if ($shellout==3) {
|
||||
header('Location: error-import.php');;
|
||||
}
|
||||
|
||||
if ($shellout==4) {
|
||||
header('Location: loader-backup.php');;
|
||||
}
|
||||
|
||||
if ($shellout==5) {
|
||||
header('Location: success-backup.php');;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user