Пример #1
0
                            s:...-///////+yddhhy...:s
                            s:...sssssyhmMNmMmNd:..:s
                            s:...MMMMdNMMMMhMMMMo..:s
                            s:...mMMMMMMMMMMMMMN/..:s
                            s:.../MMMMMdmdNMMMMy...:s
                            s:...-dMMMMMNMMMMMN/...:s
                            s:......----------.....:s
                            s:.....................:s
                            oo+++++++++++++++++++++oo
                                |               |
                                |     - -  -    |
                                |_  __ _______  |
                               |                 |
                               |                 |
                               |      <snap>     |
                               |                 |
                               \ _ _________ _ _ /
                            L I T T L E S N A P P E R
littlesnapper: captures and prints snapchat pictures to a connected BERG Little Printer.
*/
require_once 'lib/LittleSnapper.php';
echo "littlesnapper v1.4 [c] 2014 hako ";
echo "\n";
$l = new LittleSnapper();
$new_snap = $l->checkForNewSnaps();
if ($new_snap == false) {
    exit;
} else {
    $l->getSnapFromHost($new_snap);
    $l->printSnap();
}
Пример #2
0
 private function printResults()
 {
     if (LittleSnapper::getCount() < 1) {
         echo "retrieved " . LittleSnapper::getCount() . " snap(s).";
         echo "\n";
         echo "nothing to print.";
         echo "\n";
     } else {
         echo "retrieved " . LittleSnapper::getCount() . " snap(s).";
     }
 }