Jump to content
php.lv forumi

Parole


airbus

Recommended Posts

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 by airbus
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...