@@ -92,28 +92,14 @@ public static function loadProcessing(GenericEvent $event)
9292 $ service = $ event ->getSubject ();
9393 $ service ->setModule (self ::$ module )
9494 ->setEnable (function ($ service ) {
95- $ start = time ();
96- myadmin_log ('myadmin ' , 'debug ' , 'Server Activation Timing Start ' , __LINE__ , __FILE__ );
9795 $ serviceTypes = run_event ('get_service_types ' , false , self ::$ module );
9896 $ serviceInfo = $ service ->getServiceInfo ();
9997 $ settings = get_module_settings (self ::$ module );
10098 $ db = get_module_db (self ::$ module );
10199 $ db ->query ("update {$ settings ['TABLE ' ]} set {$ settings ['PREFIX ' ]}_status='active-billing' where {$ settings ['PREFIX ' ]}_id=' {$ serviceInfo [$ settings ['PREFIX ' ].'_id ' ]}' " , __LINE__ , __FILE__ );
102- $ end = time ();
103- myadmin_log ('myadmin ' , 'debug ' , 'Server Activation Timing ' .($ end - $ start ), __LINE__ , __FILE__ );
104- $ start = $ end ;
105100 $ GLOBALS ['tf ' ]->history ->add ($ settings ['TABLE ' ], 'change_status ' , 'active ' , $ serviceInfo [$ settings ['PREFIX ' ].'_id ' ], $ serviceInfo [$ settings ['PREFIX ' ].'_custid ' ]);
106- $ end = time ();
107- myadmin_log ('myadmin ' , 'debug ' , 'Server Activation Timing ' .($ end - $ start ), __LINE__ , __FILE__ );
108- $ start = $ end ;
109101 check_order_from ($ serviceInfo );
110- $ end = time ();
111- myadmin_log ('myadmin ' , 'debug ' , 'Server Activation Timing ' .($ end - $ start ), __LINE__ , __FILE__ );
112- $ start = $ end ;
113102 admin_email_server_pending_setup ($ serviceInfo [$ settings ['PREFIX ' ].'_id ' ]);
114- $ end = time ();
115- myadmin_log ('myadmin ' , 'debug ' , 'Server Activation Timing ' .($ end - $ start ), __LINE__ , __FILE__ );
116- $ start = $ end ;
117103 })->setReactivate (function ($ service ) {
118104 $ serviceTypes = run_event ('get_service_types ' , false , self ::$ module );
119105 $ serviceInfo = $ service ->getServiceInfo ();
0 commit comments