示例#1
0
   (at your option) any later version.

   webDiplomacy is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with webDiplomacy.  If not, see <http://www.gnu.org/licenses/>.
*/
defined('IN_CODE') or die('This script can not be run by itself.');
/**
 * @package Base
 * @subpackage Static
 */
print libHTML::pageTitle('webDiplomacy Aiuto e Collegamenti', 'Collegamenti alle informazioni, regole, classifica e altro su webDiplomacy.');
?>
<ul class="formlist">

<li><a href="intro.php">Impara a giocare a Diplomacy</a></li>
<li class="formlistdesc">Introduzione per cominciare a giocare su webDiplomacy; dettagli sui tipi di Unità, movimenti e regole.<br /> Le regole usate per giocare online, sono uguali al regolamento del gioco in scatola.</li>

<li><a href="faq.php">Domande frequenti</a></li>
<li class="formlistdesc">Domande degli utenti su webDiplomacy e su come usarlo.</li>

<li><a href="rules.php">Regole del sito</a></li>
<li class="formlistdesc">Regole di comportamento da osservare per giocare su webDiplomacy .</li>

<li><a href="halloffame.php">Classifica</a></li>
<li class="formlistdesc">I migliori 100 del sito.</li>
示例#2
0
<?php

/*
   Copyright (C) 2004-2010 Kestas J. Kuliukas

	This file is part of webDiplomacy.

   webDiplomacy is free software: you can redistribute it and/or modify
   it under the terms of the GNU Affero General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   webDiplomacy is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with webDiplomacy.  If not, see <http://www.gnu.org/licenses/>.
*/
/**
 * @package Base
 * @subpackage Static
 */
require_once 'header.php';
libHTML::starthtml();
print libHTML::pageTitle(l_t('Recent changes'), l_t("Lists the most recent changes to the webdiplomacy software."));
require_once l_r('locales/English/recentchanges.php');
print '</div>';
libHTML::footer();
示例#3
0
            if ($set != '') {
                $set .= ', ';
            }
            $set .= $SQLName . " = '" . $SQLVars[$SQLName] . "'";
            $formOutput .= l_t('%s updated successfully.', $name) . ' ';
        }
        if ($set != '') {
            $DB->sql_put("UPDATE wD_Users SET " . $set . " WHERE id = " . $User->id);
        }
        if (isset($SQLVars['password'])) {
            $DB->sql_put("UPDATE wD_Users SET password = "******" WHERE id = " . $User->id);
            libAuth::keyWipe();
            header('refresh: 3; url=logon.php');
            $formOutput .= l_t('Password updated successfully; you have been logged out and ' . 'will need to logon with the new password.') . ' ';
        }
    } catch (Exception $e) {
        $formOutput .= $e->getMessage();
    }
    // We may have received no new data
    if ($formOutput) {
        $User->load();
        // Reload in case of a change
        print '<div class="content"><p class="notice">' . $formOutput . '</p></div>';
    }
}
print libHTML::pageTitle(l_t('User account settings'), l_t('Alter the settings for your webDiplomacy user account; e.g. change your password/e-mail.'));
print '<form method="post">
<ul class="formlist">';
require_once l_r('locales/English/user.php');
print '</div>';
libHTML::footer();
示例#4
0
   (at your option) any later version.

   webDiplomacy is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with webDiplomacy.  If not, see <http://www.gnu.org/licenses/>.
*/
defined('IN_CODE') or die('This script can not be run by itself.');
/**
 * @package Base
 * @subpackage Static
 */
print libHTML::pageTitle('webDiplomacy Help and Links', 'Links to pages with more information about webDiplomacy and this installation.');
?>
<ul class="formlist">

<li><a href="intro.php">The intro to Diplomacy</a></li>
<li class="formlistdesc">An introduction to playing webDiplomacy; gives details on unit types, move types,
and the rules of webDiplomacy.</li>

<li><a href="faq.php">FAQ</a></li>
<li class="formlistdesc">The webDiplomacy FAQ.</li>

<li><a href="rules.php">Rulebook/Contacting the Mods</a></li>
<li class="formlistdesc">The webDiplomacy rulebook.</li>

<li><a href="recentchanges.php">Recent changes</a></li>
<li class="formlistdesc">Recent changes to the webDiplomacy software.</li>
示例#5
0
<?php

/*
   Copyright (C) 2004-2010 Kestas J. Kuliukas

	This file is part of webDiplomacy.

   webDiplomacy is free software: you can redistribute it and/or modify
   it under the terms of the GNU Affero General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   webDiplomacy is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with webDiplomacy.  If not, see <http://www.gnu.org/licenses/>.
*/
/**
 * @package Base
 * @subpackage Static
 */
