index.php 523 Bytes
Newer Older
1
<?php
2 3 4 5 6 7
/**
 * Copyright (C) 2007 - Savoir-faire Linux Inc.
 * Author: Alexandre Bourget <alexandre.bourget@savoirfairelinux.com>
 *
 * LICENSE: GPLv3
 */
8

9
require_once('sflphone.funcs.php');
10 11 12



13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
$module = '';

// Default module: home
if (!$_REQUEST['l']) {
  $module = 'home';
} else {
  $module = $_REQUEST['l'];
}




// Send output.
include('header.php');

$mod = "templates/page_$module.php";
if (!file_exists($mod)) {
  print "<h1>Module '$module' not found</h1>";
} else {
  include($mod);
}

include('footer.php');
36 37

?>