Merge pull request #26 from OpzekerIT/dev

Dev
This commit is contained in:
Lanta 2023-09-26 21:12:27 +02:00 committed by GitHub
commit ba125d9348
5 changed files with 22 additions and 5 deletions

View file

@ -17,9 +17,9 @@ jobs:
id: set-destination
run: |
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
echo "DESTINATION=/var/www/lantaeu/DTCH/" >> $GITHUB_ENV
echo "DESTINATION=/var/www/dtch/" >> $GITHUB_ENV
else
echo "DESTINATION=/var/www/lantaeu/DTCH_DEV/" >> $GITHUB_ENV
echo "DESTINATION=/var/www/dtch_dev/" >> $GITHUB_ENV
fi
- name: Sync Files from ${{ github.ref }}
@ -29,7 +29,7 @@ jobs:
remote-user: stats
private-ssh-key: ${{ secrets.SSH_KEY }}
destination-path: ${{ env.DESTINATION }}
rsync-options: --no-times -r --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php
rsync-options: --no-times -r -v --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php
- name: LINK TO WEBSITE
run: |
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then

8
.htaccess Normal file
View file

@ -0,0 +1,8 @@
RewriteEngine On
# Check if not an existing directory
RewriteCond %{REQUEST_FILENAME} !-d
# Check if appending .php points to an existing file
RewriteCond %{REQUEST_FILENAME}\.php -f
# Rewrite the neat URL to its .php counterpart
RewriteRule ^(.*)$ $1.php [L]

View file

@ -1,3 +1,12 @@
<?php
$host = $_SERVER['HTTP_HOST'];
if ($host == 'dev.dtch.online') {
echo "You are on the development! <BR>";
echo 'For prod <a href="https://dtch.online">DTCH PRODUCTION</a>';
}
?>
<nav>
<ul>
<li><a href="index.php">Home</a></li>

View file

@ -31,7 +31,7 @@ if (count($_SESSION['access_times']) > $allowed_refreshes) {
<title>RustAGHH</title>
</head>
<body>
<p>RUSTAAAGGHHHH je mag de pagina niet vaker dan ' . $allowed_refreshes . 'x per ' . $allowed_time . ' seconde refreshen. Over een paar seconde word je weet terug geleid</p>
<p>RUSTAAAGGHHHH je mag de pagina niet vaker dan ' . $allowed_refreshes . 'x per ' . $allowed_time . ' seconde refreshen. Over een paar seconden wordt je weer teruggeleid.</p>
</body>
</html>
');

View file

@ -58,7 +58,7 @@ $playeridstring = $playeridstring.Substring(0, $playeridstring.Length - 1)
$playermodes = @(
"solo",
"duo",
"squad"
"squad",
"solo-fpp",
"duo-fpp",
"squad-fpp"