<?php

// VERSION May 2020
// Enter your Host Moodle URL (not the wwreportURL) below.
//$domainname = 'http://www.developmentserver.work/moodle/wwdad_moodle/';
$domainname = 'https://reports.wwdad.com.au/moodle/';
$database_prefix = 'mdl_';
//$xml_filename = 'LoginReportToolExample.xml';
$txt_filename = 'loginreporttool.txt';



$perpage_record = 20;

//$showcourseids = "8";
//$showcourseids = "108,38,20,28,23";

//$re_accrediation_course = array(16=>9, 17=>9);
// $re_accrediation_course = array(16=>8, 17=>8);

//$pre_selected_courses = array(108);

// AAd in new rescert courses here, this is when the Red and Green stop lights appear.

$certified_courses = array(108,38,20,28,23,12,17,33,34);


//$allcourse_query = "SELECT id  FROM ".$database_prefix."course WHERE id <> 1 
//ORDER BY id ASC";
//$resultcourses = mysqli_query($con,$allcourse_query);
//$certified_courses = array();
//while($row_course = mysqli_fetch_array($resultcourses,MYSQLI_ASSOC)) {
//    $certified_courses[] = (int)$row_course['id'];
//}


$hide_suspended = true;
$showhiddencourses = false;


$accredited_display_course = "108,38,20,28,23,12,17,33,34";

// Enter your Database Host, username, password, database name below.
$con = mysqli_connect("localhost","reportswwdad_dbuser","S~IX(=3#J)&p!jt7","reportswwdad_learningportal_db");
// Check connection
if (mysqli_connect_errno())
  {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
  }
  

?>