forked from martin7jd/wpshepherd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_one.php
executable file
·35 lines (23 loc) · 1.17 KB
/
admin_one.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
<?php
# This page
$lh_port = $_SERVER["HTTP_HOST"];
$filename = './common/con_localhost.php';
echo '<div id="sitename">';
if (file_exists($filename)) {
echo '<h3>Warning</h3>';
echo 'Click Re-set Settings if you want to input your credentials again, then come back and see me';
} else {
echo '<h3>Configuration</h3>';
echo 'MySql <input id="host" disabled="disabled" type="text" name="host" value="' . $lh_port . '"><br/>';
if($lh_port == 'localhost:8888'){
/* autofocus does not work in FF*/
echo 'MySql <input id="user" type="text" name="user" placeholder="MAPP User=root" required autofocus/><br/>';
echo 'MySql <input id="pass" type="text" name="pass" placeholder="MAMP Password=root" required/><br/><br/>';
} else {
echo 'MySql <input id="user" type="text" name="user" placeholder="MySql User Name" required/><br/>';
echo 'MySql <input id="pass" type="text" name="pass" placeholder="MySql Password" required/><br/><br/>';
}
echo '<button type="button" onclick="admin_one()">Add Data!</button>';
}
echo '</div>';
?>