require_once 'header.php';
libHTML::starthtml();
print libHTML::pageTitle(l_t('webDiplomacy rulebook'), l_t('The webDiplomacy rules which let moderators and users keep this server fun to play on.'));
require_once l_r('locales/English/rules.php');
print '</div>';
libHTML::footer();
示例#6
0
   (at your option) any later version.

   webDiplomacy is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with webDiplomacy.  If not, see <http://www.gnu.org/licenses/>.
*/
defined('IN_CODE') or die('This script can not be run by itself.');
/**
 * @package Base
 * @subpackage Static
 */
print libHTML::pageTitle('Intro to webDiplomacy', 'A quick &amp; easy guide to get newcomers to webDiplomacy playing the game.');
print '
<p>
Diplomacy is a game which is easy to learn but impossible to master. The rules are all very intuitive,
lots of people pick them up just by playing, but this document will familiarize you more quickly.
</p>

<div class="hr"></div>';
?>
<p style="text-align:center"><a href="#Objective">Objective</a> - <a href="#Units">Units</a> -
	<a href="#Moves">Moves</a> - <a href="#Rules">Rules</a> - <a href="#Play">Play</a></p>

<div class="hr"></div>

<a name="Objective"></a>
<h3>Objective</h3>
示例#7
0
   (at your option) any later version.

   webDiplomacy is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with webDiplomacy.  If not, see <http://www.gnu.org/licenses/>.
*/
defined('IN_CODE') or die('This script can not be run by itself.');
/**
 * @package Base
 * @subpackage Static
 */
print libHTML::pageTitle('Diplomacy : Introduzione alle regole del gioco da tavolo ', 'Impara a giocare a Diplomacy con questo facile e veloce regolamento.');
?>
<p>
Diplomacy è un gioco da tavolo facile da imparare, ma difficilissimo da padroneggiare maniera eccelsa. 
Le regole somo semplici ed intuitive, e molti giocatori le imparano giocando (online oppure dal vivo); 
questo documento vi aiuterà ad ambientarvi più velocemente per poter giocare online sul sito.
</p>

<div class="hr"></div>


<p style="text-align:center"><a href="#Obiettivo">Obiettivo</a> - <a href="#Unità">Unità</a> -
	<a href="#Movimenti">Movimenti</a> - <a href="#Regole">Regole</a> - <a href="#Gioco">Gioco</a></p>

<div class="hr"></div>
示例#8
0
    webDiplomacy is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with webDiplomacy.  If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @package Base
