Addon licensed

From Sohowiki
(Difference between revisions)
Jump to: navigation, search
m
m (Reverted edit of Bocz, changed back to last version by Soho)
Line 24: Line 24:
 
[[Category:Plugins]]
 
[[Category:Plugins]]
 
[[Category:Templates]]
 
[[Category:Templates]]
 
 
 
[http://www.casino-theory.com/bingo-online/gambling-online-bingo.html gambling online bingo]
 
[http://www.casino-games-wiki.com/index.php/casino_games_game casino games game]
 
[http://www.magical-casino.com/casino_risk.html Gambling Online - Risks.]
 
[http://www.magical-casino.com/security.html Casinos security online.]
 
[http://www.casino-games-wiki.com/index.php/casino_games_rules casino games rules]
 
[http://www.casinos-go.com/online-casino-tips/online-casino-on-the-net.html online casino on the net]
 
[http://www.casino-theory.com/online-casino-royale/strategy-online-casino.html strategy online casino]
 
[http://www.casinos-new.com/poker.html Online casino - Poker in casino]
 
[http://www.casinos-new.com/poker.html Online casino - Poker in casino]
 
[http://www.casino-games-wiki.com/index.php/play_casino_games_games_online play casino games games online]
 

Revision as of 16:46, 29 November 2006

Syntax
addon_licensed(addon_folder_name)


What it does
Checks whether domain is licensed to use specified addon (identified by name addon folder)
Returns true/false based on whether addon is/is not licensed
Description
The purpose of this function is to provide a way for premium addon developers to build license checking into their addon. For plugins, it's not incredibly important that you include a call to this function, because it is called by Pro Edition when plugin is initially installed (will not allow install to proceed if license check fails), but you're still welcome to use it as a double-check/extra layer of anti-piracy. For premium templates however there is no built-in license checking at install time, so it's highly advised that you place a call to this function somewhere in one of your template includes (even if that means creating a template include specifically for the license check).
Scope
This function is defined in shared_functions.php, you can call it from anywhere.


Example 1 - Calling addon_licensed() You can stick this code in any php file included with your template (i.e. includethis.php, pgm-auto_menu.php, license_check.php -- wherever).

if ( !addon_licensed("SPORTS-Snowboarder-blue") ) {
   echo "This template is not licensed!"; exit;
}
Personal tools