Jump to content
php.lv forumi

parole


gangstadog
 Share

Recommended Posts

Sveiki varbut kadam ir html scripts ar kuru varetu kadai savai lapai ulikt paroli jeb ari kad uzspiez uz pogas download uzprasitu paroli?

 

Mna ir šāds bet tas tikai iet uz firefox bet es gribu lai vins ietu uz visiem uz operas man neprasa

 

<script language="JavaScript">

if (top.location.search=="") {

pass = prompt('Ievadiet paroli');

if (pass=='ORG21382')//ar šādu pasw varēs tikai iejiet

{ alert('Parole pareiza') } else { alert('Nepareiza parole! Mēģiniet atkal!'), top.location.href="/index/0-18"}};

</script>

Edited by gangstadog
Link to comment
Share on other sites

paroli servera pusē turi un pārbaudi.

javascriptā ierakstītai parolei nav jēga. šitais neiet, jo trūkst semikoli un 1 komats pa daudz.

 

amm a varbūtās kādam ir kods html tā lai viņš ietu uz visiem brouzeriem? Un tikai ar vienu pasw varētu iejiet manis izvēlēto?

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...
 Share

×
×
  • Create New...