Skip to content

Commit 584505b

Browse files
author
Kristan Kenney
committed
Switch to single quotes for param match
1 parent 9fcc4f8 commit 584505b

File tree

47 files changed

+54
-54
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+54
-54
lines changed

web/bulk/cron/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$job = $_POST['job'];
1616
$action = $_POST['action'];
1717

18-
if ($_SESSION['userContext'] === "admin") {
18+
if ($_SESSION['userContext'] === 'admin') {
1919
switch ($action) {
2020
case 'delete': $cmd='v-delete-cron-job';
2121
break;

web/bulk/db/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$database = $_POST['database'];
1616
$action = $_POST['action'];
1717

18-
if ($_SESSION['userContext'] === "admin") {
18+
if ($_SESSION['userContext'] === 'admin') {
1919
switch ($action) {
2020
case 'rebuild': $cmd='v-rebuild-database';
2121
break;

web/bulk/dns/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
$record = $_POST['record'];
1717
$action = $_POST['action'];
1818

19-
if ($_SESSION['userContext'] === "admin") {
19+
if ($_SESSION['userContext'] === 'admin') {
2020
if (empty($record)) {
2121
switch ($action) {
2222
case 'rebuild': $cmd='v-rebuild-dns-domain';

web/bulk/hestia/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
$pkg = $_POST['pkg'];
1717
$action = $_POST['action'];
1818

19-
if ($_SESSION['userContext'] === "admin") {
19+
if ($_SESSION['userContext'] === 'admin') {
2020
switch ($action) {
2121
case 'update': $cmd='v-update-sys-hestia';
2222
break;

web/bulk/ip/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$ip = $_POST['ip'];
1616
$action = $_POST['action'];
1717

18-
if ($_SESSION['userContext'] === "admin") {
18+
if ($_SESSION['userContext'] === 'admin') {
1919
switch ($action) {
2020
case 'reread IP': exec(HESTIA_CMD."v-update-sys-ip", $output, $return_var);
2121
header("Location: /list/ip/");

web/bulk/mail/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
$account = $_POST['account'];
1717
$action = $_POST['action'];
1818

19-
if ($_SESSION['userContext'] === "admin") {
19+
if ($_SESSION['userContext'] === 'admin') {
2020
if (empty($account)) {
2121
switch ($action) {
2222
case 'rebuild': $cmd='v-rebuild-mail-domain';

web/bulk/package/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$package = $_POST['package'];
1616
$action = $_POST['action'];
1717

18-
if ($_SESSION['userContext'] === "admin") {
18+
if ($_SESSION['userContext'] === 'admin') {
1919
switch ($action) {
2020
case 'delete': $cmd='v-delete-user-package';
2121
break;

web/bulk/service/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$service = $_POST['service'];
1616
$action = $_POST['action'];
1717

18-
if ($_SESSION['userContext'] === "admin") {
18+
if ($_SESSION['userContext'] === 'admin') {
1919
switch ($action) {
2020
case 'stop': $cmd='v-stop-service';
2121
break;

web/bulk/user/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$user = $_POST['user'];
1616
$action = $_POST['action'];
1717

18-
if ($_SESSION['userContext'] === "admin") {
18+
if ($_SESSION['userContext'] === 'admin') {
1919
switch ($action) {
2020
case 'delete': $cmd='v-delete-user'; $restart = 'no';
2121
break;

web/bulk/web/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$domain = $_POST['domain'];
1616
$action = $_POST['action'];
1717

18-
if ($_SESSION['userContext'] === "admin") {
18+
if ($_SESSION['userContext'] === 'admin') {
1919
switch ($action) {
2020
case 'delete': $cmd='v-delete-web-domain';
2121
break;

0 commit comments

Comments
 (0)