Location: PHPKode > projects > XMail PHP Admin Interface (XPAI) > xpai/includes/poplnkdel.php
<?php
if (!$in_xpai)
  die;

if (($_SESSION['loginstatus'] >= $login_level['LoginUser']) && ($_SESSION['edit_user'] != "*") && ($_SESSION['edit_domain'] != "*"))
{
  echo "<h1><a href=\"javascript:help('xpai_help.html#poplnkdel','".$helpwidth."','".$helpheight."')\"><img src='gfx/ico_help.png' alt='Help' border='0'></a>&nbsp;&nbsp;";
  echo "Delete POP3 link for user<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"blue\">".$_SESSION['edit_user']."@".$_SESSION['edit_domain']."</span></h1>";

  if (!isset($_REQUEST['Go']))
  {
    $delpoplnk = explode(":", $_REQUEST['sel_poplnk']);
  	if ($mail_server->poplnkdel($_SESSION['edit_domain'], $_SESSION['edit_user'], $delpoplnk[0], $delpoplnk[1]))
    {
  		echo "External POP3 link <b>".$delpoplnk[1]."@".$delpoplnk[0]."</b> was deleted successfully.<br>";
      echo "Server result: ".$_SESSION['LastXMAILResult']."<br><br>";
  	} else {
  		echo "Deleteion of external POP3 link <b>".$delpoplnk[1]."@".$delpoplnk[0]."</b> failed.<br>";
      echo "Server result: ".$_SESSION['LastXMAILResult']."<br><br>";
    }
?>
	<form action='main.php' method='get'>
		<input type='hidden' name='action' value='poplnklist'>
		<input type='submit' name='click' style='width: 50px;' value=' OK '>
	</form>
	
<?php
  }
} else {
  echo "<br><br><h2>Authorization failed to access this function!</h2><br><br>";
} ?>

Return current item: XMail PHP Admin Interface (XPAI)