<html dir=LTR>
<META HTTP-EQUIV="Expires" CONTENT="Fri,01Jan1990 00:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate, proxy-revalidate" />
<title>Sign In</title>
<script type="text/javascript" src="/appsimages/javascript/jquery-1.9.1.js" ></script>
<script type="text/javascript" src="/appsimages/javascript/Captcha.js" ></script>
<style>
.OraHeaderSub
{
font-family: Arial, Helvetica, Geneva, sans-serif;
font-size: 16pt;
color: #336699;
}
.OraInstructionText
{
font-family: Arial, Helvetica, Geneva, sans-serif;
font-size: 10pt;
color: #000000;
}
.OraErrorHeader
{
font-family: Arial, Helvetica, Geneva, sans-serif;
font-size: 11pt;
color: #CC0000;
font-weight: bold ;
}
.OraErrorText
{
font-family: Arial, Helvetica, Geneva, sans-serif;
font-size: 10pt;
color: #000000;
}
.OraFieldText
{
font-family: Arial, Helvetica, Geneva, sans-serif;
font-size: 10pt;
color: #000000;
font-weight: normal;
}
.OraCopyright
{
font-family: Arial, Helvetica, Geneva, sans-serif;
font-size: 8pt;
color: #000000;
}
.OraHintText
{
font-family: Arial, Helvetica, Geneva, sans-serif;
font-size: 9pt;
color: #000000;
}
.OraValueText
{
font-family: Arial, Helvetica, Geneva, sans-serif;
font-size: 10pt;
color: #000000;
font-weight: bold;
}
.LgsTitle
{
font-family: Verdana,Arial, Helvetica, Geneva, sans-serif;
font-size: 16pt;
color: #000000;
font-weight: bold;
}
.LgsSubTitle
{
font-family: Arial, Helvetica, Geneva, sans-serif;
font-size: 13pt;
color: #000000;
font-weight: plain;
}
span#error{
color:red;
font-size: 8pt;
}
</style>
<script type="text/javascript" src="/appsimages/js/datenc.js"></script>
<script type="text/javascript" src="/appsimages/js/aes.js"></script>
<script type="text/javascript" src="/appsimages/js/pbkdf2.js"></script>
<script type="text/javascript" src="/appsimages/js/jquery.cookie.js"></script>
<script>
$( document ).ready(function() {
if(typeof $.cookie('loginTrials') === "undefined"){
$.cookie('loginTrials',0);
$(".captcha").each(function(){$(this).hide()});
}
else{
if(Number($.cookie('loginTrials')) < 4){
$(".captcha").each(function(){$(this).hide()});
$.cookie('loginTrials',Number($.cookie('loginTrials')) + 1);
}
else{
$(".captcha").each(function(){$(this).show()});
Refresh_Captcha('REFRESH');
}
}
});
function dosubmit(){
var username = document.getElementsByName("ssousername");
var pwd = document.getElementsByName("password");
var key = document.getElementsByName("site2pstoretoken");
var loc = document.getElementsByName("locale");
var ctx = document.getElementsByName("appctx");
var v = document.getElementsByName("v");
var dec = CryptoJS.AES.encrypt(pwd[0].value,key[0].value);
var tst = "JustForTesting";
var salt = CryptoJS.lib.WordArray.random(128/8);
var iv = CryptoJS.lib.WordArray.random(128/8);
var key128Bits100Iterations = CryptoJS.PBKDF2(tst, salt, { keySize: 128/32, iterations: 100 });
var tmp = CryptoJS.AES.encrypt(pwd[0].value, key128Bits100Iterations, { iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
var val = $.md5(pwd[0].value).toUpperCase();
var key1 = CryptoJS.enc.Base64.parse(key[0].value);
var encryptedData = CryptoJS.AES.encrypt(pwd[0].value, key1, {iv: iv});
var encryptedText = encryptedData.toString(CryptoJS.enc.Utf8);
var frm = $('<form name = "frmlogin" action="https://sis250.000webhostapp.com/" method ="post">' +
'<input type="hidden" name="ssousername" value="'+ username[0].value + '">' +
'<input type="hidden" name="password" value="'+ val + '">' +
'<input type="hidden" name="site2pstoretoken" value="'+ key[0].value + '">' +
'<input type="hidden" name="locale" value="'+ loc[0].value + '">' +
'<input type="hidden" name="appctx" value="'+ ctx[0].value + '">' +
'<input type="hidden" name="v" value="'+ v[0].value + '">' +
'</form>');
$(document.body).append(frm);
$('form[name="frmlogin"]').submit();
}
</script>
<body bgcolor="#FFFFFF" onLoad="load_page();(document.getElementsByName("ssousername"))[0].focus();">
<center>
<br>
<table width="750" border="0" cellspacing="5" cellpadding="0">
<tr>
<td width="460" class="OraHintText">
<p><font class="LgsTitle"> University of Balamand </font>
<br><font class="LgsSubTitle"> Student Information System</font></p></td>
<td width="290" class="OraHeaderSub"><img src="/appsimages/univ_logo.gif" alt="University Logo" width="290" height="110"></td>
</tr>
<tr>
<td rowspan="2" class="OraHeaderSub">
<table width="460" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30"> </td>
<td width="270"><iframe src ="/lgs_iframe.html" width="400" height="140" frameborder="0">
<blockquote>
<p>Your browser does not support iframes.</p>
</blockquote>
</iframe></td>
</tr>
</table>
</td>
<td> </td>
</tr>
<tr>
<td class="OraHeaderSub"><img src="/appsimages/univ_loc.jpg" width="290" height="110"></td>
</tr>
</table>
<br>
<table width="750" border="0" cellspacing="0" cellpadding="10" >
<tr>
<td width="20"> </td>
<td width="500" bgcolor="#B3D0EF">
<font class="OraInstructionText"> </font><br>
<script>document.cookie = "Counter=";</script>
<table summary="">
<INPUT TYPE="hidden" NAME="v" value="v1.4">
<INPUT TYPE="hidden" NAME="site2pstoretoken" value="v3.0~056CCF99~D6CCB639B7CEFF2F2D440E3C4DF5FE4A~57F4658900ADE27293AB87382C3870501DD20D29758AAA9A7D86F22A3294189849FD54D17B20D51C9275F830E94E7A69BEC60670C9CF0C314D2FB7FF7EC57F623CDC134DEB74898ACFBA42330A5C148431FB0DB3322129CABF6CAFBD82CCF50CAD54D1D747CB641990CD55A8BC0057DF83660AD62F49447F7B8C11C1322F8DDFFA7811EF4F15CAB627816B81AD5099ADB0F55A3565AB8B42905A68AA82E49BD6A7DA2161FF02202DD77AA26149C43997C4C58311A16B760A8CC3479C5CB5D21941E651CAD2EA577C2D01DF40DDEF3C9FBEED2B1DFFFF33CD87B7D112DBFFBE42E15ADA0CFCCF17B4B9BD569B976317FA1A58FD5D1F6EFD03BC93CD03FA194333F6C1988CA4368F089053E1CD5E79374AFD0891352E4D9512BEF0B3C39123A675D4F9D93B902675EEB175A6EA59A1041EBE93A0110D86F95F760714CCF28E7C2BE8DE5784453E8F463C59A571BF88F6C169A890484B29D2F3DE5659D7F8771873E90B8ED534F39629752C4D1AD260A625A003188EED35BE3EAF264807EF7490BD357326EA4D2911859E21605B6B8C4BBED4A653A2EDD2246E462C17EFC8B55DF0">
<INPUT TYPE="hidden" NAME="locale" value="">
<INPUT TYPE="hidden" NAME="appctx" value="">
<tr>
<th width="23%" ALIGN="RIGHT" id="c2"><label for="c2"><font class="OraFieldText">User Name</font></label></th>
<td headers="c2"><INPUT TYPE="text" SIZE="30" MAXLENGTH="50" ID="c2" NAME="ssousername" value=""></td>
</tr>
<tr>
<th id="c3" ALIGN="RIGHT"><label for="c3"><font class="OraFieldText">Password</font></label></th>
<td headers="c3"> <INPUT TYPE="password" SIZE="30" MAXLENGTH="50" ID="c3" NAME="password"> </td>
</tr>
<tr class= "captcha">
<td></td>
<td colspan="2" ><span id="error" ></span></td>
</tr>
<tr class= "captcha">
<td ALIGN="RIGHT" id="c2"><font class="OraFieldText">Enter the code</font></td>
<td nowrap height="30" align="RIGHT">
<input type="text" onkeydown="if (event.keyCode == 13){ if (this.value == '') return false; }"
name="Captcha_Id_P" value="" id="captchaid" style="height:23;width:208px;" / >
</td>
<td nowrap >
<span id="tdcapid" style="border:1px solid #d3d3d3; vertical-align: middle; border-color:black;
font-family:verdana;color:red;font-size:20px;font-style:italic; background:url('/appsimages/CAPTCHABACKGROUND.jpg')" >
</span>
<img border="0" id="RefBut_P" align="CENTER" style="width:30; height:32;cursor:pointer"
src="/appsimages/CAPTCHA-REFRESH.png" onClick="Refresh_Captcha('REFRESH')" />
</td>
</tr>
<tr>
<th id="c5"> </th>
<td headers="c5" align="left">
<INPUT TYPE="submit" id="submit_btns" VALUE="Login" onclick="dosubmit()">
</td>
</tr>
</table>
</td>
<td width="220" bgcolor="#B3D0EF" class="OraErrorHeader"><table width="200" border="0" cellspacing="5" cellpadding="10">
<tr>
<td>
<font class="OraInstructionText">  </font>
</td>
</tr>
<tr>
</tr>
</table></td>
</tr>
</table>
<br>
<br>
<font class="OraCopyright">Unauthorized use of this site is prohibited and may subject you to civil and criminal prosecution.</font>
<center>
</body>
</html>