forked from yanvolo/chalk_it_up
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmintest.php
38 lines (30 loc) · 860 Bytes
/
admintest.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
<html>
<head xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<style> * {
font-family: sans;
}
</style>
<title>no</title>
</head>
<body>
<?php
require "library.php";
sql();
echo "pg_connect exists? it MUST for things to work:" . (function_exists("pg_connect") ? "t" : "f") . "<br/>";
echo "sqlCon !== NULL:" . ($sqlCon !== NULL ? "t" : "f") . "<br/>";
if($sqlCon !== NULL){
$res = sqlVersion();
if($res === FALSE){
echo "SELECT version():" . "FALSE";
}else{
echo "SELECT version():" . printSql($res);
}
#echo printSql(runSql('', 'SELECT * FROM user_;', array()));
}
doneWithSql();
?>
<h1>phpinfo():</h1>
<?php phpinfo(); ?>
<script>if(Math.random()<.01){confirm("Do you liek bananas?");}</script>
</body>
</html>