cacert-codedocs/source/DIR-includes.rst

3.5 KiB

includes

PHP

Directory includes

includes/.cvsignore

.cvsignore includes the parameters for CVS, which files to ignore by versioning

Note

CVS is long dead, is this still used?

includes/.gitignore

.gitignore contains file patterns to be ignored by Git.

includes/about_menu.php

includes/account_stuff.php

includes/account.php

includes/general_stuff.php

includes/general.php

includes/keygen.php

includes/loggedin.php

includes/mysql.php

includes/mysql.php is not contained in the cacert-devel repository but is used by several other files. The file is copied from includes/mysql.php.sample and defines the database connection information.

This file is parsed directly by CommModule/client.pl format changes might break the CommModule code.

includes/mysql.php.sample

mysql.php.sample is a template for the database connection handling code that is meant to be copied to mysql.php.

The template defines the MySQL connection as a session variable mconn and tries to connect to that database. It also defines the session variables normalhostname, securehostname and tverify.

The template defines a function :phpsendmail for sending mails.

Configuration and actual code are mixed. It would be better to have a separate file that just includes configuration.

includes/notary.inc.php

includes/shutdown.php

includes/sponsorinfo.php

includes/tverify_stuff.php

includes/lib

PHP

Directory includes/lib

includes/lib/account.php

includes/lib/check_weak_key.php

includes/lib/general.php

includes/lib/l10n.php