3.4.1 - SpeedCheck Customization (PHP)

Top  Previous  Next

 

Prerequisites

 

READ THIS: This is advance users only, it is necessary to have PHP coding and debugging experience before proceeding. Our technical support does not support modified source code, do the changes at your own risk.

 

Header and Footer

 

The files layout is shown in the following table.

 

Folders and Files

Description

[adodb]

ADOdb is the open source database wrapper

[config]

Config file for database, statistics and permission

[documents]

License Agreement, SQL scripts

[download]

Stores the files to be downloaded

[include]

Header, Footer and style sheets and possible Javascript files

[images]

Images

[upload]

Upload files are written to this directory

index.html

Quick Start

SpeedCheck.php

Main file to hold the Java Applet

SpeedCheck.jar

Core Java Applet class file in JAR format

SpeedCheck_admin_report.php

Administration Report on Usage

SpeedCheck_labels.php

Customized labels

SpeedCheck_license.txt

License File

SpeedCheck_manual_upload.html

For testing use (see upload config section)

SpeedCheck_permission.php

To enable/disable SpeedCheck based on permission

SpeedCheck_report.php

Report on Session

SpeedCheck_statistics.php

Receive data and write stats to database

SpeedCheck_upload.php

Receive multi-part data and write to upload folder

 

In the /include folder, there is header.php and footer.php that store the HTML  for the header graphics, navigation side bar and the footer. You can modify these 2 files for your own customization.

 

 

Without Header and Footer

 

If you do not want the Header and Footer, you can delete the following lines from the PHP files. It is very straight forward.

 

<?php include("./include/header.php"); ?>

 

<?php include("./include/footer.php"); ?>

 

 

Code can be deleted

 

In some files, you may see following block. Depending on your needs, it is optional, you may want to delete it.

 

 

<!-- ------------------ CAN BE DELETED (BEGIN) ------------------- -->

...................................

...................................

<!-- -------------------- CAN BE DELETED (END) --------------------- -->

 

 

Code cannot be deleted

 

When you do your customization, please make sure such script must be NOT BE DELETED.

 

<script language="javascript">

       

       // ---------- DO NOT REMOVE THIS JAVASCRIPT ------------

       // NOTE : This is for preventing "back button" from being pressed

       //

       // - If "Back" button is pressed from the reporting page, it

       //   resets Java Applet session but caching PHP page.  This

       //   would be very confusing to the users if "Back" button is allowed.

       // ---------- DO NOT REMOVE THIS JAVASCRIPT ------------                

               

       window.history.forward(-1);

</script>