-
Notifications
You must be signed in to change notification settings - Fork 1
/
sharer.php
55 lines (50 loc) · 1.96 KB
/
sharer.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
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
session_start();
include "phpcon/link.php";
$selel = mysql_query("select*from penulis where id_akun='$_SESSION[id]'");
$has = mysql_fetch_array($selel);
if(empty($has)){
}
else if(empty($_SESSION['id'])){
?>
<meta name="description" content="Menyediakan layanan berbagi pengetahuan secara mudah" />
<meta name="keywords" content="Dynamic Link Library" />
<meta name="author" content="Dynamic Link Library" />
<?php
}
else{
include "phpcon/link.php";
$d = date("d");
$m = date("m");
$y = date("Y");
$h = date("H");
$i = date("i");
$s = date("s");
if(isset($_POST['kirim'])){
$start = htmlentities($_POST['stats']);
$kajsdkasd = mysql_query("insert into timeline values('','$_SESSION[id]','general','$start','$h','$i','$s','$d','$m','$y','0')");
}
?>
<meta name="description" content="Menyediakan layanan berbagi pengetahuan secara mudah" />
<meta name="keywords" content="Dynamic Link Library" />
<meta name="author" content="Dynamic Link Library" />
<div style="height:100%;color:<?php echo $_SESSION['navbar'];?>;background:<?php echo $_SESSION['background'];?>">
<div style="padding:10px;color:<?php echo $_SESSION['navbar'];?>;background:<?php echo $_SESSION['background'];?>">
<link href="css/modern.css" rel="stylesheet">
<form method="POST" action="" style="border-bottom:1px solid #999;">
<label style="float:left;font-size:20pt;">Buat Status Baru</label>
<br><br>
<textarea type="text" maxlength="75" style="padding:10px;font-size:18pt;font-family:Segoe UI Light;max-height:100px;height:100px;position:relative;float:left;max-width:100%;width:100%;border-radius:15px;" name="stats"></textarea>
<br><br>
<div style="float:right;margin-top:5px;">
<button type="submit" name="kirim" style="color:<?php echo $_SESSION['background'];?>;background:<?php echo $_SESSION['navbar'];?>">Kirim</button>
</div>
<div style="width:100%">
<br>
</div>
</form>
</div>
</div>
<?php
}
?>