// permissions and limitations under the License. See accompanying LICENSE file. / // / // $Author:shawcs@yahoo-inc.com $Date: 30-Jan-2012 / // / //+---------------------------------------------------------------------------------------------------------------------------------+ define('OPS_APP_HOME_DIR', dirname(__FILE__)); require_once 'assist/prepend.php'; require_once 'assist/PageProperties.class'; require_once 'assist/controllers/NavigationController.php'; require_once 'assist/lib/model/calendarConfig.php'; require_once 'assist/lib/model/calendar.php'; session_start(); if ($_POST['username'] && $_POST['password']) { $dbh = Connection::cal_ro(); $obj_assignee = new calendarConfig(); if ($obj_assignee->authenticate($dbh, $_POST['username'], $_POST['password'])) { $_SESSION['logged'] = 1; if (!isset($auth)) { $auth = new Auth($db_ops, $_POST['username']); $_SESSION['auth'] = $auth; } } } if ($_SESSION['logged'] != 1) { header("Location: index.php"); } class calendarController extends NavigationController { function index() { $this->invalid_crumb = 0;