Changeset 47527 in spip-zone


Ignore:
Timestamp:
May 7, 2011, 2:58:32 AM (10 years ago)
Author:
patfr@…
Message:

Boites Privées : indique les URLs verrouillées

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/couteau_suisse/outils/boites_privees.php

    r37232 r47527  
    133133                $url = generer_url_entite_absolue($id, $type, '', '', true);
    134134                $lien_public = "\n[<span>[". _T('couteau:urls_propres_lien'). "|{$url}->{$url}]</span>]\n\n";
    135                 $s = sql_select("url", "spip_urls", "id_objet=$id AND type='$type'", '', 'date DESC');
    136                 while ($t = sql_fetch($s)) $res .= ($res?'<br />':'')."&bull;&nbsp;$t[url]\n";
     135                $s = sql_select("url, date", "spip_urls", "id_objet=$id AND type='$type'", '', 'date DESC');
     136                $now = date('Y-m-d H:i:s');
     137                $info = ' ('._T('couteau:url_verrouillee').')';
     138                while ($t = sql_fetch($s)) $res .= ($res?'<br />':'').'&bull;&nbsp;'.$t['url'].($t[date]>$now?$info:'')."\n";
    137139        // SPIP < 2.0
    138140        } else {
Note: See TracChangeset for help on using the changeset viewer.