avs-code / PREM-Podium-race-E-manager

Description PREM (Podium race e manager) is management software for races and race leagues. It can be used to create overviews of race results. Based on Paddock 7.10beta by: demontpx
https://arv187.github.io/PREM-Podium-race-E-manager/
GNU General Public License v3.0
5 stars 1 forks source link

Join as a driver: You do not have administrator rights #7

Closed avs-code closed 8 years ago

avs-code commented 8 years ago

[ENG] So that the user can itself add her name and photo to the database has been backed driver_add_do.php calling driver_add_do_user.php and added this code:

<?php
define('USE_MYSQL', 1);
include 'functions.php';
include 'config.php';

$conn = mysql_connect($config['mysql']['host'], $config['mysql']['user'], $config['mysql']['pass'], $config['mysql']['db'])
or die('issues with the server connection');?>

It seems that the data are added correctly but the following warnings are displayed:

Driver succesfully added You do not have administrator rights

It may be related to include 'functions.php'; o include 'config.php';

[ESP] Para que el usuario pueda por si mismo añadir su nombre y foto a la base de datos se ha hecho una copia de driver_add_do.php llamándola driver_add_do_user.php y se ha añadido este código:

<?php
define('USE_MYSQL', 1);
include 'functions.php';
include 'config.php';

$conn = mysql_connect($config['mysql']['host'], $config['mysql']['user'], $config['mysql']['pass'], $config['mysql']['db'])
or die('issues with the server connection');?>

Parece que los datos se añaden correctamente pero salen las siguientes advertencias:

Driver succesfully added You do not have administrator rights

Puede estar relacionado con include 'functions.php'; o include 'config.php';

inguni commented 8 years ago

Resolved, was redirecting to an admin page, now it'll redirect to the correct page