File/include/pre_main_include.inc

Description

Special URL parsing routines

Some of the restricted areas of the application need to extract information from the URL before they can configure the authentication requirements needed by include_others.inc. This file defines those specialized functions. These functions can not require any other includes from the CompInaBox projects and can not touch the database.

This file is part of CompInaBox.

Functions
getCompNameFromURL (line 31)

Extract the Competition Name following the specified area.

This function pulls out the directory immediately following the directory specified in $section (typically "register", but not always.

  • return: a competition unixname
  • todo: add a regexp to check for legal compunix names?
string getCompNameFromURL (string $url, string $section)
  • string $url: the URL to parse
  • string $section: the directory immediately preceding the value to extract
getTeamIDFromURL (line 53)

Extract the TeamID following the specified area.

This function pulls out the directory immediately following the directory specified in $section (typically "team", but not always.

  • return: a team numeric identifier
  • todo: add a regeexp to enfofce legal team IDs?
int getTeamIDFromURL (string $url, string $section)
  • string $url: the URL to parse
  • string $section: the directory immediately preceding the value to extract

Documentation generated on Tue, 25 Apr 2006 13:07:46 -0400 by phpDocumentor 1.3.0RC3