'This pod %1$s has been watched for %2$s months and its average ping time is %3$s with uptime of %4$s%% this month and was last checked on %5$s. On a score of 100 this pod is a %6$s right now',
$sql='SELECT id,domain,status,secure,score,userrating,adminrating,city,state,country,lat,long,ip,ipv6,pingdomurl,monthsmonitored,uptimelast7,responsetimelast7,local_posts,comment_counts,dateCreated,dateUpdated,dateLaststats,hidden FROM pods';
}elseif($_GET['format']=='json'){
$sql='SELECT id,domain,status,secure,score,userrating,adminrating,city,state,country,lat,long,ip,ipv6,pingdomurl,monthsmonitored,uptimelast7,responsetimelast7,local_posts,comment_counts,dateCreated,dateUpdated,dateLaststats,hidden FROM pods';
<!-- /* Copyright (c) 2011, David Morley. This file is licensed under the Affero General Public License version 3 or later. See the COPYRIGHT file. */ -->
<?php
$valid=0;
$valid=0;
require_once__DIR__.'/../logging.php';
$log=newLogging();
$log->lfile($log_dir.'/add.php.log');
if(!$_POST['url']){
$log->lwrite('no url given '.$_POST['domain']);
if(!$_POST['url']){
$log->lwrite('no url given '.$_POST['domain']);
die('no url given');
}
if(!$_POST['email']){
$log->lwrite('no email given '.$_POST['domain']);
if(!$_POST['email']){
$log->lwrite('no email given '.$_POST['domain']);
die('no email given');
}
if(!$_POST['domain']){
$log->lwrite('no domain given '.$_POST['domain']);
if(!$_POST['domain']){
$log->lwrite('no domain given '.$_POST['domain']);
die('no pod domain given');
}
if(!$_POST['url']){
$log->lwrite('no api given '.$_POST['domain']);
if(!$_POST['url']){
$log->lwrite('no api given '.$_POST['domain']);
die('no API key for your stats');
}
if(strlen($_POST['url'])<14){
$log->lwrite('api key too short '.$_POST['domain']);
if(strlen($_POST['url'])<14){
$log->lwrite('api key too short '.$_POST['domain']);
die('API key bad needs to be like m58978-80abdb799f6ccf15e3e3787ee');
$sql="SELECT id,domain,status,secure,score,userrating,adminrating,city,state,country,lat,long,ip,ipv6,pingdomurl,monthsmonitored,uptimelast7,responsetimelast7,local_posts,comment_counts,dateCreated,dateUpdated,dateLaststats,hidden FROM pods WHERE domain = $1";
$sql="SELECT id,domain,status,secure,score,userrating,adminrating,city,state,country,lat,long,ip,ipv6,pingdomurl,monthsmonitored,uptimelast7,responsetimelast7,local_posts,comment_counts,dateCreated,dateUpdated,dateLaststats,hidden FROM pods WHERE domain = $1";
$message='Pod '.$_POST['domain'].' was deleted from podupti.me as it was dead on the list. '.$_POST['comments']." Feel free to add back at any time. \n\n";
$message='Pod '.$_POST['domain'].' is on the list to be deleted now because: '.$_POST['comments'].". \n\n Please let me know if you need help fixing before it is removed. \n\n";
$message='Pod '.$_POST['domain'].' was deleted from podupti.me as it was dead on the list. '.$_POST['comments']." Feel free to add back at any time. \n\n";
$message='Pod '.$_POST['domain'].' is on the list to be deleted now because: '.$_POST['comments'].". \n\n Please let me know if you need help fixing before it is removed. \n\n";
//* Copyright (c) 2011-2016, David Morley. This file is licensed under the Affero General Public License version 3 or later. See the COPYRIGHT file. */