Raised This Month: $ Target: $400
 0% 

[check] is this code correct/ pls check


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 11-12-2011 , 18:44   [check] is this code correct/ pls check
Reply With Quote #1

PHP Code:
new day[2]; 
        
get_time("%w"day1)
        if(
equal(day"1"))
     {
        
set_task(5.0,"start_scan",_,_,_,"b")
     }
        else if(
equal(day"2"))
     {
        
set_task(5.0,"start_scan1",_,_,_,"b")
     }

        else if(
equal(day"3"))
     {
        
set_task(5.0,"start_scan",_,_,_,"b")
     }
        else if(
equal(day"4"))
     {
        
set_task(5.0,"start_scan1",_,_,_,"b")
     }

        else if(
equal(day"5"))
     {
         
set_task(5.0,"start_scan",_,_,_,"b")
     }
         else if(
equal(day"6"))
     {
         
set_task(5.0,"start_scan1",_,_,_,"b")
     }
         else if(
equal(day"0"))
     {
         
set_task(5.0,"start_scan",_,_,_,"b")
     }


is it correct ? to set task on monday tuesday and other days.
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode