Dev #26

Merged
OpzekerIT merged 15 commits from dev into main 2023-09-26 19:12:28 +00:00
5 changed files with 22 additions and 5 deletions

View file

@ -17,9 +17,9 @@ jobs:
id: set-destination id: set-destination
run: | run: |
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
echo "DESTINATION=/var/www/lantaeu/DTCH/" >> $GITHUB_ENV echo "DESTINATION=/var/www/dtch/" >> $GITHUB_ENV
else else
echo "DESTINATION=/var/www/lantaeu/DTCH_DEV/" >> $GITHUB_ENV echo "DESTINATION=/var/www/dtch_dev/" >> $GITHUB_ENV
fi fi
- name: Sync Files from ${{ github.ref }} - name: Sync Files from ${{ github.ref }}
@ -29,7 +29,7 @@ jobs:
remote-user: stats remote-user: stats
private-ssh-key: ${{ secrets.SSH_KEY }} private-ssh-key: ${{ secrets.SSH_KEY }}
destination-path: ${{ env.DESTINATION }} 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 - name: LINK TO WEBSITE
run: | run: |
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then 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> <nav>
<ul> <ul>
<li><a href="index.php">Home</a></li> <li><a href="index.php">Home</a></li>

View file

@ -31,7 +31,7 @@ if (count($_SESSION['access_times']) > $allowed_refreshes) {
<title>RustAGHH</title> <title>RustAGHH</title>
</head> </head>
<body> <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> </body>
</html> </html>
'); ');

View file

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