<?php $DEV = strpos($_SERVER['REQUEST_URI'], '~') != 0; set_include_path(get_include_path() . PATH_SEPARATOR . ($DEV ? '/home/mgorman/public_html/_resources/php' : '/var/www/php.iwu.edu/htdocs/_resources/php')); require_once '_class.IWU_DB.php'; require_once '_class.IWU_DataRow.php'; require_once '_class.IWU_Auth.php'; require_once '_class.IWU_Template.php'; require_once '_class.IWU_Paginate.php'; require_once '_db.php'; IWU_Auth::forceAuthentication(); if (userHasRole(IWU_Auth::getUser(), 'admin') && isset($_GET['impersonate'])) { $user = $_GET['impersonate']; } else { $user = IWU_Auth::getUser(); } $roles = getRoles($user); class Channel { protected $slug = ''; protected $heading = ''; protected $styles = array(); protected $classes = array('highlight'); protected $context = ''; protected $contexts = array(); protected $contentHTML = ''; public function __construct($slug, $heading, $content = '', $max_height = NULL) { $this->slug = $slug; $this->heading = $heading; $this->contentHTML = $content;