diff options
| author | Nick Palmer <nick@sluggardy.net> | 2008-10-02 14:45:39 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2008-10-02 14:45:39 +0000 |
| commit | 71c3d683f3cbda9b57471f549e9b7dc5e3eef295 (patch) | |
| tree | 5f952f2ae5eb8aca2f7a26154f72113a6f8cc1e2 | |
| parent | f430e66fbc69456e42f7c24c03acd2e03f81987a (diff) | |
| download | users-71c3d683f3cbda9b57471f549e9b7dc5e3eef295.tar.gz users-71c3d683f3cbda9b57471f549e9b7dc5e3eef295.tar.bz2 users-71c3d683f3cbda9b57471f549e9b7dc5e3eef295.zip | |
Don't start a session for a shell script.
| -rw-r--r-- | bit_setup_inc.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bit_setup_inc.php b/bit_setup_inc.php index ca125e6..1053576 100644 --- a/bit_setup_inc.php +++ b/bit_setup_inc.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_users/bit_setup_inc.php,v 1.45 2008/08/13 19:46:04 bitweaver Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_users/bit_setup_inc.php,v 1.46 2008/10/02 14:45:39 nickpalmer Exp $ * @package users */ global $gBitDbType, $gBitDbHost, $gBitDbUser, $gBitDbPassword, $gBitDbName, $gBitThemes; @@ -58,7 +58,10 @@ if( $gBitSystem->isFeatureActive( 'users_remember_me' )) { // just use a simple COOKIE (unique random string) that is linked to the users_cnxn table. // This way, nuking rows in the users_cnxn table can log people out and is much more reliable than SESSIONS -session_start(); +global $gShellScript; +if(!$gShellScript) { + session_start(); +} $cookie_site = strtolower( ereg_replace( "[^a-zA-Z0-9]", "", $gBitSystem->getConfig( 'site_title', 'bitweaver' ))); global $user_cookie_site; $user_cookie_site = 'bit-user-'.$cookie_site; |
