Пример #1
0
<?php 
    }
    ?>

<?php 
} else {
    //$_SESSION['last_istant_message']=$max_id['max'];
    ?>

<div class="messaggio_forum_nuovo">
<a href="../main.php?page=messages_center&offset=0" target="_top">
<?php 
    if (empty($PARAMETERS['names']['private_message']['image_file_new']) === FALSE) {
        echo '<img src="../themes/' . $PARAMETERS['themes']['current_theme'] . '/imgs/menu/' . $PARAMETERS['names']['private_message']['image_file_new'] . '" alt="' . gdrcd_filter('out', $PARAMETERS['names']['private_message']['plur']) . '" title="' . gdrcd_filter('out', $PARAMETERS['names']['private_message']['plur']) . '" />';
    } else {
        echo gdrcd_filter('out', $PARAMETERS['names']['private_message']['plur']);
    }
    ?>
</a>
</div>

<?php 
    if ($PARAMETERS['mode']['alert_pm_via_pagetitle'] == 'ON') {
        ?>
<script type="text/javascript">
parent.blink_title("(<?php 
        echo $MESSAGE['interface']['forums']['topic']['new_posts']['sing'];
        ?>
) <?php 
        echo $PARAMETERS['info']['site_name'];
        ?>
Пример #2
0
	  
     <!-- link crea nuovo -->
     <div class="link_back">
        <a href="main.php?page=gestione_gilde&op=new">
		   <?php 
        echo gdrcd_filter('out', $MESSAGE['interface']['administration']['guilds']['link']['new']);
        ?>
		</a><br />
        <a href="main.php?page=gestione_gilde&op=edit&id_record=-1">
		   <?php 
        echo gdrcd_filter('out', $MESSAGE['interface']['administration']['guilds']['link']['new_role']);
        ?>
		</a><br />
        <a href="main.php?page=gestione_tipi&types=guilds">
		   <?php 
        echo gdrcd_filter('out', $MESSAGE['interface']['administration']['guilds']['link']['menage_types']);
        ?>
		</a>
     </div>
<?php 
    }
    //else
    ?>

</div><!-- page_body -->

<?php 
}
//else (controllo permessi utente)
?>
Пример #3
0
    </select>
	<br/><span class="casella_info"><?php 
            echo gdrcd_filter('out', $MESSAGE['chat']['commands']['item']);
            ?>
</span>
	</div>
	
	<?php 
        } else {
            echo '<input type="hidden" name="id_item" id="id_item" value="no_item">';
        }
        ?>

	<div class="casella_chat">
	  <input type="submit" value="<?php 
        echo gdrcd_filter('out', $MESSAGE['interface']['forms']['submit']);
        ?>
" />
      <input type="hidden" name="op" value="take_action">	
	</div>

</form>
</div>
<?php 
    }
    ?>
</div></div>
<?php 
}
//else
?>
Пример #4
0
            //for
        }
        //if
        ?>
     </div>

     <!-- link crea nuovo -->
     <div class="link_back">
        <a href="main.php?page=forum&op=composer&what=-1&where=<?php 
        echo gdrcd_filter('num', $_REQUEST['what']);
        ?>
">
		   <?php 
        echo gdrcd_filter('out', $MESSAGE['interface']['forums']['link']['new_topic']);
        ?>
		</a><br />
        <a href="main.php?page=forum">
		   <?php 
        echo gdrcd_filter('out', $MESSAGE['interface']['forums']['link']['back']);
        ?>
		</a>
     </div>
<?php 
    }
    //else
}
?>
</div><!-- Box principale -->

</div><!-- Pagina -->
	   <?php 
        }
        //while
        gdrcd_query($result, 'free');
        ?>
	</select>
  </div>
		
  <div class="form_submit">
    <input type="hidden"
	       name="op"
	       value="force" />
  	<input type="submit"
	       name="nulla"
	       value="<?php 
        echo gdrcd_filter('out', $MESSAGE['interface']['user']['pass']['submit']['user']);
        ?>
" />
  </div>
  
  </form>
</div>	
</div>
<?php 
    }
    //if
    ?>


<?php 
}
Пример #6
0
<div class="pegi_box">
   <?php 
include 'pages/pegi.inc.php';
?>
</div>

<!-- Pedice -->
</td>
</tr>

<tr>
<td class="home_bottom" colspan ="3">
<div class="homepage_info_box">
    <?php 
include 'includes/credits.inc.php';
?>
    <?php 
echo gdrcd_filter('out', $PARAMETERS['info']['site_name']) . ' - ' . gdrcd_filter('out', $MESSAGE['homepage']['info']['webm']) . ': ' . gdrcd_filter('out', $PARAMETERS['info']['webmaster_name']) . ' - ' . gdrcd_filter('out', $MESSAGE['homepage']['info']['email']) . ': <a href="mailto:' . gdrcd_filter('out', $PARAMETERS['info']['webmaster_email']) . '">' . gdrcd_filter('out', $PARAMETERS['info']['webmaster_email']) . '</a>. <br />' . $CREDITS . ' ' . $LICENCE;
?>
</div>

</td>
</tr>

</table>




</div>
Пример #7
0
"
		     name="pg" />
   </div>
</form>
</div>
<?php 
        }
        ?>

