Compare commits
No commits in common. "14d1ac93058bda5794e49d931a04994ee70a8570" and "01915413960fd3e3e7687985593dbe1993212916" have entirely different histories.
14d1ac9305
...
0191541396
@ -1,14 +0,0 @@
|
|||||||
<?php include('../templates/header.php'); ?>
|
|
||||||
<div class='window'>
|
|
||||||
<div class='window-bar'>
|
|
||||||
<span>moodblog API</span>
|
|
||||||
</div>
|
|
||||||
<div class='window-content'>
|
|
||||||
<ul>
|
|
||||||
<li><a href="shields-posts.php">shields.io posts endpoint</a></li>
|
|
||||||
<li><a href="shields-mood.php">shields.io mood endpoint</a></li>
|
|
||||||
<li><a href="shields-tunes.php">shields.io tunes endpoint</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php include('../templates/footer.php'); ?>
|
|
@ -1,18 +0,0 @@
|
|||||||
<?php
|
|
||||||
header('Content-Type: application/json');
|
|
||||||
require "../templates/config.php";
|
|
||||||
?>
|
|
||||||
{
|
|
||||||
"schemaVersion": 1,
|
|
||||||
"label": "current mood",
|
|
||||||
"color": "lightgrey",
|
|
||||||
<?php
|
|
||||||
require "../creds.php";
|
|
||||||
|
|
||||||
$result = mysqli_query($mysqli, "SELECT Mood FROM articles ORDER BY ID DESC LIMIT 1");
|
|
||||||
|
|
||||||
while($res = mysqli_fetch_array($result)) {
|
|
||||||
echo ' "message": "'.$res['Mood'].'"',"\n";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
}
|
|
@ -1,18 +0,0 @@
|
|||||||
<?php
|
|
||||||
header('Content-Type: application/json');
|
|
||||||
require "../templates/config.php";
|
|
||||||
?>
|
|
||||||
{
|
|
||||||
"schemaVersion": 1,
|
|
||||||
"label": "blog posts",
|
|
||||||
"color": "lightgrey",
|
|
||||||
<?php
|
|
||||||
require "../creds.php";
|
|
||||||
|
|
||||||
$result = mysqli_query($mysqli, "SELECT COUNT(ID) FROM articles");
|
|
||||||
|
|
||||||
while($res = mysqli_fetch_array($result)) {
|
|
||||||
echo ' "message": "'.$res['COUNT(ID)'].'"',"\n";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
}
|
|
@ -1,18 +0,0 @@
|
|||||||
<?php
|
|
||||||
header('Content-Type: application/json');
|
|
||||||
require "../templates/config.php";
|
|
||||||
?>
|
|
||||||
{
|
|
||||||
"schemaVersion": 1,
|
|
||||||
"label": "current tunes",
|
|
||||||
"color": "lightgrey",
|
|
||||||
<?php
|
|
||||||
require "../creds.php";
|
|
||||||
|
|
||||||
$result = mysqli_query($mysqli, "SELECT Song FROM articles ORDER BY ID DESC LIMIT 1");
|
|
||||||
|
|
||||||
while($res = mysqli_fetch_array($result)) {
|
|
||||||
echo ' "message": "'.$res['Song'].'"',"\n";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user