Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark ii #9

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.DS_Store
resumes
config.php
63 changes: 0 additions & 63 deletions LICENSE.txt

This file was deleted.

7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# fall-hackathon-2015

To change background image, go to line 981 in
css/style.css. Looks like this
background-image: url("../images/banner.jpg");
build-env-docker is a helper script for me, setup a php/apache/mysql env in docker.

the sql dump file is also to help with me setting up a docker env
132 changes: 0 additions & 132 deletions about.html

This file was deleted.

8 changes: 8 additions & 0 deletions build-env-docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

set -e

# docker run -p 3306:3306 --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -e MYSQL_USER=admin -e MYSQL_PASSWORD=password -d mysql
# docker run -d -p 80:80 --name lamp-stack --link some-mysql:mysql -v /Users/jha/Documents/dev/oduacm/odu-hackathon-site/:/app tutum/apache-php

docker run -d -p 80:80 -p 3306:3306 -e MYSQL_PASS="password" -v $1:/app tutum/lamp
81 changes: 0 additions & 81 deletions challenges.html

This file was deleted.

10 changes: 10 additions & 0 deletions config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['name'] = 'hackathon';
$config['db']['username'] = 'root';
$config['db']['password'] = '';

$config['db']['connString'] = 'mysql:host='.$config['db']['host'].';port='.$config['db']['port'].';dbname='.$config['db']['name'];
?>
45 changes: 45 additions & 0 deletions contact.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php
/*require 'PHPMailer/PHPMailerAutoload.php';

$mail = new PHPMailer;

//$mail->SMTPDebug = 3; // Enable verbose debug output

$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = '[email protected]'; // SMTP username
$mail->Password = 'Weatherman2015!'; // SMTP password
$mail->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 465; // TCP port to connect to

$mail->From = $_POST['email'];
$mail->FromName = $_POST['name'];
$mail->addAddress('[email protected]', 'Astral Bear'); // Add a recipient, Name is optional
//$mail->addReplyTo('[email protected]', 'Information');
//$mail->addCC('[email protected]');

//$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Add attachement, Optional name
$mail->isHTML(true); // Set email format to HTML

$mail->Subject = $_POST['subject'];
$mail->Body = $_POST['message'];
//$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';

if(!$mail->send()) {
echo 'Message could not be sent.';
echo 'Mailer Error: ' . $mail->ErrorInfo;

} else {
echo 'Message has been sent';
header('Location: index.php');
}*/

$headers = 'From: '.$_POST['email'] . "\r\n" .
'Reply-To: '.$_POST['email'] . "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail('[email protected]', $_POST['subject'], $_POST['message'], $headers);

header('Location: index.html');
?>
4 changes: 0 additions & 4 deletions css/font-awesome.min.css

This file was deleted.

Loading