diff --git a/backup.sh b/backup.sh new file mode 100755 index 0000000..8e3bd8c --- /dev/null +++ b/backup.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +SITE="cwops.telegraphy.de" + +echo "Backup of $SITE..." > /tmp/$SITE-backup + +echo "Dumping data..." >> /tmp/$SITE-backup +DATE=$( date +%Y%m%d-%H%M ) + +USER=cwops +PASS=cwops +DB=CWops + +mysqldump -u$USER -p$PASS $DB | gzip > /home/fabian/sites/$SITE/backup/$SITE-daily-${DATE}.sql.gz + +ls -l /home/fabian/sites/$SITE/backup/ >> /tmp/$SITE-backup + +# sleep long enough to make sure the mtime +7 below only finds the stuff that's +# older than one week, not a file that may be *exactly* one week old +sleep 60 + +echo "Removing old files (7 days or older)" >> /tmp/$SITE-backup + +find /home/fabian/sites/$SITE/backup/$SITE-daily*.sql.gz \ + -mtime +7 -exec echo {} \; >> /tmp/$SITE-backup + +find /home/fabian/sites/$SITE/backup/$SITE-daily*.sql.gz \ + -mtime +7 -exec rm {} \; >> /tmp/$SITE-backup + +cat /tmp/$SITE-backup | mail -s "CRON: $SITE backup" fabian@fkurz.net diff --git a/functions.php b/functions.php index a116cf5..a677607 100644 --- a/functions.php +++ b/functions.php @@ -547,6 +547,11 @@ function parse_adif($adif, $members, $ign, $startdate) { $qso['was'] = ""; } + # finally, some hard-coded exceptions: + if ($qso['call'] == "K7SV") { + $qso['waz'] = 5; + } + array_push($out, $qso); } diff --git a/help.php b/help.php index 3f59157..68e699d 100755 --- a/help.php +++ b/help.php @@ -13,9 +13,18 @@
This is a list of questions that users asked or might ask. It's a work in progress and it will be extended over time.
+On the CWops website.
+ +Scores are automatically reported to the awards manager. There's nothing you need to do!
+Yes, just upload the "yourcall.data" file from CAM instead of an ADIF file.
+All logs you upload are credited to the account you are logged in with, regardless of the callsign you made the contacts with. This means you can upload your ADIF files from portable, holiday or DXpedition operations just like those from your home station. They are all merged automatically.
+Depending on the current load on the server and your internet connection, uploading and processing 1000 QSOs takes about one minute. It is recommended to split up your log into smaller chunks if it's very large. Most logging programs will allow you to export ADIF logs by date, so it would be a reasonable idea to upload logs year by year.
@@ -33,7 +42,7 @@This server provides services for members of CWops. Help and Documentation - Introduction Video
+This server provides services for members of CWops. Help and Documentation - Introduction Video - Score table