</div>
<!-- Link a piè di pagina -->
<div class="link_back">
   <a href="main.php?page=scheda&pg=<?php 
        echo gdrcd_filter('url', $_REQUEST['pg']);
        ?>
"><?php 
        echo gdrcd_filter('out', $MESSAGE['interface']['sheet']['link']['back']);
        ?>
</a>
</div>


<?php 
        /********* CHIUSURA SCHEDA **********/
    }
    //else
}
//else
?>
</div>
</div><!-- Pagina -->
Пример #8
0
">
                <?php 
                echo $climate;
                ?>
			</option>
			<?php 
            }
            ?>
      </select>
      <input type="hidden"
	         name="meteo"
	         value="meteo_change"
	         class="game_form_input"/>
	  <input type="submit"
	         value="<?php 
            echo gdrcd_filter('out', $MESSAGE['interface']['maps']['set_meteo']);
            ?>
"
	         name="op" />
	  </div>
</form>
<?php 
        }
        ?>
</div>
<?php 
    }
    //else
    ?>

Пример #9
0
    echo gdrcd_filter('out', $PARAMETERS['names']['stats']['car' . $row['car']]);
    ?>
</div></td>
		      <td class="casella_elemento"><div class="elementi_elenco"><?php 
    echo gdrcd_bbcoder(gdrcd_filter('out', $row['descrizione']));
    ?>
</div></td>
			  </tr>
        <?php 
}
//while
gdrcd_query($result, 'free');
?>
        <tr><td colspan="3">
		<div class="page_title"><h2><?php 
echo gdrcd_filter('out', $MESSAGE['interface']['skills']['sys_tit']);
?>
</h2></div>
		<div style='text-align: justify'><?php 
echo gdrcd_filter('out', $MESSAGE['interface']['skills']['sys']);
?>
</div>
		</td></tr>
        </table>
		</div><!--elenco_record_gioco-->
        </div><!--panels_box-->

</div>
</div><!-- Box principale -->

Пример #10
0
*/
if (!empty($_GET['content'])) {
    $content = gdrcd_filter('include', $_GET['content']);
} else {
    $content = 'home';
}
/** * Algoritmi di base della homepage
*/
/** * Conteggio utenti online
 */
$users = gdrcd_query("SELECT COUNT(nome) AS online FROM personaggio WHERE ora_entrata > ora_uscita AND DATE_ADD(ultimo_refresh, INTERVAL 4 MINUTE) > NOW()");
/** * Procedura di recupero Password
 */
$RP_response = '';
if (!empty($_POST['email'])) {
    $newpass = gdrcd_query("SELECT email FROM personaggio WHERE email = '" . gdrcd_filter('in', $_POST['email']) . "' LIMIT 1", 'result');
    if (gdrcd_query($newpass, 'num_rows') > 0) {
        gdrcd_query($newpass, 'free');
        $pass = gdrcd_genera_pass();
        gdrcd_query("UPDATE personaggio SET pass = '******' WHERE email = '" . gdrcd_filter('in', $_POST['email']) . "' LIMIT 1");
        $subject = gdrcd_filter('out', $MESSAGE['register']['forms']['mail']['sub'] . ' ' . $PARAMETERS['info']['site_name']);
        $text = gdrcd_filter('out', $MESSAGE['register']['forms']['mail']['text'] . ': ' . $pass);
        mail($_POST['email'], $subject, $text, 'From: ' . $PARAMETERS['info']['webmaster_email']);
        $RP_response = gdrcd_filter('out', $MESSAGE['warning']['modified']);
    } else {
        $RP_response = gdrcd_filter('out', $MESSAGE['warning']['cant_do']);
    }
}
/** * Fine Recupero Password */
include 'themes/' . $PARAMETERS['themes']['current_theme'] . '/home/' . $page . '.php';
require 'footer.inc.php';
Пример #11
0
?>
:</td>
								<td><?php 
echo $weekly_posts['num'];
?>
</td>
							</tr>
							<tr>
								<td class="label"><?php 
echo gdrcd_filter('out', $MESSAGE['interface']['user']['stats']['last_chat']);
?>
:</td>
								<td><?php 
echo $weekly_actions['num'];
?>
</td>
							</tr>
							<tr class="pair">
								<td class="label"><?php 
echo gdrcd_filter('out', $MESSAGE['interface']['user']['stats']['last_characters']);
?>
:</td>
								<td><?php 
echo $weekly_signup['num'];
?>
</td>
							</tr>
						</tbody>
					</table>
					
					
Пример #12
0
/**
 * Controlla se l'utente è esiliato o meno
 * @param string $pg: il nome del pg da ricercare
 * @return true se il pg è esiliato, false altrimenti
 */
