From: x2000habouzit Date: Tue, 24 Aug 2004 11:45:18 +0000 (+0000) Subject: some things related to filtering, and xhtml in sendmail X-Git-Tag: xorg/old~1726 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=615a9c79eb8801a8c1a876ecb7141dedc6228459;p=platal.git some things related to filtering, and xhtml in sendmail --- diff --git a/include/profil.func.inc.php b/include/profil.func.inc.php index 6428a89..a2d815c 100644 --- a/include/profil.func.inc.php +++ b/include/profil.func.inc.php @@ -20,17 +20,6 @@ function replace_ifset_i_j(&$var,$req,$i,$j) { } } -//pour afficher qqchose en html par un modifier smarty -function _print_html_modifier($string){ - return htmlentities($string); -} - - -//pour afficher depuis le php -function print_html($string){ - echo _print_html_modifier($string); -} - //pour rentrer qqchose dans la base function put_in_db($string){ return trim(addslashes($string)); diff --git a/include/profil.inc.php b/include/profil.inc.php index 9d95951..bc41c21 100644 --- a/include/profil.inc.php +++ b/include/profil.inc.php @@ -4,9 +4,6 @@ require_once('tabs.inc.php'); require_once('profil.func.inc.php'); -$page->register_modifier('print_html','_print_html_modifier'); $page->register_function('draw_onglets','draw_all_tabs'); - - ?> diff --git a/include/profil/profil_mentor.inc.php b/include/profil/profil_mentor.inc.php index 54b3e2e..ccee9ac 100644 --- a/include/profil/profil_mentor.inc.php +++ b/include/profil/profil_mentor.inc.php @@ -8,7 +8,7 @@ function affiche_pays(){ if ($i%2) echo ''; else echo ''; ?> - +    diff --git a/include/xorg.page.inc.php b/include/xorg.page.inc.php index 0a43e68..60ed0e7 100644 --- a/include/xorg.page.inc.php +++ b/include/xorg.page.inc.php @@ -24,7 +24,7 @@ function function_dyn($params) { } function escape_html(&$string) { - return is_string($string) ? htmlspecialchars($string) : $string; + return is_string($string) ? htmlspecialchars($string, ENT_QUOTES) : $string; } class XorgPage extends DiogenesCorePage { diff --git a/templates/profil/adresses.tpl b/templates/profil/adresses.tpl index 961fa95..2167fbf 100644 --- a/templates/profil/adresses.tpl +++ b/templates/profil/adresses.tpl @@ -1,4 +1,4 @@ -{* $Id: adresses.tpl,v 1.2 2004-07-17 11:58:56 x2000habouzit Exp $ *} +{* $Id: adresses.tpl,v 1.3 2004-08-24 11:45:19 x2000habouzit Exp $ *}
@@ -67,7 +67,7 @@ {if $adr.nouvelle != 'new'}Adresse n°{$smarty.section.i.index}{else}Nouvelle adresse{/if}
@@ -75,7 +75,7 @@   @@ -83,7 +83,7 @@   @@ -91,9 +91,9 @@ Code postal / Ville
@@ -174,10 +174,10 @@ Téléphone associé diff --git a/templates/profil/emploi.tpl b/templates/profil/emploi.tpl index c292896..8859968 100644 --- a/templates/profil/emploi.tpl +++ b/templates/profil/emploi.tpl @@ -1,4 +1,4 @@ -{* $Id: emploi.tpl,v 1.3 2004-07-31 13:37:19 x2000coic Exp $ *} +{* $Id: emploi.tpl,v 1.4 2004-08-24 11:45:19 x2000habouzit Exp $ *} {section name=adresses_pro loop=2} {assign var='i' value=$smarty.section.adresses_pro.index} @@ -41,7 +41,7 @@ @@ -70,7 +70,7 @@ @@ -112,7 +112,7 @@ Adresse professionnelle @@ -120,7 +120,7 @@   @@ -128,7 +128,7 @@   @@ -136,7 +136,7 @@ Code postal
@@ -144,7 +144,7 @@ Ville
@@ -197,7 +197,7 @@ Téléphone professionnel @@ -206,7 +206,7 @@ Fax
- +
- +
- +
- +   - +
- +   Fax - +
 
+ value="{$entreprise.$i}" />
+ value="{$poste.$i}" />
- +
- +
- +
- +
- +
- +  
- +
@@ -244,7 +244,7 @@ Comment remplir mon CV ? - + diff --git a/templates/profil/general.tpl b/templates/profil/general.tpl index 6ce4d22..4ae6063 100644 --- a/templates/profil/general.tpl +++ b/templates/profil/general.tpl @@ -1,4 +1,4 @@ -{* $Id: general.tpl,v 1.4 2004-08-07 11:26:47 x2000coic Exp $ *} +{* $Id: general.tpl,v 1.5 2004-08-24 11:45:19 x2000habouzit Exp $ *} {include file="applis.js.tpl"}
@@ -173,7 +173,7 @@ + value="{$mobile}" /> @@ -200,7 +200,7 @@ + value="{$web}" /> @@ -227,7 +227,7 @@ Commentaire? ICQ? etc... - + diff --git a/templates/profil/mentor.tpl b/templates/profil/mentor.tpl index 9c05f16..3ad4ec7 100644 --- a/templates/profil/mentor.tpl +++ b/templates/profil/mentor.tpl @@ -1,4 +1,4 @@ -{* $Id: mentor.tpl,v 1.3 2004-07-17 12:18:03 x2000habouzit Exp $ *} +{* $Id: mentor.tpl,v 1.4 2004-08-24 11:45:19 x2000habouzit Exp $ *} {literal}