NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page cPanel Login Script

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-09-2006, 08:07 AM THREAD STARTER               #1 (permalink)
Account Closed
Join Date: Oct 2005
Location: United Kingdom
Posts: 1,554
NetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really nice
 



cPanel Login Script


This is my first script that i have made so please correct me if its wrong.

Script:
* cPanel Login
* File Manager Login
* Awstats Login
* Database Login
* Fantastico Login

Use: if you own a lot of sites and dont remember all of them this is a great script for you.

Preview: Ill put one up in a bit.

Now then:

Step one

Open notepad and enter the following:

PHP Code:
<?php
????: NamePros.com http://www.namepros.com/code/225857-cpanel-login-script.html

//Domain name
$domain='domain.com';  // Only put domain.[extention] 

?>
Change domain.com to your domain name, do not put http, www., or /

Step 2

HTML Code:
<html>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>


<table border="0" width="90%">
<tr>
 <td width="18%" align="center">
      <p align="center"><font face="Trebuchet MS">cPanel Domain</font></td>
    <td width="18%" align="center">
      <p align="center"><font face="Trebuchet MS">cPanel Login</font></td>
    <td width="18%" align="center"><font face="Trebuchet MS">File Manager</font></td>
    <td width="18%" align="center"><font face="Trebuchet MS">Awstats</font></td>
    <td width="18%" align="center"><font face="Trebuchet MS">Database</font></td>
    <td width="18%" align="center">Fantastico</td>
  </tr>
  <tr>
    <td width="18%" align="center"><font size="2" face="Courier New, Courier, mono">http://www.<?php echo "$domain"; ?></font></td>
    <td width="18%" align="center"><input name="Login" type="button" onClick="MM_goToURL('parent','http://www.<?php echo "$domain"; ?>:2082');return document.MM_returnValue" value="Login"></td>
    <td width="18%" align="center"><a href="http://www.<?php echo "$domain"; ?>:2082/frontend/x/files/index.html"><img src="http://img207.imageshack.us/img207/2361/filemanur6.gif" width="32" height="32" border="0"></a></td>
    <td width="18%" align="center"><a href="http://www.<?php echo "$domain"; ?>::2082/frontend/x/stats/index.html"><img src="http://img207.imageshack.us/img207/6189/webftpstatsyj5.gif" width="32" height="32" border="0"></a></td>
    <td width="18%" align="center"><a href="http://www.<?php echo "$domain"; ?>::2082/frontend/x/sql/index.html"><img src="http://img207.imageshack.us/img207/1097/mysqlvf2.gif" border="0"></a></td>
    <td width="18%" align="center"><a href="http://www.<?php echo "$domain"; ?>::2082/frontend/x/fantastico/index.html"><img src="http://img207.imageshack.us/img207/3862/fantastico2ft8.gif" width="37" height="37" border="0"></a></td>
  </tr>
</table>

</html>
Thats it finsih save it as cpanel.php or any thing and your done my first script, please give me some feedback on the script.
NetworkTown.Net is offline  
Old 08-09-2006, 08:34 AM   #2 (permalink)
NamePros Member
 
CreedFeed's Avatar
Join Date: Apr 2006
Posts: 186
CreedFeed is on a distinguished road
 



Wouldn't it simply be easier to remember domain.com:2082 or even domain.com/cpanel (most hosts use that alias) than domain.com/cpanel.php ?
CreedFeed is offline  
Old 08-09-2006, 10:46 AM THREAD STARTER               #3 (permalink)
Account Closed
Join Date: Oct 2005
Location: United Kingdom
Posts: 1,554
NetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really niceNetworkTown.Net is just really nice
 



As i said you can use any thing but this script is just so you can access cpanel features quickly.
NetworkTown.Net is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:16 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger