FARID2XF
Registered User
- تاریخ عضویت
- 18 نوامبر 2011
- نوشتهها
- 325
- لایکها
- 89
سلام دوستان
زیاد توضیح نمیدم فک نکنم نیاز باشه اگه نیاز شد بگید
یک صفحه html هست که وقتی باز میکنی سه گزینه داره
یوزر
پسورد
کد سیستم
که وقتی صفحه باز میشه کد سیستمت رو میگیره میده بهت ! و ازت نام کاربری و پسورد میخواد
من این صفحه رو گشتم با یه ادیتور
این قسمت رو پیدا کردم و فک کنم مربوط به پسورد باشه(انگار پی اچ پی هست !!!):
ایا میتونید بگید پسورد با چه فرمولی بدست میاد ؟!
اینم کد کل صفحه اچ تی ام ال
زیاد توضیح نمیدم فک نکنم نیاز باشه اگه نیاز شد بگید
یک صفحه html هست که وقتی باز میکنی سه گزینه داره
یوزر
پسورد
کد سیستم
که وقتی صفحه باز میشه کد سیستمت رو میگیره میده بهت ! و ازت نام کاربری و پسورد میخواد
من این صفحه رو گشتم با یه ادیتور
این قسمت رو پیدا کردم و فک کنم مربوط به پسورد باشه(انگار پی اچ پی هست !!!):
کد:
var fName, uuid, lName; var gajLessUser = Get_Cookie("gajLessUser"); var gajLessuuid = Get_Cookie("gajLessuuid"); if ((gajLessuuid == "undefined") || (gajLessuuid == null)) { gajLessuuid = Math['uuidCompact'](0, 63).substring(0,7).toUpperCase(); Set_Cookie("gajLessuuid", gajLessuuid, 356, "", "", ""); } $("#uuid")[0].value = gajLessuuid; var gajLessPass = Get_Cookie("gajLessPass"); if ((gajLessUser != null) && (gajLessPass != null)) { $("#fName")[0].value = gajLessUser; $("#lName")[0].value = gajLessPass; } $("#authContainer").keyup(function (event) { if ((event.keyCode == 13) && (EnterOnErrorPressed == false)) { $("#authContainer").dialog("close"); } else { EnterOnErrorPressed = false; event.stopPropagation(); } }); $("#authContainer").dialog({ width: 400, height: 200, modal: true, stack: true, resizable: false, beforeClose: function (event, ui) { var md5Str = ""; fName = $("#fName")[0].value; uuid = $("#uuid")[0].value; lName = $("#lName")[0].value; if (fName != "") { md5Str = MD5(fName + uuid); md5Str = md5Str.substring(0, 10); } if ((md5Str != "") && (md5Str == lName)) { Set_Cookie("gajLessUser", fName, 356, "", "", ""); Set_Cookie("gajLessPass", lName, 356, "", "", ""); readMenuXML(); } else { EnterOnErrorPressed = true; alert("کد یا نام کاربری وارد شده صحیح نیست"); $("#lName")[0].value = ""; return false; } },
اینم کد کل صفحه اچ تی ام ال
کد:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>گنجینه سئوالات</title> <style> #li_1 li { margin-top: 1px; margin-bottom: 1px; padding-bottom: 1px; cursor: pointer; cursor: hand; } </style> <link href="Styles/ui-lightness/ui.all.css" rel="stylesheet" type="text/css" /> <script src="Scripts/jquery-1.4.2.js" type="text/javascript"></script> <script src="Scripts/external/jquery.bgiframe-2.1.2.js" type="text/javascript"></script> <script src="Scripts/ui/jquery.ui.core.js" type="text/javascript"></script> <script src="Scripts/ui/jquery.ui.widget.js" type="text/javascript"></script> <script src="Scripts/ui/jquery.ui.mouse.js" type="text/javascript"></script> <script src="Scripts/ui/jquery.ui.draggable.js" type="text/javascript"></script> <script src="Scripts/ui/jquery.ui.position.js" type="text/javascript"></script> <script src="Scripts/ui/jquery.ui.resizable.js" type="text/javascript"></script> <script src="Scripts/ui/jquery.ui.dialog.js" type="text/javascript"></script> <script src="Scripts/ui/jquery.ui.tabs.js" type="text/javascript"></script> <link href="Styles/GajStyles.css" rel="stylesheet" type="text/css" /> <script src="http://f.ptcdn.org/images/jquery.blockUI.js" type="text/javascript"></script> <script src="Scripts/coockieHandler.js" type="text/javascript"></script> <script src="Scripts/Math.uuid.js" type="text/javascript"></script> <script> var entered = false; var menuShown = false; var elemForMouseIsShown = null; var xmlMenuContent = null; var xmlYearContent = null; var diagTitle = ""; var filePath = ""; var yearSelected = ""; var name; var isMenuXMLReadLaunched = false; var MD5 = function (string) { function RotateLeft(lValue, iShiftBits) { return (lValue<<iShiftBits) | (lValue>>>(32-iShiftBits)); } function AddUnsigned(lX,lY) { var lX4,lY4,lX8,lY8,lResult; lX8 = (lX & 0x80000000); lY8 = (lY & 0x80000000); lX4 = (lX & 0x40000000); lY4 = (lY & 0x40000000); lResult = (lX & 0x3FFFFFFF)+(lY & 0x3FFFFFFF); if (lX4 & lY4) { return (lResult ^ 0x80000000 ^ lX8 ^ lY8); } if (lX4 | lY4) { if (lResult & 0x40000000) { return (lResult ^ 0xC0000000 ^ lX8 ^ lY8); } else { return (lResult ^ 0x40000000 ^ lX8 ^ lY8); } } else { return (lResult ^ lX8 ^ lY8); } } function F(x,y,z) { return (x & y) | ((~x) & z); } function G(x,y,z) { return (x & z) | (y & (~z)); } function H(x,y,z) { return (x ^ y ^ z); } function I(x,y,z) { return (y ^ (x | (~z))); } function FF(a,b,c,d,x,s,ac) { a = AddUnsigned(a, AddUnsigned(AddUnsigned(F(b, c, d), x), ac)); return AddUnsigned(RotateLeft(a, s), b); }; function GG(a,b,c,d,x,s,ac) { a = AddUnsigned(a, AddUnsigned(AddUnsigned(G(b, c, d), x), ac)); return AddUnsigned(RotateLeft(a, s), b); }; function HH(a,b,c,d,x,s,ac) { a = AddUnsigned(a, AddUnsigned(AddUnsigned(H(b, c, d), x), ac)); return AddUnsigned(RotateLeft(a, s), b); }; function II(a,b,c,d,x,s,ac) { a = AddUnsigned(a, AddUnsigned(AddUnsigned(I(b, c, d), x), ac)); return AddUnsigned(RotateLeft(a, s), b); }; function ConvertToWordArray(string) { var lWordCount; var lMessageLength = string.length; var lNumberOfWords_temp1=lMessageLength + 8; var lNumberOfWords_temp2=(lNumberOfWords_temp1-(lNumberOfWords_temp1 % 64))/64; var lNumberOfWords = (lNumberOfWords_temp2+1)*16; var lWordArray=Array(lNumberOfWords-1); var lBytePosition = 0; var lByteCount = 0; while ( lByteCount < lMessageLength ) { lWordCount = (lByteCount-(lByteCount % 4))/4; lBytePosition = (lByteCount % 4)*8; lWordArray[lWordCount] = (lWordArray[lWordCount] | (string.charCodeAt(lByteCount)<<lBytePosition)); lByteCount++; } lWordCount = (lByteCount-(lByteCount % 4))/4; lBytePosition = (lByteCount % 4)*8; lWordArray[lWordCount] = lWordArray[lWordCount] | (0x80<<lBytePosition); lWordArray[lNumberOfWords-2] = lMessageLength<<3; lWordArray[lNumberOfWords-1] = lMessageLength>>>29; return lWordArray; }; function WordToHex(lValue) { var WordToHexValue="",WordToHexValue_temp="",lByte,lCount; for (lCount = 0;lCount<=3;lCount++) { lByte = (lValue>>>(lCount*8)) & 255; WordToHexValue_temp = "0" + lByte.toString(16); WordToHexValue = WordToHexValue + WordToHexValue_temp.substr(WordToHexValue_temp.length-2,2); } return WordToHexValue; }; function Utf8Encode(string) { string = string.replace(/\r\n/g,"\n"); var utftext = ""; for (var n = 0; n < string.length; n++) { var c = string.charCodeAt(n); if (c < 128) { utftext += String.fromCharCode(c); } else if((c > 127) && (c < 2048)) { utftext += String.fromCharCode((c >> 6) | 192); utftext += String.fromCharCode((c & 63) | 128); } else { utftext += String.fromCharCode((c >> 12) | 224); utftext += String.fromCharCode(((c >> 6) & 63) | 128); utftext += String.fromCharCode((c & 63) | 128); } } return utftext; }; var x=Array(); var k,AA,BB,CC,DD,a,b,c,d; var S11=7, S12=12, S13=17, S14=22; var S21=5, S22=9 , S23=14, S24=20; var S31=4, S32=11, S33=16, S34=23; var S41=6, S42=10, S43=15, S44=21; string = Utf8Encode(string); x = ConvertToWordArray(string); a = 0x67452301; b = 0xEFCDAB89; c = 0x98BADCFE; d = 0x10325476; for (k=0;k<x.length;k+=16) { AA=a; BB=b; CC=c; DD=d; a=FF(a,b,c,d,x[k+0], S11,0xD76AA478); d=FF(d,a,b,c,x[k+1], S12,0xE8C7B756); c=FF(c,d,a,b,x[k+2], S13,0x242070DB); b=FF(b,c,d,a,x[k+3], S14,0xC1BDCEEE); a=FF(a,b,c,d,x[k+4], S11,0xF57C0FAF); d=FF(d,a,b,c,x[k+5], S12,0x4787C62A); c=FF(c,d,a,b,x[k+6], S13,0xA8304613); b=FF(b,c,d,a,x[k+7], S14,0xFD469501); a=FF(a,b,c,d,x[k+8], S11,0x698098D8); d=FF(d,a,b,c,x[k+9], S12,0x8B44F7AF); c=FF(c,d,a,b,x[k+10],S13,0xFFFF5BB1); b=FF(b,c,d,a,x[k+11],S14,0x895CD7BE); a=FF(a,b,c,d,x[k+12],S11,0x6B901122); d=FF(d,a,b,c,x[k+13],S12,0xFD987193); c=FF(c,d,a,b,x[k+14],S13,0xA679438E); b=FF(b,c,d,a,x[k+15],S14,0x49B40821); a=GG(a,b,c,d,x[k+1], S21,0xF61E2562); d=GG(d,a,b,c,x[k+6], S22,0xC040B340); c=GG(c,d,a,b,x[k+11],S23,0x265E5A51); b=GG(b,c,d,a,x[k+0], S24,0xE9B6C7AA); a=GG(a,b,c,d,x[k+5], S21,0xD62F105D); d=GG(d,a,b,c,x[k+10],S22,0x2441453); c=GG(c,d,a,b,x[k+15],S23,0xD8A1E681); b=GG(b,c,d,a,x[k+4], S24,0xE7D3FBC8); a=GG(a,b,c,d,x[k+9], S21,0x21E1CDE6); d=GG(d,a,b,c,x[k+14],S22,0xC33707D6); c=GG(c,d,a,b,x[k+3], S23,0xF4D50D87); b=GG(b,c,d,a,x[k+8], S24,0x455A14ED); a=GG(a,b,c,d,x[k+13],S21,0xA9E3E905); d=GG(d,a,b,c,x[k+2], S22,0xFCEFA3F8); c=GG(c,d,a,b,x[k+7], S23,0x676F02D9); b=GG(b,c,d,a,x[k+12],S24,0x8D2A4C8A); a=HH(a,b,c,d,x[k+5], S31,0xFFFA3942); d=HH(d,a,b,c,x[k+8], S32,0x8771F681); c=HH(c,d,a,b,x[k+11],S33,0x6D9D6122); b=HH(b,c,d,a,x[k+14],S34,0xFDE5380C); a=HH(a,b,c,d,x[k+1], S31,0xA4BEEA44); d=HH(d,a,b,c,x[k+4], S32,0x4BDECFA9); c=HH(c,d,a,b,x[k+7], S33,0xF6BB4B60); b=HH(b,c,d,a,x[k+10],S34,0xBEBFBC70); a=HH(a,b,c,d,x[k+13],S31,0x289B7EC6); d=HH(d,a,b,c,x[k+0], S32,0xEAA127FA); c=HH(c,d,a,b,x[k+3], S33,0xD4EF3085); b=HH(b,c,d,a,x[k+6], S34,0x4881D05); a=HH(a,b,c,d,x[k+9], S31,0xD9D4D039); d=HH(d,a,b,c,x[k+12],S32,0xE6DB99E5); c=HH(c,d,a,b,x[k+15],S33,0x1FA27CF8); b=HH(b,c,d,a,x[k+2], S34,0xC4AC5665); a=II(a,b,c,d,x[k+0], S41,0xF4292244); d=II(d,a,b,c,x[k+7], S42,0x432AFF97); c=II(c,d,a,b,x[k+14],S43,0xAB9423A7); b=II(b,c,d,a,x[k+5], S44,0xFC93A039); a=II(a,b,c,d,x[k+12],S41,0x655B59C3); d=II(d,a,b,c,x[k+3], S42,0x8F0CCC92); c=II(c,d,a,b,x[k+10],S43,0xFFEFF47D); b=II(b,c,d,a,x[k+1], S44,0x85845DD1); a=II(a,b,c,d,x[k+8], S41,0x6FA87E4F); d=II(d,a,b,c,x[k+15],S42,0xFE2CE6E0); c=II(c,d,a,b,x[k+6], S43,0xA3014314); b=II(b,c,d,a,x[k+13],S44,0x4E0811A1); a=II(a,b,c,d,x[k+4], S41,0xF7537E82); d=II(d,a,b,c,x[k+11],S42,0xBD3AF235); c=II(c,d,a,b,x[k+2], S43,0x2AD7D2BB); b=II(b,c,d,a,x[k+9], S44,0xEB86D391); a=AddUnsigned(a,AA); b=AddUnsigned(b,BB); c=AddUnsigned(c,CC); d=AddUnsigned(d,DD); } var temp = WordToHex(a)+WordToHex(b)+WordToHex(c)+WordToHex(d); return temp.toLowerCase(); } function isIE() { if (navigator.appName == 'Microsoft Internet Explorer') return true; return false; } function isFireFox() { if (userAgent.indexOf('Firefox') != -1) return false; return true; } function isIEVersionRight() { var rv = -1; // Return value assumes failure. if (isIE()) { var ua = navigator.userAgent; var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})"); if (re.exec(ua) != null) rv = parseFloat(RegExp.$1); } if (rv >= 8) return true; else return false; } function isFireFoxVersionRight() { var userAgent = navigator.userAgent; if ((userAgent.indexOf('Firefox/3.6.8') != -1) || (userAgent.indexOf('Firefox/4') != -1)) { return true; } return false; } function isChromeRight() { var userAgent = navigator.userAgent; if (userAgent.indexOf('Chrome/10') != -1) return true; return false; } function checkCompatibilty() { if (!isFireFoxVersionRight() && !isIEVersionRight() && !isChromeRight()) return false; return true; } function imgPrint() { pwin = window.open(zoomedImageSrc, "_blank"); pwin.onload = function () { pwin.print(); } } function changeOpacity(condition) { var printIcon = $("#printIcon"); if (condition == "up") { printIcon.css("opacity", "0.8"); printIcon.css("filter", "alpha(opacity = 80)"); } else { printIcon.css("opacity", "0.3"); printIcon.css("filter", "alpha(opacity = 30)"); } } function blocking() { $("#siteContent").block({ message: '<img alt="در حال ذخیره سازی ..." src="http://forum.persiantools.com/images/ajax-loader(3).gif" />', css: { border: '3px solid #333333' } }); } function unblocking() { $("#siteContent").unblock(); } $(function () { $("#tabs").tabs({ select: tabSelectHandler }); $("ul.ui-tabs-nav").children("li").each(function () { $(this).css("float", "right"); }); }); var amonthIndex = 0; function tabSelectHandler(event, ui) { amonthIndex = ui.index; } function adaptMonthIndex(index, E) { if (E == true) { if (index == 0) return "Khordad"; else if (index == 1) return "Shahrivar"; else return "Dey"; } else { if (index == 0) return "خرداد"; else if (index == 1) return "شهریور"; else return "دی"; } } function adiagopen() { try { var pathToXML = window.location.href.substring(0, window.location.href.lastIndexOf("/")) + "/" + filePath + $(monthElem).text() + "/" + adaptMonthIndex(amonthIndex, true) + "/"; var atab1 = $("#a-tabs-1").children("p")[0]; $(atab1).empty(); $(atab1).append("مطلبی در این رابطه وجود ندارد <br/><hr/>"); $.ajax({ type: "GET", url: pathToXML + "Index.xml", dataType: "xml", success: function (xml) { }, error: function (objRequest) { //alert("Here"); }, complete: function (xhr, status) { $("#siteContent").unblock(); index_xml = ajaxXMLComplete(xhr, status); $(index_xml).find("answers").each(function () { var firstIterate = true; $(this).find("img").each(function () { if (firstIterate == true) { $(atab1).empty(); $(atab1).append("پاسخ سئوالات <br/><hr/>"); firstIterate = false; } var pth = $(this).text(); pth = pathToXML + pth; $(atab1).append( "<a href='" + pth + "' target='_blank' onclick='ImgClickHandler(this,false)'><img src='" + pth + "' alt='Soal' width='220px' height='300px' style='margin:0px 5px 5px 10px'></a>"); }); }); $("#ansDiag").dialog({ width: 1024, height: 565, modal: true, stack: true, resizable: false }); $("#ui-dialog-title-ansDiag").css("float", "right") .css("margin", "0px 40px 0px 0px").css("font-size", "70%").text( "پاسخ درس " + diagTitle + "-" + adaptMonthIndex(amonthIndex, false) + " سال " + $(monthElem).text()); } }); } catch (e) { //alert(e.Message); } } var monthElem = ""; function diagOpen(elem) { $("#dialog").dialog({ width: 1024, height: 565, modal: true, resizable: false }); $("#ui-dialog-title-dialog").css("float", "right") .css("margin", "0px 40px 0px 0px").css("font-size", "70%").text(diagTitle) .parent().css("background", 'url("http://forum.persiantools.com/images/diagZoomTitle.png") repeat-x scroll 50% 50% '); $("#ui-dialog-title-dialog").parent().css("border-style", "none"); tabSet("#tabs-1", "khordad", elem); tabSet("#tabs-2", "Shahrivar", elem); tabSet("#tabs-3", "Dey", elem); $("ul.ui-tabs-nav").css("background", 'url("http://forum.persiantools.com/images/tabs.png") repeat-x scroll 50% 50% #F6A828').css("border-style", "none"); ; monthElem = elem; } function tabSet(tabToSelect, month, elem) { var tab1 = $(tabToSelect).children("p")[0]; $(tab1).empty(); $(tab1).append("مطلبی در این رابطه وجود ندارد <br/><hr/>"); var pathToXML = window.location.href.substring(0, window.location.href.lastIndexOf("/")) + "/" + filePath + $(elem).text() + "/" + month + "/"; $.ajax({ type: "GET", url: pathToXML + "Index.xml", dataType: "xml", success: function (xml) { }, error: function (objRequest) { $(tab1).empty(); $(tab1).append("مطلبی در این رابطه وجود ندارد <br/><hr/>"); }, complete: function (xhr, status) { index_xml = ajaxXMLComplete(xhr, status); var firstIterate = true; $(index_xml).find("questions").each(function () { var imgs = $(this).find("img"); if (imgs.length > 0) { imgs.each(function () { if (firstIterate == true) { $(tab1).empty(); $(tab1).append("صفحات سئوالات <br/><hr/>"); firstIterate = false; } var pth = pathToXML + $(this).text(); $(tab1).append( "<a href='" + pth + "' target='_blank' onclick='ImgClickHandler(this,true)'><img src='" + pth + "' alt='' width='220px' height='300px' style='margin:0px 5px 5px 10px'></a>"); }); } }); } }); } var zoomedImageSrc; function ImgClickHandler(elem, isAns) { var imgSrc = $(elem).children(0).attr("src"); zoomedImageSrc = imgSrc; var iframeZ = $("#iframeZoom"); $(iframeZ).attr("src", "ZoomPane.htm?src=" + imgSrc); $("#zoomPane").dialog({ width: 900, height: 600, modal: true, stack: true, resizable: false }); $("#ui-dialog-title-zoomPane").css("float", "right") .css("font-size", "70%").parent().css("border-style", "none"); if (isAns == true) $("#ui-dialog-title-zoomPane").parent(). css("background", 'url("http://forum.persiantools.com/images/diagZoomTitle.png") repeat-x scroll 50% 50% '); else $("#ui-dialog-title-zoomPane").parent(). css("background", 'url("http://forum.persiantools.com/images/ans.png") repeat-x scroll 50% 50% #F6A828'); $("#zoomPane").scrollTop(0); $("#printIcon").empty(); $("#printIcon").append('<img alt="چاپ" src="http://f.ptcdn.org/images/print-icon.png" />'); return false; } function findPos(obj) { var curleft = curtop = 0; if (obj.offsetParent) { curleft = obj.offsetLeft curtop = obj.offsetTop while (obj = obj.offsetParent) { curleft += obj.offsetLeft curtop += obj.offsetTop } } return [curleft, curtop]; } function ajaxXMLComplete(xhr, status) { if (status == 'parsererror' || status == 'success') { xmlDoc = null; if (window.DOMParser) { parser = new DOMParser(); xmlDoc = parser.parseFromString(xhr.responseText, "text/xml"); } else // Internet Explorer { xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async = "false"; xmlDoc.loadXML(xhr.responseText); } return xmlDoc; } return null; } function readMenuXML() { blocking(); $.ajax({ type: "GET", url: "MenuItems.xml", dataType: "html", success: function (xml) { }, error: function (objRequest) { unblocking(); }, complete: function (xhr, status) { xmlDoc = ajaxXMLComplete(xhr, status); unblocking(); xmlMenuContent = xmlDoc; xmlMenuReadSuccess(); } }); } function readYearXML(filePath) { if (filePath == "") { $("#yearList").append("<span style='cursor: pointer;cursor: hand;'>" + ' مطلبی ارائه نشده است' + "</span>       "); return; } blocking(); var ulYearList = $("#yearList"); $.ajax({ type: "GET", url: filePath + "Years.xml", dataType: "xml", success: function (xml) { }, error: function (objRequest) { unblocking(); ulYearList.text(""); ulYearList.empty(); ulYearList.children().empty(); }, complete: function (xhr, status) { xmlDoc = ajaxXMLComplete(xhr, status); xmlYearContent = xmlDoc; ulYearList.text(""); ulYearList.empty(); ulYearList.children().empty(); ulYearList.css("width", "0px"); $(xmlYearContent).find("year").each(function () { var txt = $(this).text(); ulYearList.append("<span style='cursor: pointer;cursor: hand;' onclick='diagOpen(this)'>" + txt + "</span>       "); }); unblocking(); isMenuXMLReadLaunched = true; ulYearList.animate({ width: '400px' }, 200); bindYearJqueryEffect(); } }); } function xmlMenuReadSuccess() { $(xmlMenuContent).find("Menu").each(function () { var ulMenu = $("#ulMenu"); $(ulMenu).append("<li><a href='#' style='opacity: 0.7; filter: alpha(opacity = 70);font-size: 80%;'>" + $(this).attr('name') + "</a></li>"); }); $(".welcomeLinks a").mouseenter( function () { if (isMenuXMLReadLaunched == true) { isMenuXMLReadLaunched = false; $(this).mouseout(); return; } menuShown = false; if (elemForMouseIsShown != null) $(elemForMouseIsShown).mouseout(); if (!entered) { entered = true; elemForMouseIsShown = this; var aElement = this; var parent = $(this).parent(); $(parent).animate().stop(); var topTemp = findPos(parent)[1]; $(parent).delay(100).animate( { width: "95%", top: topTemp }, 200, function animationComplete() { var hrLef = (aElement.offsetLeft * 18) + aElement.offsetWidth - 360; var hrTop = ((findPos(parent[0])[1])) - 218; var hrElem = $("#hr"); hrElem.css("display", "block"); hrElem.css("left", hrLef + "px"); hrElem.css("top", hrTop + "px"); hrElem.css("width", "20px"); hrElem.animate( { width: '0px', left: hrLef + "px" }, 200, function hrAnimationComplete() { var ulElement = $("#menuList")[0]; name = $(aElement).text(); if (xmlMenuContent != null) { $(ulElement).children().remove(); $(xmlMenuContent).find("Menu").each(function () { if (name.indexOf($(this).attr('name')) != -1) { $(this).children().each(function () { var path = $(this).attr("path"); path = (path == undefined ? '' : path); $(ulElement).append("<li path='" + path + "' onclick='menuItemClick(this)'>" + $(this).text() + "</li>"); }); } }); eval('$("#li_1 li").mouseenter(function () {$(this).css("color", "yellow"); $(this).delay(100).animate({ width: "95%" }, 200);});$("#li_1 li").mouseout(function () {$(this).css("color", "white");$(this).animate({ width: "100%" }, 200);});'); } var hrElem = $("#hr"); var hrLeft = findPos(hrElem[0])[0]; var hrTop = findPos(hrElem[0])[1]; var iframe = $("#li_1"); menuShown = true; iframe.css("display", "block"); iframe.css("left", hrLef - 150 + "px"); iframe.css("top", hrTop - 50 + "px"); }); } ); } }); $(".welcomeLinks a").mouseout( function () { if (menuShown) return; entered = false; var hrElem = $("#hr"); hrElem.css("display", "none"); hrElem.css("width", "20px"); var iframe = $("#li_1"); iframe.css("display", "none"); var parent = $(this).parent(); $(parent).animate().stop(); var topTemp = findPos(parent)[1]; $(parent).animate( { width: "100%" , top: topTemp }, 200 ); }); var menumouseEneterd = false; $("#li_1").mouseenter(function () { menumouseEneterd = true; }); $("#li_1").mouseleave(function () { if (menumouseEneterd) { menumouseEneterd = false; menuShown = false; if (elemForMouseIsShown != null) $(elemForMouseIsShown).mouseout(); } }); } var EnterOnErrorPressed = false; $(document).ready(function () { if (!checkCompatibilty()) { var body = $("body"); body.text(""); if (confirm('برای اجرای برنامه به اینترنت اکسپلورر 8 یا فایرفاکس 3.6.8 به بالا یا گوگل کروم 10 به بالا نیاز است آیا می خواهید فایر فاکس 3.6.8 بر روی سیستم شما نصب شود')) { window.location = "Install/Firefox_Setup_3.6.8.exe"; } return; } var fName, uuid, lName; var gajLessUser = Get_Cookie("gajLessUser"); var gajLessuuid = Get_Cookie("gajLessuuid"); if ((gajLessuuid == "undefined") || (gajLessuuid == null)) { gajLessuuid = Math['uuidCompact'](0, 63).substring(0,7).toUpperCase(); Set_Cookie("gajLessuuid", gajLessuuid, 356, "", "", ""); } $("#uuid")[0].value = gajLessuuid; var gajLessPass = Get_Cookie("gajLessPass"); if ((gajLessUser != null) && (gajLessPass != null)) { $("#fName")[0].value = gajLessUser; $("#lName")[0].value = gajLessPass; } $("#authContainer").keyup(function (event) { if ((event.keyCode == 13) && (EnterOnErrorPressed == false)) { $("#authContainer").dialog("close"); } else { EnterOnErrorPressed = false; event.stopPropagation(); } }); $("#authContainer").dialog({ width: 400, height: 200, modal: true, stack: true, resizable: false, beforeClose: function (event, ui) { var md5Str = ""; fName = $("#fName")[0].value; uuid = $("#uuid")[0].value; lName = $("#lName")[0].value; if (fName != "") { md5Str = MD5(fName + uuid); md5Str = md5Str.substring(0, 10); } if ((md5Str != "") && (md5Str == lName)) { Set_Cookie("gajLessUser", fName, 356, "", "", ""); Set_Cookie("gajLessPass", lName, 356, "", "", ""); readMenuXML(); } else { EnterOnErrorPressed = true; alert("کد یا نام کاربری وارد شده صحیح نیست"); $("#lName")[0].value = ""; return false; } }, open: function (event, ui) { $("#ui-dialog-title-authContainer").css("float", "right") .css("font-size", "20%").parent().css("border-style", "none"); } }); }) var liMouseEneteredTo = null; var elemTop; function bindYearJqueryEffect() { $("#yearList span").mouseout(function () { $(this).css("font-size", "100%"); }) $("#yearList span").mouseover(function () { $(this).css("font-size", "140%"); }) } function menuItemClick(obj) { var titleElem = $("#lsTitle"); filePath = ""; filePath = $(obj).attr("path"); $("#yearList").empty().text(""); readYearXML(filePath); diagTitle = name + " - " + $(obj).text(); titleElem.text(diagTitle); } </script> </head> <body> <div id="siteBgnd" style="display: block; background: url('Images/18.jpg') repeat fixed center center transparent;"> </div> <div id="site" style="display: block"> <div id="siteWrapper"> <style type="text/css"> #mbScreen div#demoPage { width: 50%; height: 90%; } </style> <div id="siteContent"> <div id="scrollable" class="dinaContent"> <div class="bgnd component" style="opacity: 0.8; filter: alpha(opacity = 80);"> </div> <div class="back"> <!--<a href="#"> <img alt="back" src="http://f.ptcdn.org/images/Home-iconS.png"> </a>--> </div> <div class="content"> <h1> صفحه اصلی</h1> <h2> لطفا رشته مورد نظر خود را انتخاب کنید</h2> <div class="welcomeLinks"> <table style="width: 100%"> <tbody> <tr> <td style="width: 60%; border-right-style: solid; border-right-width: thin; color: White; vertical-align: top; padding-top: 0px; padding-right: 5px; margin-top: 0px; margin-right: 5px;"> <p dir="rtl" id="lsTitle" class="ptitle" style="text-align: right; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px"> </p> <p class="ptitle" style="list-style-type: none; font-size: 80%; display: inline; float: right; height: 100px" dir="rtl" id="yearList"> </p> </td> <td style="width: 40%; color: White; vertical-align: top; padding-top: 0px; padding-right: 5px; margin-top: 0px; margin-right: 5px;"> <ul id="ulMenu" style="list-style-type: none;"> <hr id="hr" style="opacity: 0.8; filter: alpha(opacity = 80); z-index: 10000; background-color: White; color: White; position: absolute; width: 20px; display: none" /> </ul> </td> </tr> </tbody> </table> </div> </div> </div> </div> <div id="siteHeader" style="text-align: center"> <p> گنجینه سئوالات امتحانات نهائی سال سوم دبیرستان</p> </div> <div id="li_1" style="display: none; position: absolute; width: 150px; height: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px; padding-bottom: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; border-style=solid; border-width: thin; border-color: #444444; opacity: 0.8; filter: alpha(opacity = 80); font-family: Tahoma; font-size: 80%; text-align: right; color: White; background-color: Gray; width: 200px"> <p style="margin-bottom: 5px; background-color: #003366; color: White; height: 22px; vertical-align: middle; font-family: Tahoma; text-align: center; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px"> لیست دروس</p> <hr style="margin-bottom: 5px" /> <ul id="menuList" style="list-style-type: none; margin-right: 10px"> </ul> </div> </div> <div id="dialog" title="" style="text-align: right; display: none; background: url('Images/19.jpg') repeat fixed center center transparent;"> <div id="tabs"> <ul> <li style="width: 120px"><a href="#tabs-1" style="float: right; font-size: 60%">خرداد</a></li> <li style="width: 120px"><a href="#tabs-2" style="float: right; font-size: 60%">شهریور</a></li> <li style="width: 120px"><a href="#tabs-3" style="float: right; font-size: 60%">دی</a></li> </ul> <div id="tabs-1" style="overflow-y: auto"> <p style="height: 330px;"> </p> </div> <div id="tabs-2" style="overflow-y: auto"> <p style="height: 330px"> </p> </div> <div id="tabs-3" style="overflow-y: auto"> <p style="height: 330px"> </p> </div> </div> <div> <a href="#" style="margin: 5px 30px 0px 0px" onclick="adiagopen()">مشاهده پاسخ سئوالات</a> </div> </div> <div id="zoomPane" title="" style="display: none; overflow-x: hidden; text-align: center"> <div id="printIcon" style="z-index: 1000; position: absolute; opacity: 0.3; filter: alpha(opacity = 30); cursor: pointer; cursor: hand;" onmouseover="changeOpacity('up')" onmouseout="changeOpacity('down')" onclick="imgPrint()"> </div> <iframe id="iframeZoom" src="ZoomPane.htm" width="100%" height="1024" style="border-style: none; text-align: center"></iframe> </div> <div dir="rtl" id="ansDiag" title="" style="text-align: right; display: none;"> <div id="a-tabs-1"> <p> </p> </div> </div> <div id="authContainer" style="margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;text-align:right"> <form id="theForm" onsubmit="return false" style="margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;width:100%"> <table style="text-align: center;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;width:100%" dir="rtl"> <tr> <td style="width: 30%"> <label for="fName" style="text-align:right;font-family: Tahoma; font-size: 12px"> نام کاربری:</label> </td> <td> <input type="text" tabindex="1" autocomplete="off" id="fName" name="fName" /> </td> </tr> <tr> <td style="width: 30%"> <label for="uuid" style="text-align:right;font-family: Tahoma; font-size: 12px"> کد سیستمی:</label> </td> <td> <input type="text" tabindex="1" autocomplete="off" id="uuid" name="uuid" disabled="disabled" readonly="readonly" /> </td> </tr> <tr> <td style="width: 30%"> <label for="lName" style="text-align:right;font-family: Tahoma; font-size: 12px"> کد فعال سازی:</label> </td> <td> <input type="password" tabindex="1" autocomplete="off" id="lName" name="lName" /> </td> </tr> <tr></tr> <tr> <td style="text-align: center" colspan="2"> <hr /> <input type="button" value="ورود" onclick="javascript:$('#authContainer').dialog('close');" style="font-family: Tahoma; font-size: 10px;width:100px;height:25px;vertical-align:middle" /> </td> </tr> <tr> <td colspan="2"> <label style="text-align:right;font-family: Tahoma; font-size: 12px"> جهت دریافت سریال برنامه لطفا با شماره پشتیبانی روی CD تماس بگیرید.</label> </td> </tr> </table> </form> </div> </body> </html>