Sommaire |
This class contains various functions for the use of MAARCH.
Function to obtain the hour in microseconds. No parameter.
To put in top of a page. Allows to obtain the beginning hour of the page loading in microseconds. No parameter.
Returns the generation time of the page. No parameter.
Shows the errors if there are. No parameter.
Adds an error in the error manager.
Parameters:
Allows to clean a variable and to return an error message if the variable is not in conformity with the rules fixed in parameters.
Parameters:
like : "the name").
Shows a variable by removing the “\”.
No parameter.
Shows the name of the heading where the user is, compared to the name of the page. No parameter.
Inserts a page in a template. Made safe version, accepts only the pages locally having a valid name. (see function wash())
Parameters:
Shows in a structured way a table.
Parameters :
Transforms a MySQL date of the form yyyy-mm-dd hh:mm:ss in a date of the form dd/mm/yyyy
Parameters:
Transforms a mysql date of the form yyyy-mm-dd hh:mm:ss in a date of the form dd/mm/yyyy hh:mm:ss
Parameters :
Show a personalized error.
Parameters :
Shows information in parameters if they are not empty.
Parameters :
Shows the security level label of a level
Parameters :
Extracts the user info from database and put the result in an array
Parameters :
Treats aggregate variables and fixed the order of sorting of the list of the users (Launched automatically at the beginning of the call of the class). No parameters.
Loads data related to the user groups (group name, role, primary group or not) in session variables. No parameters.
Loads in session variables, the security parameters corresponding to the user groups. No parameters.
Identification of a user with name and password.
Parameters :
Identification of a user by cookie with a key and User Id.
Parameters :
Treats the xml file of configuration and puts it in variables of session for a later use. No parameters.
Lists the letters of the alphabet to list the users. No parameters.
Shows the list of the users according to the selected letter.
Parameters:
Allows the administrators to manage the users (modification, suspension, authorization, deletes)
Parameters :
Form for the management of the users.
Parameters :
Treats the information returned by the form of formuser()
Parameters :
Allows the administrators to modify and add users.
Parameters :
Empty information administrator of the user put in session. No parameters.
Builds the site language Parameters :
Treats the information returned by the form of change_info_user(). No parameters.
Form for the management of the current user. No parameters.
Treats aggregate variables and fixed the sorting order of the list of the documents types (Launched automatically at the beginning of the call of the class) No parameters.
Lists the letters of the alphabet to list the types of documents
Parameters :
Shows the list of the documents types according to the selected letter.
Parameters :
Shows the list of the documents types according to a search criterion.
Parameters :
Form for the administration of the types of documents (Validation, Modification, and Proposal)
Parameters :
Treats the information returned by the form of formtype(). No parameters.
Updates a document type. No parameters.
Empty the documents types information put in session. No parameter.
Deletes a document type.
Parameters :
Puts in intensified brightness the searched words in the search results.
Parameters :
Defines the sorting order of the search results. No parameters.
Shows the list of the documents of search.
Parameters :
Treats aggregate variables and fixes the sorting order of the event list in the history (Launched automatically at the beginning of the call of the class). No parameters.
Adds an entry in the history
Parameters :
Posts the events list of the history. No parameters.
Generates a file name for the uploaded file and a destination folder.
Parameters:
DEBUG – Posts a preset sentence if the debug mode is active.
Parameters :
Connection to the database server. No parameters.
Selects the database. No parameters.
Carries out the sql request parameter.
Parameters :
Puts in an object the results of the last request. No parameters.
Puts in an array the results of the last request. No parameters.
Returns the number of results of the request. No parameters.
Disconnects the connection with the database. No parameters.
DEBUG – Management of the errors. Posts a message and the request in the event of error. No parameters.
Shows the last request. No parameters.
Posts the hypertext link for the desired category.
Parameters :
Shows the fast menu for the administration. No parameters.
Shows the detailed menu of the administration. No parameters.
Loads the security parameters for a group in session variables.
Parameters :
Inits the session variables related to the group administration. No parameters.
Inits to ‘N’ (no) the rights in the session variables related to the group administration. No parameters.
Set the rights (insert or update, depending on the parameter) for the tables passed on parameters through an array.
Parameters :
Removes the security rights on the tables passed in parameters.
Parameters :
Adds security parameters of a group in the session variables related to the group administration.
Parameters :
Updates the database with the groups security of the session variables. No parameters.
Test the syntax of the where clauses of all tables for a group. No parameters.
Inits the session variables related to the user administration. No parameters.
Removes the group on the tables passed in parameters for the user.
Parameters :
Set the primary group for a user in the session variables.
Parameters :
No group is the primary group for the user. No parameters.
Adds a group in the session variables related to the user administration.
Parameters :
Loads in the session variables the groups of the user passed in parameter.
Parameters :
Updates the database (usergroup_content table) with the session variables. No parameters.
Treats aggregate variables and fixed the order of sorting of the list of the usergroups (Launched automatically at the beginning of the call of the class). No parameters.
Lists the letters of the alphabet to list the groups. No parameters.
Shows the list of the groups according to the selected letter.
Parameters:
Form for the management of the groups.
Parameters :
Treats the information returned by the form of formgroups()
Parameters :
Allows the administrators to modify and add groups.
Parameters :
Allows the administrators to manage the groups (modification, suspension, authorization, deletes)
Parameters :