aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-31 11:18:11 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-31 11:18:11 +0000
commit3622dadfe00a8caab1957103cc8f2ed8959e4df2 (patch)
treef0bb06153e84736aa081fe43d43d739ba500e8da /includes
parent9c2080e8bc15acebacac8ba8c724a904c935f6b8 (diff)
downloadphpicalendar-3622dadfe00a8caab1957103cc8f2ed8959e4df2.tar.gz
phpicalendar-3622dadfe00a8caab1957103cc8f2ed8959e4df2.tar.bz2
phpicalendar-3622dadfe00a8caab1957103cc8f2ed8959e4df2.zip
bump remove unused (?) includes/login.php
Diffstat (limited to 'includes')
-rw-r--r--includes/login.php58
1 files changed, 0 insertions, 58 deletions
diff --git a/includes/login.php b/includes/login.php
deleted file mode 100644
index 83a7f1c..0000000
--- a/includes/login.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
- // Hide the login block if logged in, there are no lock usernames,
- // or if authenticated via HTTP.
- if ($username == '' && $phpiCal_config->allow_login == 'yes' && !isset($_SERVER['PHP_AUTH_USER'])) {
- // Set the login table width if not set.
- if (!isset($login_width)) $login_width = "100%";
-
- // Remove the username, password, and action values from the form action.
- $form_action = preg_replace("/(username|password|action)=[^&]+/", "", $REQUEST_URI);
-
- echo '<form style="margin-bottom:0;" action="'.$form_action.'" method="POST">';
- echo '<input type="hidden" name="action" value="login">';
- foreach (array_keys($_GET) as $key) {
- if ($key == 'action' || $key == 'username' || $key == 'password') {
- continue;
- }
- echo '<input type="hidden" name="'.$key.'" value="'.$_GET[$key].'">';
- }
-
- // If the attempted login was invalid, change the box title.
- $login_message = ($invalid_login == TRUE) ? "<font color=\"red\">$invalid_login_lang</font>" : '';
-
-echo <<<END
-
- <table cellpadding="0" cellspacing="0" border="0" width="{$login_width}" class="calborder">
- <tr>
- <td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{$login_lang}</div></td>
- </tr>
- <tr>
- <td align="left" class="G10B">
- <div style="padding: 5px;">
- {$login_message}
- <table border="0" width="100%" cellspacing="0" cellpadding="2">
- <tr>
- <td width="5%">{$username_lang}:</td>
- <td width="95%"><input class="login_style" type="text" size="8" name="username"></td>
- </tr>
- <tr>
- <td>{$password_lang}:</td>
- <td><input class="login_style" type="password" size="8" name="password"></td>
- </tr>
- <tr>
- <td>&nbsp;</td>
- <td><input class="login_style" type="submit" value="{$login_lang}"></td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- </table>
- </form>
- <img src="images/spacer.gif" width="1" height="10" alt=" "><br />
-
-END;
-
-}
-
-?>

© 2014-2024 Faster IT GmbH | imprint | privacy policy