Example #1
0
                $pais = explodear(':', $info, 1);
                // $extra = pols($pols_total).' ';
                $txt .= '<li>' . MONEDA . ' <b class="big">' . $extra . '' . crear_link($nick, 'nick', 'ciudadano', $pais) . '</b></li>';
            }
        }
        $txt .= '</ol>


</td>

<td colspan="6" valign="top">

<h2>Deudores:</h2><ol>';
        $result = mysql_query("SELECT pols, pais, nick FROM users WHERE pols < 0 ORDER BY pols ASC");
        while ($r = mysql_fetch_array($result)) {
            $txt .= '<li>' . pols($r['pols']) . ' ' . MONEDA . ' <b class="big">' . crear_link($r['nick'], 'nick', 'ciudadano', $r['pais']) . '</b></li>';
        }
        $txt .= '</ol>
<span style="color:#888;">No contabiliza el dinero en cuentas bancarias.</span>

</td>


<td align="center" colspan="6" valign="top">
<h2>Reparto econ&oacute;mico:</h2><br />
<img src="http://chart.apis.google.com/chart?cht=p&chd=t:' . round($total_pais['RSSV'] * 100 / $total_moneda) . ',' . round($total_pais['Hispania'] * 100 / $total_moneda) . '&chs=300x190&chl=RSSV|Hispania&chco=' . substr($vp['bg']['RSSV'], 1) . ',' . substr($vp['bg']['Hispania'], 1) . '" alt="Reparto economico." />

<br /><br />

<h2>Evoluci&oacute;n de la econom&iacute;a:</h2><br />
Example #2
0
function boton($texto, $url = false, $confirm = false, $size = false, $pols = '', $html_extra = false)
{
    if ($pols == '' or ECONOMIA == false) {
        return '<button' . ($url == false ? ' disabled="disabled"' : ' onClick="' . ($confirm != false ? 'if(!confirm(\'' . $confirm . '\')){return false;}' : '') . ($url != 'submit' ? 'window.location.href=\'' . $url . '\';return false;' : '') . '"') . ($size != false ? ' class="' . $size . '"' : '') . ($html_extra != false ? $html_extra : '') . '>' . $texto . '</button>';
    } else {
        global $pol;
        return '<span class="amarillo"><input type="submit" value="' . $texto . '"' . ($pol['pols'] < $pols ? ' disabled="disabled"' : ' onClick="' . ($confirm != false ? 'if(!confirm(\'' . $confirm . '\')){return false;}' : '') . 'window.location.href=\'' . $url . '\';"') . ' class="large blue" />' . (ECONOMIA ? ' &nbsp; ' . pols($pols) . ' ' . MONEDA . '' : '') . ($html_extra != false ? $html_extra : '') . '</span>';
    }
}
Example #3
0
                    $impuestos = '<em style="#AAA">Sin impuestos.</em>';
                }
                $txt .= '
<tr><td></td><td><hr style="border:1px solid #AAA; margin:-3px; padding:0;" /></td><td></td></tr>

<tr>
<td align="right">Patrimonio Total</td>
<td align="right">' . pols($patrimonio) . ' ' . MONEDA . '</td>
<td>&nbsp;&nbsp; ' . $impuestos . '</td>
</tr>
</table>

<br />

<p>Referencia: <input style="background:#FFFFDD;border: 1px solid grey;" type="text" size="35" value="http://' . HOST . '/r/' . strtolower($nick) . '/" readonly="readonly" /><br />
(Ganar&aacute;s <b>' . pols($pols_afiliacion) . ' ' . MONEDA . '</b> por cada nuevo Ciudadano autentico que se registre por este enlace y cumpla el minimo tiempo online en sus 30 primeros dias)</p>';
            }
            // fin ECONOMIA
            // <p>Clave API: <input class="api_box" type="text" size="12" value="' . $r['api_pass'] . '" readonly="readonly" /> ' . boton('Generar clave', '/accion.php?a=api&b=gen_pass', '&iquest;Seguro que deseas CAMBIAR tu clave API?\n\nLa antigua no funcionar&aacute;.') . ' (Equivale a tu contrase&ntilde;a, mantenla en secreto. M&aacute;s info: <a href="'.SSL_URL.'api.php">API</a>)</p>
            $txt .= '<p>' . boton('Cambiar contrase&ntilde;a', REGISTRAR . 'login.php?a=panel') . ' ' . boton('Autentificar con DNIe', SSL_URL . 'dnie.php') . ' ' . ($pol['pais'] != 'ninguno' ? boton('Rechazar Ciudadania', REGISTRAR) . ' ' : '') . '</p>

<p>
<form action="/accion.php?a=afiliarse" method="post">

Afiliaci&oacute;n: <select name="partido"><option value="0">Ninguno</option>';
            $result2 = mysql_query("SELECT ID, siglas FROM " . SQL . "partidos ORDER BY siglas ASC", $link);
            while ($r2 = mysql_fetch_array($result2)) {
                $txt .= '<option value="' . $r2['ID'] . '"' . ($r2['ID'] == $pol['partido'] ? ' selected="selected"' : '') . '>' . $r2['siglas'] . '</option>';
            }
            $txt .= '
</select>
Example #4
0
        $gan++;
        if ($gan == 1) {
            $txt .= '
<tr>
<td colspan="4" class="amarillo"><form action="/accion.php?a=mercado&b=puja&ID=2" method="post">
<b><input type="text" name="puja" value="' . ($row['los_pols'] + 10) . '" size="4" maxlength="7" readonly="readonly" style="text-align:right;" class="pols" /> ' . MONEDA . ' <input type="submit" value="Pujar" class="pujar" disabled="disabled" /> &nbsp; "las palabras"</b></form></td>
</tr>';
        }
        if ($gan <= $pol['config']['palabras_num']) {
            $bold = ' style="font-weight:bold;"';
            $ganador = '<b>(Ganador)</b>';
        } else {
            $bold = '';
            $ganador = false;
        }
        $txt .= '<tr><td align="right"><b style="font-size:20px;">' . pols($row['los_pols']) . '</b></td><td' . $bold . '>' . crear_link($row['nick']) . '</td><td' . $bold . '><span class="timer" value="' . strtotime($row['time']) . '"></span></td><td>' . $ganador . '</td></tr>';
    }
    if ($init == false) {
        $txt .= '
<tr>
<td colspan="4" class="amarillo"><form action="/accion.php?a=mercado&b=puja&ID=2" method="post">
<b><input type="text" name="puja" value="' . ($row['los_pols'] + 10) . '" size="4" class="pols" readonly="readonly" maxlength="7" style="text-align:right;" /> ' . MONEDA . ' <input type="submit" value="Pujar" class="pujar" disabled="disabled" /> &nbsp; "las palabras"</b></form></td>
</tr>';
    }
    $txt .= '</table>

