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:


Variables and their values see this example config.php

Variables 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>'; }};

  • Case sensitive! The preceding if-clause is mandatory! The respective function is executed more than once during the access. These functions are useful to set IP-restrictions.

Additional config.php parameters if logins shall use SAML federation
×


////// ****** 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';

Is your u5CMS installation up-to-date and ready for this functionality?
×

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:

u5CMS — How to update an existing installation (version 4 and above)
×
These update instructions are for u5CMS versions 4 and above. For versions below 4 read this!

  1. On your server, go to the files of your old (current) u5CMS installation and copy config.php to config.old.php
  2. Download the ZIP-File , unzip it and delete the file favicon.ico
  3. Further, delete all contents in folder r EXCEPT runonce.php
  4. Transfer the remaining files and folders from the ZIP file over the existing installation (FTP upload)
  5. 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)
  6. 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
    ×
    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.
    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)
    's S code section, for your site to work correctly again.
  7. 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

TROUBLE SHOOTING
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.
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)
's S special function's code (htmltemplate & css) section and safe it!
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.
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)
's→S→Code and this code to cssnavleftsubtop 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.
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)
's→S→Code and this code to cssnavtop 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.
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)
's→S→Code

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">



Download

Content Management System u5CMS

Service

English⇄German Translation Service

Flowers

blumen-bern-maarsen.ch