• Ich möchte die Lotto.php bei mir in das normale RECMS einfügen was genau muss ich hier auswechseln hab schon mal veraucht kommt nur der hintergrund!

    Meine ALTE lotto.php


    <?php

    require('x_hotel_cores_settings/MYSQL/[DB]-MYSQL.php');
    require('x_hotel_cores_settings/CORE-QatIbJqiE3d8fayOMfWBmYxYP.php');
    require('x_hotel_cores_settings/SESSION-34AN5Tzx9z8s6SSOe4u6LvZbK.php');

    $title = "Lotto";
    $pageid = "25";

    include('templates/community_subheader.php');
    include('templates/community_header.php');
    $query = mysql_query("SELECT * FROM cms_lotto_settings");
    $row = mysql_fetch_assoc($query);

    if(isset($_POST['submit'])) {
    $num1 = FilterText($_POST['1']);
    $num2 = FilterText($_POST['2']);
    $num3 = FilterText($_POST['3']);
    $num4 = FilterText($_POST['4']);
    $num5 = FilterText($_POST['5']);
    $num6 = FilterText($_POST['6']);
    if(!empty($num1) || !empty($num2) || !empty($num3) || !empty($num4) || !empty($num5) || !empty($num6)) {
    if($user->credits >= "1000") {
    $number = $num1.$num2.$num3.$num4.$num5.$num6;
    mysql_query("INSERT INTO cms_lotto_tickets (user,numbers) VALUES ('".$user->username."','".$number."')");
    mysql_query("UPDATE users SET credits = credits - 1000 WHERE id = '".$user->id."'");
    mysql_query("UPDATE cms_lotto_settings SET jackpot = jackpot + 1000");
    $core->Mus('updatecredits', $my_id);
    $core->Mus('alert', ''.$my_id.' Du hast dir dein Lotto Ticket erfolgreich erworben!');
    $msg = "Du hast erfolgreich bei dieser Lottorunde teilgenommen!";
    $error = false;
    } else {
    $msg = "Du hast nicht gen&uuml;gend Taler um dir ein Lotto Ticket zu kaufen!"; $error = true; }
    } else {
    $msg = "Bitte f&uuml;lle alle Felder aus!"; $error = true;
    }
    }

    require 'habblet/credits/lotto.php';
    require 'templates/community_footer.php'; ?>


    Huggo Lotto. php die ich will

    <?php

    require('huggo_core/MYSQL/[DB]-MYSQL.php');
    require('huggo_core/CORE-QatIbJqiE3d8fayOMfWBmYxYP.php');
    require('huggo_core/SESSION-34AN5Tzx9z8s6SSOe4u6LvZbK.php');
    require('huggo_core/function@mus_irc.php');
    require('huggo_core/function@is_even.php');

    $body->id = "home";
    $css->js = "lotto";
    $tab->menu = "3";
    $width->bar = "97.4";
    $title = "Lotto";

    if(Date('D') == "Thu") { $lotto_day = "Heute"; } else { $lotto_day = "am Donnerstag"; }

    if(isset($_POST['text'])) {
    $zahl1 = mysql_real_escape_string($_POST['mainPagePart_rn1']);
    $zahl2 = mysql_real_escape_string($_POST['mainPagePart_rn2']);
    $zahl3 = mysql_real_escape_string($_POST['mainPagePart_rn3']);
    $zahl4 = mysql_real_escape_string($_POST['mainPagePart_rn4']);
    $zahl5 = mysql_real_escape_string($_POST['mainPagePart_rn5']);
    $zahl6 = mysql_real_escape_string($_POST['mainPagePart_rn6']);

    if($zahl1 > 0 && $zahl1 < 7 && $zahl2 > 0 && $zahl2 < 7 && $zahl3 > 0 && $zahl3 < 7 && $zahl4 > 0 && $zahl4 < 7 && $zahl5 > 0 && $zahl5 < 7 && $zahl6 > 0 && $zahl6 < 7) {
    if($user->credits >= 1000) {
    mysql_query("INSERT INTO `cms_lotto_scheine` (id_user,zahl1,zahl2,zahl3,zahl4,zahl5,zahl6,timestamp) VALUES ('".$user->id."','".$zahl1."','".$zahl2."','".$zahl3."','".$zahl4."','".$zahl5."','".$zahl6."','".time()."')") or die(mysql_error());
    mysql_query("INSERT INTO `cms_transactions` (time,amount,descr,userid) VALUES ('".time()."','-1000 Taler','Lottoschein erstellt','".$user->id."')") or die(mysql_error());
    mysql_query("UPDATE users SET credits = credits - 1000 WHERE id = '".$user->id."'") or die(mysql_error());
    mysql_query("UPDATE cms_lotto SET jackpot = jackpot + 500") or die(mysql_error());

    $core->MUS('updatecredits', $user->id);
    $msg = "<font color='green'>Dein Lottoschein wurde erstellt, viel Glück!<br />Die Ziehunug findet <b>".$lotto_day."</b> um 20:00 Uhr statt!</font>";
    } else {
    $msg = "<font color='red'>Du hast leider nicht mehr genügend Taler.</font>";
    }
    } else {
    $msg = "<font color='red'>Du hast entweder nicht alle 6 Felder ausgefüllt oder eine bzw. mehrere deiner Zahlen liegt nicht zwischen 1 und 6!</font>";
    }
    }

    require('./templates/community_subheader.php');
    require('./templates/community_header.php');

    ?>

    <script>
    function submit() {
    document.lotto.submit()

    }
    </script>

    <div id="container">
    <div id="content" style="position: relative" class="clearfix">

    <img src="/web-gallery/v2/images/lotto/lotto.png">

    <div id="column1" class="column">
    <div class="habblet-container " style="width:100%; margin-top:5px;">
    <div class="cb clearfix notitle "><div class="bt"><div></div></div><div class="i1"><div class="i2"><div class="i3">

    <form action="<?php echo $site->url; ?>credits/lotto" method="post" name="lotto">

    <input name="lsdm" type="hidden">
    <div id="credits-safety" class="box-content credits-info"><div class="credit-info-text clearfix">
    <style>
    select {
    background-color: #ddd;
    font-weight: bold;
    font-size: 13px;
    width: 90px;
    padding: 5px;
    border: 0;
    height: 30px;
    }</style>

    <span class="text text-small3">
    <img src="/web-gallery/v2/images/lotto/lotto2.png" align="left">
    <center>
    Wähle deine <b> 6 Lottozahlen, </b> um teilzunehmen!</center>
    </span><br />

    <center>
    <input type="text" name="text" value="null" style="display: none;">

    <span class="text text-small3">
    <select name="mainPagePart_rn1" id="mainPagePart_rn1">
    <option selected="selected" value="*">Zahl 1</option><option value="1">1 </option><option value="2">2</option><option value="3">3 </option><option value="4">4 </option><option value="5">5</option><option value="6">6</option>
    </select></span>

    <span class="text text-small3">
    <select name="mainPagePart_rn2" id="mainPagePart_rn2">
    <option selected="selected" value="*">Zahl 2</option><option value="1">1 </option><option value="2">2</option><option value="3">3 </option><option value="4">4 </option><option value="5">5</option><option value="6">6</option>
    </select></span>

    <span class="text text-small3">
    <select name="mainPagePart_rn3" id="mainPagePart_rn3">
    <option selected="selected" value="*">Zahl 3</option><option value="1">1 </option><option value="2">2</option><option value="3">3 </option><option value="4">4 </option><option value="5">5</option><option value="6">6</option>
    </select></span><br><br>

    <span class="text text-small3">
    <select name="mainPagePart_rn4" id="mainPagePart_rn4">
    <option selected="selected" value="*">Zahl 4</option><option value="1">1 </option><option value="2">2</option><option value="3">3 </option><option value="4">4 </option><option value="5">5</option><option value="6">6</option>
    </select></span>

    <span class="text text-small3">
    <select name="mainPagePart_rn5" id="mainPagePart_rn5">
    <option selected="selected" value="*">Zahl 5</option><option value="1">1 </option><option value="2">2</option><option value="3">3 </option><option value="4">4 </option><option value="5">5</option><option value="6">6</option>
    </select></span>

    <span class="text text-small3">
    <select name="mainPagePart_rn6" id="mainPagePart_rn6">
    <option selected="selected" value="*">Zahl 6</option><option value="1">1 </option><option value="2">2</option><option value="3">3 </option><option value="4">4 </option><option value="5">5</option><option value="6">6</option>
    </select></span>
    <br /><br />
    <a href="javascript:submit()" id="credentials-submit" class="new-button green-button" style="margin-right: 5px; text-shadow: #fff 0 0 0;"><b>Lottoschein abgeben &raquo;</b><i></i></a>
    <a href="#" onclick="habboclub.buttonClick('lotto','Meine Lottoscheine'); return false;" class="new-button gray-button" style="margin-right: 5px; text-shadow: #fff 0 0 0;"><b>Meine Lottoscheine</b><i></i></a>


    </center></div>
    <div> </div>
    </div>
    </form></div></div></div><div class="bb"><div></div></div></div>
    </div> </div>

    <div id="column2" class="column">
    <div class="habblet-container " style="width:100%; margin-top:5px;">
    <div class="cb clearfix notitle "><div class="bt"><div></div></div><div class="i1"><div class="i2"><div class="i3">

    <p style="padding-left:20px; padding-top:0px; width:91%;">
    </p><center>
    <h2 style="font-weight:normal;"><b style="color:green;"><?php $lotto = mysql_fetch_object(mysql_query("SELECT jackpot FROM cms_lotto")); echo $lotto->jackpot; ?></b> Taler im Jackpot! </h2></center>
    <p></p>
    <hr style="width:80%; color:grey; margin-top:-15px;">

    <div id="message">
    <p style="padding-left:20px; padding-top:10px; width:91%; display: none;">Die Lottoteilnahme pro Lottoschein, den du links ausfüllen kannst kostet dich <b>1000 Taler</b>.<br><br>
    Die Ziehung findet jeden Donnerstag um 20 Uhr statt und wird per Hotelalert angekündigt.<br /></p>
    <p style="padding-left:20px; padding-top:10px; width:91%;"><?php if(isset($msg)) { echo $msg; } else { echo'Die Ziehung findet am <b>'.$lotto_day.'</b> um 20:00 Uhr statt und wird vorher per Hotelalert von einem Administrator angekündigt.<br /><br />Preis pro Schein: <b>1000 Taler</b>!'; } ?></p>
    </div>

    </div></div></div><div class="bb"><div></div></div></div></div>

    <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

    </div><br /><br />

    <div class="habblet-container " style="width:770px;margin-top:185px;">
    <div class="cb clearfix green "><div class="bt"><div></div></div><div class="i1"><div class="i2"><div class="i3">
    <div style="padding-left:5px;padding:10px;padding-top:5px;text-align:justify;"><img src="/web-gallery/v2/images/lotto/lotto3.png" align="left">
    <br><span style="font-size:20px; padding-left:27px; ">Vorige Runden - vorige Gewinner!</span><br><br>
    <p style="padding-left:180px; width:60%;">Diese <?php echo $site->name; ?>s haben bereits in den zuvorigen Lottorunden gewonnen und den gesamten Jackpot abgestaubt.
    Hier erfährst Du die Höhe der Auszahlung, die stattgefunden haben.<br><br>
    Willst du auch einer von ihnen sein? Dann nimm jetzt am <?php echo $site->name; ?> Lotto teil!</p>
    </div><br><br>
    <center>
    </center><center>
    </center><center><table style="width:100%;padding:10px;padding-left:20px;">
    <tbody>
    <tr>
    <td width="30%"><b>Datum/Runde</b></td>
    <td width="20%"><b>Gewinner der Runde</b></td>
    <td style="position:relative; left:20%;"><b>Auszahlung (Jackpot)</b></td>
    </tr>
    <?php
    $i = 0;
    $sql = mysql_query("SELECT * FROM cms_lotto_winners ORDER BY timestamp DESC LIMIT 30");
    while($row = mysql_fetch_object($sql)) {
    $i++;
    ?>
    <tr<?php if(IsEven($i)) { echo' style="background-color: #f5f5dc;"'; }?>>
    <td><?php echo date('d.m.Y', $row->timestamp); ?> (Runde: <?php echo $row->round; ?>)</td>
    <td><?php echo $row->username; ?></td>
    <td style="position:relative; left:20%;"><?php echo $row->jackpot; ?> Taler <img src="/web-gallery/v2/images/newcredits/coins.png" style="position: absolute; margin-top: -4px; margin-left: 5px;"></td>
    </tr>
    <?php } ?>
    </tbody></table></center>
    </div></div></div><div class="bb"><div></div></div></div>
    </div>


    <?php require('./templates/community_footer.php'); ?>


    Hmmm?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!