şunu buldum daha güzel gibi : &lt;?php / Config Section / $pass = '123456'; // Sifreyi buraya giriniz... $cookiename = 'sascookie'; // Optional change: Cookie'ye isim veriniz. Basta geçerli olan sascookie dir. $expirytime = time +3600; // Optional change: Sifrenin geçerli oldugu süre &quot;saniye olarak&quot;. Basta geçerli olan 1 saatdir. $msg = 'Sifre Yanlis.'; // Optional change: parola yanlis mesajidir. basta geçerli olan &quot;Sifre Yanlis&quot;dir. / End Config / / Logout Stuff - Sept 5, 2005 / if (isset { setcookie($cookiename,'', time - 3600); // remove cookie/password if (substr($_SERVER ,-12) '?logout=true') show_login_page ; exit ; } $logout_button='&lt;form action=&quot;'.$_SERVER .'&quot; method=&quot;post&quot;&gt;&lt;input type=&quot;submit&quot; name=&quot;logout&quot; value=&quot;Logout&quot; /&gt;&lt;/form&gt;'; $logout_text='&lt;a href=&quot;'.$_SERVER .'?logout=true&quot;&gt;Logout&lt;/a&gt;'; / End Logout Stuff / / FUNCTIONS / $encrypt_pass=md5 ; // encrypt password function setmycookie function show_login_page { ?&gt; &lt;! DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www. w3. org/TR/xhtml1/DTD/xhtml1-transitional. dtd&quot;&gt; &lt;html xmlns=&quot;http://www. w3. org/1999/xhtml&quot;&gt; &lt;head&gt; &lt;title&gt;Admin Girişi&lt;/title&gt; &lt;style type=&quot;text/css&quot;&gt; &lt;!-- . error body #wrapper #main #header #mid #footer input --&gt; &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id=&quot;wrapper&quot;&gt; &lt;div id=&quot;header&quot;&gt;Admin Girişi&lt;/div&gt; &lt;div id=&quot;main&quot;&gt; &lt;div id=&quot;mid&quot;&gt; &lt;form action=&quot;&quot; method=&quot;POST&quot;&gt; Şifre: &lt;input type=&quot;password&quot; name=&quot;password&quot; size=&quot;20&quot;&gt; &lt;input type=&quot;submit&quot; value=&quot;Giriş&quot;&gt; &lt;input type=&quot;hidden&quot; name=&quot;sub&quot; value=&quot;sub&quot;&gt; &lt;/form&gt; &lt;div class=error&gt;&lt;?=$msg?&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; &lt;? } / END FUNCTIONS / $errormsg=''; if (isset { // if form has been submitted $submitted_pass=md5 ; // encrypt submitted password if else } else { if (isset { // if cookie isset if else } else } ?&gt;

arkadaşlar çok acil admin paneli girişi için kod lazım. php olacak aşağıdakini kullandım fakat bi takım hatalar verdi. PHP:

sanki üsttekini hatırlıom