Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's v7.0 Customized Distro
Author Message
CyBeRNiNja
New Member
New Member



Joined: Jan 23, 2004
Posts: 2

PostPosted: Wed Dec 22, 2004 6:08 am Reply with quote

Hi,

On you're site i see on the left the module
cPanel For RWH Clients
Are thes in the downloads and could i chage it to another panel i use for my inlog DirectAdmin.
When is the release of the new hosting mudule.

CyBeRNiNja
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Jan 01, 2005 9:17 pm Reply with quote

It is comprised of 2 scripts. The first is cplogin.php and should be placed in your root nuke directory. Change the $domain to your domain.
Code:
<html>

<?php

   #your domain or ip
   $domain = "127.0.0.1";

   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;

?>
<body onLoad="setTimeout('document.forms[0].submit();',10)">
<form action="<?php echo "".$pre."".$domain.":".$port."/login/"; ?>" method="post">
<input type="hidden" name="user" value="<?php echo $user; ?>">
<input type="hidden" name="pass" value="<?php echo $pass; ?>">
</form>
</body>
</html>

Then, here is the block code. I named it block-cplogin.php.
Code:
<?php


/************************************************************************/
/* Viking NetWerkz Unix Web Hosting-NetWerkz Your Site                  */
/* A Viking NetWerkz PHP-NUKE Contribution                              */
/* Cpanel Login Block                                                   */
/* Enhanced  Cpanel original by  unknown                                */
/*-please email me to receive such credit                               */
/* infoatvikingnetwerkz.com                                             */
/* Copyright (c) 2002 by Philip Emilson                                 */
/* http://www.vikingnetwerkz.com                                        */
/* ===========================                                          */
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("block-cpanel.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

$content .= "<form action=\"cplogin.php\" method=\"post\" target=\"_blank\" >\n";
$content .= "<table >";
$content .= "Username:<input type=\"text\" name=\"user\"  size=\"16\" maxlength=\"25\" >\n";
$content .= "Password:<input type=\"password\" name=\"pass\"  size=\"16\" maxlength=\"25\" >\n";
$content .= "<tr><td>Login To:</td><TR><BR></TR>\n";
$content .=  "<td align=\"right\">\n";
$content .= "<select name=\"port\">\n";
$content .= "<option value=\"2082\">cPanel</option>\n";
$content .= "<option value=\"2083\">Secure cPanel</option>\n";//uncomment for secure access
$content .= "<option value=\"2095\">Webmail</option>\n";
$content .= "<option value=\"2096\">Secure Webmail</option>\n";//uncomment for secure webmail
$content .= "</select>\n";
$content .= "</td></tr>\n";
$content .= "<tr><td align=\"right\"  >\n";
$content .= "<input type=\"submit\" name=\"login\" value=\"login\" style=\"cursor:pointer\"> \n";
$content .= " </td>\n";
$content .= "</tr>\n";
$content .= "<img src=\"images/cpanel.gif\">\n";
$content .= "</table>\n";
$content .= "</form>\n";


I tweaked it a little from the original.
 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's v7.0 Customized Distro

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©