mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 10:02:02 -04:00
Create cookie-based login and authentication system
This commit is contained in:
parent
45221365b5
commit
0bc3dc3830
46 changed files with 528 additions and 195 deletions
|
@ -11,12 +11,13 @@ define('SITE_STATUS', get_cfg_var('se.site_status') ?: SITE_STATUS_DEV); // Set
|
|||
|
||||
// No trailing slash on any of the below constants.
|
||||
if(SITE_STATUS == SITE_STATUS_LIVE){
|
||||
define('SITE_URL', 'https://standardebooks.org');
|
||||
define('SITE_DOMAIN', 'standardebooks.org');
|
||||
}
|
||||
else{
|
||||
define('SITE_URL', 'https://standardebooks.test');
|
||||
define('SITE_DOMAIN', 'standardebooks.test');
|
||||
}
|
||||
|
||||
const SITE_URL = 'https://' . SITE_DOMAIN;
|
||||
const SITE_ROOT = '/standardebooks.org';
|
||||
const WEB_ROOT = SITE_ROOT . '/web/www';
|
||||
const REPOS_PATH = SITE_ROOT . '/ebooks';
|
||||
|
@ -49,6 +50,7 @@ const WEB = 1;
|
|||
const GET = 'GET';
|
||||
const POST = 'POST';
|
||||
const COOKIE = 'COOKIE';
|
||||
const SESSION = 'SESSION';
|
||||
|
||||
const HTTP_VAR_INT = 0;
|
||||
const HTTP_VAR_STR = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue