You can edit or add all of these settings in usr/config.php. If a setting is not present there, the default value will be used.
You can also define settings for a particular user.
Example: $user_config["admin"]["stat_long_bars"]=false;
This sets $config_stat_long_bars=false for user admin. Not all settings make sense to be user-dependent (e.g. $config_stat_user).
Some settings can be overwritten using $set_* (there is a note about this in the description of these settings). For example, you could overwrite $config_counter_enabled with the following include-code:
<?php $set_counter_enabled=true; @include_once("stat/src/include.php"); ?>
setting | Values (default) | Description | See also |
---|---|---|---|
$config_rel_path string avail. since 1.50 | "stat/" "scripts/stat/" "/stat/" "http://www.example.com/stat/" | Folder/path from the files which are counted to the CrazyStat-files. To count access to files of different folders, use $config_different_rel_paths and $set_rel_path (recommended). Alternativey (not recommended), use absolute paths from the root of your domain (example 2) or including the domain (example 3). This setting can be overwritten using $set_rel_path. | $config_different_rel_paths |
$config_different_rel_paths boolean avail. since 1.51 | false true | Allow overwriting of $config_rel_path? Activate (true) if using $set_rel_path, deactivate otherwise (false). | $config_rel_path |
$config_logfile_folder string avail. since 1.60 | "logs" "../backupDir/logs" "/var/logs/crazystat" | Folder in which the logfiles are placed | |
$config_logfile_name string avail. since 1.50 | "stat.log" "crazystat_logfile.log" | Filename of the logfile, in which the information about the visitors is stored. ATTENTION since version 1.60: The filename MUST contain exactly ONE dot before the file extension. CrazyStat will automatically count the logfiles through and add their number before the dot. | $config_logfile_folder |
$config_logfile_maxsize integer / false avail. since 1.60 | 1000 500 2000 false | Maximum file size of a single logfile in kB. If the current logfile reaches this filesite, a new one will be created (splitting). If false, no splitting is done. | |
$config_log_zlib boolean avail. since 1.70 | true false | Activates real (!) compression of logfiles as gz-files using zlib. This shrinks logfiles extremely. The last logfile is always kept without compression. Setting has no effect if zlib unavailable. Existing logfiles will not be compressed (-> Log-Tool). | $config_log_shrink |
$config_count_file string avail. since 1.60 | "counter.log" "count.log" | File in which information is stored to make CrazyStat faster. This is needed even if no counter is used! | $config_logfile_name |
$config_alt_text string avail. since 1.50 | "" "Counter" | Alternative text for counter-image or alternative image. The alt-attribute of the counter/alternative-image will be set to this. | |
$config_ip_block_time integer avail. since 1.50 | 30 20 60 | Minutes to block an IP (for statistic and counter) | $config_counter_reload |
$config_ip_anonymous boolean avail. since 1.70 | false true | Anonymize IPs? See FAQ. ATTENTION: This can not be reversed. | $config_salt_str |
$config_salt_str string avail. since 1.70 | "SomeRand0m_strlng" "jdgi93+sa#3" "03a2ö#s34gs" | Some random string (at least 8 characters, normally 32). This is used to securely anonymize IPs and securely save passwords as MD5-hash etc. When the login-form is opened for the first time, this will be set automatically to some random string. Do not change it afterwards unless you know what you're doing because all passwords will get invalid (see FAQ on how to resolve this). | $config_ip_anonymous $config_stat_password_md5 |
$config_xhtml boolean avail. since 1.60 | false true | Is CrazyStat included into XHTML-files? ATTENTION: This is experimental, if true, some old browsers might not be counted. See FAQ. This setting can be overwritten using $set_xhtml. | $config_xhtml_noscript $config_xhtml_old |
$config_xhtml_noscript boolean avail. since 1.60 | true false | Should noscript be used? If using mime-type text/html, set this true. If using application/xhtml+xml set this false. This setting can be overwritten using $set_xhtml_noscript. This setting depends on: $config_xhtml=true | $config_xhtml_old $config_xhtml |
$config_xhtml_old boolean avail. since 1.60 | false true | If you use CrazyStat in XHTML-files but do not set $config_xhtml true, set this true instead. (This will produce valid XHTML and document.write()-javascript which is not allowed in XHTML.) This setting depends on: $config_xhtml=false | $config_xhtml |
$config_respect_dnt boolean avail. since 1.71 | false true | Respect Do-Not-Track? If enabled, users whose browsers send the do-not-track header will not be recorded (beta, might not detect DNT under some server configurations) | $config_counter_dnt_text $config_ip_anonymous |
setting | Values (default) | Description | See also |
---|---|---|---|
$config_stat_lang string avail. since 1.70 | "en" "de" | Language (A corresponding language-file must exist in src/lang/.) | $config_stat_lang_fix |
$config_stat_password_protect boolean avail. since 1.50 | true false | Activate passwort protection? Username and password are now stored in usr/config_pass.php - default is "admin"/"pass". When logging in, you can change your password. See FAQ for more details. | $config_stat_password_md5 $config_stat_user |
$config_stat_user array (username => password) avail. since 1.62 | array ('admin' => '1a1dc91c... array('username' => md5('pa... array('user'=>'password') | This setting is saved in usr/config_pass.php. It is an array of user => password combinations, passwords can be MD5-Hashs. See FAQ. This setting depends on: $config_stat_password_protect=true | $config_stat_password_md5 $config_stat_password_protect |
$config_stat_password_md5 boolean avail. since 1.61 | true false | Are passwords in usr/config_pass.php MD5-encrypted? This setting depends on: $config_stat_password_protect=true | $config_stat_password_protect $config_stat_user $config_salt_str |
$config_stat_cache boolean avail. since 1.52 | true false | "Caching" accelerates CrazyStat by only analyzing modules whose settings have been changed (session-cache). | $config_stat_preset_file_cache |
$config_stat_preset_file_cache boolean avail. since 1.50 | true false | The "Preset-File-Cache" (PFC, formerly "Default-File-Cache", DFC) accelerates the analyzation of log files when settings of caches presets are used. This normally needs between 50KB and 3MB webspace per cached preset. | $config_stat_cache |
$config_stat_pfc_zlib boolean avail. since 1.70 | true false | Activates zlib-compression for cache-files which are created for preset-file-cache. This only works if zlib is available. This setting depends on: $config_stat_preset_file_cache=true | $config_stat_preset_file_cache |
$config_stat_long_bars boolean avail. since 1.52 | true false | Bar charts: - true: The biggest value has a full bar - false: full bar = real 100% | |
$config_stat_bar_length integer avail. since 1.61 | 100 80 120 | Width of the bar charts in pixel | |
$config_stat_pie_colors array( hex color strings ) avail. since 1.50 | array("#5151FF","#FF4242","... array("#000000","#FF0000","... | Colors for pie charts (hex values) | |
$config_stat_limit["file"] integer avail. since 1.50 | 10 12 | Number of files to display normally 0 deactivates the module "files" | |
$config_stat_files_hide_dir boolean avail. since 1.63 | true false | Module "files": Should the folder of the files be hidden? This setting depends on: $config_stat_limit["file"]>0 | $config_stat_limit["file"] |
$config_stat_files_maxlength integer avail. since 1.60 | 30 25 35 | Maximum length of filenames (shortened if longer). This setting depends on: $config_stat_limit["file"]>0 | $config_stat_limit["file"] |
$config_stat_files_delete array( strings ) avail. since 1.51 | array("") array("index.php") array("/","index.php3","inc/") | These strings will be deleted from the filenames. E.g. you could delete "index.php" so "index.php?file=xy" will be counted as "?file=xy". You could also delete certain foldernames. This setting depends on: $config_stat_limit["file"]>0 | $config_stat_files_replace $config_stat_files_preg_replace $config_stat_limit["file"] |
$config_stat_files_replace array( string search => string replace) avail. since 1.60 | array() array(".html"=>".php") | If the keys of this array appear in filenames, they will be replaced with their values. This setting depends on: $config_stat_limit["file"]>0 | $config_stat_files_delete $config_stat_files_preg_replace $config_stat_limit["file"] |
$config_stat_files_preg_replace array( string regex => string replace ) avail. since 1.62 | array() array("/index.php.*/"=>"ind... | Like $config_stat_files_replace, but regular expressions (PCRE) This setting depends on: $config_stat_limit["file"]>0 | $config_stat_files_replace $config_stat_files_delete $config_stat_limit["file"] |
$config_stat_files_link string / boolean avail. since 1.71 | false "http://www.example.com" "http://www.example.com/usr12" | Makes linking of the entries of the file-module possible. If the domain (and subdirectory, if necessary) is given here, a link will be added. If this is false, entries won't be linked. This setting depends on: $config_stat_limit["file"] > 0 | $config_stat_limit["file"] |
$config_stat_limit["resolution"] integer avail. since 1.50 | 4 5 0 | Number of Resolutions to show normally. 0 deactivates the module "resolutions". | |
$config_stat_limit["colordepth"] integer avail. since 1.60 | 3 4 0 | Number of color depths to show normally. 0 deactivates the module "color depths". | |
$config_stat_colordepth_unsaved boolean avail. since 1.61 | false true | List unsaved color depths? This setting depends on: $config_stat_limit["colordepth"]>0 | $config_stat_limit["colordepth"] |
$config_stat_limit["browser"] integer avail. since 1.50 | 4 5 0 | Number of browsers to show normally. 0 deactivates the module "browser". | |
$config_stat_limit["system"] integer avail. since 1.50 | 4 3 5 0 | Number of systems to show normally. 0 deactivates the module "systems". | |
$config_stat_limit["referer"] integer avail. since 1.51 | 3 4 5 0 | Number of referers to show normally. 0 deactivates the module "referer". | |
$config_stat_referer_empty boolean avail. since 1.51 | false true | List empty referer? This setting depends on: $config_stat_limit["referer"]>0 | $config_stat_limit["referer"] |
$config_stat_referer_ignore array( strings ) avail. since 1.52 | array() array("http://mypage.de","h... | Referers that begin with these strings will not be listed This setting depends on: $config_stat_limit["referer"]>0 | $config_stat_referer_replace $config_stat_limit["referer"] |
$config_stat_referer_replace array( string search => string replace) avail. since 1.60 | array() array("www.google.de"=>"GOO... | These string will be replaced if they appear in the referers. The key is being replaced by its value. This setting depends on: $config_stat_limit["referer"]>0 | $config_stat_referer_ignore $config_stat_limit["referer"] |
$config_stat_tree string avail. since 1.61 | "ajax" "auto" "mk" | Which tree-extension should be used as default? Attention: "auto" only works if $config_stat_password_protect=true This setting depends on: $config_stat_limit["referer"]>0 | $config_stat_password_protect $config_stat_limit["referer"] |
$config_stat_referer_tree boolean avail. since 1.60 | true false | Should tree view be default for referers? Attention: Modern browser needed. This setting depends on: $config_stat_limit["referer"]>0 | $config_stat_tree $config_stat_limit["referer"] |
$config_stat_limit["keyword"] integer avail. since 1.62 | 3 2 4 0 | Number of keywords to show normally. 0 deactivates the module "keywords". | |
$config_stat_user_online integer avail. since 1.50 | 15 10 5 20 | Users are considered "online" if their last access was not more than x minutes ago. (This setting defines x.) | $config_ip_block_time |
$config_stat_max_style string (css) avail. since 1.50 | "font-weight: bold" "color:red" | How should the highest value be marked (css)? | |
$config_stat_log_rows integer avail. since 1.53 | 40 30 50 | Number of lines per page (log view). | |
$config_stat_scroll boolean avail. since 1.60 | true false | Should CrazyStat use scrollbars by default? Attention: Modern browser required. | |
$config_stat_pie_size integer avail. since 1.61 | 89 79 99 | Size (width and hight) of pie charts (in pixel) | $config_stat_bar_length |
$config_stat_weekdays_sunday_first boolean avail. since 1.62 | false true | Sunday first day of the week (true) or last (false) | $config_stat_timezone $config_stat_lang |
$config_stat_timezone string (timezone) avail. since 1.63 | "Europe/Berlin" "America/New_York" "Europe/London" | Timezone (List see: http://php.net/manual/en/timezones.php) Attention: PHP >= 5.10 needed for this setting to take effect! | $config_stat_weekdays_sunday_first $config_stat_lang |
$config_stat_ajax boolean avail. since 1.63 | true false | Should Ajax be used? Attention: Requires a modern browser. | $config_stat_tree $config_stat_referer_tree $config_stat_scroll |
$config_stat_ext_lytebox boolean avail. since 1.70 | true false | Use lytebox-extension? If not, normal windows are used. | |
$config_stat_overlay boolean avail. since 1.70 | true false | Activate Overlay? If active, a gray box is laid over the the stat until it is fully loaded. | |
$config_stat_calendar_autorel boolean avail. since 1.70 | false true | Calendar: Automatically open form for relative timespans when a rel. timespan is active? | |
$config_stat_default_preset string avail. since 1.70 | "01_default" "preset0" | ID of the preset which is loaded on login. The ID is the filename of the preset without extension. | |
$config_stat_guest_log_delete boolean avail. since 1.70 | false true | If no password protection is active: Can logfiles be deleted via web-gui? This setting depends on: $config_stat_password_protect=false | $config_stat_password_protect |
$config_stat_guest_log_download boolean avail. since 1.70 | false true | If no password protection is active: Can logfiles be downloaded via web-gui? This setting depends on: $config_stat_password_protect=false | $config_stat_password_protect |
$config_stat_guest_preset_manage boolean avail. since 1.70 | false true | If no password protection is active: Can presets be managed via web-gui? This setting depends on: $config_stat_password_protect=false | $config_stat_password_protect |
$config_stat_guest_cache_delete boolean avail. since 1.70 | false true | If no password protection is active: Can cache be cleaned via web-gui? This allows guests to stress the server more. This setting depends on: $config_stat_password_protect=false | $config_stat_password_protect |
$config_stat_lang_fix boolean avail. since 1.70 | false true | Is the language set by $config_stat_lang fix or can it be chosen on login? | $config_stat_lang |
$config_stat_user_log_delete boolean avail. since 1.70 | true false | Are users that successfully logged in allowed to delete logfiles? Note: You can make this user-dependent: $user_config["admin"]["stat_user_log_delete"]=false; | $config_stat_guest_log_delete |
$config_stat_user_log_download boolean avail. since 1.70 | true false | Are users that successfully logged in allowed to download logfiles? Note: You can make this user-dependent: $user_config["admin"]["stat_user_log_download"]=false; | $config_stat_guest_log_download |
$config_stat_user_preset_manage boolean avail. since 1.70 | true false | Are users that successfully logged in allowed to manage presets? Note: You can make this user-dependent: $user_config["admin"]["stat_user_preset_manage"]=false; | $config_stat_guest_preset_manage |
$config_stat_user_cache_delete boolean avail. since 1.70 | true false | Are users that successfully logged in allowed to delete the cache? Note: You can make this user-dependent: $user_config["admin"]["stat_user_cache_delete"]=false; | $config_stat_guest_cache_delete |
$config_stat_memory_limit integer avail. since 1.70 | 128 64 256 | CrazyStat tries to set PHP's memory limit to this value (in MB) before analysing the statistic (using ini_set). This is done to avoid that analysing fails because of low memory limits. |
setting | Values (default) | Description | See also |
---|---|---|---|
$config_counter_enabled boolean avail. since 1.50 | true false | Enable or disable counter. When disabled, an alternative image is being loaded instead (see $config_counter_alternative). This setting can be overwritten using $set_counter_enabled. | $config_counter_alternative |
$config_counter_text boolean avail. since 1.60 | false true | Use textcounter (true) or grafic counter (false)? If textcounter: First <?php @include_once('stat/src/include.php'); ?> Then <?php echo $counter_value; ?> to display counter value. This setting can be overwritten using $set_counter_text. This setting depends on: $config_counter_enabled=true | $config_counter_enabled |
$config_counter_alternative string / boolean avail. since 1.50 | false "../logo.gif" "img/crazystat.gif" | This image will be loaded if the counter is disabled. If false, a blind (invisible) gif-image will be used. This setting depends on: $config_counter_enabled=false | $config_counter_enabled |
$config_counter_folder string avail. since 1.50 | "counter_styles" | Folder in which the counter grafics are placed (without slashes). This setting depends on: $config_counter_enabled=true | $config_counter_enabled $config_counter_file_name |
$config_counter_file_name string avail. since 1.50 | "ch_nicefont_wb.png" "ch_white_glow.png" "counter_gfx-06.png" | Counter grafic with file extension (png or gif - see FAQ). This setting can be overwritten using $set_counter_file_name. This setting depends on: $config_counter_enabled=true | $config_counter_folder $config_counter_enabled |
$config_counter_digits integer avail. since 1.50 | 6 5 4 7 | Number of digits for the counter This setting depends on: $config_counter_enabled=true | $config_counter_enabled |
$config_counter_transparency boolean avail. since 1.50 | false true | Enable transparency? (The color of the first pixel top left will be set transparent.) This setting depends on: $config_counter_enabled=true | $config_counter_enabled |
$config_counter_reload boolean avail. since 1.50 | true false | Do not count page reloads? true: IP-blocking enabled - Visitors are counted false: IP-blocking disables - page impressions are counted This setting depends on: $config_counter_enabled=true | $config_counter_enabled $config_ip_block_time |
$config_counter_add integer avail. since 1.50 | 0 500 2000 | Fix value that will be added to the real counter-value (e.g. value of the previous counter). This setting depends on: $config_counter_enabled=true | $config_counter_enabled |
$config_counter_link string avail. since 1.63 | "%CRAZYSTATPATH%src/index.php" false "http://www.christosoft.de" | Page which the countergrafic links to false = no link This setting depends on: $config_counter_enabled=true | $config_counter_enabled |
$config_counter_link_target string / false avail. since 1.62 | "_blank" "_top" false | Target-attribute of the link This setting depends on: $config_counter_link!=false | $config_counter_link |
$config_counter_cookie_text string avail. since 1.60 | "Cookie" "C" false | Text that appears in the counter grafic when a Cookie is present. false deactivates this text. See FAQ. This setting depends on: $config_counter_enabled=true | $config_counter_enabled |
$config_counter_reload_show boolean avail. since 1.50 | false true | If its a reload, should a text appear inside the counter? This setting depends on: $config_counter_enabled=true | $config_counter_enabled |
$config_counter_reload_show_text string avail. since 1.50 | "R" "Reload" | Text that will be shown if it's a reload This setting depends on: $config_counter_enabled=true | $config_counter_enabled |
$config_counter_reload_show_pos["x"] flaot avail. since 1.50 | 1/14 | Position of the reload-text: x>1 = from left side 0<x<1 = fraction from left (0.5=center) -1<x<0 = fraction from right x<-1 = from right side This setting depends on: $config_counter_enabled=true | $config_counter_enabled |
$config_counter_reload_show_pos["y"] float avail. since 1.50 | 4/5 | Position of the reload-text y>1 = from top 0<y<1 = fraction from top (0.5=middle) -1<y<0 = fraction from bottom y<-1 = from bottom This setting depends on: $config_counter_enabled=true | $config_counter_enabled |
$config_counter_reload_show_size integer avail. since 1.50 | 1 2 3 4 5 | Font-size of the Reload-text (1-5) This setting depends on: $config_counter_enabled=true | $config_counter_enabled |
$config_counter_reload_show_col["r"] integer avail. since 1.50 | 255 0 128 | Font color of the text (red) (0-255) This setting depends on: $config_counter_enabled=true | $config_counter_enabled |
$config_counter_reload_show_col["g"] integer avail. since 1.50 | 0 255 | Font color of the Reload-Text (green) (0-255) This setting depends on: $config_counter_enabled=true | $config_counter_enabled |
$config_counter_reload_show_col["b"] integer avail. since 1.50 | 0 255 | Font color of the Reload-Text (blue) (0-255) This setting depends on: $config_counter_enabled=true | $config_counter_enabled |
$config_counter_reload_show_back boolean avail. since 1.50 | true false | Should the text have a background color? This setting depends on: $config_counter_enabled=true | $config_counter_enabled |
$config_counter_reload_show_back_col["r"] integer avail. since 1.50 | 255 0 | Background color red (0-255) This setting depends on: $config_counter_reload_show_back=true | $config_counter_reload_show_back |
$config_counter_reload_show_back_col["g"] integer avail. since 1.50 | 255 0 | Background color green (0-255) This setting depends on: $config_counter_reload_show_back=true | $config_counter_reload_show_back |
$config_counter_reload_show_back_col["b"] integer avail. since 1.50 | 255 0 | Background color blue (0-255) This setting depends on: $config_counter_reload_show_back=true | $config_counter_reload_show_back |
$config_counter_dnt_text string / boolean avail. since 1.71 | false "DNT" "not tracked" | Text that is shown in the counter image when do-not-track was detected and enabled. This setting depends on: $config_respect_dnt=true; $config_counter_enabled=true | $config_respect_dnt $config_counter_enabled |