Skip to content

Commit 73aaf6a

Browse files
committed
updates migrating off global tf handler to the MyAdminApp class handler
1 parent e8a96e6 commit 73aaf6a

12 files changed

Lines changed: 14 additions & 14 deletions

bin/activateSubscription.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$ppaConnector = get_webhosting_ppa_instance();
55
// let us form an array with account data
66
$password = _randomstring(10);
7-
$data = $GLOBALS['tf']->accounts->read(2773);
7+
$data = \MyAdmin\App::accounts()->read(2773);
88
[$first, $last] = explode(' ', $data['name']);
99
$accountId = 127;
1010
$serviceTemplateId = 24;

bin/addAccount.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
include_once __DIR__.'/../../../../include/functions.inc.php';
44
$ppaConnector = get_webhosting_ppa_instance();
55
// let us form an array with account data
6-
$data = $GLOBALS['tf']->accounts->read(2773);
6+
$data = \MyAdmin\App::accounts()->read(2773);
77
[$first, $last] = explode(' ', $data['name']);
88
$request = [
99
'person' => [

bin/addAccountMember.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$ppaConnector = get_webhosting_ppa_instance();
55
// let us form an array with account data
66
$password = _randomstring(10);
7-
$data = $GLOBALS['tf']->accounts->read(2773);
7+
$data = \MyAdmin\App::accounts()->read(2773);
88
[$first, $last] = explode(' ', $data['name']);
99
$username = 'joeapitest';
1010
$accountId = 127;

bin/addResourceTypeToServiceTemplate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$ppaConnector = get_webhosting_ppa_instance();
55
// let us form an array with account data
66
$password = _randomstring(10);
7-
$data = $GLOBALS['tf']->accounts->read(2773);
7+
$data = \MyAdmin\App::accounts()->read(2773);
88
$owner_id = 126;
99
$name = 'My Service';
1010
$service_template = 100;

bin/addServiceTemplate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$ppaConnector = get_webhosting_ppa_instance();
55
// let us form an array with account data
66
$password = _randomstring(10);
7-
$data = $GLOBALS['tf']->accounts->read(2773);
7+
$data = \MyAdmin\App::accounts()->read(2773);
88
$owner_id = 126;
99
$name = 'My Service';
1010
$request = [

bin/createWebspace.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
include_once __DIR__.'/../../../../include/functions.inc.php';
44
$ppaConnector = get_webhosting_ppa_instance();
55
$password = _randomstring(10);
6-
$data = $GLOBALS['tf']->accounts->read(2773);
6+
$data = \MyAdmin\App::accounts()->read(2773);
77
[$first, $last] = explode(' ', $data['name']);
88
$accountId = 127;
99
$serviceTemplateId = 24;

bin/disableSubscription.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$ppaConnector = get_webhosting_ppa_instance();
55
// let us form an array with account data
66
$password = _randomstring(10);
7-
$data = $GLOBALS['tf']->accounts->read(2773);
7+
$data = \MyAdmin\App::accounts()->read(2773);
88
[$first, $last] = explode(' ', $data['name']);
99
$request = [
1010
'subscription_id' => $subscriptoinId

bin/enableSubscription.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$ppaConnector = get_webhosting_ppa_instance();
55
// let us form an array with account data
66
$password = _randomstring(10);
7-
$data = $GLOBALS['tf']->accounts->read(2773);
7+
$data = \MyAdmin\App::accounts()->read(2773);
88
[$first, $last] = explode(' ', $data['name']);
99
$request = [
1010
'subscription_id' => $subscriptoinId

bin/getResourceUsage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$ppaConnector = get_webhosting_ppa_instance();
55
// let us form an array with account data
66
$password = _randomstring(10);
7-
$data = $GLOBALS['tf']->accounts->read(2773);
7+
$data = \MyAdmin\App::accounts()->read(2773);
88
[$first, $last] = explode(' ', $data['name']);
99
$request = [
1010
'subscription_id' => $subscriptoinId,

bin/setResourceTypeLimit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$ppaConnector = get_webhosting_ppa_instance();
55
// let us form an array with account data
66
$password = _randomstring(10);
7-
$data = $GLOBALS['tf']->accounts->read(2773);
7+
$data = \MyAdmin\App::accounts()->read(2773);
88
[$first, $last] = explode(' ', $data['name']);
99
$request = [
1010
'subscription_id' => $subscriptoinId,

0 commit comments

Comments
 (0)