Compare commits
No commits in common. "3299636a46254d2c02afefbc4e298241a0a7c50c" and "590953d9bc4d52223925735486f96fc51f6af185" have entirely different histories.
3299636a46
...
590953d9bc
@ -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