DedicatedPros Posted July 26, 2009 Share Posted July 26, 2009 I've been fetching the domains from the whmcs db for my server reboot script but it seems to have gone crazy and just won't fetch now Here is the bit of code I kept using: $domain = $this->get_template_vars('domain'); Any suggestions? (whmcs 4.02) 0 Quote Link to comment Share on other sites More sharing options...
lysenshi Posted July 26, 2009 Share Posted July 26, 2009 What do you mean by server reboot script? if you mean a php script runs when the server rebooted then the line you gave won't work. Simply, it will work only while you access the WHMCS, because whmcs smarty who give you the access to the variable, it is being parsed before reach you. If you provide more details about your scenario, may be I can help you with the proper script. Are you trying to read all domains from database? or what? 0 Quote Link to comment Share on other sites More sharing options...
DedicatedPros Posted July 26, 2009 Author Share Posted July 26, 2009 lol the script isn't for rebooting my web server, but my clients servers It gets their servers hostname which is saved as hostname in the admin area and reboots that server when they request it. All I need is a line that will fetch the domain name and insert it into my php code, it worked on all previous versions of WHMCS but now it doesn't 0 Quote Link to comment Share on other sites More sharing options...
lysenshi Posted July 26, 2009 Share Posted July 26, 2009 which page please?! 0 Quote Link to comment Share on other sites More sharing options...
DedicatedPros Posted July 26, 2009 Author Share Posted July 26, 2009 I fixed it, there was some bad syntax that didn't get along with the new WHMCs code 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.