Changeset 772
- Timestamp:
- Apr 26, 2005, 11:46:33 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/user.inc.php
r680 r772 26 26 // +-----------------------------------------------------------------------+ 27 27 28 // Dynamic change of language with database persistency 29 if (isset($_POST['language'])) 30 { 31 $query = "UPDATE ".USERS_TABLE." SET language = '"; 32 $query.= $_POST['language']; 33 $query.= "' WHERE id = ".$_POST['userid'].";"; 34 pwg_query($query); 35 } 36 37 28 38 // retrieving connected user informations 29 30 39 if (isset($_COOKIE['id'])) 31 40 { -
trunk/profile.php
r768 r772 35 35 $userdata = getuserdata(intval($_GET['user_id'])); 36 36 } 37 elseif (defined('IN_ADMIN') and isset($_POST['submit']))37 elseif (defined('IN_ADMIN') and (isset($_POST['validate'])) ) 38 38 { 39 39 $userdata = getuserdata(intval($_POST['userid'])); … … 52 52 53 53 $errors = array(); 54 if (isset($_POST[' submit']))54 if (isset($_POST['username']) && !isset($_POST['reset'])) 55 55 { 56 56 $int_pattern = '/^\d+$/'; … … 194 194 195 195 // redirection 196 if (!defined('IN_ADMIN') or !IN_ADMIN) 197 { 198 $url = PHPWG_ROOT_PATH.'category.php?'.$_SERVER['QUERY_STRING']; 199 redirect(add_session_id($url)); 200 } 201 else 202 { 203 redirect(add_session_id(PHPWG_ROOT_PATH.'admin.php?page=profile')); 196 if (isset($_POST['validate'])) 197 { 198 if (!defined('IN_ADMIN') or !IN_ADMIN) 199 { 200 $url = PHPWG_ROOT_PATH.'category.php?'.$_SERVER['QUERY_STRING']; 201 redirect(add_session_id($url)); 202 } 203 else 204 { 205 redirect(add_session_id(PHPWG_ROOT_PATH.'admin.php?page=profile')); 206 } 204 207 } 205 208 } -
trunk/template/default/default.css
r711 r772 2 2 3 3 body { background-color:#000000;} /*General background color*/ 4 .main, .throw, .admin { background-color:#3F3F3F;} /*Main background color*/4 .main, .throw, .admin, .radio { background-color:#3F3F3F;} /*Main background color*/ 5 5 .row1,input,select,textarea, .table1, .home { background-color:#5F5F5F;} /* Tables & forms */ 6 6 .table2, .commentTitle { background-color: #797979;} /* Alternate table & comments */ … … 20 20 .bouton, .errors { color:#FFFFFF;} /* Buttons & errors */ 21 21 22 /* Update results (admin side only) */ 23 .update_summary_new, .best_gen_time 24 { color:#9cb4ce;} 25 26 /* Update results (admin side only) */ 27 .update_summary_del,.worst_gen_time 28 { color:#ffe1e1;} 22 /* FONT COLORS (admin side) */ 23 24 .update_summary_new, .best_gen_time { color:#9cb4ce;} 25 .update_summary_del,.worst_gen_time { color:#ffe1e1;} 29 26 30 27 /* ANCHORS */ … … 95 92 96 93 /*----------------------------------------------*/ 97 /* Under this point, do not modify the values */ 98 /* unless you are aware of what you are doing! */ 94 /* A good understanding of the CSS mechanism */ 95 /* is required below. */ 96 /* */ 97 /* Do not modify the valuesunless you are aware */ 98 /* of what you are doing! */ 99 99 /*----------------------------------------------*/ 100 100 … … 346 346 } 347 347 348 .radio{ border:0 ;}348 .radio{ border:0px ;} 349 349 350 350 /* ADMIN LAYOUT STYLES */ -
trunk/template/default/profile.tpl
r768 r772 12 12 <div class="titrePage">{L_TITLE}</div> 13 13 <!-- END profile --> 14 <form method="post" action="{F_ACTION}">14 <form method="post" name="profile" action="{F_ACTION}"> 15 15 <table width="70%" align="center"> 16 16 <tr class="admin"> … … 73 73 <input type="radio" class="radio" name="show_nb_comments" value="false" {NB_COMMENTS_NO} />{L_NO}</td> 74 74 </tr> 75 75 <tr> 76 76 <td>{L_MAXWIDTH}</td> 77 77 <td><input type="text" size="4" maxlength="4" name="maxwidth" value="{MAXWIDTH}" /> 78 78 </td> 79 79 </tr> 80 80 <tr> 81 81 <td>{L_MAXHEIGHT}</td> 82 83 82 <td><input type="text" size="4" maxlength="4" name="maxheight" value="{MAXHEIGHT}" /> 83 </td> 84 84 </tr> 85 85 <!-- BEGIN admin --> … … 87 87 <th colspan="2">{modify.admin.L_ADMIN_USER}</th> 88 88 </tr> 89 89 <tr> 90 90 <td>{modify.admin.L_STATUS}</td> 91 91 <td>{modify.admin.STATUS} 92 92 </td> 93 93 </tr> 94 94 <tr> 95 95 <td>{modify.admin.L_DELETE}<br /> 96 96 <span class="small">{modify.admin.L_DELETE_HINT}</span></td> 97 97 <td><input name="user_delete" type="checkbox" value="1"> 98 98 </td> 99 99 </tr> 100 100 <!-- END admin --> 101 <tr>101 <tr> 102 102 <td colspan="2" align="center"> 103 <input type="submit" name=" submit" value="{L_SUBMIT}" class="bouton" />104 103 <input type="submit" name="validate" value="{L_SUBMIT}" class="bouton" /> 104 <input type="reset" name="reset" value="{L_RESET}" class="bouton" /> 105 105 </td> 106 106 </tr>
Note: See TracChangeset
for help on using the changeset viewer.