1function check_email_exisit( emailvalue, thisform ) 2{ 3 var req = getXMLHTTP(); 4 var formname = thisform.name; 5 6 var module_id = eval("document."+formname+".mod_id.value"); 7 var formsettings = eval("document."+formname+".formsettings.value"); 8 formsettings = formsettings.replace( "--__--", "'" ); 9 formsettings_arr = JSON.parse(formsettings); 10 var email_exist_forced_login = formsettings_arr.flagForceLogin; 11 var emailExistMsg = formsettings_arr.emailExistMsg; 12 var message_2_contactus = formsettings_arr.existUserContactLink; 13 //alert(formsettings_arr.accessLevMsg); 14 //var loginredirect = eval("document."+formname+".loginredirect.value"); 15 var loginredirect = formsettings_arr.existUserRedirect; 16 17 var at_id=eval("document."+formname+".formId.value"); 18 var hiddenbaseurl=eval("document."+formname+".hiddenbaseurl.value"); 19 20 var basepath = hiddenbaseurl; 21 document.getElementById("load_img_"+module_id).innerHTML = "<img src=\'"+basepath+"/media/com_joomconnect/images/loaders/ajax-loader.gif\' />"; 22 document.getElementById("jcfc_btn_"+module_id).disabled='disabled'; 23 var Itemid = eval("document."+formname+".Itemid.value"); 24 req.onreadystatechange = function() 25 { 26 if (req.readyState == 4 ) 27 { 28 if(req.status == 200){ 29 var n = req.responseText.search("first"); 30 if(email_exist_forced_login && email_exist_forced_login == 1 && n > 0) 31 { 32 document.getElementById("jcfc_btn_"+module_id).disabled=true; 33 } 34 else 35 { 36 document.getElementById("jcfc_btn_"+module_id).disabled=false; 37 } 38 if(req.responseText == "You Do Not have Standard Account,Please Contact The Administrator") 39 { 40 if(document.getElementById("check_email_exist_"+module_id)) 41 { 42 document.getElementById("check_email_exist_"+module_id).innerHTML=req.responseText; 43 document.getElementById("load_img_"+module_id).innerHTML = ""; 44 } 45 } 46 else if(req.responseText == "only on cw") 47 { 48 document.getElementById("load_img_"+module_id).innerHTML = ""; 49 } 50 else 51 { 52 if(document.getElementById("check_email_exist_"+module_id)) 53 { 54 document.getElementById("check_email_exist_"+module_id).innerHTML=req.responseText; 55 document.getElementById("load_img_"+module_id).innerHTML = ""; 56 document.getElementById("check_email_exist_"+module_id).style.display = "block"; 57 } 58 } 59 } 60 else { 61 alert("There was a problem while using XMLHTTP:\n" + req.statusText); 62 } 63 } 64 } 65 var path =basepath+"/index.php?tmpl=component&option=com_joomconnect&view=ajaxfiles&type=checkemailexist&emailvalue="+emailvalue+"&loginredirect="+loginredirect+"&message_2_contactus="+message_2_contactus+"&module_id="+module_id+"&atid="+at_id+"&Itemid="+Itemid+"&email_exist_forced_login="+email_exist_forced_login; 66 67 //alert(path); 68 req.open("GET", path, true); 69 req.send(null); 70} 71 72function check_email_exist( emailvalue, thisform ) 73{ 74 if (emailvalue == "") { 75 return; 76 } 77 var JCquery = jQuery.noConflict(); 78 var formname = thisform.name; 79 80 var module_id = eval( "document." + formname + ".mod_id.value" ); 81 var formsettings = eval( "document." + formname + ".formsettings.value" ); 82 formsettings = formsettings.replace( "--__--", "'" ); 83 formsettings_arr = JSON.parse( formsettings ); 84 var email_exist_forced_login = formsettings_arr.flagForceLogin; 85 var emailExistMsg = formsettings_arr.emailExistMsg; 86 var message_2_contactus = formsettings_arr.existUserContactLink; 87 //alert(formsettings_arr.accessLevMsg); 88 //var loginredirect = eval("document."+formname+".loginredirect.value"); 89 var loginredirect = formsettings_arr.existUserRedirect; 90 91 var at_id = eval( "document." + formname + ".formId.value" ); 92 var hiddenbaseurl = eval( "document." + formname + ".hiddenbaseurl.value" ); 93 var psa = eval( "document." + formname + ".psa.value" ); 94 var basepath = hiddenbaseurl; 95 JCquery( "#load_img_" + module_id ).html( "<img src=\'" + basepath + "/media/com_joomconnect/images/loaders/ajax-loader.gif\' />" ); 96 //document.getElementById( "load_img_" + module_id ).innerHTML = "<img src=\'" + basepath + "/media/com_joomconnect/images/loaders/ajax-loader.gif\' />"; 97 btnId = "jcfc_btn_" + module_id; 98 if( eval("document." + formname + ".stpc" ) ) 99 { 100 if( eval("document." + formname + ".stpnxt1_"+module_id ) ) 101 { 102 btnId = "stpnxt1_" + module_id; 103 }else if( eval("document." + formname + ".stpnxt2_"+module_id ) ) 104 { 105 btnId = "stpnxt2_" + module_id; 106 }else{ 107 108 btnId = "stpnxt_" + module_id; 109 } 110 } 111 document.getElementById( btnId ).disabled = 'disabled'; 112 document.getElementById( "user_email_" + at_id ).disabled = 'disabled'; 113 JCquery( "#" + btnId ).css( 'opacity', '0.1' ); 114 var Itemid = eval( "document." + formname + ".Itemid.value" ); 115 var randomnumber2 = Math.floor( Math.random() * 11 ); 116 var d = new Date(); 117 var random3 = d.getTime(); 118 var isRegform = jQuery("#isRegForm").val(); 119 120 var path = basepath + "index.php?option=com_joomconnect&view=ajaxfiles&type=checkemailexist&tmpl=component&emailvalue=" + emailvalue + "&loginredirect=" + loginredirect + "&message_2_contactus=" + message_2_contactus + "&module_id=" + module_id + "&atid=" + at_id + "&Itemid=" + Itemid + "&email_exist_forced_login=" + email_exist_forced_login + "&isRegform =" + isRegform + "&psa=" + psa +"&randomnumber=" + randomnumber2 + random3; 121 122 document.getElementById( "user_email_" + at_id ).disabled = false;
123 JCquery.ajax( 124 { 125 url: path, 126 type: 'POST', 127 success: function(req) 128 { 129 var n = req.search( "first" ); 130 if( email_exist_forced_login && email_exist_forced_login == 1 && n > 0 ) 131 { 132 JCquery( "#" + btnId ).attr( 'disabled', 'disabled' ); 133 } 134 else 135 { 136 JCquery( "#" + btnId ).removeAttr( 'disabled' ); 137 JCquery( "#" + btnId ).css( 'opacity', '1' ); 138 } 139 140 if( req.search( "login" ) > 0 && isRegform == 1 ) 141 { 142 JCquery( "#" + btnId ).attr( 'disabled', 'disabled' ); 143 144 req = req + '<br><a href="' + basepath + 'index.php?option=com_users&view=reset" target="_blank">Forgot Password?</a>'; 145 146 jQuery("form#jcfc_Website_Registration .dfpfa").html(""); 147 } 148 149 if( req == "You Do Not have Standard Account,Please Contact The Administrator" ) 150 { 151 if( JCquery( "#check_email_exist_" + module_id ) ) 152 { 153 JCquery( "#check_email_exist_" + module_id ).html(req); 154 JCquery( "#load_img_" + module_id ).html( "" ); 155 } 156 } 157 else if( req == "only on cw" ) 158 { 159 JCquery( "#load_img_" + module_id ).html( "" ); 160 } 161 else 162 { 163 if( JCquery( "#check_email_exist_" + module_id ) ) 164 { 165 JCquery( "#check_email_exist_" + module_id ).html( req ); 166 JCquery( "#load_img_" + module_id ).html( "" ); 167 JCquery( "#check_email_exist_" + module_id ).css( 'display','block' ); 168 } 169 } 170 } 171 172 }); 173} 174 175function getXMLHTTP() { //fuction to return the xml http object 176 var xmlhttp=false; 177 try{ 178 xmlhttp=new XMLHttpRequest(); 179 } 180 catch(e) { 181 try{ 182 xmlhttp= new ActiveXObject("Microsoft.XMLHTTP"); 183 } 184 catch(e){ 185 try{ 186 xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 187 } 188 catch(e1){ 189 xmlhttp=false; 190 } 191 } 192 } 193 194 return xmlhttp; 195 } 196 197function login_box() 198{ 199 var myLink = document.getElementById("myLink"); 200 myLytebox.start(myLink,false,true); 201 return false; 202}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.