function gdrcd_controllo_esilio($pg)
{
    $exiled = gdrcd_query("SELECT autore_esilio, esilio, motivo_esilio FROM personaggio WHERE nome='" . gdrcd_filter('in', $pg) . "' LIMIT 1");
    //TODO picco di complessità inutile per l'uso di LIKE. Mancanza di escape per db!
    if (strtotime($exiled['esilio']) > time()) {
        echo '<div class="error">', gdrcd_filter_out($pg), ' ', gdrcd_filter_out($GLOBALS['MESSAGE']['warning']['character_exiled']), ' ', gdrcd_format_date($exiled['esilio']), ' (', $exiled['motivo_esilio'], ' - ', $exiled['autore_esilio'], ')</div>';
        return true;
    }
    return false;
}
if ($_POST['op'] == 'fire') {
    $subject = explode('-', gdrcd_filter('in', $_POST['ruolo']));
    gdrcd_query("DELETE FROM clgpersonaggioruolo WHERE personaggio='" . $subject[0] . "' AND id_ruolo = " . gdrcd_filter('num', $subject[1]) . " LIMIT 1");
    /*Confermo l'operazione*/
    echo '<div class="warning">' . gdrcd_filter('out', $MESSAGE['interface']['adm_guilds']['ok_fire']) . '</div>';
    /*Registro l'operazione*/
    gdrcd_query("INSERT INTO log (nome_interessato, autore, data_evento, codice_evento ,descrizione_evento) VALUES ('" . $subject[0] . "', '" . $_SESSION['login'] . "', NOW(), " . DIMISSIONE . ", '" . gdrcd_filter('out', $subject[2]) . "')");
    /*Avviso l'utente*/
    if ($_SESSION['login'] != $subject[0]) {
        gdrcd_query("INSERT INTO messaggi (mittente, destinatario, spedito, testo) VALUES ('" . $_SESSION['login'] . "', '" . $subject[0] . "', NOW(), '" . gdrcd_filter('in', $MESSAGE['interface']['adm-guilds']['message_body']['fire'] . ' ' . $subject[2]) . "')");
    }
    ?>

	 <div class="panels_link">
       <a href="main.php?page=servizi_adm_gilde"><?php 
    echo gdrcd_filter('out', $MESSAGE['interface']['adm_guilds']['back']);
    ?>
</a>
     </div>
	
<?php 
}
?>



</div>


</div><!-- Box principale -->
Пример #14
0
<?php 
if (file_exists('themes/' . $PARAMETERS['themes']['current_theme'] . '/home/' . $content . '.php')) {
    include 'themes/' . $PARAMETERS['themes']['current_theme'] . '/home/' . $content . '.php';
}
?>
			
			</div>
			
			<br class="blank" />
	
		</div>
	
	
		<div id="footer">
	
			<div>
				<p><?php 
echo gdrcd_filter('out', $PARAMETERS['info']['site_name']), ' - ', gdrcd_filter('out', $MESSAGE['homepage']['info']['webm']), ': ', gdrcd_filter('out', $PARAMETERS['info']['webmaster_name']), ' - ', gdrcd_filter('out', $MESSAGE['homepage']['info']['dbadmin']), ': ', gdrcd_filter('out', $PARAMETERS['info']['dbadmin_name']), ' - ', gdrcd_filter('out', $MESSAGE['homepage']['info']['email']), ': <a href="mailto:', gdrcd_filter('out', $PARAMETERS['info']['webmaster_email']), '">', gdrcd_filter('out', $PARAMETERS['info']['webmaster_email']), '</a>.';
?>
</p>
				<p><?php 
echo $CREDITS, ' ', $LICENCE;
?>
</p>
			</div>
			
		</div>

	</div>

</div>
Пример #15
0
        if (empty($link_menu['image_file'])) {
            if (!empty($link_menu['text'])) {
                $content .= '>' . gdrcd_filter('out', $link_menu['text']);
            }
        } elseif (!empty($link_menu['sprite'])) {
            $link_menu['class'] = empty($link_menu['class']) ? 'sprite' : $link_menu['class'] . ' sprite';
            $content = 'style="background-image: url(themes/' . $PARAMETERS['themes']['current_theme'] . '/imgs/' . $mkey . '/' . $link_menu['image_file'] . ')" alt="' . gdrcd_filter('out', $link_menu['text']) . '" title="' . gdrcd_filter('out', $link_menu['text']) . '">';
        } else {
            if (empty($link_menu['image_file_onclick'])) {
                $img_up = $link_menu['image_file'];
                $img_down = $link_menu['image_file'];
            } else {
                $img_up = $link_menu['image_file'];
                $img_down = $link_menu['image_file_onclick'];
            }
            $content = ' onMouseOver="n' . $mkey . $raw_counter . '_over_button()" onMouseOut="n' . $mkey . $raw_counter . '_up_button()"><img src= "themes/' . $PARAMETERS['themes']['current_theme'] . '/imgs/' . $mkey . '/' . $link_menu['image_file'] . '" alt="' . gdrcd_filter('out', $link_menu['text']) . '" title="' . gdrcd_filter('out', $link_menu['text']) . '" name="n' . $raw_counter . '_buttonOne" />';
            echo '<SCRIPT LANGUAGE="JavaScript"> if (document.images) { var n' . $mkey . $raw_counter . '_button1_up = new Image(); n' . $mkey . $raw_counter . '_button1_up.src = "themes/' . $PARAMETERS['themes']['current_theme'] . '/imgs/' . $mkey . '/' . $img_up . '"; var n' . $mkey . $raw_counter . '_button1_over = new Image(); n' . $mkey . $raw_counter . '_button1_over.src = "themes/' . $PARAMETERS['themes']['current_theme'] . '/imgs/' . $mkey . '/' . $img_down . '";} function n' . $mkey . $raw_counter . '_over_button() { if (document.images) { document["n' . $mkey . $raw_counter . '_buttonOne"].src = n' . $mkey . $raw_counter . '_button1_over.src;}} function n' . $mkey . $raw_counter . '_up_button() { if (document.images) { document["n' . $mkey . $raw_counter . '_buttonOne"].src = n' . $mkey . $raw_counter . '_button1_up.src}}</SCRIPT>';
        }
        echo '<div class="link_menu"><a href="' . $link_menu['url'] . '" id="link_' . $mkey . '_' . $key . '"';
        foreach ($link_menu as $k => $v) {
            if (!in_array($k, array('text', 'image_file', 'url', 'image_file_onclick', 'sprite'))) {
                echo $k . '="' . $v . '"';
            }
        }
        echo $content . '</a></div>';
    }
    $raw_counter++;
}
/*HELP: Il menu viene generato automaticamente attingendo dalle informazioni contenute in config.inc.php. Tutte
  le istruzioni su come usare e configurare i menù sono riportate nel file config.inc.php */
