never use LDAP, only use the DB for users login, groups, ecc... // 1 -> always use LDAP, don't use DB for users operations: login, groups... // 2 -> first use LDAP, if the user is not present in LDAP or the credentials are not ok then use the DB // END of DB Configuration directives ****************************** // CMSDAM VARIABLES CACHING // If you have another valid way to cache, please let me know. // We have told you, cache is your friend! // NOTE: You have to install "memcached" daemon before using this mechanism. // NOTE: See $HTTP_maxage variable. It will be used by default. // NOTE: memcached stored keys will be cmsdAm_ServerName_md5hash // NOTE: You shoud deactivate this for security reasons if this is a virtual host // and there are other cmsdam instances on the same machine to avoid that a malicious // can modify some of your variables. $use_memcached = "YES"; // Boost up things activating cmsdam output/variables caching. $memcached_servers = array ('127.0.0.1:11211'); // memcached servers name and port $memcached_compress_threshold = 10240; // at how many bytes should we compress? $memcached_persistant = "YES"; // are we using persistant links? // END of VARIABLES CACHING // STORAGE Configuration directives ************************************* // cmsdAm relative base directory that contains file contents $filecontainer_basedir = "filestorage"; // END of STORAGE Configuration directives ************************************* // LOGGING Configuration directives ************************************* $LOG_debug = "YES"; // Debug is active? [YES|NO] $LOG_path = "logs"; // Relative or absolute logging path $LOG_file = "cmsdam.log"; // cmsdam $LOG_path relative filename // Don't set this too high in production environment!! Logfile will grow very quickly and could // bring down performance on sites with large users $LOG_level = 6; // Logging level, from 0 (no logging) to 10 (high logging) $LOG_debuglevel = 4; // Debuging level, from 0 (no debuging) to 10 (high debuging) // END of LOGGING Configuration directives ****************************** // ERROR Handling Configuration // cmsdAm can change the way PHP reports errors and warning. Here you can put every PHP // known ERR constant or value or a combination of them! Change only if you know what // you are doing!!! $ERROR_reporting_cmsdAm = (E_ALL & ~E_NOTICE); // Here you can set cmsdAm related errors $ERROR_reporting_sections = (E_ALL & ~E_NOTICE); // Here you can set sections related errors // This is a very good configuration for testing / development environments!! /* $ERROR_reporting_cmsdAm = (E_ALL & ~E_NOTICE); $ERROR_reporting_sections = (E_ALL | ~E_NOTICE); */ // END of ERROR Handling Configuration // PUBLISHING Site Configuration /* HTML form input name prefix used for publishing */ $publish_var_prefix = "cmsdam_pub_"; /* Max number of versions allowed for each section. This does not alter runtime parameters, so you can't update all your section history levels from here just modyfing this!! You have to use $cms->publish->set_section_versioning($section, $history_level); */ $max_section_versions = 17; /* If this option is setted to YES, cmsdAm will try to clean old section publishing history in the case you change max_section_versions to a small value and you try to do versioning operations to the offending section. If it's setted to NO and you try to add a new content after you changed max_section_versions and this new level has been reached cmsdam will not store the new content. Example 1: 1- You have $max_section_vers_autoclean setted to NO 2- $max_section_versions is setted to 250 3- You have 240 levels of history for a section 4- You change $max_section_versions to 239 5- You try to add a new content 6- Then cmsdam will refuse to add a new content and to expunge old history contents. Example 2: 1- You have $max_section_vers_autoclean setted to YES 2- $max_section_versions is setted to 250 3- You have 240 levels of history for a section 4- You change $max_section_versions to 238 5- You try to add a new content 6- Then cmsdAm will eliminate old history (from older), until you have 237 level, then it will add the new content, so that your content history remain under the fixed $max_section_versions Setting it to YES is the default, because it help bringing the database under grow control */ $max_section_vers_autoclean = "YES"; // END OF PUBLISHING // GENERAL Site Configuration ************************************************ /* Super Administration User name - It is only used for Site Administration */ $Administrator = "admin"; /* Super Administrator Password - It is only used for Site Administration */ $Administrator_Password = "cmsPass"; /* Administration Group - It is used for Site Administration */ // All people in this group will be cmsdAm administrators!! So pay attention! $Administrator_Group = "mailadmin"; // This should be a valid cmsdam group. /* PHP Warnings and comments on section include. You may want to disable it in production sites */ $PHPWarn_on_sectioninclude = "YES"; /* This is the default site title (<?=$site_title?>) */ $site_title = 'cmsdAm, the simple CMS generation'; /* HTML META DESCRIPTION () */ $HTML_Meta_description = 'cmsdAm, the simple CMS generation'; /* HTML META KEYWORDS () */ $HTML_Meta_keywords = 'cmsdam, dAm2K, dam, cms, linux, sourceforge, open, source, opensource, gpl, free, gnu'; /* HTML META AUTHOR () */ $HTML_Meta_author = 'Dino Ciuffetti, dAm2K - dam2k@users.sourceforge.net'; // HTML META revisit-after time period in days for robots like search engines. 0 to disable $HTML_Meta_revisit = "3"; /* HTTP max-age (HTTP cache mechanism, page max age in seconds) */ // 600 seconds = 10 minutes. This is very important, here you can set how many seconds // cmsdAm should keep output pages in cache $HTTP_maxage = 450; /* HTTP content type (text formatting) */ $HTTP_contenttype = "text/html"; /* HTTP charset (text formatting) */ //$HTTP_charset = "iso-8859-1"; $HTTP_charset = "UTF-8"; // CMS mail administrator, default "From: " address for mails from cmsdam $cmsdam_admin_email = "webmaster@yourdomain.com"; // Total PHP Timeout (PHP time_limit) in seconds. 0 for infinite $PHP_time_limit = "150"; // If you want cmsdam print parsing time HTML comments at the bottom of the page say YES here. $parsetimecomment = "YES"; // END of GENERAL Site Configuration ***************************************** ?>