select_db($global_survey_database) or die ("Unable to select database."); } //////////////////////////////////////////////// function connectx() //////////////////////////////////////////////// //used in process files in case of emergencies...:) { require_once("global_constants.php"); global $mysqli, $global_survey_database; $mysqli = mysqli_connect('p:localhost', "adminemr_newuser", "RaviIyer@745CommAve!") or die ("Unable to connect to database."); $db = $mysqli->select_db($global_survey_database) or die ("Unable to select database."); } //////////////////////////////////////////////// function checklogin() //////////////////////////////////////////////// { global $theparticipant, $_COOKIE, $_SERVER, $_SESSION, $_GET, $thetable, $qls; setparticipantid($qls->user_info['id']); if (empty($_SESSION['ORIG_REFER'])) { $_SESSION['ORIG_REFER'] = getenv("HTTP_REFERER"); } if (empty($_SESSION['ORIG_URL'])) { $_SESSION['ORIG_URL'] = getenv("REQUEST_URI"); } if (empty($_SESSION['GRAPH_GROUP']) and strlen($_GET['grp'])>2) { $_SESSION['GRAPH_GROUP'] = translategraphgroup($_GET['grp']); } } Values in Scholarship on Religion Project - <? echo $sitehost; ?>
Exception: Call to undefined function checklogin()