1. GSManager
    1. Funktionen
    2. Unterstützte Spiele
    3. Neuigkeiten
    4. Statistiken
    5. Serverliste
  2. Lexikon
  3. Filebase
  4. Entwicklung
  5. Forum
    1. Dashboard
    2. Unerledigte Themen
  6. Web-Interface
  7. Artikel
  8. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Dateien
  • Forum
  • Lexikon
  • Erweiterte Suche
  1. GSManager
  2. Forum
  3. Unterstützung
  4. Benutzung

Sharing admin list

  • jchamb2010
  • 24. Juli 2010 um 03:45
Das Projekt GSManager (vormals ManuAdminMod) wurde am 01.01.2020 eingestellt - diese Internetpräsenz bleibt verfügbar, die Software wird aber nicht länger gepflegt. Vielen Dank für eure Unterstützung in den mehr als zehn vergangenen Jahren!
1. offizieller Beitrag
  • jchamb2010
    Anfänger
    Punkte
    175
    Beiträge
    29
    • 24. Juli 2010 um 03:45
    • #1

    I have 3 call of duty 4 servers and I would like to be able to share the same admin list.

    I know this is possible with some code modifications (I've done it before), however I'd like to be able to see it done without having to modify the original source.

    Thanks,
    JChamb2010

  • Dennis
    Administrator
    Reaktionen
    148
    Punkte
    37.933
    Trophäen
    7
    Artikel
    4
    Dateien
    2
    Beiträge
    7.453
    • 24. Juli 2010 um 10:00
    • Offizieller Beitrag
    • #2

    I don't believe there is any way to solve that problem by building a Plugin ...

    • Nächster offizieller Beitrag
  • Geventh
    Fortgeschrittener
    Punkte
    1.000
    Trophäen
    1
    Beiträge
    195
    • 24. Juli 2010 um 10:23
    • #3

    With a plugin it's not possible...
    Only thing, that u can do is to change Manu's classes files, but if u do that u won't get support here, if there are probs!

    You need 3 or 4 MAM folders, edit all them foreach server!
    Then u have to change the mod.class.php file in folder classes, but like i said it's your fault if do it and if it's not working!
    You just have to change 2 things.

    PHP
    //admins.cfg
    		$this->admins = parse_cfg_file($this->configDir . "/admins.cfg", true);
    		foreach ($this->admins as $key => $value) {
    			$this->admins[$key]["names"] = array_map("strtolower", explode(",", $value["names"]));
    		}
    		$this->logging->write(MOD_NOTICE, "Config loaded: admins.cfg");
    
    
    
    
    protected function writeAdminsCfg() {
    	    $fp = fopen($this->configDir . "/admins.cfg", "w");
    	    fwrite($fp, "; This file will be overwritten by the mod automatically\n; Do not make any comments inhere\n; Use the generator to generate a valid file: http://manuadminmod.de/config/admin.php\n\n");
    	    foreach ($this->admins as $key => $value) {
                fwrite($fp, "[$key]\n");
                fwrite($fp, "group = \"$value[group]\"\n");
                fwrite($fp, "names = \"".implode(",", $value["names"])."\"\n");
                fwrite($fp, "protected = ".(($value["protected"]) ? 1 : 0)."\n");
                fwrite($fp, "\n");
    
    
    
    
    	    }
    	    fclose($fp);
    	    $this->logging->write(MOD_NOTICE, "admins.cfg was updated and written to hard disk");
    	}
    Alles anzeigen

    in all 3 or 4 files!! You should know which things have to be changed, if u are smart..
    I won't help u now..

    Geventh

    2 Mal editiert, zuletzt von Geventh (24. Juli 2010 um 10:24)

  • Dieses Thema enthält 2 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind.
  1. Mitarbeiter
  2. Datenschutzerklärung
  3. Nutzungsbedingungen
  4. Impressum
  5. Kontakt
Community-Software: WoltLab Suite™