-
Notifications
You must be signed in to change notification settings - Fork 3
/
vote.php
executable file
·80 lines (41 loc) · 1.23 KB
/
vote.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/*
vote.php has yet to be written.
for now, it's just collecting info and stuff.
*/
include("config.php");
include("inc/mitsuba.php");
$conn = new mysqli($db_host, $db_username, $db_password, $db_database);
$haruko = new Mitsuba($conn);
$sql = "SELECT * FROM `posts` WHERE `strip` != ''";
$sql = "SELECT DISTINCT strip from `posts`";
$trip = $conn->query("SELECT * FROM posts WHERE trip IS NOT NULL");
if(!$result = $conn->query($sql)){
die('There was an error running the query [' . $conn->error . ']');
}else{
while($row = $result->fetch_assoc()){
echo("<pre>");
if($row['strip']){
echo "Secure Tripcode: ".$row['strip'];
}
echo("</pre>");
}
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>314chan | Vote</title>
<meta name="description" content="Vote on your staff!">
<meta name="author" content="314telecommunications">
<link rel="stylesheet" href="css/styles.css?v=1.0">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
Vote!
<script src="js/scripts.js"></script>
</body>
</html>