diff --git a/auth.php b/auth.php index 9e05d19..b78376d 100644 --- a/auth.php +++ b/auth.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** User authentication (abstract class) */ class auth { diff --git a/authentication.php b/authentication.php index 49e6447..fe4bec3 100644 --- a/authentication.php +++ b/authentication.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/auth.php"); require_once ("domframework/authparams.php"); require_once ("domframework/authsession.php"); diff --git a/authhtpasswd.php b/authhtpasswd.php index c6d7929..8de4370 100644 --- a/authhtpasswd.php +++ b/authhtpasswd.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/auth.php"); /** User authentication against .htpasswd file diff --git a/authimap.php b/authimap.php index 4f92de2..722d468 100644 --- a/authimap.php +++ b/authimap.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/auth.php"); require_once ("domframework/imap.php"); diff --git a/authjwt.php b/authjwt.php index b476e43..2fa8dde 100644 --- a/authjwt.php +++ b/authjwt.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/jwt.php"); require_once ("domframework/uuid.php"); diff --git a/authldap.php b/authldap.php index c18483a..231ffaf 100644 --- a/authldap.php +++ b/authldap.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/auth.php"); /** User authentication against LDAP server */ diff --git a/authorization.php b/authorization.php index f299b34..ce9b265 100644 --- a/authorization.php +++ b/authorization.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** All the needed functions to authorize or deny access to an authenticated user */ class authorization diff --git a/authorizationdb.php b/authorizationdb.php index 476853f..1c4b781 100644 --- a/authorizationdb.php +++ b/authorizationdb.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + error_reporting (E_ALL); require_once ("domframework/dblayer.php"); require_once ("domframework/authorization.php"); diff --git a/authparams.php b/authparams.php index 4f49328..3263d64 100644 --- a/authparams.php +++ b/authparams.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Takes the email and the password of the user */ class authparams { diff --git a/authsession.php b/authsession.php index 0075a89..b945351 100644 --- a/authsession.php +++ b/authsession.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** User authentication against SESSION */ class authsession extends auth { diff --git a/authshibboleth.php b/authshibboleth.php index 8b6618d..6219b03 100644 --- a/authshibboleth.php +++ b/authshibboleth.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/auth.php"); /** User authentication against Shibboleth */ diff --git a/authsql.php b/authsql.php index e9f803a..6ef052e 100644 --- a/authsql.php +++ b/authsql.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/dblayer.php"); require_once ("domframework/auth.php"); diff --git a/authsympa.php b/authsympa.php index 190aa56..bb5b012 100644 --- a/authsympa.php +++ b/authsympa.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/auth.php"); /** User authentication against SYMPA server diff --git a/authzgroups.php b/authzgroups.php index 5f2113f..f9a4898 100644 --- a/authzgroups.php +++ b/authzgroups.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/dblayer.php"); /** All the needed functions to authorize or deny access to an authenticated diff --git a/authzgroupsoo.php b/authzgroupsoo.php index c4922e7..3fb6983 100644 --- a/authzgroupsoo.php +++ b/authzgroupsoo.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/dblayeroo.php"); /** All the needed functions to authorize or deny access to an authenticated diff --git a/backtrace.php b/backtrace.php index dc3afc4..a01b4ab 100644 --- a/backtrace.php +++ b/backtrace.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Display the backtrace in HTML with clicks to display the content */ class backtrace diff --git a/cachefile.php b/cachefile.php index 0e50e5f..cb8d5d8 100644 --- a/cachefile.php +++ b/cachefile.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** A cache manager in file */ class cachefile diff --git a/cacheoutput.php b/cacheoutput.php index 1271a07..9b9bf2a 100644 --- a/cacheoutput.php +++ b/cacheoutput.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** This class permit to cache the ouptut of a code. If the cache is already * available, use it. * It resend the headers as the ouptut send them diff --git a/certificationauthority.php b/certificationauthority.php index ad798cf..d835318 100644 --- a/certificationauthority.php +++ b/certificationauthority.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** An certificate authority */ class certificationauthority diff --git a/cli.php b/cli.php index c914f78..b0447f2 100644 --- a/cli.php +++ b/cli.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Allow to interract with controllers and models from the CLI */ class cli { diff --git a/color.php b/color.php index 6496fc9..c3968b5 100644 --- a/color.php +++ b/color.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Convert the name of colors to RGB */ class color diff --git a/config.php b/config.php index 4eb2f14..0f6a879 100644 --- a/config.php +++ b/config.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Manage the configurations of the module done by administrator in a config * file * It is based on the module configuration defaults diff --git a/console.php b/console.php index 3cc4c81..377f872 100644 --- a/console.php +++ b/console.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Allow to manage a linux Console to have a minimal but working text interface * When using this class, you must use the $console::echo method and not * display directely on screen diff --git a/convert.php b/convert.php index ced802e..cd40d5f 100644 --- a/convert.php +++ b/convert.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Convert a format to another one */ class convert diff --git a/csrf.php b/csrf.php index 1661615..0d0ba57 100644 --- a/csrf.php +++ b/csrf.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** CSRF protection * By default, the CSRF protection is active if a SESSION is active too. * It can be disabled if needed. An Exception is raised if the form is send diff --git a/daemon.php b/daemon.php index 87fe5fd..d9b2861 100644 --- a/daemon.php +++ b/daemon.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/fork.php"); require_once ("domframework/file.php"); diff --git a/dbjson.php b/dbjson.php index 85c9bb3..6186fe8 100644 --- a/dbjson.php +++ b/dbjson.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** DBJSON : a NoSQL DB in JSON * Documentation * - A filter is an array containing the fields and the values to found diff --git a/dblayer.php b/dblayer.php index d0d379d..1fc346b 100644 --- a/dblayer.php +++ b/dblayer.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + // dblayer.php /* Documentation : diff --git a/dblayerauthzgroups.php b/dblayerauthzgroups.php index 772182b..673cebf 100644 --- a/dblayerauthzgroups.php +++ b/dblayerauthzgroups.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/dblayer.php"); /** DBLayer with authorization diff --git a/dblayeroo.php b/dblayeroo.php index e2304e9..eb4f342 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Permit abstraction on the differents SQL databases available */ class dblayeroo diff --git a/encrypt.php b/encrypt.php index 7c22fb6..2229568 100644 --- a/encrypt.php +++ b/encrypt.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Allow to encrypt/decrypt data */ class encrypt diff --git a/file.php b/file.php index 5778d8a..1720650 100644 --- a/file.php +++ b/file.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** The file method allow to manage files like PHP with a working chroot on all * plateforms, and a right management compatible with database * Don't follow links ! diff --git a/fork.php b/fork.php index 9625adc..3086bb6 100644 --- a/fork.php +++ b/fork.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Manage the fork of children in Posix mode */ class fork diff --git a/form.php b/form.php index 052cd77..977cc20 100644 --- a/form.php +++ b/form.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/csrf.php"); /** This class permit to create easily some forms to HTML (or text mode in diff --git a/fts.php b/fts.php index c365381..a0f85a5 100644 --- a/fts.php +++ b/fts.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** The Full Text Search * Analyze the provided search text (like a search engine), and create the * sql query to found the answer. It also allow to check if a sentence is valid diff --git a/getopts.php b/getopts.php index 5366261..d336fd8 100644 --- a/getopts.php +++ b/getopts.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/verify.php"); /** Manage the options provided on the command line diff --git a/graph.php b/graph.php index 5714856..0bb2654 100644 --- a/graph.php +++ b/graph.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/color.php"); /** This class allow to generate an image which is a graphic. A graphic takes diff --git a/http.php b/http.php index 193cdbd..5296a87 100644 --- a/http.php +++ b/http.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** HTTP Helper : understand the best choices provided by browser, the HTTP * codes */ diff --git a/httpclient.php b/httpclient.php index 2e94f23..aa40eef 100644 --- a/httpclient.php +++ b/httpclient.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/tcpclient.php"); /** This programe allow to get a HTTP page from a site, and examine the content. diff --git a/imap.php b/imap.php index b269de7..77da4cf 100644 --- a/imap.php +++ b/imap.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** IMAP connection abstraction In the IMAP terminology, "mailbox" is a folder in the mailbox of the user */ class imap diff --git a/inifile.php b/inifile.php index fc439af..c899a68 100644 --- a/inifile.php +++ b/inifile.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Manage .ini files like in php.ini Support the sections (or not) */ class inifile diff --git a/ipaddresses.php b/ipaddresses.php index 54f7e5d..71cf65b 100644 --- a/ipaddresses.php +++ b/ipaddresses.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Manage the IP addresses conversions */ class ipaddresses { diff --git a/jwt.php b/jwt.php index c59d294..c4e7b38 100644 --- a/jwt.php +++ b/jwt.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/encrypt.php"); /** Allow to manage the JSON Web Tokens diff --git a/language.php b/language.php index 383b65b..f42d003 100644 --- a/language.php +++ b/language.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Language class : change the messages */ class language diff --git a/lockfile.php b/lockfile.php index 3bbfc46..89e6e2f 100644 --- a/lockfile.php +++ b/lockfile.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** The lock management of files */ class lockfile diff --git a/logger.php b/logger.php index 97c9e7c..bb1a4e5 100644 --- a/logger.php +++ b/logger.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** The logger class permit to log the information from the soft * It allow to debug too */ diff --git a/macaddresses.php b/macaddresses.php index ee2fea2..b0584c4 100644 --- a/macaddresses.php +++ b/macaddresses.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Manage the MAC addresses * Based on : * https://www.stetsenko.net/2011/01/php-mac-address-validating-and-formatting/ diff --git a/mail.php b/mail.php index d56e7eb..062562c 100644 --- a/mail.php +++ b/mail.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** The class to create a complete email. Can read an email from a content */ class mail diff --git a/markdown.php b/markdown.php index 839d42f..e4b1cad 100644 --- a/markdown.php +++ b/markdown.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Convert the Markdown text to html format */ class markdown diff --git a/module.php b/module.php index 12a5ae4..49b7eb7 100644 --- a/module.php +++ b/module.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Module management */ class module diff --git a/output.php b/output.php index 978701a..fccd654 100644 --- a/output.php +++ b/output.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Class used to display data */ class output diff --git a/outputcsv.php b/outputcsv.php index c7962f3..a7996eb 100644 --- a/outputcsv.php +++ b/outputcsv.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/output.php"); /** Display in CSV the data provided diff --git a/outputdl.php b/outputdl.php index e5a4d00..ac20508 100644 --- a/outputdl.php +++ b/outputdl.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** This class allow a program to download a specific file from the filesystem, * without using too much memory. In also allow to manage the resuming of a * paused transfert by getting the range of download. diff --git a/outputhtml.php b/outputhtml.php index 8b9ad4a..1e91946 100644 --- a/outputhtml.php +++ b/outputhtml.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/output.php"); /** Display in HTML the data provided, with the layout support diff --git a/outputjson.php b/outputjson.php index db55c93..721aed9 100644 --- a/outputjson.php +++ b/outputjson.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/output.php"); /** Display in JSON the data provided diff --git a/outputrest.php b/outputrest.php index f10ea52..35592cf 100644 --- a/outputrest.php +++ b/outputrest.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/output.php"); require_once ("domframework/rest.php"); diff --git a/outputtxt.php b/outputtxt.php index b835ae3..5af7122 100644 --- a/outputtxt.php +++ b/outputtxt.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/output.php"); /** Display in Text the data provided diff --git a/outputxml.php b/outputxml.php index 188573d..c290fc6 100644 --- a/outputxml.php +++ b/outputxml.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/output.php"); /** Display in XML the data provided diff --git a/password.php b/password.php index 3b859da..9bf436d 100644 --- a/password.php +++ b/password.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** A class to manage the password hashing, password generation */ class password diff --git a/queue.php b/queue.php index e859a1c..9fa71e0 100644 --- a/queue.php +++ b/queue.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Manage a queue in multiple storages * A process can add entries to the end of a queue * A process can get all the entries in a queue diff --git a/queuefile.php b/queuefile.php index b687677..57b2984 100644 --- a/queuefile.php +++ b/queuefile.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/queue.php"); require_once ("domframework/file.php"); diff --git a/ratelimit.php b/ratelimit.php index 2911aa9..5d50fbb 100644 --- a/ratelimit.php +++ b/ratelimit.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** The rate limit abstract class */ class ratelimit diff --git a/ratelimitfile.php b/ratelimitfile.php index 27165d3..b5b8159 100644 --- a/ratelimitfile.php +++ b/ratelimitfile.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/lockfile.php"); require_once ("domframework/ratelimit.php"); diff --git a/renderer.php b/renderer.php index a9f9ae2..ec29773 100644 --- a/renderer.php +++ b/renderer.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Display the data in HTML with a FLASH method to display the errors */ class renderer diff --git a/rest.php b/rest.php index 46ee702..42c3431 100644 --- a/rest.php +++ b/rest.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/http.php"); /** Allow to manage the REST protocol by using the users output types diff --git a/robotstxt.php b/robotstxt.php index a4838f6..6530e61 100644 --- a/robotstxt.php +++ b/robotstxt.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** This class analyze the provided robots.txt file content and allow to * get the configured data for DomSearch. * It allow to examine an URL against the robots.txt file and return if the URL diff --git a/route.php b/route.php index f81ca45..0e276cf 100644 --- a/route.php +++ b/route.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/http.php"); require_once ("domframework/ratelimitfile.php"); diff --git a/routeSQL.php b/routeSQL.php index d4282d0..f09dc40 100644 --- a/routeSQL.php +++ b/routeSQL.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/route.php"); require_once ("domframework/form.php"); require_once ("domframework/renderer.php"); diff --git a/rss.php b/rss.php index fc11ad7..e9e5afd 100644 --- a/rss.php +++ b/rss.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/verify.php"); require_once ("domframework/convert.php"); diff --git a/sitemap.php b/sitemap.php index dcdaaa5..dbe8969 100644 --- a/sitemap.php +++ b/sitemap.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** This class allow to read the sitemaps files available in websites, and give * the available URL and parameters */ diff --git a/smtp.php b/smtp.php index 955961a..a736d10 100644 --- a/smtp.php +++ b/smtp.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Allow to send mails by smtp */ class smtp diff --git a/spfcheck.php b/spfcheck.php index 932e91f..843c278 100644 --- a/spfcheck.php +++ b/spfcheck.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require ("domframework/ipaddresses.php"); /** This class allow to get a SPF record for a domain and check an IP against diff --git a/sse.php b/sse.php index 74b095f..5a54813 100644 --- a/sse.php +++ b/sse.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** This class allow to manage Server-Sent Events * The browser will be connected to a not ending loop. This loop will send * ping regularly. If the backend value change, it will be sent to the diff --git a/tcpclient.php b/tcpclient.php index 130a9e9..62b1da5 100644 --- a/tcpclient.php +++ b/tcpclient.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** TCP Client * Allow to create TCP connections to a server. * If both IPv6 and IPv4 are allowed by the server, try in IPv6 then back in diff --git a/tcpserver.php b/tcpserver.php index 1d333ee..c4dcaa6 100644 --- a/tcpserver.php +++ b/tcpserver.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** This class allow to start a TCP server and call a function each time a * client is connected on it. Each client is separated in a child, so the * server allow to have multiple simultaneous connections. diff --git a/users.php b/users.php index 4ac7224..3425707 100644 --- a/users.php +++ b/users.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** The abstraction class of the users * Allow to manage the users in multiple storages (SQL, HTPasswd, passwd file). * CRUD the users and allow to modify the password diff --git a/userssql.php b/userssql.php index 32ec9ce..88251ab 100644 --- a/userssql.php +++ b/userssql.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/dblayer.php"); require_once ("domframework/users.php"); diff --git a/uuid.php b/uuid.php index 07754e4..aff9458 100644 --- a/uuid.php +++ b/uuid.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Generate a UUID v4 */ class uuid diff --git a/verify.php b/verify.php index 8fe49e6..069a9d7 100644 --- a/verify.php +++ b/verify.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Permit to check the validity of fields */ class verify diff --git a/version.php b/version.php index fcb9256..83f7761 100644 --- a/version.php +++ b/version.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** This is the version of DomFramework. * It can be used to test if the framework is uptodate for the application * with : diff --git a/xdiff.php b/xdiff.php index 71d0dd9..4d75bae 100644 --- a/xdiff.php +++ b/xdiff.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + /** Create a diff from two strings, array or files * The output is compatible with "patch" command. */ diff --git a/xmppclient.php b/xmppclient.php index 3a12a3c..765cfaf 100644 --- a/xmppclient.php +++ b/xmppclient.php @@ -5,6 +5,8 @@ * @license BSD */ +//namespace Domframework; + require_once ("domframework/tcpclient.php"); /** This class allow to send XMPP messages to a server.