<?php $bb_id=TGET('bb_id'); $type=TGET('type'); $lctr_id=TGET('lctr_id'); $mb_id_to=TGET('mb_id_to'); $cs_id=TGET('cs_id'); $p=TGET("p"); $ps=TGET("ps"); if (!is_member()) { $dataset['REQUEST-LOGIN']=array(0); } else { $mb_id=current_mb_id(); $dataset['p']=$p; $dataset['ps']=$ps; $dataset['lctr_id']=$lctr_id; $dataset['mb_id_to']=$mb_id_to; $dataset['cs_id']=$cs_id; $dataset['type']=$type; $DBConn->connect(true); if ($lctr_id) { $lecture=db_load_lecture_by_id($DBConn,$lctr_id); $cs_id=$lecture['cs_id']; } if ($cs_id) { $course=db_load_course_by_id($DBConn,$cs_id); $USE_THEME_BY_USER_ID=$course['mb_id_owner']; } $comment=db_load_billboard_by_id($DBConn,$bb_id); if ($comment['mb_id_author']!=$mb_id) $dataset['ONLY-AUTHOR-ALLOWED']=array(0); else { $dataset['EDITABLE']=array(0); $dataset+=$comment; } } if ($type=='pop') { $dataset['POPPING']=array(0); $dataset['GUEST-ONLY']=array(); turnoff_mainmenu(); turnoff_mainfooter(); } ?>