@@ -76,7 +76,7 @@ public static function getActivate(GenericEvent $event)
7676 $ password = website_get_password ($ serviceClass ->getId (), $ serviceClass ->getCustid ());
7777 if (!$ password ) {
7878 $ password = generateRandomString (10 , 2 , 2 , 2 , 1 );
79- $ GLOBALS [ ' tf ' ]-> history ->add ($ settings ['PREFIX ' ], 'password ' , $ serviceClass ->getId (), $ password );
79+ \ MyAdmin \App:: history () ->add ($ settings ['PREFIX ' ], 'password ' , $ serviceClass ->getId (), $ password );
8080 }
8181 $ username = get_new_webhosting_username ($ serviceClass ->getId (), $ hostname , $ serviceClass ->getServer ());
8282 if (in_array ('reseller ' , explode (', ' , $ event ['field1 ' ]))) {
@@ -165,7 +165,7 @@ public static function getActivate(GenericEvent $event)
165165 if ($ result ['error ' ] != "0 " ) {
166166 }
167167 }
168- $ GLOBALS [ ' tf ' ]-> history ->add ($ settings ['PREFIX ' ], 'password ' , $ serviceClass ->getId (), $ options ['password ' ]);
168+ \ MyAdmin \App:: history () ->add ($ settings ['PREFIX ' ], 'password ' , $ serviceClass ->getId (), $ options ['password ' ]);
169169 }
170170 if (isset ($ result ['result ' ]) && $ result ['result ' ][0 ]['statusmsg ' ] == 'Sorry, a group for that username already exists. ' ) {
171171 while ($ result ['result ' ][0 ]['statusmsg ' ] == 'Sorry, a group for that username already exists. ' ) {
@@ -363,7 +363,7 @@ public static function getChangeIp(GenericEvent $event)
363363 $ event ['status ' ] = 'error ' ;
364364 $ event ['status_text ' ] = 'Error Code ' .$ result ['faultcode ' ].': ' .$ result ['fault ' ];
365365 } else {
366- $ GLOBALS [ ' tf ' ]-> history ->add ($ settings ['TABLE ' ], 'change_ip ' , $ event ['newip ' ], $ serviceClass ->getId (), $ serviceClass ->getCustid ());
366+ \ MyAdmin \App:: history () ->add ($ settings ['TABLE ' ], 'change_ip ' , $ event ['newip ' ], $ serviceClass ->getId (), $ serviceClass ->getCustid ());
367367 $ serviceClass ->set_ip ($ event ['newip ' ])->save ();
368368 $ event ['status ' ] = 'ok ' ;
369369 $ event ['status_text ' ] = 'The IP Address has been changed. ' ;
0 commit comments