Skip to content

Commit

Permalink
dan
Browse files Browse the repository at this point in the history
  • Loading branch information
Squidly271 committed Feb 2, 2023
1 parent da8bd45 commit 6ef2ad4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
Binary file added archive/ca.turbo-2023.02.02-x86_64-1.txz
Binary file not shown.
7 changes: 5 additions & 2 deletions plugins/ca.turbo.plg
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "ca.turbo">
<!ENTITY author "Andrew Zawadzki">
<!ENTITY version "2022.09.16">
<!ENTITY md5 "f10404aaea7b51863ab3e47bf66de7b0">
<!ENTITY version "2023.02.02">
<!ENTITY md5 "44b7ed66aac53fbede2f2759aa3f9cd5">
<!ENTITY launch "Settings/Turbo">
<!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
<!ENTITY github "Squidly271/ca.turbo">
Expand All @@ -13,6 +13,9 @@
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;" icon='tachometer'>

<CHANGES>
###2023.02.02
- PHP8 compliance

###2022.09.16
- Remove schedule icon missing on later versions of Unraid

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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']) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" ) {
Expand Down Expand Up @@ -109,6 +110,7 @@
}

$index = 0;
$o = "";
foreach ($rawSchedule as $schedule) {
$o .= createSchedule($index,$schedule);
$o .= "<hr>";
Expand All @@ -123,6 +125,7 @@
$rawSchedule = array();
}
$index = 0;
$o = "";
foreach ($rawSchedule as $schedule) {
$o .= createSchedule($index,$schedule);
$o .= "<hr>";
Expand All @@ -139,6 +142,7 @@
$rawSchedule = array();
}
$index = 0;
$o = "";
foreach ($rawSchedule as $schedule) {
$o .= createSchedule($index,$schedule);
$o .= "<hr>";
Expand All @@ -155,6 +159,7 @@
$rawSchedule = array();
}
$index = 0;
$status = "";
foreach ($rawSchedule as $schedule) {
if ( $schedule[0] == "yes" ) {
if ( ! trim($schedule[2]) ) {
Expand Down

0 comments on commit 6ef2ad4

Please sign in to comment.