Skip to content

Commit

Permalink
sundry review
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Sep 19, 2022
1 parent d56e867 commit a64d56c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 125 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
This is a collection of stuff driving the http://weather.im website
Weather.IM
==========

This is a collection of stuff driving the [weather.im website](https://weather.im).

This website is playground of Iowa Environmental Mesonet related weather +
instant messaging apps
instant messaging apps.
114 changes: 0 additions & 114 deletions html/facebook.php

This file was deleted.

1 change: 0 additions & 1 deletion html/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@
EOF;
$t->render('single.phtml');
?>
15 changes: 7 additions & 8 deletions html/p.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,20 @@
WHERE pil = $1 and entered between $2 and $3
ORDER by entered ASC LIMIT 100");
$ts = gmmktime( substr($e,8,2), substr($e,10,2), 0,
substr($e,4,2), substr($e,6,2), substr($e,0,4) );
substr($e,4,2), substr($e,6,2), substr($e,0,4) );
$offset0 = 0;
$offset1 = 60;

$rs = pg_execute($pgconn, "_LSELECT", Array($pil,
date("Y-m-d H:i", $ts+$offset0),
date("Y-m-d H:i", $ts+$offset1)));
date("Y-m-d H:i", $ts+$offset0),
date("Y-m-d H:i", $ts+$offset1)));

if (pg_numrows($rs) < 1){
echo "<div class=\"alert alert-warning\">Sorry, could not find product.</div>";
echo "<div class=\"alert alert-warning\">Sorry, could not find product.</div>";
}
else{
$row = pg_fetch_assoc($rs, 0);
$d = preg_replace("/\r\r\n/", "\n", $row["data"]);
echo "<pre>". htmlentities($d) ."</pre>\n";
$row = pg_fetch_assoc($rs, 0);
$d = preg_replace("/\r\r\n/", "\n", $row["data"]);
echo "<pre>". htmlentities($d) ."</pre>\n";
}
}
?>

0 comments on commit a64d56c

Please sign in to comment.