dordal Posted July 13, 2008 Share Posted July 13, 2008 In the module development kit (http://wiki.whmcs.com/Creating_Modules), there are two new functions I haven't seen before: function template_ClientArea($params) { $code = '<form action="http://'.$serverip.'/controlpanel" method="post" target="_blank"> <input type="hidden" name="user" value="'.$params["username"].'" /> <input type="hidden" name="pass" value="'.$params["password"].'" /> <input type="submit" value="Login to Control Panel" /> <input type="button" value="Login to Webmail" onClick="window.open(\'http://'.$serverip.'/webmail\')" /> </form>'; return $code; } function template_AdminLink($params) { $code = '<form action=\"http://'.$params["serverip"].'/controlpanel" method="post" target="_blank"> <input type="hidden" name="user" value="'.$params["serverusername"].'" /> <input type="hidden" name="pass" value="'.$params["serverpassword"].'" /> <input type="submit" value="Login to Control Panel" /> </form>'; return $code; } What do they do? 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted July 14, 2008 Share Posted July 14, 2008 What do they do? How is it not *completely* obvious from looking at them ? One lets your custmers access their control panel The other lets you access your control panel 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted July 14, 2008 Share Posted July 14, 2008 How is it not *completely* obvious from looking at them ? One lets your custmers access their control panel The other lets you access your control panel LOL, I couldnt have said it better myself. 0 Quote Link to comment Share on other sites More sharing options...
dordal Posted July 14, 2008 Author Share Posted July 14, 2008 heh. The part that makes it not *completely* obvious is that I put both of those functions into my module, and no links showed up anywhere. I looked all over the admin side and the client side.... nothing. Perhaps you can enlighten me as to where the links show up? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.