<?php require_once('includes/requirelogin.inc.php'); $cs_id=TGET('cs_id'); $mb_id=current_mb_id(); $DBConn->connect(); $course=db_load_course_by_id($DBConn,$cs_id); if ($course['mb_id_owner']!=$cs_id) { db_join_coursecircle($DBConn,$cs_id,$mb_id); $IDR_fields=db_get_course_info_requests($DBConn,$cs_id); db_add_info_disclose($DBConn,$mb_id,$course['mb_id_owner'],array_projection($IDR_fields,'id_field')); redirect("qx-cmd-coursecircle.join.result-op-ok.html"); } else redirect("qx-cmd-coursecircle.join.result-op-fail.selfjoin.html"); ?>