Merge lp:~rdubreil/ubuntu-fr-forum/connection-forum into lp:ubuntu-fr-forum

Proposed by Kanor
Status: Needs review
Proposed branch: lp:~rdubreil/ubuntu-fr-forum/connection-forum
Merge into: lp:ubuntu-fr-forum
Diff against target: 181 lines (+38/-23)
3 files modified
header.php (+13/-13)
lang/Francais/common.php (+3/-10)
widget/connection.php (+22/-0)
To merge this branch: bzr merge lp:~rdubreil/ubuntu-fr-forum/connection-forum
Reviewer Review Type Date Requested Status
xapantu (community) Needs Fixing
Ubuntu-fr-webteam Pending
Review via email: mp+53067@code.launchpad.net

Description of the change

Ajout de la case à coché "se souvenir de moi"
et suppression du hack pour ajouter ce formulaire.(voir dossier widget)

To post a comment you must log in.
Revision history for this message
xapantu (xapantu) wrote :

Je ne sais pas si c'est une très bonne idée de supprimer notre hack barbare, son but était de toucher le moins possible au code de FluxBB. Là, c'est plus propre, mais ça modifie encore un peu plus le code de FluxBB.

review: Needs Fixing

Unmerged revisions

120. By rdubreil <email address hidden>

Ajout de la case à cocher pour la connection

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'header.php'
--- header.php 2010-10-21 22:17:41 +0000
+++ header.php 2011-03-11 19:08:08 +0000
@@ -100,7 +100,7 @@
100<title><?php echo generate_page_title($page_title, $p) ?></title>100<title><?php echo generate_page_title($page_title, $p) ?></title>
101<?php101<?php
102 /* Ajout en dur pour la dev - McPeter - */102 /* Ajout en dur pour la dev - McPeter - */
103 define('UFR_STATIC_DEV_TPL', 'http://www-static.ubuntu-fr.org/theme2010');103 define('UFR_STATIC_DEV_TPL', 'http://www.static.ubuntu-fr.org/theme2010');
104if(($pun_user['style'] == "Ubuntu")||($pun_user['style'] == "Ubuntu_menu-fixe")||(preg_match("/buntu_darker/",$pun_user['style'])))104if(($pun_user['style'] == "Ubuntu")||($pun_user['style'] == "Ubuntu_menu-fixe")||(preg_match("/buntu_darker/",$pun_user['style'])))
105{105{
106 $is_ubuntu = 0;106 $is_ubuntu = 0;
@@ -123,7 +123,7 @@
123 $distrib_comp = 'de ';123 $distrib_comp = 'de ';
124 $is_kubuntu = 1;124 $is_kubuntu = 1;
125 ?>125 ?>
126 126
127 <link rel="shortcut icon" href="<?=UFR_STATIC_DEV_TPL?>/images/commun/kubuntu/icone.png"/>127 <link rel="shortcut icon" href="<?=UFR_STATIC_DEV_TPL?>/images/commun/kubuntu/icone.png"/>
128 <?php128 <?php
129 elseif (preg_match('/xubuntu-fr/i', $pun_config["o_base_url"])):129 elseif (preg_match('/xubuntu-fr/i', $pun_config["o_base_url"])):
@@ -132,7 +132,7 @@
132 $distrib_comp = 'de ';132 $distrib_comp = 'de ';
133 $is_xubuntu = 1;133 $is_xubuntu = 1;
134 ?>134 ?>
135 135
136 <link rel="shortcut icon" href="<?=UFR_STATIC_DEV_TPL?>/images/commun/xubuntu/icone.png"/>136 <link rel="shortcut icon" href="<?=UFR_STATIC_DEV_TPL?>/images/commun/xubuntu/icone.png"/>
137 <?php137 <?php
138 elseif (preg_match('/edubuntu-fr/i', $pun_config["o_base_url"])):138 elseif (preg_match('/edubuntu-fr/i', $pun_config["o_base_url"])):
@@ -141,7 +141,7 @@
141 $distrib_comp = 'd\'';141 $distrib_comp = 'd\'';
142 $is_edubuntu = 1;142 $is_edubuntu = 1;
143 ?>143 ?>
144 144
145 <link rel="shortcut icon" href="<?=UFR_STATIC_DEV_TPL?>/images/commun/edubuntu/icone.png"/>145 <link rel="shortcut icon" href="<?=UFR_STATIC_DEV_TPL?>/images/commun/edubuntu/icone.png"/>
146 <?php146 <?php
147 else:147 else:
@@ -150,7 +150,7 @@
150 $distrib_comp = 'd\'';150 $distrib_comp = 'd\'';
151 $is_ubuntu = 1;151 $is_ubuntu = 1;
152 ?>152 ?>
153 153
154 <link rel="shortcut icon" href="<?=UFR_STATIC_DEV_TPL?>/images/commun/ubuntu/icone.png"/>154 <link rel="shortcut icon" href="<?=UFR_STATIC_DEV_TPL?>/images/commun/ubuntu/icone.png"/>
155 <?php155 <?php
156 endif;156 endif;
@@ -161,12 +161,12 @@
161// END ADD AlternativeSites161// END ADD AlternativeSites
162162
163?>163?>
164 <link rel="stylesheet" media="screen" type="text/css" title="Design Ubuntu" href="<?=UFR_STATIC_DEV_TPL?>/css/forum-general.css" />164 <link rel="stylesheet" media="screen" type="text/css" title="Design Ubuntu" href="<?=UFR_STATIC_DEV_TPL?>/css/forum.css" />
165 <link rel="stylesheet" media="screen" type="text/css" title="Design Ubuntu" href="<?=UFR_STATIC_DEV_TPL?>/css/forum-<?=strtolower($distrib_name)?>.css" />165 <link rel="stylesheet" media="screen" type="text/css" title="Design Ubuntu" href="<?=UFR_STATIC_DEV_TPL?>/css/forum-<?=strtolower($distrib_name)?>.css" />
166166
167<?php }167<?php }
168/*IE*/168/*IE*/
169 if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7' ) !== FALSE ) 169 if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7' ) !== FALSE )
170 {170 {
171 ?>171 ?>
172 <link rel="stylesheet" media="screen" type="text/css" title="Design Ubuntu" href="<?=UFR_STATIC_DEV_TPL?>/css/forum-ie.css" />172 <link rel="stylesheet" media="screen" type="text/css" title="Design Ubuntu" href="<?=UFR_STATIC_DEV_TPL?>/css/forum-ie.css" />
@@ -174,7 +174,7 @@
174 } ?>174 } ?>
175<?php175<?php
176/*IE*/176/*IE*/
177 if ( strpos($_SERVER['HTTP_USER_AGENT'], 'KHTML' ) !== FALSE && strpos($_SERVER['HTTP_USER_AGENT'], 'WebKit' ) == false) 177 if ( strpos($_SERVER['HTTP_USER_AGENT'], 'KHTML' ) !== FALSE && strpos($_SERVER['HTTP_USER_AGENT'], 'WebKit' ) == false)
178 {178 {
179 ?>179 ?>
180 <link rel="stylesheet" media="screen" type="text/css" title="Design Ubuntu" href="<?=UFR_STATIC_DEV_TPL?>/css/forum-khtml.css" />180 <link rel="stylesheet" media="screen" type="text/css" title="Design Ubuntu" href="<?=UFR_STATIC_DEV_TPL?>/css/forum-khtml.css" />
@@ -182,7 +182,7 @@
182 } ?>182 } ?>
183183
184<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_user['style'].'.css' ?>" />184<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_user['style'].'.css' ?>" />
185 <script type="text/javascript" src="<?=UFR_STATIC_DEV_TPL?>/js/common.js"></script> 185 <script type="text/javascript" src="<?=UFR_STATIC_DEV_TPL?>/js/common.js"></script>
186 <script type="text/javascript">186 <script type="text/javascript">
187 var menu_hidden=<?php $menu_hidden = ((isset ($_COOKIE['menuForum']) && $_COOKIE['menuForum'] == 'hidden')?'1':'0'); echo $menu_hidden; ?>;187 var menu_hidden=<?php $menu_hidden = ((isset ($_COOKIE['menuForum']) && $_COOKIE['menuForum'] == 'hidden')?'1':'0'); echo $menu_hidden; ?>;
188 </script>188 </script>
@@ -194,9 +194,9 @@
194 #announce, #main, #footer {margin-left: 0}194 #announce, #main, #footer {margin-left: 0}
195 #hidemenu {background-position: 0 28px;}195 #hidemenu {background-position: 0 28px;}
196 --></style>';196 --></style>';
197 } 197 }
198?>198?>
199 199
200<?php200<?php
201201
202if (defined('PUN_ADMIN_CONSOLE'))202if (defined('PUN_ADMIN_CONSOLE'))
@@ -282,7 +282,7 @@
282282
283283
284// START SUBST - <pun_desc>284// START SUBST - <pun_desc>
285$tpl_main = str_replace('<pun_desc>', '<div id="brddesc">'.$pun_config['o_board_desc'].'</div>', $tpl_main);285 $tpl_main = str_replace('<pun_desc>', '<div id="brddesc">'.$pun_config['o_board_desc'].'</div>', $tpl_main);
286// END SUBST - <pun_desc>286// END SUBST - <pun_desc>
287287
288288
@@ -293,7 +293,7 @@
293293
294// START SUBST - <pun_status>294// START SUBST - <pun_status>
295if ($pun_user['is_guest'])295if ($pun_user['is_guest'])
296 $tpl_temp = '<div id="brdwelcome" class="inbox">'."\n\t\t\t".$lang_common['Not logged in']."\n\t\t".'</div>';296 $tpl_temp = '<div id="brdwelcome" class="inbox">'.(include 'widget/connection.php').'</div>';
297else297else
298{298{
299 $tpl_temp = '<div id="brdwelcome" class="inbox">'."\n\t\t\t".'<ul class="conl">'."\n\t\t\t\t".'<li><span>'.$lang_common['Logged in as'].' <strong>'.pun_htmlspecialchars($pun_user['username']).'</strong></span></li>'."\n\t\t\t\t".'<li><span>'.sprintf($lang_common['Last visit'], format_time($pun_user['last_visit'])).'</span></li>';299 $tpl_temp = '<div id="brdwelcome" class="inbox">'."\n\t\t\t".'<ul class="conl">'."\n\t\t\t\t".'<li><span>'.$lang_common['Logged in as'].' <strong>'.pun_htmlspecialchars($pun_user['username']).'</strong></span></li>'."\n\t\t\t\t".'<li><span>'.sprintf($lang_common['Last visit'], format_time($pun_user['last_visit'])).'</span></li>';
300300
=== modified file 'lang/Francais/common.php'
--- lang/Francais/common.php 2010-10-21 22:17:41 +0000
+++ lang/Francais/common.php 2011-03-11 19:08:08 +0000
@@ -78,7 +78,7 @@
78'Administrator' => 'Administrateur',78'Administrator' => 'Administrateur',
79'Banned' => 'Banni(e)',79'Banned' => 'Banni(e)',
80'Guest' => 'Invité',80'Guest' => 'Invité',
81 81
82// Stuff for include/parser.php82// Stuff for include/parser.php
83'BBCode error no opening tag' => 'La balise [/%1$s] a été trouvée sans balise [%1$s] correspondante',83'BBCode error no opening tag' => 'La balise [/%1$s] a été trouvée sans balise [%1$s] correspondante',
84'BBCode error invalid nesting' => 'La balise [%1$s] a été ouverte dans la balise [%2$s], ceci n\'est pas autorisé',84'BBCode error invalid nesting' => 'La balise [%1$s] a été ouverte dans la balise [%2$s], ceci n\'est pas autorisé',
@@ -95,13 +95,6 @@
95'Search' => 'Recherche',95'Search' => 'Recherche',
96'Register' => 'Inscription',96'Register' => 'Inscription',
97'Login' => 'Identification',97'Login' => 'Identification',
98'Not logged in' => '<form action="login.php?action=in" accept-charset="utf-8" id="login_top" method="post">
99 <fieldset>
100 <input type="hidden" name="form_sent" value="1" />
101 <input type="hidden" name="redirect_url" value="index.php" />
102 <input type="text" value="Identifiant" onfocus="if(this.value == \'Identifiant\'){this.value=\'\';} this.className=\'input_focused\'" name="req_username" size="25" maxlength="25" tabindex="1" /><input type="password" value="Mot de passe" onfocus="if(this.value == \'Mot de passe\'){this.value=\'\';} this.className=\'input_focused\'" name="req_password" size="25" tabindex="2" /><input type="submit" value="connexion" /> / <a href="register.php">inscription</a>
103 </fieldset>
104 </form>',
105'Profile' => 'Profil',98'Profile' => 'Profil',
106'Logout' => 'Déconnexion',99'Logout' => 'Déconnexion',
107'Logged in as' => '',100'Logged in as' => '',
@@ -129,7 +122,7 @@
129'Stick topic' => 'Épingler la discussion',122'Stick topic' => 'Épingler la discussion',
130'Moderate forum' => 'Modérer le forum',123'Moderate forum' => 'Modérer le forum',
131'Powered by' => 'Propulsé par %s',124'Powered by' => 'Propulsé par %s',
132 125
133// Debug information126// Debug information
134'Debug table' => 'Informations de débogage',127'Debug table' => 'Informations de débogage',
135'Querytime' => 'Générées en %1$s secondes, %2$s requêtes exécutées',128'Querytime' => 'Générées en %1$s secondes, %2$s requêtes exécutées',
@@ -172,4 +165,4 @@
172'New reports' => 'De nouveaux signalements ont été envoyés',165'New reports' => 'De nouveaux signalements ont été envoyés',
173'Maintenance mode enabled' => 'Le mode maintenance est activé&#160;!'166'Maintenance mode enabled' => 'Le mode maintenance est activé&#160;!'
174167
175); 168);
176169
=== added directory 'widget'
=== added file 'widget/connection.php'
--- widget/connection.php 1970-01-01 00:00:00 +0000
+++ widget/connection.php 2011-03-11 19:08:08 +0000
@@ -0,0 +1,22 @@
1<?php
2$widget = '<form action="login.php?action=in" accept-charset="utf-8" id="login_top" method="post">
3 <fieldset>
4 <input type="hidden" name="form_sent" value="1" />
5 <input type="hidden" name="redirect_url" value="index.php" />
6 <input type="text" value="Identifiant"
7 onfocus="if(this.value == \'Identifiant\'){this.value=\'\';} this.className=\'input_focused\'"
8 name="req_username" size="25" maxlength="25" tabindex="1" />
9 <input type="password" value="Mot de passe"
10 onfocus="if(this.value == \'Mot de passe\'){this.value=\'\';} this.className=\'input_focused\'"
11 name="req_password" size="25" tabindex="2" />
12 <input type="submit" value="connexion" /> / <a href="register.php">inscription</a>
13 <br/>
14 <label>
15 <input type="checkbox" tabindex="3" value="1" name="save_pass">
16 Se souvenir de moi
17 </label>
18 <a href="login.php?action=forget">Mot de passe oublié&nbsp;?</a>
19 </fieldset>
20 </form>';
21return $widget;
22?>

Subscribers

People subscribed via source and target branches

to all changes: