u5CMS config.php
In the file config.php all parameters driving your u5CMS installation are set. You'll find this file on your server in the directory where u5CMS is installed.
These parameters manage the following properties:
- E-mail address applied as standard FROM-address and system message recipient
- Database connection parameters
- Quote handling
- E-mail transport via SMTP
- If passwords are sent by zendmail
- Serial mail method
- Facebook sharing parameters
- Automatically downsize large std jpgs
- How to preload HTML5 video and audio
- Display / do not display SQL errors coming from :dat-command
- Manually typed local paths
- Search engine parameters
- Allow user upload in forms
- Allow user Pupload in forms
- Merge multiple <br>'s to <p>'s
- Where PHP code shall be executed
- FOR WHICH RESTRICTED AREAS Higher Admin Rights HIADRI SHALL BE REQUIRED
- Width of the notes field in formdata2.php
- Define which status is allowed for the function [mf]
- Fonts used in the backend in textareas, input fields and for special character listings
- In the editor, prospective save conflicts can be automatically monitored
- If session login or basic auth shall be used
- Solution if basic auth shall be used on php as cgi
- Protocol (http:// or https://) to your site and if HTTPS shall be enforced
- Allowed file extensions for http uploads in the front and the back end are configured in configallowedfileextensions.php
Variables and their values see this example config.phpVariables not mentioned in the initial config.php
- The values shown are the defaulting ones if unset:
- $showemailinuploadfilenames='yes';
- $showemailinPuploadfilenames='no';
- $mailalerttoadmin='no'; //if too many login attempts
- $mailalerttouser='no'; //if too many login attempts
- $serialmailsmaxatoncealert=99; //if more needed set $serialmailmethod=1
- $renamenotallowedfileextensionstotxt='no'; //if not yes, these uploads will be blocked ('yes' is not recommended)
- $disableformsourcenamecheck='no'; //if set to yes, formdata is saved without form source name check (not recommended)
- $videoportalegyoutubeembedurl='//www.youtube-nocookie.com/embed/'; //what embed-URL shall be used; defaults to the value shown in the example
- $waitsecondsbetweenpasswordresets=600;
- $dontmailyouarenotmemberalerttopwreseters='no';
- $dontmailyouarenotmemberalerttoadmin='no';
- $dontmailyouarenotintranetmemberalerttocustomers='no';
- $dontmailyouarenotintranetmemberalerttoadmin='no';
- $orderingintranetpasswordsisforbidden='no';
- $waitsecondsbetweenintranetpworders=600;
- $automaticallyskipintranetlogin='no'; //if set to yes, intranet content is accessible without login
- $automaticallyskipbackendlogin='no'; //if set to yes, the backend is accessible without login. In config.php, set all HIADRI-variables to 'no' if you use set $automaticallyskipbackendlogin='yes'
- $alsorenamelinksinformdatadatacsv='no'; //Set this to yes if you have data to be rendered in the formdata table.
- $donotautoindexifthisstringisfoundinfinalpagecontent='DoNotAutoIndexIfThisStringIsFoundInFinalPageContentLiterally'; //if found in any language, the effect is for all languages. Is inherited from included content i. e. [$$$:pagename]
- $checksaveversionconflictinfrontendforms='all'; // Values: all, none, foreign (foregin means "if a different user saves in the meanwhile")
- $checksaveversionconflictinbackend='all'; // Values: all, none, foreign (foregin means "if a different user saves in the meanwhile")
- $searchenginesqladditionalbooland=''; // e. g. to find only page but not media/files: $searchenginesqladditionalbooland='typ=\'p\'';
Further, you may place these two functions in config.php: - $u5cmsbackendpasswordminimumlength=6;
- $u5showlinkofactivelanguageinmetanavi='no';
- $u5allowbasicauthtoprotectedfilesindirr='no';
- if(!function_exists('BACKENDexec')){function BACKENDexec() { echo'<script>alert("BACKENDTEST")</script>'; }};
- if(!function_exists('INTRANETexec')){function INTRANETexec() { echo'<script>alert("INTRANETTEST")</script>'; }};
- if(!function_exists('PWRESETexec')){function PWRESETexec() { echo'<script>alert("PWRESETTEST")</script>'; }};
- if(!function_exists('INTRANETORDERPWexec')){function INTRANETORDERPWexec() { echo'<script>alert("IORDERTEST")</script>'; }};
////// ****** SAML integration configuration ******
// The u5CMS features SAML integration based on SimpleSAMLphp (https://simplesamlphp.org/).
// You are free to install the package wherever you want. In addition to the following config
// parameters you have to create a symlink named simplesaml in your document root that
// points to the www-subdir of your SimpleSAMLphp installation. i.e.
// httpdocs/simplesaml -> ../vendor/simplesamlphp/simplesamlphp/www
$u5samlsalt='randomstring';
$u5samlnonce = 'randomstring';
$u5samlsspconfigdir = 'path/to/config'; // path to the directoy with the authsources.php and config.php file
$u5samlsspauthsourcekey = 'default-sp'; // array key of SP in the authsources.php file
$u5samllogoutresultpage = 'https://test.example.com/index.php?c=farewell'; // where to send the user after SAML logout
$u5samlautointranetenrollment = 'no';
$u5samlmockauth = 'no';
$u5samlmockauthusername = 'xavier.yalonden@example.com';
$u5samlinfrontend='yes';
$u5samlinfrontendyesenforcedifloginformsgetudoesnotcontain='thatstring';
For the functionality described on the page at hand, make sure you are using a current u5CMS version. You'll find the version number by surfing to your website and switching your browser to show the HTML source code. At the very bottom of the source code you'll find a line like this:
<!-- This site runs with u5CMS version 12.4.3 from https://yuba.ch/u5cms -->If there is no such line or no version number or one lower than V8.3.3, see the following instructions:
- On your server, go to the files of your old (current) u5CMS installation and copy config.php to config.old.php
- Download the ZIP-File , unzip it and delete the file favicon.ico
- Further, delete all contents in folder r EXCEPT runonce.php
- Transfer the remaining files and folders from the ZIP file over the existing installation (FTP upload)
- Now, on your server, copy the database connection parameters $host $username $password $db from config.old.php to config.php If there are other dedicated settings in config.old.php, set the same in config.php (compare parameter by parameter)
- You must now log in to the backend of your (now updated) u5CMS installation via https://urltoyouru5cmsfrontend/u5admin and open a css-object (e. g. csslayout) in PIDVESA's S code section, for your site to work correctly again.×
- PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen; cf short reference (pdf)
- You must now log in to the backend of your (now updated) u5CMS installation via https://urltoyouru5cmsfrontend/u5admin for that the database will be updated too
A) If the layout does not look right after having done step 7, go to https://urltoyouru5cmsfrontend/u5admin and open a css-object (e. g. csslayout) in PIDVESA
- PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen; cf short reference (pdf)
B) If your navigation does not look well, copy this code to cssnavleft in PIDVESA
- PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen; cf short reference (pdf)
- PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen; cf short reference (pdf)
- PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen; cf short reference (pdf)
C) If after A) and B) the layout still does not look right, change the doctype <!DOCTYPE html> to the old one
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">