-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·35 lines (32 loc) · 1.01 KB
/
index.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
include "includes/libpaste.php";
$arg=get_id($_SERVER["REQUEST_URI"]);
echo $arg;
if($arg!=""){
$connect=mysql_connect("localhost","root","fooxkcdpgh2.7") ;
if($connect)
{
mysql_select_db("glupaste");
$inputquery="select * from record where id='$arg';";
$arr= mysql_query( $inputquery);
$row = mysql_fetch_array($arr);
$lang= $row['lang'];
$author = $row['author'];
$title = $row['title'];
$dd = $row['c_date'];
echo "<body>";
include_once "includes/header.php";
echo "<center><h2>Paste #$arg </h2></center><br />";
echo "<center><h2>$title</h2></center><br />";
echo "<center><h4>Paste from $author on $dd</h4></center><br />";
echo "<center><h4><a href='download.php?id=$arg'>Download this file</a></h4></center><br />";
echo "<hr/><br />";
print_highlighted($lang);
echo "<br /><hr/><br />";
include_once "includes/footer.php";
echo "</body>";
}
}else{
include_once "main.php";
}
?>