airbus Posted August 7, 2009 Report Share Posted August 7, 2009 (edited) Tatad gribu uztasīt atsevišķu lapu ar paroli, esmu uzlicis šadu skript: <script language="JavaScript"> if (top.location.search=="") { pass = prompt('Parole!'); if (pass=='paroliite') { alert('Parole ir pareiza.') } else { alert('Nepareiza parole!'), top.location.href="acp.php"}}; </script> Kad eju parasta lapa http://*.lv/acp.php paroli prasa, bet kad includoja tad viņš parole neprasta? Kāda šīm skriptam problema, un kāds var iedot ejošo lai caur include arī prasītu? Edited August 7, 2009 by airbus Quote Link to comment Share on other sites More sharing options...
mickys Posted August 7, 2009 Report Share Posted August 7, 2009 skripta problēma ir tāda, ka no viņa nav jēgas Javaskript sourci var apskatīt un izlasīt to paroli, ko tu prasi Quote Link to comment Share on other sites More sharing options...
indoom Posted August 10, 2009 Report Share Posted August 10, 2009 Tas un vēl zināšanai, ka JS komandas neatdala ar komatu, bet ar ; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.