You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
#include <stdio.h>
|
|
#include <iostream>
|
|
#include <sstream>
|
|
#include <fstream>
|
|
#include <string>
|
|
#include <array>
|
|
#include <vector>
|
|
#include <linux/limits.h>
|
|
#include <sys/types.h>
|
|
#include <pwd.h>
|
|
#include <unistd.h>
|
|
#include <sys/types.h>
|
|
#include <iostream>
|
|
#include <map>
|
|
#include <string>
|
|
#include <array>
|
|
#include <vector>
|
|
#include <fstream>
|
|
#include <filesystem>
|
|
#include <stdio.h>
|
|
#include <map>
|
|
#include <pwd.h>
|
|
|
|
using namespace std;
|
|
|
|
template<typename Type>
|
|
struct Result{
|
|
Type response;
|
|
int error;
|
|
};
|
|
|
|
struct Passwd {
|
|
string user;
|
|
int uid;
|
|
};
|
|
|
|
std::array<std::vector<std::string>, 5> read_csv(const std::string& filename);
|
|
std::string call(std::string cmd);
|
|
vector<int> find_all(string &str_ntp, string substr);
|
|
void str_remove(std::string& source, std::string to_remove);
|
|
void str_replace_all(string &str_base, string str_find, string str_replace);
|
|
std::vector<std::string> split(std::string text, char delim);
|
|
unsigned short read_uid_min_max(string filename, string search);
|
|
vector <string> pars_users();
|
|
string read_passwd(string username);
|
|
int synopsis_show(string str_link);
|