#!/bin/bash # IngRRD (https://forge.riquer.fr/p/ingrrd/) # Copyright (C) 2014-2015 Vincent Riquer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . . settings for lib in lib/* do source $lib done import_images & read_query_string send_headers <<-EOHead content-type: text/xml EOHead cat <<-EOHTML IngRRD - $webuser - Add data
EOHTML if ! [ -w "$rrdfile" ] then rrdcreate || { cat <<-EOHTML

Cannot create $rrdfile

EOHTML exit } fi readlast medals get_current_level cat <<-EOHTML
    EOHTML case $innovator in 1) echo "
  • No Innovator medal
  • " echo "
  • Innovator Bronze
  • " echo "
  • Innovator Silver
  • " echo "
  • Innovator Gold
  • " echo "
  • Innovator Platinum
  • " echo "
  • Innovator Onyx
  • " ;; 2) echo "
  • No Innovator medal
  • " echo "
  • Innovator Bronze
  • " echo "
  • Innovator Silver
  • " echo "
  • Innovator Gold
  • " echo "
  • Innovator Platinum
  • " echo "
  • Innovator Onyx
  • " ;; 3) echo "
  • No Innovator medal
  • " echo "
  • Innovator Bronze
  • " echo "
  • Innovator Silver
  • " echo "
  • Innovator Gold
  • " echo "
  • Innovator Platinum
  • " echo "
  • Innovator Onyx
  • " ;; 4) echo "
  • No Innovator medal
  • " echo "
  • Innovator Bronze
  • " echo "
  • Innovator Silver
  • " echo "
  • Innovator Gold
  • " echo "
  • Innovator Platinum
  • " echo "
  • Innovator Onyx
  • " ;; 5) echo "
  • No Innovator medal
  • " echo "
  • Innovator Bronze
  • " echo "
  • Innovator Silver
  • " echo "
  • Innovator Gold
  • " echo "
  • Innovator Platinum
  • " echo "
  • Innovator Onyx
  • " ;; 0) echo "
  • No Innovator medal
  • " echo "
  • Innovator Bronze
  • " echo "
  • Innovator Silver
  • " echo "
  • Innovator Gold
  • " echo "
  • Innovator Platinum
  • " echo "
  • Innovator Onyx
  • " ;; esac cat <<-EOHTML
    EOHTML for indice in ${dsnames[@]} do [[ -z "${uinames[$indice]}" ]] && continue echo "
  • ${uinames[$indice]}
  • " done cat <<-EOHTML
Valid XHTML 1.1 Valid CSS! Generated by IngRRD © 2014 Vincent Riquer
EOHTML