change README.md
This commit is contained in:
parent
1c82d5a101
commit
a7614ed66f
27
README.md
27
README.md
@ -34,8 +34,9 @@ Le site officiel du club réseaux disponible à l'adresse https://e59.fr/
|
||||
- ```userLevel```
|
||||
- ```userAccreditation```
|
||||
|
||||
## Global Variables
|
||||
# Includes
|
||||
|
||||
## variables.php
|
||||
- ```$rootPageURL```
|
||||
- ```$rootFilePath```
|
||||
|
||||
@ -56,23 +57,29 @@ Le site officiel du club réseaux disponible à l'adresse https://e59.fr/
|
||||
- ```$darkThemes```
|
||||
- ```$lightThemes```
|
||||
|
||||
## Global Functions
|
||||
## init.php
|
||||
- Theme initialisation
|
||||
- userLevel (permissions) initialisation
|
||||
|
||||
## main-functions.php
|
||||
- ```markdownContent($filePath, $rootFilePath)```
|
||||
- ```sqlConnect($dbHost, $dbName, $dbUser, $dbPass)```
|
||||
|
||||
## objects.php
|
||||
- ```userWidget($userPPURL, $userDisplayName, $userName, $userLevel, $badges)```
|
||||
- ```listArticles($result, $rootPageURL)```
|
||||
|
||||
## inputs.php
|
||||
- ```textInput($type, $shapePath, $name, $placeholder, $value)```
|
||||
- ```fileInput($name)```
|
||||
- ```selectInput($name, $label, $options, $defaultValue)```
|
||||
|
||||
## panels.php
|
||||
- ```fillHead($rootPageURL, $pageTitle, $darkTheme, $lightTheme)```
|
||||
- ```fillHeader($rootPageURL, $headerTitle, $headerSubtitle)```
|
||||
- ```fillNav($rootPageURL)```
|
||||
- ```fillFooter($footerText)```
|
||||
|
||||
- ```sqlConnect($dbHost, $dbName, $dbUser, $dbPass)```
|
||||
|
||||
- ```userWidget($userPPURL, $userDisplayName, $userName, $userLevel, $badges)```
|
||||
|
||||
- ```listArticles($result, $rootPageURL)```
|
||||
|
||||
- ```textInput($type, $shapePath, $name, $placeholder, $value)```
|
||||
|
||||
- ```fileInput($name)```
|
||||
|
||||
- ```selectInput($name, $label, $options, $defaultValue)```
|
@ -2,7 +2,7 @@
|
||||
|
||||
session_start();
|
||||
|
||||
if (!isset($_SESSION['userID'])) {
|
||||
if (!isset($_SESSION['userAccreditation']) || !isset($_SESSION['userLevel'])) {
|
||||
$_SESSION['userAccreditation'] = 0;
|
||||
$_SESSION['userLevel'] = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user