DeutschEnglish

Untermenü

 - - - By CrazyStat - - -
Last modified:
27.11.2015 - 15:36:25

FAQ

Here are some frequently asked questions about CrazyStat.
Attention: This file is translated using Google translator toolkit and only the questions have been manually checked and corrected. A better translation that has been completely manually checked and corrected is available on documentation.crazystat.de at the moment.

Tip: Using the search function of your browser might be useful to find what you're looking for (usually via [Ctrl] + [F])

I inserted the code in my page, but no hits are counted

Please check that the file in which you inserted the code has the file extension ".php". The file extensions ".htm" or ".html" work on some servers, but if it does not work, you must rename the file to ".php" (all files in which the code is included / which should be counted) .
If you do not want this (e.g. because many links had to be changed) you can also use an alternative code that works for ".htm" or ".html" files. Of which there are again two variants, one for HTML pages and one for XHTML pages that are listed in FAQ.
If the file extension is ".php", check that all steps of the installation instructions have been followed correctly (please read the detailed explanation).

Top

How do I convert a (counter) image to PNG graphics format?

The easiest way is using the following page: http://graphic2png.christosoft.de/?lang=en
Alternatively, you can download the free program IrfanView ( http://www.irfanview.com/). Just open the image and click "File" / "Save As" and select PNG as the file type.

Top

How do I set CHMOD?

You can do this in your FTP program. Just right-click the file and choose "Actions / FTP Commands / CHMOD (Unix)" (WS_FTP Pro), "chmod (Unix)" (WS_FTP95), "Change file attributes / Commands / FTP-Commands/CHMOD (Unix) "(WS_FTP Pro MANUAL)," File Attributes "(FileZilla) or similar. 777 corresponds to full rights, so check all clicked.
If you work directly on the server running Linux, you can the rights to the file manager, suchB. Change Konqueror. Just click the file to the right and select Properties and then Permissions. Alternatively, you can in the shell (for, Via ssh) use the chmod command (forB. "chmod-R 777 stat/stat usr/src/log-tool". See "man chmod").

Top

How do I update from version 1.6x or 1.5x?

Please read through these instructions first in peace, before you run it.

Connect before you update the statistics if it is open (log out) and you can find it, not before you reach step 7.

  1. Install CrazyStat 1.70 in another directory (forB. "stat_"), set $config_rel_path but in the old directory (forB. "stat").
  2. Adjust the file stat_/usr/config.php "in the new directory (accept any changed settings from the old one) to. Note: Some settings have new names. In addition, config.php contains only the most important settings, more can be added. Please see config_settings_en.html
  3. Copy the log files from the old directory (e.g. stat/logs) in the logs folder of the new directory (forB. stat_/usr/logs).
  4. Call the CrazyStat log tool in the browser (e.g. stat_/src/log-tool/index.php) and follow the wizard. It is important that the log files no "simple compression" spend more, but gz compression or none at all and are stored in log format "1.6".
  5. Integration code: File "stat/eintrag.php", which is included for statistical collection, is now called "stat/src/include.php". You can do this wherever CrazyStat change put, if so little work. If you have the ability to create a symlink (for, Via ssh) is also this possible:
    ln-s stat/src/include.php stat/eintrag.php
    Third, you can simply create a file with the following content as a stat/eintrag.php:
    <?php
    // CrazyStat backwards-compatibility-file stat/eintrag.php
    include_once( dirname ( __FILE__ ). '/src/include.php' );
    ?>

  6. Rename the old folder to (forB. "stat_back"). Rename the new folder in the name of the old (forB. "stat").
  7. Call the statistics in the browser (forB. "stat/src / show_stat.php"). User and password are "admin" to the default values and password "pass" is reset and can be changed at login. See "How can I change user names, passwords or create new users to reset?" if you want to create additional users (again) (the taking over of config_pass.php CrazyStat 1.6x does not work).
  8. Delete the old folder (forB. "stat_back"), if the statistics works fine.

Top

How can I change user names, passwords, reset or create new users?
Or, "I forgot my password"
Or: "I have $config_salt_str changed and can not log in anymore "

The access data in the file usr/config_pass.php in the array $config_stat_user stored. The file has the following structure:

<?php $config_salt_str = 'SomeRand0m_strlng'; $config_stat_user = array (
'Admin' => '1 a1dc91c907325c69271ddf0c944bc72 '
);>

The first file contains the "salt" string, which is set on the first call the login form automatically after the installation to a random value. This value should then not be changed. The first and last line of the file are thus established. In between, a line for each user is created. First is the user name in double quotes, => and then the password in quotation marks. This may (as here) are present as MD5 encrypted (if $config_stat_password_md5 = true). This is followed by a comma. To create a new user, so it adds another line. Example:

<?php $config_salt_str = 'SomeRand0m_strlng'; $config_stat_user = array (
'User1' => '1 a1dc91c907325c69271ddf0c944bc72 '
'User2' => md5 ('password'. $config_salt_str)
);>

If $config_stat_password_md5 = true, have passwords as MD5 hash that all. Nevertheless, to simply as possible to provide a password for new users, you can pass the password to the md5 function so that it is encrypted (see Example However, it is the password in the file stored in plain text and the encryption is useless. To increase security, you can now call show_stat.php and "change password" to assign the same (or other) password. This is then automatically encrypted and stored. From CrazyStat 1.70 still needs $config_salt_str password attached to the source, before the MD5 hash is formed (see Example This way, you can regain access to your statistics get even, if the $config_salt_str have changed manually.

Attention! After a change of config_pass.php ensure that the file is chmod 777.

Top

How do I reset the stats?

Just delete the log files. Log in to the statistics, click on the "Logs" (next to the logout button upper right). Select all the files and click the Delete icon.
Alternatively, you can delete the files via FTP / SSH. They are located by default in the "usr/logs" (the folder is about $config_logfile_folder customizable). Delete all files in that folder to the file. Htaccess, this protects your log files from being accessed by strangers.
If "Preset-File-Cache" use, click the icon "Cache" in statistics to (Flash icon at the top right) to empty the cache.

Top

What is the Counter-file counter.log "?

Herein CrazyStat stores three values (each line): position in the last log file from the blocked IPs may still start, total hits barrier, total hits with no IP block (without using IP $config_counter_add ). This information is used CrazyStat a quick counter to implement, but they are required even if the counter is stopped. You can read this data with your own scripts, for a simple text counter is the built-in recommended.
This file is automatically created. If the value is incorrect, he shall be adjusted when evaluating the statistics on show_stat.php. to backuppen This file is hardly useful, since it can be generated automatically from the log files. This file is always created in the same directory as the log files must be present for the directory writable (CHMOD 777).

Top

In Internet Explorer, loading the statistics takes extremely long.
Or: In other browsers, loading the module "referrer" takes very long.

When the shop in the Internet Explorer takes a long time, that is probably because the Internet Explorer the table with the results only indicate when it is fully charged. If theReferer or as many files must be loaded, this can be extremely time-consuming. Especially when using the plugin "mktree" for the display of the referers, have large data to be loaded before Internet Explorer can display the results. In this case, it is advisable to use the AjaxTree plugin. To enforce AjaxTree just $config_stat_tree = "ajax" set. Alternatively $config_stat_referer_tree = false set to default to disable tree view.

Top

What does $config_xhtml change?

If this setting is true, is not CrazyStat document.write command to use the JavaScript for integration because it is no longer allowed in XHTML. Instead, using "document.getElementById" or "document.all" involved statistics. Please note that this type of integration is allowed in XHTML, but can result in older browsers are not covered. So that a visitor is recorded, it must be browser in this setting as follows:
- Document.getElementById ("id") or document.getElementById ("id")
- The JavaScript event handler window.onload = function internal;

Top

What is different in the log format 1.6?

The log format used by 1.6 is 1.6x and 1.7x CrazyStat. It is more compact than the format 1.5 which in CrazyStat 1.5x was used, although it does not store less data. This is because suchExample, only the timestamp is stored and the date/time in the evaluation are generated from it. Thus, the log file will be smaller by up to 20%. The evaluation of the new log files can take a little longer. Log files can use the tool CrazyStat log into the new format and be converted back. CrazyStat 1.70 no longer supports the "compression" from version 1.6x, but real gz compression (see next question).

Top

What is "compression", gz compression and zlib?

would be "compression" is a simple procedure that was used in CrazyStat 1.6x to make logs of the 1.6 format by up to 50% smaller than it uncompressed. This process has not stored if they are identical with those of the log line above about it were. CrazyStat 1.70 now supports (only) real compression in gz format ("gz-compression" and "zlib-compression"), which allows much higher compression ratios. gz compression is $config_log_zlib enabled (default). It is always when a new log file is created the previous compressed (the last log file is for performance reasons, native). You should always gz compression related to splitting into (see $config_logfile_maxsize ).
You can use the log-compress or decompress Logdatein tools.

Top

How do I use the CrazyStat log tool and what is it for?

The log tool allows you to convert CrazyStat log files of different formats, compress or decompress to split and to join them and subsequently made anonymous IPs. The log tool analyzes the log files (do not forget this is CrazyStat responsible).

It is located in the "src/log-tool". If you have already uploaded CrazyStat 1.7x on a web server, set the CHMOD of the folder "log-tool" to 777, if you have not already (see FAQ ). Call it then (http://ihrserver.de/stat/src/log-tool/) and enter the password. If you only want to run the logtools, please use the standalone version, which, under http://www.christosoft.de/Download available as a download.

Top

What does "Do not count hits from this computer"? Or:
What does "cookie" in the counter mean and how do I turn it off?

If you log in and select this check mark is placed on your computer a cookie. This is a small file that is automatically deleted if you do not log in 30 days with this option. When you visit your page to check whether this file exists. If it does, your call is not written in the log file. Moreover, "the text" cookie (or in $config_counter_cookie_text set) appears in the Counter. The properties of the "cookie" text match those of the reload the text, they can be adjusted in "config.php". To hide the text, simply $config_counter_cookie_text false rely on.

Top

How do I embed CrazyStat into files that are placed in different folders?

--- 1 Possibility: ---
You put this in "config.php", the following setting:
$config_different_rel_paths = true;
Suppose that the statistic is in the folder "stat". They now want to include in the file "Bild1.php" in the Pictures folder and the file "index.php" in the root directory. Then see the codes to include the statistics are as follows:
Bild1.php: <?php $set_rel_path ="../ stat/"; @include_once ("../stat/src/include.php");>
index.php: <?php $set_rel_path = "/ stat"; @include_once ("stat/src/include.php");>
In $set_rel_path ie the relative path is specified by the file statistics. Here's a final slash is required. The function include_once get the relative path to the file "include.php" passed in the Statistics folder. When using this feature set as possible in all files $ set_rel_path.

2.Possibility
You bet $config_rel_path to the path of the domain of view, starting with a slash. Example: "http://www.meineseite.de/stat/" -> $config_rel_path = "/ stat /".
This option is not recommended and does not always work. (Not if $config_xhtml = true and $config_counter_enabled = true)

--- 3 Possibility: ---
You bet $config_rel_path to the absolute path (URI) on statistics, ie, forB. "http://www.meineseite.de/stat/. This option is not recommended and does not always work.
(Not if $config_xhtml = true and $config_counter_enabled = true)

Top

How do I display the counter on certain pages?

By using the following code on the page where the counter to appear:
<?php $set_counter_enabled = true; @include_once("stat/src/include.php");>
And the following code on the page on which he did not want to see:
<?php $set_counter_enabled = false; @include_once("stat/src/include.php");>

Top

How can I use different counter-styles on different sites?

You can set the counter graphic for each page by using the following code to include:
<?php $config_counter_file_name = 'ch_arial_blue.png';
@include_once ("stat/src/include.php");>
The counters, all graphics are in the same folder, the file name must be adjusted in the above example of course.

Top

How can I include CrazyStat on XHTML pages in XHTML mode and HTML pages in HTML mode?

may be involved in the mode CrazyStat be gestuert $config_xhtml about. If this setting does not apply to all pages, set_xhtml the mode to be set before including per $.
Example <?php $set_xhtml = true; @include_once("stat/src/include.php"); ?>
Also $config_xhtml_noscript can be adapted over $set_xhtml_noscript.

Top

The counter was higher before I opened the statistics?

The counter was extremely accelerated, but with a few minor bugs, although sometimes it is one he should not (very rare). When you call the statistics of the counter is corrected since the statistics evaluates the entire logfile is in contrast to the fast counter errors.

Top

The counter was higher before I updated?

After 1.60 RC3 Robots are not counted, s. "How do I block XY Robot" . In new versions of the list is extended to the robot, the effect of reducing the "hits" after the update a little. You can use $config_counter_add to compensate.

Top

How can I see the visitors that just hit my site?

When enabled, caching the results are cached. Thus, the evaluation time is reduced. However, the data are therefore not completely up to date. To see the current data, click on "Update All" or turn off caching entirely by setting $config_stat_cache to false.
After logging the data is always current. Using "Cache" is not necessary to see the current visitor, "All Update" is enough.

Top

What does "Update All"?

Thus, the temporarily stored results will be deleted to speed the CrazyStat. This data is created each time the statistics and then used to log out. If no password protection is used, this data is also erased after a short time (session) data.

Top

What does "Clear Cache" (lightning symbol)?

This is the "Preset-File-Cache deleted. This cache speeds up the evaluation of statistics with the settings for most presets considerably. If you must delete the cache statistics are evaluated from scratch, which can take a while. Any errors can be corrected by clearing the cache might. You also need to change the setting to delete cache (see next question ). "Manage Presets" on can be set for each preset individually whether to cache or not.

Top

I have changed settings in config.php (e.g. IP-blocking) or browser.txt or robots.txt, but the results do not change?

Click "Clear Cache" (lightning icon). The old results are still in the cache, the statistics has to be evaluated only with the new settings (all settings changes that affect the evaluation).

Top

Does the counter have to be linked?

No, you are betting $config_counter_link simply false, and he disappears.

Top

What are extensions?

The files in the folder "extensions" are increasing JavaScript extensions to the convenience of CrazyStat. However, they are not necessary, ie You can delete it. "Calendarpopup.js" is responsible for the calendar to set a time when "md5.js" is responsible for transmitting the encrypted passwords. The files "lytebox.css" and "lytebox.js" are for "Lytebox (modal window for calendar, etc.)," sortabletable.js "to sort the tables by clicking. The other files are needed for the tree view of the referer. There is no plug-in interface or the like which you could easily write extensions.

Top

Why do the statistics sometimes load quite a while and sometimes come up directly?

This is because CrazyStat is optimized for speed. Thus, in the switched IP blocks most lines analyzed did not know when the cache, only the modules re-evaluated, the settings have been changed. Thus CrazyStat need the shorter, the less settings have been changed (if the statistics
already been analyzed) and the more IP blocks are connected. Furthermore, thanks to upgraded CrazyStat "Preset-File-Cache" from the statistics much faster when a preset is active and for caching is enabled.

Top

Why do some files show up twice in "file"-module?

Because the file is located in a different folder than the other. To figure out in which you move your mouse over the file name and wait a moment. The full path of the file appears.
You can also set $config_stat_files_hide_dir = false, so that always the full path is displayed.

Top

How can I see the exact percentages?

Go see the mouse over the bar graph and you get what percentage of it is accurate.

Top

Why does CrazyStat not know browser xyz? Or:
How do I customize the browser detection?

CrazyStat can easily add additional browsers, change or remove.
There are the file usr/keywords browser.txt /, which governs the browser detection. In every line there is the "identification string", the outputs in the browser "User Agent" (for"MSIE 6 "). If the browser in CrazyStat are not listed under his identification string, but under a different name, you can add these names with an equal sign ("Discovery String = Browser Name"). The file "browser.txt" should CHMOD 777 (or 644) have.

Top

How do I block XY Robot? Or:
How do I see which robots access my site?

CrazyStat other robots can easily add, remove, or change. There are the file usr/keywords / robots.txt, which regulates the blocking of the robots. In every line there is the "identification string" of the robot clearly identified in the "User Agent". All requests for which the recognition string Robots one in the user agent is mentioned are not counted. This includes the browser detection, here diving robot robots.txt not to. To count as robots, empty robots.txt file, you simply.
The robots.txt Robots are not even counted by the counter. If you change the robots.txt file, the counter status is adjusted according to the evaluation of statistics on show_stat.php with new settings. The robots.txt file should be CHMOD 777 (or at least 644) have.

Top

How do I customize "Hits/Keyword"-module?

In the file usr/keywords/queryregex.txt regular expressions can be defined that influence the evaluation of search terms. For each regular expression a row is created. The line begins with the regex (PCRE, separators (usually /) included). After a tab followed by a number indicating the clip, which encloses the search term. CrazyStat first checks whether the regular expression "fits", if so, the contents of the specified clamp adopted as the search term and counted.
Example:

/Q =([^&]*)&.1.

This expression evaluates the contents of the parameter q as the search term (for all pages). The file "queryregex.txt" should CHMOD 777 (or 644) have.

Top

How do I embed CrazyStat in HTML files?

CrazyStat can also be in HTML files with the extension. "Html" or ". Htm" it. This has the advantage that not the entire link structure of the site needs to be changed, if not all files ending in ".php". This can be critical in large pages. Nevertheless, this method is not recommended as it will change this code CrazyStat CrazyStat version to version, and thus be changed when updating the code in each file must be. If you want to use this method anyway, use the following code and replace PATH with the path to "stat.php" (usually "stat"). FILE must also be replaced by the file name.

<!-- BEGIN CrazyStat 1.70, Copyright (C) 2004-2010 Christopher Kramer http://www.christosoft.de /-->
<script type="text/javascript" language="javascript">
var jetzt=new Date();
document.write ('<img src=\"PATH/src/stat.php?breite='+screen.width+'&amp;hoehe='+screen.height+'&amp;colors='+screen.colorDepth+'&amp;datei=FILE&amp;referer='+document.referrer+'&amp;t='+jetzt.getTime()+'\" alt=\" - - - By CrazyStat - - - \" title=\" - - - By CrazyStat - - - \" border="0" />');
</script>
<noscript><img src="PATH/src/stat.php?datei=FILE&amp;referer=keinJS" alt=" - - - By CrazyStat - - - " title="- - - By CrazyStat - - - " border="0" /></noscript>
<!-- END CrazyStat /-->

Top

How do I embed CrazyStat into XHTML files?

CrazyStat can also be in XHTML files with the extension. "Html", ". Htm" or. "Xhtml" it. This has the advantage that not the entire link structure of the site needs to be changed, if not all files ending in ".php". This can be critical in large pages. Nevertheless, this method is not recommended as it will change this code CrazyStat CrazyStat version to version, and thus be changed when updating the code in each file must be. If you want to use this method anyway, use the following code and replace PATH with the path to "stat.php" (usually "stat"). FILE must also be replaced by the file name.

If you want to embed CrazyStat in XHTML documents, you can use the following (valid) code (see "What changed $config_xhtml?" ).

<!-- BEGIN CrazyStat 1.70, Copyright (C) 2004-2010 Christopher Kramer http://www.christosoft.de /-->
<script type="text/javascript" language="javascript">
/* <![CDATA[ */
function CrazyStat()
{
if (typeof(crazystat_oldOnLoad)=='function') crazystat_oldOnLoad();
var jetzt=new Date();
var CrazyStatUrl='PATH/src/stat.php?breite='+screen.width+'&hoehe='+screen.height+'&colors='+screen.colorDepth+'&datei=FILE&referer='+document.referrer+'&t='+jetzt.getTime();
if(document.getElementById) obj=document.getElementById('CrazyStatImage'); else if(document.all) obj=document.all('CrazyStatImage');
obj.src=CrazyStatUrl;
}
var crazystat_oldOnLoad=window.onload;
window.onload=CrazyStat;
/* ]]> */
</script>
<img id="CrazyStatImage" src="PATH/src/img/blind.gif" alt=" - - - By CrazyStat - - - " title=" - - - By CrazyStat - - - " style="border:0px" />
<noscript><img src="PATH/src/stat.php?datei=FILE&amp;referer=keinJS" alt=" - - - By CrazyStat - - - " title=" - - - By CrazyStat - - - " style="border:0px" /></noscript>
<!-- END CrazyStat /-->

Top

What is important in XHTML files?

If you use XHTML files with the correct mime type (forBe as application/xhtml + xml delivered) can cause the following problems: First, it shows the Internet Explorer will not be in (regardless of CrazyStat), for calls to other Gecko browsers (and possibly others) are counted twice by CrazyStat because these browsers load the graphics in the <noscript> area. To avoid this, set $config_xhtml_noscript = false. It will be recognized, however, only browser with JavaScript. In mime-type text/html there are no problems.

Top

Can I include multiple CrazyStat installations/different CrazyStat versions on one page?

This is technically possible but not recommended. Please ensure that you always log out before logging into another installation! Different installations and Versions are certainly give different results, this is due to the settings. Thus, in different versions of a different number of robots are ignored. Moreover, the results can heavily influence by config settings, especially on the IP block.

Top

I want to remove Session-IDs / parameter XY from the file entries. How does it work?

Over $config_stat_files_preg_replace one can use regular expressions in the entries of the module files. This parameter also can be removed from the entries. The following setting removes all parameters:
$config_stat_files_preg_replace = array ('/ \?.*/'=>'');
A certain parameter can be removed as follows:
$config_stat_files_preg_replace = array ('/[&?]PHPSESSID =[^&]*/'=>'');
To ensure that all PHPSESSID parameter be removed (and value).
Information about regular expressions, see, forExample here:
http://www.drweb.de/php/regulaere-ausdruecke.shtml
If you want to pay close attention so that I can recommend the following book:
Regular Expressions by Jeffrey Friedl ISBN: 3-89721-349-4

Top

Nothing found?

More information can be found in the README file . If you do not find anything there as well, please ask in the forum. Using the search feature (Ctrl + F) will help in dealing with this document the way, even more dramatically;)

Top