Posted by: tudsy Feb 17 2018, 03:37 AM
QUOTE(pandy @ Feb 17 2018, 04:59 AM)
You do run this through a server, don't you?
It's on an isp server.
Here is the code:
<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="viewport" content="width=device-width, initial-scale=1.0 minimum-scale=1.0"/>
<link type="text/css" rel="stylesheet" href="Main.css"/>
<style type ="text/CSS">
div.absolute{
position:absolute;
top:200px;
}
div {
height: auto; /*if more info comes on the page, it will stretch down*/
width: auto;
margin: 0 auto; /*this will cause the div to be in the center*/
}
</style>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-908952-3', 'auto');
ga('send', 'pageview');
ga('require','linkid');
</script>
<script>
var personsnamejs ='AdrianTudini';
var personpicture = personsnamejs + '.jpg';
var priceofartarray = ["2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2"];
var personpath = 'http://103.226.223.161/~ecovibdc/ECOVIB2D/MYART/' + personsnamejs + '/' + personpicture;
function setvar(){
var x = document.getElementById('Title');
x.style.color = '#00FF00';
x.style.fontSize ='36px';
document.getElementById('PersonImage').src = personpath;
var z = document.getElementById('PlaySound');
z.style.color = '#00FF00';
z.style.fontSize ='24px';
var t = document.getElementById('paypal');
t.style.color = '#00FF00';
t.style.fontSize ='24px';
var u = document.getElementById('freename');
u.style.color = '#00FF00';
u.style.fontSize ='20px';
var u = document.getElementById('freename1');
u.style.color = '#00FF00';
u.style.fontSize ='20px';
var v = document.getElementById('freeaddress');
v.style.color = '#00FF00';
v.style.fontSize ='20px';
var c = document.getElementById('reason');
c.style.color = "#00FF00";
c.style.fontSize = "36px";
var d = document.getElementById('Buy');
d.style.color = "#00FF00";
d.style.fontSize = "36px";
document.getElementById('def').innerHTML = 'Click-Tap to view/select ' + personsnamejs + " 's Art";
document.getElementById('PersonImage').src = personpath;
document.getElementById('paypal').innerHTML ="* Your name and email address will not be sold or traded.";
document.getElementById('reason').innerHTML = "Art for your desktop/device";
};
</script>
<script type='text/javascript'>
function linkSound(picname,personname)
{
if(picname != 'default')
{
soundfile = picname.replace('w.bmp','.mp3');
var soundfilepath = 'http://103.226.223.161/~ecovibdc/ECOVIB2D/MYART/' + personname + '/Sound/' + soundfile;
document.getElementById('Sound').src = soundfilepath;
}
};
</script>
<script>
function changePic(picname,personname)
{
if(picname != 'default')
{
var path = 'http://103.226.223.161/~ecovibdc/ECOVIB2D/MYART/' + personname + '/Graphicw/' + picname;
var myimg = document.getElementById('myImage');
var newImage = new Image();
newImage.src = path;
newImage.onerror = function()
{
alert('There was a problem loading the Image file! - Please try again');
myimg.style.height = '';
myimg.src = '';
}
newImage.onload = function()
{
myimg.src = path;
x = document.getElementById('Graphic_select').selectedIndex;
var Priceofart = priceofartarray[x-1];
picname = picname.replace('w.bmp','.bmp');
document.getElementById('person').value = personname;
document.getElementById('Cost').value = Priceofart;
document.getElementById('pic').value = picname;
var y = document.getElementById('Price');
y.style.color = '#00FF00';
y.style.fontSize ='36px';
document.getElementById('Price').innerHTML= 'Price of Art ( without a watermark )(USD): $' + Priceofart + ' including GST';
}
}
};
</script>
<title>ECOVIB2D©</title>
</head>
<body onload='setvar();' style='background-color: #660000'>
<script>
alert(hello);
</script>
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="Go to ECOVIB2D!-https://ecovib2d.blogspot.com.au";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
<table class='div' align='center' border='0'>
<tbody>
<tr>
<td bgcolor='#660000'><img height='auto' src='ecovib2d1.jpg' width='auto' /></td>
<td bgcolor='#660000'>
<p align='center' id ='Title'>ECOVIB2D©</p>
<br>
<br>
<div class='div' id='google_translate_element'></div><script type='text/javascript'>
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script><script type='text/javascript' src='//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit'></script>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<table class='div' style="background-color: #660000" align='center' >
<tbody>
<tr>
<td style="image-orientation: 90deg;" align="left">
<img id='PersonImage' height='250' width='250' style='pointer-events:none' alt=''>
</td>
<td>
<p align="center" id="reason"></p>
<div class="absolute">
<select name='Graphic_select' id='Graphic_select' onchange='changePic(this.value,personsnamejs);linkSound(this.value,personsnamejs);'>
<option value ='default' id = 'def' style='height:30px;'></option>
<br>
If(this.value = 'default'){
document.getElementById("Graphic_select").contentWindow.location.reload(true);
}
<?php
$pname = "AdrianTudini";
foreach(glob("/home/ecovibdc/public_html/ECOVIB2D/MYART/".$pname."/Graphicw/*w.bmp") as $files1){
$files1 = basename($files1);
echo "<option value='{$files1}'>{$files1}</option>";
};
?>
</select>
</div>
<img id='myImage' src='ecovib2d1.jpg' style='pointer-events:none' alt='' height='250' width='250'>
<p align='center' id='PlaySound'>Play the sound with my art in mind</p>
<audio id="Sound" preload='none' controls="controls">
<source src='ecovib2d.mp3' type='audio/MPEG '>
</audio>
<br>
<br>
</td>
</tr>
</table>
</center>
<?php
require '/public_html/ecovibdc/Composer/vendor/autoloader.php';
// Include RapidAPI Library
require './../lib/eWAY/RapidAPI.php';
$request = new eWAY\CreateAccessCodeRequest();
If(isset($request)){
$Accesscode = $request;
}
?>
<center> <p id='Price'> </p></center>
<center>
<form action="https://secure-au.sandbox.ewaypayments.com/AccessCodes/".<?php echo $Accesscode ?> id ='payment_form' method="POST"/>
<input type='hidden' id='person' name='Person'/>
<input type='hidden' id='Cost' name='Price' />
<input type='hidden' id='pic' name='Graphic'/>
<p align='center' id='freename'>Enter FirstName:</p>
<p align='center'><input maxlength='50' name='Firstname' size='50' type='text' /></p>
<p align='center' id='freename1'> Enter SurName:</p>
<p align='center'><input maxlength='50' name='Surname' size='50' type='text' /></p>
<p align='center' id='freeaddress'>Enter Email-Address:</p>
<p align='center'><input id='e-address' maxlength='50' name='email' size='50' type='text' /></p>
<input type="hidden" name='EWAY_ACCESSCODE' value=<?php echo $Accesscode ?> />
<input type="hidden" name="EWAY_PAYMENTTYPE" value="PayPal" />
<input type="submit" id ='Buy' value="Buy now from PayPal!" text="Checkout" />
<br>
<img src='Paypal.png'> <img src="//www.mysecuressls.com/images/seals/crazy_secure_03.png" border="0">
<!-- Begin eWAY Linking Code -->
<div id="eWAYBlock">
<div style="text-align:center;">
<a href="http://www.eway.com.au/secure-site-seal?i=10&s=15&pid=abe63ccc-6b2d-4c28-a09e-0b3c27e61a0e&theme=0" title="eWAY Payment Gateway" target="_blank" rel="nofollow">
<img alt="eWAY Payment Gateway" src="https://www.eway.com.au/developer/payment-code/verified-seal.ashx?img=10&size=15&pid=abe63ccc-6b2d-4c28-a09e-0b3c27e61a0e&theme=0" />
</a>
</div>
</div>
<!-- End eWAY Linking Code -->
</form>
</center>
<p align='center' id='paypal'></p>
</body>
</html>
Posted by: tudsy Feb 17 2018, 08:37 AM
QUOTE(tudsy @ Feb 17 2018, 06:07 PM)
QUOTE(pandy @ Feb 17 2018, 04:59 AM)
You do run this through a server, don't you?
It's on an isp server.
Here is the code:
<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="viewport" content="width=device-width, initial-scale=1.0 minimum-scale=1.0"/>
<link type="text/css" rel="stylesheet" href="Main.css"/>
<style type ="text/CSS">
div.absolute{
position:absolute;
top:200px;
}
div {
height: auto; /*if more info comes on the page, it will stretch down*/
width: auto;
margin: 0 auto; /*this will cause the div to be in the center*/
}
</style>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-908952-3', 'auto');
ga('send', 'pageview');
ga('require','linkid');
</script>
<script>
var personsnamejs ='AdrianTudini';
var personpicture = personsnamejs + '.jpg';
var priceofartarray = ["2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2"];
var personpath = 'http://103.226.223.161/~ecovibdc/ECOVIB2D/MYART/' + personsnamejs + '/' + personpicture;
function setvar(){
var x = document.getElementById('Title');
x.style.color = '#00FF00';
x.style.fontSize ='36px';
document.getElementById('PersonImage').src = personpath;
var z = document.getElementById('PlaySound');
z.style.color = '#00FF00';
z.style.fontSize ='24px';
var t = document.getElementById('paypal');
t.style.color = '#00FF00';
t.style.fontSize ='24px';
var u = document.getElementById('freename');
u.style.color = '#00FF00';
u.style.fontSize ='20px';
var u = document.getElementById('freename1');
u.style.color = '#00FF00';
u.style.fontSize ='20px';
var v = document.getElementById('freeaddress');
v.style.color = '#00FF00';
v.style.fontSize ='20px';
var c = document.getElementById('reason');
c.style.color = "#00FF00";
c.style.fontSize = "36px";
var d = document.getElementById('Buy');
d.style.color = "#00FF00";
d.style.fontSize = "36px";
document.getElementById('def').innerHTML = 'Click-Tap to view/select ' + personsnamejs + " 's Art";
document.getElementById('PersonImage').src = personpath;
document.getElementById('paypal').innerHTML ="* Your name and email address will not be sold or traded.";
document.getElementById('reason').innerHTML = "Art for your desktop/device";
};
</script>
<script type='text/javascript'>
function linkSound(picname,personname)
{
if(picname != 'default')
{
soundfile = picname.replace('w.bmp','.mp3');
var soundfilepath = 'http://103.226.223.161/~ecovibdc/ECOVIB2D/MYART/' + personname + '/Sound/' + soundfile;
document.getElementById('Sound').src = soundfilepath;
}
};
</script>
<script>
function changePic(picname,personname)
{
if(picname != 'default')
{
var path = 'http://103.226.223.161/~ecovibdc/ECOVIB2D/MYART/' + personname + '/Graphicw/' + picname;
var myimg = document.getElementById('myImage');
var newImage = new Image();
newImage.src = path;
newImage.onerror = function()
{
alert('There was a problem loading the Image file! - Please try again');
myimg.style.height = '';
myimg.src = '';
}
newImage.onload = function()
{
myimg.src = path;
x = document.getElementById('Graphic_select').selectedIndex;
var Priceofart = priceofartarray[x-1];
picname = picname.replace('w.bmp','.bmp');
document.getElementById('person').value = personname;
document.getElementById('Cost').value = Priceofart;
document.getElementById('pic').value = picname;
var y = document.getElementById('Price');
y.style.color = '#00FF00';
y.style.fontSize ='36px';
document.getElementById('Price').innerHTML= 'Price of Art ( without a watermark )(USD): $' + Priceofart + ' including GST';
}
}
};
</script>
<title>ECOVIB2D©</title>
</head>
<body onload='setvar();' style='background-color: #660000'>
<script>
alert(hello);
</script>
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="Go to ECOVIB2D!-https://ecovib2d.blogspot.com.au";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
<table class='div' align='center' border='0'>
<tbody>
<tr>
<td bgcolor='#660000'><img height='auto' src='ecovib2d1.jpg' width='auto' /></td>
<td bgcolor='#660000'>
<p align='center' id ='Title'>ECOVIB2D©</p>
<br>
<br>
<div class='div' id='google_translate_element'></div><script type='text/javascript'>
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script><script type='text/javascript' src='//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit'></script>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<table class='div' style="background-color: #660000" align='center' >
<tbody>
<tr>
<td style="image-orientation: 90deg;" align="left">
<img id='PersonImage' height='250' width='250' style='pointer-events:none' alt=''>
</td>
<td>
<p align="center" id="reason"></p>
<div class="absolute">
<select name='Graphic_select' id='Graphic_select' onchange='changePic(this.value,personsnamejs);linkSound(this.value,personsnamejs);'>
<option value ='default' id = 'def' style='height:30px;'></option>
<br>
If(this.value = 'default'){
document.getElementById("Graphic_select").contentWindow.location.reload(true);
}
<?php
$pname = "AdrianTudini";
foreach(glob("/home/ecovibdc/public_html/ECOVIB2D/MYART/".$pname."/Graphicw/*w.bmp") as $files1){
$files1 = basename($files1);
echo "<option value='{$files1}'>{$files1}</option>";
};
?>
</select>
</div>
<img id='myImage' src='ecovib2d1.jpg' style='pointer-events:none' alt='' height='250' width='250'>
<p align='center' id='PlaySound'>Play the sound with my art in mind</p>
<audio id="Sound" preload='none' controls="controls">
<source src='ecovib2d.mp3' type='audio/MPEG '>
</audio>
<br>
<br>
</td>
</tr>
</table>
</center>
<?php
require '/public_html/ecovibdc/Composer/vendor/autoloader.php';
// Include RapidAPI Library
require './../lib/eWAY/RapidAPI.php';
$request = new eWAY\CreateAccessCodeRequest();
If(isset($request)){
$Accesscode = $request;
}
?>
<center> <p id='Price'> </p></center>
<center>
<form action="https://secure-au.sandbox.ewaypayments.com/AccessCodes/".<?php echo $Accesscode ?> id ='payment_form' method="POST"/>
<input type='hidden' id='person' name='Person'/>
<input type='hidden' id='Cost' name='Price' />
<input type='hidden' id='pic' name='Graphic'/>
<p align='center' id='freename'>Enter FirstName:</p>
<p align='center'><input maxlength='50' name='Firstname' size='50' type='text' /></p>
<p align='center' id='freename1'> Enter SurName:</p>
<p align='center'><input maxlength='50' name='Surname' size='50' type='text' /></p>
<p align='center' id='freeaddress'>Enter Email-Address:</p>
<p align='center'><input id='e-address' maxlength='50' name='email' size='50' type='text' /></p>
<input type="hidden" name='EWAY_ACCESSCODE' value=<?php echo $Accesscode ?> />
<input type="hidden" name="EWAY_PAYMENTTYPE" value="PayPal" />
<input type="submit" id ='Buy' value="Buy now from PayPal!" text="Checkout" />
<br>
<img src='Paypal.png'> <img src="//www.mysecuressls.com/images/seals/crazy_secure_03.png" border="0">
<!-- Begin eWAY Linking Code -->
<div id="eWAYBlock">
<div style="text-align:center;">
<a href="http://www.eway.com.au/secure-site-seal?i=10&s=15&pid=abe63ccc-6b2d-4c28-a09e-0b3c27e61a0e&theme=0" title="eWAY Payment Gateway" target="_blank" rel="nofollow">
<img alt="eWAY Payment Gateway" src="https://www.eway.com.au/developer/payment-code/verified-seal.ashx?img=10&size=15&pid=abe63ccc-6b2d-4c28-a09e-0b3c27e61a0e&theme=0" />
</a>
</div>
</div>
<!-- End eWAY Linking Code -->
</form>
</center>
<p align='center' id='paypal'></p>
</body>
</html>
Here is my directory structure.