Changeset 693
- Timestamp:
- 02/22/06 01:32:29 (7 years ago)
- Location:
- bureau
- Files:
-
- 2 edited
-
admin/sql_list.php (modified) (2 diffs)
-
class/m_mysql.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bureau/admin/sql_list.php
r109 r693 1 1 <?php 2 2 /* 3 $Id: sql_list.php,v 1. 5 2003/06/10 13:16:11 rootExp $3 $Id: sql_list.php,v 1.6 2005/05/27 20:46:26 arnaud-lb Exp $ 4 4 ---------------------------------------------------------------------- 5 5 AlternC - Web Hosting System … … 94 94 <form method="post" action="sql_addmain.php"> 95 95 <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> 97 97 <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> 98 98 <tr class="lst2"><th><?php __("SQL Server"); ?></th><td><code><?php echo $mysql->server; ?></code></td></tr> -
bureau/class/m_mysql.php
r692 r693 1 1 <?php 2 2 /* 3 $Id: m_mysql.php,v 1.3 1 2005/05/27 20:10:18arnaud-lb Exp $3 $Id: m_mysql.php,v 1.32 2005/05/27 20:46:26 arnaud-lb Exp $ 4 4 ---------------------------------------------------------------------- 5 5 AlternC - Web Hosting System … … 64 64 global $db,$err,$bro,$cuid; 65 65 $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';"); 67 67 if (!$db->num_rows()) { 68 68 $err->raise("mysql",11); … … 72 72 while ($db->next_record()) { 73 73 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")); 75 75 } 76 76
Note: See TracChangeset
for help on using the changeset viewer.
