Commit 51dd37a9 by Félicie

authentification first step

parent a7d29b56
......@@ -4,10 +4,12 @@
- dupliquer `.htaccess-example` et `qa-config-example.php` et les renommer en enlevant le mot `example`. Dans `qu-config.php` ajouter le nom de la base de donnée, l’utilisateur etc. :
```php
define('QA_MYSQL_HOSTNAME', 'localhost');
define('QA_MYSQL_HOSTNAME', 'localhost');
define('QA_MYSQL_USERNAME', 'lacagette');
define('QA_MYSQL_PASSWORD', 'cagette2015');
define('QA_MYSQL_DATABASE', 'openbarlacagette');
define('QA_EXTRA_LOGIN', 'http://localhost:8080/members/extra_login');
```
Créer une database mySQL
......
......@@ -39,6 +39,8 @@
define('QA_MYSQL_PASSWORD', 'your-mysql-password');
define('QA_MYSQL_DATABASE', 'your-mysql-db-name');
define('QA_EXTRA_LOGIN', 'http://localhost:8080/members/extra_login');
/*
Ultra-concise installation instructions:
......
......@@ -34,6 +34,8 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
exit;
}
// Loading configuration
require_once 'qa-config.php';
/**
* ==========================================================================
......@@ -50,7 +52,7 @@ function qa_get_mysql_user_column_type()
{
// Set this before anything else
return null;
return 'VARCHAR(32)';
/*
Example 1 - suitable if:
......@@ -104,9 +106,9 @@ function qa_get_login_links($relative_url_prefix, $redirect_back_to_url)
// Until you edit this function, don't show login, register or logout links
return array(
'login' => null,
'register' => null,
'logout' => null
'login' => QA_EXTRA_LOGIN,
'register' => QA_EXTRA_LOGIN,
'logout' => QA_EXTRA_LOGIN,
);
/*
......@@ -118,9 +120,9 @@ function qa_get_login_links($relative_url_prefix, $redirect_back_to_url)
* Your logout page: http://www.mysite.com/logout
return array(
'login' => 'http://www.mysite.com/login',
'register' => 'http://www.mysite.com/register',
'logout' => 'http://www.mysite.com/logout',
'login' => 'http://localhost:8080/members_space/home',
'register' => 'http://localhost:8080/members_space/home',
'logout' => 'http://localhost:8080/website/deconnect',
);
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment