[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming > CODE

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.


Closed Thread
 
LinkBack Thread Tools
Old 08-09-2006, 07:07 AM   #1 (permalink)
Account Closed
 
Join Date: Oct 2005
Location: United Kingdom
Posts: 1,554
55.39 NP$ (Donate)

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

//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, 07:34 AM   #2 (permalink)
NamePros Member
 
CreedFeed's Avatar
 
Join Date: Apr 2006
Posts: 186
195.95 NP$ (Donate)

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, 09:46 AM   #3 (permalink)
Account Closed
 
Join Date: Oct 2005
Location: United Kingdom
Posts: 1,554
55.39 NP$ (Donate)

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 01:00 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85