<?php session_start(); include 'lib/db.class.php'; include 'lib/ezleague.class.php'; $ez = new ezLeague(); if (isset($_POST['form'])) { $form = strip_tags($_POST['form']); switch ($form) { case 'login': $username = $_POST['username']; $password = $_POST['password']; $ez->login($username, $password); break; case 'register': $username = $_POST['username']; $password = $_POST['password']; $confirm = $_POST['confirm']; $email = $_POST['email']; $ez->register($username, $password, $email); break; /* * START NEWS */ /* * START NEWS */ case 'addNews': $title = $_POST['title']; $body = $_POST['body']; $author = $_POST['author'];