Skip to content

Commit

Permalink
First Time Uploaded
Browse files Browse the repository at this point in the history
This are the codes that were originally uploaded, these codes have not
been modified ever since.
  • Loading branch information
premudeshi committed Nov 18, 2017
0 parents commit 41291d7
Show file tree
Hide file tree
Showing 396 changed files with 63,180 additions and 0 deletions.
1 change: 1 addition & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AddType application/x-httpd-php .htm .html
7 changes: 7 additions & 0 deletions HELP-US-OUT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
I hope you love Font Awesome. If you've found it useful, please do me a favor and check out my latest project,
Fort Awesome (https://fortawesome.com). It makes it easy to put the perfect icons on your website. Choose from our awesome,
comprehensive icon sets or copy and paste your own.

Please. Check it out.

-Dave Gandy
169 changes: 169 additions & 0 deletions balance.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
<?php require "login/loginheader.php";
$user = $_SESSION['username'];
require "vendor/autoload.php";
?>

<!DOCTYPE html>
<html>
<title>Vital Water Gateway</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/w3.css">
<link rel="stylesheet" href="css/google.css">
<link rel="stylesheet" href="css/font-awesome.css">
<style>
html,body,h1,h2,h3,h4,h5 {font-family: "Raleway", sans-serif}
</style>
<body class="w3-light-grey">
<head>
<link href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADiqyn/4qsp/+KrKf/iqyn/4qsp/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOKrKf/iqyn/4qsp/+KrKf/iqyn////////////iqyn/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOKrKf/iqyn/4qsp/+KrKf/iqyn/4qsp/+KrKf/iqyn//////+KrKf8AAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/B8AAPAPAADgBwAA4AcAAMADAADgAwAA4AcAAOAHAADwBwAA8A8AAPg/AAD8PwAA/H8AAP5/AAD/fwAA//8AAA==" rel="icon" type="image/x-icon" />
</head>
<!-- Top container -->
<div class="w3-bar w3-top w3-black w3-large" style="z-index:4">
<button class="w3-bar-item w3-button w3-hide-large w3-hover-none w3-hover-text-light-grey" onclick="w3_open();"><i class="fa fa-bars"></i>  Menu</button>
<span class="w3-bar-item w3-right">Vital Water</span>
</div>

<!-- Sidebar/menu -->
<nav class="w3-sidebar w3-collapse w3-white w3-animate-left" style="z-index:3;width:300px;" id="mySidebar"><br>
<div class="w3-container w3-row">
<div class="w3-col s4">
<img src="images/logo2.png" alt="Vital Water" style="width:75px;height:75px;" class="w3-circle w3-margin-right">
</div>
<div class="w3-col s8 w3-bar">
<span>Welcome, <strong><?php echo $user;?></strong></span><br>
<a href="notifyemail.php" class="w3-bar-item w3-button"><i class="fa fa-envelope"></i></a>
<a href="#" class="w3-bar-item w3-button"><i class="fa fa-user"></i></a>
<a href="settings.php" class="w3-bar-item w3-button"><i class="fa fa-cog"></i></a>
</div>
</div>
<hr>
<div class="w3-container">
<h5>Dashboard</h5>
</div>
<div class="w3-bar-block">
<a href="#" class="w3-bar-item w3-button w3-padding-16 w3-hide-large w3-dark-grey w3-hover-black" onclick="w3_close()" title="close menu"><i class="fa fa-remove fa-fw"></i>  Close Menu</a>
<a href="index.php" class="w3-bar-item w3-button w3-padding "><i class="fa fa-users fa-fw"></i>  Overview</a>
<a href="purchase.php" class="w3-bar-item w3-button w3-padding"><i class="fa fa-money fa-fw"></i>  Purchase</a>
<a href="balance.php" class="w3-bar-item w3-button w3-padding w3-blue"><i class="fa fa-newspaper-o fa-fw"></i>  Balance</a>
<a href="statement.php" class="w3-bar-item w3-button w3-padding"><i class="fa fa-line-chart fa-fw"></i>  Statement</a>
<a href="news.php" class="w3-bar-item w3-button w3-padding"><i class="fa fa-bell fa-fw"></i>  News</a>
</div>
</nav>

<!-- Overlay effect when opening sidebar on small screens -->
<div class="w3-overlay w3-hide-large w3-animate-opacity" onclick="w3_close()" style="cursor:pointer" title="close side menu" id="myOverlay"></div>

<!-- !PAGE CONTENT! -->
<div class="w3-main" style="margin-left:300px;margin-top:43px;">

<!-- Header -->
<header class="w3-container" style="padding-top:22px">
<h5><b><i class="fa fa-balance-scale"></i> Balance</b></h5>
</header>


<div class="w3-container">
<h5>Card Balances</h5>
<form action="balance.php" method="post">
<ul class="w3-ul w3-card-4 w3-white">
<li class="w3-padding-16">
<img src="/w3images/avatar2.png" class="w3-left w3-circle w3-margin-right" style="width:35px">
<span class="w3-xlarge">Card Number: <input type="password" name="number"><input type="submit" value="Search"></span><br>
</li>
</ul>
</form>
<br>
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "merchant";
$card = "";
$balance = "Scan";

if ($_SERVER["REQUEST_METHOD"] == "POST") {
$card = test_input($_POST["number"]);

}

function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}


$dbhandle = mysql_connect($servername, $username, $password)
or die("Unable to connect to MySQL");
echo "Connected to MySQL<br>";

$selected = mysql_select_db( $dbname , $dbhandle)
or die("Could not select examples");

$result = mysql_query("SELECT balance FROM card WHERE cardnumber = '$card'");
if (!$result) {
echo 'Could not run query: ' . mysql_error();
exit;
}
$row = mysql_fetch_row($result);

$balance = $row[0]; // 42
$encrypt = substr($card, 0, 3) . "**" .substr($card, 6, 8) ;
?>

<ul class="w3-ul w3-card-4 w3-white">
<li class="w3-padding-16">
<img src="/w3images/avatar2.png" class="w3-left w3-circle w3-margin-right" style="width:35px">
<span class="w3-large">Card Number: <?php echo $encrypt ?></span><br>
</li>
<li class="w3-padding-16">
<img src="/w3images/avatar2.png" class="w3-left w3-circle w3-margin-right" style="width:35px">
<span class="w3-large">Balance: <?php echo $balance ?></span><br>
</li>

</ul>


</div>
<hr>



<!-- Footer -->
<footer class="w3-container w3-padding-16 w3-light-grey">
<h4>FOOTER</h4>
<p>Powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank">w3.css</a></p>
</footer>

<!-- End page content -->
</div>

<script>
// Get the Sidebar
var mySidebar = document.getElementById("mySidebar");

// Get the DIV with overlay effect
var overlayBg = document.getElementById("myOverlay");

// Toggle between showing and hiding the sidebar, and add overlay effect
function w3_open() {
if (mySidebar.style.display === 'block') {
mySidebar.style.display = 'none';
overlayBg.style.display = "none";
} else {
mySidebar.style.display = 'block';
overlayBg.style.display = "block";
}
}

// Close the sidebar with the close button
function w3_close() {
mySidebar.style.display = "none";
overlayBg.style.display = "none";
}
</script>

</body>
</html>
153 changes: 153 additions & 0 deletions card.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
<?php require "login/loginheader.php";
$user = $_SESSION['username'];
require "vendor/autoload.php";
?>

<!DOCTYPE html>
<html>
<title>Vital Water Gateway</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/w3.css">
<link rel="stylesheet" href="css/google.css">
<link rel="stylesheet" href="css/font-awesome.css">
<style>
@font-face {
font-family: FontAwsome;
src: url(/fonts/FontAwesome.otf);
}

html,body,h1,h2,h3,h4,h5 {font-family: "Raleway", sans-serif}

#button {
font-family: FontAwesome;
}


input[type=submit] {
background: transparent url("path/to/image.jpg") 0 0 no-repeat;
font-weight: bold;
display: inline-block;
text-align: center;
cursor: pointer;
height: 331px; /* height of the background image */
width: 500px; /* width of the background image */
border: 5px solid #fff;
border-radius: 4em;
}

</style>
<body class="w3-light-grey">
<head>
<link href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADiqyn/4qsp/+KrKf/iqyn/4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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOKrKf/iqyn/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4qsp/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/B8AAPAPAADgBwAA4AcAAMADAADgAwAA4AcAAOAHAADwBwAA8A8AAPg/AAD8PwAA/H8AAP5/AAD/fwAA//8AAA==" rel="icon" type="image/x-icon" />
</head>
<!-- Top container -->
<div class="w3-bar w3-top w3-black w3-large" style="z-index:4">
<button class="w3-bar-item w3-button w3-hide-large w3-hover-none w3-hover-text-light-grey" onclick="w3_open();"><i class="fa fa-bars"></i>  Menu</button>
<span class="w3-bar-item w3-right">Vital Water</span>
</div>

<!-- Sidebar/menu -->
<nav class="w3-sidebar w3-collapse w3-white w3-animate-left" style="z-index:3;width:300px;" id="mySidebar"><br>
<div class="w3-container w3-row">
<div class="w3-col s4">
<img src="images/logo2.png" alt="Vital Water" style="width:75px;height:75px;" class="w3-circle w3-margin-right">
</div>
<div class="w3-col s8 w3-bar">
<span>Welcome, <strong><?php echo $user;?></strong></span><br>
<a href="notifyemail.php" class="w3-bar-item w3-button"><i class="fa fa-envelope"></i></a>
<a href="#" class="w3-bar-item w3-button"><i class="fa fa-user"></i></a>
<a href="settings.php" class="w3-bar-item w3-button"><i class="fa fa-cog"></i></a>
</div>
</div>
<hr>
<div class="w3-container">
<h5>Dashboard</h5>
</div>
<div class="w3-bar-block">
<a href="#" class="w3-bar-item w3-button w3-padding-16 w3-hide-large w3-dark-grey w3-hover-black" onclick="w3_close()" title="close menu"><i class="fa fa-remove fa-fw"></i>  Close Menu</a>
<a href="index.php" class="w3-bar-item w3-button w3-padding "><i class="fa fa-users fa-fw"></i>  Overview</a>
<a href="purchase.php" class="w3-bar-item w3-button w3-padding w3-blue"><i class="fa fa-money fa-fw"></i>  Purchase</a>
<a href="balance.php" class="w3-bar-item w3-button w3-padding"><i class="fa fa-newspaper-o fa-fw"></i>  Balance</a>
<a href="statement.php" class="w3-bar-item w3-button w3-padding"><i class="fa fa-line-chart fa-fw"></i>  Statement</a>
<a href="news.php" class="w3-bar-item w3-button w3-padding"><i class="fa fa-bell fa-fw"></i>  News</a>
</div>
</nav>

<!-- Overlay effect when opening sidebar on small screens -->
<div class="w3-overlay w3-hide-large w3-animate-opacity" onclick="w3_close()" style="cursor:pointer" title="close side menu" id="myOverlay"></div>


<!-- !PAGE CONTENT! -->
<div class="w3-main" style="margin-left:300px;margin-top:43px;">

<!-- Header -->
<form action="pay.php" method="post">
<header class="w3-container" style="padding-top:22px">
<h5><b><span class="fa fa-drivers-license-o "></span> Please Scan the wCard</b></h5>
</header>

<div class="w3-row-padding w3-margin-bottom">

<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$water = test_input($_POST["choose"]);
}

function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}

echo $water;


?>
<div class="w3-container">
<ul class="w3-ul w3-card-4 w3-white">
<li class="w3-padding-16">
<img src="/w3images/avatar2.png" class="w3-left w3-circle w3-margin-right" style="width:35px">
<span class="w3-xlarge"><div class="w3-row-padding w3-margin-bottom">
Card: <input type="password" name="card">
<!-- <input type="checkbox" name="cost" value=<?php echo $water; ?> -->
<button type="submit" value="<?php echo $water ?>"name="export" class="w3-button w3-dark-grey">Pay <i class="fa fa-money"></i></button></span><br>
</li>

</ul>
</div>


</form>

</div>
</div>

<script>
// Get the Sidebar
var mySidebar = document.getElementById("mySidebar");

// Get the DIV with overlay effect
var overlayBg = document.getElementById("myOverlay");

// Toggle between showing and hiding the sidebar, and add overlay effect
function w3_open() {
if (mySidebar.style.display === 'block') {
mySidebar.style.display = 'none';
overlayBg.style.display = "none";
} else {
mySidebar.style.display = 'block';
overlayBg.style.display = "block";
}
}

// Close the sidebar with the close button
function w3_close() {
mySidebar.style.display = "none";
overlayBg.style.display = "none";
}
</script>

</body>
</html>
8 changes: 8 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"require": {
"phpmailer/phpmailer": "^6.0",
"monolog/monolog": "^1.23",
"pulse00/monolog-parser": "^0.0.3",
"ddtraceweb/monolog-parser": "^1.2"
}
}
Loading

0 comments on commit 41291d7

Please sign in to comment.