/*
    mod_dummyphp - (c) 2007 Sebastian Marsching <sebastian@marsching.com>

    Permission is hereby granted, free of charge, to any person obtaining
    a copy of this software and associated documentation files (the
    "Software"), to deal in the Software without restriction, including
    without limitation the rights to use, copy, modify, merge, publish,
    distribute, sublicense, and/or sell copies of the Software, and to
    permit persons to whom the Software is furnished to do so, subject to
    the following conditions:

    The above copyright notice and this permission notice shall be included
    in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

#include "httpd.h"
#include "http_config.h"

static const char *dummyphp_handle_cmd(cmd_parms *cmd, void *mconfig, const char *arg1, const char *arg2) {
  return NULL;
};

#if AP_SERVER_MAJORVERSION_NUMBER == 2

const command_rec dummyphp_cmds[] = {
  AP_INIT_TAKE2("php_value", dummyphp_handle_cmd, NULL, OR_OPTIONS, "Does nothing"),
  AP_INIT_TAKE2("php_flag", dummyphp_handle_cmd, NULL, OR_OPTIONS, "Does nothing"),
  {NULL}
};

module AP_MODULE_DECLARE_DATA dummyphp_module = {
  STANDARD20_MODULE_STUFF,
  NULL,
  NULL,
  NULL,
  NULL,
  dummyphp_cmds,
  NULL
};

#elif AP_SERVER_MAJORVERSION_NUMBER == 1

static const command_rec dummyphp_cmds[] = {
  {"php_value", dummyphp_handle_cmd, NULL, OR_OPTIONS, TAKE2, "Does nothing"},
  {"php_flag", dummyphp_handle_cmd, NULL, OR_OPTIONS, TAKE2, "Does nothing"},
  {NULL}
};

module MODULE_VAR_EXPORT dummyphp_module = {
  STANDARD_MODULE_STUFF,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  dummyphp_cmds,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL
}

#endif
