Exemple #1
0
                        /* EOF Bonusu pievienošana   -------------- */
                    }
                    $response['state'] = 'success';
                    $response['text'] = 'Paldies, ka mūs atbalsti. Tagad tik vēl jānobalso';
                    echo '<script type="text/javascript">' . "\n";
                    if (!empty($username)) {
                        echo "voter.setCookie('voter_username','" . $username . "',30);\n";
                        $_POST['target_site'] = str_replace('&user=NoName', '&user='******'target_site']);
                    }
                    echo 'document.location = "' . addslashes($_POST['target_site']) . '";</script>';
                } else {
                    $response['text'] = 'Tu šodien jau esi balsojis.';
                }
                echo '<div class="alert alert-' . $response['state'] . '" style="margin:40px;">' . $response['text'] . '</div>';
            } else {
                $players_online = $query->get_mc_info();
                $players_online = $players_online->players_list;
                ?>
				<div class="well voter-target">
					<form action="" method="post">
						<div class="alert alert-info">
							<strong>Ievēro:</strong> pēc sava nika ievadīšanas Tevi pārmetīs uz lapu, kur būs jānobalso.
							<p>Lai saņemtu bonusus <span style="color:#D81414">Tev jābūt online spēlē.</span></p>
						</div>
						
						<?php 
                $vote_button_value = 'Balsot un saņemt bonusus';
                if (isset($rcon_connection_failed)) {
                    $vote_button_value = 'Balsot par mums';
                }
                if (isset($config['links'][$target]['wos'])) {