Planet transfer bug fix
Fixed preg escape issue, added global_declare file