From 3a9b6b8d5ecc2061083110904b81eb23b8e9b3ce Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 29 Jan 2017 23:02:29 +0100 Subject: [PATCH] added mfrc522 reader (with temporary buffer replacement) --- lib/include/const | 6 ++++-- lib/mfrc522/read | 3 +++ lib/mfrc522/source/read.php | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100755 lib/mfrc522/read create mode 100755 lib/mfrc522/source/read.php diff --git a/lib/include/const b/lib/include/const index 42957f7..481f17e 100755 --- a/lib/include/const +++ b/lib/include/const @@ -3,11 +3,13 @@ # RESET OUTPUT BUFFER # MAIN DIRECTORIES - define('ROOT_DIR', '/home/sats/satsd'); + #define('ROOT_DIR', '/home/sats/satsd'); + define('ROOT_DIR', '/home/xdrm-brackets/SANDBOX/sats-local'); define('LOG_DIR', ROOT_DIR.'/log'); define('DATA_DIR', ROOT_DIR.'/data'); define('CONF_DIR', ROOT_DIR.'/conf'); - define('SOURCE_DIR', ROOT_DIR.'/source'); + #define('SOURCE_DIR', ROOT_DIR.'/source'); + define('SOURCE_DIR', ROOT_DIR.'/home/xdrm-brackets/Desktop/git.xdrm.io/logauth-sats'); define('TMP_DIR', ROOT_DIR.'/tmp'); # CONFIGURATION FILES diff --git a/lib/mfrc522/read b/lib/mfrc522/read new file mode 100755 index 0000000..a49a16b --- /dev/null +++ b/lib/mfrc522/read @@ -0,0 +1,3 @@ +#!/bin/sh + +php $(realpath $(dirname $0))/source/read.php; diff --git a/lib/mfrc522/source/read.php b/lib/mfrc522/source/read.php new file mode 100755 index 0000000..48c2b9f --- /dev/null +++ b/lib/mfrc522/source/read.php @@ -0,0 +1,33 @@ +#!/usr/bin/php + + +