Merge pull request #1 from zaubar/https-basic-auth

Https basic auth
This commit is contained in:
Marius 2021-08-11 19:03:40 +02:00 committed by GitHub
commit db03f3b8a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 556 additions and 231 deletions

27
.github/workflows/upload.yml vendored Normal file
View File

@ -0,0 +1,27 @@
# This is a basic workflow to help you get started with Actions
name: Upload to zaubartours.de/testing
# Controls when the action will run.
on: push
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
upload:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: 🚚 Get files from git
uses: actions/checkout@v2
- name: 📂 Sync files with FTP server
uses: SamKirkland/FTP-Deploy-Action@4.0.0
with:
server: h2870922.stratoserver.net
username: u2870922
password: ${{ secrets.ZAUBARTOURS_FTP_PASSWORD }}
server-dir: /htdocs/testing/

14
.htaccess Normal file
View File

@ -0,0 +1,14 @@
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
<Files users.txt>
Order allow,deny
Deny from all
</Files>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

11
Todo.md Normal file
View File

@ -0,0 +1,11 @@
# Todo
- Show date next to links in link list
- Create activity.php
- Append every php input to file activity.txt
- Add javascript to send activity via PUT
- Activity:
- Mark link as broken
- Mark link as release candidate
- Add comment to link

735
index.php

File diff suppressed because one or more lines are too long