';
}
list($start,$order,$solved,$origin,$last,$solution) = unserialize(get_option('arne_riddle'));
$userlist = unserialize(get_option('arne_riddle_user'));
$logbuch = unserialize(get_option('arne_riddle_logbuch'));
list($zielpunktzahl,$programm,$zeitzone,$dogallery) = unserialize(get_option('arne_riddle_settings'));
if (intval($zielpunktzahl) == 0) $zielpunktzahl = 100;
if ($zeitzone == '') $zeitzone = 'Europe/Berlin';
print '
'.htmlspecialchars(__('Guild-Wars-2-Screenshotriddle','arne_raetsel')).' ';
// restart
if (isset($_POST['reset-game'])) {
$solved = $origin;
$riddle = array($start,$order,$solved,$origin,$last,$solution);
update_option("arne_riddle", serialize($riddle));
copy(plugin_dir_path( __FILE__ ).'pic/default.jpg',$basedir.'/arne_riddle/riddle.jpg');
@unlink($basedir.'/arne_riddle/riddle-klein.jpg');
$mich = get_userdata(get_current_user_id());
$dich = get_userdata($solved);
$message = sprintf(__('%s cancels actual round. %s should upload a new picture.','arne_raetsel'),$mich->display_name,$dich->display_name);
$logbuch[] = '['.date('Y-m-d H:i').'] '.htmlspecialchars($message).' ';
if (sizeof($logbuch) > 5) array_shift($logbuch);
update_option("arne_riddle_logbuch", serialize($logbuch));
if ($programm) @exec($programm.' "[b]'.htmlspecialchars(__('Guild Riddle','arne_raetsel')).':[/b] '.$message.'"');
}
// change uploader
if (isset($_POST['set-origin'])) {
$uid = intval($_POST['user']);
if ($uid != 0) {
$start = 1;
$solved = $uid;
$riddle = array($start,$order,$solved,$origin,$last,$solution);
update_option("arne_riddle", serialize($riddle));
copy(plugin_dir_path( __FILE__ ).'pic/default.jpg',$basedir.'/arne_riddle/riddle.jpg');
@unlink($basedir.'/arne_riddle/riddle-klein.jpg');
$mich = get_userdata(get_current_user_id());
$dich = get_userdata($solved);
$message = sprintf(__('%s cancels actual round and asks %s to upload the next picture.','arne_raetsel'),$mich->display_name,$dich->display_name);
$logbuch[] = '['.date('Y-m-d H:i').'] '.htmlspecialchars($message).' ';
if (sizeof($logbuch) > 5) array_shift($logbuch);
update_option("arne_riddle_logbuch", serialize($logbuch));
if ($programm) @exec($programm.' "[b]'.htmlspecialchars(__('Guild Riddle','arne_raetsel')).':[/b] '.$message.'"');
}
}
// remove from highscores
if (isset($_POST['remove-player'])) {
$uid = intval($_POST['user']);
if ($uid != 0) {
unset($userlist[$uid]);
update_option('arne_riddle_user',serialize($userlist));
$mich = get_userdata(get_current_user_id());
$dich = get_userdata($uid);
$message = sprintf(__('%s removes %s from the highscore table.','arne_raetsel'),$mich->display_name,$dich->display_name);
$logbuch[] = '['.date('Y-m-d H:i').'] '.htmlspecialchars($message).' ';
if (sizeof($logbuch) > 5) array_shift($logbuch);
update_option("arne_riddle_logbuch", serialize($logbuch));
if ($programm) @exec($programm.' "[b]'.htmlspecialchars(__('Guild Riddle','arne_raetsel')).':[/b] '.$message.'"');
}
}
// start new game
if (isset($_POST['start-new-round'])) {
copy(plugin_dir_path( __FILE__ ).'pic/default.jpg',$basedir.'/arne_riddle/riddle.jpg');
@unlink($basedir.'/arne_riddle/riddle-klein.jpg');
$start = 0;
$solved = 0;
$origin = 0;
$riddle = array($start,$order,$solved,$origin,$last,$solution);
update_option("arne_riddle", serialize($riddle));
$logbuch = array();
delete_option("arne_riddle");
delete_option("arne_riddle_user");
delete_option("arne_riddle_logbuch");
$mich = get_userdata(get_current_user_id());
$message = sprintf(__('%s starts a new round.','arne_raetsel'),$mich->display_name);
$logbuch[] = '['.date('Y-m-d H:i').'] '.htmlspecialchars($message).' ';
if (sizeof($logbuch) > 5) array_shift($logbuch);
update_option("arne_riddle_logbuch", serialize($logbuch));
if ($programm) @exec($programm.' "[b]'.htmlspecialchars(__('Guild Riddle','arne_raetsel')).':[/b] '.$message.'"');
}
// set target points
if (isset($_POST['set-target'])) {
$z = intval($_POST['points']);
if ($z > 0) {
$zielpunktzahl = $z;
$settings = array($zielpunktzahl, $programm, $zeitzone,$dogallery);
update_option('arne_riddle_settings',serialize($settings));
$message = sprintf(__('%s sets the target points to %d','arne_raetsel'),$mich->display_name,$zielpunktzahl);
$logbuch[] = '['.date('Y-m-d H:i').'] '.htmlspecialchars($message).' ';
if (sizeof($logbuch) > 5) array_shift($logbuch);
update_option("arne_riddle_logbuch", serialize($logbuch));
if ($programm) @exec($programm.' "[b]'.htmlspecialchars(__('Guild Riddle','arne_raetsel')).':[/b] '.$message.'"');
}
}
// set program to execute when new entry added to logbuch
if (isset($_POST['set-exec'])) {
$p = trim(stripslashes($_POST['programm']));
if (strlen($p) > 0) {
$programm = $p;
$settings = array($zielpunktzahl, $programm, $zeitzone, $dogallery);
update_option('arne_riddle_settings',serialize($settings));
}
}
// set gallery settings
if (isset($_POST['set-gallery'])) {
$dogallery = intval($_POST['do-gallery']);
$settings = array($zielpunktzahl, $programm, $zeitzone, $dogallery);
update_option('arne_riddle_settings',serialize($settings));
if ($dogallery && (!file_exists($basedir.'/arne_riddle/gallery/thumbs'))) {
@mkdir($basedir.'/arne_riddle/gallery');
@mkdir($basedir.'/arne_riddle/gallery/thumbs');
}
}
// set timezone to display correct times
if (isset($_POST['set-tz'])) {
$tz = trim(stripslashes($_POST['tz']));
if (strlen($tz) <= 0) {
$zeitzone = "Europe/Berlin";
} else {
$zeitzone = $tz;
}
$settings = array($zielpunktzahl, $programm, $zeitzone, $dogallery);
update_option('arne_riddle_settings',serialize($settings));
}
// display option page
print '';
print '';
print '';
print '';
print ''.htmlspecialchars(__('Main Settings','arne_raetsel')).' ';
print '';
print '';
print '';
print '';
}
/*
* MUSS EIN NEUES TEIL DES BILDES AUFGEDECKT WERDEN?
*/
function arne_raetsel_update_image() {
list($zielpunktzahl,$programm,$zeitzone,$dogallery) = unserialize(get_option('arne_riddle_settings'));
if ($zeitzone == '') $zeitzone = 'Europe/Berlin';
date_default_timezone_set($zeitzone);
list($start,$order,$solved,$origin,$last,$solution) = unserialize(get_option('arne_riddle'));
$upload_dir = wp_upload_dir();
$basedir = $upload_dir['basedir'];
$baseurl = $upload_dir['baseurl'];
if ($start == 0) {
if (!file_exists($basedir.'/arne_riddle/riddle.jpg')) {
copy(plugin_dir_path( __FILE__ ).'pic/default.jpg',$basedir.'/arne_riddle/riddle.jpg');
@unlink($basedir.'/arne_riddle/riddle-klein.jpg');
}
} else {
if (($solved == 0) && (time() >= $start)) {
$days = ceil( (time() - $start) / (24 * 60 * 60) );
if ($days != $last) {
$source = new Imagick();
$source->readImage($basedir.'/arne_riddle/source/upload.jpg');
$overlay = array();
for ($i=$days;$i<=15;$i++) {
$overlay[$i] = new Imagick();
try {
$overlay[$i]->readImage(plugin_dir_path( __FILE__ ).'pic/'.$order[$i].'.png');
} catch (Exception $e) {
}
try {
$source->compositeImage($overlay[$i], Imagick::COMPOSITE_DEFAULT, 0, 0);
} catch (Exception $e) {
}
}
if ($days < 17) {
$overlay[0] = new Imagick();
$overlay[0]->readImage(plugin_dir_path( __FILE__ ).'pic/0.png');
$source->compositeImage($overlay[0], Imagick::COMPOSITE_DEFAULT, 0, 0);
}
$source->flattenImages();
$source->writeImage($basedir.'/arne_riddle/riddle.jpg');
@unlink($basedir.'/arne_riddle/riddle-klein.jpg');
if ($origin != 0) update_option('arne_riddle',serialize(array($start,$order,$solved,$origin,$days,$solution)));
}
}
}
}
/*
* AJAX
*/
function arne_raetsel_ajax() {
global $region;
$selected = stripslashes($_POST['zone']);
if (!isset($region[$selected][1])) return;
$zone = array();
$zone[] = (__('Select Waypoint','arne_raetsel'));
asort($region[$selected][1]);
foreach ($region[$selected][1] as $waypoint) {
$zone[] = $waypoint;
}
print json_encode($zone);
die();
}
function arne_raetsel_scripts() {
//wp_enqueue_script( 'jquery' );
wp_enqueue_script('arne_raetsel_script',plugins_url('arne_raetsel.js', __FILE__), array('jquery'));
wp_localize_script( 'arne_raetsel_script', 'ajax_object',
array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
}
/*
* ANZEIGE DES RÄTSELS IM FRONTEND INKLUSIVE DER UPLOAD- UND TIPPVERWALTUNG
*/
function arne_raetsel_display( $attributes ) {
$upload_dir = wp_upload_dir();
$basedir = $upload_dir['basedir'];
$baseurl = $upload_dir['baseurl'];
$galleryvalue = intval($_POST['arne_raetsel_to_gallery']);
if ($galleryvalue == 1) $_SESSION['arne_raetsel_gallery'] = 'true';
if ($galleryvalue == 2) $_SESSION['arne_raetsel_gallery'] = 'false';
if ($_SESSION['arne_raetsel_gallery'] == 'true') {
return arne_raetsel_gallery( $attributes );
}
global $region;
$nothing = false;
try {
list($start,$order,$solved,$origin,$last,$solution) = unserialize(get_option('arne_riddle'));
$userlist = unserialize(get_option('arne_riddle_user'));
$logbuch = unserialize(get_option('arne_riddle_logbuch'));
list($zielpunktzahl,$programm,$zeitzone,$dogallery) = unserialize(get_option('arne_riddle_settings'));
} catch (exception $e) {
$nothing = true;
}
if (intval($zielpunktzahl) == 0) $zielpunktzahl = 100;
if ($zeitzone == '') $zeitzone = 'Europe/Berlin';
date_default_timezone_set($zeitzone);
if (!is_array($logbuch)) $logbuch = array();
$ersteller = get_userdata( $origin );
$ausgabe = '...'.htmlspecialchars($ersteller->display_name).' ';
$ich = get_current_user_id();
arne_raetsel_update_image();
// darf der User raten?
if ( isset( $_POST['arne-riddle-guess'] ) ) {
$aguess = false;
if ( ($ich != $origin) && ($solved == 0) && (time() >= $start) && (current_user_can('upload_files')) ) {
if (is_array($userlist)) {
$meinedaten = $userlist[$ich];
if (is_array($meinedaten)) {
if (time() > $meinedaten[1] + (10*60*60)) {
$aguess = true;
$meinedaten[1] = time();
}
} else {
$aguess = true;
$meinedaten = array(0,time());
}
} else {
$aguess = true;
$meinedaten = array(0,time());
}
}
// User darf raten: Auswertung des Tipps
if ($aguess && (($_POST["zone"] == "0") || ($_POST["waypoint"] == "0")) ) {
$ausgabe .= ''.htmlspecialchars(__('You didn\'t select a waypoint!','arne_raetsel')).' ';
$aguess = false;
}
if ($aguess) {
$guessed_zone = stripslashes($_POST['zone']);
if ( ((!is_array($solution)) && (stripslashes($_POST['waypoint']) == $solution)) || ((is_array($solution) && (stripslashes($_POST['zone']) == $solution[0]) && (stripslashes($_POST['waypoint']) == $solution[1]))) ) {
// richtig geraten. wieviele punkte?
$days = ceil((time() - $start) / (24*60*60));
$punkte = 17 - $days;
if ($punkte < 1) $punkte = 1;
$meinedaten[0]+=$punkte;
$mich = get_userdata($ich);
$message = sprintf(__('%s earns with the correct answer %s %d points.','arne_raetsel'),$mich->display_name,'»'.$guessed_zone.'«, »'.stripslashes($_POST['waypoint']).'«',$punkte);
$logbuch[] = '['.date('Y-m-d H:i').'] '.htmlspecialchars($message).' ';
if (sizeof($logbuch) > 5) array_shift($logbuch);
update_option("arne_riddle_logbuch", serialize($logbuch));
if ($programm) @exec($programm.' "[b]'.htmlspecialchars(__('Guild Riddle','arne_raetsel')).':[/b] '.$message.'"');
$ausgabe .= ''.htmlspecialchars(sprintf(__('Yes, correct! You earned %s points for this solution!','arne_raetsel'),$punkte)).'
';
$solved = $ich;
if ($meinedaten[0] >= $zielpunktzahl) {
$solved = -1;
$origin = -1;
$mich = get_userdata($ich);
$message = sprintf(__('%s has won the game and asks for payment.','arne_raetsel'),$mich->display_name);
$logbuch[] = '['.date('Y-m-d H:i').'] '.htmlspecialchars($message).' ';
if (sizeof($logbuch) > 5) array_shift($logbuch);
update_option("arne_riddle_logbuch", serialize($logbuch));
} else {
$mich = get_userdata($ich);
$message = sprintf(__('%s is the next one to upload a new picture.','arne_raetsel'),$mich->display_name);
$logbuch[] = '['.date('Y-m-d H:i').'] '.htmlspecialchars($message).' ';
if (sizeof($logbuch) > 5) array_shift($logbuch);
update_option("arne_riddle_logbuch", serialize($logbuch));
}
update_option("arne_riddle", serialize( array($start,$order,$solved,$origin,0,$solution) ));
copy($basedir.'/arne_riddle/source/upload.jpg',$basedir.'/arne_riddle/riddle.jpg');
@unlink($basedir.'/arne_riddle/riddle-klein.jpg');
if ($dogallery) {
@copy($basedir.'/arne_riddle/source/upload.jpg',$basedir.'/arne_riddle/gallery/'.date('Y-m-d').'.jpg');
}
} else {
$ausgabe .= ''.htmlspecialchars(__('Unfortunatley that\'s not correct!','arne_raetsel')).'
';
$mich = get_userdata($ich);
$message = sprintf(__('%s is guessing %s but that\'s not correct.','arne_raetsel'),$mich->display_name,'»'.htmlspecialchars($guessed_zone).'«, »'.htmlspecialchars(stripslashes($_POST['waypoint'])).'«');
$logbuch[] = '['.date('Y-m-d H:i').'] '.htmlspecialchars($message).' ';
if (sizeof($logbuch) > 5) array_shift($logbuch);
update_option("arne_riddle_logbuch", serialize($logbuch));
if ($programm) @exec($programm.' "[b]'.htmlspecialchars(__('Guild Riddle','arne_raetsel')).':[/b] '.$message.'"');
}
$userlist[$ich] = $meinedaten;
update_option('arne_riddle_user',serialize($userlist));
}
}
// User hat ein Bild hochgeladen
if ( isset( $_POST['riddle-upload'] ) ) {
// Only JPG and PNG. Not even annoying GIFs.
if (($ich == $solved) || ($start == 0) || ( ($origin == $ich) && ($solved == 0) && (time() < $start) ) && ($_POST["zone"] != "0") && ($_POST["waypoint"] != "0") ) {
if ( ! empty( $_FILES['picture']['name'] ) ) {
$mimes = array(
'jpg|jpeg' => 'image/jpeg',
'png' => 'image/png'
);
$riddlefile = wp_handle_upload( $_FILES['picture'], array( 'mimes' => $mimes, 'test_form' => false ) );
if ( ! empty ( $riddlefile['file'] ) ) {
$picture_file = $riddlefile['file'];
rename ($picture_file,$basedir.'/arne_riddle/source/upload.jpg');
$image = wp_get_image_editor($basedir.'/arne_riddle/source/upload.jpg');
if ( ! is_wp_error( $image ) ) {
$image->resize(1024,768,true);
$image->save($basedir.'/arne_riddle/source/upload.jpg');
// check whether too small
$image = new Imagick($basedir.'/arne_riddle/source/upload.jpg');
$d = $image->getImageGeometry();
$w = $d['width'];
$h = $d['height'];
if (($w != 1024) || ($h != 768)) {
$nw = 1024;
$nh = intval((1024 / $w) * $h);
if ($nh < 768) {
$nh = 768;
$nw = intval((768 / $h) * $w);
}
$image->resizeImage($nw,$nh,Imagick::FILTER_LANCZOS,1);
$x = 0;
$y = 0;
if ($nw > 1024) $x = intval(($nw - 1024) / 2);
if ($nh > 768) $y = intval(($nh - 768) / 2);
$image->cropImage(1024,768,$x,$y);
$image->writeImage($basedir.'/arne_riddle/source/upload.jpg');
}
$order = array();
for ($i=1;$i<=16;$i++) $order[]=$i;
for ($i=1;$i<=100;$i++) {
$order = array_merge(array_splice($order,rand(0,15),1),$order);
}
$start = mktime(6,0,0,date('n'),date('j'),date('y'));
if (date('H') >= 6) $start += (24*60*60);
$origin = get_current_user_id();
$solution = array(stripslashes($_POST['zone']),stripslashes($_POST['waypoint']));
$riddle = array($start,$order,0,$origin,0,$solution);
$solved = 0;
add_option("arne_riddle", serialize($riddle));
update_option("arne_riddle", serialize($riddle));
$mich = get_userdata($ich);
$message = sprintf(__('%s uploaded a new picture. New round starts tomorrow.','arne_raetsel'),$mich->display_name);
$logbuch[] = '['.date('Y-m-d H:i').'] '.htmlspecialchars($message).' ';
if (sizeof($logbuch) > 5) array_shift($logbuch);
update_option("arne_riddle_logbuch", serialize($logbuch));
if ($programm) @exec($programm.' "[b]'.htmlspecialchars(__('Guild Riddle','arne_raetsel')).':[/b] '.$message.'"');
}
unset($image);
}
}
}
if (($_POST["zone"] == "0") || ($_POST["waypoint"] == "0")) {
$ausgabe .= ''.htmlspecialchars(__('You didn\'t select a waypoint!','arne_raetsel')).' ';
}
}
ksort($region);
// Anklickbares Vorschaubild erstellen
if (!file_exists($basedir.'/arne_riddle/riddle-klein.jpg')) {
$image = wp_get_image_editor($basedir.'/arne_riddle/riddle.jpg');
if ( ! is_wp_error( $image ) ) {
$image->resize(400,300,true);
$image->save($basedir.'/arne_riddle/riddle-klein.jpg');
}
}
$datum = date('Ymd').($solved ? '-solved' : '');
if (date('H') < 6) {
$datum = date('Ymd', time() - (7*60*60)).($solved ? '-solved' : '');
}
$ausgabe .= ' ';
// Tipp anzeigen
$vierzehn = ((time() - $start) > ( 15 * 24 * 60 * 60 ) ? true : false );
if ($start == 0) $vierzehn = false;
if ( ((time() - $start) > ( 7 * 24 * 60 * 60 )) && ($solved == 0) && ($start != 0)) {
$ausgabe .= ''.htmlspecialchars(__('Hint','arne_raetsel')).' '.($vierzehn ? '2' : '1').' ';
$rzone = "";
$rregion = "";
// compatibility -- can be reduced if old version is extinguished
if (is_array($solution)) {
$rzone = $solution[0];
$rregion = $region[$rzone][0];
} else {
foreach ($region as $zz => $ra) {
if (in_array($solution,$ra[1])) {
$rzone = $zz;
$rregion = $ra[0];
break;
}
}
}
if ($vierzehn) {
$message = sprintf(__('The screenshot was taken in %s.','arne_raetsel'),'»'.$rzone.'«');
$ausgabe .= ''.htmlspecialchars($message).' ';
} else {
$rregionex = array();
foreach ($region as $zz => $ra) {
if ($ra[0] == $rregion) $rregionex[] = $zz;
}
$message = sprintf(__('The screenshot was taken in the region %s.','arne_raetsel'),'»'.$rregion.'« ('.implode(', ',$rregionex).')');
$ausgabe .= ''.htmlspecialchars($message).' ';
}
$ausgabe .= ' ';
}
// Zonenwahl auch automatisch vervollständigen
$zone = '';
$zone .= ''.htmlspecialchars(__('Select Zone','arne_raetsel')).' ';
foreach ($region as $key => $value) {
$zone .= ''.htmlspecialchars($key).' ';
}
$zone.=' ';
$zone .= ' ';
// Anzeige der Spielelemente (Upload, Waypoints oder Hinweise)
if (!current_user_can('upload_files')) {
$ausgabe .= ''.htmlspecialchars(__('To participate in this game, you have to be registered to this site and the administrator must have given you the right to upload files.','arne_raetsel')).'
';
} else {
$upload = '1. '.htmlspecialchars(__('Screenshot','arne_raetsel')).':
2. '.htmlspecialchars(__('Which waypoint is the nearest to your picture','arne_raetsel')).': '.$zone.'
3.
' . "\n";
$ausgabe .= ''."\n";
}
// Logbuch: die letzten 5 Aktionen anzeigen
if (sizeof($logbuch)>0) {
$ausgabe .= ''.htmlspecialchars(__('Logbook','arne_raetsel')).' ';
$temp = "";
foreach ($logbuch as $zeile) {
$temp = $zeile . $temp;
}
$ausgabe .= $temp;
$ausgabe .= ' ';
}
// Highscores anzeigen (und damit alle Spieler, die einen Tipp abgaben)
if (is_array($userlist)) {
$ausgabe .= ''.htmlspecialchars(__('Highscores','arne_raetsel')).' ';
$highscores = array();
foreach ($userlist as $id => $punkte) {
if (isset($highscores[$punkte[0]])) {
$list = $highscores[$punkte[0]];
} else {
$list = array();
}
$dertyp = get_userdata( $id );
$list[] = $dertyp->display_name;
$highscores[$punkte[0]] = $list;
}
foreach ($highscores as $punkte => $liste) {
ksort($liste);
foreach ($liste as $player) {
$ausgabe .= ''.$punkte.': '.htmlspecialchars($player).' ';
}
}
$ausgabe.=' ';
}
// Galerie anzeigen
if ($dogallery) {
$pics = glob( $basedir.'/arne_riddle/gallery/*.jpg' );
if (sizeof($pics) > 0) {
$ausgabe .= '';
}
}
return $ausgabe;
}
function arne_raetsel_gallery( $attributes ) {
$upload_dir = wp_upload_dir();
$basedir = $upload_dir['basedir'];
$baseurl = $upload_dir['baseurl'];
$ausgabe = ''.htmlspecialchars(__('Gallery','arne_raetsel')).' ';
$ausgabe .= '';
$pics = glob( $basedir.'/arne_riddle/gallery/*.jpg' );
arsort($pics);
$ausgabe .= "\n".''."\n";
foreach ($pics as $pic) {
$datei = basename($pic);
if (!file_exists($basedir.'/arne_riddle/gallery/thumbs/'.$datei)) {
$image = wp_get_image_editor($basedir.'/arne_riddle/gallery/'.$datei);
if ( ! is_wp_error( $image ) ) {
$image->resize(148,111,true);
$image->save($basedir.'/arne_riddle/gallery/thumbs/'.$datei);
}
unset($image);
}
$url = $baseurl.'/arne_riddle/gallery/thumbs/'.$datei;
$purl = $baseurl.'/arne_riddle/gallery/'.$datei;
$alt = substr($datei,0,strlen($datei)-4);
$ausgabe .= '
';
}
$ausgabe .= '
';
$ausgabe .= '';
return $ausgabe;
}
function arne_raetsel_explain() {
list($zielpunktzahl,$programm,$zeitzone,$dogallery) = unserialize(get_option('arne_riddle_settings'));
if (intval($zielpunktzahl) == 0) $zielpunktzahl = 100;
return ''.htmlspecialchars(__('Game','arne_raetsel')).'
'.htmlspecialchars(__('The game works as follows: one player uploads a screenshot. This will be displayed only covered. Every day one part will be removed so you can see every day more of the screenshot.','arne_raetsel')).'
'.htmlspecialchars(__('The other players have to guess where the screenshot was taken by selecting the nearest waypoint. Once a player guessed right he earns points, the more points the more parts are still covered. So a player can earn between 1 and 17 points. A player can guess every 10 hours at most.','arne_raetsel')).'
'.htmlspecialchars(__('The player who guessed right has to upload the picture for the next round.','arne_raetsel')).'
'.htmlspecialchars(sprintf(__('The player who reaches %d points first, wins the game.','arne_raetsel'),$zielpunktzahl)).'
'.htmlspecialchars(__('Winnings','arne_raetsel')).'
'.htmlspecialchars(sprintf(__('Every player who ever guessed counts as participant of the game, even if he never guessed right. When a player reached at least %d points every participant has to pay the winner the amount of one gold. So the winnings are the higher the more players take part.','arne_raetsel'),$zielpunktzahl)).'
'.htmlspecialchars(__('Take Part','arne_raetsel')).'
'.htmlspecialchars(__('You have to be registered to this site and the administrator must give you the right to upload files.','arne_raetsel')).'
'.htmlspecialchars(__('Rules For Screenshots','arne_raetsel')).'
'.htmlspecialchars(__('It\'s only allowed to take screenshots in not instanciated regions, so not in dungeons or in the personal story quest and things like that. And of course a player has to be able to solve the riddle when he sees the whole screenshot. So just don\'t make close-ups of daisies or the sky but include enough of the environment so that the players get enough hints for the correct solution.','arne_raetsel')).'
'.htmlspecialchars(__('Screenshots','arne_raetsel')).'
'.htmlspecialchars(__('If you have won a round you have to upload your own screenshot. To do so, press [Ctrl] + [Shift] + [H] in the game to fade out the interface. This is important so that nobody can see your minimap and other hints. After that press [prtscr] (over [ins]) and the screenshot is done. You can find it in your home directory in the subfolder Documents\GUILD WARS 2\Screens. (e. g. C:\Users\Arne\Documents\GUILD WARS 2\Screens) Please do not resize or convert the images to another format before the upload. Don\'t forget to select the nearest waypoint, so the winner can be determined automatically.','arne_raetsel')).'
';
}
?>