Skip to content

Instantly share code, notes, and snippets.

@karlhinze
Created November 27, 2017 15:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Example private LiveWhale script
<?php
// Load LiveWhale
require $_SERVER['DOCUMENT_ROOT'].'/livewhale/nocache.php';
// Show errors
ini_set('display_errors', 1);
// Require logged-in user
if (!$_LW->isLiveWhaleUser()) {
die('Must be logged in.');
};
// Put the rest of your script here: load CSVs, check external databases, etc.
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment