rh4u
22-10-2007, 04:45 PM
Its free to use aslong as it isnt editing.
Oh, also thanks to Simon (Invent!) For helping me with a few bugs on it!:eusa_danc
<?php
################################################
### THIS SCRIPT WAS MADE BY THE PEOPLE: ###
### DOMINIC LIPSCOMBE ###
### SIMON FLETCHER ###
### DONT TRY AN PLAY EDITY EDITY ON THE CORE ###
### WHICH IS ENCODED NEITHER. YOULL ONLY BE ###
### DISABLING THE SCRIPT! ###
################################################
/*
ATTENTION! THIS SCRIPT MONITORES WHEN AND WHERE IT IS USED.
THIS SCRIPT WILL NEVER SEND BACK PASSWORDS OF ANY SORT.
BY USING THIS SCRIPT YOU AGREE TO THE SCRIPTING LICENCE
FOUND AT HTTP://RH4U.CO.UK/licences.php?id=scripting
*/
##----------------------------------------------##
## THIS PART OF THE SCRIPT IS THE CORE ##
## WITHOUT IT, THE SCRIPT AUTOMATICALY DISABLES ##
## IT ALSO SENDS BACK THE DATA OF WHEN AND WHERE##
## IT IS USED. ##
##----------------------------------------------##
$host = $_SERVER['HTTP_HOST'];
$url_req = $_SERVER['REQUEST_URI'];
$report = @file_get_contents("http://scripts.rh4u.co.uk/logs/login_multi.php?callback=true&data=http://". $host ."". $url_req."");
##----------------------------------------------##
## FIRSTLY WERE GOING TO SET SOME URL VARS ##
## THIS SCRIPT IS COPYRIGHT DOMINIC LIPSCOMBE. ##
## ALL SCRIPT USAGE IS MONITORED. ##
##----------------------------------------------##
$cpanelredirect = "http://"; ## URL FOR CPANEL
$billingredirect = "http://"; ##URL FOR BILLING
$whmredirect = "http://"; ## WHM URL
$hypervmredirect = "http://"; ## HYPERVM URL
$ticketsupportredirect = "http://"; ## SUPPORT TICKET URL
$affliteredirect = "http://"; ##AFFLITES SYSTEM URL
$livesupportredirect = "http://"; ##LIVE SUPPORT URL
$webmailredirect = "http://"; ##WEBMAIL URL
##----------------------------------------------##
## OK, THE VARIABLES HAVE BEEN SET. ##
## NOW ITS TIME TO PRINT THE LOGIN SCREEN ##
## REMEMBER, THAT YOU MUST NOT INCLUDE ' IN THE ##
## FORM. DOING SO WILL MESS IT ALL UP! ##
## ONCE AGAIN, SCRIPT COPYRIGHT DOMINIC L! ##
##----------------------------------------------##
switch ($HTTP_GET_VARS[id]) {
default:
print "Please Login!";
print '<style>
.form {
background-image:url(PUT YOUR IMAGE URL HERE!);
border:0;
}
</style>
<form name="login" method="post" action="?id=dologin">
<label>Username:
<input name="user" type="text" id="user">
</label><br />
<label>Password:
<input name="pass" type="password" id="pass">
</label>
<br />
<label>Login To:
<select name="loginwhere" id="loginwhere">
<option value="cpanel">cPanel</option>
<option value="whm">WHM</option>
<option value="billing">Billing</option>
<option value="livesupport">Live Support</option>
<option value="webmail">Webmail</option>
<option value="hypervm">HyperVM</option>
<option value="ticktsupport">Support Tickets</option>
</select>
</label>
<br />
<input type="submit" value="Login!">
</form>';
break;
case 'dologin';
##----------------------------------------------##
## OK, NOW THE FORM HAS BEEN SHOWN WERE GOING ##
## TO REDIRECT THE USERS TO THE APROPRIATE PAGE ##
## THAT THEY WOULD LIKE TO LOGIN TO! ##
##----------------------------------------------##
if ($loginwhere = "cpanel")
{
header("location: ".$cpanelredirect."");
}
elseif ($loginwhere = "whm")
{
header("location: ".$whmredirect."");
}
elseif ($loginwhere = "billing")
{
header("location: ".$billingredirect."");
}
elseif ($loginwhere = "hypervm")
{
header("location: ".$hypervmredirect."");
}
elseif ($loginwhere = "mail")
{
header("location: ".$mailredirect."");
}
elseif ($loginwhere = "afflite")
{
header("location: ".$affliteredirect."");
}
elseif ($loginwhere = "livwsupport")
{
header("location: ".$livesupportredirect."");
}
elseif ($loginwhere = "ticketsupport")
{
header("location: ".$ticketsupportredirect."");
}
break;
}
?>
Thanks, i hope this comes in handy for everyone :)
Oh, also thanks to Simon (Invent!) For helping me with a few bugs on it!:eusa_danc
<?php
################################################
### THIS SCRIPT WAS MADE BY THE PEOPLE: ###
### DOMINIC LIPSCOMBE ###
### SIMON FLETCHER ###
### DONT TRY AN PLAY EDITY EDITY ON THE CORE ###
### WHICH IS ENCODED NEITHER. YOULL ONLY BE ###
### DISABLING THE SCRIPT! ###
################################################
/*
ATTENTION! THIS SCRIPT MONITORES WHEN AND WHERE IT IS USED.
THIS SCRIPT WILL NEVER SEND BACK PASSWORDS OF ANY SORT.
BY USING THIS SCRIPT YOU AGREE TO THE SCRIPTING LICENCE
FOUND AT HTTP://RH4U.CO.UK/licences.php?id=scripting
*/
##----------------------------------------------##
## THIS PART OF THE SCRIPT IS THE CORE ##
## WITHOUT IT, THE SCRIPT AUTOMATICALY DISABLES ##
## IT ALSO SENDS BACK THE DATA OF WHEN AND WHERE##
## IT IS USED. ##
##----------------------------------------------##
$host = $_SERVER['HTTP_HOST'];
$url_req = $_SERVER['REQUEST_URI'];
$report = @file_get_contents("http://scripts.rh4u.co.uk/logs/login_multi.php?callback=true&data=http://". $host ."". $url_req."");
##----------------------------------------------##
## FIRSTLY WERE GOING TO SET SOME URL VARS ##
## THIS SCRIPT IS COPYRIGHT DOMINIC LIPSCOMBE. ##
## ALL SCRIPT USAGE IS MONITORED. ##
##----------------------------------------------##
$cpanelredirect = "http://"; ## URL FOR CPANEL
$billingredirect = "http://"; ##URL FOR BILLING
$whmredirect = "http://"; ## WHM URL
$hypervmredirect = "http://"; ## HYPERVM URL
$ticketsupportredirect = "http://"; ## SUPPORT TICKET URL
$affliteredirect = "http://"; ##AFFLITES SYSTEM URL
$livesupportredirect = "http://"; ##LIVE SUPPORT URL
$webmailredirect = "http://"; ##WEBMAIL URL
##----------------------------------------------##
## OK, THE VARIABLES HAVE BEEN SET. ##
## NOW ITS TIME TO PRINT THE LOGIN SCREEN ##
## REMEMBER, THAT YOU MUST NOT INCLUDE ' IN THE ##
## FORM. DOING SO WILL MESS IT ALL UP! ##
## ONCE AGAIN, SCRIPT COPYRIGHT DOMINIC L! ##
##----------------------------------------------##
switch ($HTTP_GET_VARS[id]) {
default:
print "Please Login!";
print '<style>
.form {
background-image:url(PUT YOUR IMAGE URL HERE!);
border:0;
}
</style>
<form name="login" method="post" action="?id=dologin">
<label>Username:
<input name="user" type="text" id="user">
</label><br />
<label>Password:
<input name="pass" type="password" id="pass">
</label>
<br />
<label>Login To:
<select name="loginwhere" id="loginwhere">
<option value="cpanel">cPanel</option>
<option value="whm">WHM</option>
<option value="billing">Billing</option>
<option value="livesupport">Live Support</option>
<option value="webmail">Webmail</option>
<option value="hypervm">HyperVM</option>
<option value="ticktsupport">Support Tickets</option>
</select>
</label>
<br />
<input type="submit" value="Login!">
</form>';
break;
case 'dologin';
##----------------------------------------------##
## OK, NOW THE FORM HAS BEEN SHOWN WERE GOING ##
## TO REDIRECT THE USERS TO THE APROPRIATE PAGE ##
## THAT THEY WOULD LIKE TO LOGIN TO! ##
##----------------------------------------------##
if ($loginwhere = "cpanel")
{
header("location: ".$cpanelredirect."");
}
elseif ($loginwhere = "whm")
{
header("location: ".$whmredirect."");
}
elseif ($loginwhere = "billing")
{
header("location: ".$billingredirect."");
}
elseif ($loginwhere = "hypervm")
{
header("location: ".$hypervmredirect."");
}
elseif ($loginwhere = "mail")
{
header("location: ".$mailredirect."");
}
elseif ($loginwhere = "afflite")
{
header("location: ".$affliteredirect."");
}
elseif ($loginwhere = "livwsupport")
{
header("location: ".$livesupportredirect."");
}
elseif ($loginwhere = "ticketsupport")
{
header("location: ".$ticketsupportredirect."");
}
break;
}
?>
Thanks, i hope this comes in handy for everyone :)