Issue with change domain name

feerdispzoo

Verified User
Joined
Jan 17, 2022
Messages
189
Code:
<?php


$old_domain     = $_POST[old_domain];
$new_domain     = $_POST[new_domain];

include '../protocol/httpsocket.php';

$sock = new HTTPSocket;
$sock->connect('localhost',2222);

$sock->set_login("admin","xxxxxx");

$sock->set_method('POST');

$sock->query('/CMD_API_CHANGE_DOMAIN',
        array(
                'old_domain' => $old_domain.'.testweb.com',
                'new_domain' => $new_domain
    ));

$result = 'We have changed your domain.';
var_dump($result);

?>



Code:
 <form action="/apiclass/code/da_modify_domain.php" method="post" name="form_modify_domain" id="form_modify_domain">
      <!--stara domena--><input  name="old_domain" type="text" id="old_domain"  value="stara domena"><br />
      <!--nowa domena--><input  name="new_domain" type="text" id="new_domain"  value="now domena"><br />
  <p align="center">
    <input type="submit" name="Submit" value="Add domain">
</p>
</form>


no result. Can anyone check what is happen?
 
Back
Top