application/actionnew_team.php

File for the team creation action.

Implements an action function to be called from the {@see Controller}.

Functions

action()

action(resource  $db = null) : integer

Logs the user out and redirects to the login page.

Reads the POST parameters looking for the following KEYS: uid area_type area stage difficulty ids name description Validates the data and creates the team in the database.

Parameters

resource $db

Database connection.

Returns

integer —

0 on success, negative values on error.