Changeset - f847b2da1a6a
[Not reviewed]
default
0 1 1
Nathan Brink (binki) - 15 years ago 2010-12-08 20:53:02
ohnobinki@ohnopublishing.net
Add a libs/ directory which people may put 3rd party libs in if they so choose.
2 files changed with 10 insertions and 0 deletions:
0 comments (0 inline, 0 general)
inc/class.page.php
Show inline comments
 
@@ -25,6 +25,16 @@ define('SP_PACKAGE_NAME', 'slate_permuta
 
define('SP_PACKAGE_VERSION', '0.1_pre');
 
define('SP_PACKAGE_STRING', SP_PACKAGE_NAME . '-' . SP_PACKAGE_VERSION);
 

	
 
/*
 
 * Set up include() path for user-supplied libs (in case if his system
 
 * doesn't have libs, such as recaptchalib.php). Users would store
 
 * such libs in /libs.
 
 *
 
 * Coding note: dirname(dirname('a/b/c')) returns 'a'. This is a
 
 * similar effect to dirname('a/b/c') . DIRECTORY_SEPARATOR . '..'.
 
 */
 
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'libs');
 

	
 
/**
 
 * Not sure if there's a better place for this... it'd be a pita to
 
 * make a new include file like doconfig.inc but maybe that'll make
libs/.keep
Show inline comments
 
new file 100644
0 comments (0 inline, 0 general)