NBS Posted March 11, 2011 Report Share Posted March 11, 2011 Sveiki, vēlējos uzzināt kā, lai paslēpj php failus, kas ar jquery post tiek nosūtīti ? Quote Link to comment Share on other sites More sharing options...
marcis Posted March 11, 2011 Report Share Posted March 11, 2011 ko? Quote Link to comment Share on other sites More sharing options...
NBS Posted March 11, 2011 Author Report Share Posted March 11, 2011 Man ir šāds kods: <html> <script type="text/javascript" src="jquery-1.5.1.js"></script> <script type="text/javascript"> $.post('max.php', { userid : '<?php echo $row[0]; ?>'} , function(x) { var max_r = x; $("#1").html(parseInt(max_r)); $("#2").html(parseInt(max_r)); $("#3").html(parseInt(max_r)); $("#4").html(parseInt(max_r)); $("#5").html(parseInt(max_r)); }); </script> </html> Kā var paslēpt šo "max.php" failu, lai view source to neredzētu ? Quote Link to comment Share on other sites More sharing options...
e-remit Posted March 11, 2011 Report Share Posted March 11, 2011 nu var jau to js sapakot ar http://dean.edwards.name/packer/ , lai neredz, bet ar piepūli ieraudzīt to tomēr izdosies. Vnk. nodrošini, lai uz to max.php nevar padot datus pa tiešo, piemēram, katru reizi padodot kādu papildus parametru pārbaudei, Quote Link to comment Share on other sites More sharing options...
codez Posted March 11, 2011 Report Share Posted March 11, 2011 izmanto autorizāciju ar sesijām, nebūs nekas jāslēpj, jo paslēpt nav iespējams. Pārbaudīsi max.php failā, vai attiecīgajam lietotājam ir tiesības izpildīt tālāko kodu. Quote Link to comment Share on other sites More sharing options...
NBS Posted March 11, 2011 Author Report Share Posted March 11, 2011 O, laba liela. Tieši tas, kas man vajadzīgs. 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.