-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwrite.php
More file actions
34 lines (29 loc) · 907 Bytes
/
write.php
File metadata and controls
34 lines (29 loc) · 907 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
<section id="writeSection" class="panel-section">
<div class="region-area region-area-1 bar mCustomScrollbar" data-mcs-theme="inset-2-dark">
<?php
$directory = "components/writing/posts/";
$filecount = 0;
$files = glob($directory . "*");
if ($files){
$filecount = count($files);
}
if($filecount > 0){
for($i=1; $i-1 < $filecount-1; $i++){
echo "<div>";
echo "<p>";
include("components/writing/posts/file".$i.".txt");
echo "</p>";
echo "</div>";
}
}
?>
</div>
<div class="region-area region-area-2">
<form method="post" enctype="multipart/form-data" id="form">
<div class="form-control">
<textarea name="write" cols="30" rows="8"></textarea>
<button type="button" name="Send Text" id="submit" onClick="window.location.reload()"> Submit </button>
</div>
</form>
</div>
</section>