2 Commits

3 changed files with 11 additions and 11 deletions
Split View
  1. +4
    -1
      Dockerfile
  2. +1
    -1
      games/insertScore.php
  3. +6
    -9
      includes/header.php

+ 4
- 1
Dockerfile View File

@ -4,4 +4,7 @@ FROM nginx:1.17.8-alpine
COPY . /app/public/
# Copy the nginx config file
COPY ./site.conf /etc/nginx/conf.d/default.conf
COPY ./site.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
EXPOSE 8080

+ 1
- 1
games/insertScore.php View File

@ -2,7 +2,7 @@
//5-16-17
include_once 'club_connect.php';
include_once '../club_connect.php';
if(isset($_POST['game_new_score']))
{

+ 6
- 9
includes/header.php View File

@ -5,13 +5,18 @@ $admin = false;
session_start();
ob_start();
echo getcwd();
echo "$dir";
if($dir == 2)
{
require_once("../club_connect.php");
// require_once('insertScore.php');
}
else
{
require_once("club_connect.php");
require_once("./club_connect.php");
// require_once('./games/insertScore.php');
}
@ -34,12 +39,6 @@ if((md5($_SERVER['HTTP_USERAGENT'] . 'salt')) == ($_SESSION['agent']) &&
}
}
try
{
include('games/insertScore.php');
}
catch (Exception $ex)
{}
echo '<!DOCTYPE html>
<html>
@ -90,7 +89,6 @@ if($dir == 2)
<div class="w3-dropdown-content w3-card-4 w3-bar-block">
<a href="bamboofield.php" class="w3-bar-item w3-button">Bamboo Field</a>
<a href="zombiePanda.php" class="w3-bar-item w3-button">Zombie Pandas</a>
<a href="#" class="w3-bar-item w3-button">Link</a>
</div>
</div>
</div>
@ -149,7 +147,6 @@ else
<div class="w3-dropdown-content w3-card-4 w3-bar-block">
<a href="games/bamboofield.php" class="w3-bar-item w3-button">Bamboo Field</a>
<a href="games/zombiePanda.php" class="w3-bar-item w3-button">Zombie Pandas</a>
<a href="#" class="w3-bar-item w3-button">Link</a>
</div>
</div>
</div>

Loading…
Cancel
Save