Change stuff, add Dockerfile (not ready yet)

master
Skylar Ittner 8 years ago
parent 0756bbd7a6
commit fd77176765

@ -0,0 +1,12 @@
FROM php:5-apache
MAINTAINER Skylar Ittner <admin@netsyms.com>
RUN apt-get update && apt-get upgrade -y
RUN apt-get install git openssh-server
# nuke the webroot
WORKDIR /var/www
RUN rm -rf html && mkdir html
WORKDIR /var/www/html
# install the server crap (private repo for now, thx GitHub Student)
RUN git clone https://skylarmt-script-account:scriptb0t@github.com/skylarmt/TerranQuestServer.git .
# 0wn3d
RUN cd .. && chown -R www-data:www-data html

@ -1,8 +1,2 @@
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/

@ -0,0 +1,9 @@
<?php
$database = new medoo([
'database_type' => 'mysql',
'database_name' => 'c0terranquest',
'server' => 'localhost',
'username' => 'c0terranquest',
'password' => 'qinkifTQ!OMY2',
'charset' => 'utf8'
]);

@ -1,60 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Welcome!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="shortcut icon" href="/favicon.ico" />
<meta name="robots" content="noindex" />
<style type="text/css"><!--
body {
color: #444444;
background-color: #EEEEEE;
font-family: 'Trebuchet MS', sans-serif;
font-size: 80%;
}
h1 {}
h2 { font-size: 1.2em; }
#page{
background-color: #FFFFFF;
width: 60%;
margin: 24px auto;
padding: 12px;
}
#header{
padding: 6px ;
text-align: center;
}
.header{ background-color: #83A342; color: #FFFFFF; }
#content {
padding: 4px 0 24px 0;
}
#footer {
color: #666666;
background: #f9f9f9;
padding: 10px 20px;
border-top: 5px #efefef solid;
font-size: 0.8em;
text-align: center;
}
#footer a {
color: #999999;
}
--></style>
</head>
<body>
<div id="page">
<div id="header" class="header">
<h1>Welcome to <!--ADRESSE//-->your website!<!--ADRESSE//--></h1>
</div>
<div id="content">
<h2>This is the default index page of your website.</h2>
<p>This file may be deleted or overwritten without any difficulty. This is produced by the file <b>index.html</b> in the <b>web</b> directory.</p>
<p>For questions or problems please contact <!--SUPPORT//-->support<!--SUPPORT//-->.</p>
</div>
<div id="footer">
<p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p>
</div>
</div>
</body>
</html>

@ -10,8 +10,7 @@ and open the template in the editor.
<title></title>
</head>
<body>
<?php
// put your code here
?>
<h1>TerranQuest Game Server</h1>
<p>This service is not designed to be accessed directly; download the TerranQuest app instead.
</body>
</html>

@ -23,14 +23,7 @@ require 'response.php';
// Also inits database and stuff
$database;
try {
$database = new medoo([
'database_type' => 'mysql',
'database_name' => 'c0terranquest',
'server' => 'localhost',
'username' => 'c0terranquest',
'password' => 'qinkifTQ!OMY2',
'charset' => 'utf8'
]);
require 'dbsettings.php';
} catch (Exception $ex) {
header('HTTP/1.1 500 Internal Server Error');
sendError('Database error. Try again later.', true);