Raised This Month: $ Target: $400
 0% 

Toggle ON/OFF


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 12-23-2012 , 13:02   Re: Toggle ON/OFF
Reply With Quote #2

there are many ways to do it
PHP Code:
new g_access ADMIN_CFG

public toggle(){
    if(
g_access == ADMIN_CFG)
        
g_access ADMIN_RESERVATION
    
else
        
g_access ADMIN_CFG
}

public function(
id){
    if(! (
get_user_flags(id) & g_access))
        return  

__________________
Impossible is Nothing
Sylwester 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 13:41.


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