예제 #1
0
            $data .= "\tdefine(\"SSO_CLIENT_RAND_SEED4\", " . var_export(SSO_CLIENT_RAND_SEED4, true) . ");\n";
            $data .= "\tdefine(\"SSO_CLIENT_RAND_SEED5\", " . var_export(SSO_CLIENT_RAND_SEED5, true) . ");\n";
            $data .= "\tdefine(\"SSO_CLIENT_RAND_SEED6\", " . var_export(SSO_CLIENT_RAND_SEED6, true) . ");\n";
            $data .= "\tdefine(\"SSO_CLIENT_RAND_SEED7\", " . var_export(SSO_CLIENT_RAND_SEED7, true) . ");\n";
            $data .= "\tdefine(\"SSO_CLIENT_RAND_SEED8\", " . var_export(SSO_CLIENT_RAND_SEED8, true) . ");\n";
            $data .= "\tdefine(\"SSO_CLIENT_RAND_SEED9\", " . var_export(SSO_CLIENT_RAND_SEED9, true) . ");\n";
            $data .= "\tdefine(\"SSO_CLIENT_RAND_SEED10\", " . var_export(SSO_CLIENT_RAND_SEED10, true) . ");\n";
            $data .= "\tdefine(\"SSO_CLIENT_RAND_SEED11\", " . var_export(SSO_CLIENT_RAND_SEED11, true) . ");\n";
            $data .= "\tdefine(\"SSO_CLIENT_RAND_SEED12\", " . var_export(SSO_CLIENT_RAND_SEED12, true) . ");\n";
            $data .= "\tdefine(\"SSO_CLIENT_RAND_SEED13\", " . var_export(SSO_CLIENT_RAND_SEED13, true) . ");\n";
            $data .= "\tdefine(\"SSO_CLIENT_RAND_SEED14\", " . var_export(SSO_CLIENT_RAND_SEED14, true) . ");\n";
            $data .= "\tdefine(\"SSO_CLIENT_RAND_SEED15\", " . var_export(SSO_CLIENT_RAND_SEED15, true) . ");\n";
            $data .= "\tdefine(\"SSO_CLIENT_RAND_SEED16\", " . var_export(SSO_CLIENT_RAND_SEED16, true) . ");\n";
            $data .= "?" . ">";
            if (file_put_contents("config.php", $data) === false) {
                InstallError("Unable to create the configuration file.");
            }
            InstallSuccess("Successfully created the configuration file.");
            InstallSuccess("The installation completed successfully.");
            ?>
		<br />
		Next:  Start using Single-Sign On Client<br />
		(Follow the <a href="http://barebonescms.com/documentation/sso/">instructions</a> to learn how to use the SSO Client.)<br />
<?php 
        } else {
            ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Single Sign-On Client Installer</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
예제 #2
0
파일: install.php 프로젝트: marks2016/sso
                $data .= "\tdefine(\"SSO_SMTPPOP3_USER\", " . var_export($_REQUEST["smtppop3_user"], true) . ");\n";
                $data .= "\tdefine(\"SSO_SMTPPOP3_PASS\", " . var_export($_REQUEST["smtppop3_pass"], true) . ");\n";
                $data .= "\tdefine(\"SSO_SMTP_FROM\", " . var_export($_REQUEST["smtp_from"], true) . ");\n";
                $data .= "\n";
                $data .= "\tdefine(\"SSO_SITE_ADMIN_TAG\", " . var_export($_REQUEST["sso_site_admin"], true) . ");\n";
                $data .= "\tdefine(\"SSO_ADMIN_TAG\", " . var_export($_REQUEST["sso_admin"], true) . ");\n";
                $data .= "\tdefine(\"SSO_LOCKED_TAG\", " . var_export($_REQUEST["sso_locked"], true) . ");\n";
                $data .= "?" . ">";
                if (file_put_contents("config.php", $data) === false) {
                    InstallError("Unable to create the configuration file.");
                }
                if ($_REQUEST["sso_endpoint_sto"] > 0 && file_put_contents(SSO_ROOT_PATH . "/" . $endpointdir . "/config.php", $data) === false) {
                    InstallError("Unable to create the configuration file clone in the endpoint subdirectory.");
                }
                if ($_REQUEST["sso_admin_sto"] > 0 && file_put_contents(SSO_ROOT_PATH . "/" . $admindir . "/config.php", $data) === false) {
                    InstallError("Unable to create the configuration file clone in the admin subdirectory.");
                }
                InstallSuccess("Successfully created the configuration file.");
                InstallSuccess("The installation completed successfully.");
                ?>
		<br />
		Next:  <a href="<?php 
                echo htmlspecialchars($adminurl);
                ?>
">Start using Single-Sign On</a><br />
		(Read the installation instructions or the above link might not work.)<br />
<?php 
            } else {
                ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">