include("inc_menu_left.php");
?>
';
//an 8elei na pros8esei steilto prin kaneis lista wste na exei to neo
$error_msg['ipnew']="";
$control_class['ipnew']='control';
if(isset($submit_ipnew))
{
if (!is_valid('ip',$ipnew))
{
$error_msg['ipnew']=WRONG_IP_txt." "; $control_class['ipnew']='controlError'; } else { if (!hosts_epp_check_create_update($infons,$ipnew)) { //bgale to minima la8ous $error_msg['ipnew']=ERROR_ITE_txt; $control_class['ipnew']='controlError'; } else { //midenise ta gia na einai etoima gia nea eisagwgi $error_msg['ipnew']=""; $control_class['ipnew']='control'; $ipnew=''; } } } else {} $epp=new eppConn(); if ($result_check_arr=$epp->send_receive('host','check',$infons)) { //print_r($result_check_arr); //echo $result_check_arr[0]["avail"].'ffff'.strpos($result_check_arr[0]["reason"],'Undefined'); if ($result_check_arr[0]["avail"]==0 && strpos($result_check_arr[0]["reason"],'Undefined')!==true) { if ($result_info_arr=$epp->send_receive('host','info',$infons)) { $ip_arr= array(); foreach($result_info_arr[0] as $key=>$val_ite) { if (strpos($key,'addr')!==false) { array_push($ip_arr,$val_ite); } } if (sizeof($ip_arr)>0) { echo Ip_address_for_host_txt.' '.$infons.' '; foreach ($ip_arr as $ip_ite) { echo $ip_ite.' '; } } else { echo NO_Ip_address_for_host_txt.' '.$infons.' '; } echo ''; } else { echo ' '.ERROR_ITE_txt.''; } } else { //print_r($epp); echo ''.NS_NO_EXISTS_txt.''; } } else { echo ''.ERROR_ITE_txt.''; } echo ' | |||
'.ADD_NEW_PROFILE_txt.' | |||
'.Profile_Name_txt.' | '.Default_txt.' | '.NS_Name_txt.' | '.Action_txt.' | '.$my_hosts[$i]['num'].' | '.$my_hosts[$i]['fk_hosts_ns'].' | '.info_txt.' | '.del_txt.' | '; } else { $ns=' '; } $i++; while ($name==$my_hosts[$i]['name']) { //$ns.='
'.$my_hosts[$i]['num'].' | '.$my_hosts[$i]['fk_hosts_ns'].' | '.info_txt.' | '.del_txt.' |
'.$name.' | '.$default.' | '.add_ns_txt.' '; if ($linked>0) { $hosts_domains=$conn->GetArray("SELECT distinct domain FROM domains INNER JOIN hosts_profiles ON hosts_profiles.id=domains.fk_host_profile_id WHERE fk_host_profile_id=".$hosts_profiles_id); $domainsList=''; foreach ($hosts_domains as $host_domain) { $domainsList.=$host_domain['domain']."\n"; } echo ''.LINKED_txt.''; } else { echo ''.Delete_txt.''; } echo ' | |
'.No_hosts_txt.' |