-
Notifications
You must be signed in to change notification settings - Fork 0
/
Текстовый документ (2).txt
128 lines (97 loc) · 3.31 KB
/
Текстовый документ (2).txt
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?php
include_once ('config.php');
if ($_SERVER['REQUEST_URI'] == '/'){
$Page = 'index';
$Module = 'index';
} else {
$URL_Path = parse=url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$URL_Parts = explode('/', trim($URL_Path, '/'));
$Page = array_shift($URL_Parts);
$Module = array_shift($URL_Parts);
if(!empty($Module)){
$Param = array();
for($i = 0; $i < count($URL_Parts); $i++){
$Param[$URL_Parts[$i]] = $URL_Parts[++$i];
}
}
}
if ($Page == 'index') include ('index.php');
else if ($Page == 'download') include('downlod.php');
else if ($Page == 'anki') include('anki.php');
?>
<?php
//mysql_connect('localhost','learn','goodday');
//mysql_select_db('ankilearn_kl_com_ua')
//or die("Íå ìîãó ïîäêëþ÷èòüñÿ ê áàçå.");
//include 'setting.php';
//global $db;
//$query = sprintf("SELECT * FROM mybd ");
//$result = mysqli_query($db, $query);
require_once 'config.php';
require_once 'functions.php';
$result = get_bd();
$row = mysqli_fetch_assoc($result);
$home_out = $row['home'];
$admin_login= $row['login'];
$admin_pass = $row['password'];
if(!empty($_POST))
if($admin_login == $_POST['login'] && $admin_pass == $_POST['pass'])
{
header('location: admin.php?key=' . md5($_POST['pass']) );
exit();
}
?>
<html>
<head>
<meta http-equiv="Context-Type" content = "text/html";
charset = "windows-1251"/>
<title> AnkiLearn </title>
<link rel = "icon" href="images/al.ICO" type="image/x-icon">
<meta name = "description" content = "AnkiLearn">
<meta name = "keywords" content = "anki, English, coding, Spanish">
<link href = "css/core.css" rel = "stylesheet" type = "text/css">
<link type = "text/css" href = "css/style.css" rel = "stylesheet" />
<link type = "text/css" href = "css/phone.css" rel = "stylesheet" media="handheld, only screen and (max-device-width:480px)"/>
</head>
<body>
<div class = "container" >
<div class = "wrapper" >
<div class = "menu_anki" > <a href= "index.php" >Home </a> </div>
<div class = "menu_anki" > <a href= "download.php" > Download </a> </div>
<div class = "menu_anki" > <a href = "anki.php" > Anki </a> </div>
<div class = "menu_anki" > <a href = "contacts.php"> Contacts </a> </div>
</div>
<div class = "login_password" >
<form method="post">
<input type = "text" name = "login" placeholder="Login"></input></br>
<input type = "password" name = "pass" placeholder="Password"></input></br>
<input type = "submit" name = "ok" value="Enter"></input></br>
</div>
<div class = "content" >
<div class = "text" > Welcome to AnkiLearn </div>
<div class = "text" ><p> Anki Learn is optimal method for study of English and Coding and etc.<p> </div>
<div class="text"><?php echo $home_out; ?> </div>
</div>
</div>
</body>
</html>
<?php
include_once ('config.php');
if ($_SERVER['REQUEST_URI'] == '/'){
$Page = 'index';
$Module = 'index';
} else {
$URL_Path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$URL_Parts = explode('/', trim($URL_Path, '/'));
$Page = array_shift($URL_Parts);
$Module = array_shift($URL_Parts);
if(!empty($Module)){
$Param = array();
for($i = 0; $i < count($URL_Parts); $i++){
$Param[$URL_Parts[$i]] = $URL_Parts[++$i];
}
}
}
if ($Page == 'index') include ('index.php');
else if ($Page == 'download') include('download.php');
else if ($Page == 'anki') include('anki.php');