Changeset 899
- Timestamp:
- 07/25/08 12:17:25 (1 month ago)
- Files:
-
- trunk (modified) (1 prop)
- trunk/admin (modified) (1 prop)
- trunk/admin/Public/A2B_entity_password.php (added)
- trunk/admin/Public/form_data/FG_var_user.inc (modified) (4 diffs)
- trunk/admin/Public/templates/default/css/main.css (modified) (1 diff)
- trunk/admin/Public/templates/default/main.tpl (modified) (2 diffs)
- trunk/agent (modified) (1 prop)
- trunk/common (modified) (1 prop)
- trunk/common/lib/admin.module.access.php (modified) (1 diff)
- trunk/common/lib/Form/Class.FormHandler.inc.php (modified) (1 diff)
- trunk/customer (modified) (1 prop)
- trunk/DataBase (modified) (1 prop)
- trunk/DataBase/mysql-5.x/UPDATE-a2billing-v1.3.0-to-v1.4.0-mysql.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk
- Property svn:ignore changed from
.project
a2billing_v2.kpf
.pydevproject
.settings
to
.project
a2billing_v2.kpf
.pydevproject
.settings
.cache
- Property svn:ignore changed from
trunk/admin
- Property svn:ignore set to
.project
.cache
.settings
- Property svn:ignore set to
trunk/admin/Public/form_data/FG_var_user.inc
r766 r899 1 1 <?php 2 2 3 getpost_ifset(array('id', 'groupID', 'userid', 'login', 'p assword', 'perms', 'name', 'direction', 'zipcode', 'state', 'phone', 'fax', 'popup_select', 'popup_formname', 'popup_fieldname'));3 getpost_ifset(array('id', 'groupID', 'userid', 'login', 'pwd_encoded', 'perms', 'name', 'direction', 'zipcode', 'state', 'phone', 'fax', 'popup_select', 'popup_formname', 'popup_fieldname')); 4 4 5 5 … … 55 55 $HD_Form -> AddViewElement(gettext("DATE CREATION"), "datecreation", "24%", "center", "sort", "19", "", "", "", "", "", "display_dateformat"); 56 56 $HD_Form -> AddViewElement(gettext("LOGIN"), "login", "24%", "center", "sort"); 57 $HD_Form -> AddViewElement(gettext("PASSWORD"), "password", "24%", "center", "sort"); 58 59 $HD_Form -> FieldViewElement ('userid, datecreation, login, password'); 57 58 $HD_Form -> FieldViewElement ('userid, datecreation, login'); 60 59 61 60 $HD_Form -> CV_NO_FIELDS = gettext("NO")." ".strtoupper($HD_Form->FG_INSTANCE_NAME)." ".gettext("HAVE BEEN CREATED!"); … … 90 89 gettext("Insert the username"), 91 90 "" , "", "", "", "" , "", "", ""); 92 93 $HD_Form -> AddEditElement (gettext("PASSWORD"), 94 "password", 95 '$value', 96 "INPUT", 97 "size=30 maxlength=15", 98 "3", 99 gettext("Insert the Reseller password"), 100 "" , "", "", "", "", "", "", ""); 101 91 92 if ($form_action=="ask-add" && $form_action=="add"){ 93 $HD_Form -> AddEditElement (gettext("PASSWORD"), 94 "pwd_encoded", 95 '$value', 96 "INPUT", 97 "type=password size=30 maxlength=15", 98 "3", 99 gettext("Insert the Reseller password"), 100 "" , "", "", "", "", "", "", ""); 101 } 102 102 if ($groupID!="0"){ 103 103 $HD_Form -> AddEditElement (gettext("PERMISSION"), … … 195 195 } 196 196 197 $FG_QUERY_EDITION .= 'login, password, '; 197 $FG_QUERY_EDITION .= 'login, '; 198 199 if ($form_action =="ask-add" || $form_action=="add"){ 200 $FG_QUERY_EDITION='pwd_encoded, '; 201 } 198 202 199 203 if ($groupID!="0"){ trunk/admin/Public/templates/default/css/main.css
r212 r899 392 392 padding-bottom: 0px; 393 393 margin: 0px; 394 width: 40%;394 width: 100%; 395 395 padding-top: 0px; 396 396 background-color: #f6f6f6; trunk/admin/Public/templates/default/main.tpl
r860 r899 27 27 <div id="nav_before"></div> 28 28 <ul id="nav"> 29 29 30 31 <li><a href="#" target="_self"></a></a></li> 32 <ul><li><a href="A2B_entity_password.php?atmenu=password&form_action=ask-edit&stitle=Password"><strong>{php} echo gettext("PASSWORD");{/php}</strong></a></li></ul> 33 <li><a href="#" target="_self"></a></a></li> 34 30 35 {if ($ACXCUSTOMER > 0) } 31 36 <div class="toggle_menu"> … … 459 464 </div> 460 465 {/if} 466 467 461 468 462 469 {if ($ACXADMINISTRATOR > 0)} trunk/agent
- Property svn:ignore set to
.project
.settings
.cache
- Property svn:ignore set to
trunk/common
- Property svn:ignore set to
*.settings
.cache
.project
- Property svn:ignore set to
trunk/common/lib/admin.module.access.php
r768 r899 153 153 $user = trim($user); 154 154 $pass = trim($pass); 155 $pass_encoded= hash( 'whirlpool',$pass); 155 156 if (strlen($user)==0 || strlen($user)>=50 || strlen($pass)==0 || strlen($pass)>=50) return false; 156 $QUERY = "SELECT userid, perms, confaddcust, groupid FROM cc_ui_authen WHERE login = '".$user."' AND p assword = '".$pass."'";157 $QUERY = "SELECT userid, perms, confaddcust, groupid FROM cc_ui_authen WHERE login = '".$user."' AND pwd_encoded = '".$pass_encoded."'"; 157 158 158 159 $res = $DBHandle -> Execute($QUERY); trunk/common/lib/Form/Class.FormHandler.inc.php
r893 r899 551 551 $this->_processed[$key] = $this -> sanitize_data($value); 552 552 if($key=='username')$this->_processed[$key] = trim($this->_processed[$key]); 553 if($key=='pwd_encoded')$this->_processed[$key] = hash( 'whirlpool',$this->_processed[$key]); 553 554 } 554 555 return $this->_processed; trunk/customer
- Property svn:ignore set to
.project
*.cache
.settings
- Property svn:ignore set to
trunk/DataBase
- Property svn:ignore set to
.project
- Property svn:ignore set to
trunk/DataBase/mysql-5.x/UPDATE-a2billing-v1.3.0-to-v1.4.0-mysql.sql
r896 r899 1032 1032 ALTER TABLE cc_call ADD dnid CHAR( 40 ); 1033 1033 1034 1034 -- CHANGE SECURITY ABOUT PASSWORD 1035 ALTER TABLE cc_ui_authen CHANGE password pwd_encoded VARCHAR( 250 ) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
