<?php require_once('includes/requirecompere.inc.php'); require_once("includes/timeavail.inc.php"); $mb_id=current_mb_id(); $DBConn->connect(); $DBConn->begin(true); $cl_expire=get_compere_limit($DBConn,$mb_id,'cl_expire'); $mb_id_aliases=array_projection(db_load_team($DBConn,$mb_id,'VALID','ALIAS'),'mb_id_member'); copy_timeavail($DBConn,$mb_id,$mb_id_aliases); db_update_compere_limit_expire($DBConn,$mb_id_aliases,$cl_expire); $DBConn->commit(); redirect("qx-cmd-timeavail.manage.html?op=copied-ok"); ?>