![]() | |
| ||||
| Geçenlerde bir arkadaşımın isteği üzerine hazırlamıştım. Çevrede ihtiyaç duyan kişiler olabileceğinden yayınlamak istedim. Kod: <?php
#cPanel
$protocol = 'http';
$port = 2082;
#Secure cPanel
#$protocol = 'https';
#$port = 2083;
?>
<style type="text/css">
<!--
.style1 {
color: #FF9900;
font-size: 16px;
}
.style3 {color: #FF9900; font-weight: bold; }
-->
</style>
<h2 class="style1">Kontrol Paneli Giriş </h2>
<?php
if ($_GET['failed'] == "1") {
?>
<div style="color: red; font-size: x-small;">giriş başarısız</div>
<pre><?php
}
print "<form action=\"" . $protocol . "://" . $_SERVER['HTTP_HOST'] . ":" . $port . "/login/\"
method=POST>";
?> <span class="style3">Kullanıcı adı:</span> <input type=text name=user>
<span class="style3"> Şifre :</span><strong> <input type=password name=pass /> </strong>
<?php
print "<input type=hidden name=failurl value=\"http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "?failed=1\">";
?> <input type=submit value=giriş>
</pre>
</form>
__________________ 46 and 2 just ahead of me Konu Empyrium tarafından (06-05-2007 Saat 21:18:38 ) değiştirilmiştir.. |
| ||||
| curl kütüphanesiyle cpanel oturum açmak Kod: $u="cPanel Kullanıcı Adı"; $p="cPanel Şifre"; $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_UNRESTRICTED_AUTH, 1); curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); curl_setopt($ch, CURLOPT_URL, "http://www.siteadresi.com:2082/frontend/x/mail/addpop2.html"); // Adrese dikkat curl_setopt($ch, CURLOPT_USERPWD,$u.":".$p); curl_setopt($ch, CURLOPT_COOKIEJAR, "my_cookies.txt"); curl_setopt($ch, CURLOPT_COOKIEFILE, "my_cookies.txt"); $data = curl_exec($ch); |
![]() |
| Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir) | |
| Seçenekler | |
| Stil | |
| |
Benzer Konular | ||||
| Konu | Konuyu Başlatan | Forum | Cevaplar | Son Mesaj |
| giriş yapılmıyor | AycanB | Vbulletin | 2 | 06-07-2007 19:25:05 |
| ASP'ye giriş | Onur | Asp & Asp.net | 4 | 03-02-2007 13:45:45 |
| Html'ye Giriş | Editör | HTML CSS DHTML | 1 | 01-01-2007 23:44:05 |
| PHP' ye giriş. | Editör | PHP | 0 | 31-12-2006 21:51:41 |