?>
Пример #16
0
        }
    }
}
/*Eseguo l'accesso*/
if ($_SESSION['login'] != '') {
    if (gdrcd_controllo_esilio($_SESSION['login']) === TRUE) {
        session_destroy();
        echo '<a href="index.php">' . $PARAMETERS['info']['homepage_name'] . '</a>';
        exit;
    } else {
        /*Creo un cookie*/
        setcookie('lastlogin', $_SESSION['login'], 0, '', '', 0);
        if ($PARAMETERS['mode']['log_back_location'] == 'OFF') {
            $_SESSION['luogo'] = '-1';
            /*Inserisco nei presenti*/
            gdrcd_query("UPDATE personaggio SET ora_entrata = NOW(), ultimo_luogo='-1', ultimo_refresh = NOW(), last_ip = '" . $_SERVER['REMOTE_ADDR'] . "',  is_invisible = 0 WHERE nome =  '" . gdrcd_filter('in', $_SESSION['login']) . "'");
            /*Redirigo alla pagina del gioco*/
            header('Location: main.php?page=mappaclick&map_id=' . $_SESSION['mappa'], true);
        } else {
            /*Inserisco nei presenti*/
            gdrcd_query("UPDATE personaggio SET ora_entrata = NOW(), ultimo_refresh = NOW(), last_ip = '" . $_SERVER['REMOTE_ADDR'] . "',  is_invisible = 0 WHERE nome =  '" . $_SESSION['login'] . "'");
            /*Redirigo alla pagina del gioco*/
            header('Location: main.php?dir=' . $_SESSION['luogo'], true);
        }
    }
    //else
} else {
    /*Dichiaro il fallimento dell'operazione di login*/
    ?>
<html>
<head>
Пример #17
0
		        value="incassa" />
		 <input name="conferma"
		        type="submit"
		        class="form_gestione_input" 
		        value="<?php 
            echo gdrcd_filter('out', $MESSAGE['interface']['bank']['execute']);
            ?>
" />
	  </div>
	</form>
	</div>
	   
	   
	   <?php 
        } else {
            echo gdrcd_filter('out', $MESSAGE['interface']['bank']['credit']) . ": " . $stipendio . " " . $PARAMETERS['names']['currency']['plur'] . " ";
        }
    }
    ?>
	
   </div>
<?php 
}
?>

	

</div><!-- banca_operazioni-->


