ansis Posted September 29, 2005 Report Share Posted September 29, 2005 Meklēju protekciju savām admin lapām. Izmēģināju visādus php sessions un cookies, bet vienmēr bija problēmas. Tad atradu saadu: <? $username = "usr"; //set username $password = "psw"; //set password //Below is where the verification takes place. Try to play around with it. if (!isset($_SERVER['PHP_AUTH_USER'])) { header('WWW-Authenticate: Basic realm="Enter user/psw!"'); header('HTTP/1.0 401 Unauthorized'); die; } else { if (($_SERVER['PHP_AUTH_USER'] !== $username) || ($_SERVER['PHP_AUTH_PW'] !== $password)) { header('WWW-Authenticate: Basic realm="Try again!"'); header('HTTP/1.0 401 Unauthorized'); die; } } ?> Viss straadaa. Mans jautaajums - cik shis ir droshi? Link to comment Share on other sites More sharing options...
SkaKri Posted October 26, 2005 Report Share Posted October 26, 2005 nekas nav droši. nekad. Link to comment Share on other sites More sharing options...
Aleksejs Posted October 26, 2005 Report Share Posted October 26, 2005 Drošība ir relatīvs jēdziens. (-; Ja tā ir lapa bez SSL, tad paroli var redzēt tīklā. Ja lapa ir ar SSL, tad paroli redzēt ir grūtāk. Droši attiecībā pret ko? (-; Link to comment Share on other sites More sharing options...
boon Posted October 26, 2005 Report Share Posted October 26, 2005 shis man likaas viselementaraakais tapeec izmantoju to prieksh phpmyadmin :) Link to comment Share on other sites More sharing options...
Paulinjsh Posted October 26, 2005 Report Share Posted October 26, 2005 phpmyadmin pašam ir iekšā autentifikācija. Priekškam 2x autentificēties :blink: Link to comment Share on other sites More sharing options...
Klez Posted October 27, 2005 Report Share Posted October 27, 2005 phpmyadmin pašam ir iekšā autentifikācija. Priekškam 2x autentificēties :blink: 25567[/snapback] nau ieksh phpMyAdmin nekaadas autentifikaacijas! NOTE: phpMyAdmin does not apply any special security methods to the MySQL database server. It is still the system administrator's job to grant permissions on the MySQL databases properly. phpMyAdmin's "Privileges" page can be used for this. Link to comment Share on other sites More sharing options...
v3rb0 Posted October 27, 2005 Report Share Posted October 27, 2005 tak tur runaa par mysql autorizaaciju phpmyadminam ir veselas 3 veidu autorizaacijas, izmanto kuru sirds veelas. Link to comment Share on other sites More sharing options...
Analgiins Posted October 27, 2005 Report Share Posted October 27, 2005 offtopic: nav taada vaarda autorizaacija :) Link to comment Share on other sites More sharing options...
Recommended Posts