Пример #1
0
?>

<div class="pagina_frame_chat">

<div class="page_title"><h2><?php 
echo $info['nome'];
?>
</h2></div>

<div class="page_body"> 

<?php 
//e' una stanza privata?
if ($info['privata'] == 1) {
    $allowance = FALSE;
    if (($info['proprietario'] == gdrcd_capital_letter($_SESSION['login']) || strpos($_SESSION['gilda'], $info['proprietario']) != FALSE || strpos($info['invitati'], gdrcd_capital_letter($_SESSION['login'])) != FALSE || $PARAMETERS['mode']['spyprivaterooms'] == 'ON' && $_SESSION['permessi'] > MODERATOR) && $info['scadenza'] > strftime('%Y-%m-%d %H:%M:%S')) {
        $allowance = TRUE;
    }
} else {
    $allowance = TRUE;
}
//se e' privata e l'utente non ha titolo di leggerla
if ($allowance === FALSE) {
    echo '<div class="warning">' . $MESSAGE['chat']['whisper']['privat'] . '</div>';
    //echo $info['invitati']; echo gdrcd_capital_letter($_SESSION['login']);
} else {
    ?>

<?php 
    $_SESSION['last_message'] = 0;
    ?>
Пример #2
0
                 * @author Rhllor
                 */
            } else {
                if ($_POST['multipli'] == "broadcast") {
                    $query = gdrcd_query("SELECT nome FROM personaggio", 'result');
                    while ($row = gdrcd_query($query, 'fetch')) {
                        gdrcd_query("INSERT INTO messaggi (mittente, destinatario, spedito, testo) VALUES ('" . $_SESSION['login'] . "', '" . $row['nome'] . "' , NOW(), '" . gdrcd_filter('in', $_POST['testo']) . "')");
                    }
                    gdrcd_query($query, 'free');
                } else {
                    if (is_numeric($_POST['multipli']) === TRUE) {
                        gdrcd_query("INSERT INTO messaggi (mittente, destinatario, spedito, testo) VALUES ('" . $_SESSION['login'] . "', '" . $_POST['multipli'] . "', NOW(), '" . gdrcd_filter('in', $_POST['testo']) . "')");
                    } else {
                        if (empty($_POST['destinatario']) === FALSE) {
                            gdrcd_query("INSERT INTO messaggi (mittente, destinatario, spedito, testo) VALUES ('" . $_SESSION['login'] . "', '" . gdrcd_capital_letter(gdrcd_filter('in', $_POST['destinatario'])) . "', NOW(), '" . gdrcd_filter('in', $_POST['testo']) . "')");
                            gdrcd_query("INSERT INTO backmessaggi (mittente, destinatario, spedito, testo) VALUES ('" . $_SESSION['login'] . "', '" . gdrcd_capital_letter(gdrcd_filter('in', $_POST['destinatario'])) . "', NOW(), '" . gdrcd_filter('in', $_POST['testo']) . "')");
                        }
                    }
                }
            }
        }
    }
    //else
    ?>
 		<div class="warning">
 			<?php 
    echo $PARAMETERS['names']['private_message']['sing'] . $MESSAGE['interface']['messages']['sent'];
    ?>
 		</div>
 		<div class="link_back">
 			<a href="main.php?page=messages_center&offset=0"><?php 
