<?php /***************************************/ // Update this setting for your local environment $paths["localRoot"] = "/Applications/MAMP/htdocs"; // You shouldn't need to change this $paths["serverRoot"] = "/var/www/html"; // This gets tacked on to $localHostWebRoot or $serverWebRoot $paths["webPath"] = "/JanrainDemoSites/default/"; $paths = updatePaths($paths); include $paths["defaultPath"] . "includes/globals.php"; $configItems = array(); // initializing just to avoid warnings /***************************************/ // You can uncomment any of these lines and override these values /********** TYPE OF DEMO **************/ // "enterprise" // default, even if you don't enter a value // "socialAjax" // "socialRedirect" $typeOfDemo = "socialRedirect"; /******* Settings for all types of demos *************/ // PAGE TITLE $configItems["title"] = "<title>Janrain Social Login - IDP permissions in full screen (no popups)</title>"; // PAGE CONTENT // $configItems["content"] = ""; // The default value for content is determined by $typeOfDemo /*************** ENTERPRISE DEMO SETTINGS ***************/ // PATH TO janrain-init // $configItems["janrain-init"] = "<script src = '" . $webPath . "scripts/janrain-init.js'></script>"; // PATH TO janrain-utils // $configItems["janrain-utils"] = "<script src = '" . $webPath . "scripts/janrain-utils.js'></script>";
displayPaths(); } else { if ($_GET['tab'] == 5 || $_GET['action'] == paths) { displayPaths(); } else { if (isset($_POST['saveDashboard'])) { updateDashboard(); } else { if (isset($_POST['savePlugins'])) { updatePlugins(); } else { if (isset($_POST['plugin_update'])) { updatePluginConfig(); } else { if (isset($_POST['savePaths'])) { updatePaths(); } else { if (isset($_POST['addUser'])) { addUser(); } else { if (isset($_POST['userToGroup'])) { addUserToGroup(); } else { if (isset($_POST['delUserFromGroup'])) { delUserFromGroup(); } else { if (isset($_POST['delUser'])) { removeUser(); } else { if (isset($_POST['updateUser'])) { updateUser();