-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathadmin_login.php
More file actions
executable file
·59 lines (52 loc) · 1.72 KB
/
Copy pathadmin_login.php
File metadata and controls
executable file
·59 lines (52 loc) · 1.72 KB
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
<?php
/**
*
* Duhok Forum 3.0
* @author Dilovan Matini (original founder)
* @copyright 2007 - 2021 Dilovan Matini
* @see df.lelav.com
* @see https://github.com/dilovanmatini/duhok-forum
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
* @note This program is distributed in the hope that it will be useful - WITHOUT ANY WARRANTY;
*
*/
const _df_script = "admin_login";
const _df_filename = "admin_login.php";
define('_df_path', dirname(__FILE__)."/");
require_once _df_path."globals.php";
if(ulv != 4){
$DF->quick();
exit();
}
if(cplogin){
$DF->quick(src != '' ? src : 'admincp.php');
}
$Template->adminHeader();
echo"<br>";
if( !cplogin && type == 'adminlogin' ){
$Template->msgBox('الكلمة السرية التي دخلت غير صحيح', 'red', 20, 0, true, false);
}
$text="
<table width=\"100%\" cellSpacing=\"1\" cellPadding=\"4\" border=\"0\" align=\"center\" border=\"0\">
<form method=\"post\" action=\"admin_login.php?type=adminlogin&src=".urlencode(src)."\">
<tr>
<td>الأسم</td>
<td align=\"center\" rowspan=\"5\" style=\"padding-left:40px;padding-right:50px\"><img src=\"images/admin/login.jpg\" border=\"0\"></td>
</tr>
<tr>
<td>{$Template->input(300,array('name'=>'login_cp_name','value'=>$DF->getCookie('login_cp_name')),true)}</td>
</tr>
<tr>
<td>الكلمة السرية</td>
</tr>
<tr>
<td>{$Template->input(300,array('type'=>'password','name'=>'login_cp_pass'),true)}</td>
</tr>
<tr>
<td><input type=\"submit\" class=\"button\" value=\"دخول\"></td>
</tr>
</form>
</table>";
$Template->adminBox("دخول لوحة التحكم", $text, 0, 12, true);
$Template->adminFooter();
?>