Пример #3
0
    if (empty($_POST['beneficiario'])) {
        echo '<div class="warning">Il beneficiario che hai inserito non esiste o non &egrave; valido!</div>';
    } else {
        if ($_POST['ammontare'] <= 0 || is_numeric($_POST['ammontare']) === FALSE) {
            echo '<div class="warning">' . gdrcd_filter('out', $MESSAGE['interface']['bank']['error']) . '</div>';
        } else {
            if ($_POST['ammontare'] > $banca) {
                echo '<div class="warning">' . gdrcd_filter('out', $MESSAGE['interface']['bank']['withdraw_no']) . '</div>';
            } else {
                echo '<div class="warning">' . gdrcd_filter('out', $MESSAGE['interface']['bank']['done']) . '</div>';
                /*Eseguo la transazione*/
                gdrcd_query("UPDATE personaggio SET banca = banca - " . gdrcd_filter('num', $_POST['ammontare']) . " WHERE nome = '" . $_SESSION['login'] . "' LIMIT 1");
                gdrcd_query("UPDATE personaggio SET banca = banca + " . gdrcd_filter('num', $_POST['ammontare']) . " WHERE nome = '" . $_POST['beneficiario'] . "' LIMIT 1");
                /*Registro l'evento (Passaggio di danaro)*/
                gdrcd_query("INSERT INTO log (nome_interessato, autore, data_evento, codice_evento ,descrizione_evento) VALUES ('" . gdrcd_filter('in', $_POST['beneficiario']) . "', '" . $_SESSION['login'] . "', NOW(), " . BONIFICO . ", '" . '(' . gdrcd_filter('num', $_POST['ammontare']) . ' ' . $PARAMETERS['names']['currency']['plur'] . ') ' . gdrcd_filter('in', $_POST['causale']) . "')");
                gdrcd_query("INSERT INTO messaggi (mittente, destinatario, spedito, testo) VALUES ('" . $_SESSION['login'] . "','" . gdrcd_capital_letter(gdrcd_filter('in', $_POST['beneficiario'])) . "', NOW(), '" . gdrcd_filter('in', $_SESSION['login'] . ' ' . $MESSAGE['interface']['bank']['notice'] . ' ' . gdrcd_filter('num', $_POST['ammontare']) . ' ' . $PARAMETERS['names']['currency']['plur']) . '. \\n\\n' . gdrcd_filter('in', $_POST['causale']) . "')");
            }
        }
    }
    ?>

<div class="link_back">
   <a href="main.php?page=servizi_banca"><?php 
    echo gdrcd_filter('out', $MESSAGE['interface']['bank']['back']);
    ?>
