Changeset 2786


Ignore:
Timestamp:
11/18/10 10:12:55 (4 years ago)
Author:
benjamin
Message:

debug supression des bdd, step1

Location:
alternc/trunk/bureau
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/bureau/admin/adm_doadd.php

    r2559 r2786  
    6969  $mem->unsu(); 
    7070  
    71  $error=_("The new member has been successfully created"); 
     71  $error=_("The new member has been successfully created"); 
    7272 
    7373 include("adm_list.php"); 
  • alternc/trunk/bureau/admin/sql_del.php

    r2719 r2786  
    3636    if (substr($key,0,4)=="del_") { 
    3737      // Effacement de la base $val 
    38       $r=$mysql->del_db($val); 
     38      $r=$mysql->del_db(substr($key,4)); 
    3939      if (!$r) { 
    4040        $error.=$err->errstr()."<br />"; 
     
    4949 
    5050$found=false; 
    51 foreach($_POST as $k) { 
     51foreach($_POST as $key=>$val) { 
    5252  if (substr($key,0,4)=="del_") { 
    5353    $found=true; 
  • alternc/trunk/bureau/admin/sql_list.php

    r2705 r2786  
    5959?> 
    6060        <tr  class="lst<?php echo $col; ?>"> 
    61                 <td align="center"><input type="checkbox" class="inc" id="del_<?php echo $val["name"]; ?>" name="del_<?php echo $val["name"]; ?>" value="<?php echo $val["name"]; ?>" /></td> 
     61                <td align="center"><input type="checkbox" class="inc" id="del_<?php echo $val["name"]; ?>" name="del_<?php echo $val["name"]; ?>" value="<?php echo ($val["name"])?$val["name"]:"_"; ?>" /></td> 
    6262           <td><label for="del_<?php echo $val["name"]; ?>"><?php echo $val["db"]; ?></label></td> 
    6363                <td><div class="ina"><a href="sql_bck.php?id=<?php echo $val["name"] ?>"><?php __("Backup"); ?></a></div></td> 
  • alternc/trunk/bureau/class/m_mysql.php

    r2678 r2786  
    330330    $db->query("INSERT INTO db (uid,login,pass,db) VALUES ('$cuid','".$login."','$password','".$dbname."');"); 
    331331    // give everything but GRANT on $user.* 
    332     $db->query("GRANT ALL PRIVILEGES ON `".$dbname."`.* TO '".$login."'@'$this->client' IDENTIFIED BY '".$password."'"); 
     332    $db->query("GRANT ALL PRIVILEGES ON `".$dbname."`.* TO '".$login."'@'$this->client' IDENTIFIED BY '".addslashes($password)."'"); 
    333333    $db->query("CREATE DATABASE `".$dbname."`;"); 
    334334    return true; 
Note: See TracChangeset for help on using the changeset viewer.