mirror of
https://github.com/jakejarvis/spoons.git
synced 2026-10-01 19:25:39 -04:00
Merge branch 'master' of https://github.com/jakejarvis/spoons
This commit is contained in:
commit
011934600a
12 files changed
+218
-51
No files matched your search
@@ -1,18 +1,20 @@
|
|||||||
Options -indexes
|
Options -indexes
|
||||||
|
|
||||||
|
ErrorDocument 403 /error.html
|
||||||
|
ErrorDocument 404 /error.html
|
||||||
#AddType application/x-httpd-php5 .pdf
|
#AddType application/x-httpd-php5 .pdf
|
||||||
|
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
RewriteRule ^login/?$ login.php
|
RewriteRule ^login/?$ login.php [L]
|
||||||
RewriteRule ^logout/?$ logout.php
|
RewriteRule ^logout/?$ logout.php [L]
|
||||||
RewriteRule ^sms/?$ sms.php
|
RewriteRule ^sms/?$ sms.php [L]
|
||||||
RewriteRule ^print.pdf print.php
|
RewriteRule ^print.pdf print.php [L]
|
||||||
RewriteRule ^shuffle/?$ index.php?shuffle
|
RewriteRule ^shuffle/?$ index.php?shuffle [L]
|
||||||
RewriteRule ^shuffle/confirmed/?$ index.php?shuffle&confirmed
|
RewriteRule ^shuffle/confirmed/?$ index.php?shuffle&confirmed [L]
|
||||||
RewriteRule ^shuffle/done/?$ index.php?shuffle&done
|
RewriteRule ^shuffle/done/?$ index.php?shuffle&done [L]
|
||||||
RewriteRule ^clear/?$ index.php?clear
|
RewriteRule ^clear/?$ index.php?clear [L]
|
||||||
RewriteRule ^clear/confirmed/?$ index.php?clear&confirmed
|
RewriteRule ^clear/confirmed/?$ index.php?clear&confirmed [L]
|
||||||
RewriteRule ^clear/done/?$ index.php?clear&done
|
RewriteRule ^clear/done/?$ index.php?clear&done [L]
|
||||||
RewriteRule ^add/?$ add.php
|
RewriteRule ^add/?$ add.php [L]
|
||||||
RewriteRule ^spoon/([^/.]+)/?$ index.php?spoon=$1
|
RewriteRule ^spoon/([^/.]+)/?$ index.php?spoon=$1 [L]
|
||||||
RewriteRule ^revive/([^/.]+)/?$ index.php?revive=$1
|
RewriteRule ^revive/([^/.]+)/?$ index.php?revive=$1 [L]
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.6 KiB |
+15
-21
@@ -1,30 +1,11 @@
|
|||||||
-- phpMyAdmin SQL Dump
|
|
||||||
-- version 3.3.10.4
|
|
||||||
-- http://www.phpmyadmin.net
|
|
||||||
--
|
|
||||||
-- Host: mysql.jakejarvis.dreamhosters.com
|
|
||||||
-- Generation Time: May 19, 2013 at 08:43 AM
|
|
||||||
-- Server version: 5.1.56
|
|
||||||
-- PHP Version: 5.2.17
|
|
||||||
|
|
||||||
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
||||||
|
SET time_zone = "+00:00";
|
||||||
|
|
||||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||||
/*!40101 SET NAMES utf8 */;
|
/*!40101 SET NAMES utf8 */;
|
||||||
|
|
||||||
--
|
|
||||||
-- Database: `spoons`
|
|
||||||
--
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Table structure for table `spooners`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `spooners` (
|
CREATE TABLE IF NOT EXISTS `spooners` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`order_num` int(11) NOT NULL,
|
`order_num` int(11) NOT NULL,
|
||||||
@@ -36,4 +17,17 @@ CREATE TABLE IF NOT EXISTS `spooners` (
|
|||||||
`spooned_by` int(11) NOT NULL DEFAULT '0',
|
`spooned_by` int(11) NOT NULL DEFAULT '0',
|
||||||
`target_id` int(11) NOT NULL,
|
`target_id` int(11) NOT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ;
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS `texts` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`message` text COLLATE utf8_unicode_ci NOT NULL,
|
||||||
|
`response` text COLLATE utf8_unicode_ci NOT NULL,
|
||||||
|
`phone_number` text COLLATE utf8_unicode_ci NOT NULL,
|
||||||
|
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
|
||||||
|
|
||||||
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||||
+160
@@ -0,0 +1,160 @@
|
|||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<!--
|
||||||
|
_ _ _
|
||||||
|
| \ | | (_)
|
||||||
|
| \| | _____ _____ _ __ __ _ ___ _ __ _ __ __ _ __ _ ___ _____
|
||||||
|
| . ` |/ _ \ \ / / _ \ '__| / _` |/ _ \| '_ \| '_ \ / _` | / _` | \ \ / / _ \
|
||||||
|
| |\ | __/\ V / __/ | | (_| | (_) | | | | | | | (_| | | (_| | |\ V / __/
|
||||||
|
\_| \_/\___| \_/ \___|_| \__, |\___/|_| |_|_| |_|\__,_| \__, |_| \_/ \___|
|
||||||
|
__/ | __/ |
|
||||||
|
|___/ |___/
|
||||||
|
_ _
|
||||||
|
| \ | |
|
||||||
|
_ _ ___ _ _ _ _ _ __ | \| | _____ _____ _ __
|
||||||
|
| | | |/ _ \| | | | | | | | '_ \ | . ` |/ _ \ \ / / _ \ '__|
|
||||||
|
| |_| | (_) | |_| | | |_| | |_) | | |\ | __/\ V / __/ |
|
||||||
|
\__, |\___/ \__,_| \__,_| .__( ) \_| \_/\___| \_/ \___|_|
|
||||||
|
__/ | | | |/
|
||||||
|
|___/ |_|
|
||||||
|
_ _
|
||||||
|
| | | |
|
||||||
|
__ _ ___ _ __ _ __ __ _ | | ___| |_ _ _ ___ _ _
|
||||||
|
/ _` |/ _ \| '_ \| '_ \ / _` | | |/ _ \ __| | | | |/ _ \| | | |
|
||||||
|
| (_| | (_) | | | | | | | (_| | | | __/ |_ | |_| | (_) | |_| |
|
||||||
|
\__, |\___/|_| |_|_| |_|\__,_| |_|\___|\__| \__, |\___/ \__,_|
|
||||||
|
__/ | __/ |
|
||||||
|
|___/ |___/
|
||||||
|
_ _ _
|
||||||
|
| | | \ | |
|
||||||
|
__| | _____ ___ __ | \| | _____ _____ _ __
|
||||||
|
/ _` |/ _ \ \ /\ / / '_ \ | . ` |/ _ \ \ / / _ \ '__|
|
||||||
|
| (_| | (_) \ V V /| | | | | |\ | __/\ V / __/ |
|
||||||
|
\__,_|\___/ \_/\_/ |_| |_| \_| \_/\___| \_/ \___|_|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
__ _ ___ _ __ _ __ __ _ _ __ _ _ _ __
|
||||||
|
/ _` |/ _ \| '_ \| '_ \ / _` | | '__| | | | '_ \
|
||||||
|
| (_| | (_) | | | | | | | (_| | | | | |_| | | | |
|
||||||
|
\__, |\___/|_| |_|_| |_|\__,_| |_| \__,_|_| |_|
|
||||||
|
__/ |
|
||||||
|
|___/
|
||||||
|
_ _
|
||||||
|
| | | |
|
||||||
|
__ _ _ __ ___ _ _ _ __ __| | __ _ _ __ __| |
|
||||||
|
/ _` | '__/ _ \| | | | '_ \ / _` | / _` | '_ \ / _` |
|
||||||
|
| (_| | | | (_) | |_| | | | | (_| | | (_| | | | | (_| |
|
||||||
|
\__,_|_| \___/ \__,_|_| |_|\__,_| \__,_|_| |_|\__,_|
|
||||||
|
|
||||||
|
|
||||||
|
_ _
|
||||||
|
| | | |
|
||||||
|
__| | ___ ___ ___ _ __| |_ _ _ ___ _ _
|
||||||
|
/ _` |/ _ \/ __|/ _ \ '__| __| | | | |/ _ \| | | |
|
||||||
|
| (_| | __/\__ \ __/ | | |_ | |_| | (_) | |_| |
|
||||||
|
\__,_|\___||___/\___|_| \__| \__, |\___/ \__,_|
|
||||||
|
__/ |
|
||||||
|
|___/
|
||||||
|
_ _
|
||||||
|
| \ | |
|
||||||
|
| \| | _____ _____ _ __ __ _ ___ _ __ _ __ __ _
|
||||||
|
| . ` |/ _ \ \ / / _ \ '__| / _` |/ _ \| '_ \| '_ \ / _` |
|
||||||
|
| |\ | __/\ V / __/ | | (_| | (_) | | | | | | | (_| |
|
||||||
|
\_| \_/\___| \_/ \___|_| \__, |\___/|_| |_|_| |_|\__,_|
|
||||||
|
__/ |
|
||||||
|
|___/
|
||||||
|
_
|
||||||
|
| |
|
||||||
|
_ __ ___ __ _| | _____ _ _ ___ _ _ ___ _ __ _ _
|
||||||
|
| '_ ` _ \ / _` | |/ / _ \ | | | |/ _ \| | | | / __| '__| | | |
|
||||||
|
| | | | | | (_| | < __/ | |_| | (_) | |_| | | (__| | | |_| |_
|
||||||
|
|_| |_| |_|\__,_|_|\_\___| \__, |\___/ \__,_| \___|_| \__, ( )
|
||||||
|
__/ | __/ |/
|
||||||
|
|___/ |___/
|
||||||
|
_ _
|
||||||
|
| \ | |
|
||||||
|
| \| | _____ _____ _ __ __ _ ___ _ __ _ __ __ _ ___ __ _ _ _
|
||||||
|
| . ` |/ _ \ \ / / _ \ '__| / _` |/ _ \| '_ \| '_ \ / _` | / __|/ _` | | | |
|
||||||
|
| |\ | __/\ V / __/ | | (_| | (_) | | | | | | | (_| | \__ \ (_| | |_| |
|
||||||
|
\_| \_/\___| \_/ \___|_| \__, |\___/|_| |_|_| |_|\__,_| |___/\__,_|\__, |
|
||||||
|
__/ | __/ |
|
||||||
|
|___/ |___/
|
||||||
|
_ _ _ _
|
||||||
|
| | | | \ | |
|
||||||
|
__ _ ___ ___ __| | |__ _ _ ___ | \| | _____ _____ _ __
|
||||||
|
/ _` |/ _ \ / _ \ / _` | '_ \| | | |/ _ \ | . ` |/ _ \ \ / / _ \ '__|
|
||||||
|
| (_| | (_) | (_) | (_| | |_) | |_| | __/ | |\ | __/\ V / __/ |
|
||||||
|
\__, |\___/ \___/ \__,_|_.__/ \__, |\___| \_| \_/\___| \_/ \___|_|
|
||||||
|
__/ | __/ |
|
||||||
|
|___/ |___/
|
||||||
|
_ _ _ _ _
|
||||||
|
| | | | | | (_)
|
||||||
|
__ _ ___ _ __ _ __ __ _ | |_ ___| | | __ _ | |_ ___
|
||||||
|
/ _` |/ _ \| '_ \| '_ \ / _` | | __/ _ \ | | / _` | | | |/ _ \
|
||||||
|
| (_| | (_) | | | | | | | (_| | | || __/ | | | (_| | | | | __/
|
||||||
|
\__, |\___/|_| |_|_| |_|\__,_| \__\___|_|_| \__,_| |_|_|\___|
|
||||||
|
__/ |
|
||||||
|
|___/
|
||||||
|
_ _ _
|
||||||
|
| | | | | |
|
||||||
|
__ _ _ __ __| | | |__ _ _ _ __| |_ _ _ ___ _ _
|
||||||
|
/ _` | '_ \ / _` | | '_ \| | | | '__| __| | | | |/ _ \| | | |
|
||||||
|
| (_| | | | | (_| | | | | | |_| | | | |_ | |_| | (_) | |_| |
|
||||||
|
\__,_|_| |_|\__,_| |_| |_|\__,_|_| \__| \__, |\___/ \__,_|
|
||||||
|
__/ |
|
||||||
|
|___/
|
||||||
|
-->
|
||||||
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||||
|
<title>Unicorn! · Spoons</title>
|
||||||
|
<style type="text/css" media="screen">
|
||||||
|
body {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
margin: 0;
|
||||||
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container { margin: 50px auto 40px auto; width: 600px; text-align: center; }
|
||||||
|
|
||||||
|
a { color: #4183c4; text-decoration: none; }
|
||||||
|
a:hover { text-decoration: underline; }
|
||||||
|
|
||||||
|
h1 { letter-spacing: -1px; line-height: 60px; font-size: 60px; font-weight: 100; margin: 0px; text-shadow: 0 1px 0 #fff; }
|
||||||
|
p { color: rgba(0, 0, 0, 0.5); margin: 10px 0 10px; font-size: 18px; font-weight: 200; line-height: 1.6em;}
|
||||||
|
|
||||||
|
ul { list-style: none; margin: 25px 0; padding: 0; }
|
||||||
|
li { display: table-cell; font-weight: bold; width: 1%; }
|
||||||
|
|
||||||
|
#suggestions {
|
||||||
|
margin-top: 35px;
|
||||||
|
color: #ccc;
|
||||||
|
}
|
||||||
|
#suggestions a {
|
||||||
|
color: #666666;
|
||||||
|
font-weight: 200;
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<p>
|
||||||
|
<img width="200" src="data:image/png;base64,
|
||||||
|
iVBORw0KGgoAAAANSUhEUgAAAZAAAAGZCAMAAACQbpc2AAADAFBMVEWEBz6FAD6FAD6GAD+MAEGOAEOKAEGOAEOGAD+IAECOAEOOAUOOAEOOAEOOAEOOAEOOAEOOAEOCACyOAEQAAACKAE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P86tSLMjfOlWVY2Q6aUleKIiCTE8gRV5rxtN4FBSSvojjXjBPuYmBubEAAhvd/sl2Ii7prq6usYVlKSgdXFNUIGRJFLH8UkGGSbP60U+ISOEgAeA1I8hqushvTOHEi1YSTgQ77PZI4qMtXO1M3/61KliO0X1i7CUSLVjK2sva48QojrEjWWxIyg7QTgISQztRovV4nCIJyTJjTEJLJ9IibNT52qrjJPi4ItqofQnDOszxs8byCwIcRx5JbaSIgmG4mFPYiS0BkVWPHnrBOuFZB6EpL7fADKWcxIhvaovIoaAx8HDA8MIJBaRbBWfLraTnTRe1HScfxlQeFDhAI7rQI5z8wAOpC9OHHtmrSkqWrx49Wrhw6DFi4uqayyMDgagYBDpmYQUbUU+OiUWnOLNWG3MiIGF6E0M5oXlopNRndfc3lt+xbYRySAZyeNHEoRtP/ULMydzaAGUhceOcR7H6vtXbt3MHKKN/hWF9FYYSDiQ4RNvHjo84II153MQHcU8PFzUJXCoTODL9LiCn+ZMDAGHhKZyTdFLine truncated
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p><strong>There's nothing to see here.</strong></p>
|
||||||
|
<p>Sorry to ruin your day. But here's a unicorn.</p>
|
||||||
|
<div id="suggestions">
|
||||||
|
<a href="http://spoons.scrabble.io/">Spoons Home</a> —
|
||||||
|
<a href="http://scrabble.io/">scrabble.io</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
+2
-2
@@ -11,7 +11,7 @@
|
|||||||
<p>Baked with <span style="color:#79ad36">♥</span> by <a href="http://scrabble.io/" target="_blank">scribscrab</a>.</p>
|
<p>Baked with <span style="color:#79ad36">♥</span> by <a href="http://scrabble.io/" target="_blank">scribscrab</a>.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4 align-center">
|
<div class="span4 align-center">
|
||||||
<a href="http://www.internaldrive.com/" target="_blank"><img src="<?php echo $site_url ?>/assets/img/id.png" alt="internalDrive"></a>
|
<a href="http://scrabble.io/" target="_blank"><img src="<?php echo $site_url ?>/assets/img/scrabble-40.jpg" alt="scrabble"></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4 align-right">
|
<div class="span4 align-right">
|
||||||
<p><a href="#">Back to top!</a></p>
|
<p><a href="#">Back to top!</a></p>
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
<p>Baked with <span style="color:#79ad36">♥</span> by <a href="http://scrabble.io/" target="_blank">scribscrab</a>.</p>
|
<p>Baked with <span style="color:#79ad36">♥</span> by <a href="http://scrabble.io/" target="_blank">scribscrab</a>.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span12 align-center">
|
<div class="span12 align-center">
|
||||||
<p><a href="http://www.internaldrive.com/" target="_blank"><img src="<?php echo $site_url ?>/assets/img/id.png" alt="internalDrive"></a></p>
|
<p><a href="http://scrabble.io/" target="_blank"><img src="<?php echo $site_url ?>/assets/img/scrabble-40.jpg" alt="scrabble"></a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
function logSMS($message, $response, $number) {
|
||||||
|
mysql_query('INSERT INTO texts (message, response, phone_number) VALUES ("' . mysql_real_escape_string($message) . '", "' . mysql_real_escape_string($response) . '", "' . mysql_real_escape_string($number) . '")');
|
||||||
|
}
|
||||||
|
|
||||||
function getNumTotalSpooners() {
|
function getNumTotalSpooners() {
|
||||||
$result = mysql_query("SELECT id FROM spooners");
|
$result = mysql_query("SELECT id FROM spooners");
|
||||||
return mysql_num_rows($result);
|
return mysql_num_rows($result);
|
||||||
|
|||||||
+2
-2
@@ -110,9 +110,9 @@
|
|||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
|
||||||
<title><?php echo $page ?> — Spoons</title>
|
<title><?php echo $page ?> · Spoons</title>
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <!-- Disable mobile pinch zoom -->
|
||||||
|
|
||||||
<!-- Le styles -->
|
<!-- Le styles -->
|
||||||
<link href="<?php echo $site_url ?>/assets/css/bootstrap.css" rel="stylesheet">
|
<link href="<?php echo $site_url ?>/assets/css/bootstrap.css" rel="stylesheet">
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ $(document).ready(function() {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$result = mysql_query("SELECT id, first, last FROM spooners WHERE spooned = 0 ORDER BY order_num") or die(mysql_error());
|
$result = mysql_query("SELECT id, first, last, staff FROM spooners WHERE spooned = 0 ORDER BY order_num") or die(mysql_error());
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h4>Active Spooners (<?php echo mysql_num_rows($result) ?>)</h4>
|
<h4>Active Spooners (<?php echo mysql_num_rows($result) ?>)</h4>
|
||||||
@@ -216,7 +216,9 @@ $result = mysql_query("SELECT id, first, last FROM spooners WHERE spooned = 0 OR
|
|||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
while($spooner = mysql_fetch_array($result)) {
|
while($spooner = mysql_fetch_array($result)) {
|
||||||
echo ' <tr id="' . $spooner['id'] . '" class="row">
|
echo ' <tr id="' . $spooner['id'] . '" class="row';
|
||||||
|
if($spooner['staff']) echo ' success'; // highlight staff with green row
|
||||||
|
echo '">
|
||||||
<td class="align-center"><a href="' . $site_url . '/spoon/' . $spooner['id'] . '" class="btn btn-danger hidden-phone"><img src="' . $site_url . '/assets/img/spoon-white-14px.png"> Spoon</a><a href="' . $site_url . '/spoon/' . $spooner['id'] . '" class="btn btn-danger visible-phone" style="padding:4px !important; width:40px !important;"><img src="' . $site_url . '/assets/img/spoon-white-14px.png" style="margin:2px 0px !important;"></a></td>
|
<td class="align-center"><a href="' . $site_url . '/spoon/' . $spooner['id'] . '" class="btn btn-danger hidden-phone"><img src="' . $site_url . '/assets/img/spoon-white-14px.png"> Spoon</a><a href="' . $site_url . '/spoon/' . $spooner['id'] . '" class="btn btn-danger visible-phone" style="padding:4px !important; width:40px !important;"><img src="' . $site_url . '/assets/img/spoon-white-14px.png" style="margin:2px 0px !important;"></a></td>
|
||||||
<td>' . $spooner['first'] . '</td>
|
<td>' . $spooner['first'] . '</td>
|
||||||
<td>' . $spooner['last'] . '</td>
|
<td>' . $spooner['last'] . '</td>
|
||||||
@@ -235,7 +237,7 @@ $result = mysql_query("SELECT id, first, last FROM spooners WHERE spooned = 0 OR
|
|||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$result = mysql_query("SELECT id, first, last, spooned_by, time_spooned FROM spooners WHERE spooned = 1 ORDER BY time_spooned DESC") or die(mysql_error());
|
$result = mysql_query("SELECT id, first, last, staff, spooned_by, time_spooned FROM spooners WHERE spooned = 1 ORDER BY time_spooned DESC") or die(mysql_error());
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h4>Dead Spooners (<?php echo mysql_num_rows($result) ?>)</h4>
|
<h4>Dead Spooners (<?php echo mysql_num_rows($result) ?>)</h4>
|
||||||
@@ -253,7 +255,9 @@ $result = mysql_query("SELECT id, first, last, spooned_by, time_spooned FROM spo
|
|||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
while($spooner = mysql_fetch_array($result)) {
|
while($spooner = mysql_fetch_array($result)) {
|
||||||
echo ' <tr id="' . $spooner['id'] . '" class="row">
|
echo ' <tr id="' . $spooner['id'] . '" class="row';
|
||||||
|
if($spooner['staff']) echo ' success'; // highlight staff with green row
|
||||||
|
echo '">
|
||||||
<td class="align-center" style="min-width:40px;"><a href="' . $site_url . '/revive/' . $spooner['id'] . '" class="btn hidden-phone" type="submit"><i class="icon-arrow-up"></i> Revive</a><a href="' . $site_url . '/revive/' . $spooner['id'] . '" class="btn visible-phone" style="padding-left:10px !important; width:40px !important;"> <i class="icon-arrow-up"></i></a></td>
|
<td class="align-center" style="min-width:40px;"><a href="' . $site_url . '/revive/' . $spooner['id'] . '" class="btn hidden-phone" type="submit"><i class="icon-arrow-up"></i> Revive</a><a href="' . $site_url . '/revive/' . $spooner['id'] . '" class="btn visible-phone" style="padding-left:10px !important; width:40px !important;"> <i class="icon-arrow-up"></i></a></td>
|
||||||
<td>' . $spooner['first'] . ' ' . $spooner['last'] . '</td>
|
<td>' . $spooner['first'] . ' ' . $spooner['last'] . '</td>
|
||||||
<td class="hidden-phone"><small>Spooned by <strong>' . getNameByID($spooner['spooned_by']) . '</strong> on <strong>' . date('l', strtotime($spooner['time_spooned'])) . '</strong> at <strong>' . date('g:i A', strtotime($spooner['time_spooned'])) . '</strong>.</small></td>
|
<td class="hidden-phone"><small>Spooned by <strong>' . getNameByID($spooner['spooned_by']) . '</strong> on <strong>' . date('l', strtotime($spooner['time_spooned'])) . '</strong> at <strong>' . date('g:i A', strtotime($spooner['time_spooned'])) . '</strong>.</small></td>
|
||||||
|
|||||||
@@ -137,9 +137,9 @@ if(isset($_POST['password'])) {
|
|||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
|
||||||
<title>Sign in — Spoons</title>
|
<title>Sign in · Spoons</title>
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <!-- Disable mobile pinch zoom -->
|
||||||
|
|
||||||
<!-- Le styles -->
|
<!-- Le styles -->
|
||||||
<link href="<?php echo $site_url ?>/assets/css/bootstrap.css" rel="stylesheet">
|
<link href="<?php echo $site_url ?>/assets/css/bootstrap.css" rel="stylesheet">
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ blockquote {
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<strong>Help:</strong> To get a list of commands on-the-go, just send <strong>Help</strong> (or any command not listed here).
|
<strong>Help:</strong> To get a list of commands on-the-go, just send <strong>Commands</strong> (or any command not listed here).
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|||||||
+9
-6
@@ -8,6 +8,7 @@ header("content-type: text/xml");
|
|||||||
$text = $_REQUEST['Body'];
|
$text = $_REQUEST['Body'];
|
||||||
//$text = "Spoon caJun.";
|
//$text = "Spoon caJun.";
|
||||||
|
|
||||||
|
$text = str_replace("?", "", $text); // ignore question marks
|
||||||
$text = trim($text);
|
$text = trim($text);
|
||||||
|
|
||||||
if(strpos($text, " ") !== false)
|
if(strpos($text, " ") !== false)
|
||||||
@@ -20,16 +21,16 @@ if(strlen($text) > strlen($command)) {
|
|||||||
$subject_id = getIDByLooseName($subject);
|
$subject_id = getIDByLooseName($subject);
|
||||||
}
|
}
|
||||||
|
|
||||||
$help = 'List of commands: "Spoon (name)" to spoon, "Status (name)" to check, "Remaining" to query number of alive spooners.';
|
$help = 'List of commands:' . "\n" . '"Spoon (name)" to spoon.' . "\n" . '"Status (name)" to check.' . "\n" . '"Remaining" for number of alive spooners.';
|
||||||
|
|
||||||
if($subject_id == "multiple") {
|
if($subject && $subject_id == "multiple") {
|
||||||
$response = "There are multiple " . $subject . "s in the system. Please specify last name or last initial.";
|
$response = "There are multiple " . $subject . "s in the system. Please specify last name or last initial.";
|
||||||
} else if($subject_id == "none") {
|
} else if($subject && $subject_id == "none") {
|
||||||
$response = "There were no spooners by the name " . $subject . " found in the system. Sorry (but not really).";
|
$response = "There were no spooners by the name " . $subject . " found in the system. Sorry (but not really).";
|
||||||
} else if(strcasecmp($command, "spoon") == 0) {
|
} else if($subject && strcasecmp($command, "spoon") == 0) {
|
||||||
spoonByID($subject_id);
|
spoonByID($subject_id);
|
||||||
$response = getNameByID($subject_id) . ' has been spooned! ' . getNameByID(getSpoonedByIDByID($subject_id)) . '\'s new target is ' . getNameByID(getTargetByID(getSpoonedByIDByID($subject_id))) . '.';
|
$response = getNameByID($subject_id) . ' has been spooned! ' . getNameByID(getSpoonedByIDByID($subject_id)) . '\'s new target is ' . getNameByID(getTargetByID(getSpoonedByIDByID($subject_id))) . '.';
|
||||||
} else if(strcasecmp($command, "status") == 0) {
|
} else if($subject && strcasecmp($command, "status") == 0) {
|
||||||
if(checkSpoonedByID($subject_id)) {
|
if(checkSpoonedByID($subject_id)) {
|
||||||
$response = getNameByID($subject_id) . ' was spooned by ' . getNameByID(getSpoonedByIDByID($subject_id)) . ' on ' . date('l', strtotime(getTimeSpoonedByID($subject_id))) . ' at ' . date('g:i A', strtotime(getTimeSpoonedByID($subject_id))) . '.';
|
$response = getNameByID($subject_id) . ' was spooned by ' . getNameByID(getSpoonedByIDByID($subject_id)) . ' on ' . date('l', strtotime(getTimeSpoonedByID($subject_id))) . ' at ' . date('g:i A', strtotime(getTimeSpoonedByID($subject_id))) . '.';
|
||||||
} else {
|
} else {
|
||||||
@@ -37,12 +38,14 @@ if($subject_id == "multiple") {
|
|||||||
}
|
}
|
||||||
} else if(strcasecmp($command, "remaining") == 0) {
|
} else if(strcasecmp($command, "remaining") == 0) {
|
||||||
$response = "There are " . getNumActiveSpooners() . " of " . getNumTotalSpooners() . " spooners remaining.";
|
$response = "There are " . getNumActiveSpooners() . " of " . getNumTotalSpooners() . " spooners remaining.";
|
||||||
} else if(strcasecmp($command, "help") == 0) {
|
} else if(strcasecmp($command, "commands") == 0 || strcasecmp($command, "command") == 0) {
|
||||||
$response = $help;
|
$response = $help;
|
||||||
} else {
|
} else {
|
||||||
$response = "Invalid command. " . $help;
|
$response = "Invalid command. " . $help;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logSMS($_REQUEST['Body'], $response, $_REQUEST['From']);
|
||||||
|
|
||||||
echo '<?xml version="1.0" encoding="UTF-8"?>';
|
echo '<?xml version="1.0" encoding="UTF-8"?>';
|
||||||
?>
|
?>
|
||||||
<Response>
|
<Response>
|
||||||
|
|||||||
Reference in new issue
Block a user