* @subpackage Static
*/
require_once 'header.php';
libHTML::starthtml();
print libHTML::pageTitle(l_t('webDiplomacy variants'), l_t('A list of the variants available on this server, with credits and information on variant-specific rules.'));
$variantsOn = array();
$variantsOff = array();
$variants = glob('variants/*');
foreach ($variants as $variantDir) {
    if (is_dir($variantDir) && file_exists($variantDir . '/variant.php')) {
        $variantDir = substr($variantDir, 9);
        if (in_array($variantDir, Config::$variants)) {
            $variantsOn[] = $variantDir;
        } else {
            $variantsOff[] = $variantDir;
        }
    }
}
if (count($variantsOff)) {
    print '<a name="top"></a><h4>' . l_t('Active variants') . '</h4>';
示例#9
0
<?php

/*
   Copyright (C) 2004-2010 Kestas J. Kuliukas

	This file is part of webDiplomacy.

   webDiplomacy is free software: you can redistribute it and/or modify
   it under the terms of the GNU Affero General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   webDiplomacy is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with webDiplomacy.  If not, see <http://www.gnu.org/licenses/>.
*/
/**
 * @package Base
 * @subpackage Static
 */
require_once 'header.php';
libHTML::starthtml();
print libHTML::pageTitle(l_t('Intro to webDiplomacy Points'), l_t('A quick &amp; easy guide explaining what points are and what they\'re for in webDiplomacy.'));
require_once l_r('locales/English/points.php');
print '</div>';
libHTML::footer();
示例#10
0
    $userID = false;
    if (count($whereSQL)) {
        list($foundUserID) = $DB->sql_row("SELECT id FROM wD_Users WHERE " . implode(' OR ', $whereSQL) . " LIMIT 1");
        if (!isset($foundUserID) || !$foundUserID) {
            $searchReturn = l_t('No users found matching the given search parameters.');
        } else {
            $searchReturn = l_t('Matching user found!');
            $userID = $foundUserID;
        }
    }
} else {
    $userID = false;
}
if (!$userID) {
    libHTML::starthtml(l_t('Search for user'));
    print libHTML::pageTitle(l_t('Search for user'), l_t('Search for a user using either their ID, username, e-mail address, or any combination of the three.'));
    ?>

	<?php 
    if (isset($searchReturn)) {
        print '<p class="notice">' . $searchReturn . '</p>';
    }
    ?>

	<form action="profile.php" method="post">
	<ul class="formlist">

		<li class="formlisttitle"><?php 
    print l_t('ID number:');
    ?>
</li>
示例#11
0
    print '
		<form action="./index.php" method="post">

		<ul class="formlist">

		<li class="formlisttitle">' . l_t('Username') . '</li>
		<li class="formlistfield"><input type="text" tabindex="1" maxlength=30 size=15 name="loginuser"></li>
		<li class="formlistdesc">' . l_t('Your webDiplomacy username. If you don\'t have one please ' . '<a href="register.php" class="light">register</a>.') . '</li>

		<li class="formlisttitle">' . l_t('Password') . '</li>
		<li class="formlistfield"><input type="password" tabindex="2" maxlength=30 size=15 name="loginpass"></li>
		<li class="formlistdesc">' . l_t('Your webDiplomacy password.') . '</li>

		<li class="formlisttitle">' . l_t('Remember me') . '</li>
		<li class="formlistfield"><input type="checkbox" /></li>
		<li class="formlistdesc">' . l_t('Do you want to stay logged in permanently? ' . 'If you are on a public computer you should not stay logged on permanently!') . '</li>

		<li><input type="submit" class="form-submit" value="' . l_t('Log on') . '"></li>
		</ul>
		</form>
		<p><a href="logon.php?forgotPassword=1" class="light">' . l_t('Forgot your password?') . '</a></p>
		<p><a href="profile.php" class="light">' . l_t('Forgot your username?') . '</a></p>';
} else {
    print libHTML::pageTitle('Log off', 'Log out of your webDiplomacy account, to prevent other users of this computer accessing it.');
    print '<form action="./logon.php" method="get">
		<p class="notice"><input type="hidden" name="logoff" value="on">
		<input type="submit" class="form-submit" value="' . l_t('Log off') . '"></p>
		</form>';
}
print '</div>';
libHTML::footer();
示例#12
0
            return $buf;
        } else {
            return '<div class="homeNoActivity">' . l_t('No forum posts found, why not ' . '<a href="forum.php?postboxopen=1#postbox" class="light">start one</a>?');
        }
    }
    static function forumBlock()
    {
        $buf = '<div class="homeHeader">' . l_t('Forum') . '</div>';
        $forumNew = libHome::forumNew();
        $buf .= '<table><tr><td>' . implode('</td></tr><tr><td>', $forumNew) . '</td></tr></table>';
        return $buf;
    }
}
if (!$User->type['User']) {
    print '<div class="content-notice" style="text-align:center">' . libHome::globalInfo() . '</div>';
    print libHTML::pageTitle(l_t('Welcome to webDiplomacy!'), l_t('A multiplayer web implementation of the popular turn-based strategy game Diplomacy.'));
    //print '<div class="content">';
    ?>
	<p style="text-align: center;"><img
	src="<?php 
    print l_s('images/startmap.png');
    ?>
" alt="<?php 
    print l_t('The map');
    ?>
"
	title="<?php 
    print l_t('A webDiplomacy map');
    ?>
" /></p>
<p class="welcome"><?php 
示例#13
0
<?php

/*
   Copyright (C) 2004-2010 Kestas J. Kuliukas

	This file is part of webDiplomacy.

   webDiplomacy is free software: you can redistribute it and/or modify
   it under the terms of the GNU Affero General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   webDiplomacy is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with webDiplomacy.  If not, see <http://www.gnu.org/licenses/>.
*/
/**
 * @package DATC
 */
require_once 'header.php';
libHTML::starthtml(l_t('DATC Tests'));
print libHTML::pageTitle(l_t('Diplomacy Adjudicator Test Cases'), l_t('The results of a set of automated tests which show the webDiplomacy\'s compliance with the official Diplomacy rules.'));
if ($Misc->Maintenance) {
    require_once l_r('datc/interactive.php');
}
require_once l_r('locales/English/datc.php');
示例#14
0
<?php

/*
   Copyright (C) 2004-2010 Kestas J. Kuliukas

	This file is part of webDiplomacy.

   webDiplomacy is free software: you can redistribute it and/or modify
   it under the terms of the GNU Affero General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   webDiplomacy is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with webDiplomacy.  If not, see <http://www.gnu.org/licenses/>.
*/
/**
 * @package Base
 * @subpackage Static
 */
require_once 'header.php';
libHTML::starthtml();
print libHTML::pageTitle(l_t('webDiplomacy Credits'), l_t('A list of the people who helped/help make webDiplomacy what it is.'));
require_once l_r('locales/English/credits.php');
print '</div>';
libHTML::footer();
示例#15
0
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with webDiplomacy.  If not, see <http://www.gnu.org/licenses/>.
*/
/**
 * Hall of fame; the top 100 webDip scorers
 *
 * @package Base
 * @subpackage Game
 */
require_once 'header.php';
libHTML::starthtml();
print libHTML::pageTitle(l_t('Hall of fame'), l_t('The webDiplomacy hall of fame; the 100 highest ranking players on this server.'));
print '<p align="center"><img src="' . l_s('images/points/stack.png') . '" alt=" "
			title="' . l_t('webDiplomacy ranking points; who are the most skilled at gathering them from their foes?') . '" /></p>';
print '<p></p>';
if ($User->type['User'] && $User->points > 100) {
    list($position) = $DB->sql_row("SELECT COUNT(id)+1 FROM wD_Users WHERE points > " . $User->points);
    $players = $Misc->RankingPlayers;
    print '<p>' . l_t('You are ranked %s out of %s ranking players (players with >100%s)', '<a href="#me" class="light">#' . $position . '</a>', $players, libHTML::points()) . l_t('For more stats on your ranking visit <a class="light" href="profile.php?userID=' . $User->id . '">your profile</a>.') . '</p>';
}
print '<table class="credits">';
$alternate = false;
$i = 1;
$crashed = $DB->sql_tabl("SELECT id, username, points FROM wD_Users\r\n\t\t\t\t\t\torder BY points DESC LIMIT 100 ");
while (list($id, $username, $points) = $DB->tabl_row($crashed)) {
    $alternate = !$alternate;
    print '
示例#16
0
*/
defined('IN_CODE') or die('This script can not be run by itself.');
/**
 * @package Base
 * @subpackage Static
 */
$faq = array("Sono nuovo qui!" => "Sub-section", "Di che cosa parla questo sito?" => "La maniera più semplice per capirlo è di dare un occhio a\r\n\t<a href='http://webdiplomacy.net/doc/0.90-screenshot.png' class='light'>una immagine del gioco</a>. Se il concetto non è ancora ben chiaro guarda <a href='intro.php' class='light'>l'introduzione a webDiplomacy</a>.", "Come faccio a giocare?" => "Le regole sono abbastanza semplici da capire, ma se dovessi essere in dubbio riguardo a qualcosa leggi\r\n\t<a href='intro.php' class='light'>l'introduzione a webDiplomacy</a>, e sentiti libero di chiedere per aiuto o spiegazioni nel <a href='http://forum.webdiplomacy.it/' class='light'>forum pubblico</a>.", "Qual è la licenza del programma?" => "La <a href='AGPL.txt' class='light'>GNU Affero General License</a>\r\n\t(<a href='http://www.opensource.org/licenses/agpl-v3.html' class='light'>Open Source Initiative</a> approved),\r\n\tche in sostanza spiega che puoi scaricare e modificare il codice come piace a te e metterlo nel tuo sito ma che non puoi rivendicare di averlo scritto tu e che devi riferire di ogni modifica alla community.<br /><br />\r\n\tVedi <a href='credits.php' class='light'>riferimenti</a> per informazioni in merito ai dettagli che sono ricadono sotto licenze differenti.", "Questo programma ha qualcosa a che fare con phpDiplomacy?" => "Questo programma era solito essere chiamato phpDiplomacy sino alla versione 0.9.\r\n\tCi spiace per la confusione, anche noi odiamo i cambiamenti di nome, ma per il nostro user-base il vecchio prefisso 'php' non si è rivelato essere l'etichetta immediatamente riconoscibile che doveva essere nelle nostre intenzioni iniziali.", "L'interfaccia" => "Sub-section", "Cosa sono quei cerchi verdi accanto al nome della persona?" => "L'icona verde appare quando un giocatore è on-line sul server. Questo significa che se il giocatore ha avuto accesso al server negli ultimi ~10-15 minuti questi avranni l'icona verde accanto al loro nome.", "E questo cosa sarebbe? (<img src='images/icons/online.png' />, <img src='images/icons/mail.png' />, etc)" => "Se vedi un/una icona/bottone/immagine che non sai cosa significhi prova a passarci sopra il mouse, potrebbe uscire una nota con una breve spiegazione.\r\nSe non dovesse succedere, sentiti libero di chiedere sul <a href='http://forum.webdiplomacy.it/' class='light'>forum</a>.", "Perchè i miei ordini cambiano colore da verde a rosso?" => "Gli ordini in rosso sono ancora da salvare; se vedi molti ordini in rosso dovresti salvare, altrimenti potresti dimenticartene e perderli chiudendo la finstra del browser o chattando con qualcuno.", "Cosa significano 'Salva' e 'Pronto' (Save e Ready)?" => "'Salva' salva i tuoi ordini; i tuoi ordini non ancora salvati, in rosso, diventeranno verdi non appena saranno salvati definitivamente. 'Pronto' significa che hai finito di inserire i tuoi ordini e che sei pronto per continuare con il turno successivo. Se ognuno è 'Pronto' il gioco prosegue proprio in quell'istante, velocizzando la partita.", "Cosa sono i codici che possono aggiungere HTML nei messaggi del forum? (icone, collegamenti a partite, ecc)" => "Spesso nei forum le persone discutono o vogliono aggiungere collegamenti a partite/account di utenti/altre discussioni nel forum. Per rendere questo più semplice alcuni codici sono riconosciuti automaticamente e rimpiazzati con il corretto link/simbolo:\r\n\t<ul><li><strong>'<em>[number]</em> punti'</strong>/<strong>'<em>[number]</em> D'</strong> risulterà in\r\n\t<strong>'punti'</strong> / <strong>'D'</strong> venendo rimpiazzati con il simbolo dei punti (" . libHTML::points() . ").</li>\r\n\t<li><strong>'gameID=<em>[number]</em>'</strong> / <strong>'threadID=<em>[number]</em>'</strong> / <strong>'userID=<em>[number]</em>'</strong> avranno un link appropriato con il/la partita/discussione/profilo sostituiti nel messaggio.</li></ul>", "Perchè alcune cose sembrano cambiare non appena la pagina si è caricata?" => "Dopo che la pagina si è caricata parte JavaScript, andando a fare alcune modifiche\r\n\t(per esempio mettendo l'orario GMT/UTC nel tuo computer, rendendo in grassetto i tuoi interventi, ecc) che implementano la pagina.", "Regole del gioco" => "Sub-section", "Voglio imparare le basi del gioco" => "Vedi la <a href='intro.php' class='light'>pagina introduttiva</a>.", "Voglio imparare le regole avanzate del gioco" => "Vedi <a href='http://www.wizards.com/avalonhill/rules/diplomacy.pdf' class='light'>il regolamento di Avalon Hill</a>.", "Voglio imparare i dettagli sulle regole del gioco" => "Noi usiamo il DATC per risolvere esattamente ogni sorta di situazioni intricate, nei casi in cui c'è ambiguità nel regolamento. (Questo tipo di cose generalmente non capitano spesso in una partita, comunque.)<br />\r\n\tVedi la nostra pagina DATC <a href='datc.php' class='light'>here</a>.", "Se qualcuno deve distruggere una unità ma non ha inserito gli ordini su quale unità distruggere, quale unità è distrutta?" => "Si risolve come raccomanda DATC:\r\n\tL'unità più lontana dai tuoi Centri di rifornimento di partenza.La distanza è definita come il minor numero di mosse necessario per arrivare alla posizione dell'unità partendo dai Centri di partenza. Quando si calcola il minor numero di mosse, le armate si considerano come se si potessero muovere attraversando i mari, le flotte invece si considerano soltanto secondo il loro naturale movimento attraverso i mari e le coste. Se ci dovessero essere due unità con la medesima distanza da un Centro di partenza, si rimuove l'unità che giace sul territorio che viene prima secondo l'ordine alfabetico.", "Se un convoglio è attaccato, il convoglio fallisce?" => "No; perchè un ordine di convoglio non abbia successo è necessario che la flotta che convoglia venga costretta a ritirarsi, e non ci devono essere altri convogli grazie al quale l'armata riesca comunque a essere convogliata.", "Cosa succede se ordino di costruire/distruggere due unità nello stesso territorio?" => "Il primo ordine di costruzione sarà accettato, il secondo no", "Cosa succede se due unità ritirano nello stesso territorio?" => "Entrambe le unità saranno distrutte", "Posso attaccare e costringere a ritirarsi le mie unità?" => "No; non puoi costringere al ritiro le tue stesse unità nè supportare un attacco verso le tue stesse unità.", "Ci sono altre regole che dovrei tenere a mente?" => "C'è una lista completa delle regole sulla pagina delle <a href='rules.php' class='light'>regole</a>,\r\n\tche elenca alcune altre regole che dovrai seguire per aiutarci a mantenere il sito divertente per chiunque.", "Punti" => "Sub-section", "What happens when I run out?" => "You can't run out: Your total number of points include the number of points which you have 'bet' into games you're currently playing in,\r\n\tas well as the points you have in your account. Your total number of points never falls below 100; whenever it does\r\n\tyou're given your points back.<br /><br />\r\n\tTo put it another way; any player who isn't currently playing in any games will always have at least 100 points, so\r\n\tyou won't run out!", "How are the points split in a draw?" => "In a draw the points are split evenly among all the survivors still in the game,\r\n\tregardless of the number of supply centers each player has.<br/>\r\n\tRead <a href='points.php' class='light'>the points guide</a> for more info about the points system.", "I have an idea for a better system" => "We constantly get new ideas for the points system, but usually they're either missing\r\n\tout in some aspect (the points system serves multiple functions), or they improve in one area but are worse in another.<br /><br />\r\n\tThe points system does the job fine, so it's unlikely to be replaced.\r\n\t(See <a href='http://forum.webdiplomacy.net/viewtopic.php?p=288#p288' class='light'>this page</a> for an\r\n\texplanation regarding the role of the existing system, and what a replacement would have to do.)<br /><br />\r\n\tThere's no real way to express how good a player really is in a single number, the points system as it is is\r\n\tprobably good enough for now, and there's definitely no agreement on what would replace it.", "Can you draw the game, but give 2/3rds of the points to this player and ..." => "Draws can only be given one way; an even split to\r\n\tall survivors.", "Bugs" => "Sub-section", "My game has crashed!" => "Sometimes (usually only shortly after code updates) a software bug or server error may occur while a\r\n\tgame is being processed.\r\n\tWhen this happens the problem is detected, all changes are undone, and the game is marked as crashed.<br /><br />\r\n\tAdmins will see a message whenever a game crashes, and information about the crash is saved so that the problem that caused it can be fixed quickly.\r\n\tOnce a mod or admin has marked the game as OK the game will continue where it left off again.<br /><br />\r\n\r\n\tIf your game has been crashed for a long time try asking about it in the forum.", "The phase ends \"Now\"? \"Processing has been paused\"?" => "When the server detects that no games have processed for a while\r\n\t(over 30 minutes or so), or a moderator/admin sees a problem and his the panic button, all game processing is disabled until\r\n\tthe problem is resolved.<br />\r\n\tAfter the all-clear is given games will usually be given time to make up for any during which orders couldn't be entered, and\r\n\tprocessing will resume. Until that point if a game says it will be processed 'Now' that means it would process now, except\r\n\tprocessing is disabled.<br /><br />\r\n\r\n\tYou may also see it if you a games timer counted down to 0 while you were viewing the page, in which\r\n\tcase you should refresh the page to view the newly processed game.", "I didn't enter those orders!" => "Occasionally we get this complaint, but every time we have checked the\r\n\tinput logs to see what order was actually entered it turns out to be the mistaken order.\r\n\tAlso the mistaken orders are often the 'Bulgaria'/'Budapest' sort of mistake which are easier to\r\n\timagine human error than a bug.<br /><br />\r\n\tTry finalizing your orders and then checking them over, so you can be sure of what you entered.", "Someone says their orders messed up, and I'm paying the price!" => "\r\n\tUnfortunately it does seem that sometimes people will claim that their orders came out wrong to cover up the intention of\r\n\ttheir actions. (e.g. \"I was going to stab you, then read your message and changed my orders so I wasn't going to stab you,\r\n\tbut my old orders came out instead of the new ones! Oh so sorry about that!\")<br /><br />\r\n\r\n\tThis is against <a href='rules.php' class='light'>the rules</a>, as it makes work for admins over made up bugs. When someone\r\n\ttells you a bug caused a mistake in their orders you should reserve some skepticism, and remember that the official server alone\r\n\treceives and processes over 20,000 orders per day (as of Feb 2010) without mistake every minute of every day for years on\r\n\tend, so sudden bugs which change whole order-sets around simply don't seem to genuinely happen ever, despite checking every\r\n\tsingle report.\r\n", "My orders gave the wrong results!" => "Before reporting this as a bug double check that you entered your orders correctly and you're\r\n\tnot misunderstanding the rules. 99.999% of the time \"adjudicator bugs\" turn out to be a misunderstanding.<br />\r\n\tIf you're still positive there's a problem let us know in the <a class='light' href='http://forum.webdiplomacy.it/'>forum</a>.", "A part of the site looks wrong in an alternative browser" => "webDiplomacy isn't currently completely web standards compliant,\r\n\tso there may be glitches. We would like to get webDiplomacy working on everything (within reason) but we need users\r\n\tof alternative browsers to let us know what's wrong and tell us how to make it look right in that browser.", "This site seems to slow my computer down" => "See Help > What is Plura? for a likely cause and fix.", "Feature Requests" => "Sub-section", "Better forum" => "A better forum would be good, but getting it to fit in and appear as part of webDiplomacy, rather than just\r\n\ta separate site, is difficult, and would likely use more server resources than our efficient but lightweight built-in forum.<br />\r\n\tAt the moment we are trying to improve our existing forum in small incrememnts.", "A point and click interactive map" => "This is being worked on, but progress is slow. If you know JavaScript and SVG/Canvas why not\r\n\tcarry on the work on the <a href='http://forum.webdiplomacy.net/' class='light'>development forum</a>?", "Translations" => "Eventually translations will be supported, but it is a long process and not a top priority.", "New variants" => "If a variant has lasting appeal, is well balanced, isn't gimmicky, has been tried and tested on another server, and was\r\n\tcreated by a reputable developer, then it's up for consideration to be included in the standard release.<br />\r\n\tYou can discuss this in the variants section of the webDiplomacy\r\n\t<a href='http://forum.webdiplomacy.net/' class='light'>developers forum</a>.<br /><br />\r\n\r\n\tAlso creating your own variants or porting\r\n\texisting variants to the webDiplomacy variants system is easier than ever, from simple map-change variants all the\r\n\tway to strange rule-changing variants, the system is flexible enough to accomadate your varaint ideas.\r\n\t", "Can I suggest a feature?" => "Feature suggestions are best made in the <a class='light' href='http://forum.webdiplomacy.net/'>developer forums</a>,\r\n\telsewhere they're likely to be missed. Remember that unless you can back-up your suggestion with code even good ideas may not get far.", "Helping out" => "Sub-section", "Can I help develop the software?" => "You sure can: if you're an HTML/CSS/JavaScript/PHP 5/MySQL/SVG/Canvas developer,\r\n\tgraphics/icon artist, or want to learn, check out the <a class='light' href='http://webdiplomacy.net/developers.php'>dev info</a>,\r\n\tand if you get lost you can get help/discuss ideas in the <a class='light' href='http://forum.webdiplomacy.net/'>developer forums</a>.", "Can I donate?" => "If you enjoy the site and want to help out, but can't code, you can donate to the project via\r\nPayPal, and this is student-ware so all donations are appreciated. :-)\r\n<div style='text-align:center'>\r\n<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>\r\n<input type='hidden' name='cmd' value='_s-xclick'>\r\n<input type='image' src='https://www.paypal.com/en_US/i/btn/x-click-but21.gif' border='0' name='submit' alt='Make payments with PayPal - it's fast, free and secure!'>\r\n<img alt='' border='0' src='https://www.paypal.com/en_AU/i/scr/pixel.gif' width='1' height='1'>\r\n<input type='hidden' name='encrypted' value='-----BEGIN PKCS7-----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-----END PKCS7-----\r\n'>\r\n</form></div>A big thanks to all the past donors who helped make all '07-'08 server fees community paid!", "How else can I help?" => "Tell your friends about webDiplomacy, put links on your website, help new players out in the forums,\r\n\tand give helpful feedback to developers. Thanks!", "Map" => "Sub-section", "Why are some orders missing from the map?" => "Not all orders are drawn on the small map. Below the small map there is a set of icons;\r\n\tthe one in the middle (<img src='images/historyicons/external.png' alt='example' />) opens up the large map, which contains all orders.<br/>\r\n\tAlso at the bottom of the board page is a link to open up a textual list of all the orders entered in the game, if you can't see\r\n\tsomething in the large map.", "I can't tell the difference between Germany and Austria" => "Color-blind people may have trouble distinguishing Germany and Austria's\r\n\tcolors. We hope to fix this problem in the future.");
if (isset(Config::$faq) && is_array(Config::$faq) && count(Config::$faq)) {
    $faq["Server-specific"] = "Sub-section";
    $faq["What is this section?"] = "webDiplomacy is free, open-source software, and there are several servers running webDiplomacy code.\r\n\t\t\tThis section is for questions which may be specific to this particular installation, whereas the rest of it applies to all\r\n\t\t\tinstallations. (e.g. This section may contain Q&amp;A regarding who runs and pays for this server, or relate to the features\r\n\t\t\twhich set this server apart from the official installation if any.)";
    foreach (Config::$faq as $Q => $A) {
        $faq[$Q] = $A;
    }
}
$i = 1;
print libHTML::pageTitle('Frequently Asked Questions', 'Answers to the questions people often ask in the forums; click on a question to expand the answer.');
$sections = array();
$section = 0;
foreach ($faq as $q => $a) {
    if ($a == "Sub-section") {
        $sections[] = '<a href="#faq_' . $section++ . '" class="light">' . $q . '</a>';
    }
}
print '<div style="text-align:center; font-weight:bold"><strong>Sections:</strong> ' . implode(' - ', $sections) . '</div>
	<div class="hr"></div>';
$section = 0;
foreach ($faq as $q => $a) {
    if ($a == "Sub-section") {
        if ($section) {
            print '</ul></div>';
        }
示例#17
0
   (at your option) any later version.

   webDiplomacy is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with webDiplomacy.  If not, see <http://www.gnu.org/licenses/>.
*/
defined('IN_CODE') or die('This script can not be run by itself.');
/**
 * @package Base
 * @subpackage Static
 */
print libHTML::pageTitle('Developer/webmaster info', 'If you want to fix/improve/install webDiplomacy all the info you need to make it happen is here.');
?>

<h4>Links</h4>

<p><a href="http://forum.webdiplomacy.net" class="light">forum.webdiplomacy.net</a> - The forum for developers.</p>

<p><a href="http://sourceforge.net/projects/phpdiplomacy" class="light">forum.webdiplomacy.net</a> - The sourceforge.net project page.</p>

<p><a href="https://github.com/kestasjk/webDiplomacy" class="light">github.com/kestasjk/webDiplomacy</a> - The github .</p>

<div class="hr"></div>

<h4>Webmasters</h4>

<p><a href="http://webdiplomacy.net/README.txt" class="light">README.txt</a> - Installation data for webmasters</p>
示例#18
0
            continue;
        }
        $set .= ', ';
        $User->{$SQLName} = $SQLVars[$SQLName];
        $set .= $SQLName . " = '" . $SQLVars[$SQLName] . "'";
    }
    if (count($errors)) {
        throw new Exception(implode('. ', $errors));
    }
    $set .= ', timeJoined = ' . time() . ', timeLastSessionEnded = ' . time();
    if (User::findUsername($SQLVars['username'])) {
        throw new Exception(l_t("The username '%s' is already in use. Please choose another.", $SQLVars['username']));
    } elseif (User::findEmail($SQLVars['email'])) {
        throw new Exception(l_t("The e-mail address '%s', is already in use. Please choose another.", $SQLVars['email']));
    }
    $DB->sql_put("INSERT INTO wD_Users SET " . $set);
    $DB->sql_put("COMMIT");
    // Re-authenticate with the new password, to create a new session ID
    $key = libAuth::userPass_Key($SQLVars['username'], $_REQUEST['userForm']['password']);
    $NewUser = libAuth::key_User($key);
    $NewUser->sendNotice('No', 'No', l_t("Welcome! This area displays your notices, which let you catch " . "up with what has happened since you were last here"));
    // libHTML does not like letting registered users access the registration page
    $User = new User(GUESTID);
    print libHTML::pageTitle(l_t('Register a webDiplomacy account'), l_t('Validate your e-mail address -&gt; Enter your account settings -&gt; <strong>Play webDiplomacy!</strong>'));
    print "<h3>" . l_t("Welcome to webDiplomacy!") . "</h3>\r\n\t\t\t<p>" . l_t("Welcome, %s!", $SQLVars['username']) . "<br /><br />\r\n\r\n\t\t\t\t" . l_t("You can now post in the <a href='forum.php' class='light'>forum</a>, " . "look for <a href='gamelistings.php' class='light'>a game to join</a>, " . "create a <a href='gamecreate.php' class='light'>new game</a>, " . "or get some <a href='help.php' class='light'>help/info</a>.") . "<br /> " . l_t("Be sure to bookmark the <a href='index.php' class='light'>home page</a>, " . "which displays a summary of your games and forum activity.") . "<br /><br />\r\n\r\n\t\t\t\t" . l_t("If you don't know what Diplomacy is about yet check out the quick\r\n\t\t\t\t<a href='intro.php' light='class'>graphical intro to webDiplomacy</a>,\r\n\t\t\t\tso you can get going faster.") . "\r\n\t\t\t</p>";
    print '</div>';
    libHTML::footer();
} catch (Exception $e) {
    $formOutput .= $e->getMessage();
}
print '<div class="content"><p class="notice">' . $formOutput . '</p></div>';
示例#19
0
     * is the easiest way to un-escape a failed post without having to use a
     * UTF-8 library to replace strings
     */
    $_REQUEST['newmessage'] = '';
    $_REQUEST['newsubject'] = '';
}
$_SESSION['viewthread'] = $viewthread;
if (isset($_REQUEST['reply']) && $_REQUEST['reply'] == 'success') {
    $messageproblem = l_t("Reply posted sucessfully.");
    $new['message'] = "";
    $new['subject'] = "";
    $new['sendtothread'] = $viewthread;
}
libHTML::starthtml();
if ($User->type['Guest']) {
    print libHTML::pageTitle(l_t('Forum'), l_t('A place to discuss topics/games with other webDiplomacy players.'));
} else {
    print '<div class="content">';
}
if (isset($messageproblem) and !$new['sendtothread']) {
    print '<p class="notice"><a name="postbox"></a>' . $messageproblem . '</p>';
    libHTML::pagebreak();
}
print '<div class="forum"><a name="forum"></a>';
print '
	<div id="forumPostbox" style="' . ($postboxopen ? '' : libHTML::$hideStyle) . '" class="thread threadalternate1 threadborder1">
	<div style="margin:0;padding:0">
	<div class="message-head">
		<strong>' . l_t('Start a new discussion in the public forum') . '</strong>
		</div>
	<div class="message-subject"><strong>' . l_t('Post a new thread') . '</strong></div>
示例#20
0
   (at your option) any later version.

   webDiplomacy is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with webDiplomacy.  If not, see <http://www.gnu.org/licenses/>.
*/
defined('IN_CODE') or die('This script can not be run by itself.');
/**
 * @package Base
 * @subpackage Static
 */
print libHTML::pageTitle('Translating webDiplomacy', 'A guide to translating webDiplomacy into other languages.');
?>

<h4>One-language translation</h4>

<p>
Unfortunately webDiplomacy doesn't yet have built-in translation support; so the easiest way to translate webDiplomacy is
to download the source from <a class="light" href="http://webdiplomacy.net/developers.php">here</a>, and replace all the English
text with translated text.
</p>

<p>
After doing this your new version of webDiplomacy will provide a great web-Diplomacy experience in the language you
translated to; you can use your code to start up a new webDiplomacy site for speakers of your language, or send the code
to me at kestas.j.k@gmail.com and I will host it for you!
</p>