Format code, fixing PHP warning
Adding api_not_allowed().
Adding session static script that synchronizes with the CSV see BT7057
Adding api_not_allowed() + format code.