<?php require_once('includes/requirecompere.inc.php'); require_once('includes/chargedplans.inc.php'); if (!$_SESSION['uniwits.member.pseudo.result']) { redirect("qx-cmd-team.manage.html"); return; } $mb_id=current_mb_id(); $DBConn->connect(false); $DBConn->begin(true); $mb_id_aliases=db_filter_for_alias_member($DBConn,$mb_id,$_SESSION['uniwits.member.pseudo.result']); db_team_insert_alias_members($DBConn,$mb_id,$mb_id_aliases); $compere=db_load_compere($DBConn,$mb_id); $aliasplan=retrieve_charged_plans($DBConn,$Config->ChargedPlans['alias']); foreach ($mb_id_aliases as $id) { db_set_compere($DBConn,$id,$compere); db_insert_compere_limit($DBConn,$id,$aliasplan[0]['limits'],0,1200,'MONTH'); } $DBConn->commit(); purge_array_by_key_prefix($_SESSION,'uniwits.member.pseudo.'); redirect("qx-cmd-team.manage.html".($mb_id_aliases?'?op=add.ok':'')); ?>