</div><!-- banca_box -->
Пример #18
0
    gdrcd_query("CREATE TABLE messaggi (\n  id bigint(20) NOT NULL auto_increment,\n  mittente varchar(40) NOT NULL,\n  destinatario varchar(20) NOT NULL default 'Nessuno',\n  spedito datetime NOT NULL default '0000-00-00 00:00:00',\n  letto tinyint(1) default '0',\n  mittente_del tinyint(1) default '0',\n  destinatario_del tinyint(1) default '0',\n  testo text,\n  PRIMARY KEY  (id),\n  KEY destinatario (destinatario),\n  KEY letto (letto)\n) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;");
    gdrcd_query("CREATE TABLE messaggioaraldo (\n  id_messaggio bigint(20) NOT NULL auto_increment,\n  id_messaggio_padre bigint(20) NOT NULL default '0',\n  id_araldo int(4) default NULL,\n  titolo varchar(255) default NULL,\n  messaggio text,\n  autore varchar(20) default NULL,\n  data_messaggio datetime default NULL,\n  importante binary(1) NOT NULL DEFAULT '0',\n  chiuso binary(1) NOT NULL DEFAULT '0',\n  PRIMARY KEY  (id_messaggio),\n  KEY id_araldo (id_araldo),\n  KEY id_messaggio_padre (id_messaggio_padre),\n  KEY data_messaggio (data_messaggio),\n  KEY importante (importante,chiuso)\n) ENGINE=MyISAM  DEFAULT CHARSET=utf8 PACK_KEYS=0 AUTO_INCREMENT=1 ;");
    gdrcd_query("CREATE TABLE oggetto (\n  id_oggetto int(4) NOT NULL auto_increment,\n  tipo int(2) NOT NULL default '0',\n  nome varchar(50) NOT NULL default 'Sconosciuto',\n  creatore varchar(20) NOT NULL default 'System Op',\n  data_inserimento datetime NOT NULL default '0000-00-00 00:00:00',\n  descrizione varchar(255) NOT NULL default 'Nessuna',\n  ubicabile int(2) NOT NULL default '0',\n  costo int(11) NOT NULL default '0',\n  difesa int(4) NOT NULL default '0',\n  attacco int(4) NOT NULL default '0',\n  cariche varchar(10) NOT NULL default '0',\n  bonus_car0 int(4) NOT NULL default '0',\n  bonus_car1 int(4) NOT NULL default '0',\n  bonus_car2 int(4) NOT NULL default '0',\n  bonus_car3 int(4) NOT NULL default '0',\n  bonus_car4 int(4) NOT NULL default '0',\n  bonus_car5 int(4) NOT NULL default '0',\n  urlimg varchar(50) default NULL,\n  PRIMARY KEY  (id_oggetto),\n  KEY Tipo (tipo)\n) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;");
    gdrcd_query("INSERT INTO oggetto VALUES (1, 6, 'Scopa', 'Super', '2009-12-20 14:29:33', 'Una comune scopa di saggina.', 0, 10, 0, 0, '0', 0, 0, 0, 0, 0, 0, 'standard_oggetto.png');");
    gdrcd_query("CREATE TABLE personaggio (\n  nome varchar(20) NOT NULL default '',\n  cognome varchar(50) NOT NULL default '-',\n  pass varchar(100) NOT NULL default '',\n  ultimo_cambiopass datetime DEFAULT NULL,\n  data_iscrizione datetime default NULL,\n  email varchar(50) default NULL,\n  permessi tinyint(1) default '0',\n  ultima_mappa int(4) NOT NULL default '1',\n  ultimo_luogo int(4) NOT NULL default '-1',\n  esilio date NOT NULL default '2009-07-01',\n  data_esilio date NOT NULL default '2009-07-01',\n  motivo_esilio varchar(255) default NULL,\n  autore_esilio varchar(20) default NULL,\n  sesso char(1) default 'm',\n  id_razza int(4) default '1000',\n  descrizione text,\n  affetti text,\n  stato varchar(255) default 'nessuna',\n  online_status varchar(100) DEFAULT NULL,\n  disponibile tinyint(1) NOT NULL default '1',\n  url_img varchar(255) default 'imgs/avatars/empty.png',\n  url_img_chat varchar(255) NOT NULL DEFAULT ' ',\n  url_media varchar(255) default NULL,\n  blocca_media binary(1) NOT NULL DEFAULT '0',\n  esperienza decimal(14,5) default '0',\n  car0 int(4) NOT NULL default '5',\n  car1 int(4) NOT NULL default '5',\n  car2 int(4) NOT NULL default '5',\n  car3 int(4) NOT NULL default '5',\n  car4 int(4) NOT NULL default '5',\n  car5 int(4) NOT NULL default '5',\n  salute int(4) NOT NULL default '100',\n  salute_max int(4) NOT NULL default '100',\n  data_ultima_gilda datetime NOT NULL default '2009-07-01 00:00:00',\n  soldi int(11) default '50',\n  banca int(11) default '0',\n  ultimo_stipendio date NOT NULL default '2009-07-01',\n  last_ip varchar(16) default NULL,\n  is_invisible tinyint(1) NOT NULL default '0',\n  ultimo_refresh datetime NOT NULL,\n  ora_entrata datetime NOT NULL,\n  ora_uscita datetime NOT NULL,\n  posizione int(4) NOT NULL default '1',\n  ultimo_messaggio bigint(20) NOT NULL default '0',\n  PRIMARY KEY  (nome),\n  KEY IDRazza (id_razza),\n  KEY Esilio (esilio)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8;");
    gdrcd_query("INSERT INTO personaggio VALUES ('Super', 'User', '" . gdrcd_encript('super') . "', NULL, now(), '*****@*****.**', 4, 1, -1, '0000-00-00', '0000-00-00', '', '', 'm', 1000, '', '', 'Nella norma', '', 1, 'imgs/avatars/empty.png', '', '', 0, 1000, 7, 8, 6, 5, 6, 5, 100, 100, '0000-00-00 00:00:00', 300, 50000, '0000-00-00', '127.0.0.1', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, 0);");
    gdrcd_query("INSERT INTO personaggio VALUES ('Test', 'Di Funzionalià', '" . gdrcd_encript('test') . "', NULL, now(), '*****@*****.**', 0, 1, -1, '0000-00-00', '0000-00-00', '', '', 'm', 1000, '', '', 'Nella norma', '', 1, 'imgs/avatars/empty.png', '', '', 0, 1000, 7, 8, 6, 5, 6, 5, 100, 100, '0000-00-00 00:00:00', 50, 50, '0000-00-00', '127.0.0.1', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, 0);");
    gdrcd_query("CREATE TABLE razza (\n  id_razza int(4) NOT NULL auto_increment,\n  nome_razza char(50) NOT NULL default '',\n  sing_m char(50) NOT NULL default '',\n  sing_f char(50) NOT NULL default '',\n  descrizione text NOT NULL,\n  bonus_car0 int(4) NOT NULL default '0',\n  bonus_car1 int(4) NOT NULL default '0',\n  bonus_car2 int(4) NOT NULL default '0',\n  bonus_car3 int(4) NOT NULL default '0',\n  bonus_car4 int(4) NOT NULL default '0',\n  bonus_car5 int(4) NOT NULL default '0',\n  immagine char(50) NOT NULL default 'standard_razza.png',\n  icon varchar(50) NOT NULL default 'standard_razza.png',\n  url_site char(255) default NULL,\n  iscrizione tinyint(1) NOT NULL default '1',\n  visibile tinyint(1) NOT NULL default '1',\n  PRIMARY KEY  (id_razza)\n) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1001 ;");
    gdrcd_query("INSERT INTO razza VALUES (1000, 'Umani', 'Umano', 'Umana', '', 0, 0, 0, 0, 0, 0, 'standard_razza.png', 'standard_razza.png', '', 1, 1);");
    gdrcd_query("CREATE TABLE regolamento (\n  articolo int(2) NOT NULL,\n  titolo varchar(30) NOT NULL,\n  testo text NOT NULL\n) ENGINE=MyISAM DEFAULT CHARSET=utf8;");
    gdrcd_query("CREATE TABLE ruolo (\n  id_ruolo int(4) NOT NULL auto_increment,\n  gilda int(4) NOT NULL default '-1',\n  nome_ruolo char(50) NOT NULL,\n  immagine varchar(256) NOT NULL,\n  stipendio int(4) NOT NULL default '0',\n  capo int(1) NOT NULL default '0',\n  PRIMARY KEY  (id_ruolo)\n) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;");
    gdrcd_query("INSERT INTO ruolo VALUES (1, 1, 'Capitano della guardia', 'standard_gilda.png', 100, 1);");
    gdrcd_query("INSERT INTO ruolo VALUES (2, 1, 'Ufficiale della guardia', 'standard_gilda.png', 70, 0);");
    gdrcd_query("INSERT INTO ruolo VALUES (5, -1, 'Lavoratore', 'standard_gilda.png', 5, 0);");
    gdrcd_query("INSERT INTO ruolo VALUES (3, 1, 'Soldato della guardia', 'standard_gilda.png', 40, 0);");
    gdrcd_query("INSERT INTO ruolo VALUES (4, 1, 'Recluta della guardia', 'standard_gilda.png', 15, 0);");
    echo '<div class="warning">' . gdrcd_filter('out', $MESSAGE['homepage']['installer']['done']) . '</div>';
}
?>
       <!-- Link di ritorno alla homepage -->
	   <div class="link_back">
           <a href="index.php">
		      <?php 
echo gdrcd_filter('out', $PARAMETERS['info']['homepage_name']);
?>
		   </a>
       </div>
</div>
<?php 
require 'footer.inc.php';
/*Footer comune*/
Пример #19
0
    if (empty($meteo) === FALSE) {
        ?>
<div class="page_title">
 <h2><?php 
        echo gdrcd_filter('out', $MESSAGE['interface']['meteo']['title']);
        ?>
</h2>
</div>
<div class="meteo_date">
   <?php 
        echo strftime('%d') . '/' . strftime('%m') . '/' . (strftime('%Y') + $PARAMETERS['date']['offset']);
        ?>
</div>
<div class="meteo">
<?php 
        echo $meteo;
        ?>
</div>
<?php 
    }
    ?>

<?php 
} else {
    echo '<div class="error">' . gdrcd_filter('out', $MESSAGE['error']['location_doesnt_exist']) . '</div>';
}
?>

</div><!-- page_body -->

</div><!-- Pagina -->
Пример #20
0
<?php 
$CREDITS = gdrcd_filter('out', 'Basato su "GDRCD 5.4". CMS Open Source sviluppato da Breaker e distribuito gratuitamente.');
$LICENCE = '<a href="licenza.txt">' . gdrcd_filter('out', 'Licenza d\'uso e riproduzione') . '</a>.';
Пример #21
0
            <input type="submit" value="Cancella Messaggi Selezionati">
          </form>
        </div>';
    } else {
        if ($totaleresults > $PARAMETERS['settings']['messages_limit']) {
            echo '<div class="warning">' . gdrcd_filter('out', $MESSAGE['interface']['messages']['please_erase']) . '</div>';
        }
        echo '<div class="warning">' . gdrcd_filter('out', $MESSAGE['interface']['messages']['no_message']) . '</div>';
    }
    ?>
 
 <div class="pager">
 
 <?php 
    if ($totaleresults > $PARAMETERS['settings']['messages_per_page']) {
        echo gdrcd_filter('out', $MESSAGE['interface']['pager']['pages_name']);
        for ($i = 0; $i <= floor($totaleresults / $PARAMETERS['settings']['messages_per_page']); $i++) {
            if ($i != $_REQUEST['offset']) {
                ?>
           <a href="main.php?page=messages_center&offset=<?php 
                echo $i;
                ?>
"><?php 
                echo $i + 1;
                ?>
</a>
 		   <?php 
            } else {
                echo ' ' . ($i + 1) . ' ';
            }
        }
Пример #22
0
</div></td>
			  
			  
			  </tr>
        <?php 
    }
    //while
    gdrcd_query($result, 'free');
    ?>
        </table>
		</div><!--elenco_record_gioco-->
        </div><!--panels_box-->
		<!-- Link di ritorno alla visualizzazione di base -->
	    <div class="link_back">
          <a href="main.php?page=user_stats&links=yes">
		     <?php 
    echo gdrcd_filter('out', $MESSAGE['interface']['user']['stats']['link']['back']);
    ?>
	      </a>
        </div>
		<?php 
}
?>


		

