diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..55f3c73 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +# database configuration and other secret stuff +/load.php + +# some other secret files +/load-post-secret.php + +# the admin files can be symlinked from suckless-conference/admin +/admin diff --git a/load-post.php b/load-post.php new file mode 100644 index 0000000..5598387 --- /dev/null +++ b/load-post.php @@ -0,0 +1,62 @@ +. + +/* + * This file is called after your unversioned 'load.php' and + * load some default configurations. + * + * You can override most of them from your 'load.php'. Example: + * + * define( 'SOMETHING', 'value' ); + */ + +// define latest conference (may be different to the one of the current site) +define_default( 'LATEST_CONFERENCE_UID', 'itwikicon2020' ); + +// the repository +define_default( 'REPO', 'https://github.com/LinuxDayTorino/LinuxDay-Torino-website' ); + +// as default everything is indexed by the search engines +define_default( 'NOINDEX', false ); + +// custom Sessionuser class related to suckless-conference and not suckless-php +define_default( 'SESSIONUSER_CLASS', 'User' ); + +// define default site name +define_default( 'SITE_NAME', 'itWikiCon' ); + +// define default short site name +define_default( 'SITE_NAME_SHORT', SITE_NAME ); + +// define default site description +define_default( 'SITE_DESCRIPTION', __( "La conferenza dei progetti Wikimedia della comunita italofona" ) ); + +// when 1 every non-standard URL will be redirected to its canonical version +define_default( 'FORCE_PERMALINK', 1 ); + +// register every language supported in the l10n directory +register_language( 'it_IT', [ 'it' ], 'it_IT.UTF-8', 'it', 'Italiano' ); + +// register site languages +register_default_language( 'it_IT' ); + +// eventually allow to call some other things when everything is loaded +// e.g. this is useful to do a kind of if IP !== xxx then redirect after everything is loaded +if( file_exists( 'load-post-secret.php' ) ) { + require 'load-post-secret.php'; +}