Jump to content

Belelros

Member
  • Posts

    13
  • Joined

  • Last visited

About Belelros

Belelros's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. I would like to know how could I autoaccept an order, runing it owns modulecreate hook (which is already created) and then send a system mail... I've tried without succes. Any ideas?
  2. Hi there, How can I delete some of these icons? http://grab.by/6HW8 I don't need that users watch Server status or Domain checker for example... Thanks
  3. Hi there, I just want to know if there is any way to make fields wich are mandatory (like phone) not mandatory in registration. I would like to make the process a little less messy. Thanks for the support.
  4. I don't know if you didn't understand but I certainly redefine them if they are in another function so that's not the problem. I just avoid copying that because it was the same text as above.
  5. As I said, I tried to put that code in the first function (so it could use the subdomain variable) and when it is in a second function I copy all the variables again in that function. The majority of the code is there BTW, thanks for your help ^^
  6. Hi there, I have this hook: <?php function setupweb($vars) { $password= $vars["params"][password]; $email= $vars["params"][email]; $domain= $vars["params"][domain]; $subdomain=str_replace(".$main_domain", "", $vars["params"][domain]); exec("mysql -uroot -p$root_pass $subdomain < /home/master/master.sql"); $date = date("Y-m-d H:i:s"); $connection = mysql_connect("localhost","root","S4ha5do0w"); mysql_select_db("dbmydnsconfig", $connection); $sql="INSERT INTO `dns_rr` VALUES('', 1, 0, 'riud', 'riud', '', 1, 5, '$subdomain', 'A', '$server_ip', 0, 86400, 'Y', '2010-04-30 17:21:16', 2010043002)"; $sqlb="INSERT INTO `hosting` VALUES('', '$subdomain', '$password','$date' ,'0','$_SERVER[HTTP_REFERER]','$_SERVER[REMOTE_ADDR]','$data')"; mysql_query($sql,$connection); mysql_query($sqlb,$connection); mysql_close($connection); } add_hook("AfterModuleCreate",1,"setupweb"); ?> And it makes it right. It creates a Database and also a folder and insert some data in a DB table. But then, I needed to insert more code which is: mysql_select_db($subdomain, $connection); $mailsql="UPDATE 'config' set config_value='$email' where config_name like 'admin_email'"; mysql_query($mailsql,$connection); The DB "selected" is the one created in this step: exec("mysql -uroot -p$root_pass $subdomain < /home/master/master.sql"); I've tried to put in another function and execute it using add_hook("AfterModuleCreate",2,"setupanotherfunction"); And also inside the function at the top but it doesn't do anything... anyone have any clues?
  7. what you get there is the HASH I don't know how to get the password even in MD5.
  8. Hi there, Do you know what method of encodement uses WHMCS to encode user passwords? I ask because I would like to create a hook which create a user account in a phpBB forum which uses MD5 so, the idea would be to make a query which get that password and put in the phpbb table. Any ideas?
  9. Thanks again Now the question is which file runs order accepts! How could I start finding it?
  10. Thanks for that! So, should I edit these pages or create a new ones using them as model... if so, how can I make them work instead of these?
  11. Hi there, I have a question that would like to solve... How can I do to run some SQL queries after accept an order using some of the order's data? I hope you got the idea! Regards
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated