Usergruppen Variablen umbenannt

main
radiskull 13 years ago
parent 9e7b18f3bd
commit 06034bcf6b

@ -117,8 +117,8 @@ distributeFruit($win_user['besitzer']);
//Schutz vor automatischem löschen hinzufügen für den sieger :) //Schutz vor automatischem löschen hinzufügen für den sieger :)
$usergroups = getUserGroups($win_user['besitzer']); $usergroups = getUserGroups($win_user['besitzer']);
if(!isUserInGroup($usergroups, inaktiv_loeschschutz) && !isUserInGroup($usergroups, aktiv_loeschschutz)) { if(!isUserInGroup($usergroups, INAKTIV_LOESCHSCHUTZ) && !isUserInGroup($usergroups, AKTIV_LOESCHSCHUTZ)) {
addUserToGroup($win_user['besitzer'], inaktiv_loeschschutz); addUserToGroup($win_user['besitzer'], INAKTIV_LOESCHSCHUTZ);
} }
// Durchschnittslevel // Durchschnittslevel

@ -7,13 +7,14 @@
*/ */
//Konstanten //Konstanten
define("admin", 1); define("ADMIN", 1);
define("tester", 2); define("TESTER", 2);
define("entwickler", 3); define("ENTWICKLER", 3);
define("designer", 4); define("DESIGNER", 4);
define("Werbung_an", 5); define("WERBUNG_AN", 5);
define("inaktiv_loeschschutz", 6); define("INAKTIV_LOESCHSCHUTZ", 6);
define("aktiv_loeschschutz", 7); define("AKTIV_LOESCHSCHUTZ", 7);
define("AKTIV_CHAT", 8);
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php'); include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/parse.inc.php');

@ -9,6 +9,7 @@
$test = date("H"); $test = date("H");
include "db.php"; include "db.php";
include_once ('inclu/messagefunctions.inc.php'); include_once ('inclu/messagefunctions.inc.php');
include_once ('include/usergroup.inc.php');
include_once ('clanfights.inc.php'); include_once ('clanfights.inc.php');
if ($test == "02") { if ($test == "02") {
@ -187,7 +188,7 @@ mysql_query('DELETE FROM user_activation where TIMESTAMPDIFF(day, registerdate,
mysql_query('DELETE FROM anon_chatter WHERE TIMESTAMPDIFF(day, online, now()) > 35'); // 5 Wochen mysql_query('DELETE FROM anon_chatter WHERE TIMESTAMPDIFF(day, online, now()) > 35'); // 5 Wochen
// Loesche inaktive user! // Loesche inaktive user!
$sql = 'Select * from user where TIMESTAMPDIFF(week, online_zeit, now()) > 10 and id > 2 and id not in (SELECT user_id FROM user_gruppe_zuordnung WHERE gruppen_id = '.aktiv_loeschschutz.' AND user_id = id)'; $sql = 'Select * from user where TIMESTAMPDIFF(week, online_zeit, now()) > 10 and id > 2 and id not in (SELECT user_id FROM user_gruppe_zuordnung WHERE gruppen_id = '.AKTIV_LOESCHSCHUTZ.' AND user_id = id)';
//echo $sql; //echo $sql;

Loading…
Cancel
Save