delete_user.php
changeset 65 ce1c4d5e1576
parent 47 ae140472d97c
child 71 e1b918eaf69a
equal deleted inserted replaced
64:dab0e9deeb67 65:ce1c4d5e1576
   100                 }
   100                 }
   101                 ?></table><?
   101                 ?></table><?
   102         }
   102         }
   103         
   103         
   104         $message = _('You are going to delete this user, are you sure?');
   104         $message = _('You are going to delete this user, are you sure?');
   105         if(($numrows = $db->queryOne("select count(id) from zones where owner=$id")) != 0)
   105         if(($numrows = $db->queryOne("SELECT count(id) FROM zones WHERE owner=".$db->quote($id))) != 0)
   106         {
   106         {
   107         	$message .= " " . _('This user has access to ') . $numrows . _(' zones, by deleting him you will also delete these zones.');
   107         	$message .= " " . _('This user has access to ') . $numrows . _(' zones, by deleting him you will also delete these zones.');
   108         }
   108         }
   109 
   109 
   110         ?>
   110         ?>