Current time: 09-28-2024, 05:34 AM Hello There, Guest! (LoginRegister)


Post Reply 
Login form on website.
Author Message
Linkforsoad Offline
Junior Member
*

Posts: 12
Joined: Feb 2009
Reputation: 0
Post: #9
RE: Login form on website.
I cant find it. Here is my index file:

Code:
*  blablabla license blablabla =P
*/

require 'include/ispcp-lib.php';

if (isset($_GET['logout'])) {
        unset_user_login_data();
}

do_session_timeout();

init_login();

if (isset($_POST['uname']) && isset($_POST['upass']) && !empty($_POST['uname'])$

        $uname = encode_idna($_POST['uname']);

        check_input(trim($_POST['uname']));
        check_input(trim($_POST['upass']));

        if (register_user($uname, $_POST['upass'])) {
            redirect_to_level_page();
        }

        header('Location: index.php');
        exit();
}
if (check_user_login()) {
        if (!redirect_to_level_page()) {
                unset_user_login_data();
        }
}

shall_user_wait();
$theme_color = isset($_SESSION['user_theme']) ? $_SESSION['user_theme'] : Confi$

$tpl = new pTemplate();

if ((Config::get('MAINTENANCEMODE') || databaseUpdate::getInstance()->checkUpda$

        $tpl->define_dynamic('page', Config::get('LOGIN_TEMPLATE_PATH') . '/mai$
        $tpl->assign(
                array(
              'TR_PAGE_TITLE'         => tr('ispCP Omega a Virtual Ho$
                        'THEME_COLOR_PATH'      => Config::get('LOGIN_TEMPLATE_$
                        'THEME_CHARSET'         => tr('encoding'),
                        'TR_MESSAGE'            => nl2br(Config::get('MAINTENAN$
                        'TR_ADMINLOGIN'         => tr('Administrator login')
                )
        );

} else {
  $tpl->define_dynamic('page', Config::get('LOGIN_TEMPLATE_PATH') . '/ind$

        $tpl->assign(
                array(
                        'TR_MAIN_INDEX_PAGE_TITLE'      => tr('Karhost.nl Klant$
                        'THEME_COLOR_PATH'                      => Config::get($
                        'THEME_CHARSET'                         => tr('encoding$
                        'TR_LOGIN'                                      => tr('$
                        'TR_USERNAME'                           => tr('Gebruike$
                        'TR_PASSWORD'                           => tr('Wachtwoo$
                        'TR_LOGIN_INFO'                         => tr('Voert u $
                        // @todo: make this configurable by ispcp-lib
                        'TR_SSL_LINK'                           => isset($_SERV$
                        'TR_SSL_IMAGE'                          => isset($_SERV$
                        'TR_SSL_DESCRIPTION'            => !isset($_SERVER['HTT$
                )
        );
}
if (Config::get('LOSTPASSWORD')) {
        $tpl->assign('TR_LOSTPW', tr('Wachtwoord vergeten?'));
} else {
        $tpl->assign('TR_LOSTPW', '');
}

$tpl->define_dynamic('page_message', 'page');
gen_page_message($tpl);

$tpl->parse('PAGE', 'page');
$tpl->prnt();

if (Config::get('DUMP_GUI_DEBUG'))
        dump_gui_debug();

?>
04-10-2009 03:52 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Login form on website. - Linkforsoad - 04-10-2009, 12:04 AM
RE: Login form on website. - BeNe - 04-10-2009, 01:59 AM
RE: Login form on website. - Linkforsoad - 04-10-2009, 02:02 AM
RE: Login form on website. - Lucan - 04-10-2009, 02:18 AM
RE: Login form on website. - Linkforsoad - 04-10-2009, 02:53 AM
RE: Login form on website. - Lucan - 04-10-2009, 03:01 AM
RE: Login form on website. - Linkforsoad - 04-10-2009, 03:04 AM
RE: Login form on website. - Lucan - 04-10-2009, 03:06 AM
RE: Login form on website. - Linkforsoad - 04-10-2009 03:52 AM
RE: Login form on website. - Lucan - 04-10-2009, 04:07 AM
RE: Login form on website. - Linkforsoad - 04-10-2009, 04:08 AM
RE: Login form on website. - Lucan - 04-10-2009, 09:44 PM
RE: Login form on website. - Linkforsoad - 04-10-2009, 10:04 PM
RE: Login form on website. - Lucan - 04-11-2009, 09:39 AM
RE: Login form on website. - RedSec - 04-15-2009, 03:27 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)