</div>
</div><!-- pagina -->

Пример #23
0
				   <?php 
                } else {
                    echo ' ' . ($i + 1) . ' ';
                }
            }
            //for
        }
        //if
        ?>
     </div>
	  
     <!-- link crea nuovo -->
     <div class="link_back">
        <a href="main.php?page=log_eventi">
		   <?php 
        echo gdrcd_filter('out', $MESSAGE['interface']['administration']['log']['events']['link']['back']);
        ?>
		</a>
     </div>

<?php 
    }
    //else
    ?>


</div>

<?php 
}
//else (controllo permessi utente)
Пример #24
0
                $next = 0;
            } else {
                $next = 1;
            }
            echo '<a href="presenti.inc.php?invisibile=' . $next . '"><img class="presenti_ico" src="../imgs/icons/vis' . $record['is_invisible'] . '.png" alt="' . gdrcd_filter('out', $MESSAGE['status_pg']['invisible'][$record['is_invisible']]) . '" title="' . gdrcd_filter('out', $MESSAGE['status_pg']['invisible'][$record['is_invisible']]) . '" /></a>';
        }
        echo '</div>';
    }
}
//while
gdrcd_query($result, 'free');
echo '</div>';
// Conteggio i presenti.
$record = gdrcd_query("SELECT COUNT(*) AS numero FROM personaggio WHERE (personaggio.ora_entrata > personaggio.ora_uscita AND DATE_ADD(personaggio.ultimo_refresh, INTERVAL 4 MINUTE) > NOW())");
//numero utenti presenti.
echo '<div class="link_presenti"><a href="../main.php?page=presenti_estesi" target="_top">';
if ($record['numero'] == 1) {
    echo '<div class="page_title"><h2>' . $record['numero'] . ' ' . gdrcd_filter('out', $PARAMETERS['names']['users_name']['sing']) . ' ' . gdrcd_filter('out', $MESSAGE['interface']['logged_users']['sing']) . '</h2></div>';
} else {
    echo '<div class="page_title"><h2 class="presenti_title">' . $record['numero'] . ' ' . gdrcd_filter('out', $PARAMETERS['names']['users_name']['plur']) . ' ' . gdrcd_filter('out', $MESSAGE['interface']['logged_users']['plur']) . '</h2></div>';
}
echo '</a></div>';
?>

  </div>

<!-- Chiudura finestra del gioco -->

<?php 
include '../footer.inc.php';
/*Footer comune*/
Пример #25
0
 */
if (!empty($_GET['map_id'])) {
    $_SESSION['mappa'] = (int) $_GET['map_id'];
    gdrcd_query("UPDATE personaggio SET ultima_mappa=" . gdrcd_filter('num', $_SESSION['mappa']) . ", ultimo_luogo=-1 WHERE nome = '" . gdrcd_filter('in', $_SESSION['login']) . "'");
}
if (isset($_REQUEST['page'])) {
    $strInnerPage = gdrcd_filter('include', $_REQUEST['page']) . '.inc.php';
    //se e' impostato dir allora cambio stanza.
} elseif (isset($_REQUEST['dir']) && is_numeric($_REQUEST['dir'])) {
    if ($_REQUEST['dir'] >= 0) {
        $strInnerPage = 'frame_chat.inc.php';
    } else {
        $strInnerPage = 'mappaclick.inc.php';
        $_REQUEST['id_map'] = $_SESSION['mappa'];
    }
    gdrcd_query("UPDATE personaggio SET ultimo_luogo=" . gdrcd_filter('num', $_REQUEST['dir']) . " WHERE nome='" . gdrcd_filter('in', $_SESSION['login']) . "'");
    //$_SESSION['luogo']=gdrcd_filter_get($_REQUEST['dir']);
    /**	* Caso di fix
     * se non ci sono variabili via url, si ripristinano dei valori di default
     * @author Blancks
     */
} else {
    $strInnerPage = 'mappaclick.inc.php';
    $_REQUEST['id_map'] = $_SESSION['mappa'];
}
/**	* Fine caso di Fix */
if (gdrcd_controllo_esilio($_SESSION['login']) === TRUE) {
    session_destroy();
} else {
    require 'layouts/' . $PARAMETERS['themes']['kind_of_layout'] . '_frames.php';
}
Пример #26
0
    //else
    ?>


<!-- welcome message -->
<!-- random pass -->
<!-- invio mail -->
<!-- inserimento -->

</div>

<!-- Torna alla home -->
<div class="link_back">
   <a href="index.php">
      <?php 
    echo gdrcd_filter('out', $MESSAGE['register']['welcome']['back'] . ' ' . gdrcd_filter('out', strtolower($PARAMETERS['info']['homepage_name'])));
    ?>
   </a>
</div>


<?php 
}
?>




