PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
CyBeRNiNja
New Member
New Member


Joined: Jan 23, 2004
Posts: 2

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

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: 14943
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum