forked from intelliants/elitius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
executable file
·60 lines (48 loc) · 1.59 KB
/
login.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/***************************************************************************
*
* PROJECT: eLitius Open Source Affiliate Software
* VERSION: 1.0
* LISENSE: GNU GPL (http://www.opensource.org/licenses/gpl-license.html)
*
* 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.
*
* Link to eLitius.com can not be removed from the software pages without
* permission of the eLitius respective owners. It is the only requirement
* for using this software.
*
* Copyright 2009 Intelliants LLC
* http://www.intelliants.com/
*
***************************************************************************/
require_once('header.php');
if ($_POST['authorize'])
{
$valid = true;
if (!$_POST['username'])
{
$valid = false;
$msg .= "<li>{$gXpLang['editor_incorrect']}</li>";
}
if (!$_POST['password'])
{
$valid = false;
$msg .= "<li>{$gXpLang['editorpsw_incorrect']}</li>";
}
if ($valid)
{
aff_login($_POST['username'], $_POST['password']);
}
if($msg)
echo "<script>alert('Incorrect Username and Password, please try again'); document.location.href='login.php';</script>\n";
}
$title = 'eLitius Affiliate Program - Login';
$description = $gXpLang['desc_login'];
$keywords = $gXpLang['keyword_login'];
$gXpSmarty->assign_by_ref('description', $description);
$gXpSmarty->assign_by_ref('keywords', $keywords);
$gXpSmarty->assign_by_ref('title', $title);
$gXpSmarty->display("login.tpl");
?>