Skip to content

Instantly share code, notes, and snippets.

View seanvree's full-sized avatar
🔎

Sean Vreeland seanvree

🔎
View GitHub Profile
@seanvree
seanvree / setup-test.php
Created April 11, 2019 20:16
setup-test.php
<?php
/**
* LOGARR
* By: @seanvree, @jonfinley and @rob1998
* https://github.com/Monitorr/Logarr
*/
//TODO / TESTING / REMOVE
function appendLog($logentry) {
<?php
require("functions.php");
include("auth_check.php");
// copy the file from source server
//TODO / Change to /assets/data dir:
// mkdir('../../tmp');
function checkLogin() {
console.log('Logarr auth: ENABLED | Checking login status (checkLogin)');
$.ajax({
type: "GET",
url: "assets/php/login-status.php",
// data: info,
success: function (data) {
@seanvree
seanvree / logarr.main.js
Created June 7, 2018 08:21
logarr.main.js
// Logarr main JS script
// https://github.com/Monitorr
// Set styles for BlockUI overlays in /assets/js/jquery.blockUI.js
$(function () {
$.growlUI('Loading logs...');
console.log('Logarr is loading logs');
});
@seanvree
seanvree / index.php
Created June 7, 2018 08:21
index.php
<!DOCTYPE html>
<html lang="en">
<!--
LOGARR
by @seanvree, @wjbeckett, and @jonfinley
https://github.com/Monitorr
-->
<head>
@seanvree
seanvree / index.php
Created June 5, 2018 20:33
index.php
<!DOCTYPE html>
<html lang="en">
<!--
LOGARR
by @seanvree, @wjbeckett, and @jonfinley
https://github.com/Monitorr
-->
<head>
@seanvree
seanvree / logarr.main.js
Created June 5, 2018 20:32
logarr.main.js
// Logarr main JS script
// https://github.com/Monitorr
// Set styles for BlockUI overlays in /assets/js/jquery.blockUI.js
function refreshblockUI() {
$.growlUI('Updating logs...');
setTimeout(function () {
refresh();
@seanvree
seanvree / check.php
Last active June 3, 2018 04:36
chec.php
<?php
/// MONITORR ///
// https://github.com/monitorr/Monitorr
/**
* This script uses CURL to check if given HOST is serving a webpage.
* If CURL fails, use a PING (pfsockopen) function to check if anything is listening at given URL
@seanvree
seanvree / check.php
Created June 2, 2018 06:29
check.php
<?php
/// MONITORR ///
// https://github.com/monitorr/Monitorr
/**
* This script uses CURL to check if given HOST is serving a webpage.
* If CURL fails, use a PING (pfsockopen) function to check if anything is listening at given URL
@seanvree
seanvree / check.php
Created May 31, 2018 14:04
check.php
<?php
/// MONITORR ///
// https://github.com/monitorr/Monitorr
/**
* This script uses CURL to check if given HOST is serving a webpage.
* If CURL fails, use a PING (pfsockopen) function to check if anything is listening at given URL