/* * GProFTPD - A GTK+ frontend for the ProFTPD standalone server. * Copyright (C) 2001 - 2006 Magnus Loef (Magnus-swe) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * */ #ifndef FUNCTIONS_H #define FUNCTIONS_H #include extern struct w *widgets; int cmplowercase(char *buf, char *cmpstring); gchar *get_user_setting(gchar *user, gchar *what); gchar *get_group_name(gchar *groupnr); char *encrypt_password(G_CONST_RETURN gchar *password); int fix_newlines_in_conf(); void randomize_username(struct w *widgets); void randomize_password(struct w *widgets); char *random_string(int len); int user_exists(G_CONST_RETURN gchar *username); int group_exists(G_CONST_RETURN gchar *username); void password_user(G_CONST_RETURN gchar *username, G_CONST_RETURN gchar *password); int is_banned(char *user); void exec_ssl(char *command, char descr[128]); void make_dir_chmod(gchar *directory, char perm[128]); int file_exists(char *entity); #endif