Skip to content

Commit

Permalink
updated to work with moodle or other integration e.g. conditional ses…
Browse files Browse the repository at this point in the history
…sion_start()

git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@218 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
ronm123 committed Nov 2, 2011
1 parent e842951 commit dadc38a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion config.php
@@ -1,5 +1,12 @@
<?php

//moodle integration (please view moodle_integration_readme.txt before use)
//The require path below is the path to the moodle installation config file
//this needs to be the path from root rather than something like ../../moodle/config.php
//e.g. this might be something like require("/home/yourdomain/public_html/config.php");
//set this same path in moodle_integration.txt also
//require("/xampp/htdocs/moodle/config.php");

/**
*
* Config page, sets up the site variable from the database
Expand Down Expand Up @@ -45,7 +52,11 @@ function _debug($string, $up = 0) {
}

if(!isset($xerte_toolkits_site)) {
session_start();
//check if using external authentication integration and if not start session as usual
if(empty($_SESSION)) {
session_start();
$_SESSION['xertetoolkits'] = true;
}
// create new generic object to hold all our config stuff in....
$xerte_toolkits_site = new StdClass();

Expand Down

0 comments on commit dadc38a

Please sign in to comment.