diff --git a/archive/ca.turbo-2023.02.02-x86_64-1.txz b/archive/ca.turbo-2023.02.02-x86_64-1.txz new file mode 100644 index 0000000..49cb333 Binary files /dev/null and b/archive/ca.turbo-2023.02.02-x86_64-1.txz differ diff --git a/plugins/ca.turbo.plg b/plugins/ca.turbo.plg index bf5b367..90e016a 100644 --- a/plugins/ca.turbo.plg +++ b/plugins/ca.turbo.plg @@ -2,8 +2,8 @@ - - + + @@ -13,6 +13,9 @@ +###2023.02.02 +- PHP8 compliance + ###2022.09.16 - Remove schedule icon missing on later versions of Unraid diff --git a/source/ca.turbo/usr/local/emhttp/plugins/ca.turbo/Turbo.page b/source/ca.turbo/usr/local/emhttp/plugins/ca.turbo/Turbo.page index 061e480..0f63ddd 100644 --- a/source/ca.turbo/usr/local/emhttp/plugins/ca.turbo/Turbo.page +++ b/source/ca.turbo/usr/local/emhttp/plugins/ca.turbo/Turbo.page @@ -34,6 +34,7 @@ function getPluginSettings() { $cfg = getPluginSettings(); +$totalDisks = 0; $unRaidDisks = parse_ini_file("/var/local/emhttp/disks.ini",true); foreach ($unRaidDisks as $disk) { if ( (strpos($disk['name'],"disk") === 0 ) && ($disk['size']) ) { diff --git a/source/ca.turbo/usr/local/emhttp/plugins/ca.turbo/include/exec.php b/source/ca.turbo/usr/local/emhttp/plugins/ca.turbo/include/exec.php index 3bfe4d2..b4846ef 100644 --- a/source/ca.turbo/usr/local/emhttp/plugins/ca.turbo/include/exec.php +++ b/source/ca.turbo/usr/local/emhttp/plugins/ca.turbo/include/exec.php @@ -19,6 +19,7 @@ file_put_contents("/boot/config/plugins/ca.turbo/settings.ini",create_ini_file($settings)); # create the cron schedule writeJsonFile($turboPaths['schedule'],$rawSchedule); + $cronFile = ""; if ( is_array($rawSchedule) ) { foreach ($rawSchedule as $schedule) { if ( $schedule[0] == "no" ) { @@ -109,6 +110,7 @@ } $index = 0; + $o = ""; foreach ($rawSchedule as $schedule) { $o .= createSchedule($index,$schedule); $o .= "
"; @@ -123,6 +125,7 @@ $rawSchedule = array(); } $index = 0; + $o = ""; foreach ($rawSchedule as $schedule) { $o .= createSchedule($index,$schedule); $o .= "
"; @@ -139,6 +142,7 @@ $rawSchedule = array(); } $index = 0; + $o = ""; foreach ($rawSchedule as $schedule) { $o .= createSchedule($index,$schedule); $o .= "
"; @@ -155,6 +159,7 @@ $rawSchedule = array(); } $index = 0; + $status = ""; foreach ($rawSchedule as $schedule) { if ( $schedule[0] == "yes" ) { if ( ! trim($schedule[2]) ) {