Jump to content

help!!1 create accounts on my website


Arrax

Recommended Posts

 

before all good afternoo I have a problem to create accounts on my website, the sql are fine but maybe I can't find the problem in the registration php .. I leave the code any help is welcome I searched but did not see anything strange and I already tried all the possible options Thank you in advance

 

 

 

 

<?php if(!$indexing) { echo "<script>document.location.replace('./');</script>"; exit; } ?>

<span id='accLoc'></span>

<h1>Account</h1>

<div class='horMenu'>
    <a href='javascript:void(0);' class='act'><?php echo $LANG[12032]; ?></a>
    <a href='?page=changepass#accLoc'><?php echo $LANG[12022]; ?></a>
    <a href='?page=forgot#accLoc'><?php echo $LANG[12034]; ?></a>
</div>

<div class='pddInner'>

    <?php
    $desativarReg = 0;
    $dateReg = mktime($reg['hr'],$reg['min'],0,$reg['mes'],$reg['dia'],$reg['ano']);
    if($dateReg > time()) {
        echo "<div class='rmsg error'>".$LANG[12977]."<br /> ".date('d F, Y \- H:i', $dateReg)."</div>";
        $desativarReg = 1;
    }
    ?>

    <div class='rulesbox'>
        <?php require('pages/rules.php'); ?>
    </div>

    <form class='usarJquery registerForm' method='POST' action='./?engine=create_account'>
        
        <?php $_SESSION['key'] = md5(time().rand(100,999).$uniqueKey); echo "<input type='hidden' name='key' value='".$_SESSION['key']."' />"; ?>
        
        <label class='rmsg warn'>
            <input type='checkbox' id='acceptrules' value='1' /> <b><?php echo $LANG[12994]; ?></b>
        </label>

        <?php echo $LANG[12067]; ?>

        <br /><br />

        <label class='formpadrao accr_login'>
            <div>
                <div class='desc'>* Login:</div>
                <div class='camp'><input type='text' name='login' id='login' maxlength='14' value='<?php echo ((isset($_GET['l'])) ? vCode($_GET['l']) : ''); ?>' autocomplete='off' /></div>
            </div>
        </label>

        <?php if($suffixActive == 1) { ?>
            
            <style>#finalLogin { font-weight: bold; font-size: 15px; }</style>
            <label class='formpadrao' id='the_suffix'>
                <div>
                    <div class='desc'>Login - <?php echo $LANG[10997]; ?>:</div>
                    <div class='camp'>
                        <select name='suffix' id='suffix'>
                            <?php
                            $subLetter = array(0 => 'C', 1 => 'D', 2 => 'Y', 3 => 'H', 4 => 'K', 5 => 'N', 6 => 'R', 7 => 'S', 8 => 'Z', 9 => 'X');
                            $_SESSION['suffix'][1] = (rand(100,996)+1);
                            $_SESSION['suffix'][2] = (rand(100,996)+2);
                            $_SESSION['suffix'][3] = (rand(100,996)+3);
                            $_SESSION['suffix'][4] = strtr(rand(100,996)+1, $subLetter);
                            $_SESSION['suffix'][5] = strtr(rand(100,996)+2, $subLetter);
                            $_SESSION['suffix'][6] = strtr(rand(100,996)+3, $subLetter);
                            echo "
                            <option value='1'>".$_SESSION['suffix'][1]."</option>
                            <option value='2'>".$_SESSION['suffix'][2]."</option>
                            <option value='3'>".$_SESSION['suffix'][3]."</option>
                            <option value='4'>".$_SESSION['suffix'][4]."</option>
                            <option value='5'>".$_SESSION['suffix'][5]."</option>
                            <option value='6'>".$_SESSION['suffix'][6]."</option>
                            ";
                            ?>
                        </select>
                    </div>
                </div>
            </label>
            
            <div class='rmsg warn' style='margin-bottom: 2px;'>
                <?php
                echo "<span id='sfxMsg1'>".$LANG[10995]."</span><span id='sfxMsg2' style='display:none;'>".$LANG[29004]."</span><br />
                <a href='#' id='whatIsPrefix' style='font-style:italic;'>".$LANG[30509]."</a>";
                if($forceSuffix != 1) { ?>
                    &nbsp;&nbsp;&nbsp;
                    <label><input id='disableSuffix' type='checkbox' name='nosuffix' value='1' /> <i><?php echo $LANG[10996]; ?></i></label>
                <?php } ?>
                <script>
                    $(function() {
                        
                        $('#disableSuffix').prop('checked', false);
                        
                        $('select#suffix option').eq(<?php echo intval(rand(0, 5)); ?>).attr('selected', 'selected');
                        
                        $('#finalLogin').text('_____'+$('select#suffix option:selected').text());
                        
                        $('select#suffix').change(function(){
                            if($('#login').val().length != 0) { var loginAtual = $('#login').val(); } else { var loginAtual = '_____'; }
                            $('#finalLogin').text(loginAtual+$('select#suffix option:selected').text());
                        });
                        
                        $('input#login').keyup(function(){
                            if($('#login').val().length != 0) { var loginAtual = $('#login').val(); } else { var loginAtual = '_____'; }
                            $('#finalLogin').text(loginAtual+$('select#suffix option:selected').text());
                        });
                        
                        $('#disableSuffix').change(function() {
                            if(!$('#the_suffix').hasClass('escondido')) {
                                $('#login').attr('maxlength', '14');
                                $('#the_suffix').addClass('escondido').css({ 'display': 'none' });
                                $('#sfxMsg1').css({ 'display': 'none' });
                                $('#sfxMsg2').css({ 'display': 'inline-block' });
                            } else {
                                $('#login').attr('maxlength', '11');
                                $('#the_suffix').removeClass('escondido').css({ 'display': 'table' });
                                $('#sfxMsg2').css({ 'display': 'none' });
                                $('#sfxMsg1').css({ 'display': 'inline-block' });
                            }
                        });
                        
                        $('a#whatIsPrefix').click(function(e){
                            e.preventDefault();
                            $('body').append("<div id='backblack'></div><div id='modal' style='display:none; height: auto !important;'><div><?php echo '<h1>'.$LANG[30509].'</h1>'.preg_replace('/\r?\n/','', $LANG[30510]); ?></div></div>");
                            $('#modal > div').css({ 'padding': '15px 20px 20px' });
                            $('#modal').css({ 'box-sizing': 'border-box', 'padding': '0', 'top': 'calc(50% - '+(($('#modal').height()+6)/2)+'px)' }).fadeIn('fast');
                        });
                        
                    });
                </script>
            </div>

        <?php } ?>

        <label class='formpadrao accr_pass'>
            <div>
                <div class='desc'> <?php echo $LANG[12049]; ?>:</div>
                <div class='camp'><input type='password' maxlength='25' name='pass' autocomplete='off' /></div>
            </div>
        </label>

        <label class='formpadrao accr_pass'>
            <div>
                <div class='desc'>* <?php echo $LANG[12048]; ?>:</div>
                <div class='camp'><input type='password' maxlength='25' name='pass2' autocomplete='off' /></div>
            </div>
        </label>

        <label class = 'formpadrao accr_email'>
            <div>
                <div class = 'desc'> * Correo electrónico: </div>
                <div class = 'camp'> <input type = 'text' maxlength = '100' name = valor 'email' = '<? php echo ((isset ($ _ GET [' l ']))? vCode ($ _ GET [' e ']):' '); ?> 'autocomplete =' off '/> </div>
            </div>
        </label>

        <label class = 'formpadrao accr_email'>
            <div>
                <div class = 'desc'> * <? php echo $ LANG [12010]; ?>: </div>
                <div class = 'camp'> <input type = 'text' maxlength = '100' name = 'email2' value = '' autocomplete = 'off' /> </div>
            </ div >
        </label>

        <? php if ($ captcha_register_on == 1) {?>
        <label class = 'formpadrao captcha'>
            <div>
                <div class = 'desc'> <img style = 'margin: 5px 0 0 0;' class = 'captchaImage' src = 'captcha / securimage_show.php? sid = <? php echo md5 (uniqid ())?>' /> </div>
                <div class = 'camp'> <input type = 'text' id = 'captchaInput' maxlength = '5' name = 'captcha' autocomplete = 'off' /> </div>
                <a tabindex='-1' href='#'> <img src = 'captcha / refresh.png '/> </a>
            </div>
        </label>
        <? php}?>

        <input type = 'submit' class = 'default dbig' value = '<? php echo $ LANG [12077]; ?> 'style =' margin: 20px auto; display: table; <? php echo ($ desativarReg == 1)? "opacidad: 0.6; cursor: predeterminado; ' discapacitado" : "'"; ?> />

    </form>
    
    <input type = 'hidden' id = 'l12004' value = '<? php echo $ LANG [12004]; ?> '/>
    
</div>

<? php
if ($ desativarReg == 1) {
    echo "<div class = 'rmsg error'>". $ LANG [12977]. "<br />" .date ('d F, Y \ - H: i ', $ dateReg). "</div>";
}
?>

<br /> <br />
 

Link to comment
Share on other sites



  • Posts

    • Good morning. I have new implementations Now working Friends tab in CB - its a custom work, but I think is useful 🙂
    • olá amigo sou da comunidade Brasileiro cera que vc poderia perguntar se ele me vende essa interface do l2rock?
    • Te esperamos este viernes en  L2 Seal Proyecto Hunter . Open : 1/12/23 a las 21:00hs GMT-3 Para cerrar el año,de la mejor manera te esperamos en el servidor mid más grande de habla hispana.   !!!Te lo vas a perder!!! Estamos de regreso, con mucho contenido nuevo. Cliente : H5. Rates: EXP/SP: x20 Adena: x10 Seal Stones: x4 Raid Boss EXP/SP: x5 Spoil: x10 Keymats Drop/Spoil: x5 Raid Boss Drop: x5 Drop: x8 Manor: x2 Eppaulletes: x5  Features : NPC Buffer com buffs de 2 hora GM-Shop up to Dynasty Mana Potions (1000 MP, 10 seg. Cooldown) Skills autolearn inclusive los 81/83 Buff Slots: 24 (+4 com Divine Inspiration LVL 4) Auto pickup configurable Offline Shop (Colocar el char en modo store y cerrar el cliente.) Cambio de 1ª classe (10.000 adena) Cambio de 2ª classe (500.000 adena) Cambio de 3ª classe (2.000.000 adena) Sub class No requiere quest items ni quest. Nobless Via quest (H5 Quest) Community con status de Raid Boss Shift + Click para ver a lista de drops (Rate Server) Global Shout / Delay 20 segundos. Max. Clientes/PC: 4 Max. Ventanas de Autofarm 1 por HWID Max. Miembros de clan en Zonas Épicas: Sin Restriccion Allys permitidas (Max. 2 Clanes) Cancellation: 2-4 buff con chance y random. Puedes contactarnos en : Discord: https://discord.com/invite/hmVaZFrFEy 🦸 Website:  www.l2seal.com
    • Good day everybody.   A credible team that SGuard represents is looking for java developers.    These positions is full time only i.e. your time is mostly dedicated within the team and team tasks.  All necessary tools are provided.  The team is consistent with > 6 team members and the team is looking to expand to meet various goals. A decent Lineage 2 Essense OR Main (GOD) knowledge is needed.  Experience with l2r/l2p/l2s (not l2j or mobius) type of servers. The team is friendly and goal oriented, very active and resourceful.   Requirements are standard however strong java codding skill is necessary for the position.  Multi language is a plus but not necessary (English/Russian), any is accepted.   Terms and conditions including compensation are reasonable and considered to be up for the industry standards. Details are negotiable with suitable candidates.   You have to have either a public name that can be checked out or a strong reference from credible sources. You will need to have a headset and a mic just for the initial processing, there're no team meetings or conferences after that.   The team has decided it is in their best interest to not publish their information at this time. Details will be available only for suitable candidates.   If you think you're a good fit. Please contact me at:   skype: live:sguard.soft telegram: https://t.me/tech_support_s2    
  • Topics

×
×
  • Create New...