Skip to content

Commit

Permalink
gf
Browse files Browse the repository at this point in the history
  • Loading branch information
Squidly271 committed Feb 20, 2023
1 parent 6ef2ad4 commit 58d81b0
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 46 deletions.
Binary file added archive/ca.turbo-2023.02.20-x86_64-1.txz
Binary file not shown.
9 changes: 6 additions & 3 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 "2023.02.02">
<!ENTITY md5 "44b7ed66aac53fbede2f2759aa3f9cd5">
<!ENTITY version "2023.02.20">
<!ENTITY md5 "6d7c337cb8a2fdb1661a466f42a5dcb8">
<!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.20
- PHP8 Compliance

###2023.02.02
- PHP8 compliance

Expand Down Expand Up @@ -124,7 +127,7 @@ The 'post-install' script
echo ""
echo "----------------------------------------------------"
echo " &name; has been installed."
echo " Copyright 2017-2020, Andrew Zawadzki"
echo " Copyright 2017-2023, Andrew Zawadzki"
echo " Version: &version;"
echo "----------------------------------------------------"
echo ""
Expand Down
11 changes: 5 additions & 6 deletions source/ca.turbo/usr/local/emhttp/plugins/ca.turbo/Turbo.page
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ Title="TurboWrite"
Icon="tachometer"
---
<?
########################################
# #
# CA Automatic Turbo Mode #
# Copyright 2017-2021, Andrew Zawadzki #
# #
########################################
###########################################################
# #
# CA Auto Turbo Mode copyright 2017-2023, Andrew Zawadzki #
# #
###########################################################

$plugin = "ca.turbo";
require_once("/usr/local/emhttp/plugins/ca.turbo/include/caCredits.php");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/usr/bin/php
<?PHP
###################################
# #
# CA Automatic Turbo Mode #
# Copyright 2017, Andrew Zawadzki #
# #
###################################
###########################################################
# #
# CA Auto Turbo Mode copyright 2017-2023, Andrew Zawadzki #
# #
###########################################################

require_once("/usr/local/emhttp/plugins/ca.turbo/include/helpers.php");
require_once("/usr/local/emhttp/plugins/ca.turbo/include/paths.php");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/bin/bash
###################################
# #
# CA Automatic Turbo Mode #
# Copyright 2017, Andrew Zawadzki #
# #
###################################
###########################################################
# #
# CA Auto Turbo Mode copyright 2017-2023, Andrew Zawadzki #
# #
###########################################################

if [[ -e /tmp/ca.turbo/PID ]]
then
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?
######################################################
# #
# CA Auto Turbo Mode copyright 2017, Andrew Zawadzki #
# #
######################################################
###########################################################
# #
# CA Auto Turbo Mode copyright 2017-2023, Andrew Zawadzki #
# #
###########################################################

function getLineCount($directory) {
global $lineCount;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?PHP
###################################
# #
# CA Automatic Turbo Mode #
# Copyright 2017, Andrew Zawadzki #
# #
###################################
###########################################################
# #
# CA Auto Turbo Mode copyright 2017-2023, Andrew Zawadzki #
# #
###########################################################

require_once("/usr/local/emhttp/plugins/ca.turbo/include/helpers.php");
require_once("/usr/local/emhttp/plugins/ca.turbo/include/paths.php");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?PHP
###################################
# #
# CA Automatic Turbo Mode #
# Copyright 2017, Andrew Zawadzki #
# #
###################################
###########################################################
# #
# CA Auto Turbo Mode copyright 2017-2023, Andrew Zawadzki #
# #
###########################################################

function getSettings($rawSettings) {
foreach ($rawSettings as $set) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/usr/bin/php
<?PHP
###################################
# #
# CA Automatic Turbo Mode #
# Copyright 2021, Andrew Zawadzki #
# #
###################################
###########################################################
# #
# CA Auto Turbo Mode copyright 2017-2023, Andrew Zawadzki #
# #
###########################################################

require_once("/usr/local/emhttp/plugins/ca.turbo/include/helpers.php");
require_once("/usr/local/emhttp/plugins/ca.turbo/include/paths.php");
Expand Down Expand Up @@ -96,7 +95,7 @@ function getDisks() {
logger("Total Spundown: $totalSpunDown");
}
if ($totalSpunDown > $settings['maxSpunDown'] ) {
$currentMode = $currentMode ? $currentMode : "turbo";
$currentMode = $currentMode ?? "turbo";
if ( $currentMode == "turbo" ) {
if ( $debug ) {
logger("Entering Normal Mode");
Expand All @@ -105,7 +104,7 @@ function getDisks() {
$currentMode = "normal";
}
} else {
$currentMode = $currentMode ? $currentMode : "normal";
$currentMode = $currentMode ?? "normal";
if ( $currentMode == "normal" ) {
if ( $debug ) {
logger("Entering Turbo Mode");
Expand Down

0 comments on commit 58d81b0

Please sign in to comment.