---
# Remote analysis check
HTML/php website to handle remote analysis shifts
Content `public/`:
- `navbar.html`: Contains the description of the blue navigation bar.
- `index.php`: Start page with shift history.
- `checklist.php`: Page containing the checklist.
- `submit.php`: Submission page showing the summary.
- `style.css`: File defining style for tables, buttons ...
- `recentSQLName.txt`: Only contains name of the latest campaign. This initialises a new sql database table when changed.
- `data/mydb.sqlite`: This file is local on the server and contains the sql database.
## What to update when new campaign starts
Go to the `public/` folder:
- `recentSQLName.txt`: Change campaign number (auto-initialises new sql table)
- `navbar.html`: Add link to latest brew table to the navigation bar in the `brew` dropdown menu.
- `checklist.php`: Just search and replace the name of the previous campaign with the name of the current campaign: `KNMx` → `KNMy`
- `index.php`: Add new campaign to list of campaigns that should be displayed on start page → `$Campaigns = ["KNMy", ... , "KNM8", "KNM7", "KNM6"];`
## What to update when the KATRIN password changes
- Update salted password in `.htpasswd`
- Update kdb acess link/password in `checklist.php`. Find and edit `XXX` in kdb link:
`"http://katrin:XXX@kdb.kaas.kit.edu/kdb-api.fcgi/json?run&system= ..."`.
This line pulls the last run number from kdb.
## General stuff
The remote template slides can be changed and updated [here](https://docs.google.com/presentation/d/1Fj3TjNkry1fAC94sEvml2LyvrICDhh_e7i75_7pimqk/edit?usp=sharing)