<?php require_once('includes/requirecompere.inc.php'); $mb_id=current_mb_id(); $DBConn->connect(true); $dataset['BGLIST']=array(array('filepath'=>'')); foreach (glob("images/button-bg/*") as $file) { array_push($dataset['BGLIST'], array('filepath'=>'http'.(is_https()?'s':'').'://'.$Config->SERVER_DOMAIN.'/'.$file) ); } $dataset['COURSE']=db_load_course_by_owner($DBConn,$mb_id); ?>