<!-- Chiudura finestra iscizione -->
</div>
</div>
Пример #27
0
				   <?php 
                } else {
                    echo ' ' . ($i + 1) . ' ';
                }
            }
            //for
        }
        //if
        ?>
     </div>
	  
     <!-- link crea nuovo -->
     <div class="link_back">
        <a href="main.php?page=gestione_mappe&op=new">
		   <?php 
        echo gdrcd_filter('out', $MESSAGE['interface']['administration']['maps']['link']['new']);
        ?>
		</a>
     </div>

<?php 
    }
    //else
    ?>


</div>

<?php 
}
//else (controllo permessi utente)
Пример #28
0
    //Livello di accesso del PG (utente, master, admin, superuser)
    echo '<img class="presenti_ico" src="imgs/icons/permessi' . $record['permessi'] . '.gif" alt="' . gdrcd_filter('out', $alt_permessi) . '" title="' . gdrcd_filter('out', $alt_permessi) . '" />';
    //Icona stato di disponibilità. E' sensibile se la riga che sto stampando corrisponde all'utente loggato.
    $change_disp = ($record['disponibile'] + 1) % 3;
    echo '<img class="presenti_ico" src="imgs/icons/disponibile' . $record['disponibile'] . '.png" alt="' . gdrcd_filter('out', $MESSAGE['status_pg']['availability'][$record['disponibile']]) . '" title="' . gdrcd_filter('out', $MESSAGE['status_pg']['availability'][$record['disponibile']]) . '" />';
    //Icona della razza pg
    if ($record['icon'] == '') {
        $record['icon'] = 'standard_razza.png';
    }
    echo '<img class="presenti_ico" src="themes/' . $PARAMETERS['themes']['current_theme'] . '/imgs/races/' . $record['icon'] . '" alt="' . gdrcd_filter('out', $record['sing_' . $record['sesso']]) . '" title="' . gdrcd_filter('out', $record['sing_' . $record['sesso']]) . '" />';
    //Icona del genere del pg
    echo '<img class="presenti_ico" src="imgs/icons/testamini' . $record['sesso'] . '.png" alt="' . gdrcd_filter('out', $MESSAGE['status_pg']['gender'][$record['sesso']]) . '" title="' . gdrcd_filter('out', $MESSAGE['status_pg']['gender'][$record['sesso']]) . '" />';
    //Nome pg e link alla sua scheda
    echo ' <a href="main.php?page=scheda&pg=' . $record['nome'] . '" class="link_sheet">' . gdrcd_filter('out', $record['nome']);
    if (empty($record['cognome']) === FALSE) {
        echo ' ' . gdrcd_filter('out', $record['cognome']);
    }
    echo '</a> ';
    echo '</li>';
}
//while
gdrcd_query($result, 'free');
echo '</ul>';
?>
  
</div>
  
</div>

<!-- Chiudura finestra del gioco -->
Пример #29
0
   <h2><?php 
echo gdrcd_filter('out', $PARAMETERS['office_page_name']);
?>
</h2>
</div>

<div class="page_body">

<?php 
/* Generazione automatica del menu del gioco */
foreach ($PARAMETERS['office'] as $link_menu) {
    if (empty($link_menu['url']) === FALSE && empty($link_menu['text']) === FALSE && isset($link_menu['access_level']) === TRUE && $link_menu['access_level'] <= $_SESSION['permessi']) {
        echo '<div class="link_menu">';
        if (empty($link_menu['image_file']) === FALSE) {
            echo '<img src="themes/' . $PARAMETERS['themes']['current_theme'] . '/imgs' . $link_menu['image_file'] . '" />';
        }
        echo '<a href="' . $link_menu['url'] . '">' . gdrcd_filter('out', $link_menu['text']) . '</a></div>';
    }
    //if
}
//foreach
?>

</div><!-- page_body -->
</div><!-- Pagina -->

<?php 
/*HELP: Il menu viene generato automaticamente attingendo dalle informazioni contenute in config.inc.php. La versione supporta link testuali ed immagini e può essere modificata direttamente nel file config.ing.php, impostando url di destinazione, testo e selezionado le immagini. Se il link è un'immagine il testo viene interpretato automaticamente come testo alternativo all'immagine. Per realizzare un menu di altro tipo suggeriamo di commentare o cancellare il contenuto di questa pagina e sostituirlo con il codice del nuovo menu. */
?>

Пример #30
0
}
?>
   <!--meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"-->
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <meta http-equiv="refresh" content="<?php 
echo $i_ref_time;
?>
">

   <link rel="stylesheet" href="../themes/<?php 
echo $PARAMETERS['themes']['current_theme'];
?>
/presenti.css" TYPE="text/css">
   <link rel="stylesheet" href="../themes/<?php 
echo $PARAMETERS['themes']['current_theme'];
?>
/main.css" TYPE="text/css">
   <link rel="stylesheet" href="../themes/<?php 
echo $PARAMETERS['themes']['current_theme'];
?>
/chat.css" TYPE="text/css">
</head>
<body class="transparent_body" <?php 
if (gdrcd_filter('get', $_REQUEST['chat']) == 'yes') {
    echo 'onLoad="echoChat();"';
}
?>
 >
<?php 
//controlla sessione
//controlla esilio