From 17c00abbde510ad1bcd71f5379c16f5ae1d8e0f7 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sat, 24 Jul 2004 11:03:51 +0000 Subject: [PATCH] flag y (ADMIN_ADMIN) is not set anymore --- plugins/admin.sma | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/plugins/admin.sma b/plugins/admin.sma index 76d02123..4d8b29c3 100755 --- a/plugins/admin.sma +++ b/plugins/admin.sma @@ -32,7 +32,8 @@ * version. */ -#define USING_SQL 1 +// comment for non-mysql version +#define USING_SQL #include #include @@ -40,7 +41,7 @@ #include #endif -#define MAX_ADMINS 64 +#define MAX_ADMINS 64 new g_aPassword[MAX_ADMINS][32] new g_aName[MAX_ADMINS][32] @@ -178,12 +179,7 @@ public adminSql() { dbi_result(Res, "access", szAccess, 31) dbi_result(Res, "flags", szFlags, 31) - if ( (containi(szAccess,"z")==-1) && (containi(szAccess,"y")==-1) ) - szAccess[strlen(szAccess)] = 'y' - g_aAccess[ g_aNum ] = read_flags( szAccess ) - if (!(g_aAccess[g_aNum] & ADMIN_USER) && !(g_aAccess[g_aNum] & ADMIN_ADMIN)) - g_aAccess[g_aNum] |= ADMIN_ADMIN g_aFlags[ g_aNum ] = read_flags( szFlags ) ++g_aNum