Changeset 2452
- Timestamp:
- 01/29/09 01:40:49 (4 years ago)
- Location:
- alternc/trunk
- Files:
-
- 1 added
- 7 edited
-
bureau/admin/adm_add.php (modified) (1 diff)
-
bureau/admin/adm_doadd.php (modified) (1 diff)
-
bureau/admin/adm_doedit.php (modified) (1 diff)
-
bureau/admin/adm_edit.php (modified) (1 diff)
-
bureau/class/m_admin.php (modified) (4 diffs)
-
debian/changelog (modified) (1 diff)
-
install/mysql.sql (modified) (1 diff)
-
install/upgrades/0.9.10.sql (added)
Legend:
- Unmodified
- Added
- Removed
-
alternc/trunk/bureau/admin/adm_add.php
r2247 r2452 76 76 </tr> 77 77 <tr> 78 <th><label for="notes"><?php __("Notes"); ?></label></th> 79 <td><textarea name="notes" id="notes" class="int" cols="32" rows="5"><?php echo $notes; ?></textarea></td> 80 </tr> 81 <tr> 78 82 <th><label for="nom"><?php echo _("Surname")."</label> / <label for=\"prenom\">"._("First Name"); ?></label></th> 79 83 <td><input class="int" type="text" id="nom" name="nom" value="<?php echo $nom; ?>" size="20" maxlength="128" /> / <input type="text" name="prenom" id="prenom" value="<?php echo $prenom; ?>" class="int" size="20" maxlength="128" /></td> -
alternc/trunk/bureau/admin/adm_doadd.php
r2247 r2452 42 42 exit(); 43 43 } 44 if (!($u=$admin->add_mem($login, $pass, $nom, $prenom, $nmail, $canpass, $type ))) {44 if (!($u=$admin->add_mem($login, $pass, $nom, $prenom, $nmail, $canpass, $type, 0, $notes))) { 45 45 $error=$err->errstr(); 46 46 include ("adm_add.php"); -
alternc/trunk/bureau/admin/adm_doedit.php
r982 r2452 47 47 } 48 48 49 if (!$admin->update_mem($uid, $nmail, $nom, $prenom, $pass, $enabled, $canpass, $type, $duration )){49 if (!$admin->update_mem($uid, $nmail, $nom, $prenom, $pass, $enabled, $canpass, $type, $duration, $notes)){ 50 50 $error=$err->errstr(); 51 51 include("adm_edit.php"); -
alternc/trunk/bureau/admin/adm_edit.php
r982 r2452 96 96 </tr> 97 97 <tr> 98 <th><label for="notes"><?php __("Notes"); ?></label></th> 99 <td><textarea name="notes" id="notes" class="int" cols="32" rows="5"><?php echo $r['notes']; ?></textarea></td> 100 </tr> 101 <tr> 98 102 <th><label for="nom"><?php echo _("Surname")."</label> / <label for=\"prenom\">"._("First Name"); ?></label></th> 99 103 <td><input type="text" class="int" name="nom" id="nom" value="<?php echo $r["nom"]; ?>" size="20" maxlength="128" /> / <input type="text" class="int" name="prenom" id="prenom" value="<?php echo $r["prenom"]; ?>" size="20" maxlength="128" /></td> -
alternc/trunk/bureau/class/m_admin.php
r2447 r2452 303 303 * 304 304 */ 305 function add_mem($login, $pass, $nom, $prenom, $mail, $canpass=1, $type='default', $duration=0 ) {305 function add_mem($login, $pass, $nom, $prenom, $mail, $canpass=1, $type='default', $duration=0, $notes = "") { 306 306 global $err,$quota,$classes,$cuid,$mem,$L_MYSQL_DATABASE,$L_MYSQL_LOGIN; 307 307 $err->log("admin","add_mem",$login."/".$mail); … … 348 348 } 349 349 // on le créé ensuite dans system.membres et system.local 350 $db->query("INSERT INTO membres (uid,login,pass,mail,creator,canpass,type,created ) VALUES ('$uid','$login','$pass','$mail','$cuid','$canpass', '$type', NOW());");350 $db->query("INSERT INTO membres (uid,login,pass,mail,creator,canpass,type,created, notes) VALUES ('$uid','$login','$pass','$mail','$cuid','$canpass', '$type', NOW(), '$notes');"); 351 351 $db->query("INSERT INTO local(uid,nom,prenom) VALUES('$uid','$nom','$prenom');"); 352 352 $this->renew_update($uid, $duration); … … 401 401 * 402 402 */ 403 function update_mem($uid, $mail, $nom, $prenom, $pass, $enabled, $canpass, $type='default', $duration=0 ) {403 function update_mem($uid, $mail, $nom, $prenom, $pass, $enabled, $canpass, $type='default', $duration=0, $notes = "") { 404 404 global $err,$db; 405 405 global $cuid, $quota; … … 419 419 } 420 420 if (($db->query("UPDATE local SET nom='$nom', prenom='$prenom' WHERE uid='$uid';")) 421 &&($db->query("UPDATE membres SET mail='$mail', canpass='$canpass', enabled='$enabled', type='$type' $ssq WHERE uid='$uid';"))){421 &&($db->query("UPDATE membres SET mail='$mail', canpass='$canpass', enabled='$enabled', type='$type', notes='$notes' $ssq WHERE uid='$uid';"))){ 422 422 if($_POST['reset_quotas'] == "on") 423 423 $quota->addquotas(); -
alternc/trunk/debian/changelog
r2451 r2452 14 14 * when adding a new domain to an account, a directory "www/example.net" 15 15 is automatically created and the domain points to it instead of /. 16 * add new field to member form: 'notes' which is just a text field 16 17 17 18 -- Antoine Beaupré <anarcat@koumbit.org> Mon, 20 Oct 2008 16:12:28 -0400 -
alternc/trunk/install/mysql.sql
r2326 r2452 225 225 admlist tinyint(4) default '0', # Mode d'affichage de la liste des membres pour les super admins 226 226 type varchar(128) default 'default', 227 notes TEXT NOT NULL, 227 228 created datetime default NULL, 228 229 renewed datetime default NULL,
Note: See TracChangeset
for help on using the changeset viewer.
