Changeset 693


Ignore:
Timestamp:
02/22/06 01:32:29 (7 years ago)
Author:
anarcat
Message:

[project @ alternc: changeset 2005-05-27 20:46:26 by arnaud-lb]
afficher le bon login mysql

Original author: arnaud-lb
Date: 2005-05-27 20:46:26

Location:
bureau
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bureau/admin/sql_list.php

    r109 r693  
    11<?php 
    22/* 
    3  $Id: sql_list.php,v 1.5 2003/06/10 13:16:11 root Exp $ 
     3 $Id: sql_list.php,v 1.6 2005/05/27 20:46:26 arnaud-lb Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    9494<form method="post" action="sql_addmain.php"> 
    9595<table cellspacing="0" cellpadding="4"> 
    96                 <tr  class="lst2"><th><?php __("Username"); ?></th><td><code><?php echo $mem->user["login"]; ?></code></td></tr> 
     96                <tr  class="lst2"><th><?php __("Username"); ?></th><td><code><?php echo $mem->user["uid"]; ?></code></td></tr> 
    9797                <tr  class="lst1"><th><label for="pass"><?php __("Password"); ?></label></th><td><code><input class="int" type="text" name="pass" id="pass" value="" /></code></td></tr> 
    9898                <tr  class="lst2"><th><?php __("SQL Server"); ?></th><td><code><?php echo $mysql->server; ?></code></td></tr> 
  • bureau/class/m_mysql.php

    r692 r693  
    11<?php 
    22/* 
    3  $Id: m_mysql.php,v 1.31 2005/05/27 20:10:18 arnaud-lb Exp $ 
     3 $Id: m_mysql.php,v 1.32 2005/05/27 20:46:26 arnaud-lb Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    6464    global $db,$err,$bro,$cuid; 
    6565    $err->log("mysql","get_dblist"); 
    66     $db->query("SELECT pass,db, bck_mode, bck_dir FROM db WHERE uid='$cuid';"); 
     66    $db->query("SELECT login,pass,db, bck_mode, bck_dir FROM db WHERE uid='$cuid';"); 
    6767    if (!$db->num_rows()) { 
    6868      $err->raise("mysql",11); 
     
    7272    while ($db->next_record()) { 
    7373      list($dbu,$dbn)=explode("_",$db->f("db")); 
    74       $c[]=array("db"=>$db->f("db"), "name"=>$dbn,"bck"=>$db->f("bck_mode"), "dir"=>$db->f("bck_dir"), "pass"=>$db->f("pass")); 
     74      $c[]=array("db"=>$db->f("db"), "name"=>$dbn,"bck"=>$db->f("bck_mode"), "dir"=>$db->f("bck_dir"), "login"=>$db->f("login"), "pass"=>$db->f("pass")); 
    7575    } 
    7676     
Note: See TracChangeset for help on using the changeset viewer.