<?php require_once('includes/requirecompere.inc.php'); require_once('includes/requirepost.inc.php'); $cp_names=TPOST('cp_name'); $DBConn->connect(); $DBConn->begin(true); $team_aliases=db_load_team($DBConn,current_mb_id(),array('VALID'),array('ALIAS')); $team_mb_id_aliases=array_projection($team_aliases,'mb_id_member'); foreach ($cp_names as $cp_id=>$cp_name) { if (in_array($cp_id,$team_mb_id_aliases)) db_update_compere_name($DBConn,$cp_id,$cp_name); } $DBConn->commit(); redirect("qx-cmd-member.pseudo.displaysetting-op-saved.html"); ?>