Skip to content

Commit

Permalink
change api for create_user_id(...)
Browse files Browse the repository at this point in the history
git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@170 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
Dave Goodwin committed Oct 20, 2011
1 parent b9ee20c commit a6fe0df
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions demo.txt
Expand Up @@ -19,24 +19,16 @@ require_once("config.php");
* @package
*/

/**
* Create the basic session
*/

include $xerte_toolkits_site->php_library_path . "login_library.php";

include $xerte_toolkits_site->php_library_path . "display_library.php";

// fake our authentication tokens etc.
$_SESSION['toolkits_firstname'] = "Guest";

$_SESSION['toolkits_surname'] = "User 2";

include $xerte_toolkits_site->php_library_path . "user_library.php";

$_SESSION['toolkits_logon_username'] = "guest2";

$mysql_id=database_connect("index.php database connect success","index.php database connect fail");


/*
* Check to see if this is a users' first time on the site
Expand All @@ -48,7 +40,7 @@ if(check_if_first_time($_SESSION['toolkits_logon_username'])){
* create the user a new id
*/

$_SESSION['toolkits_logon_id'] = create_user_id();
$_SESSION['toolkits_logon_id'] = create_user_id($_SESSION['toolkits_logon_username'], $_SESSION['toolkits_firstname'], $_SESSION['toolkits_surname']);

/*
* create a virtual root folder for this user
Expand Down

0 comments on commit a6fe0df

Please sign in to comment.