forked from github/server
writepasswd um ausgabe der subscription-id erweitert.
This commit is contained in:
parent
7af84866ed
commit
eb08151447
|
@ -3703,3 +3703,25 @@ count_migrants (const faction * f)
|
|||
#endif
|
||||
return f->num_migrants;
|
||||
}
|
||||
|
||||
int
|
||||
writepasswd(void)
|
||||
{
|
||||
FILE * F;
|
||||
char zText[128];
|
||||
|
||||
sprintf(zText, "%s/passwd", basepath());
|
||||
F = cfopen(zText, "w");
|
||||
if (F) {
|
||||
faction *f;
|
||||
puts("Schreibe Passwörter...");
|
||||
|
||||
for (f = factions; f; f = f->next) {
|
||||
fprintf(F, "%s:%s:%s:%s:%u\n",
|
||||
factionid(f), f->email, f->passw, f->override, f->subscription);
|
||||
}
|
||||
fclose(F);
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -248,26 +248,6 @@ writefactiondata(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
writepasswd(void)
|
||||
{
|
||||
FILE * F;
|
||||
char zText[128];
|
||||
|
||||
sprintf(zText, "%s/passwd", basepath());
|
||||
F = cfopen(zText, "w");
|
||||
if (F) {
|
||||
faction *f;
|
||||
puts("Schreibe Passwörter...");
|
||||
|
||||
for (f = factions; f; f = f->next) {
|
||||
fprintf(F, "%s:%s:%s:%s\n",
|
||||
factionid(f), f->email, f->passw, f->override);
|
||||
}
|
||||
fclose(F);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef SHORTPWDS
|
||||
static void
|
||||
readshortpwds()
|
||||
|
|
|
@ -262,28 +262,6 @@ writefactiondata(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
writepasswd(void)
|
||||
{
|
||||
FILE * F;
|
||||
char zText[128];
|
||||
|
||||
sprintf(zText, "%s/passwd", basepath());
|
||||
F = cfopen(zText, "w");
|
||||
if (F) {
|
||||
faction *f;
|
||||
puts("Schreibe Passwörter...");
|
||||
|
||||
for (f = factions; f; f = f->next) {
|
||||
fprintf(F, "%s:%s:%s:%s\n",
|
||||
factionid(f), f->email, f->passw, f->override);
|
||||
}
|
||||
fclose(F);
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef SHORTPWDS
|
||||
static void
|
||||
readshortpwds()
|
||||
|
|
Loading…
Reference in New Issue