Latest News : 亮瞎双眼的那些年!

whmcs 插件添加计划任务

Whmcs admin 405 views 0 comments

add_hook('DailyCronJob', 0, function($vars) {
	
 

file_put_contents('1list1.txt', var_export("DailyCronJob", true), FILE_APPEND );


  
			
    // Perform hook code here...
});

add_hook('DailyCronJob', 1, function($vars) {
	
 

file_put_contents('1list2.txt', var_export("DailyCronJob", true), FILE_APPEND );


  
			
    // Perform hook code here...
});


add_hook("DailyCronJob",0,"checkClosedTACCases");
function checkClosedTACCases($vars) {
	
	file_put_contents('1list3.txt', var_export("DailyCronJob", true), FILE_APPEND );
}


add_hook("DailyCronJob",1,"ClosedTACCases");
function ClosedTACCases($vars) {
	
	file_put_contents('1list4.txt', var_export("DailyCronJob", true), FILE_APPEND );
}

Please indicate: 无趣的人生也产生有意思的事件 » whmcs 插件添加计划任务

Hi, you must log in to comment !