diff --git a/daemon b/daemon index 591176d..4fae714 100755 --- a/daemon +++ b/daemon @@ -1,11 +1,5 @@ #!/bin/sh -c=0; +ABSPATH=$( dirname $(realpath $0) ); -while [ 1 ]; do - - echo "daemon launched $c"; - sleep 1; - - c=`expr $c + 1`; -done; +$ABSPATH/lib/mfrc522/loop; diff --git a/lib/api/source/fetch.php b/lib/api/source/fetch.php index 765c1c4..2f6eab3 100755 --- a/lib/api/source/fetch.php +++ b/lib/api/source/fetch.php @@ -1,6 +1,6 @@ > $LOG_DIR."/$3.log"; + +} diff --git a/lib/include/const b/lib/include/php/const similarity index 91% rename from lib/include/const rename to lib/include/php/const index 481f17e..2fa6f04 100755 --- a/lib/include/const +++ b/lib/include/php/const @@ -9,7 +9,7 @@ define('DATA_DIR', ROOT_DIR.'/data'); define('CONF_DIR', ROOT_DIR.'/conf'); #define('SOURCE_DIR', ROOT_DIR.'/source'); - define('SOURCE_DIR', ROOT_DIR.'/home/xdrm-brackets/Desktop/git.xdrm.io/logauth-sats'); + define('SOURCE_DIR', '/home/xdrm-brackets/Desktop/git.xdrm.io/logauth-sats'); define('TMP_DIR', ROOT_DIR.'/tmp'); # CONFIGURATION FILES diff --git a/lib/include/func b/lib/include/php/func similarity index 100% rename from lib/include/func rename to lib/include/php/func diff --git a/lib/mfrc522/source/read.php b/lib/mfrc522/source/read.php index 48c2b9f..51e0df6 100755 --- a/lib/mfrc522/source/read.php +++ b/lib/mfrc522/source/read.php @@ -2,7 +2,7 @@