|
|
(73 dazwischenliegende Versionen von 10 Benutzern werden nicht angezeigt) |
Zeile 1: |
Zeile 1: |
− | Nach dem Herunterladen muss die Datei noch entpackt werden. Anschließend muss die config.php angepasst werden und anschließend das gesamte Tool auf den eigenen Webserver geladen werden.<br />
| + | == Vorbereitung == |
− | Die attributes.php KANN angepasst werden. Das Tool läuft aber auch, wenn nur die config.php angepasst wurde.<br />
| |
− | <br />
| |
− | War die Anpassung der config.php korrekt, kann die install.php ausgeführt werden, die kurz erläutert was gerade geschieht und immer ein <font color='orangered'>done</font> als erfolgreichen Abschluss ausgibt.<br />
| |
− | Gab es Probleme bei der Ausführung der install.php kann davon ausgegangen werden, dass die config.php nicht korrekt angepasst wurde.<br />
| |
− | Daher folgt nun eine deatillierte Beschreibung des Inhalts der config.php und wie diese anzupassen ist.<br />
| |
− | <br />
| |
− | <font color='skyblue'><font style="font-size:10pt; font-weight:bold;">config.php</font></font><br />
| |
− | <font style="font-size:10pt; font-weight:bold;">Datenbankteil</font><br />
| |
− | <div id="main"><div class="standard">
| |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $dbusername </font><font color="#006600">= </font><font color="yellowgreen">'username'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| |
− | In die Anführungszeichen muss der Datenbankbenutzername für eure MySQL Datenbank eingetragen werden. <br />
| |
| | | |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $dbpassword </font><font color="#006600">= </font><font color="yellowgreen">'userpasswort'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| + | Nach dem [[Downloads|Herunterladen]] muss die Datei entpackt werden. Dazu wird ein Programm zum Entpacken von .zip-Dateien benötigt. ( Empfehlung: [http://www.7-zip.de/ 7-Zip]) Anschließend müssen die Dateien auf euren Webserver hochgeladen werden. Dies geschieht mit einem FTP-Programm wie Filezilla ([http://www.filezilla.de/download.htm]) oder einem vom Hoster dafür vorgesehen Panel. Danach sollten [[Schreibrechte setzen| Schreibrechte]] auf den config-Ordner gesetzt werden. |
− | In die Anführungszeichen muss das Datenbankbenutzerpassword für eure MySQL Datenbank eingetragen werden.<br />
| |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $dbname </font><font color="#006600">= </font><font color="yellowgreen">'datenbank'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| |
− | In die Anführungszeichen muss der Name eurer MySQL Datenbank eingetragen werden.<br />
| |
| | | |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $dbtablename </font><font color="#006600">= </font><font color="yellowgreen">'tabelle'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| + | == Installation == |
− | In die Anführungszeichen muss der Tabellenname für die Galaxiedatenbank eingetragen werden. Es empfiehlt sich die Verwendung eines aussagekräftigen Namens wie z.B. <font color='skyblue'>u15_galaxy</font> um auch bei einem Blick in eure Datenbank noch zu wissen um was es sich handelt.<br />
| |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $utablename </font><font color="#006600">= </font><font color="yellowgreen">'tabelle2'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| |
| | | |
− | In die Anführungszeichen muss der Tabellenname für die Benutzer des Tools eingetragen werden. Es empfiehlt sich die Verwendung eines aussagekräftigen Namens wie z.B. <font color='skyblue'>u15_user</font>.<br />
| + | Nach dem Hochladen aller Dateien muss man die install.php im Browser aufrufen: |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $pstablename </font><font color="#006600">= </font><font color="yellowgreen">'tabelle3'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| |
− | In die Anführungszeichen muss der Tabellenname für die Spielerstats des Tools eingetragen werden. Es empfiehlt sich die Verwendung eines aussagekräftigen Namens wie z.B. <font color='skyblue'>u15_playerstats</font>.<br />
| |
| | | |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $astablename </font><font color="#006600">= </font><font color="yellowgreen">'tabelle4'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| + | http://example.com/path_to_galaxytool/install.php |
− | In die Anführungszeichen muss der Tabellenname für die Allianzstatistik des Tools eingetragen werden. Es empfiehlt sich die Verwendung eines aussagekräftigen Namens wie z.B. <font color='skyblue'>u15_allystats</font>.<br />
| |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $noticetable </font><font color="#006600">= </font><font color="yellowgreen">'tabelle5'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| |
| | | |
− | In die Anführungszeichen muss der Tabellenname für die Notizen des Tools eingetragen werden. Es empfiehlt sich die Verwendung eines aussagekräftigen Namens wie z.B. <font color='skyblue'>u15_notices</font>.<br />
| + | Folgt nun den Anweisungen auf dem Bildschirm und gebt dort alle erforderlichen Informationen ein. Die Anweisungen geben euch detaillierte Hinweise, wenn etwas nicht funktioniert bzw. was einzugeben ist.<br> |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $reporttable </font><font color="#006600">= </font><font color="yellowgreen">'tabelle6'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| + | '''Alle Konfigurations-Dateien werden während der Installation erzeugt - es ist nicht notwendig irgendeine Datei manuell zu editieren.''' |
− | In die Anführungszeichen muss der Tabellenname für die Spionageberichte des Tools eingetragen werden. Es empfiehlt sich die Verwendung eines aussagekräftigen Namens wie z.B. <font color='skyblue'>u15_reports</font>.<br />
| |
| | | |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $iptablename </font><font color="#006600">= </font><font color="yellowgreen">'tabelle7'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| + | == Abschließendes == |
− | In die Anführungszeichen muss der Tabellenname für die IP-Adressen der Benutzer des Tools eingetragen werden. Es empfiehlt sich die Verwendung eines aussagekräftigen Namens wie z.B. <font color='skyblue'>u15_ip</font>.<br />
| |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $shouttable </font><font color="#006600">= </font><font color="yellowgreen">'tabelle8'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| |
| | | |
− | In die Anführungszeichen muss der Tabellenname für die neuesten Nachrichten auf der Übersichtsseite eingetragen werden. Es empfiehlt sich die Verwendung eines aussagekräftigen Namens wie z.B. <font color='skyblue'>u15_shoutbox</font>.<br />
| + | Im Abschluss sollte aus Sicherheitsgründen die install.php sowie die update.php vom Server gelöscht werden! |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $dbhost </font><font color="#006600">= </font><font color="yellowgreen">'localhost'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| + | Der Login nach der Installation erfolgt mit den bei der Installation erzeugten Accountdaten. |
− | In die Anführungszeichen muss die Adresse (im allgemeinten nur &quot;localhost&quot;) für eure MySQL Datenbank eingetragen werden.<br />
| |
| | | |
− | Solltet ihr eine andere Adresse für eure MySQL Datenbank haben, so erfahrt ihr das von eurem Anbieter.<br />
| + | [[en:Installation]] |
− | <br />
| + | [[es:Instalación]] |
− | <br />
| |
− | <font color='skyblue'><font style="font-size:10pt; font-weight:bold;">attributes.php</font></font><br />
| |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $owner </font><font color="#006600">= </font><font color="yellowgreen">'yourname'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| |
− | In die Anführungszeichen tragt ihr eure Allianz oder euren nick ein. Auf der Loginseite ist dieser dann zu sehen, um das Tool besser von gleichen Versionen eines anderen Unis unterscheiden zu können.<br />
| |
− | | |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $maxshouts </font><font color="#006600">= </font><font color="chocolate">15</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| |
− | Tragt hier ein wie viele Mitteilungen auf der Übersichtsseite gespeichert und angezeigt werden sollen.<br />
| |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $statspage </font><font color="#006600">= </font><font color="chocolate">100</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| |
− | Anzahl der Einträge die auf der Statistik Seite stehen. Standardmäßig sind es wie bei ogame 100. Wollt ihr weniger scrollen, wählt eine andere Zahl.<br />
| |
− | | |
− | <br />
| |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $email_from </font><font color="#006600">= </font><font color="chocolate">$_SERVER</font><font color="#006600">[</font><font color="yellowgreen">'SERVER_ADMIN'</font><font color="#006600">]; </font><font color="chocolate"></font></font></code></div> <br />
| |
− | Hier könnt ihr in einfachen Anführungszeichen eine Emailadresse angeben, die bei den Registrierungsemails als &quot;FROM&quot; Feld angegeben wird.<br />
| |
− | <br />
| |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $default_language </font><font color="#006600">= </font><font color="yellowgreen">'german'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| |
− | | |
− | In die Anführungszeichen muss die Standardsprache eingesetllt werden. Zur Auswahl stehen: <font color='skyblue'>german, english, spanish, dutch, balkan, french, portugues, turkish, danish, italian and polish</font>.<br />
| |
− | <br />
| |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $default_charset </font><font color="#006600">= </font><font color="yellowgreen">'iso-8859-1'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div> <br />
| |
− | In die Anführungszeichen muss der ISO Code eingestellt werden. Der voreingestellt Code sollte in den meisten Fällen bereits korrekt sein.<br />
| |
− | <br />
| |
− | | |
− | <font style="font-size:10pt; font-weight:bold;">Hauptmenü anpassen</font> <br />
| |
− | <div class="code">
| |
− | <p><code><font color="#000000"><font color="chocolate"> $additional_links_german </font><font color="#006600">= array( <br />
| |
− | <br />
| |
− | </font><font color="yellowgreen">'Ogame' </font><font color="#006600">=> </font><font color="yellowgreen">'<nowiki>http://www.ogame.de</nowiki>'</font></font></code></p>
| |
− | <p><code><font color="#000000"><font color="#006600">); </font><font color="chocolate"></font></font></code></p>
| |
− | </div><br />
| |
− | Durch dieses Beispiel wird im Hauptmenü ein zusätzlicher Link zur Ogame Startseite erzeugt.<br />
| |
− | | |
− | Wenn es erwünscht ist, kann einfach ein neuer Link (z.B. Allyforum) hinzugefügt werden, indem ein weiterer Eintrag angehängt wird.<br />
| |
− | <br />
| |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $additional_links_german </font><font color="#006600">= array( <br />
| |
− | <br /></font><font color="yellowgreen">'Ogame' </font><font color="#006600">=> </font><font color="yellowgreen">'<nowiki>http://www.ogame.de</nowiki>'</font><font color="#006600">, <br />
| |
− | <br /></font><font color="yellowgreen">'Allyforum' </font><font color="#006600">=> </font><font color="yellowgreen">'<nowiki>http://www.eureallypage.de/weg/zum/forum</nowiki>'<br />
| |
− | | |
− | <br /></font><font color="#006600">); </font><font color="chocolate"></font></font></code></div><br />
| |
− | <br />
| |
− | Je mehr solcher Links hinzugefügt werden, desto umfangreicher wird auch das Hauptmenü.<br />
| |
− | Wie schon aufgefallen ist, ist das nur eine Erweiterung für die deutschen Menüs. Will man die Links auch für andere Sprachen verfügbar machen, so müssen diese Arrays auch angepasst werden.<br />
| |
− | <br />
| |
− | <br />
| |
− | Beim BB Code Export können die Farben über diese Konstanten angepasst werden. Dazu einfach einen Farbcode aus eurem Forum eingeben.<br />
| |
− | <div class="code"><code><font color="#000000"><font color="chocolate"><br />
| |
− | <br />define</font><font color="#006600">(</font><font color="yellowgreen">'BBCODE_COORDINATES&quot;<font color="#006600">,</font>'deeppink'<font color="#006600">);</font><br />
| |
− | <br />
| |
− | <font color="chocolate">define</font><font color="#006600">(</font>'BBCODE_MOON&quot;<font color="#006600">,</font>'burlywood'</font><font color="#006600">);<br />
| |
− | <br /></font><font color="chocolate">define</font><font color="#006600">(</font><font color="yellowgreen">'BBCODE_DEBRISFIELD'</font><font color="#006600">,</font><font color="yellowgreen">'firebrick'</font><font color="#006600">);<br />
| |
− | | |
− | <br /></font><font color="chocolate">define</font><font color="#006600">(</font><font color="yellowgreen">'BBCODE_ALLY'</font><font color="#006600">,</font><font color="yellowgreen">'tomato'</font><font color="#006600">);<br />
| |
− | <br /></font><font color="chocolate">define</font><font color="#006600">(</font><font color="yellowgreen">'BBCODE_ALLYDETAILS'</font><font color="#006600">,</font><font color="yellowgreen">'coral'</font><font color="#006600">);<br />
| |
− | <br /></font><font color="chocolate">define</font><font color="#006600">(</font><font color="yellowgreen">'BBCODE_PLAYERNAME'</font><font color="#006600">,</font><font color="yellowgreen">'teal'</font><font color="#006600">);<br />
| |
− | | |
− | <br /></font><font color="chocolate">define</font><font color="#006600">(</font><font color="yellowgreen">'BBCODE_BANNED'</font><font color="#006600">,</font><font color="yellowgreen">'red'</font><font color="#006600">);<br />
| |
− | <br /></font><font color="chocolate">define</font><font color="#006600">(</font><font color="yellowgreen">'BBCODE_VACATION'</font><font color="#006600">,</font><font color="yellowgreen">'skyblue'</font><font color="#006600">);<br />
| |
− | <br /></font><font color="chocolate">define</font><font color="#006600">(</font><font color="yellowgreen">'BBCODE_NOOB'</font><font color="#006600">,</font><font color="yellowgreen">'limegreen'</font><font color="#006600">);<br />
| |
− | | |
− | <br /></font><font color="chocolate">define</font><font color="#006600">(</font><font color="yellowgreen">'BBCODE_INACTIVE'</font><font color="#006600">,</font><font color="yellowgreen">'silver'</font><font color="#006600">);<br />
| |
− | <br /></font><font color="chocolate">define</font><font color="#006600">(</font><font color="yellowgreen">'BBCODE_LONGINACTIVE'</font><font color="#006600">,</font><font color="yellowgreen">'silver'</font><font color="#006600">);<br />
| |
− | <br /></font></font></code></div>
| |
− | <br />
| |
− | <br />
| |
− | <font style="font-size:10pt; font-weight:bold;">Ostat</font><br />
| |
− | | |
− | Nachdem mehrfach Anfragen zur direkten Verlinkung zu [http://www.ostat.de/ Ostat] aufkamen, wurde jetzt die Möglichkeit dafür integriert.<br />
| |
− | Es müssen lediglich das Universum sowie der ostat-Server (de oder org) angegeben werden.<br />
| |
− | Die Angabe des Universums empfiehlt sich in jedem Fall, so dass es oben Links im Hauptmenü angezeigt werden kann. Damit wird die Benutzung des Tools für die User erleichtert, die in mehreren Universen spielen.<br />
| |
− | <div class="code"><code><font color="#000000"><font color="chocolate"> $ostat_universe </font><font color="#006600">= </font><font color="yellowgreen">'15'</font><font color="#006600">; <br />
| |
− | | |
− | <br /> </font><font color="chocolate">$ostat_server </font><font color="#006600">= </font><font color="yellowgreen">'de'</font><font color="#006600">; </font><font color="chocolate"></font></font></code></div><br />
| |
− | <br />
| |
− | Dieses Beispiel würde für das deutsche Universum 15 die Links zu [http://www.ostat.de/ Ostat] erstellen. <br />
| |
− | <br />
| |
− | <font style="font-size:10pt; font-weight:bold;">Abschließendes</font> <br />
| |
− | <font color='orangered'>Im Abschluss sollte aus Sicherheitsgründen die install.php sowie die update.php vom Server gelöscht werden!</font><br />
| |
− | | |
− | Der erste Login nach der Installation erfolgt mit:<br />
| |
− | <font color='limegreen'><br />
| |
− | Loginname: admin<br />
| |
− | Passwort: galatool<br />
| |
− | </font><font color='orangered'><br />
| |
− | Es sollte jedem klar sein, dass als erstes das Passwort für den Admin geändert werden sollte!</font>
| |
− | </div>
| |
− | </div>
| |
Folgt nun den Anweisungen auf dem Bildschirm und gebt dort alle erforderlichen Informationen ein. Die Anweisungen geben euch detaillierte Hinweise, wenn etwas nicht funktioniert bzw. was einzugeben ist.
Alle Konfigurations-Dateien werden während der Installation erzeugt - es ist nicht notwendig irgendeine Datei manuell zu editieren.
Im Abschluss sollte aus Sicherheitsgründen die install.php sowie die update.php vom Server gelöscht werden!
Der Login nach der Installation erfolgt mit den bei der Installation erzeugten Accountdaten.