Secure Socket Layer

Are you new to the eduTrac SIS online user's manual? If so, click here for a starting point. If you are looking for technical documentation, then check out the Wiki.

 

As of release 6.1.09, you can now serve an eduTrac SIS installation over a Secure Socket Layer (SSL). In order to enable eduTrac SIS over a Secure Socket Layer (SSL), create a new .php file, add the example code below to this newly created file, and drop the file into the dropins folder. Note: This feature is still experimental, so please use with caution.

<?php
/*
  DropIn Name: Enable SSL
  Description: A dropin which tranfers all HTTP requests over SSL.
 */

$app = \Liten\Liten::getInstance();

function enable_url_ssl()
{
    $domain = str_replace('http://', '', url('/'));
    $url = 'https://' . $domain;
    return $url;
}
$app->hook->add_filter('base_url', 'enable_url_ssl');

Force SSL

If you want to force your eduTrac SIS installation to load the site and all screens over HTTPS, then you can use the modified code below to add to a dropin file. Please note that the below code includes the code from above.

<?php
/*
  DropIn Name: Enable and Force SSL
  Description: A dropin which loads the entire eduTrac SIS installation over HTTPS.
 */

$app = \Liten\Liten::getInstance();

function enable_force_url_ssl()
{
    $app = \Liten\Liten::getInstance();
    $domain = str_replace('http://', '', url('/'));
    $url = 'https://' . $domain;

    if ($app->req->server['SERVER_PORT'] != 443) {
        $https = rtrim($url, '/');
        redirect($https . $app->req->server['REQUEST_URI']);
        exit();
    }
    return $url;
}
$app->hook->add_filter('base_url', 'enable_force_url_ssl');

 

Last Modified: Nov 3, 2016 @ 7:05 PM

Was this article helpful?

Related Articles

You must be logged in to reply to this topic.