Location: PHPKode > projects > ProNuke. Postnuke To Oracle > postnuke/html/includes/blocks/login.php
<?php
// File: $Id: login.php,v 1.13 2001/12/06 14:46:31 jgm Exp $ $Name:  $
// ----------------------------------------------------------------------
// POST-NUKE Content Management System
// Copyright (C) 2001 by the Post-Nuke Development Team.
// http://www.postnuke.com/
// ----------------------------------------------------------------------
// Based on:
// PHP-NUKE Web Portal System - http://phpnuke.org/
// Thatware - http://thatware.org/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Original Author of file: Francisco Burzi
// Purpose of file:
// ----------------------------------------------------------------------

$blocks_modules['login'] = array(
    'func_display' => 'blocks_login_block',
    'text_type' => 'Login',
    'text_type_long' => "User's Login",
    'allow_multiple' => false,
    'form_content' => false,
    'form_refresh' => false,
    'show_preview' => false
);

// Security
addinstanceschemainfo('Loginblock::', '::');

function blocks_login_block($row) {
    global $user;

    if (!authorised(0, 'Loginblock::', '::', ACCESS_OVERVIEW)) {
        return;
    }
    if (!is_user($user)) {
        $boxstuff = "<form action=\"user.php\" method=\"post\">";
        $boxstuff .= "<center><font class=\"pn-normal\">"._NICKNAME."<br>";
        $boxstuff .= "<input type=\"text\" name=\"uname\" size=\"12\" maxlength=\"25\"><br>";
        $boxstuff .= "<font class=\"pn-normal\">"._PASSWORD."</font><br>";
        $boxstuff .= "<input type=\"password\" name=\"pass\" size=\"12\" maxlength=\"20\"><br>";
        $boxstuff .= "<input type=\"hidden\" name=\"module\" value=\"NS-User\">";
        $boxstuff .= "<input type=\"hidden\" name=\"op\" value=\"login\">";
        $boxstuff .= "<input type=\"hidden\" name=\"url\" value=\"".getenv("REQUEST_URI")."\">";
        $boxstuff .= "<input type=\"submit\" value=\""._LOGIN."\"></font></center></form>";
        $boxstuff .= "<center><font class=\"pn-normal\">"._ASREGISTERED."</font></center>";
        $row['title'] = _LOGIN;
        $row['content'] = $boxstuff;
        themesideblock($row);
    }
}
?>
Return current item: ProNuke. Postnuke To Oracle