Changeset 3186


Ignore:
Timestamp:
06/25/12 09:59:29 (11 months ago)
Author:
squidly
Message:

Bugfixing panel + petite correction makefile

Location:
alternc/trunk
Files:
7 edited

Legend:

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

    r2732 r3186  
    3535} 
    3636 
    37 if($_POST["del_confirm"] == "y"){ 
     37if(isset($_POST["del_confirm"]) && $_POST["del_confirm"] == "y"){ 
    3838  if (!is_array($d)) { 
    3939    $d[]=$d; 
     
    4747    } 
    4848    if (!($u=$admin->get($val)) || !$admin->del_mem($val)) { 
    49       $error.=sprintf(_("Member '%s' does not exist"),$val)."<br />"; 
     49      $error=sprintf(_("Member '%s' does not exist"),$val)."<br />"; 
    5050    } else { 
    51       $error.=sprintf(_("Member %s successfully deleted"),$u["login"])."<br />"; 
     51      $error=sprintf(_("Member %s successfully deleted"),$u["login"])."<br />"; 
    5252    } 
    5353  } 
  • alternc/trunk/bureau/admin/browseforfolder.php

    r2724 r3186  
    7777 
    7878 
    79 if ($select) { 
     79if (isset($select) && $select) { 
    8080        /* Go ahead, let's send the javascript ...*/ 
    8181?> 
  • alternc/trunk/bureau/admin/sta2_add_raw.php

    r2724 r3186  
    4040<br /> 
    4141<?php 
    42         if ($error) { 
     42        if (isset($error) && $error) { 
    4343                echo "<p class=\"error\">$error</p>"; 
    4444                include_once("foot.php"); 
     
    5252        <select class="inl" name="hostname" id="hostname"><?php $sta2->select_host_list($hostname); ?></select> 
    5353</td></tr> 
    54 <tr><th><label for="dir"><?php __("Folder where we will put the log file:"); ?></label></th><td><input type="text" class="int" name="dir" id="dir" value="<?php ehe($dir); ?>" size="20" maxlength="255" /> 
     54<tr><th><label for="dir"><?php __("Folder where we will put the log file:"); ?></label></th><td><input type="text" class="int" name="dir" id="dir" value="" size="20" maxlength="255" /> 
    5555<script type="text/javascript"> 
    5656<!-- 
  • alternc/trunk/bureau/admin/sta2_list.php

    r2843 r3186  
    4343<?php   } 
    4444 
    45         if ($error) { 
     45        if (isset($error) && $error) { 
    4646                echo "<p class=\"error\">$error</p>"; 
    4747        } 
  • alternc/trunk/bureau/class/m_dom.php

    r3182 r3186  
    407407       
    408408      if (! is_dir($dest_root . "/". $domshort)) { 
    409         mkdir($dest_root . "/". $domshort); 
     409                  if(!mkdir($dest_root . "/". $domshort)){ 
     410                          $err->raise("dom",1); 
     411                          return false; 
     412                  } 
    410413      } 
    411414 
    412415      if (! is_dir($dest_root . "/tmp")) { 
    413         mkdir($dest_root . "/tmp"); 
     416                  if(!mkdir($dest_root . "/tmp")){ 
     417                          $err->raise("dom",1); 
     418                          return false; 
     419                  } 
    414420      } 
    415421 
  • alternc/trunk/bureau/class/m_sta2.php

    r3132 r3186  
    118118    } 
    119119    // on détruit les jeux de stats associés au préfixe correspondant : 
    120     for($i=0;$i<cnt;$i++) { 
     120    for($i=0;$i<$cnt;$i++) { 
    121121      $db->query("DELETE FROM stats2 WHERE mid='$cuid' AND hostname='".$t[$i]."';"); 
    122122    } 
  • alternc/trunk/src/Makefile

    r3135 r3186  
    2626# ---------------------------------------------------------------------- 
    2727# 
    28 SETUID=mail_add mail_del quota_edit quota_get mem_add mem_del 
     28SETUID=mail_add mail_del quota_edit quota_get mem_add mem_del du.pl 
    2929SCRIPTS=sqlbackup.sh rawstat.daily quota_init quota_delete update_domains.sh slave_dns sendmail spoolsize.php fixperms.sh alternc-dboptimize export_account.php cron_users_doit.sh cron_users.sh 
    3030LIBS=functions.sh functions_hosting.sh functions_dns.sh 
     
    3535        chown root:1999 $(BIN) 
    3636        chmod 755 $(BIN) 
    37         install -o root -g 1999 -m4750 $(SETUID) du.pl $(BIN) 
     37        install -o root -g 1999 -m4750 $(SETUID) $(BIN) 
    3838        install -o root -g 1999 -m0750 $(SCRIPTS) $(BIN) 
    3939        install -o root -g 1999 -m0644 $(LIBS) $(BIN) 
Note: See TracChangeset for help on using the changeset viewer.