Ejemplo n.º 1
0
<?php

/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// |        SourceWell 2 - The GPL Software Announcement System           |
// +----------------------------------------------------------------------+
// |      Copyright (c) 2001-2002 BerliOS, FOKUS Fraunhofer Institut      |
// +----------------------------------------------------------------------+
// | This program is free software. You can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation; either version 2 or later of the GPL.  |
// +----------------------------------------------------------------------+
// | Authors: Gregorio Robles <*****@*****.**>                        |
// |          Lutz Henckel <*****@*****.**>                    |
// +----------------------------------------------------------------------+
//
// $Id: logout.php,v 1.5 2002/05/10 22:49:46 grex Exp $
/* Special status for the logout page (menubar, etc.) */
$logout = 1;
require 'start.inc';
$msg = _('You have been logged in as') . ' <b>' . $auth->auth['uname'] . '</b> ' . _('with') . ' <b>' . $auth->auth['perm'] . '</b> ' . _('permision') . '.<br>' . _('Your authentication was valid until') . ' <b>' . lib_date_long($auth->auth['exp']) . '</b>.<p>' . _('This is all over now. You have been logged out') . '.';
$table->table_full(_('Logout'), $msg);
if (isset($auth)) {
    $auth->logout();
}
config_inc('end');
Ejemplo n.º 2
0
$table->table_column('<b>' . _('Username') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_textField('username', $db->f('username'), 20, 32), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Password') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_PassWordField('password', 20, 32, $db->f('password')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Confirm Password') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_PassWordField('cpassword', 20, 32, $db->f('password')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Real Name') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_textField('realname', $db->f('realname'), 20, 64), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('E-mail') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_textField('email_usr', $db->f('email_usr'), 20, 128), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Creation') . ':</b>', '50%', '', 'right');
$table->table_column(lib_date_long($db->f('creation_usr')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Last Modification') . ':</b>', '50%', '', 'right');
$table->table_column(lib_date_long($db->f('modification_usr')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Permisions') . ':</b>', '50%', '', 'right');
$table->table_column($db->f('perms'), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_colspan(html_form_submit(_('Change'), 'u_edit'), 2, '', 'center');
$table->table_columns_end();
htmlp_form_hidden('u_id', $db->f('user_id'));
htmlp_form_end();
$table->table_body_end();
$table->table_end();
config_inc('end');
Ejemplo n.º 3
0
<?php

/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// |        SourceWell 2 - The GPL Software Announcement System           |
// +----------------------------------------------------------------------+
// |      Copyright (c) 2001-2002 BerliOS, FOKUS Fraunhofer Institut      |
// +----------------------------------------------------------------------+
// | This program is free software. You can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation; either version 2 or later of the GPL.  |
// +----------------------------------------------------------------------+
// | Authors: Gregorio Robles <*****@*****.**>                        |
// |          Lutz Henckel <*****@*****.**>                    |
// +----------------------------------------------------------------------+
//
// $Id: login.php,v 1.14 2002/05/10 18:52:01 grex Exp $
$login = 1;
page_open(array('sess' => 'SourceWell_Session', 'auth' => 'SourceWell_Auth', 'perm' => 'SourceWell_Perm'));
require 'start.inc';
if (isset($perm) && $perm->have_perm('user_pending')) {
    $table_error->table_full(_('Error'), _('Access denied') . _('You are a pending user. You need to confirm your registration'));
    $auth->logout();
} else {
    $msg = _('You are logged in as') . ' <b>' . $auth->auth['uname'] . '</b> ' . _('with') . ' ' . '<b>' . $auth->auth['perm'] . '</b> ' . _('permission') . '.' . '<br>' . _('Your authentication is valid until') . ' <b>' . lib_date_long($auth->auth['exp']) . '</b>';
    $table->table_full(_('Welcome to') . ' ' . $config_sys_name, $msg);
}
config_inc('end');