@@ -92,14 +92,28 @@ 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__ );
9597 $ serviceTypes = run_event ('get_service_types ' , false , self ::$ module );
9698 $ serviceInfo = $ service ->getServiceInfo ();
9799 $ settings = get_module_settings (self ::$ module );
98100 $ db = get_module_db (self ::$ module );
99101 $ 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 ;
100105 $ 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 ;
101109 check_order_from ($ serviceInfo );
110+ $ end = time ();
111+ myadmin_log ('myadmin ' , 'debug ' , 'Server Activation Timing ' .($ end - $ start ), __LINE__ , __FILE__ );
112+ $ start = $ end ;
102113 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 ;
103117 })->setReactivate (function ($ service ) {
104118 $ serviceTypes = run_event ('get_service_types ' , false , self ::$ module );
105119 $ serviceInfo = $ service ->getServiceInfo ();
0 commit comments