| |||||||
| 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. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Account Closed | 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: 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> my first script, please give me some feedback on the script. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |