Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Logowanie do cPanel'a
Flaku
post
Post #1





Grupa: Zarejestrowani
Postów: 53
Pomógł: 0
Dołączył: 2.10.2005
Skąd: Częstochowa

Ostrzeżenie: (0%)
-----


Witam

Kombinowalem na rozne sposoby pytalem sie roznych osob jak mozna zrobic logowanie ze strony www do cpanela. Mianowicie podaje login i haslo na www naciskam zaloguj i otwiera sie nowa strona z cpanelem i jestem juz zalogowany. Moze robil to juz ktos kiedys i mogl by mi powiedziec smile.gif Dziekuje z gory.

Pozdrawiam
Łukasz
Go to the top of the page
+Quote Post
boxian
post
Post #2





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 4.10.2005

Ostrzeżenie: (0%)
-----


Wydaje mi sie ze jezeli podajesz dobra domenke np.

xxx.pl i haslo do niej i pass

i nie loguje Cie do wlasciwego panelu wiec musiales podac zły pass lub log lub obydwie wartosci...

jezeli dobrze zrozumiałem smile.gif

pozdraiwam
Go to the top of the page
+Quote Post
Flaku
post
Post #3





Grupa: Zarejestrowani
Postów: 53
Pomógł: 0
Dołączył: 2.10.2005
Skąd: Częstochowa

Ostrzeżenie: (0%)
-----


haha :Ddd

nie ;>

chodzilo mi o to ze jest formularz logowania na mojej domowej stronie a nie ze trzeba wejsc na linka ( http://twoja_domena.pl/cpanel/ ) i dopiero sie logowac.

Pozdrawiam
Łukasz
Go to the top of the page
+Quote Post
Sabistik
post
Post #4


Administrator wortalu


Grupa: Przyjaciele php.pl
Postów: 960
Pomógł: 39
Dołączył: 21.10.2003
Skąd: Kraków

Ostrzeżenie: (0%)
-----


  1. <form action="http://twoja_domena.pl/cpanel/login/index.php" method="POST">
  2. Username:
  3. <input type="text" name="user" size="16">
  4. Password<input type="password" name="pass" size="16">
  5. <input type="submit" value="Login">
  6. </form>


Ten post edytował Sabistik 22.10.2005, 08:51:47
Go to the top of the page
+Quote Post
Flaku
post
Post #5





Grupa: Zarejestrowani
Postów: 53
Pomógł: 0
Dołączył: 2.10.2005
Skąd: Częstochowa

Ostrzeżenie: (0%)
-----


wlasnie o to mi chodzilo biggrin.gif tylko ze nie wiedzialem ze to wlasnie taki link trzeba podac smile.gif jeszcze raz dzieki wielkie :* winksmiley.jpg
Go to the top of the page
+Quote Post
M45t3r
post
Post #6





Grupa: Zarejestrowani
Postów: 133
Pomógł: 0
Dołączył: 16.05.2005
Skąd: Lubaczów

Ostrzeżenie: (0%)
-----


do tego port :2082 ew :2083 na ssl ...


--------------------
Nie chce pieniedzy, diamentow, tulipanow i fasoli!
Go to the top of the page
+Quote Post
gkeb
post
Post #7





Grupa: Zarejestrowani
Postów: 46
Pomógł: 0
Dołączył: 6.03.2004

Ostrzeżenie: (0%)
-----


A wystarczy wejsc na strone cPanel (www.cpanel.com) i mamy gotowe rozwiazanie:
  1. <?php
  2. #Login Configuration
  3.  
  4. #cPanel
  5. $protocol = 'http';
  6. $port = 2082;
  7.  
  8. #Secure cPanel
  9. #$protocol = 'https';
  10. #$port = 2083;
  11.  
  12. #WHM
  13. #$protocol = 'http';
  14. #$port = 2086;
  15.  
  16. #Secure WHM
  17. #$protocol = 'https';
  18. #$port = 2087;
  19.  
  20. #Webmail
  21. #$protocol = 'http';
  22. #$port = 2095;
  23.  
  24. #Secure Webmail
  25. #$protocol = 'https';
  26. #$port = 2096;
  27. ?>
  28.  
  29. <html>
  30. <h1>[Web Hosting Company Name Here]</h1>
  31.  
  32. <b>cPanel Login</b><br>
  33.  
  34. <?php
  35. if ($_GET['failed'] == "1") {
  36. ?>
  37. <font color=#FF0000>Your login attempt failed!</font>
  38. <?php
  39. }
  40. print "<form action="" . $protocol . "://" . $_SERVER['HTTP_HOST'] . ":" . $port . "/login/" 
  41. method=POST>";
  42. ?>
  43. User: <input type=text name=user><br>
  44. Pass: <input type=password name=pass><br>
  45. <?php
  46. print "<input type=hidden name=failurl value="http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "?failed=1">";
  47. ?>
  48. <input type=submit value=Login>
  49. </form><br>
  50. <a href="cpanel-login.phps">Source</a><br>
  51. Note: This examples requires cPanel 9.4.1 or later!
  52. </html>

i na dodatek bezposrednio od producenta aaevil.gif
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 14:17