</a>
</div>
<?php 
}
?>
Пример #4
0
        echo '<div class="error">' . gdrcd_filter('out', $MESSAGE['register']['fields']['stats_info'] . ' ' . $PARAMETERS['settings']['cars_sum']) . '</div>';
    } else {
        $pass = gdrcd_genera_pass();
        /** * Se deve scattare l'avviso di cambio password fin dall'iscrizione non segno cambiamenti
        	* @author Blancks
        */
        $lastpasschange_field = "";
        $lastpasschange_value = "";
        /** * Se NON deve scattare l'avviso di cambio password fin dall'iscrizione aggiorno la data di ultimo cambio ad ora
        	* @author Blancks
        */
        if ($PARAMETERS['mode']['alert_password_change'] == 'ON' && $PARAMETERS['settings']['alert_password_change']['alert_from_signup'] == 'OFF') {
            $lastpasschange_field = ", ultimo_cambiopass";
            $lastpasschange_value = ", NOW()";
        }
        gdrcd_query("INSERT INTO personaggio (nome, cognome, pass, data_iscrizione, email, sesso, id_razza, car0, car1, car2, car3, car4, car5, salute, salute_max, soldi, esperienza {$lastpasschange_field}) VALUES ('" . gdrcd_capital_letter(gdrcd_filter('in', $_POST['nome'])) . "', '" . gdrcd_filter('in', $_POST['cognome']) . "', '" . gdrcd_encript($pass) . "', NOW(), '" . gdrcd_filter('in', $_POST['email']) . "', '" . gdrcd_filter('in', $_POST['genere']) . "', " . gdrcd_filter('num', $_POST['razza']) . ", " . gdrcd_filter('num', $_POST['car0']) . ", " . gdrcd_filter('num', $_POST['car1']) . ", " . gdrcd_filter('num', $_POST['car2']) . ", " . gdrcd_filter('num', $_POST['car3']) . ", " . gdrcd_filter('num', $_POST['car4']) . ", " . gdrcd_filter('num', $_POST['car5']) . ", " . gdrcd_filter('num', $PARAMETERS['settings']['max_hp']) . ", " . gdrcd_filter('num', $PARAMETERS['settings']['max_hp']) . ", " . gdrcd_filter('num', $PARAMETERS['settings']['first_money']) . ", " . gdrcd_filter('num', $PARAMETERS['settings']['first_px']) . " {$lastpasschange_value})");
        if ($PARAMETERS['mode']['emailconfirmation'] == 'ON') {
            echo '<div class="page_title"><h2>' . gdrcd_filter('out', $MESSAGE['register']['welcome']['message']['ok']) . '</h2></div>';
            echo '<div class="panels_box"><div class="welcome_message">' . gdrcd_filter('out', $MESSAGE['register']['welcome']['message'][0]) . ' <b>' . gdrcd_filter('out', $PARAMETERS['info']['site_name']) . '</b> ' . gdrcd_filter('out', $MESSAGE['register']['welcome']['message'][1]) . '</div><div class="welcome_message">&nbsp;</div><div class="username">' . gdrcd_filter('out', $MESSAGE['register']['welcome']['message'][3]) . ' <b>' . gdrcd_filter('get', $_POST['email']) . '</b></div>';
            $text = $MESSAGE['register']['welcome']['message'][0] . ' ' . $PARAMETERS['info']['site_name'] . "\n\n " . $MESSAGE['register']['welcome']['message'][1] . "\n     " . $MESSAGE['register']['welcome']['message'][2] . "\n\n    " . $MESSAGE['register']['welcome']['message']['user'] . ' ' . gdrcd_filter('get', $_POST['nome']) . "\n" . $MESSAGE['register']['welcome']['message']['pass'] . ' ' . $pass . "\n\n    " . $PARAMETERS['info']['webmaster_name'];
            $subject = $PARAMETERS['info']['site_name'] . ' - Registrazione di ' . gdrcd_filter('get', $_POST['nome']) . ' ' . gdrcd_filter('get', $_POST['cognome']);
            mail(gdrcd_filter('get', $_POST['email']), $subject, $text, 'From: ' . gdrcd_filter('out', $PARAMETERS['info']['webmaster_email']));
        } else {
            echo '<div class="page_title"><h2>' . gdrcd_filter('out', $MESSAGE['register']['welcome']['message']['ok']) . '</h2></div>';
            echo '<div class="panels_box"><div class="welcome_message">' . gdrcd_filter('out', $MESSAGE['register']['welcome']['message'][0]) . ' <b>' . gdrcd_filter('out', $PARAMETERS['info']['site_name']) . '</b> ' . gdrcd_filter('out', $MESSAGE['register']['welcome']['message'][1]) . '</div><div class="welcome_message">' . gdrcd_filter('out', $MESSAGE['register']['welcome']['message'][2]) . '</div><div class="username">' . gdrcd_filter('out', $MESSAGE['register']['welcome']['message']['user']) . ' <b>' . gdrcd_filter('get', $_POST['nome']) . '</b></div><div class="username">' . gdrcd_filter('out', $MESSAGE['register']['welcome']['message']['pass']) . ' <b>' . $pass . '</b></div></div>';
        }
        gdrcd_query("INSERT INTO messaggi (mittente, destinatario, spedito, testo) VALUES ('" . gdrcd_filter('out', $PARAMETERS['info']['webmaster_name']) . "', '" . gdrcd_filter('get', $_POST['nome']) . "', NOW(), '" . gdrcd_filter('out', $MESSAGE['register']['welcome']['message'][4]) . "')");
    }
    //else
    ?>
