diff options
| author | Christophe Nowicki <cnowicki@easter-eggs.com> | 2004-09-17 16:02:24 +0000 |
|---|---|---|
| committer | Christophe Nowicki <cnowicki@easter-eggs.com> | 2004-09-17 16:02:24 +0000 |
| commit | 1db82e571dd29835ee669472de1a646314e12aa9 (patch) | |
| tree | a5327193d410a974e21dc27e6554420c5bec8a1b /php/Attic/examples/sample-idp/admin_user.php | |
| parent | cc5bffb4bd9a1f3f057be78bfcd71db51a74dfc8 (diff) | |
| download | lasso-1db82e571dd29835ee669472de1a646314e12aa9.tar.gz lasso-1db82e571dd29835ee669472de1a646314e12aa9.tar.xz lasso-1db82e571dd29835ee669472de1a646314e12aa9.zip | |
log viewer for the Service Provider and the Identity Provider
added logger for in many files
updated idp1 metadata, added .php extension
added session viewer for the sp (you will be able to view online users)
Diffstat (limited to 'php/Attic/examples/sample-idp/admin_user.php')
| -rw-r--r-- | php/Attic/examples/sample-idp/admin_user.php | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/php/Attic/examples/sample-idp/admin_user.php b/php/Attic/examples/sample-idp/admin_user.php index ca5f14ba..0f0c31c3 100644 --- a/php/Attic/examples/sample-idp/admin_user.php +++ b/php/Attic/examples/sample-idp/admin_user.php @@ -81,7 +81,8 @@ $res =& $db->query($query); if (DB::isError($res)) die($res->getMessage()); - + + $logger->log("Delete User '".$_GET['del']."'", PEAR_LOG_NOTICE); } lasso_init(); @@ -164,21 +165,21 @@ if ((($count - $startUser) > $number_of_users) && !isset($_GET['show_all'])) echo "<a href=$PHP_SELF?startUser=" . ($startUser + $number_of_users) . ">Next</a>"; else - echo "Next" - ?> - <?php + echo "Next"; + + if (isset($_GET['show_all'])) + echo "| <a href=\"" . $PHP_SELF ."?startUser=0\">Paginate</a>"; + else + { for ($i = 0; $i < $count; $i += $number_of_users) if ($i == $startUser) echo "| " . ( $i / $number_of_users); else echo "| <a href=\"$PHP_SELF?startUser=$i\">" . ( $i / $number_of_users) . "</a>"; + if ($count > $number_of_users) + echo "| <a href=\"$PHP_SELF?show_all=1\">Show All</a>"; + } ?> - | - <?php if (isset($_GET['show_all'])) { ?> - <a href="<?php echo $PHP_SELF."?startUser=0"; ?>">Paginate</a> - <?php } else { ?> - <a href="<?php echo $PHP_SELF."?show_all=1"; ?>">Show All</a> - <?php } ?> | <a href="javascript:void(0)" onClick="ToggleAll();">Toggle All</a></td> <td align='right'><a href="javascript:openpopup('user_add.php')">add user</a></td> </tr> @@ -237,7 +238,7 @@ </td> </tr> <tr> - <td colspan="<?php echo $num_col; ?>" align='center'> + <td colspan="<?php echo $num_col; ?>" align='center'> <?php // get all federations for this user if (!empty($session_dump) && !empty($identity_dump)) |
