-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.php
More file actions
executable file
·36 lines (28 loc) · 858 Bytes
/
settings.php
File metadata and controls
executable file
·36 lines (28 loc) · 858 Bytes
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
<?php
include_once("header.php");
?>
<?php
include_once("db.php");
include_once("mindoflib.php");
if ((stripslashes(!$_POST['checksubmit'])) && (checkCookie()) ) {
showSettingsform();
} else if (checkCookie()) {
$username = getUserName();
$site = strip_tags($_POST['site']);
$url = stripslashes($_POST['url']);
$numberIndex = stripslashes($_POST['index']);
$numberRSS = stripslashes($_POST['rss']);
$user = $username;
$pass = stripslashes($_POST['pass']);
$logincheck = checkLogin($user,$pass);
if ($logincheck == 0) {
changeSettings($site,$url,$numberIndex,$numberRSS);
} else {
echo "the username and/or password you entered was wrong. please <a href='settings.php'>try again</a>.";
}
} else {
echo "please <a href='login.php'>login</a> in order to change the site settings!";
}
?>
</body>
</html>