Пример #5
0
         if (strpos($_SESSION['gilda'], $info['proprietario']) != FALSE) {
             $ok_command = TRUE;
         }
         if ($type == "5" && $ok_command === TRUE) {
             //invita
             gdrcd_query("UPDATE mappa SET invitati = '" . $info['invitati'] . ',' . gdrcd_capital_letter(strtolower(gdrcd_filter('in', $tag_n_beyond))) . "' WHERE id=" . $_SESSION['luogo'] . " LIMIT 1");
             gdrcd_query("INSERT INTO chat ( stanza, mittente, destinatario, ora, tipo, testo ) VALUES (" . $_SESSION['luogo'] . ", 'System message', '" . $_SESSION['login'] . "', NOW(), 'S', '" . gdrcd_capital_letter(gdrcd_filter('in', $tag_n_beyond)) . ' ' . $MESSAGE['chat']['warning']['invited'] . "')");
             if (empty($_POST['tag']) === FALSE) {
                 gdrcd_query("INSERT INTO messaggi ( mittente, destinatario, spedito, letto, testo ) VALUES ('System message', '" . gdrcd_capital_letter(gdrcd_filter('in', $_POST['tag'])) . "', NOW(), 0,  '" . $_SESSION['login'] . ' ' . $MESSAGE['chat']['warning']['invited_message'] . ' ' . $info['nome'] . "')");
             }
         } else {
             if ($type == "6" && $ok_command === TRUE) {
                 //caccia
                 $scaccia = str_replace(',' . gdrcd_capital_letter(gdrcd_filter('in', $tag_n_beyond)), '', $info['invitati']);
                 gdrcd_query("UPDATE mappa SET invitati = '" . $scaccia . "' WHERE id=" . $_SESSION['luogo'] . " LIMIT 1");
                 gdrcd_query("INSERT INTO chat ( stanza, mittente, destinatario, ora, tipo, testo ) VALUES (" . $_SESSION['luogo'] . ", 'System message', '" . $_SESSION['login'] . "', NOW(), 'S', '" . gdrcd_capital_letter(gdrcd_filter('in', $tag_n_beyond)) . ' ' . $MESSAGE['chat']['warning']['expelled'] . "')");
             } else {
                 if ($ok_command === TRUE) {
                     //elenco
                     $ospiti = str_replace(',', '', $info['invitati']);
                     gdrcd_query("INSERT INTO chat ( stanza, mittente, destinatario, ora, tipo, testo ) VALUES (" . $_SESSION['luogo'] . ", 'System message', '" . $_SESSION['login'] . "', NOW(), 'S', '" . $MESSAGE['chat']['warning']['list'] . ': ' . $ospiti . "')");
                 }
             }
         }
         //else
     }
     //else
 } else {
     $_SESSION['tag'] = gdrcd_filter('in', $_POST['tag']);
 }
 /*Carico i nuovi messaggi*/
       <div class='form_label'>
	      <?php 
    echo gdrcd_filter('out', $MESSAGE['interface']['administration']['items']['item_bonus']) . ' ' . gdrcd_capital_letter(gdrcd_filter('out', $PARAMETERS['names']['stats']['car4']));
    ?>
	   </div>
	   <div class='form_field'>
	      <input type="text" name="car4_oggetto" value="<?php 
    echo (int) $loaded_item['bonus_car4'];
    ?>
" />
	   </div>

       <div class='form_label'>
	      <?php 
    echo gdrcd_filter('out', $MESSAGE['interface']['administration']['items']['item_bonus']) . ' ' . gdrcd_capital_letter(gdrcd_filter('out', $PARAMETERS['names']['stats']['car5']));
    ?>
	   </div>
	   <div class='form_field'>
	      <input type="text" name="car5_oggetto" value="<?php 
    echo (int) $loaded_item['bonus_car5'];
    ?>
" />
	   </div>

       
	   <?php 
    if (isset($loaded_item) == TRUE) {
        ?>
	      <input type="hidden" name="op" value="update" />
	      <input type="hidden" name="id_oggetto" value="<?php