diff options
author | Christophe Nowicki <cnowicki@easter-eggs.com> | 2004-08-20 09:45:38 +0000 |
---|---|---|
committer | Christophe Nowicki <cnowicki@easter-eggs.com> | 2004-08-20 09:45:38 +0000 |
commit | 42e6495ad11c6b6a4265e7ad378ba4dfde0e6df8 (patch) | |
tree | 170e5f06fd0c08204297c8a9e3bfde8f57290473 /php/Attic/examples/sample-sp/index.php | |
parent | 7b462495723b08e965d6077fc57604c4617a414a (diff) | |
download | lasso-42e6495ad11c6b6a4265e7ad378ba4dfde0e6df8.tar.gz lasso-42e6495ad11c6b6a4265e7ad378ba4dfde0e6df8.tar.xz lasso-42e6495ad11c6b6a4265e7ad378ba4dfde0e6df8.zip |
new setup system
Diffstat (limited to 'php/Attic/examples/sample-sp/index.php')
-rw-r--r-- | php/Attic/examples/sample-sp/index.php | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/php/Attic/examples/sample-sp/index.php b/php/Attic/examples/sample-sp/index.php index 0b36a188..b0e82797 100644 --- a/php/Attic/examples/sample-sp/index.php +++ b/php/Attic/examples/sample-sp/index.php @@ -26,15 +26,28 @@ $ret = @dl('lasso.' . PHP_SHLIB_SUFFIX); if ($ret == FALSE) { - print "<p align='center'><b>The Lasso Extension is not available</b><br>"; - print "Please check your PHP extensions<br>"; - print "You can get more informations about <b>Lasso</b> at <br>"; - print "<a href='http://lasso.entrouvert.org/'>http://lasso.entrouvert.org/</a></p>"; - exit(); +?> +<p align='center'><b>The Lasso Extension is not available</b><br> +Please check your PHP extensions<br> +You can get more informations about <b>Lasso</b> at <br> +<a href='http://lasso.entrouvert.org/'>http://lasso.entrouvert.org/</a></p> +<?php + exit(); } } - - include 'config.php.inc'; + + if (!file_exists('config.inc')) + { +?> +<p align='center'><b>Service Provider Configuration file is not available</b><br> +Please run the setup script :<br> +<a href='setup.php'>Lasso Service Provider Setup</a><br> +You can get more informations about <b>Lasso</b> at <br> +<a href='http://lasso.entrouvert.org/'>http://lasso.entrouvert.org/</a></p> +<?php + } + + $config = unserialize(file_get_contents('config.inc')); require_once 'DB.php'; @@ -56,22 +69,15 @@ <tr> <td><b>Service Provider Administration</b></td> </tr> -<?php - if (!file_exists($server_dump_filename)) { -?> <tr> <td><a href="setup.php">Setup</a></td> </tr> -</table> -<?php -} else { -?> <tr> <td><a href="admin_user.php">Users Management</a></td> </tr> -<tr> +<!--<tr> <td><a href="admin_fed.php">Federation Administration</a></td> -</tr> +</tr> --> <tr> <td><b>Serice Provider Fonctionnality</b></td> </tr> @@ -109,7 +115,7 @@ <td><b>UserID:</b></td><td><?php echo $_SESSION["user_id"]; ?></td> </tr> <?php - $db = &DB::connect($dsn); + $db = &DB::connect($config['dsn']); if (DB::isError($db)) die($db->getMessage()); @@ -144,9 +150,6 @@ </tr> </table> </p> -<?php -} -?> <p>Lasso Version : <?php echo lasso_version(); ?></p> <br> |