Results 1 to 6 of 6

Thread: cplogin.php

  1. #1
    Join Date
    Jul 2005
    Location
    Tennessee
    Posts
    324

    cplogin.php

    Can anyone help me modify this so it will take a customer to their own cpanel? I REALLY appreciate it!

    <?php

    # domain or ip (no http://)
    $domain = $_POST['domain'];

    if(!$_POST['login']) exit;

    $user = $_POST['user'];
    $pass = $_POST['pass'];
    $port = $_POST['port'];

    $port == '2083' || $port == '2096' ? $pre = 'https://' : $pre = 'http://';
    $port == '2095' || $port == '2096' && !eregi('@', $user) ? $user = $user.'@'.$domain : $user = $user;

    ?>

    I really suck at php. I did not write this, but want to modify it to work on my site.

  2. #2
    Join Date
    May 2002
    Location
    Moscow
    Posts
    1,490
    if you try use cplogin.php script, you don;t need change anything here. instead you should change html forms which used for sending data to this script.
    Rustelekom LLC Dedicated server since 2002, RIPE NCC member, LIR, AS51168

  3. #3
    Join Date
    Jul 2005
    Location
    Tennessee
    Posts
    324
    When it redirects after login, it gives a blank screen with the title logging in. That is the trouble I am running into.

  4. #4
    Join Date
    Apr 2004
    Location
    Australia
    Posts
    419
    Id suggest not posting the same topic twice within the same day... Check cpanel.net or there is a script in cpanel itself that you can template to do this.

  5. #5
    Join Date
    Jul 2005
    Location
    Tennessee
    Posts
    324
    Wow, I was not aware I double posted until I just looked at the thread list. Sorry about that. Was definitely not intentional.

  6. #6
    Join Date
    Jul 2005
    Location
    Tennessee
    Posts
    324
    I do not see the script in my cpanel. When I use the script given by cpanel, it goes no where when I enter the cpanel info on my site. I am getting quite frustrated and I bet it is a very simple problem I am overlooking.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •