-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedits.php
42 lines (36 loc) · 1.19 KB
/
edits.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
<?php
session_start();
if (!isset($_SESSION['login'])) {
header('LOCATION:log.php'); die();
}
include 'partials/header.php';
$json = file_get_contents('http://localhost:8888/derp/info.json');
$data = json_decode($json);
$about = $data->about;
$pricing = $data->pricing;
$commissions = $data->commissions;
$ending = $data->ending;
$number = $data->number;
?>
<section class="ae-container-fluid ae-container-fluid--inner rk-main">
<a href="edit.php"class="button is-outlined">Front Page</a>
<br><br><br><br>
<h4>About</h4>
<form action='json_write_info.php' method='get'>
<textarea class='woopa' name='edit-about'><?php echo $about; ?></textarea>
<br><br><br>
<hr>
<br><br><h4>Pricing</h4>
<textarea class='woopa' name='edit-pricing'><?php echo $pricing; ?></textarea>
<br><br><h4>Commissions</h4>
<textarea class='woopa' name='edit-commissions'><?php echo $commissions; ?></textarea>
<br><br><h4>Ending</h4>
<textarea class='woopa' name='edit-ending'><?php echo $ending; ?></textarea>
<br><br><br>
<hr>
<br><br><h4>Phone</h4>
<textarea class='woopa' name='edit-number'><?php echo $number; ?></textarea>
<button class="log" type="submit">SAVE</button>
</form>
</section>
<?php include 'partials/footer.php';?>