Changeset 3149
- Timestamp:
- 05/16/12 17:33:04 (12 months ago)
- Location:
- alternc/trunk/bureau
- Files:
-
- 12 edited
-
admin/adm_add.php (modified) (3 diffs)
-
admin/adm_doadd.php (modified) (1 diff)
-
admin/dom_add.php (modified) (1 diff)
-
admin/ftp_add.php (modified) (1 diff)
-
admin/ftp_edit.php (modified) (2 diffs)
-
admin/sql_del.php (modified) (1 diff)
-
admin/sql_list.php (modified) (1 diff)
-
admin/sql_users_add.php (modified) (1 diff)
-
admin/sql_users_del.php (modified) (1 diff)
-
class/m_admin.php (modified) (1 diff)
-
class/m_ftp.php (modified) (2 diffs)
-
class/m_mail.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
alternc/trunk/bureau/admin/adm_add.php
r2749 r3149 40 40 $fields = array ( 41 41 "canpass" => array ("request", "integer", 1), 42 "login" => array ("request", "string", null), 43 "pass" => array ("request", "string", null), 44 "passconf" => array ("request", "string", null), 45 "notes" => array ("request", "string", null), 46 "nom" => array ("request", "string", null), 47 "prenom" => array ("request", "string", null), 48 "nmail" => array ("request", "string", null), 42 49 ); 43 50 getFields($fields); … … 48 55 <br /> 49 56 <?php 50 if ( $error) {57 if (isset($error) && $error) { 51 58 echo "<p class=\"error\">$error</p>"; 52 59 } … … 74 81 <tr> 75 82 <th><label for="notes"><?php __("Notes"); ?></label></th> 76 <td><textarea name="notes" id="notes" class="int" cols="32" rows="5"><?php echo $notes; ?></textarea></td>83 <td><textarea name="notes" id="notes" class="int" cols="32" rows="5"><?php ehe($notes); ?></textarea></td> 77 84 </tr> 78 85 <tr> -
alternc/trunk/bureau/admin/adm_doadd.php
r2786 r3149 60 60 * 1 = force = ne tient pas compte du whois ou des droits de tld 61 61 */ 62 if ( ($create_dom == 1) && !is_null($create_dom_list)) {62 if (isset($create_dom) && ($create_dom == 1) && !is_null($create_dom_list)) { 63 63 // make sure we don't have multiple dots there 64 64 $dom->lock(); -
alternc/trunk/bureau/admin/dom_add.php
r2693 r3149 51 51 exit(); 52 52 } 53 if ( $error) echo "<p class=\"error\">$error</p>";53 if (isset($error) && $error) echo "<p class=\"error\">$error</p>"; 54 54 ?> 55 55 <form method="post" action="dom_doadd.php" id="main"> -
alternc/trunk/bureau/admin/ftp_add.php
r2724 r3149 41 41 <br /> 42 42 <?php 43 if ( $error) {43 if (isset($error) && $error) { 44 44 echo "<p class=\"error\">$error</p>"; 45 45 if ($fatal) { -
alternc/trunk/bureau/admin/ftp_edit.php
r3135 r3149 44 44 } 45 45 } 46 47 46 ?> 48 47 <h3><?php __("Editing an FTP account"); ?></h3> … … 58 57 <tr><th><input type="hidden" name="id" value="<?php echo $id ?>" /> 59 58 <label for="login"><?php __("Username"); ?></label></th><td> 60 <select class="inl" name="prefixe"><?php $ftp->select_prefix_list($r["prefixe"]); ?></select> <b>_</b> <input type="text" class="int" name="login" id="login" value="<?php ehe($r[ "login"]); ?>" size="20" maxlength="64" />59 <select class="inl" name="prefixe"><?php $ftp->select_prefix_list($r["prefixe"]); ?></select> <b>_</b> <input type="text" class="int" name="login" id="login" value="<?php ehe($r[0]["login"]); ?>" size="20" maxlength="64" /> 61 60 </td></tr> 62 <tr><th><label for="dir"><?php __("Folder"); ?></label></th><td><input type="text" class="int" name="dir" id="dir" value="<?php ehe($r[ "dir"]); ?>" size="20" maxlength="64" />61 <tr><th><label for="dir"><?php __("Folder"); ?></label></th><td><input type="text" class="int" name="dir" id="dir" value="<?php ehe($r[0]["dir"]); ?>" size="20" maxlength="64" /> 63 62 64 63 <script type="text/javascript"> -
alternc/trunk/bureau/admin/sql_del.php
r2786 r3149 31 31 include_once ("head.php"); 32 32 33 if ($confirm=="y") { 33 if(!isset($error)){ 34 $error=""; 35 } 36 if (isset($confirm) && $confirm=="y" ) { 34 37 reset($_POST); 35 38 while (list($key,$val)=each($_POST)) { -
alternc/trunk/bureau/admin/sql_list.php
r2863 r3149 94 94 <tr><th><?php __("Username"); ?></th><td><code><?php echo $mem->user["login"]; ?></code></td></tr> 95 95 <tr><th><label for="pass"><?php __("Password"); ?></label></th><td><code><input class="int" type="password" name="pass" id="pass" value="" /></code></td></tr> 96 <tr><th><?php __("SQL Server"); ?></th><td><code><?php echo $ mysql->server; ?></code></td></tr>96 <tr><th><?php __("SQL Server"); ?></th><td><code><?php echo $L_MYSQL_HOST; ?></code></td></tr> 97 97 <tr><th><?php __("Database"); ?></th><td><code><?php echo $mem->user["login"]; ?></code></td></tr> 98 98 <tr class="trbtn"><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create my main database"); ?>" /></td></tr> -
alternc/trunk/bureau/admin/sql_users_add.php
r2705 r3149 48 48 <br /> 49 49 <?php 50 if ( $error) {50 if (isset($error) && $error) { 51 51 echo "<p class=\"error\">$error</p>"; 52 52 if ($fatal) { -
alternc/trunk/bureau/admin/sql_users_del.php
r2705 r3149 29 29 */ 30 30 require_once("../class/config.php"); 31 32 if ($confirm=="y") { 31 if(!isset($error)){ 32 $error=""; 33 } 34 if (isset($confirm) && ($confirm=="y")) { 33 35 reset($_POST); 34 36 while (list($key,$val)=each($_POST)) { -
alternc/trunk/bureau/class/m_admin.php
r3106 r3149 1225 1225 if (!$pol["allowlogin"]) { 1226 1226 // We do misc check on password versus login : 1227 $l2=str_replace("_","@",$l2);1228 $l2=str_replace(".","@",$l2);1229 1227 $logins=explode("@",$login); 1230 1228 $logins[]=$login; -
alternc/trunk/bureau/class/m_ftp.php
r3132 r3149 120 120 if ($db->num_rows()) { 121 121 $db->next_record(); 122 $tr=preg_match("/^\/var\/alternc\/html\/.\/[^\/]*\/(.*)$/", $db->f("homedir"),$match); /*"*/122 $tr=preg_match("/^\/var\/alternc\/html\/.\/[^\/]*\/(.*)$/", $db->f("homedir"),$match); 123 123 $lg=explode("_",$db->f("name")); 124 if ( !is_array($lg)) {124 if ((!is_array($lg)) || (count($lg)!=2)) { 125 125 $lg[0]=$db->f("name"); 126 126 $lg[1]=""; 127 127 } 128 returnarray(128 $r[]=array( 129 129 "id"=>$db->f("id"), 130 130 "prefixe"=> $lg[0], … … 132 132 "dir"=>$match[1] 133 133 ); 134 return $r; 134 135 } else { 135 136 $err->raise("ftp",2); -
alternc/trunk/bureau/class/m_mail.php
r3135 r3149 98 98 $err->log("mail","enum_domains_mail"); 99 99 $db->query("select * from address where domain_id=$dom_id order by address asc;"); 100 if (!$db->num_rows()) { 101 //TODO verifier numero erreur 102 $err->raise("mysql",19); 103 return false; 104 } 100 105 while($db->next_record()){ 101 106 $this->enum_domain_mails[]=$db->Record; 102 107 } 108 103 109 return $this->enum_domain_mails; 104 110 } … … 380 386 381 387 382 383 388 } /* Class m_mail */ 384 389
Note: See TracChangeset
for help on using the changeset viewer.
