3 export PATH=/home/nastasi/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
5 CONFIG_FILE="$HOME/.brisk_install"
8 web_url="http://localhost/brisk"
10 if [ -f "$CONFIG_FILE" ]; then
12 conffile_in="$CONFIG_FILE"
17 if [ -z "$admin_password" ]; then
18 if [ "$is_a_tty" -eq 0 ]; then
19 read -s -p "Please insert admin password (no echo): " admin_password
21 echo "Incomplete configuration"
26 # now="$(date -d '2014-01-21 23:56:00' +%s)"
30 to="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "($now / 86400) * 86400 + 7200 + $delta" | bc))"
31 from="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "($now / 86400) * 86400 + 7200 - (86400) + $delta" | bc))"
32 # to="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "$now + 7200 + $delta" | bc))"
33 # from="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "$now - 9200 + $delta" | bc))"
35 curl -d "pazz=$admin_password" "$web_url/briskin5/stat-day.php?from=$from&to=$to"