Skip to content

Commit a49bb33

Browse files
committed
fix priveliges typo
1 parent 6d2d410 commit a49bb33

File tree

11 files changed

+18
-18
lines changed

11 files changed

+18
-18
lines changed

interface/lib/classes/remoting_lib.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function loadUserProfile($client_id_param = 0) {
131131
$this->sys_userid = $user['userid'];
132132
$this->sys_default_group = $user['default_group'];
133133
$this->sys_groups = $user['groups'];
134-
// we have to force admin priveliges for the remoting API as some function calls might fail otherwise.
134+
// we have to force admin privileges for the remoting API as some function calls might fail otherwise.
135135
if($client_login == false) $_SESSION["s"]["user"]["typ"] = 'admin';
136136
}
137137

interface/web/admin/server_config_edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function onSubmit() {
7979
function onShowEdit() {
8080
global $app, $conf;
8181

82-
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
82+
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin privileges');
8383

8484
if($app->tform->errorMessage == '') {
8585
$app->uses('ini_parser,getconf');
@@ -115,7 +115,7 @@ function onShowEnd() {
115115
function onUpdateSave($sql) {
116116
global $app, $conf;
117117

118-
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
118+
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin privileges');
119119
$app->uses('ini_parser,getconf');
120120

121121
if($conf['demo_mode'] != true) {

interface/web/admin/system_config_edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class page_action extends tform_actions {
5656
function onShowEdit() {
5757
global $app, $conf;
5858

59-
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
59+
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin privileges');
6060

6161
if($app->tform->errorMessage == '') {
6262
$app->uses('ini_parser,getconf');
@@ -133,7 +133,7 @@ function onSubmit() {
133133
function onUpdateSave($sql) {
134134
global $app, $conf;
135135

136-
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
136+
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin privileges');
137137
$app->uses('ini_parser,getconf');
138138

139139
$section = $app->tform->getCurrentTab();

interface/web/mail/mail_blacklist_del.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
require_once '../../lib/app.inc.php';
4444

4545

46-
if($_SESSION["s"]["user"]["typ"] != 'admin') $app->error('This function needs admin priveliges');
46+
if($_SESSION["s"]["user"]["typ"] != 'admin') $app->error('This function needs admin privileges');
4747

4848
//* Check permissions for module
4949
$app->auth->check_module_permissions('mail');

interface/web/mail/mail_blacklist_edit.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ class page_action extends tform_actions {
5353
function onShowNew() {
5454
global $app, $conf;
5555

56-
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
56+
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin privileges');
5757
parent::onShowNew();
5858
}
5959

6060

6161
function onBeforeUpdate() {
6262
global $app, $conf;
6363

64-
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
64+
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin privileges');
6565

6666
//* Check if the server has been changed
6767
// We do this only for the admin or reseller users, as normal clients can not change the server ID anyway
@@ -79,7 +79,7 @@ function onBeforeUpdate() {
7979
function onSubmit() {
8080
global $app, $conf;
8181

82-
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
82+
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin privileges');
8383

8484
if(substr($this->dataRecord['source'], 0, 1) === '@') $this->dataRecord['source'] = substr($this->dataRecord['source'], 1);
8585

interface/web/mail/mail_blacklist_list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* End Form configuration
1313
******************************************/
1414

15-
if($_SESSION["s"]["user"]["typ"] != 'admin') $app->error('This function needs admin priveliges');
15+
if($_SESSION["s"]["user"]["typ"] != 'admin') $app->error('This function needs admin privileges');
1616

1717
//* Check permissions for module
1818
$app->auth->check_module_permissions('mail');

interface/web/mail/mail_whitelist_del.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
require_once '../../lib/config.inc.php';
4343
require_once '../../lib/app.inc.php';
4444

45-
if($_SESSION["s"]["user"]["typ"] != 'admin') $app->error('This function needs admin priveliges');
45+
if($_SESSION["s"]["user"]["typ"] != 'admin') $app->error('This function needs admin privileges');
4646

4747
//* Check permissions for module
4848
$app->auth->check_module_permissions('mail');

interface/web/mail/mail_whitelist_edit.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ class page_action extends tform_actions {
5353
function onShowNew() {
5454
global $app, $conf;
5555

56-
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
56+
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin privileges');
5757

5858
parent::onShowNew();
5959
}
6060

6161
function onBeforeUpdate() {
6262
global $app, $conf;
6363

64-
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
64+
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin privileges');
6565

6666
//* Check if the server has been changed
6767
// We do this only for the admin or reseller users, as normal clients can not change the server ID anyway
@@ -77,7 +77,7 @@ function onBeforeUpdate() {
7777
function onSubmit() {
7878
global $app, $conf;
7979

80-
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
80+
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin privileges');
8181

8282
if(substr($this->dataRecord['source'], 0, 1) === '@') $this->dataRecord['source'] = substr($this->dataRecord['source'], 1);
8383

interface/web/mail/mail_whitelist_list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* End Form configuration
1313
******************************************/
1414

15-
if($_SESSION["s"]["user"]["typ"] != 'admin') $app->error('This function needs admin priveliges');
15+
if($_SESSION["s"]["user"]["typ"] != 'admin') $app->error('This function needs admin privileges');
1616

1717
//* Check permissions for module
1818
$app->auth->check_module_permissions('mail');

interface/web/mail/spamfilter_config_edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class page_action extends tform_actions {
5353
function onShowEdit() {
5454
global $app, $conf;
5555

56-
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
56+
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin privileges');
5757

5858
if($app->tform->errorMessage == '') {
5959
$app->uses('ini_parser,getconf');
@@ -73,7 +73,7 @@ function onShowEdit() {
7373
function onUpdateSave($sql) {
7474
global $app;
7575

76-
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin priveliges');
76+
if($_SESSION["s"]["user"]["typ"] != 'admin') die('This function needs admin privileges');
7777
$app->uses('ini_parser,getconf');
7878

7979
$section = $app->tform->getCurrentTab();

0 commit comments

Comments
 (0)