diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f8906fd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bin/bancount.cfg diff --git a/bin/bancountmysql b/bin/bancountmysql index b0b9b22..8bd7364 100755 --- a/bin/bancountmysql +++ b/bin/bancountmysql @@ -4,7 +4,10 @@ action=$1 ip=$2 service=$3 -source bancount.cfg +curDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)" +echo $curDir + +source $curDir/bancount.cfg geoip () { geoiplookup $ip | awk -F, '{print $2}' | sed s/\ // @@ -33,4 +36,4 @@ EOF ;; -esac +esac \ No newline at end of file diff --git a/index.php b/index.php index 3639932..5da5177 100644 --- a/index.php +++ b/index.php @@ -12,6 +12,9 @@ echo "\n"; echo "\n"; echo "