PDA

View Full Version : MULTIPLE LOGIN SCRIPT ## GREAT FOR WEBHOSTS!



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 :)

RedCrisps
22-10-2007, 04:50 PM
i don't think you will find that script willl be to popular ;]

rh4u
22-10-2007, 04:53 PM
yeah but its better than having links to login to about 20 different things, when u can have 1 login script to do all the dirty work for you :)

lolwut
22-10-2007, 04:53 PM
Script editing isn't monitored... You've just made this script send the URL to it on their server?
Oh and it doesn't check what they're password is, you could login with anything and it'd work?

rh4u
22-10-2007, 04:54 PM
no, you actully need that certain panel to be installed, otherwise, admittedly its useless.

RedCrisps
22-10-2007, 04:55 PM
i wouldn't use it, as it might malfuction and you might get the passwords :o

rh4u
22-10-2007, 04:55 PM
if you want you can remove the send back function, just aslong as you dont post it about.

Puma
22-10-2007, 05:02 PM
nice script =)

rh4u
22-10-2007, 05:05 PM
Thankyou. :)

Abit offtopic, why does most questions etc turn out to start getting flamed? Iv noticed that with this forum imparticular

MrCraig
22-10-2007, 07:11 PM
Its a useless username/password form (that wont do anything and just look pretty)
set up to something that sends urls to your server (for some reason)

and then, the only semi-useful feature, it gives a link to a page where you can actually log in and get somewhere..

Hm. I really dont see the point tbh.

Dentafrice,
26-10-2007, 01:17 AM
If you remove it.. it won't work?

Rofl, I just removed it.. and guess what.. it works..

Jamie.
26-10-2007, 07:48 AM
<?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. ##
##----------------------------------------------##
##----------------------------------------------##
## 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;
}
?>

Simple script that even my nan could make with her arms tied through her legs and her legs wrapped round her neck.

Want to hide these adverts? Register an account for free!