/* * Copyright (c) 2006,2007 * * Florian Schreier. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. The names of its contributors may never be used to endorse or promote * products derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * travsync mod - copyright (c) 2007,2008, 2009 * smugas * (ideas for new modules, all new source code created and some old modificated) * Copyright notice the same as main project, based on stable 3.12 and some of 4.0b code */ /* * Other: * overLIB library * JSON parser * xajax PHP & Javascript Library * maps from http://travmap.shishnet.org/ * chat from "AJAX and PHP: Building Responsive Web Applications" * Liberation fonts */ CHANGELOG From Version 1.0 (21.06.2006) to Version 3.1.2 (22.10.2006)- changelog in original package by {tomilo} (30.06.2007) - dodanie logowania adresow ip uzytkownikow login.php: - dodawanie i aktualizacja wpisow: index.php:68 - sekcje stat_ip, menu w pliku lang.php:55,172 - plik menu.php:42 - nowy plik stat_ip.php - pik user.php:53 recznie dodano definicje czcionki 8859-2 gdzie nie zastosowano funkcji write_header (01.07.2007) - dodanie pliku links.php do zamieszczania likow z uzytecznymi stronami - dodanie pol informacyjnych div do plikow user.php i umkreis.php - zmiana kodowania strony na UTF-8 (08.07.2007) - migration to beta 4: modul definicji wlasnej wioski, wlasnego bohatera (aktualizacja menu i konfiguracji) - migration to beta 4: rysunki w module statystyki - dodanie pola usowania wpisow w module stat_ip (nie mozna usuwac wpisow dotyczacych samego siebie) - zmiana opis w formatce dodawania/edytowania wojska,bohaterow - rozroznienie edycji istniejacego i dodawania nowego wpisu - poprawka bledu w dorf.php (przy dodawaniu poziomu rezydencji, palacu) - dodanie do tabeli spieler pol: email, language (baza danych) - dodanie do pliku inc_config.php stalej SERVER (14.07.2007) - zmiana pliku rejestracji register.php - dodanie sprawdzania email, poprawione komunikaty bledow, uzycie mysql_escape dla zmiennych (15.07.2007) - dodanie opisu zalogowanego gracza: oben.php - aktualizacja menu, ododanie pozycji profil - dodanie zmiany profilu: profil.php - poprawka do skryptu pozwalajacego na wklejanie wojska: send.php - dodanie w pliku: index.php nowej zmiennej sesji $_SESSION['email'] do min. wyswietlania w naglowku strony - wysylanie e-maili do graczy za pomoca funkcji php - mail (wymaga lokalnego sendmaila) (22.07.2007) - dodany modul chat w wersji podstawowej - technologia ajax (dostep dla wszystkich graczy) - zmiana zachowania przy braku dostepu lub braku uprawnien do srony - nowy komunikat i automatyczne przekierowanie na index.php - nowa stala DEFINE SERVER w inc_config.php (24.07.2007) - dodany czat dla administratorow (dostep dla graczy z uprawnieniami do STATYSTYKI) (27.07.2007) - zmiana rozmiaru okna chatu - styles.css - dodanie do profilu pola opisu, pola wyboru przynaleznosci do grupy, pola dodawania numeru IM (np GG) - lista graczy z ich kontaktami: dodanie pliku member_list.php - dodanie opisu w naglowku strony: oben.php - dodawanie grupy do zmiennej sesji: index.php, profil.php (29.07.2007) - dodano sortowanie po polach grupa, player w member_list.php - dodanie modulu listy wszystkih wiosek: dorf_list.php (07.08.2007) - dodanie listy graczy po kliknieciu na nazwe sojuszu w subpart.php (dodanie obslugi biblioteki xajax) (12.08.2007) - podzial listy graczy na subsojusze w module wszystkie wojska, wybor wyswietlanego subsojuszu - mapa wiosek generowane przez http://travmap.shishnet.org/ w modulach wioski, szczegoly gracza, subczesci (15.08.2007) - poprawiono adres strony tworcy trooptool-a na aktualny w oben.php - dodano nowa sekcje div oraz rysunek tla w oben.php - upgrade do 4b plikow umkreis.php, umkreis2.php - nowa, lepsza wyszukiwarka wojska - zmiana w pliku send.php - eliminacja zmiennych serwera sluzacych do rozpoznawania przegladarki - dodanie do bazy danych informacji o nazwach sitterow,dodanie pol do wpisywania sitterow w register.php i wyswietlanie sitterow w member_list.php (26.08.2007) - integracja z forum punBB: index.php (dodanie obslugi logowania oraz rejestracji uzytkownikow na forum przy pierwszym ich logowaniu), logout.php (usowanie ciasteczek punBB), profile.php (zmiana profilu w punBB) menu.php (link do forum) ustawienia punBB: zablokowana rejestracja edycja plikow: login.php:200 , login.php:102 -przekierowanie do pliku logout.php trooptool - poprawienie map.sql: uzycie zmiennej SERVER z pliku inc_config.php (23.11.2007) - Dodanie !!!Atak!!! - kordynacja ataków grupowych, uzycie rozszezenia obliczen geometrycznych mysql - dodanie czasu serwera, dodane: js/clock.js, modyfikowane: function.php, action.php, subpart.php, user.php, hero.php, logout.php - poprawka do menu.php - pojawial sie link do forum mimo niezalogowania (7.12.2007) - plik dorf.php - dodanie title wyjasniajacego last update i pochodzenie danych z map.sql - plik update - dodanie kilku sposobow uploadu map.sql.gc - przejscie na wersje spakowana .gz (9.12.2007) - update i zabezpieczenie na wypadek braku tabeli x_world-menu.php update.php dorf.php showtroops.php - update oben.php - style.css (11.12.2007) - poprawka przy wyswietlaniu duzej ilosci graczy (z zapytania sql) w !!!atak!!! action.php - dodanie mozliwosci wyboru subsojuszu przy wyswietlaniu graczy bioracych udzial wakcji (12.12.2007) - new tables - _teams _team_spiler - new entries faq.php, lang.php - update subpart.php, profil.php, member_list.php, menu.php, member.php (22.12.2007) - porawki do user.php send.php - jesli wspolrzedne pozycji x2==y2==0 to zmien je na wspolrzedne pochodzenia (poprawka na leniwych) - porawki do dorf.php senddorf.php - dodanie definiowania typu osady: off,deff, neut - new field in table _dorf (16.03.2008) - porawki do dorf.php,senddorf.php, lang.php - poprawki do definiowania profilu osady - poczatek przenoszenia pol tekstowych do pliku lang.php dla modulu update.php (14.04.2008) - chat.class.php - literowka w konstruktorze przy nawiazywaniu polaczenia mysqli - menu.php - poprawiona obsluga zintegrowanego forum - usuniecie mozliwosci edytowania nazwy sojuszu domyslnego subpart.php (27.03.2008) - dodanie instalatora z mozliwoscia obslugi kilku jezykow IMPORTANT: 1. aby stworzyc baze obslugujacja poprawnie polskie znaki UTF8 nalezy wydac polecenie CREATE DATABASE `speed` DEFAULT CHARACTER SET utf8 COLLATE utf8_polish_ci; 2. plik inc_config.php z katalogu glownego musi miec atrybut do zapisu dla innych (no i byc pusty) (29.05.2008) - changed table name to prefix_x_world (15.06.2008) - change profile.php to enable changing interface language - favicon.ico file added - member.php - changes, added 'lefto join' to sql query to speed up displaying players (19.06.2008) - install.php - all text are translation-able, auto detection of mysqli extension - .htaccess - added AddDefaultCharset UTF-8 to force UTF 8 on serwers with diffrent deafult coding (1.07.2008) - starting costs_calc.php - simple calculator for costs of troops creating and resources (5.07.2008) - change query and displaying contakt lin in: members.php, members_list.php, adding aditional key into spieler and x_world table to bust query performance up - kontakt.php - adding checking wrong/empty reciver,sender,title,body data (24.07.2008) - adding some data into function.php to use in costs_calc.php Version 07.2008 - fixing installation error in install.php (when mysqli was disabled, sended by: mos-tek), changing install.php, lang files - fixing player displaying error in member.php (after last update, sended by: mos-tek), changing install.php, lang files - clearing update.php, lang files files changed: member.php,update.php,install.php,lang.pl.php,lang.en.php,changelog.txt subpart.php,logout.php - fixing errors in member.php -old versin as pasted and some of code didint work (sended by: mos-tek) files changed: member.php,changelog.txt - create.php - remove duplicated entries from the same day (by Silmar) - add description field to display info in footer on every page files changed: install.php, lang files, create.php,changelog.txt Version 08.2008 - adding site info and server information at the bottom of the page - changing layout - totaly new css definitions, all files changed to fit new layout - small - added: mysql_query('SET NAMES "'.text('inst_db_character_set').'")'; - added: mysql_query('SET CHARACTER SET "'.text('inst_db_character_set').'")'; - cleaning chat.php, chat.js - internalization of clock.js file - security fix http://forum.truppentool.de/index.php?topic=833.0 http://forum.truppentool.de/index.php?topic=834.0 - removed class Chat with mysqli support because problems with php4 on some servers !!! NOW Chat should work on almost all servers !!! - small mistake in team.php (total streght of troops in a team was wrongly counted) - added summary table in group.php, total sum of troops for team - admin.php - small mistake (total crop eaten was counted as race of logged user) - install.php - travsync header added - stat.php, image.php - statistic are working again, utf8 support with players names - new string in language files, page charset $text['header_character_set'] = 'utf-8'; - small language mistakes in language files - new constant in inc_config.php: define('STORE_PLAYERS_IP',1); can disable players IP registering if 0 - removed some global variables Version 2008.01 QUICK UPGRADE FROM 11.2008 or 12.2008: - replace all source files, but not inc_config.php !!! - edit inc_config.php and add: define('STORE_PLAYERS_IP',1); END QUICK UPGRADE - fixed - statistic diagrams with usernames in utf-8 now are working! added fonts file into travsync package (LiberationMono-Bold.ttf 102,5 KB) - new feature - in module All villages after moving mouse over village name small map will be displayed - new feature - export troops data in csv format from all troops module, to analyse in excel,oocalc etc. (please to check it, and find out where it will be more useful...) - small mistake in team.php (total strength of troops in a team was wrongly counted) - added summary table in group.php, total sum of troops for team - admin.php - small mistake (total crop eaten was counted as race of logged user) - install.php - travsync header added - stat.php, image.php - statistic are working again, utf8 support with players names - new string in language files, page charset $text['header_character_set'] = 'utf-8'; - small language mistakes in language files - new constant in inc_config.php: define('STORE_PLAYERS_IP',1); can disable players IP registering if 0 - removed some global variables Version 2008.01 update 1 - better map displaying in All Villages - after click map will stay until another click - added quick form fill in 'Own villages' module - name, cords can be inserted from uploaded map.sql - added hint displayed over village name in Own villages module that displays own troops at this position - image.php, function.php, diagram.php, user.php - added statistic diagram of own troop for user i Own troops module - added azoom=on& parametr to display villages map in Own villages module - menu.php, menu2.php - added visual information on active module to the menu - some fixes QUICK UPGRADE: replace dorf.php dorf_list.php, lang.en.php, lang.pl.php, changelog.txt, menu.php, menu2.php, image.php, function.php, diagram.php, user.php, stat.php files Version 2008.02 - new reservation module - added fields reservation system - adding Alliance select when registering - hero name can be edit - IM can be set as skype or GG or other - table for administrator notices - some sort of memo table - files added: reservation.php,o1.jpg,o2.jpg, o3.jpg,o4.jpg,o5.jpg,o6.jpg, f1.jpg, f2.jpg, f3.jpg, f4.jpg, f5.jpg, f6.jpg, f7.jpg, f8.jpg - trooptool webpage and forum are down :( - removed links to http://www.truppentool.de/ QUICK UPGRADE: 1. replace all (BUT NOT inc_config.php) files in main directory 2. copy new image files to img directory 3. log into travsync as administrator 4. run script http://youttravsyncwebaddress/upgrade_200901_to_200902.php 5. remove upgrade_200901_to_200902.php file (http://travsync.byethost17.com/wiki/index.php/Upgrade) (2009.02.26) - fixed error with users chat (Error accessing the server! Void server response.) - aded polish translation for notices Version 2008.03 - removed Duration module, this calculation moved to Calculator module - in Calculator, fields with results are aviable to copy, default volk for calculation is your own - Messages module, added sending message to whole ally, small info and many small changes - in Members and All villages list sorting is done by using sortable.js (changed to save server resources) - by krisan++ - create statistic looks better, fixed bug with removing duplicated calculation from the same day QUICK UPGRADE: 1. replace all (BUT NOT inc_config.php) files in main directory Version 2008.04 NEXT RELEASE TODO - action module - exclude village profiles (off,deff,neutral) - PARTIALLY DONE - extend it to multi choice - find troops module - correct it and extend functionality - akcja - wysylanie wiadomosci - teams - tworzenie akcji