Skip to content

Commit 906e9ed

Browse files
author
Clive Darr
committed
initial upload
1 parent aacb7ce commit 906e9ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+7369
-0
lines changed

INSTALL

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Installation steps should be found on http://www.labsmedia.com/clickheat/installation.html
2+
3+
La description de l'installation devrait se trouver sur http://www.labsmedia.fr/clickheat/installation.html

LICENSE

+86
Large diffs are not rendered by default.

LISEZMOI

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Merci de lire les instructions sur http://www.labsmedia.fr/clickheat/
2+
3+
Ce logiciel est GPL Open Source. Plus d'informations sur les droits liés à ce logiciel dans le fichier LICENSE (en anglais) ou sur http://www.opensource.org/licenses/gpl-license.php (en anglais aussi)

VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.11

cache/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deny From All

check.php

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?php
2+
/**
3+
* ClickHeat : Test de la configuration / Configuration check
4+
*
5+
* @author Yvan Taviaud - LabsMedia - www.labsmedia.com
6+
* @since 04/12/2006
7+
**/
8+
9+
/** Direct call forbidden */
10+
if (!defined('CLICKHEAT_LANGUAGE'))
11+
{
12+
exit;
13+
}
14+
15+
$checks = true;
16+
?>
17+
<span class="float-right">
18+
<?php
19+
foreach ($__languages as $lang)
20+
{
21+
echo '<a href="', CLICKHEAT_INDEX_PATH, 'language=', $lang, '"><img src="', CLICKHEAT_PATH, 'images/flags/', $lang, '.png" width="18" height="12" alt="', $lang, '" /></a> ';
22+
}
23+
?></span>
24+
<div id="clickheat-box">
25+
<h1><?php echo LANG_CHECKS ?></h1>
26+
<br /><br />
27+
<table cellpadding="0" cellspacing="5" border="0">
28+
<tr><td><?php echo LANG_CHECK_WRITABLE ?><br />(<?php echo dirname(CLICKHEAT_CONFIG) ?>/)</td><td>
29+
<?php
30+
/** Test if current path is writable for config.php : */
31+
$f = fopen(dirname(CLICKHEAT_CONFIG).'/temp.tmp', 'w');
32+
if ($f === false)
33+
{
34+
$checks = false;
35+
echo '<img src="'.CLICKHEAT_PATH.'images/ko.png" width="16" height="16" alt="KO" /></td><td>', LANG_CHECK_NOT_WRITABLE;
36+
}
37+
else
38+
{
39+
fputs($f, 'delete this file');
40+
fclose($f);
41+
unlink(dirname(CLICKHEAT_CONFIG).'/temp.tmp');
42+
echo '<img src="'.CLICKHEAT_PATH.'images/ok.png" width="16" height="16" alt="OK" /></td><td>&nbsp;';
43+
}
44+
?></td></tr>
45+
<tr><td><?php echo LANG_CHECK_GD ?></td><td>
46+
<?php
47+
if (function_exists('imagecreatetruecolor') === false)
48+
{
49+
$checks = false;
50+
echo '<img src="'.CLICKHEAT_PATH.'images/ko.png" width="16" height="16" alt="KO" /></td><td>', LANG_CHECK_GD_IMG;
51+
}
52+
elseif (function_exists('imagecolorallocatealpha') === false)
53+
{
54+
$checks = false;
55+
echo '<img src="'.CLICKHEAT_PATH.'images/ko.png" width="16" height="16" alt="KO" /></td><td>', LANG_CHECK_GD_ALPHA;
56+
}
57+
elseif (function_exists('imagepng') === false)
58+
{
59+
$checks = false;
60+
echo '<img src="'.CLICKHEAT_PATH.'images/ko.png" width="16" height="16" alt="KO" /></td><td>', LANG_CHECK_GD_PNG;
61+
}
62+
else
63+
{
64+
echo '<img src="'.CLICKHEAT_PATH.'images/ok.png" width="16" height="16" alt="OK" /></td><td>&nbsp;';
65+
}
66+
?></td></tr>
67+
<tr><td colspan="3" align="center">&nbsp;<br /><br />
68+
<?php
69+
if ($checks === false)
70+
{
71+
echo LANG_CHECKS_KO;
72+
}
73+
else
74+
{
75+
echo LANG_CHECKS_OK, ' <a href="', CLICKHEAT_INDEX_PATH, 'action=config"><img src="'.CLICKHEAT_PATH.'images/next.png" width="16" height="16" alt="Next" /></a>';
76+
}
77+
?></td></tr>
78+
</table>
79+
</div>

0 commit comments

Comments
 (0)