Overview
Comment:rc3 + affichage des numéros de téléphone
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1fecbd538de5a6492e6e87aa47966fdf25ecb726
User & Date: bohwaz on 2014-04-14 00:38:26
Other Links: manifest | tags
Context
2014-04-14
01:07
Suppression lib JS en trop (version minifiée suffisante) + On s'assure de supprimer l'index avant de le recréer + On met à jour l'index quand on change la config aussi check-in: 92c8bdfeaa user: bohwaz tags: trunk
00:38
rc3 + affichage des numéros de téléphone check-in: 1fecbd538d user: bohwaz tags: trunk
00:03
Normalisation numéro de téléphone : suppression du (0) check-in: 3044b2f967 user: bohwaz tags: trunk
Changes

Modified src/VERSION from [7ded3e1a5e] to [84a05c21bf].

1
0.6.0-rc2
|
1
0.6.0-rc3

Modified src/include/lib.template.php from [5bb0e07573] to [1c90c5b7f3].

80
81
82
83
84
85
86









87


88
89
90
91
92
93
94

    return htmlspecialchars((string)$value, ENT_QUOTES, 'UTF-8');
}

function tpl_format_tel($n)
{
    $n = preg_replace('![^\d\+]!', '', $n);









    $n = preg_replace('!(\+?\d{2})!', '\\1 ', $n);


    return $n;
}

function tpl_strftime_fr($ts, $format)
{
    return utils::strftime_fr($format, $ts);
}







>
>
>
>
>
>
>
>
>
|
>
>







80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105

    return htmlspecialchars((string)$value, ENT_QUOTES, 'UTF-8');
}

function tpl_format_tel($n)
{
    $n = preg_replace('![^\d\+]!', '', $n);

    if (substr($n, 0, 1) == '+')
    {
        $n = preg_replace('!^\+(?:1|2[07]|2\d{2}|3[0-469]|3\d{2}|4[013-9]|'
            . '4\d{2}|5[1-8]|5\d{2}|6[0-6]|6\d{2}|7\d|8[1-469]|8\d{2}|'
            . '9[0-58]|9\d{2})!', '\\0 ', $n);
    }
    elseif (preg_match('/^\d{10}$/', $n))
    {
        $n = preg_replace('!(\d{2})!', '\\1 ', $n);
    }

    return $n;
}

function tpl_strftime_fr($ts, $format)
{
    return utils::strftime_fr($format, $ts);
}