Installing the Dashboard

Installing the Dashboard is pretty basic. It requires a few PHP files transfered to the server and a few changes made to the config.php file.

Step-by-Step installation:

  1. Unzip the file to a location on your PC
  2. You should have one folder (amfphp) and one file (crossdomain.xml).
  3. Copy both the folder and the xml file to the root of your web server.
  4. The dashlite folder in amfphp/services/dashlite folder contains a config.php file. This file must be updated with the Moodle config settings of your Moodle server. Doing this allows the PHP files in the dashlite folder to connect to Moodle and pull the data needed.
  5. If you have a Twitter account, add your Twitter Username and Password to the TwitUpdates.php file. This will allow you to send Tweets directly from the Dashboard.


Folder placement of the amfphp folders and files. If you are using a virtual server things get a little tricky.
amfphp
 
Basic logic of how the Dashboard works. The username and password we provide you is used when you log into the Dashboard. Once you have authenticated succeffully, the Dashboard uses the PHP files on your server to read and display your Moodle data.
Data Flow
 
config.php in the amfphp/services/dashlite folder should be set to your Moodle config file settings. This is to allow the PHP files in the in the dashlite folder to read the data from your Moodle database and display the content in the Dashboard. This is only a READ action. No updates or changes are made to you data. As can be seen from the demo, the Dashboard does not have any UPDATE or INSERT functionality.

<?php

/**
The values for the variables below are identical to the values found in your Moodle config file.
The most important thing to remember is to watch the formatting when replacing the values.
Every line must end with a semi-colon (;)
*/


$dbhost =
'ServerName'; // The name of the server that Moodle is installed on
$dbname =
'DatabaseName'; // The Moodle database name
$dbuser =
'Username'; // The admin username
$dbpass =
'Password'; // The admin password

/*
Sample settings
$dbhost = 'localhost';
$dbname = 'moodle';
$dbuser = 'admin';
$dbpass = 'pass123';
*/

$mysql = mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($dbname);

?>


 

 

 

For more information about the iLite Dashboard or Mobile Moodle, please send an email to info@ilite.co.za