Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thubamamba committed Dec 14, 2018
0 parents commit 1ceb981
Show file tree
Hide file tree
Showing 185 changed files with 84,511 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
Binary file added Content.rtf
Binary file not shown.
Binary file added Favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# EMPH
299 changes: 299 additions & 0 deletions about.html

Large diffs are not rendered by default.

284 changes: 284 additions & 0 deletions contact.html

Large diffs are not rendered by default.

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

$from = 'Website contact form <[email protected]>';


$sendTo = 'Website contact form <[email protected]>';


$subject = 'New message from contact form';


$fields = array('name' => 'Name', 'surname' => 'Surname', 'need' => 'Need', 'email' => 'Email', 'message' => 'Message');


$okMessage = 'Thank you for your contacting us. Our team will be in touch with you soon.';


$errorMessage = 'There was an error while submitting the form. Please try again.';


error_reporting(E_ALL & ~E_NOTICE);

try
{

if(count($_POST) == 0) throw new \Exception('Form is empty');

$emailText = "You have a new message from your contact form\n=============================\n";

foreach ($_POST as $key => $value) {
// If the field exists in the $fields array, include it in the email
if (isset($fields[$key])) {
$emailText .= "$fields[$key]: $value\n";
}
}


$headers = array('Content-Type: text/plain; charset="UTF-8";',
'From: ' . $from,
'Reply-To: ' . $from,
'Return-Path: ' . $from,
);


mail($sendTo, $subject, $emailText, implode("\n", $headers));

$responseArray = array('type' => 'success', 'message' => $okMessage);
}
catch (\Exception $e)
{
$responseArray = array('type' => 'danger', 'message' => $errorMessage);
}


if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
$encoded = json_encode($responseArray);

header('Content-Type: application/json');

echo $encoded;
}


else {
echo $responseArray['message'];
}
169 changes: 169 additions & 0 deletions error.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
<!DOCTYPE html>
<!--[if IE 8 ]><html class="ie" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"><!--<![endif]-->
<head>
<!-- Basic Page Needs -->
<meta charset="UTF-8">
<!--[if IE]><meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'><![endif]-->
<title>Error | E & M Plant & Transport</title>

<meta name="Thuba Mamba @ Dart Digital Agency" content="emph.co.za">
<meta property="og:image" content="../images/6M 1.jpg">
<meta property="og:description" content="E&amp;M Plant &amp;Transport is a Benoni, Suoth Africa based machinery company specializing in high quality machinery services.">
<meta property="og:title" content="E&amp;M Plant &amp;Transport">
<link rel="shortcut icon" href="favicon.png" type="image/x-icon">

<!-- Mobile Specific Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<!-- Website style style -->
<link rel="stylesheet" type="text/css" href="stylesheet/style.css">

<!-- Responsive -->
<link rel="stylesheet" type="text/css" href="stylesheet/responsive.css">

<!--Favicon-->
<link rel="icon" href="#" type="image" sizes="16x16">
</head>
<body>
<div id="loading-overlay">
<div class="loader"></div>
</div> <!-- /.loading-overlay -->


<div class="top style4">
<div class="container">
<div class="row">
<div class="col-md-12 clearfix">
<div class="flat-iconbox style4 clearfix">
<div class="iconbox iconbox-info-top clearfix">
<div class="iconbox-icon">
<span class="fa fa-clock-o"></span>
</div>
<div class="iconbox-content">
<h6 class="heading">
<a href="#">MON - FRI</a>
</h6>
<p>07:00AM - 17:00</p>
</div>
</div>

<div class="iconbox iconbox-info-top clearfix">
<div class="iconbox-icon">
<span class="fa fa-phone"></span>
</div>
<div class="iconbox-content">
<h6 class="heading">
<a href="#">CONTACT US</a>
</h6>
<p>011 979 7755</p>
<p>082 872 4969</p>
</div>
</div>

<div class="iconbox iconbox-info-top clearfix">
<div class="iconbox-icon">
<span class="fa fa-map-marker"></span>
</div>
<div class="iconbox-content">
<h6 class="heading">
<a href="#">FIND US</a>
</h6>
<p>7 Busschau Road, <br>Fairleads, Benoni</p>
</div>
</div>
</div> <!-- /.flat-iconbox -->

<div id="logo">
<a href="index.html"><img src="images/logo.png" alt="logo" width="250" height="60"></a>
</div> <!-- /#logo -->
</div> <!-- /.col-md-12 -->
</div>
</div>
</div> <!-- /.header-top -->

<header id="header" class="style4" >
<div class="container container-header">
<div class="row" >
<div class="header-wrap style4 clearfix">
<div class="mobile-button">
<span></span>
</div> <!-- /.mobile-button -->



<div class="nav-wrap style4">
<nav id="mainnav" class="mainnav ">
<ul class="menu">
<li>
<a href="index.html" title="HOME">HOME</a>
</li>
<li>
<a href="about.html" title="ABOUT US">ABOUT US</a>
</li>
<li>
<a href="services.html" title="OUR SERVICES">SERVICES</a>
</li>
<li>
<a href="contact.html" title="CONTACT US">CONTACT</a>
</li>
</ul><!-- /.menu -->
</nav> <!-- /#mainnav -->
</div> <!-- .nav-wrap -->
</div> <!-- /.header-wrap -->
</div> <!-- /.row -->
</div> <!-- container -->
</header> <!-- /#header -->

<section class="flat-error pd-top-90 pd-bottom-90">
<div class="container">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<div class="wrap-error text-center">
<h2 class="heading-error text-ffb922">404</h2>
<h2 class="title-error">Page not found</h2>
<p>The page you looking for is not found.
</p>
<p>
Please go back to the Homepage.</p>
<div class="wrap-button">

<a href="index.html" class="btn btn-styl2 btn-home">HOMEPAGE</a>
</div>
</div>
</div>
<div class="col-md-3"></div>
</div>
</div>
</section>


<!-- Javascript -->
<script src="javascript/jquery.min.js"></script>
<script src="javascript/plugins.js"></script>
<script src="javascript/bootstrap.min.js"></script>
<script src="javascript/flex-slider.min.js"></script>
<script src="javascript/jquery-countTo.js"></script>
<script src="javascript/equalize.min.js"></script>
<script src="javascript/owl.carousel.min.js"></script>
<script src="javascript/main.js"></script>

<!-- Slider -->
<script src="rev-slider/js/jquery.themepunch.tools.min.js"></script>
<script src="rev-slider/js/jquery.themepunch.revolution.min.js"></script>
<script src="javascript/rev-slider.js"></script>

<!-- Load Extensions only on Local File Systems ! The following part can be removed on Server for On Demand Loading -->
<script src="rev-slider/js/extensions/revolution.extension.actions.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.carousel.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.kenburn.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.layeranimation.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.migration.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.navigation.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.parallax.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.slideanims.min.js"></script>
<script src="rev-slider/js/extensions/revolution.extension.video.min.js"></script>
</body>
</html>
Loading

0 comments on commit 1ceb981

Please sign in to comment.