<p>Propietarios actuales:<br /><b>';
    foreach (explode(";", $pol['config']['palabras']) as $t) {
        $t = explode(":", $t);
        $result = mysql_query("SELECT nick FROM " . SQL_USERS . " WHERE ID = '" . $t[0] . "' LIMIT 1", $link);
        while ($row = mysql_fetch_array($result)) {
Example #5
0
                $impuesto = round($pol['config']['impuestos_empresa'] * $r['num']);
                if ($r2['pols'] >= $impuesto) {
                    $recaudacion_empresas += $impuesto;
                    pols_transferir($impuesto, $r['user_ID'], '-1', 'IMPUESTO EMPRESAS ' . date('Y-m-d') . ': ' . $r['num'] . ' empresas');
                } else {
                    $result3 = mysql_query("SELECT ID, pols FROM " . SQL . "cuentas WHERE user_ID = '" . $r['user_ID'] . "' AND nivel = '0' ORDER BY pols DESC LIMIT 1", $link);
                    while ($r3 = mysql_fetch_array($result3)) {
                        if ($r3['pols'] >= $impuesto) {
                            $recaudacion_empresas += $impuesto;
                            pols_transferir($impuesto, '-' . $r3['ID'], '-1', 'IMPUESTO EMPRESAS ' . date('Y-m-d') . ': ' . $r['num'] . ' empresas');
                        }
                    }
                }
            }
        }
        evento_chat('<b>[PROCESO] IMPUESTO EMPRESAS ' . date('Y-m-d') . '</b>, recaudado: ' . pols($recaudacion_empresas) . ' ' . MONEDA);
    }
}
// FIN if (ECONOMIA) {
// NOTAS MEDIA
$result = mysql_query("SELECT user_ID, AVG(nota) AS media FROM cargos_users WHERE pais = '" . PAIS . "' GROUP BY user_ID", $link);
while ($r = mysql_fetch_array($result)) {
    if ($r['media']) {
        mysql_query("UPDATE users SET nota = '" . $r['media'] . "' WHERE ID = '" . round($r['user_ID'], 1) . "' LIMIT 1", $link);
    }
}
//evento_chat('<b>[PROCESO] Calculadas las notas media.</b>');
// ELIMINAR CHAT INACTIVOS TRAS N DIAS
/*$margen_chatexpira = date('Y-m-d 20:00:00', time() - (86400 * $pol['config']['chat_diasexpira']));
mysql_query("DELETE FROM chats WHERE pais = '".PAIS."' AND fecha_last < '".$margen_chatexpira."'", $link);
*/
Example #6
0
             $result = mysql_query("SELECT nombre FROM grupos WHERE grupo_ID = '" . $_POST['grupo_ID'] . "' LIMIT 1", $link);
             while ($r = mysql_fetch_array($result)) {
                 $grupo_nombre = $r['nombre'];
             }
             $result = mysql_query("SELECT ID AS user_ID, grupos FROM users WHERE estado = 'ciudadano' AND pais = '" . PAIS . "' AND grupos != '' AND grupos LIKE '%" . $_POST['grupo_ID'] . "%' LIMIT 1000", $link);
             while ($r = mysql_fetch_array($result)) {
                 if ($r['user_ID'] != $pol['user_ID'] and in_array($_POST['grupo_ID'], explode(' ', $r['grupos']))) {
                     mysql_query("INSERT INTO mensajes (envia_ID, recibe_ID, time, text, leido, cargo, recibe_masivo) VALUES ('" . $pol['user_ID'] . "', '" . $r['user_ID'] . "', '" . $date . "', '<b>Mensaje multiple: grupo " . $grupo_nombre . "</b><br />" . $text . "', '0', '" . $_POST['calidad'] . "', '" . $_POST['cargo_ID'] . "')", $link);
                     evento_chat('<b>Nuevo mensaje privado</b> (<a href="http://' . strtolower(PAIS) . '.' . DOMAIN . '/msg"><b>Leer!</b></a>)', $r['user_ID'], -1, false, 'p');
                     notificacion($r['user_ID'], 'Mensaje privado del grupo ' . $grupo_nombre, '/msg');
                 }
             }
             $refer_url = 'msg/';
         } elseif ($_POST['para'] == 'todos' and $pol['pols'] >= $pol['config']['pols_mensajetodos']) {
             // MENSAJE GLOBAL
             $text = '<b>Mensaje Global:</b> (' . pols($pol['config']['pols_mensajetodos']) . ' ' . MONEDA . ')<hr />' . $text;
             pols_transferir($pol['config']['pols_mensajetodos'], $pol['user_ID'], '-1', 'Mensaje Global');
             $result = mysql_query("SELECT ID FROM users WHERE estado = 'ciudadano' AND pais = '" . PAIS . "'", $link);
             while ($r = mysql_fetch_array($result)) {
                 mysql_query("INSERT INTO mensajes (envia_ID, recibe_ID, time, text, leido, cargo) VALUES ('" . $pol['user_ID'] . "', '" . $r['ID'] . "', '" . $date . "', '" . $text . "', '0', '" . $_POST['calidad'] . "')", $link);
                 notificacion($r['ID'], 'Mensaje privado global', '/msg');
                 $refer_url = 'msg';
             }
         }
     }
     break;
 case 'elecciones-generales':
     $ID_partido = $_POST['ID_partido'];
     if (!$_GET['b'] and $pol['config']['elecciones_estado'] == 'elecciones' and $pol['estado'] == 'ciudadano') {
         $fecha_24_antes = date('Y-m-d H:i:00', strtotime($pol['config']['elecciones_inicio']) - $pol['config']['elecciones_antiguedad']);
         //fecha registro?
Example #7
0
                if ($r['aprobado'] == 'ok') {
                    $txt_el_td .= boton('Repetir examen (' . $r['nota'] . ')', '/examenes/' . $r['examen_ID'], false, 'blue') . ' ' . boton('Retirar candidatura', '/accion.php?a=examenes&b=retirar_examen&ID=' . $r['cargo_ID'], false, 'red');
                } else {
                    if ($r['aprobado'] == 'no') {
                        $txt_el_td .= boton('Ser candidato (examen, ' . $r['nota'] . ')', '/examenes/' . $r['examen_ID'], false, 'blue');
                    } else {
                        $txt_el_td .= boton('Ser candidato (examen)', '/examenes/' . $r['examen_ID'], false, 'blue');
                    }
                }
            }
        }
        $txt_el_td .= '</td>
<td align="right"><b style="font-size:16px;">' . $r['cargo_num'] . '</b> de ' . $r['candidatos_num'] . '</td>
<td nowrap="nowrap">' . $asigna . '</td>
<td align="right">' . $r['nivel'] . '</td>
' . (ECONOMIA ? '<td align="right">' . pols($r['salario']) . '</td>' : '') . '
<td>' . ($editar_examen ? boton('Editar examen', '/examenes/editar/' . $r['examen_ID']) : '') . '</td>
<td align="right" style="color:grey;">' . $r['cargo_ID'] . '</td>
';
        $txt_td2[$r['cargo_ID']] = array();
        if ($r['asigna'] > 0) {
            // Asignado...
            $txt_td2[$r['asigna']][$r['cargo_ID']] = $txt_el_td;
        } else {
            // Elecciones...
            $txt_td1[$r['cargo_ID']] = $txt_el_td;
        }
    }
    $txt .= '
<table border="0" cellspacing="3" cellpadding="0">
<tr>
Example #8
0
' : '') . '


<tr>
' . (ECONOMIA ? '<td colspan="2" nowrap="nowrap"><input id="radio_todos" type="radio" name="para" value="todos"' . $disabled_todos . ' onclick="click_form(\'todos\');" />Mensaje Global a todos los Ciudadanos (' . $pol['config']['info_censo'] . '). ' . pols($pol['config']['pols_mensajetodos']) . ' ' . MONEDA . '.</td>' : '') . '
</tr>
</table>
</p>

<p><b>Mensaje:</b><br />
<textarea tabindex="2" name="text" style="color:green;font-weight:bold;width:550px;height:200px;"></textarea></p>

<input type="hidden" name="calidad" value="0" />

<p>' . boton('Enviar', 'submit', false, 'large blue') . ' &nbsp; <input type="checkbox" name="urgente" value="1" id="urgente" /> Env&iacute;o urgente. (el receptor recibir&aacute; un email)' . (ECONOMIA ? ' ' . pols($pol['config']['pols_mensajeurgente']) . ' ' . MONEDA : '') . '</form></p>
<hr />
<br /><br />
</div>



<table border="0" cellspacing="0" cellpadding="4">
<tr>
<th colspan="2"><span style="float:right;">Emisor &nbsp; &nbsp;</span>
</th>
<th>Mensaje</th>
<th></th>
</tr>';
        $result = mysql_query("SELECT \r\nID, envia_ID, recibe_ID, time, text, leido, cargo, recibe_masivo,\r\n(SELECT nick FROM users WHERE users.ID = envia_ID LIMIT 1) AS nick_envia,\r\n(SELECT nombre FROM cargos WHERE cargos.cargo_ID = cargo LIMIT 1) AS cargo_nom\r\nFROM " . SQL_MENSAJES . "\r\nWHERE recibe_ID = '" . $pol['user_ID'] . "'\r\nORDER BY leido ASC, time DESC\r\nLIMIT 100", $link);
        while ($r = mysql_fetch_array($result)) {
Example #9
0
     }
     break;
 case 'solicitar-ciudadania':
     // tiene kick?
     $result = mysql_query("SELECT ID FROM " . strtolower($_POST['pais']) . "_ban WHERE estado = 'activo' AND user_ID = '" . $pol['user_ID'] . "' LIMIT 1", $link);
     while ($r = mysql_fetch_array($result)) {
         $tiene_kick = true;
     }
     $result = mysql_query("SELECT pais FROM users WHERE ID = '" . $pol['user_ID'] . "' LIMIT 1", $link);
     while ($r = mysql_fetch_array($result)) {
         $user_pais = $r['pais'];
     }
     if ($pol['user_ID'] and $tiene_kick != true and $user_pais == 'ninguno' and $pol['estado'] == 'turista' and !in_array($_POST['pais'], $vp['paises_congelados'])) {
         mysql_query("UPDATE users SET estado = 'ciudadano', pais = '" . $_POST['pais'] . "' WHERE estado = 'turista' AND pais = 'ninguno' AND ID = '" . $pol['user_ID'] . "' LIMIT 1", $link);
         if ($pol['pols'] > 0 and $_POST['pais'] != '15M' and $_POST['pais'] != '15MBCN') {
             $trae = ', trayendo consigo: ' . pols($pol['pols']) . ' ' . MONEDA;
         } else {
             $trae = '';
         }
         $result2 = mysql_query("SELECT COUNT(*) AS num FROM users WHERE estado = 'ciudadano' AND pais = '" . $_POST['pais'] . "'", $link);
         while ($r2 = mysql_fetch_array($result2)) {
             $ciudadanos_num = $r2['num'];
         }
         evento_chat('<b>[#] Nuevo ciudadano</b> de <b>' . $_POST['pais'] . '</b> <span style="color:grey;">(<b>' . num($ciudadanos_num) . '</b> ciudadanos, <b><a href="http://' . strtolower($_POST['pais']) . '.' . DOMAIN . '/perfil/' . $pol['nick'] . '/" class="nick">' . $pol['nick'] . '</a></b>)</span>', 0, 0, false, 'e', $_POST['pais'], $r['nick']);
         mysql_query("INSERT INTO " . strtolower($_POST['pais']) . "_log \r\n(time, user_ID, user_ID2, accion, dato) \r\nVALUES ('" . date('Y-m-d H:i:s') . "', '" . $pol['user_ID'] . "', '" . $pol['user_ID'] . "', '2', '')", $link);
         unset($_SESSION);
         session_unset();
         session_destroy();
         redirect('http://' . strtolower($_POST['pais']) . '.' . DOMAIN . '/');
     } else {
         redirect(REGISTRAR);
Example #10
0
<form action="/accion.php?a=mercado&b=puja&ID=1" method="post">
<p><span class="amarillo"><b><input type="text" name="puja" value="' . $puja_minima . '" size="2" maxlength="6" style="text-align:right;" /> ' . MONEDA . ' &nbsp; <input type="submit" value="Pujar" /></b></span></p>
</form>

<table border="0" cellspacing="2" cellpadding="0" class="pol_table">
<tr>
<th>' . MONEDA . '</th>
<th>Ciudadano</th>
<th><a href="/mercado/frase/">Actualizar</a></th>
<th><b>' . $queda . '</b></th>
</tr>';
    $ganador = 'ok';
    $result = mysql_query("SELECT user_ID, pols, time,\r\n(SELECT nick FROM " . SQL_USERS . " WHERE ID = " . SQL . "pujas.user_ID LIMIT 1) AS nick\r\nFROM " . SQL . "pujas\r\nWHERE mercado_ID = 1\r\nORDER BY pols DESC\r\nLIMIT 15", $link);
    while ($row = mysql_fetch_array($result)) {
        if ($ganador == 'ok') {
            $ganador = '<b>(Ganador)</b>';
        } else {
            $ganador = false;
        }
        $txt .= '<tr><td align="right"><b style="font-size:20px;">' . pols($row['pols']) . '</b></td><td>' . crear_link($row['nick']) . '</td><td>' . duracion(time() - strtotime($row['time'])) . '</td><td>' . $ganador . '</td></tr>';
    }
    if (!$puja_minima) {
        $puja_minima = 1;
    }
    $txt .= '</table>';
}
//THEME
$txt_title = 'Mercado - ' . $_GET['a'];
$txt_nav = array('Mercado');
$txt_menu = 'econ';
include 'theme.php';
Example #11
0
        $txt_title = 'Control: Judicial';
        $txt_nav = array('/control' => 'Control', 'Judicial');
        $txt .= '<h1 class="quitar"><a href="/control/">Control</a>: Judicial</h1><p>Panel Judicial para Jueces.</p>

<h2>1. Sanciones</h2><hr />

<table border="0" cellspacing="1" cellpadding="" class="pol_table">
<tr>
<th></th>
<th>Sancionado</th>
<th>Hace</th>
<th>Concepto</th>
</tr>';
        $result = mysql_query("SELECT *,\r\n(SELECT nick FROM users WHERE ID = " . SQL . "transacciones.emisor_ID LIMIT 1) AS nick\r\nFROM " . SQL . "transacciones\r\nWHERE concepto LIKE '<b>SANCION %' AND receptor_ID = '-1'\r\nORDER BY time DESC", $link);
        while ($r = mysql_fetch_array($result)) {
            $txt .= '<tr><td>' . pols('-' . $r['pols']) . ' ' . MONEDA . '</td><td><b>' . crear_link($r['nick']) . '</b></td><td><acronym title="' . $r['time'] . '">' . timer($r['time']) . '</acronym></td><td>' . $r['concepto'] . '</td></tr>' . "\n";
        }
        if ($pol['cargo'] != 9) {
            $disabled = ' disabled="disabled"';
        }
        $txt .= '</table><br />

<form action="/accion.php?a=sancion" method="post">

<ol>
<li><b>Nick:</b> el Ciudadano de ' . PAIS . ' que recibirá la sanción.<br /><input type="text" value="" name="nick" size="20" maxlength="20" /><br /><br /></li>

<li><b>' . MONEDA . ' de multa:</b> el importe de la sanción, maximo 5000 ' . MONEDA . ' (en caso de no tener la cantidad requerida, se quedará en negativo).<br /><input style="color:blue;text-align:right;" type="text" name="pols" size="4" value="1" maxlength="4" /> ' . MONEDA . '<br /><br /></li>

<li><b>Concepto:</b> breve frase con la razón de la sanción.<br /><input type="text" name="concepto" size="50" maxlength="100" /><br /><br /></li>
Example #12
0
        if ($row['nick_emisor'] == $pol['nick']) {
            //doy
            $transferir_nick = $row['nick_receptor'];
            $transf = '&rarr; ' . crear_link($row['nick_receptor']);
            $transf_pre = '&rarr;';
            $transf_ID = $row['receptor_ID'];
            $pols = '-' . $row['pols'];
        } else {
            //recibo
            $transferir_nick = $row['nick_emisor'];
            $transf = '&larr; ' . crear_link($row['nick_emisor']);
            $transf_pre = '&larr;';
            $transf_ID = $row['emisor_ID'];
            $pols = $row['pols'];
        }
        if ($transf_ID < 0) {
            $cuenta_ID = substr($transf_ID, 1);
            $result2 = mysql_query("SELECT nombre FROM " . SQL . "cuentas WHERE ID = '" . $cuenta_ID . "' LIMIT 1", $link);
            while ($row2 = mysql_fetch_array($result2)) {
                $cuenta_nombre = $row2['nombre'];
            }
            $transferir_nick = $transf_ID;
            $transf = $transf_pre . ' #<a href="/pols/cuentas/' . $cuenta_ID . '/"><b>' . $cuenta_nombre . '</b></a>';
        }
        $txt .= '<tr><td align="right" valign="top"><b>' . pols($pols) . '</b></td><td valign="top">' . $transf . '</td><td>' . $row['concepto'] . '</td><td valign="top" align="right"><acronym title="' . $row['time'] . '">' . str_replace(" ", "&nbsp;", duracion(time() - strtotime($row['time']))) . '</acronym></td><td valign="top" align="right">' . boton('&rarr;', '/pols/transferir/' . strtolower($transferir_nick), false, 'small') . '</td></tr>';
    }
    $txt .= '</table><p>' . $p_paginas . '</p>';
}
//THEME
$txt_menu = 'econ';
include 'theme.php';
Example #13
0
                $elecciones = ' <a href="/elecciones/" style="color:red;"><b>1&ordf; Vuelta en curso</b>, queda <b style="font-size:18px;">' . timer($elecciones_quedan - 86400, true) . '</b></a> |';
                break;
            case 'pres2':
                $elecciones = ' <a href="/elecciones/" style="color:red;"><b>2&ordf; Vuelta en curso</b>, queda <b style="font-size:18px;">' . timer($elecciones_quedan, true) . '</b></a> |';
                break;
            case 'parl':
                $elecciones = ' <a href="/elecciones/" style="color:blue;"><b>Elecciones en curso</b>, queda <b style="font-size:18px;">' . timer($elecciones_quedan, true) . '</b></a> |';
                break;
        }
    }
    if (isset($pol['cargo'])) {
        $cargo_icono = ' <img src="' . IMG . 'cargos/' . $pol['cargo'] . '.gif" border="0" width="16" height="16" />';
    } else {
        $cargo_icono = '';
    }
    $txt_perfil = '<a href="/perfil/' . $pol['nick'] . '/">' . $pol['nick'] . ' ' . $cargo_icono . '</a>' . (ECONOMIA ? ' | <a href="/pols/"><b>' . pols($pol['pols']) . '</b> ' . MONEDA . '</a>' : '') . ' | <a href="/msg/" title="Mensajes Privados (MP)"><img src="' . IMG . 'varios/email.gif" alt="Mensajes" border="0" width="25" height="20" style="margin-bottom:-5px;" /></a> |' . $elecciones . ' <a href="/accion.php?a=logout">Salir</a>';
} elseif ($pol['estado'] == 'extranjero') {
    // extranjero
    $txt_perfil = '<a href="http://' . strtolower($pol['pais']) . '.' . DOMAIN . '/perfil/' . $pol['nick'] . '/">' . $pol['nick'] . '</a> <img src="' . IMG . 'cargos/99.gif" style="margin-bottom:-2px;" border="0" width="16" height="16" /> (<b class="extranjero">Extranjero</b>) | <a href="/accion.php?a=logout">Salir</a>';
} elseif ($pol['estado'] == 'turista') {
    // TURISTA
    $txt_perfil = $pol['nick'] . ' (<b class="turista">Turista</b>) ' . $pol['tiempo_ciudadanizacion'] . ' | ' . boton('Solicitar Ciudadania', REGISTRAR) . ' | <a href="/accion.php?a=logout">Salir</a>';
} elseif ($pol['estado'] == 'kickeado') {
    // KICKEADO
    $txt_perfil = $pol['nick'] . ' (<b class="expulsado">Kickeado</b>) | <a href="/control/kick/"><b>Ver Kicks</b></a>';
} elseif ($pol['estado'] == 'expulsado') {
    // EXPULSADO
    $txt_perfil = $pol['nick'] . ' (<b class="expulsado">Expulsado</b>)';
} elseif (isset($pol['nick']) and $pol['estado'] != '') {
    // sin identificar, login OK
    $txt_perfil = '<b>' . $pol['nick'] . '</b> (<span class="infog"><b>Turista</b></span>) <span class="azul">' . boton('Solicitar Ciudadania', REGISTRAR) . '</span> | <a href="/accion.php?a=logout">Salir</a>';
Example #14
0
<td valign="top">' . $r['color'] . '</td>
<td nowrap="nowrap" align="right" valign="top">' . pols($r['pols']) . ' ' . MONEDA . '</td>
<td nowrap="nowrap" align="right" valign="top">' . pols($coste) . ' ' . MONEDA . '/dia</td>
<td valign="top">' . $estado . '</td>
<td nowrap="nowrap" valign="top" align="right">' . $botones . '</td>
</tr>';
        }
    }
    if ($coste_total - $pol['config']['pols_inem'] != 0) {
        $dias_dinero = floor($pol['pols'] / ($coste_total - $pol['config']['pols_inem']));
    } else {
        $dias_dinero = 0;
    }
    $txt .= '<tr><td colspan="5"></td><td align="right"><b style="font-size:20px;">Total:</td><td>' . pols($coste_total) . '</b> ' . MONEDA . '/dia</td><td colspan="2"><em>Tienes para ' . ($dias_dinero <= 5 ? '<b style="color:red;">' : '<b>') . $dias_dinero . '</b> d&iacute;as</em></td></tr></table>

<p>Tienes <b>' . $prop_num . '</b> propiedades, <b>' . $superficie . '</b> de superficie. Factor de propiedad: <b>' . $pol['config']['factor_propiedad'] . '</b>, Inempol: ' . pols($pol['config']['pols_inem']) . ' ' . MONEDA . ' (por cada dia que entres).</p>


<br />

<h2>Fusiones posibles</h2>

<table border="0" class="pol_table">';
    if ($prop) {
        // FUSION X
        foreach ($prop as $ID => $d) {
            //encaje
            $next_x = $d['pos_x'] + $d['size_x'];
            //busqueda x
            $ex_x = '';
            foreach ($prop as $ID2 => $d2) {
Example #15
0
		<div id="header-logo">
			<?php 
echo ASAMBLEA ? '' : '<a href="/"><img src="' . IMG . 'banderas/' . PAIS . '_60.gif" height="50" border="0" /></a>';
?>
			<span class="htxt" id="header-logo-p"><?php 
echo $pol['config']['pais_des'] . ', ' . PAIS;
?>
</span>
		</div>

		<div id="header-right">
<?php 
unset($txt_header);
if (isset($pol['user_ID'])) {
    echo '<span class="htxt"><b><a href="/perfil/' . $pol['nick'] . '">' . $pol['nick'] . ($pol['cargo'] != 0 && $pol['cargo'] != 99 ? ' <img src="' . IMG . 'cargos/' . $pol['cargo'] . '.gif" border="0" width="16" height="16" />' : '') . '</a>' . ($pol['estado'] != 'ciudadano' ? ' (<b class="' . $pol['estado'] . '">' . ucfirst($pol['estado']) . '</b>)' : '') . (ECONOMIA && $pol['estado'] == 'ciudadano' ? ' | <a href="/pols"><b>' . pols($pol['pols']) . '</b> ' . MONEDA . '</a>' : '') . ' |' . $txt_elec . ' <a href="/accion.php?a=logout">Salir</a></b></span>';
} else {
    echo boton('Crear ciudadano', REGISTRAR . '?p=' . PAIS, false, 'large blue') . ' &nbsp; ' . boton('Entrar', REGISTRAR . 'login.php?r=' . base64_encode('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']));
}
?>
		</div>

		<div id="header-breadcrumbs">
			<ul class="breadcrumbs alt1">
				<li><a href="/"><img src="<?php 
echo IMG;
?>
ico/home.png" width="18" height="18" alt="home" style="margin:-4px;" /></a></li>
				<?php 
foreach ($txt_nav as $u => $a) {
    echo '<li><a href="' . (!is_numeric($u) ? $u : '#') . '">' . $a . '</a></li>';