Overview
Comment:Correction reconnaissance automatique de l'URL + création répertoire cache graphiques
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9c9f13d8c107d89bffe009a960fab1afa948786a
User & Date: bohwaz on 2012-12-08 13:03:59
Other Links: manifest | tags
References
2012-12-08
13:12 Closed ticket [8a902a5275]: mauvaise detection de l'uri plus 2 other changes artifact: e78d7f7fcc user: bohwaz
Context
2012-12-19
02:51
Correction position du report à nouveau cf. [259ee2aeb9] check-in: 774f723a86 user: bohwaz tags: trunk
2012-12-08
13:03
Correction reconnaissance automatique de l'URL + création répertoire cache graphiques check-in: 9c9f13d8c1 user: bohwaz tags: trunk
2012-10-23
04:29
Version 0.4.4 check-in: b81d8c8f14 user: bohwaz tags: trunk
Changes

Modified include/init.php from [8412e3b7ab] to [f8252b41a0].

62
63
64
65
66
67
68
69

70
71
72
73
74
75
76
{
    define('GARRADIN_DB_SCHEMA', GARRADIN_ROOT . '/include/data/schema.sql');
}

if (!defined('WWW_URI'))
{
    // Automagic URL discover
    $path = substr(GARRADIN_ROOT . '/www', strlen($_SERVER['DOCUMENT_ROOT']));

    $path = (!empty($path[0]) && $path[0] != '/') ? '/' . $path : $path;
    $path = (substr($path, -1) != '/') ? $path . '/' : $path;
    define('WWW_URI', $path);
}

if (!defined('WWW_URL'))
{







|
>







62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
    define('GARRADIN_DB_SCHEMA', GARRADIN_ROOT . '/include/data/schema.sql');
}

if (!defined('WWW_URI'))
{
    // Automagic URL discover
    $path = str_replace(GARRADIN_ROOT . '/www', '', getcwd());
    $path = str_replace($path, '', dirname($_SERVER['SCRIPT_NAME']));
    $path = (!empty($path[0]) && $path[0] != '/') ? '/' . $path : $path;
    $path = (substr($path, -1) != '/') ? $path . '/' : $path;
    define('WWW_URI', $path);
}

if (!defined('WWW_URL'))
{

Modified www/admin/compta/graph.php from [c66f1d471e] to [c331553672].

4
5
6
7
8
9
10
11







12
13
14
15
16
17
18
19
20

if (!in_array(utils::get('g'), array('recettes_depenses', 'banques_caisses', 'dettes')))
{
	throw new UserException('Graphique inconnu.');
}

$graph = utils::get('g');








require_once GARRADIN_ROOT . '/include/lib.static_cache.php';
Static_Cache::setCacheDir(GARRADIN_ROOT . '/cache/static');

if (Static_Cache::expired('graph_' . $graph))
{
	require_once GARRADIN_ROOT . '/include/class.compta_stats.php';
	$stats = new Garradin_Compta_Stats;

	require_once GARRADIN_ROOT . '/include/libs/svgplot/lib.svgplot.php';








>
>
>
>
>
>
>

|







4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

if (!in_array(utils::get('g'), array('recettes_depenses', 'banques_caisses', 'dettes')))
{
	throw new UserException('Graphique inconnu.');
}

$graph = utils::get('g');

define('GRAPH_CACHE_DIR', GARRADIN_ROOT . '/cache/static');

if (!file_exists(GRAPH_CACHE_DIR))
{
	mkdir(GRAPH_CACHE_DIR);
}

require_once GARRADIN_ROOT . '/include/lib.static_cache.php';
Static_Cache::setCacheDir(GRAPH_CACHE_DIR);

if (Static_Cache::expired('graph_' . $graph))
{
	require_once GARRADIN_ROOT . '/include/class.compta_stats.php';
	$stats = new Garradin_Compta_Stats;

	require_once GARRADIN_ROOT . '/include/libs/svgplot/lib.svgplot.php';