Logo Search packages:      
Sourcecode: dacode version File versions  Download package

login.php3

<?php
/* daCode _ http://www.dacode.org/
 * $Id: login.php3,v 1.19.2.4 2002/09/15 19:10:47 netsabes Exp $
 */

      $topdir = '..';
      require $topdir."/dacode.php3";

      $user = LoadClass('User');

      if ($user->do_login($HTTP_POST_VARS['table']) == 1) {
            if (isset ($HTTP_SERVER_VARS['HTTP_REFERER']) && 
                        !empty ($HTTP_SERVER_VARS['HTTP_REFERER'])) {
                  $tmp = parse_url($HTTP_SERVER_VARS['HTTP_REFERER']);
            }
            $reload = (!isset ($tmp['query'])) ? '?' : '&';
            $reload .= 'reload=reload';
            if (!empty ($HTTP_SERVER_VARS['HTTP_REFERER'])) {
                  $uri = str_replace('.html','.'.$config->php,
                        $HTTP_SERVER_VARS['HTTP_REFERER']);
                  header("Location: ".$uri.$reload);
                  exit;
            } else {
                  $uri = str_replace('.html','.'.$config->php,$config->basehref);
                  header("Location: ".$uri.$reload);
                  exit;
            }
      } else {
            echo lecho("trouble ... ").
                  "<a href=\"".$config->basehref."\">".
                  lecho("click here")."</a><br />\n";
      }

?>

Generated by  Doxygen 1.6.0   Back to index