X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=3af8a15f854c4bebc15b189d334abcc921431b54;hb=90a3af6cf232fa9b77270f38eb8d766b3bb3ac23;hp=2efb2ffc94b1d02379249ec194bfa26600ad5f16;hpb=ad9bfccebd7532f3283ef6cc0733a47973c9a44e;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 2efb2ff..3af8a15 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -2,7 +2,7 @@ /* * brisk - brisk.phh * - * Copyright (C) 2006-2013 Matteo Nastasi + * Copyright (C) 2006-2014 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -1078,6 +1078,11 @@ class Brisk { fprintf(STDERR, "RELOAD STUFF (%d)(%d)\n", count($ban_list), count($black_list)); + if (defined('CURL_DE_SAC_VERS')) { + if (brisk_cds_reload($this) == FALSE) { + exit(12); + } + } $this->ipclass_update("ban_list", $ban_list); $this->ipclass_update("black_list", $black_list); @@ -2258,6 +2263,9 @@ class Brisk } $idx = $ghost; + if (defined('CURL_DE_SAC_VERS')) { + brisk_cds_execute($this, $real_idx, $sess, $ip, $authenticate); + } return ($this->user[$ghost]); } else if ($idx != -1 && $i == MAX_PLAYERS) { @@ -2357,10 +2365,9 @@ class Brisk log_main(sprintf("TROVATO LIBERO A [%d] sess [%s] name [%s] count [%d] name [%s] code [%s]", $idx, $sess, $name_new, count($this->user),$this->user[$real_idx]->name, $this->user[$real_idx]->code)); $ret = $this->user[$real_idx]; - if ($this->cds->execute("tor_chk", $this, $real_idx, $sess, $ip) == FALSE) { - log_main("cds_execute failed"); + if (defined('CURL_DE_SAC_VERS')) { + brisk_cds_execute($this, $real_idx, $sess, $ip, $authenticate); } - return ($ret); }