Commit f06c9246 authored by root's avatar root
Browse files

fix missing saverating file

parent 68f60f71
This diff is collapsed.
......@@ -17,5 +17,5 @@
.content {
margin-left: 299px !important;
margin-left: 2px !important;
if (!$_POST['username']){
echo "no username given";
if (!$_POST['userurl']){
echo "no userurl given";
if (!$_POST['domain']){
echo "no pod domain given";
if (!$_POST['comment']){
echo "no comment";
if (!$_POST['rating']){
echo "no rating given";
$domain = pg_escape_string($_POST['domain']);
$comment = pg_escape_string($_POST['comment']);
$rating = pg_escape_string($_POST['rating']);
$username = pg_escape_string($_POST['username']);
$userurl = pg_escape_string($_POST['userurl']);
$dbh = pg_connect("dbname=$pgdb user=$pguser password=$pgpass");
if (!$dbh) {
die("Error in connection: " . pg_last_error());
$sql = "INSERT INTO rating_comments (domain, comment, rating, username, userurl) VALUES('$domain', '$comment', '$rating', '$username', '$userurl')";
$result = pg_query($dbh, $sql);
if (!$result) {
die("Error in SQL query: " . pg_last_error());
$to = $adminemail;
$subject = "New rating added to poduptime ";
$message = "Pod:" . $_POST["domain"] . "\n\n";
$headers = "From: ".$_POST["email"]."\r\n";
@mail( $to, $subject, $message, $headers );
echo "Comment posted!";
......@@ -10,7 +10,7 @@
<script type="text/javascript" src=""></script>
<script src="OpenLayers.js"></script>
<link href="" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/newstyle.css" />
<link rel="stylesheet" href="css/facebox.css" />
......@@ -68,16 +68,14 @@ s1.parentNode.insertBefore(s, s1);
<div class="container-fluid">
<div class="sidebar">
<div class="adsense2">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-3662181805557062";
/* poduptimenew */
google_ad_slot = "3969028081";
google_ad_width = 300;
google_ad_height = 250;
<script type="text/javascript"
<script async src="//"></script>
<!-- poduptimebigger -->
<ins class="adsbygoogle"
(adsbygoogle = window.adsbygoogle || []).push({});
<a href=""><img src=""></a>
......@@ -88,13 +86,12 @@ src="">
<?php if ($hidden == "true") {echo "<a href='' class='btn danger large'>NOTICE: These pods are Hidden and have problems, click here to go to working pods</a>";} include("show.php"); ?>
<div id="add">
Pod Host? <u style="cursor: pointer; cursor: hand;">Click here</u> to add/manage your listing.<br>
Pod Host? <u style="cursor: pointer; cursor: hand;">Click here</u> to add your listing.<br>
<div id="info">
Data last refreshed at: <?php echo date("F d Y H:i:s.", filemtime($lastfile)) ?> Pacific Time<br>
Poduptime is run by <a href="" target=_new>David Morley</a> and is open source on <a href="">GitHub</a><br>
I also run the pods <a href="" target=_new></a> and the <a href="" target=_new></a> site.<br>
Some pods are <a href="">Hidden</a> That have too many issues.<br><br>
Poduptime is run by <a href="" target=_new>David Morley</a> and is open source on <a href="">GitHub</a> Feel free to contribute with pull requests or bugs!<br>
Some pods are <a href="">Hidden</a> hat have too many issues, see <a href="">Wiki</a> for more.<br><br>
<div id="howto" style="display:none; margin-left:50px">
......@@ -14,7 +14,7 @@ echo "var domain = \"{$_GET['domain']}\";";
type: "POST",
url: "saverating.php",
url: "db/saverating.php",
data: "username="+$('#username').val()+"&userurl="+$('#userurl').val()+"&comment="+$('#comment').val()+"&rating="+$('#rating').val()+"&domain="+domain,
success: function(msg){
if (msg == 1) {
......@@ -77,4 +77,4 @@ EOF;
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment