muRker Posted March 1, 2007 Share Posted March 1, 2007 Ok well i currently have 2 tc admin accounts and don't want to get a remote as I already have quite a few servers on both so don't really want to install it all to a new tc admin or whatever. Anyways basically I need something with 2 text boxes 1 saying username 1 saying password. A list box saying something like ' tc admin #1' and 'tc admin #2'. And then a login button. So that when tc admin#1 is selected it will use the login info to login to tc admin#1 hope you get what I mean. It doesn't have to be fancy or anything as I already have the css I want to use with it. Just need the code. If you can help please conctact me ASAP admin[at]scattyhosting.com Link to comment Share on other sites More sharing options...
ECF Posted March 1, 2007 Share Posted March 1, 2007 Have you looked at the code example here? http://esupport.tcadmin.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=14&nav=0,3 It is not dual boxes, but you may be able to hack togather something from it. Link to comment Share on other sites More sharing options...
muRker Posted March 1, 2007 Author Share Posted March 1, 2007 Yea I've seen that already i've had a few tries but no luck. I'm guessing it will need to be coded in php maybe, and im no good with php. Link to comment Share on other sites More sharing options...
Travis Bickle Posted March 2, 2007 Share Posted March 2, 2007 I just messed around and it worked fine for me, I don't have 2 seperate tcadmin logins but I do have a gamepanel which I used, brings you back to a login page but it's simple and works. You can use html to center and change colors. Here you go, just make sure to change the url's to point to your tcadmin's login.aspxnew.txt Link to comment Share on other sites More sharing options...
studeggle Posted March 2, 2007 Share Posted March 2, 2007 Travis he was looking for a single form. I whipped this up in a couple seconds for him, I'll share incase others have simular needs. <script type="text/javascript" language="JavaScript"> function ActionDeterminator() { if(document.myform.site[0].checked == true) { document.myform.action = 'http://site1.com/Templates/Default/login.aspx'; } if(document.myform.site[1].checked == true) { document.myform.action = 'http://site2.com/Templates/Default/login.aspx'; } return true; } // --> </script> <form name="myform" method="post" action="http://site1.com/Templates/Default/login.aspx"> Control Panel:<br> <input type="radio" name="site">http://site1.com/Templates/Default/login.aspx<br> <input type="radio" name="site">http://site2.com/Templates/Default/login.aspx<br> User: <input type="text" name="USERID" size="22"><br> Password: <input type="password" name="PASSWORD"size="22"><br> <input type="submit" value="Login" onClick="return ActionDeterminator();"><input type="reset" value="Reset"> </form> No its not made to look pretty, visual aesthetics is the site owners job. I just did functionality Link to comment Share on other sites More sharing options...
swish Posted March 2, 2007 Share Posted March 2, 2007 Only problem I was thinking about is like for MY billing software it requires a dirrent value for password and everything to have it passed. Link to comment Share on other sites More sharing options...
studeggle Posted March 2, 2007 Share Posted March 2, 2007 Its still doable you'd just have to write a javascript with more options, or move to php code Link to comment Share on other sites More sharing options...
swish Posted March 3, 2007 Share Posted March 3, 2007 Correct. I really have no "need" for it but it could be a nice feature. Ill consider writing something later on if I get time. Link to comment Share on other sites More sharing options...
dfrance0506 Posted March 5, 2007 Share Posted March 5, 2007 Just to add to what studeggle has already done, i have added a drop down list rather than radio buttons just incase some people would like a list rather than buttons. <script type="text/javascript" language="JavaScript"> function ActionDeterminator() { if(document.myform.site[0].selected == true) { document.myform.action = 'http://site1.com/Templates/Default/login.aspx'; } if(document.myform.site[1].selected == true) { document.myform.action = 'http://site2.com/Templates/Default/login.aspx'; } return true; } // --> </script> <form name="myform" method="post" action=""> <p>Control Panel: <br> User: <input type="text" name="USERID" size="22"> <br> Password: <input type="password" name="PASSWORD"size="22"> <br /> Server: <select name="site" id="site"> <option value="0">Server 1</option> <option value="1">Server 2</option> </select> <br> <input type="submit" value="Login" onClick="return ActionDeterminator();"> <input type="reset" value="Reset"> </p> </form> Link to comment Share on other sites More sharing options...
jacob8919 Posted October 24, 2007 Share Posted October 24, 2007 bump on this, id also like to know how to make it so its different logins EX: tcadmin - user: name="USERID" pass: name="PASSWORD" EX: clientexec - user: name="email" pass: name="passed_password" so how do you switch between the two?? Link to comment Share on other sites More sharing options...
Todd Holley Posted March 15, 2009 Share Posted March 15, 2009 Bringing back an OLD thread Would anyone be willing to share a working php script / java script that does this job for ce/tca Link to comment Share on other sites More sharing options...
swish Posted March 15, 2009 Share Posted March 15, 2009 lol todd...message me... Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted March 16, 2009 Share Posted March 16, 2009 Here you guys go as promised, if you need help installing it just send a email via admin@an-servers.com I am currently using it on my site. http://www.an-servers.com/ Here is the file This login works for whmcs/tcadmin if you want it to work with other stuff message me Link to comment Share on other sites More sharing options...
jcroom Posted March 16, 2009 Share Posted March 16, 2009 Nice work! Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted March 19, 2009 Share Posted March 19, 2009 Does any one want me to make another version to work with ce? Link to comment Share on other sites More sharing options...
jcroom Posted March 19, 2009 Share Posted March 19, 2009 I'd take one Link to comment Share on other sites More sharing options...
ECF Posted March 19, 2009 Share Posted March 19, 2009 Nice work. Thanks for sharing AN. Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted March 19, 2009 Share Posted March 19, 2009 Here you guys go(Hey if it works say it works |if it does not email me or post it here) TEST LINK ON MY SITE THE FILEs if you need help making the form, post it here. I can make a form to fit your site. By: Admin-Nation-Servers If you guys need small scripts ask me here, if you need something big email me. Link to comment Share on other sites More sharing options...
jcroom Posted March 19, 2009 Share Posted March 19, 2009 Nice work Link to comment Share on other sites More sharing options...
GS-Liam Posted March 26, 2009 Share Posted March 26, 2009 Could you please email me the muti login for whmcs and tcadmin please, as your download links arn't working Liam@Gaming-Solutions.com Cheers Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted March 29, 2009 Share Posted March 29, 2009 I sent it, sorry for late response ive been messing around with the new web-host. Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted March 29, 2009 Share Posted March 29, 2009 I have created a login script for, Cpanel + Whmcs + Tcadmin Send me a email if you want it =) Link to comment Share on other sites More sharing options...
GS-Liam Posted April 10, 2009 Share Posted April 10, 2009 Just to inform you all login script doesn't work on ie, admin-nation-servers is trying to fix the problem and hopefully we get a update :-) Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted April 10, 2009 Share Posted April 10, 2009 <form name="myform" method="post" action=""> <label for="username"><span class="login-bos">Username</span>:</label> <input name="username" type="text" id="username" size="20" /> <strong><em> <label for="password">Password:</label> <input name="password" type="password" id="password" size="20" /> <select name="site" class="submitbuttonBlack3" id="site"> <option value="0">Game-Server</option> <option value="1">Voice-Server</option> <option value="2">Billing-Control</option> </select> <input type="submit" value="Login" onClick="return ActionDeterminator();"> <script type="text/javascript"> function ActionDeterminator() { if(document.myform.site[0].selected == true) { document.myform.action = 'connect.php?login=Login'; } else if(document.myform.site[1].selected == true) { document.myform.action = 'connect.php?login=Login'; } else if(document.myform.site[2].selected == true) { document.myform.action = 'whmcs/dologin.php?goto=clientarea'; } return true; } </script></form> <?php $error = $_GET['error']; if($error == "1"){echo '<font color="red">', "The username and password combination was incorrect", '</font>';} ?> Please tell me if this works, liam email me if this does not work with your login. Link to comment Share on other sites More sharing options...
GS-Liam Posted April 10, 2009 Share Posted April 10, 2009 Works wonders <form name="myform" method="post" action=""> <p> <label for="username"><span class="login-bos">Username</span>:</label> <input name="username" type="text" id="username" size="20" /><Br /> <label for="password">Password:</label> <input name="password" type="password" id="password" size="20" /><br /> <select name="site" class="submitbuttonBlack3" id="site"> <option value="0">Game Server Control Panel</option> <option value="1">Voice Server Control Panel</option> <option value="2">Billing System</option> <option value="3">Web Control Panel</option> </select> <input type="submit" value="Login" onClick="return ActionDeterminator();"> <script type="text/javascript"> function ActionDeterminator() { if(document.myform.site[0].selected == true) { document.myform.action = 'connect.php?login=Login'; } else if(document.myform.site[1].selected == true) { document.myform.action = 'connect.php?login=Login'; } else if(document.myform.site[2].selected == true) { document.myform.action = 'billing/dologin.php?goto=clientarea'; } else if(document.myform.site[3].selected == true) { document.myform.action = 'connect.php?login=Login'; } return true; } </script> </p> </form> <?php $error = $_GET['error']; if($error == "1"){echo '<font color="red">', "The username and password combination was incorrect", '</font>';} ?> That is the form with the webhosting control panel link included :-) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.