Skip to content

Instantly share code, notes, and snippets.

@karlhinze
Created November 27, 2017 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karlhinze/c320f0c65eb07a06c6147937393a20ba to your computer and use it in GitHub Desktop.
Save karlhinze/c320f0c65eb07a06c6147937393a20ba to your computer and use it in GitHub Desktop.
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