[Shuttlebb-svn] SF.net SVN: shuttlebb: [71] branch/plugins/Hello_World.php
Brought to you by:
afterlife69,
danb00
From: <aft...@us...> - 2006-12-04 03:53:34
|
Revision: 71 http://svn.sourceforge.net/shuttlebb/?rev=71&view=rev Author: afterlife69 Date: 2006-12-03 19:53:33 -0800 (Sun, 03 Dec 2006) Log Message: ----------- doh! security helps. Modified Paths: -------------- branch/plugins/Hello_World.php Modified: branch/plugins/Hello_World.php =================================================================== --- branch/plugins/Hello_World.php 2006-12-04 03:52:36 UTC (rev 70) +++ branch/plugins/Hello_World.php 2006-12-04 03:53:33 UTC (rev 71) @@ -8,6 +8,16 @@ */ /** + * Standard security + * + * This prevents the plugin from being executed directly. + */ +if ( ! defined ( 'IN_SBB' ) ) +{ + return; +} + +/** * This is a basic "Hello World" function that the hooks system will execute. */ function hello_world($date = 0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |