echo $txt_header; ?> </head> <body class="fullwidth"> <div id="container"> <div id="header"> <div id="header-in"> <?php unset($txt_header); if ($pol['nick']) { $txt_perfil = '<b><a href="http://' . strtolower($pol['pais']) . '.' . DOMAIN . '/perfil/' . $pol['nick'] . '/">' . $pol['nick'] . '</a></b> | <b class="' . $pol['estado'] . '">' . ucfirst($pol['estado']) . '</b> de <b>' . $pol['pais'] . '</b> | ' . boton('Salir', REGISTRAR . 'login.php?a=logout'); } else { // sin identificar, sin login $txt_perfil = boton('Crear ciudadano', REGISTRAR) . ' | ' . boton('Entrar', REGISTRAR . 'login.php'); } ?> <div style="margin:10px 0 2px 0;"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td width="208"><span id="homelogo"><a href="http://www.<?php echo DOMAIN; ?> /" class="gris" title="Home"><img src="<?php echo IMG; ?> logo-virtualpol-1.gif" width="205" height="60" alt="VirtualPol" style="margin:-12px 0 -9px -6px;" border="0" /></a></td><td><span style="color:grey;font-size:20x;">Red social democrática</span></span></td> <td align="right"><?php
break; case 'legal': redirect('http://www.virtualpol.com/TOS'); break; case 'TOS': if (isset($pol['user_ID'])) { $result = mysql_query("SELECT fecha_legal FROM users WHERE ID = '" . $pol['user_ID'] . "' AND fecha_legal != '0000-00-00 00:00:00'", $link); while ($r = mysql_fetch_array($result)) { $fecha_legal = $r['fecha_legal']; } if ($fecha_legal) { $txt_legal = 'Como usuario de VirtualPol aceptaste las siguientes condiciones. (' . $fecha_legal . ')<br /><br />'; $txt_legal_botones = ''; } else { $txt_legal = 'Como usuario de VirtualPol debes aceptar las siguientes condiciones.<br /><br />'; $txt_legal_botones = '<div style="margin:30px 0 0 0;">' . boton('HE LEIDO Y ACEPTO TODAS LAS CONDICIONES.', 'http://' . $pol['pais'] . '.' . DOMAIN . '/accion.php?a=aceptar-condiciones') . '</div>'; } } $result = mysql_query("SELECT title, text FROM docs WHERE ID = '1' LIMIT 1", $link); // doc_ID 1 = TOS while ($r = mysql_fetch_array($result)) { $title = $r['title']; $text = $r['text']; } $txt_title = 'CONDICIONES DE USO DE VIRTUALPOL | Informacion legal, contacto'; $txt_description = 'Condiciones de Uso de VirtualPol. Texto legal, contacto.'; $txt_header .= ' <meta name="robots" content="noindex,nofollow" /> <style type="text/css"> .content { width:800px; margin: 0 auto; } </style>';
} $elecciones_quedan = duracion(strtotime($pol['config']['elecciones_inicio']) + $pol['config']['elecciones_duracion'] - time()); $li_elecciones_num = 'En curso'; } $txt .= '<h1>Bienvenido a ' . PAIS . '</h1> <br /> <table border="0"><tr><td width="50%" valign="top"> <h2>¿Qué es ' . PAIS . '?</h2> <p style="text-align:justify;">' . PAIS . ' es un Pais auto-gestionado Democráticamente de la comunidad <a href="http://www.' . DOMAIN . '">VirtualPol</a>.</p> <p style="text-align:justify;">El Gobierno Democrático se compone de un Presidente, Diputados, Jueces, Policías, Leyes, Juicios, Periodistas, Abogados, etc... sin la existencia de usuarios privilegiados (god).</p> <p style="text-align:justify;">En ' . PAIS . ' todos los ciudadanos están en absoluta igualdad, con las mismas oportunidades para el liderazgo o el fracaso en la búsqueda del Poder.</p> <p>' . boton('Regístrate!', REGISTRAR) . '</p> </td><td valign="top"> <h2>Información Global</h2> <ul id="info"> <li>Ciudadanos online: <b>' . $li_online_num . '<br />' . $li_online . '</b></li> <li>Partidos Políticos: <b>' . $li_partidos_num . '<br />' . $li_partidos . '</b></li> <li><a href="/elecciones/">Elecciones Generales</a> <b>' . $li_elecciones_num . '</b>.</li> </ul> </td></tr></table>'; $txt_header .= '<style type="text/css">#info li { margin-top:10px; } </style>'; } // CHAT PLAZA
<div id="content"> <?php echo $txt; ?> </div> <div id="footer"> <div id="footer-right"> <p>VirtualPol, la primera <b>Red Social Democrática</b> <?php echo boton('Donar', 'https://virtualpol.com/donaciones', false, 'small pill orange'); ?> </p> <p> <a target="_blank" href="http://www.virtualpol.com/video">Vídeo</a> | <a target="_blank" href="http://www.virtualpol.com/documentacion">Documentación / Ayuda</a><br /> <a target="_blank" href="http://www.virtualpol.com/TOS" title="Condiciones de Uso">TOS</a> | <a target="_blank" href="http://www.virtualpol.com/desarrollo">Desarrollo / Código fuente</a><br /> <?php unset($txt); if (!isset($pol['user_ID'])) { echo '<a target="_blank" href="http://gonzo.teoriza.com" title="GONZO">Javier González</a> (<a target="_blank" href="http://www.teoriza.com" title="Blogs">Teoriza</a>, <a target="_blank" href="http://www.eventuis.com" title="Eventos">eventuis</a>, <a target="_blank" href="http://www.perfectcine.com" title="Cine">PerfectCine</a>)<br />'; } if ($pol['user_ID'] == 1) { echo num((microtime(true) - TIME_START) * 1000) . 'ms ' . num(memory_get_usage() / 1000) . 'kb | '; } ?> <span title="Época antigua en IRC" style="color:#BBB;">2004-</span>2008-2012
<td colspan="2" valign="top"><b style="font-size:20px;">Ciudadanos</b></td> <td colspan="3" align="right"></td> </tr> <tr> <td align="right" valign="top"><b style="font-size:18px;">' . num($autentificados) . '</b></td> <td colspan="2" valign="top">Autentificados</td> <td colspan="3" align="right"></td> </tr> </table> </center>'; if (!$pol['nick']) { $txt .= '<p style="text-align:center;"><span class="amarillo" style="padding:17px 9px 13px 9px;"><input value="REGISTRAR CIUDADANO" onclick="window.location.href=\'' . REGISTRAR . '\';" type="button" style="font-size:18px;height:40px;" /></span></p>'; } elseif ($pol['pais'] == 'ninguno') { $txt .= '<p>' . boton('Solicitar ciudadania', REGISTRAR) . '</p>'; } $time_pre = date('Y-m-d H:i:00', time() - 3600); // 1 hora $result = mysql_query("SELECT nick, pais, estado\r\nFROM users \r\nWHERE fecha_last > '" . $time_pre . "' AND estado != 'expulsado'\r\nORDER BY fecha_last DESC", $link); while ($r = mysql_fetch_array($result)) { $li_online_num++; $gf['censo_online'][$r['pais']]++; $pais_url = strtolower($r['pais']); if ($pais_url == 'ninguno') { $pais_url = 'vp'; } $li_online .= ' <a href="http://' . $pais_url . '.' . DOMAIN . '/perfil/' . $r['nick'] . '" class="nick redondeado ' . $r['estado'] . '" style="padding:2px;line-height:25px;background:' . $vp['bg'][$r['pais']] . ';">' . $r['nick'] . '</a>'; } $txt .= '<br />
$t = explode(":", $t); if ($t[0] == $pol['user_ID'] or nucleo_acceso($vp['acceso']['control_gobierno'])) { $txt .= '<div class="azul"><h2>"Palabra ' . ($num + 1) . '"</h2> <form action="/accion.php?a=mercado&b=editarpalabra&ID=' . $num . '" method="post"> <table border="0"><tr> <td>Texto: <input value="' . $t[2] . '" type="text" name="text" size="20" maxlength="20" /><br /> http://<input type="text" name="url" size="50" maxlength="150" value="' . $t[1] . '" /></td><td> ' . boton('Editar', 'submit', false, 'blue') . ' </form></b></td></tr> <tr><td align="right"> <form action="/accion.php?a=mercado&b=cederpalabra&ID=' . $num . '" method="post"> Ceder al Ciudadano: <input type="text" name="nick" size="14" maxlength="20" value="" /> </td><td> ' . boton('Ceder', 'submit', false, 'small pill') . ' </form></td> </tr></table> </div><br />'; } } } else { // SUBASTAS $txt_header .= ' <script type="text/javascript"> window.onload = function(){ setTimeout(function(){ $(".pujar").removeAttr("disabled"); }, 2000); } </script>'; // datos graficos
<tr> <th colspan="2">Estado</th> <th>Afectado</th> <th>Autor</th> <th>Cuando</th> <th>Tiempo</th> <th>Razón</th> <th></th> </tr>'; mysql_query("UPDATE " . SQL . "ban SET estado = 'inactivo' WHERE estado = 'activo' AND expire < '" . $date . "'", $link); $margen_30dias = date('Y-m-d 20:00:00', time() - 2592000); //30dias $result = mysql_query("SELECT ID, razon, expire, estado, autor, tiempo, cargo, motivo, user_ID,\r\n(SELECT nick FROM users WHERE ID = " . SQL . "ban.user_ID LIMIT 1) AS expulsado,\r\n(SELECT estado FROM users WHERE ID = " . SQL . "ban.user_ID LIMIT 1) AS expulsado_estado,\r\n(SELECT nick FROM users WHERE ID = " . SQL . "ban.autor LIMIT 1) AS nick_autor\r\nFROM " . SQL . "ban\r\nWHERE expire > '" . $margen_30dias . "' AND estado != 'expulsado'\r\nORDER BY expire DESC", $link); while ($r = mysql_fetch_array($result)) { if (($r['autor'] == $pol['user_ID'] or nucleo_acceso($vp['acceso']['kick_quitar'])) and $r['estado'] == 'activo') { $expulsar = boton('X', '/accion.php?a=kick&b=quitar&ID=' . $r['ID'], '¿Seguro que quieres hacer INACTIVO este kick?'); } else { $expulsar = ''; } $duracion = '<acronym title="' . $r['expire'] . '">' . duracion(time() + $r['tiempo'] - strtotime($r['expire'])) . '</acronym>'; if ($r['estado'] == 'activo') { $estado = '<span style="color:red;">Activo</span>'; } elseif ($r['estado'] == 'cancelado') { $estado = '<span style="color:grey;">Cancelado</span>'; } else { $estado = '<span style="color:grey;">Inactivo</span>'; } if (!$r['expulsado_estado']) { $r['expulsado_estado'] = 'expulsado'; } $txt .= '<tr><td valign="top"><img src="' . IMG . 'varios/kick.gif" alt="Kick" border="0" /></td><td valign="top"><b>' . $estado . '</b></td><td valign="top"><b>' . ($r['user_ID'] == 0 ? 'Anonimo' : crear_link($r['expulsado'], 'nick', $r['expulsado_estado'])) . '</b></td><td valign="top" nowrap="nowrap"><img src="' . IMG . 'cargos/' . $r['cargo'] . '.gif" border="0" /> ' . crear_link($r['nick_autor']) . '</td><td align="right" valign="top" nowrap="nowrap"><acronym title="' . $r['expire'] . '">' . timer($r['expire']) . '</acronym></td><td align="right" valign="top" nowrap="nowrap">' . duracion($r['tiempo'] + 1) . '</td><td><b style="font-size:13px;">' . ($r['motivo'] ? '<a href="/control/kick/info/' . $r['ID'] . '/">' . $r['razon'] . '</a>' : $r['razon']) . '</b></td><td>' . $expulsar . '</td></tr>' . "\n";
</td></tr></table>'; if ($user_ID != $pol['user_ID']) { $txt .= '<p class="quitar">' . boton('Enviar mensaje', 'http://' . strtolower($pol['pais']) . '.' . DOMAIN . '/msg/' . strtolower($nick) . '/') . ' ' . (ECONOMIA ? boton('Transferir ' . MONEDA_NOMBRE . '', 'http://' . strtolower($pol['pais']) . '.' . DOMAIN . '/pols/transferir/' . strtolower($nick) . '/') : '') . '</p>'; } $txt .= '</div>'; $txt_title = $nick . ' - ' . ucfirst($r['estado']) . ' de ' . $r['pais']; $txt_nav = array('/info/censo' => 'Censo', '/perfil/' . $nick => $nick); if ($user_ID != $pol['user_ID']) { $txt_tab['http://' . strtolower($pol['pais']) . '.' . DOMAIN . '/msg/' . $nick . '/'] = 'Enviar mensaje'; if (ECONOMIA) { $txt_tab['http://' . strtolower($pol['pais']) . '.' . DOMAIN . '/pols/transferir/' . strtolower($nick) . '/'] = 'Transferir'; } } else { } $txt .= '<p class="quitar">' . boton('Enviar mensaje', 'http://' . strtolower($pol['pais']) . '.' . DOMAIN . '/msg/' . $nick . '/') . ' ' . (ECONOMIA ? boton('Transferir ' . MONEDA_NOMBRE . '', 'http://' . strtolower($pol['pais']) . '.' . DOMAIN . '/pols/transferir/' . strtolower($nick) . '/') : '') . '</p>'; $txt_description = $txt_title . ' ' . str_replace("\"", "", strip_tags($r['text'])); } else { header("HTTP/1.0 404 Not Found"); exit; } } $txt_header .= '<style type="text/css"> #info b { color:green; } .api_box { border: 1px solid grey; text-align:center; background:#FFFFDD; color:#FFFFDD; } .api_box:hover { color:green; } </style> <script language="javascript"> function limitChars(textid, limit, infodiv) {
'; } else { $result = mysql_query("SELECT ID, nick, geo, pais FROM " . SQL_USERS . " WHERE geo != '' LIMIT 200", $link); while ($row = mysql_fetch_array($result)) { if ($geo_array) { $geo_array .= ', '; } $geo = explode(':', $row['geo']); $geo_num++; $geo_array .= $row['ID'] . ':"' . $row['nick'] . '|' . $geo[0] . '|' . $geo[1] . '|' . $row['pais'] . '|' . $row['ID'] . '"' . "\n"; } $txt .= '<h1>Geolocalización:'; if ($pol['user_ID']) { $txt .= ' ' . boton('Fija tu localización', '/geolocalizacion/fijar/'); } $txt .= '</h1> <script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=' . $google_maps_api . '"></script> <script type="text/javascript"> window.onload = function(){ initialize(); } geo_array = new Array(); geo_array = { ' . $geo_array . ' }; map = ""; geocoder = ""; function createMarker(point, nombre, pais, user_ID) { var baseIcon = new GIcon(G_DEFAULT_ICON);
if ($row['nick_emisor'] == $pol['nick']) { //doy $transferir_nick = $row['nick_receptor']; $transf = '→ ' . crear_link($row['nick_receptor']); $transf_pre = '→'; $transf_ID = $row['receptor_ID']; $pols = '-' . $row['pols']; } else { //recibo $transferir_nick = $row['nick_emisor']; $transf = '← ' . crear_link($row['nick_emisor']); $transf_pre = '←'; $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(" ", " ", duracion(time() - strtotime($row['time']))) . '</acronym></td><td valign="top" align="right">' . boton('→', '/pols/transferir/' . strtolower($transferir_nick), false, 'small') . '</td></tr>'; } $txt .= '</table><p>' . $p_paginas . '</p>'; } //THEME $txt_menu = 'econ'; include 'theme.php';
$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>'; } else { // sin identificar, sin login $txt_perfil = boton('Crear ciudadano', REGISTRAR . '?p=' . PAIS) . ' | ' . boton('Entrar', REGISTRAR . 'login.php?r=' . base64_encode('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'])); } ?> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td width="50" height="40"><?php echo notificacion('print'); ?> </td> <td nowrap="nowrap" width="80" height="40"> <a href="/" title="<?php echo $pol['config']['pais_des'] . ' de ' . PAIS; ?> "><img src="<?php
} $txt .= '<h1><a href="/mapa/">Mapa</a>: Comprar propiedad: ' . $_GET['b'] . '</h1> <form action="/accion.php?a=mapa&b=comprar&ID=' . $_GET['b'] . '" method="post"> <ol> <li><b>Dirección web</b> o <b>frase</b>:<br /> <input type="text" name="link" size="50" maxlength="70" /><br /><br /></li> <li><b>Color:</b> <select name="color"> ' . $colores . ' </select> (<a href="/mapa/comprar/' . $_GET['b'] . '/">Generar más</a>)<br /><br /></li> <li>' . boton('Comprar', false, false, false, $pol['config']['pols_solar']) . ' (Más coste de 1 ' . PAIS . ' al dia)<br /><br /></li> </ol> </form> <p><a href="/mapa/propiedades/"><b>Ver tus propiedades</b></a></p>'; } else { $cuadrado_size = 22; $mapa_full = true; include 'inc-mapa.php'; $txt .= '<h1 style="margin: 6px 0 6px 0;">Mapa: <input type="button" value="Actualizar" onclick="window.location=\'/mapa/\';" style="margin:-8px 0 -6px 0;padding:0;" /> <input type="button" value="Modo" onclick="colorear(\'toggle\');" style="margin:-8px 0 -6px 0;padding:0;" /> (<a href="/doc/mapa-de-vp/">Ayuda</a>) </h1> <table><tr><td rowspan="2"> ' . $txt_mapa . ' </td><td valign="top" colspan="2">'; // datos graficos
$result = mysql_query("SELECT ID, nick, grupos FROM users WHERE pais = '" . PAIS . "' AND estado = 'ciudadano' AND grupos != ''", $link); while ($r = mysql_fetch_array($result)) { foreach (explode(' ', $r['grupos']) as $grupo_ID) { $users_array[$grupo_ID][] = $r['nick']; } } $result = mysql_query("SELECT url, title, acceso_cfg_leer FROM " . SQL . "foros WHERE estado = 'ok' AND acceso_leer = 'grupos'", $link); while ($r = mysql_fetch_array($result)) { foreach (explode(' ', $r['acceso_cfg_leer']) as $grupo_ID) { $foros_array[$grupo_ID][] = '<a href="/foro/' . $r['url'] . '"><b>' . $r['title'] . '</b></a>'; } } $result = mysql_query("SELECT * FROM grupos WHERE pais = '" . PAIS . "' ORDER BY num DESC", $link); while ($r = mysql_fetch_array($result)) { $txt .= '<tr> <td align="right"><input type="checkbox" name="grupo_' . $r['grupo_ID'] . '" value="true"' . (nucleo_acceso('grupos', $r['grupo_ID']) ? ' checked="checked"' : '') . ' /></td> <td><b>' . $r['nombre'] . '</b></td> <td align="right" style="font-size:18px;color:#777;" title="AFILIADOS: ' . (is_array($users_array[$r['grupo_ID']]) ? implode(' ', $users_array[$r['grupo_ID']]) : '') . '"><b>' . $r['num'] . '</b> (<span class="punteado">Ver</span>)</td> <td>' . (is_array($foros_array[$r['grupo_ID']]) ? implode(' ', $foros_array[$r['grupo_ID']]) : '') . '</td> <td width="100" align="right" style="color:#888;">' . $r['grupo_ID'] . '</td> <td>' . (nucleo_acceso($vp['acceso']['control_grupos']) ? boton('Eliminar', '/accion.php?a=grupos&b=eliminar&grupo_ID=' . $r['grupo_ID'], false, 'red') : '') . '</td> </tr>'; } $txt .= '</table> <p>' . boton('Guardar afiliación', 'submit', false, 'large blue') . '</p> </form>'; } $txt_menu = 'demo'; include 'theme.php';
<input type="hidden" name="encalidad" value="0" /> <tr> <td valign="top" align="right"><input id="notas_boton" value="Enviar" disabled="disabled" type="submit" style="padding:5px;" /><br /><span id="notas_limit" style="font-weight:bold;font-size:24px;"><span style="color:blue;">' . $notame_max . '</span></span></td> <td class="amarillo" colspan="2"> <input type="text" id="notas_msg" name="text" autocomplete="off" style="color:green;font-weight:bold;padding:15px 0 15px 0;width:700px;" /> </td> </tr> </form> '; } $result = mysql_query("SELECT ID, user_ID, time, text, \r\n(SELECT nick FROM " . SQL_USERS . " WHERE ID = " . SQL . "foros_msg.user_ID LIMIT 1) AS nick,\r\n(SELECT avatar FROM " . SQL_USERS . " WHERE ID = " . SQL . "foros_msg.user_ID LIMIT 1) AS avatar\r\nFROM " . SQL . "foros_msg\r\nWHERE hilo_ID = '-1'\r\nORDER BY time DESC\r\nLIMIT 50", $link); $num_id = 0; while ($row = mysql_fetch_array($result)) { if ($row['user_ID'] == $pol['user_ID']) { $boton = boton('X', '/accion.php?a=foro&b=eliminarreply&ID=' . $row['ID'] . '&hilo_ID=-1', '¿Estás seguro de querer ELIMINAR esta NOTA?') . '</span>'; } else { $boton = ''; } if ($row['avatar'] == 'true') { $avatar = '<span class="navatar">' . avatar($row['user_ID'], 40) . '</span>'; } else { $avatar = ''; } $txt .= '<tr onmouseover="show(\'div' . $num_id . '\')" onmouseout="hide(\'div' . $num_id . '\')"><td align="right"><b class="big">' . crear_link($row['nick']) . '</b><br /><acronym title="' . $row['time'] . '">' . duracion(time() - strtotime($row['time'])) . '</acronym></td><td valign="top" class="amarillo">' . $avatar . $row['text'] . '</td><td width="1">' . $boton . '</td> <td><div id="div' . $num_id . '"style="display: inline; visibility: hidden"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://' . strtolower(PAIS) . '.' . DOMAIN . '/notas/" data-text="' . $row['text'] . ' #' . DOMAIN . '" data-count="none" data-lang="es"> Tweet</a></div></td></tr>' . "\n"; $num_id++; } $txt .= '</table>'; }
$result = mysql_query("SELECT ID, nombre, tipo FROM " . SQL . "cat WHERE tipo = 'docs' ORDER BY orden ASC", $link); while ($r = mysql_fetch_array($result)) { // CAT $txt .= '<div class="amarillo"><b style="font-size:20px;padding:15px;color:green;">' . $r['nombre'] . '</b></div>'; $txt .= '<table border="0" cellspacing="0" cellpadding="4" class="pol_table" width="100%"> <tr> <th></th> <th>Lectura</th> <th>Escritura</th> <th align="right">Publicado</th> </tr>'; $result2 = mysql_query("SELECT title, url, time, estado, time_last, acceso_leer, acceso_escribir, acceso_cfg_leer, acceso_cfg_escribir\r\nFROM docs\r\nWHERE estado = 'ok' AND cat_ID = '" . $r['ID'] . "' AND pais = '" . PAIS . "'\r\nORDER BY title ASC", $link); while ($r2 = mysql_fetch_array($result2)) { if (nucleo_acceso($r2['acceso_leer'], $r2['acceso_cfg_leer'])) { $txt .= '<tr> <td>' . (nucleo_acceso($r2['acceso_escribir'], $r2['acceso_cfg_escribir']) || nucleo_acceso($vp['acceso']['control_gobierno']) ? ' ' . boton('Editar', '/doc/' . $r2['url'] . '/editar', false, 'small') . ' ' : '') . '<a href="/doc/' . $r2['url'] . '">' . $r2['title'] . '</a></td> <td width="90" valign="top" style="background:#5CB3FF;">' . ($r2['acceso_cfg_leer'] ? '<acronym title="[' . $r2['acceso_cfg_leer'] . ']">' : '') . ucfirst($r2['acceso_leer']) . ($r2['acceso_cfg_leer'] ? '</acronym>' : '') . '</td> <td width="90" valign="top" style="background:#F97E7B;">' . ($r2['acceso_cfg_escribir'] ? '<acronym title="[' . $r2['acceso_cfg_escribir'] . ']">' : '') . ucfirst($r2['acceso_escribir']) . ($r2['acceso_cfg_escribir'] ? '</acronym>' : '') . '</td> <td width="80" align="right" nowrap="nowrap">' . timer($r2['time_last']) . '</td> </tr>' . "\n"; } } $txt .= '</table>'; } $txt .= '</div>'; } //THEME $txt_menu = 'info';
} } } $tabla .= $tabla_final; } else { // EN CURSO // EN CURSO $p = round($votos_total * 100 / $r['num_votantes']); $chart_dato = $p . ',' . (100 - $p); $chart_nom = 'Participacion|Abstencion'; $result = mysql_query("SELECT ID FROM " . SQL . "elecciones WHERE user_ID = '" . $pol['user_ID'] . "' LIMIT 1", $link); while ($r = mysql_fetch_array($result)) { $havotado = $r['ID']; } if (!$havotado and $pol['user_ID']) { $boton = '<br />' . boton('VOTAR', '/elecciones/votar', false, 'large blue'); } $tabla = '<tr><td colspan="4" style="color:grey;" align="center">Elecciones en curso...' . $boton . '</td></tr>'; } } $historial_p = ''; $result = mysql_query("SELECT time, num_votantes, num_votos, tipo, escrutinio FROM " . SQL . "elec ORDER BY time ASC", $link); while ($r = mysql_fetch_array($result)) { if ($historial_p) { $historial_p .= ','; } if ($historial_v) { $historial_v .= ','; } if ($historial_tipo) { $historial_tipo .= '|';
$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> <th></th>
<th></th> </tr>'; // ".SQL."examenes (ID, titulo, descripcion, user_ID, time, cargo_ID, nota, num_preguntas) // ".SQL."examenes_preg (ID, examen_ID, user_ID, time, pregunta, respuestas, tiempo) $result = mysql_query("SELECT ID, titulo, user_ID, time, cargo_ID, nota, num_preguntas,\r\n(SELECT COUNT(*) FROM " . SQL . "examenes_preg WHERE examen_ID = " . SQL . "examenes.ID LIMIT 1) AS num_preguntas_especificas,\r\n(SELECT COUNT(*) FROM cargos_users WHERE cargo_ID = " . SQL . "examenes.cargo_ID AND nota != '') AS examinados,\r\n(SELECT COUNT(*) FROM cargos_users WHERE cargo_ID = " . SQL . "examenes.cargo_ID AND nota != '' AND aprobado = 'ok') AS aprobados\r\nFROM " . SQL . "examenes\r\nWHERE ID != 0\r\nORDER BY nota DESC, num_preguntas_especificas DESC", $link); while ($r = mysql_fetch_array($result)) { if (substr($r['cargo_ID'], 0, 1) != '-') { $result2 = mysql_query("SELECT nombre FROM cargos WHERE cargo_ID = '" . $r['cargo_ID'] . "' LIMIT 1", $link); while ($r2 = mysql_fetch_array($result2)) { $cargo = '<img src="' . IMG . 'cargos/' . $r['cargo_ID'] . '.gif" title="' . $r2['nombre'] . '" />'; } } else { $cargo = ''; } if (nucleo_acceso($vp['acceso']['examenes_decano']) or nucleo_acceso($vp['acceso']['examenes_profesor'])) { $boton = boton('Editar', '/examenes/editar/' . $r['ID'], false, 'small'); } else { $boton = ''; } if ($r['aprobados'] > 0) { $aprobados = round($r['aprobados'] * 100 / $r['examinados']) . '%'; } else { $aprobados = '0%'; } if ($r['num_preguntas'] + $num_generales > 0) { $url = '<a href="/examenes/' . $r['ID'] . '/"><b>' . $r['titulo'] . '</b></a>'; } else { $url = '<b>' . $r['titulo'] . '</b>'; } $txt .= '<tr> <td valign="top">' . $r['num_preguntas'] . ' de ' . $r['num_preguntas_especificas'] . '</td>
$fondo = ' style="background:#FFFFCC;"'; } else { $boton = '<input type="checkbox" name="option2" />'; $fondo = ''; } if ($r['cargo'] != '0') { $cargo = ' <img src="' . IMG . 'cargos/' . $r['cargo'] . '.gif" title="' . $r['cargo_nom'] . '" />'; } else { $cargo = ''; } $txt .= '<tr' . $fondo . '> <td valign="top">' . $boton . '</td> <td valign="top" align="right" nowrap="nowrap"><b>' . crear_link($r['nick_envia']) . '</b>' . $cargo . '<br /><acronym title="' . $r['time'] . '" style="font-size:12px;"><span class="timer" value="' . strtotime($r['time']) . '"></span></acronym></td> <td valign="top" class="rich">' . $r['text'] . '<hr class="quitar" /></td> <td valign="top"><button onclick="$(\'#ciudadano\').val(\'' . $r['nick_envia'] . '\');$(\'#box_msg\').toggle(\'slow\');" class="blue">Responder</button></td> <td valign="top">' . boton('X', '/accion.php?a=borrar-mensaje&ID=' . $r['ID'], false, 'small red') . '</td> </tr>' . "\n"; } if (!$boton) { $txt .= '<tr><td colspan="5"><b>No tienes ningún mensaje.</b></td></tr>'; } $txt .= '</table>'; } } else { if ($pol['user_ID']) { redirect('http://' . strtolower($pol['pais']) . '.' . DOMAIN . '/msg/' . ($_GET['a'] ? $_GET['a'] : '')); } } //THEME $txt_menu = 'comu'; include 'theme.php';
$mostrar_separacion = true; $result = mysql_query("SELECT ID, pregunta, time, time_expire, user_ID, estado, num, tipo, acceso_votar, acceso_cfg_votar, acceso_ver, acceso_cfg_ver,\r\n(SELECT ID FROM votacion_votos WHERE ref_ID = votacion.ID AND user_ID = '" . $pol['user_ID'] . "' LIMIT 1) AS ha_votado\r\nFROM votacion\r\nWHERE estado = 'ok' AND pais = '" . PAIS . "'\r\nORDER BY time_expire DESC\r\nLIMIT 500", $link); while ($r = mysql_fetch_array($result)) { $time_expire = strtotime($r['time_expire']); if (!isset($pol['user_ID']) or !$r['ha_votado'] and $r['estado'] == 'ok' and nucleo_acceso($r['acceso_votar'], $r['acceso_cfg_votar'])) { $votar = boton('Votar', isset($pol['user_ID']) ? '/votacion/' . $r['ID'] : REGISTRAR . '?p=' . PAIS, false, 'small blue') . ' '; } else { $votar = ''; } $boton = ''; if ($r['user_ID'] == $pol['user_ID']) { if ($r['estado'] == 'ok') { if ($r['tipo'] != 'cargo') { $boton .= boton('Finalizar', '/accion.php?a=votacion&b=concluir&ID=' . $r['ID'], '¿Seguro que quieres FINALIZAR esta votacion?', 'small orange'); } $boton .= boton('X', '/accion.php?a=votacion&b=eliminar&ID=' . $r['ID'], '¿Seguro que quieres ELIMINAR esta votacion?', 'small red'); } } if ($r['acceso_ver'] == 'anonimos' or nucleo_acceso($r['acceso_ver'], $r['acceso_cfg_ver'])) { $txt .= '<tr> <td width="100"' . ($r['tipo'] == 'referendum' ? ' style="font-weight:bold;"' : '') . '>' . ucfirst($r['tipo']) . '</td> <td align="right"><b>' . num($r['num']) . '</b></td> <td>' . $votar . '<a href="/votacion/' . $r['ID'] . '" style="' . ($r['tipo'] == 'referendum' ? 'font-weight:bold;' : '') . ($r['acceso_ver'] != 'anonimos' ? 'color:red;" title="Votación privada' : '') . '">' . $r['pregunta'] . '</a></td> <td nowrap="nowrap" class="gris" align="right">' . timer($time_expire, true) . '</td> <td nowrap="nowrap">' . $boton . '</td> <td></td> </tr>'; } } $txt .= '</table>'; $txt_header .= '<script type="text/javascript">
<th></th> </tr>'; $result = mysql_query("SELECT *,\r\n(SELECT COUNT(DISTINCT nick) FROM chats_msg WHERE chat_ID = chats.chat_ID AND user_ID = 0 AND tipo != 'e' AND time > '" . date('Y-m-d H:i:s', time() - 1800) . "') AS online\r\nFROM chats WHERE pais = '" . PAIS . "' ORDER BY estado ASC, online DESC, fecha_creacion ASC", $link); while ($r = mysql_fetch_array($result)) { $txt .= '<tr> <td valign="top" align="right">' . ($r['estado'] == 'activo' ? '' : '<b style="color:#888;">#</b>') . '</td> <td valign="top" align="right"><b>' . $r['online'] . '</b></td> <td valign="top" nowrap="nowrap" style="background:' . $vp['bg'][$r['pais']] . ';" title="' . $r['pais'] . '">' . ($r['estado'] == 'activo' ? '<a href="http://' . strtolower($r['pais']) . '.' . DOMAIN . '/chats/' . $r['url'] . '"><b>' . $r['titulo'] . '</b></a>' : '<b>' . $r['titulo'] . '</b>') . '</td> <td valign="top" style="background:#5CB3FF;">' . ($r['acceso_cfg_leer'] ? '<acronym title="[' . $r['acceso_cfg_leer'] . ']">' : '') . ucfirst($r['acceso_leer']) . ($r['acceso_cfg_leer'] ? '</acronym>' : '') . '</td> <td valign="top" style="background:#F97E7B;">' . ($r['acceso_cfg_escribir'] ? '<acronym title="[' . $r['acceso_cfg_escribir'] . ']">' : '') . ucfirst($r['acceso_escribir']) . ($r['acceso_cfg_escribir'] ? '</acronym>' : '') . '</td> <td valign="top" align="right">' . num($r['stats_visitas']) . '</td> <td valign="top">' . ($r['user_ID'] == 0 ? '<em>Sistema</em>' : $r['admin']) . '</td> <td valign="top" align="right" nowrap="nowrap">' . timer($r['fecha_creacion']) . '</td> <td valign="top" align="right"></td> <td>'; $txt .= (($r['estado'] != 'activo' and $pol['pais'] == $r['pais'] and $pol['nivel'] >= 95) ? boton('Activar', 'http://' . strtolower($r['pais']) . '.' . DOMAIN . '/accion.php?a=chat&b=activar&chat_ID=' . $r['chat_ID']) : '') . (($r['estado'] == 'bloqueado' and $pol['user_ID'] == $r['user_ID']) ? boton('Borrar', 'http://' . strtolower($r['pais']) . '.' . DOMAIN . '/accion.php?a=chat&b=eliminar&chat_ID=' . $r['chat_ID']) : '') . '</td> </tr>'; } $txt .= '</table>'; } // Limpiar logs de 24h mysql_query("DELETE FROM chats_msg WHERE time < '" . date('Y-m-d H:i:s', time() - 60 * 60 * 24) . "'", $link); $txt_menu = 'comu'; if (!$externo) { include 'theme.php'; }
</div> </div><div id="chatform"> <form action="" method="POST" onSubmit="return enviarmsg();"> <table border="0" width="100%"> <tr> <td>' . (isset($pol['user_ID']) ? '<input type="text" id="vpc_msg" name="msg" onKeyUp="msgkeyup(event,this);" onKeyDown="msgkeydown(event,this);" tabindex="1" autocomplete="off" size="65" maxlength="250" style="width:98%;" autofocus="autofocus" />' : boton('¡Crea tu ciudadano para participar!', REGISTRAR . '?p=' . PAIS, false, 'large blue')) . '</td> <td nowrap="nowrap" title="Marcar para ocultar eventos del chat"> <input id="cfilter" name="cfilter" value="1" type="checkbox" OnClick="chat_filtro_change(chat_filtro);" /> <label for="cfilter" class="inline">Ocultar eventos</label></td> <td width="16"><img id="vpc_actividad" onclick="actualizar_ahora();" src="' . IMG . 'ico/punto_gris.png" width="16" height="16" title="Actualizar chat" /></td> <td>' . boton('Enviar', 'submit', false, '', '', ' id="botonenviar"') . '</td> </tr> </table> </form> </div>'; // css & js $txt_header .= ' <script type="text/javascript"> msg_ID = -1; elnick = "' . $_SESSION['pol']['nick'] . '"; minick = elnick; chat_ID = "' . $chat_ID . '";
$boton = '<form action="/accion.php?a=empresa&b=ceder&ID=' . $r['ID'] . '" method="post"> <input type="submit" value="Ceder a:" /> <input type="text" name="nick" size="8" maxlength="20" value="" /></form> ' . boton('X', '/accion.php?a=empresa&b=eliminar&ID=' . $r['ID'], '¿Estas seguro de querer ELIMINAR definitivamente esta empresa?'); } $txt .= '<span style="float:right;">' . $boton . $editar . '</span>'; } } else { // #EMPRESAS $txt_nav = array('/empresas' => 'Empresas'); $txt .= '<h1 class="quitar">Empresas:</h1> <p>' . boton('Crear Empresa', '/empresas/crear-empresa/', false, '', $pol['config']['pols_empresa']) . '</p> <table border="0" cellspacing="0" cellpadding="2" class="pol_table">'; $result = mysql_query("SELECT ID, url, nombre, num\r\nFROM " . SQL . "cat\r\nWHERE tipo = 'empresas'\r\nORDER BY orden ASC", $link); while ($r = mysql_fetch_array($result)) { $pv_num = 0; $result2 = mysql_query("SELECT pv FROM " . SQL . "empresas WHERE cat_ID = '" . $r['ID'] . "'", $link); while ($r2 = mysql_fetch_array($result2)) { $pv_num += $r2['pv']; } $txt .= '<tr class="amarillo"><td><a href="/empresas/' . $r['url'] . '/" style="font-size:19px;"><b>' . $r['nombre'] . '</b></a></td><td align="right"><b>' . $r['num'] . '</b> empresas</td><td align="right"><b>' . $pv_num . '</b> visitas</td></tr>'; $txt .= '<tr><td colspan="3" height="6"></td></tr>'; } $txt .= '</table><p>' . boton('Crear Empresa', '/empresas/crear-empresa/', false, '', $pol['config']['pols_empresa']) . '</p>'; } //THEME if (!$txt_title) { $txt_title = 'Empresas'; } $txt_menu = 'econ'; include 'theme.php';
' . (ECONOMIA ? '<li>Presidente de ' . $r['siglas'] . ': <b>' . crear_link($r['nick_presidente']) . '</b><br /><br /></li>' : '') . ' <li>Afiliados: <b>' . $num_afiliados . '</b>' . $afiliados . '<br /><br /></li> <li>Lista: <b>' . $num_listas . ' (Candidatos)</b> <ol> ' . $li_listas . '</ol></li> </ul>'; } $siglas_lower = strtolower($r['siglas']); $txt .= '<hr style="width:100%;" />'; if ($r['ID_presidente'] == $pol['user_ID'] and !$_GET['b']) { //PARA PRESIDENTE $txt .= '<span><form><input type="button" value="Editar" onClick="window.location.href=\'/partidos/' . $siglas_lower . '/editar/\';" /> <a href="/partidos/"><b>Ver ' . strtolower(NOM_PARTIDOS) . '</b></a></form></span>'; } elseif ($_GET['b']) { $txt .= '<span style="float:right;"><form><input type="button" value="Eliminar" onClick="if (!confirm(\'¿Estas convencido de que quieres ELIMINAR para siempre?\')) { return false; } else { window.location.href=\'/accion.php?a=eliminar-partido&siglas=' . $r['siglas'] . '\'; }"></form></span><span><a href="/partidos/' . $siglas_lower . '/"><b>Volver</b></a></span>'; } else { $txt .= '<span>' . boton('Afiliarse', '/form/afiliarse/' . $siglas_lower . '/') . ' <a href="/partidos/"><b>Ver todos</b></a></span>'; } } if (!$txt) { /*404*/ } $txt_header .= '<style type="text/css">#partido li { margin-top:5px; }</style>'; } else { $txt .= ' <table border="0"> <tr> <th>Siglas</th> <th>Nombre</th> <th><acronym title="Afiliados/Candidatos">Afiliados</acronym>↓</th> <th>Presidente</th> <th><acronym title="Candidato a Presidente de ' . PAIS . '">Candidato</acronym></th>
function foro_enviar($subforo, $hilo = null, $edit = null, $citar = null) { global $pol, $link, $return_url, $vp; $referer = explode('/', $_SERVER['HTTP_REFERER'], 4); $referer = '/' . $referer[3]; if ($pol['estado'] == 'ciudadano' or $pol['estado'] == 'extranjero') { if ($edit) { //editar $return_url = 'foro/'; if ($hilo) { //msg $result = mysql_query("SELECT text, cargo FROM " . SQL . "foros_msg WHERE ID = '" . $hilo . "' AND estado = 'ok' AND user_ID = '" . $pol['user_ID'] . "' LIMIT 1", $link); while ($r = mysql_fetch_array($result)) { $edit_text = $r['text']; $edit_cargo = $r['cargo']; } } else { //hilo $result = mysql_query("SELECT sub_ID, text, cargo, title, user_ID, ID FROM " . SQL . "foros_hilos WHERE ID = '" . $subforo . "' AND estado = 'ok' AND (user_ID = '" . $pol['user_ID'] . "' OR 'true' = '" . (nucleo_acceso($vp['acceso']['foro_borrar']) ? 'true' : 'false') . "') LIMIT 1", $link); while ($r = mysql_fetch_array($result)) { $sub_ID = $r['sub_ID']; $edit_ID = $r['ID']; $edit_user_ID = $r['user_ID']; $edit_title = $r['title']; $edit_text = $r['text']; $edit_cargo = $r['cargo']; } } $edit_text = strip_tags($edit_text); } if ($citar != null) { //citar if ($citar > 0) { //msg $result = mysql_query("SELECT text, user_ID FROM " . SQL . "foros_msg WHERE ID = '" . $citar . "' AND estado = 'ok' LIMIT 1", $link); while ($r = mysql_fetch_array($result)) { $edit_text = $r['text']; $user_ID = $r['user_ID']; } } else { $result = mysql_query("SELECT text, user_ID FROM " . SQL . "foros_hilos WHERE ID = '" . abs($citar) . "' AND estado = 'ok' LIMIT 1", $link); while ($r = mysql_fetch_array($result)) { $edit_text = $r['text']; $user_ID = $r['user_ID']; } } $result = mysql_query("SELECT nick FROM users WHERE ID = '" . $user_ID . "' LIMIT 1", $link); while ($r = mysql_fetch_array($result)) { $edit_text = '[quote=' . $r['nick'] . '] ' . $edit_text . ' [/quote]'; } $edit_text = strip_tags($edit_text); } if ($pol['nivel'] > 1) { $result = mysql_query("SELECT cargo_ID, \n(SELECT nombre FROM cargos WHERE pais = '" . PAIS . "' AND cargos_users.cargo_ID = cargo_ID LIMIT 1) AS nombre,\n(SELECT nivel FROM cargos WHERE pais = '" . PAIS . "' AND cargos_users.cargo_ID = cargo_ID LIMIT 1) AS nivel\nFROM cargos_users \nWHERE cargo = 'true' AND pais = '" . PAIS . "' AND user_ID = '" . $pol['user_ID'] . "'\nORDER BY nivel DESC", $link); while ($r = mysql_fetch_array($result)) { $select_cargos .= '<option value="' . $r['cargo_ID'] . '"' . ($edit_cargo == $r['cargo_ID'] ? ' selected="selected"' : '') . '>' . $r['nombre'] . '</option>' . "\n"; } } if ($pol['estado'] == 'extranjero') { $select_cargos = '<option value="99">Extranjero</option>'; } else { $select_cargos = '<option value="0">Ciudadano</option>' . $select_cargos; } if (!$hilo) { if ($edit) { $get = 'editar'; } else { $get = 'hilo'; } // <input type="hidden" name="return_url" value="' . $return_url . '" /> $html .= '<div id="enviar" class="redondeado"> <hr /> <h2>Nuevo hilo</h2> <form action="/accion.php?a=foro&b=' . $get . '" method="post"> <input type="hidden" name="subforo" value="' . $subforo . '" /> <input type="hidden" name="return_url" value="' . $return_url . '" />'; if ($edit) { $html .= '<p>Foro: <select name="sub_ID">'; $result = mysql_query("SELECT ID, url, title, acceso_escribir, acceso_cfg_escribir FROM " . SQL . "foros WHERE estado = 'ok' ORDER BY time ASC", $link); while ($r = mysql_fetch_array($result)) { $html .= '<option value="' . $r['ID'] . '"' . ($r['ID'] == $sub_ID ? ' selected="selected"' : '') . (nucleo_acceso($r['acceso_escribir'], $r['acceso_cfg_escribir']) ? '' : ' disabled="disabled"') . '>' . $r['title'] . '</option>'; } $html .= '</select></p>'; } $html .= ' <p>Título:<br /> <input name="title" size="60" maxlength="80" type="text" value="' . str_replace('"', '"', $edit_title) . '" /></p> <p' . ($edit && $edit_user_ID != $pol['user_ID'] ? ' style="display:none;"' : '') . '>Mensaje:<br /> <textarea name="text" style="width:600px;height:260px;">' . $edit_text . '</textarea><br /> <span style="color:grey;font-size:12px;">Etiquetas: [b]...[/b] [em]...[/em] [quote]...[/quote] [img]url[/img] [youtube]url-youtube[/youtube], auto-enlaces.</span></p> <p>' . boton('Enviar', 'submit', false, 'large blue') . ' En calidad de: <select name="encalidad">' . $select_cargos . ' </select></p> </form> ' . ($edit ? '<hr /><p style="text-align:right;">' . boton('Eliminar hilo', '/accion.php?a=foro&b=eliminarhilo&ID=' . $edit_ID, '¿Estás seguro de querer ELIMINAR este HILO DE FORMA IRREVOCABLE?') . '</p>' : '') . ' </div>'; } else { if ($edit) { $get = 'editar'; } else { $get = 'reply'; } $html .= '<div id="enviar" class="redondeado"> <form action="/accion.php?a=foro&b=' . $get . '" method="post"> <input type="hidden" name="subforo" value="' . $subforo . '" /> <input type="hidden" name="hilo" value="' . $hilo . '" /> <input type="hidden" name="return_url" value="' . $return_url . '" /> <hr /> <p>Mensaje en hilo:<br /> <textarea name="text" style="width:570px;height:250px;">' . $edit_text . '</textarea><br /> <span style="color:grey;font-size:12px;">Etiquetas: [b]...[/b] [em]...[/em] [quote]...[/quote] [img]url[/img] [youtube]url-youtube[/youtube], auto-enlaces.</span></p> <p>' . boton('Enviar', 'submit', false, 'blue large') . ' En calidad de: <select name="encalidad">' . $select_cargos . ' </select></p> </form> </div>'; } return $html; } else { return '<p class="azul"><b>Debes ser Ciudadano para participar, <a href="' . REGISTRAR . '?p=' . PAIS . '">regístrate aquí!</a></b></p>'; } }