added admin function: add user
This commit is contained in:
37
homepage/participo/index.inc.php
Normal file
37
homepage/participo/index.inc.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . "./lib/");
|
||||
|
||||
// configs and local data
|
||||
// @todo Check and replace obsolete ones
|
||||
require_once 'config/participo.php';
|
||||
require_once 'config/phpcount.config.php';
|
||||
require_once 'local/cwsvJudo.php';
|
||||
|
||||
// legacy lib usage
|
||||
// @todo remove unused libraries
|
||||
require_once 'db.php'; // should be replaced
|
||||
require_once 'api.php'; // should be replaced
|
||||
|
||||
// libraries
|
||||
require_once 'participoLib/participo.php';
|
||||
require_once 'participoLib/planer.php';
|
||||
require_once 'participoLib/apiKey.php';
|
||||
require_once 'phpcount/phpcount.php';
|
||||
|
||||
// Add page hit
|
||||
PHPCount::AddHit('participo');
|
||||
|
||||
// init the db connector
|
||||
dbConnector::connect(
|
||||
$cwsvJudoConfig['db']['host'],
|
||||
$cwsvJudoConfig['db']['name'],
|
||||
$cwsvJudoConfig['db']['user'],
|
||||
$cwsvJudoConfig['db']['password']
|
||||
);
|
||||
|
||||
// authentication of the current user
|
||||
participo::authentificate();
|
||||
|
||||
// load the userData
|
||||
$userData = getUserData(dbConnector::getDbConnection(), $_SESSION['user']['userId']);
|
||||
Reference in New Issue
Block a user