/** * @param AJXP_Plugin $a * @param AJXP_Plugin $b * @return int */ public function frontendsSort($a, $b) { $aConf = $a->getConfigs(); $bConf = $b->getConfigs(); $orderA = intval($aConf["ORDER"]); $orderB = intval($bConf["ORDER"]); if ($orderA == $orderB) { return 0; } return $orderA > $orderB ? 1 : -1; }
public function getConfigs() { $configs = parent::getConfigs(); $configs["ALLOW_GUEST_BROWSING"] = !isset($_SERVER["HTTP_AJXP_FORCE_LOGIN"]) && ($configs["ALLOW_GUEST_BROWSING"] === "true" || $configs["ALLOW_GUEST_BROWSING"] === true || intval($configs["ALLOW_GUEST_BROWSING"]) == 1); // FORCE CASE INSENSITIVY FOR SQL BASED DRIVERS if (isset($configs["MASTER_INSTANCE_CONFIG"]) && is_array($configs["MASTER_INSTANCE_CONFIG"]) && isset($configs["MASTER_INSTANCE_CONFIG"]["instance_name"]) && $configs["MASTER_INSTANCE_CONFIG"]["instance_name"] == "auth.sql") { $configs["CASE_SENSITIVE"] = false; } if (isset($configs["SLAVE_INSTANCE_CONFIG"]) && !empty($configs["SLAVE_INSTANCE_CONFIG"]) && isset($configs["SLAVE_INSTANCE_CONFIG"]["instance_name"]) && $configs["SLAVE_INSTANCE_CONFIG"]["instance_name"] == "auth.sql") { $configs["CASE_SENSITIVE"] = false; } return $configs; }
public function getConfigs() { $configs = parent::getConfigs(); $configs["ALLOW_GUEST_BROWSING"] = !isset($_SERVER["HTTP_AJXP_FORCE_LOGIN"]) && ($configs["ALLOW_GUEST_BROWSING"] === "true" || $configs["ALLOW_GUEST_BROWSING"] === true || intval($configs["ALLOW_GUEST_BROWSING"]) == 1); return $configs; }
public function getConfigs() { $data = parent::getConfigs(); $this->filterData($data); return $data; }