Overview
Comment:Bon c'est dans install.php qu'il faut renommer le fichier, car c'est là qu'on va arriver
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8015160a153906a3c609be80dda61e76d2100b23
User & Date: bohwaz on 2013-03-10 10:52:54
Other Links: manifest | tags
Context
2013-03-12
23:54
Tentative de résoudre [117dbbfe67] check-in: 570569e36a user: bohwaz tags: trunk, 0.5.0
2013-03-10
10:52
Bon c'est dans install.php qu'il faut renommer le fichier, car c'est là qu'on va arriver check-in: 8015160a15 user: bohwaz tags: trunk
2013-03-04
00:21
Uniformisation avec l'édition de membre : quand on clique sur le mot de passe proposé, il est rempli dans les champs indiqués. check-in: 8ad10a8439 user: bohwaz tags: trunk
Changes

Modified www/admin/install.php from [84f0fd717b] to [e3e67a625a].

42
43
44
45
46
47
48













49
50
51
52
53
54
55

    exit;
}

define('GARRADIN_INSTALL_PROCESS', true);

require_once __DIR__ . '/../../include/init.php';













$tpl = Template::getInstance();

if (file_exists(GARRADIN_DB_FILE))
{
    $tpl->assign('disabled', true);
}
else







>
>
>
>
>
>
>
>
>
>
>
>
>







42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68

    exit;
}

define('GARRADIN_INSTALL_PROCESS', true);

require_once __DIR__ . '/../../include/init.php';

if (!file_exists(GARRADIN_DB_FILE))
{
    // Renommage du fichier sqlite à la version 0.5.0
    $old_file = str_replace('.sqlite', '.db', GARRADIN_DB_FILE);

    if (file_exists($old_file))
    {
        rename($old_file, GARRADIN_DB_FILE);
        utils::redirect('/admin/upgrade.php');
    }
}

$tpl = Template::getInstance();

if (file_exists(GARRADIN_DB_FILE))
{
    $tpl->assign('disabled', true);
}
else

Modified www/admin/upgrade.php from [356a7e6c9b] to [692cb914c4].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
namespace Garradin;

define('GARRADIN_UPGRADE_PROCESS', true);

require_once __DIR__ . '/../../include/init.php';

if (!file_exists(GARRADIN_DB_FILE))
{
    // Renommage du fichier sqlite à la version 0.5.0
    $old_file = str_replace('.sqlite', '.db', GARRADIN_DB_FILE);

    if (!file_exists($old_file))
    {
        utils::redirect('/admin/install.php');
    }
    else
    {
        rename($old_file, GARRADIN_DB_FILE);
    }
}

$config = Config::getInstance();

$v = $config->getVersion();

if (version_compare($v, garradin_version(), '>='))
{
    throw new UserException("Pas de mise à jour à faire.");







<
<
<
<
<
<
<
<
<
<
<
<
<
<
<







1
2
3
4
5
6
7















8
9
10
11
12
13
14
<?php
namespace Garradin;

define('GARRADIN_UPGRADE_PROCESS', true);

require_once __DIR__ . '/../../include/init.php';
















$config = Config::getInstance();

$v = $config->getVersion();

if (version_compare($v, garradin_version(), '>='))
{
    throw new UserException("Pas de mise à jour à faire.");