Ir para conteúdo
  • Cadastre-se

Website [CONFIG] Gesior - CreateCharacter


Posts Recomendados

iga em poucas palavras a base utilizada (Nome do servidor ou nome do website).

malucooo/otxserver-new

Base: 

Premium Pack 2018

 

Qual erro está surgindo/O que você procura?

O problema é o seguinte, quando eu vou criar personagem  e escolho a vocação, eu posso escolher qual quer 1 , que ela vai para o Rook Sample ou seja não tem como escolher a vocação. 

E no caso eu gostaria de poder escolher a vocação.

 

Você tem o código disponível? Se tiver publique-o aqui:

 

createaccount.php

Spoiler

 <?php
if (!defined('INITIALIZED'))
    exit;
require 'config/namesblocked.php';
if (!$logged) {
    $voc = array(); // Rookgard Active !

    if (isset($_POST['step']) && $_POST['step'] == 'docreate') {
        $erro = array();

        # Nome da conta
        $accountname = isset($_POST['accountname']) ? $_POST['accountname'] : '';

        if ($accountname == '')
            $erro['acc'] = 'Please enter an account name!';
        elseif (strlen($accountname) < 3)
            $erro['acc'] = 'This account name is too short!';
        elseif (strlen($accountname) > 30)
            $erro['acc'] = 'This account name is too long!';
        else {
            $accountname = strtoupper($accountname);

            if (!ctype_alnum($accountname))
                $erro['acc'] = 'This account name has an invalid format. Your account name may only consist of numbers 0-9 and letters A-Z!';
            elseif (!preg_match('/[A-Z0-9]/', $accountname))
                $erro['acc'] = 'Your account name must include at least one letter A-Z!';
            else {
                $acc = new Account($accountname, Account::LOADTYPE_NAME);
                if ($acc->isLoaded())
                    $erro['acc'] = 'This account name is already used. Please select another one!';
            }
        }

        $email = isset($_POST['email']) ? $_POST['email'] : '';

        if ($email == '')
            $erro['email'] = 'Please enter your email address!';
        elseif (strlen($email) > 49)
            $erro['email'] = 'Your email address is too long!';
        elseif (!filter_var($email, FILTER_VALIDATE_EMAIL))
            $erro['email'] = 'This email address has an invalid format. Please enter a correct email address!';
        else {
            $accMailCheck = new Account($email, Account::LOADTYPE_MAIL);
            if ($accMailCheck->isLoaded())
                $erro['email'] = 'This email address is already used. Please enter another email address!';
        }

        $password1 = isset($_POST['password1']) ? $_POST['password1'] : '';
        $password2 = isset($_POST['password2']) ? $_POST['password2'] : '';

        if (empty($password2))
            $erro['pass'] = 'Please enter the password again!';
        elseif ($password1 != $password2)
            $erro['pass'] = 'The two passwords do not match!';
        else {
            $err = array();
            if (strlen($password1) < 8 || strlen($password1) > 29)
                $err[] = 'The password must have at least 8 and less than 30 letters!';
            /**
             * Serve para saber se foi encontrado algum numero na string
             *
             * @param $string
             * @return bool
             */
            function encontrouNumeros($string)
            {
                return strpbrk($string, '0123456789') !== false;
            }

            if (!ctype_alnum($password1) || !encontrouNumeros($password1)) {
                $err[] = 'The password must contain at least one number!';
            }
            if(is_numeric($password1)){
                $err[] = 'The password must contain at least one letter A-Z or a-z!!';
            }

//            if (ctype_alnum($password1))
//                $err[] = 'The password contains invalid letters!';


            if (count($err) != 0) {
                $erro['pass'] = '';
                for ($i = 0; $i < count($err); $i++)
                    $erro['pass'] .= ($i == 0 ? '' : '<br/>') . $err[$i];
            }
        }

        if (!isset($_POST['agreeagreements']) || empty($_POST['agreeagreements']))
            $erro['rules'] = 'You have to agree to the ' . $config['server']['serverName'] . ' Rules in order to create an account!';

        if (count($erro) != 0) {

            $main_content = '
                <div class="SmallBox">
                <div class="MessageContainer">
                <div class="BoxFrameHorizontal" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-horizontal.gif)"/></div>
                <div class="BoxFrameEdgeLeftTop" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif)"/></div>
                <div class="BoxFrameEdgeRightTop" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif)"/></div>
                <div class="ErrorMessage"><div class="BoxFrameVerticalLeft" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-vertical.gif)"/></div>
                <div class="BoxFrameVerticalRight" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-vertical.gif)"/></div>
                <div class="AttentionSign" style="background-image:url(' . $layout_name . '/images/global/content/attentionsign.gif)"/></div>
                <b>The Following Errors Have Occurred:</b>
                <br/>';
            foreach ($erro as $error) $main_content .= $error . '<br/>';
            $main_content .= '</div>
                <div class="BoxFrameHorizontal" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-horizontal.gif)"/></div>
                <div class="BoxFrameEdgeRightBottom" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif)"/></div>
                <div class="BoxFrameEdgeLeftBottom" style="background-image:url(' . $layout_name . '/images/content/global/box-frame-edge.gif)"/>
                </div>
                </div>
                </div>
                <br/>';

            $main_content .= '
            <script src="' . $layout_name . '/create_character.js"></script>
            <div style="position:relative;top:0px;left:0px;" >
                <form action="?subtopic=createaccount" method=post name="CreateAccountAndCharacter" >
                    <div class="TableContainer" >
                        <table class="Table5" cellpadding="0" cellspacing="0" >
                            <div class="CaptionContainer" >
                                <div class="CaptionInnerContainer" > 
                                    <span class="CaptionEdgeLeftTop" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);" /></span>
                                    <span class="CaptionEdgeRightTop" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);" /></span>
                                    <span class="CaptionBorderTop" style="background-image:url(' . $layout_name . '/images/global/content/table-headline-border.gif);" ></span> 
                                    <span class="CaptionVerticalLeft" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-vertical.gif);" /></span>                                
                                    <div class="Text" >Create New Account</div>
                                    <span class="CaptionVerticalRight" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-vertical.gif);" /></span>
                                    <span class="CaptionBorderBottom" style="background-image:url(' . $layout_name . '/images/global/content/table-headline-border.gif);" ></span> 
                                    <span class="CaptionEdgeLeftBottom" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);" /></span>
                                    <span class="CaptionEdgeRightBottom" style="background-image:url(' . $layout_name . '/images/global/content/box-frame-edge.gif);" /></span>
                                </div>
                            </div>';
            //Account
            $main_content .= '
                            <tr>
                                <td>
                                    <div class="InnerTableContainer" >
                                        <table style="width:100%;" >
                                            <tr>
                                                <td>
                                                    <div class="TableShadowContainerRightTop" >
                                                        <div class="TableShadowRightTop" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rt.gif);" ></div>
                                                    </div>
                                                    <div class="TableContentAndRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rm.gif);" >
                                                        <div class="TableContentContainer" >
                                                            <table class="TableContent" width="100%"  style="border:1px solid #faf0d7;" >
                                                                <tr>
                                                                    <td class="LabelV150" >
                                                                        <span id="accountname_label"' . (isset($e['acc']) ? ' class="red"' : '') . ' >Account Name:</span>
                                                                    </td>                                                                    
                                                                    <td>
                                                                        <input id="accountname" 
                                                                        name="accountname" 
                                                                        class="CipAjaxInput" 
                                                                        style="width:206px;float:left;" 
                                                                        value="' . (isset($_POST['accountname']) ? htmlspecialchars(substr($_POST['accountname'], 0, 30)) : '') . '" 
                                                                        size="30" 
                                                                        maxlength="30" 
                                                                        onBlur="SendAjaxCip({DataType: \'Container\'}, {Href: \'./ajax_account.php\',PostData: \'a_AccountName=\'+getElementById(\'accountname\').value,Method: \'POST\'});" />
                                                                        <div id="accountname_indicator" class="InputIndicator" style="background-image:url(' . $layout_name . '/images/global/general/' . (isset($e['acc']) ? 'n' : '') . 'ok.gif);" ></div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td></td>
                                                                    <td><span id="accountname_errormessage" class="FormFieldError">' . (isset($e['acc']) ? $e['acc'] : '') . '</span></td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="LabelV150" >
                                                                        <span id="email_label"' . (isset($e['email']) ? ' class="red"' : '') . '>Email Address:</span>
                                                                    </td>
                                                                    <td>
                                                                        <input id="email" name="email" class="CipAjaxInput" style="width:206px;float:left;" value="' . (isset($_POST['email']) ? htmlspecialchars(substr($_POST['email'], 0, 50)) : '') . '" size="30" maxlength="50" onBlur="SendAjaxCip({DataType: \'Container\'}, {Href: \'./ajax_email.php\',PostData: \'a_EMail=\'+encodeURIComponent(getElementById(\'email\').value),Method: \'POST\'});" />
                                                                        <div id="email_indicator" class="InputIndicator" style="background-image:url(' . $layout_name . '/images/global/general/' . ($_POST['step'] != 'docreate' || isset($e['email']) ? 'n' : '') . 'ok.gif);" ></div>
                                                                    </td>                                                                    
                                                                </tr>
                                                                <tr>
                                                                    <td></td>
                                                                    <td><span id="email_errormessage" class="FormFieldError">' . (isset($e['email']) ? $e['email'] : '') . '</span></td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="LabelV150" >
                                                                        <span id="password1_label"' . (isset($e['pass']) ? ' class="red"' : '') . '>Password:</span>
                                                                    </td>
                                                                    <td>
                                                                        <input id="password1" type="password" name="password1" style="width:206px;float:left;" value="' . (isset($_POST['password1']) ? htmlspecialchars(substr($_POST['password1'], 0, 30)) : '') . '" size="30" maxlength="30" onBlur="SendAjaxCip({DataType: \'Container\'}, {Href: \'./account/ajax_password.php\',PostData: \'a_Password1=\'+getElementById(\'password1\').value+\'&a_Password2=\'+getElementById(\'password2\').value,Method: \'POST\'});" />
                                                                        <div id="password1_indicator" class="InputIndicator" style="background-image:url(' . $layout_name . '/images/global/general/' . ($_POST['step'] != 'docreate' || isset($e['pass']) ? 'n' : '') . 'ok.gif);" ></div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="LabelV150" >
                                                                        <span id="password2_label"' . (isset($e['pass']) ? ' class="red"' : '') . '>Password Again:</span>
                                                                    </td>
                                                                    <td>
                                                                        <input id="password2" type="password" name="password2" style="width:206px;float:left;" value="' . (isset($_POST['password2']) ? htmlspecialchars(substr($_POST['password2'], 0, 30)) : '') . '" size="30" maxlength="30" onBlur="SendAjaxCip({DataType: \'Container\'}, {Href: \'./account/ajax_password.php\',PostData: \'a_Password1=\'+getElementById(\'password1\').value+\'&a_Password2=\'+getElementById(\'password2\').value,Method: \'POST\'});" />
                                                                        <div id="password2_indicator" class="InputIndicator" style="background-image:url(' . $layout_name . '/images/global/general/' . ($_POST['step'] != 'docreate' || isset($e['pass']) ? 'n' : '') . 'ok.gif);" ></div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td></td>
                                                                    <td><span id="password_errormessage" class="FormFieldError">' . (isset($e['pass']) ? $e['pass'] : '') . '</span></td>
                                                                </tr>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <script>
                                                        window.onload = function() {
                                                          SendAjaxCip({DataType: \'Container\'}, {Href: \'./ajax_account.php\',PostData: \'a_AccountName=\'+document.getElementById(\'accountname\').value,Method: \'POST\'});
                                                          SendAjaxCip({DataType: \'Container\'}, {Href: \'./ajax_email.php\',PostData: \'a_EMail=\'+encodeURIComponent(document.getElementById(\'email\').value),Method: \'POST\'});
                                                          SendAjaxCip({DataType: \'Container\'}, {Href: \'./ajax_email.php\',PostData: \'a_EMail=\'+encodeURIComponent(document.getElementById(\'email\').value),Method: \'POST\'});
                                                          SendAjaxCip({DataType: \'Container\'}, {Href: \'./account/ajax_password.php\',PostData: \'a_Password1=\'+document.getElementById(\'password1\').value+\'&a_Password2=\'+document.getElementById(\'password2\').value,Method: \'POST\'});
                                                          //SendAjaxCip({DataType: \'Container\'}, {Href: \'./account/ajax_password.php\',PostData: \'a_Password1=\'+document.getElementById(\'password1\').value+\'&a_Password2=\'+document.getElementById(\'password2\').value,Method: \'POST\'});
                                                            
                                                        
                                                        };
                                                    </script>
                                                    <div class="TableShadowContainer" >
                                                        <div class="TableBottomShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bm.gif);" >
                                                            <div class="TableBottomLeftShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bl.gif);" ></div>
                                                            <div class="TableBottomRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-br.gif);" ></div>
                                                        </div>
                                                    </div>
                                                </td>
                                            </tr>';
            $main_content .= '                                    
<tr>
                                     <tr>
                <td>
                    <div class="TableShadowContainerRightTop" >
                        <div class="TableShadowRightTop" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rt.gif);" ></div>
                    </div>
                    <div class="TableContentAndRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rm.gif);" >
                        <div class="TableContentContainer" >
                            <table class="TableContent" width="100%"  style="border:1px solid #faf0d7;" >
                                                    <tbody>
                                                    <tr>
                                                            <td class="LabelV150" valign="top"><span><b>World Type:</b></span></td>
                                                            <td>
                                                                <table width="40%">
                                                                    <tbody><tr>
                                                                        <td align="center"><img src="' . $layout_name . '/images/account/option_server_pvp_type_open.gif"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td align="center"><input type="radio" checked="checked"> <b>Open PvP</b></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td align="center">Killing other characters is possible, but restricted</td>
                                                                    </tr>
                                                                    </tbody></table><br>
                                                            </td>
                                                        </tr>
                                                        
                                                        <tr>
                                                                    <td valign="top"><span><b>World Name:</b></span></td>
                                                                    <td>Suggested world: <b>' . $config['server']['serverName'] . '</b> 
                                                                    <span>
                                                                    <span class="HelperDivIndicator" onMouseOver="ActivateHelperDiv($(this), \'Free premium game world:\', \'This game world free premium for players\', \'\');" onMouseOut="$(\'#HelperDivContainer\').hide();" >
                                                                        <image style="border:0px;" src="' . $layout_name . '/images/global/content/info.gif" />
                                                                        </span></span>
                                                                        <span>
                                                                    <span class="HelperDivIndicator" onMouseOver="ActivateHelperDiv($(this), \'Staff present in game world:\', \'On this game world, Staff blocks cheats from the game. The game world has been protected by Staff since its release.\', \'\');" onMouseOut="$(\'#HelperDivContainer\').hide();" >
                                                                        <image style="border:0px;" src="' . $layout_name . '/images/global/content/icon_battleyeinitial.gif" />
                                                                        </span></span>
                                                                    
                                                                    
                                                                    <br><small> [<a href="#">change game world</a>]</small><br><br></td>
                                                                    </tr>
                                                        
                                                        
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                        <div class="TableShadowContainer" >
                        <div class="TableBottomShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bm.gif);" >
                            <div class="TableBottomLeftShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bl.gif);" ></div>
                            <div class="TableBottomRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-br.gif);" ></div>
                        </div>
                    </div>
                </td>
            </tr>
        
        ';
            $main_content .= '
                                            <tr>
                                                <td>
                                                    <div class="TableShadowContainerRightTop" >
                                                        <div class="TableShadowRightTop" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rt.gif);" ></div>
                                                    </div>
                                                    <div class="TableContentAndRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-rm.gif);" >
                                                        <div class="TableContentContainer" >
                                                            <table class="TableContent" width="100%"  style="border:1px solid #faf0d7;" >
                                                                <tr>
                                                                    <td><b>Please select the following check box:</b></td>
                                                                </tr>
                                                                <tr>
                                                                    <td><input type="checkbox" name="agreeagreements" value="true"  onClick="if(this.checked == true) {  document.getElementById(\'agreeagreements_errormessage\').innerHTML = \'\';} else {  document.getElementById(\'agreeagreements_errormessage\').innerHTML = \'You have to agree to the ' . $config['server']['serverName'] . ' Rules in order to create an account!\';}"' . ($_POST['step'] == 'docreate' && !isset($e['rules']) ? ' checked="checked"' : '') . '/>
                                                                        I agree to the <a href="?subtopic=tibiarules" target="_blank" >' . $config['server']['serverName'] . ' Rules</a>.</td>
                                                                </tr>
                                                                <tr>
                                                                    <td><span id="agreeagreements_errormessage" class="FormFieldError">' . (isset($e['rules']) ? $e['rules'] : '') . '</span></td>
                                                                </tr>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="TableShadowContainer" >
                                                        <div class="TableBottomShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bm.gif);" >
                                                            <div class="TableBottomLeftShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-bl.gif);" ></div>
                                                            <div class="TableBottomRightShadow" style="background-image:url(' . $layout_name . '/images/global/content/table-shadow-br.gif);" ></div>
                                                        </div>
                                                    </div>
                                                </td>
                                            </tr>';
            $main_content .= '
                                        </table>
                                    </div>
                                </td>
                            </tr>';

            $main_content .= '
                        </table>
                    </div>
                    <br />
                    <center>
                        <table border="0" cellspacing="0" cellpadding="0" >
                        <tr>
                            <td style="border:0px;" >
                                <input type="hidden" name=step value=docreate >
                                <input type="hidden" name=noframe value= >
                                <div class="BigButton" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton.gif)" >
                                    <div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url(' . $layout_name . '/images/global/buttons/sbutton_over.gif);" ></div>
                                        <input class="ButtonText" type="image" name="Submit" alt="Submit" src="' . $layout_name . '/images/global/buttons/_sbutton_submit.gif" >
                                    </div>
                                </div>
                            </td>
                        <tr>
                    </form>
                </table>
            </center>
        </form>        
    </div>';

        } else {
            $reg_account = new Account();
            $reg_account->setName(strtoupper($_POST['accountname']));
            $reg_account->setPassword($_POST['password1']);
            $reg_account->setEMail($_POST['email']);
            $reg_account->setCreateDate(time());
            $reg_account->setCreateIP(Visitor::getIP());
            $reg_account->setFlag(Website::getCountryCode(long2ip(Visitor::getIP())));
            $reg_account->save();

            if ($config['site']['send_emails']) {
                $reg_name = $reg_account->getName();
                $reg_email = $reg_account->getEMail();
                $mailBody = '<html>
            <body>
            <h3>Your account name and password!</h3>
            <p>You or someone else registred on server <a href="' . $config['server']['url'] . '"><b>' . htmlspecialchars($config['server']['serverName']) . '</b></a> with this e-mail.</p>
            <p>Account name: <b>' . htmlspecialchars($reg_name) . '</b></p>            
            <br />
            <p>After login you can:</p>
            <li>Create new characters
            <li>Change your current password
            <li>Change your current e-mail
            </body>
            </html>

 

config.php

Spoiler

<?PHP
if ( ! function_exists('is_https'))
{
    function is_https()
    {
        if ( ! empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off')
        {
            return TRUE;
        }
        elseif (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) === 'https')
        {
            return TRUE;
        }
        elseif ( ! empty($_SERVER['HTTP_FRONT_END_HTTPS']) && strtolower($_SERVER['HTTP_FRONT_END_HTTPS']) !== 'off')
        {
            return TRUE;
        }

        return FALSE;
    }
}

$is_https = is_https();

if ($is_https) {
    $base_url = "https://" . $_SERVER['HTTP_HOST'];
    $base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']), "", $_SERVER['SCRIPT_NAME']);
} else {
    $base_url = "http://" . $_SERVER['HTTP_HOST'];
    $base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']), "", $_SERVER['SCRIPT_NAME']);
}

$config['base_url'] = $base_url;

# Using Ajax Field Validation, this is important if you want to use ajax check in your create account.
$config['site']['sqlHost'] = "127.0.0.1";
$config['site']['sqlUser'] = "root";
$config['site']['sqlPass'] = "";
$config['site']['sqlBD'] = "";

# Config Shop
$outfits_list = array();
$loyalty_title = array(
    50 => 'Scout',
    100 => 'Sentinel',
    200 => 'Steward',
    400 => 'Warden',
    1000 => 'Squire',
    2000 => 'Warrior',
    3000 => 'Keeper',
    4000 => 'Guardian',
    5000 => 'Sage
');
$config['shop']['newitemdays'] = 1;

/**
 * PAGSEGURO FIXED
 */
$config['pagseguro']['testing'] = true;
$config['pagseguro']['lightbox'] = true;
$config['pagseguro']['tokentest'] = "";

# Pagseguro configs
$config['pagseguro']['email'] = "";
$config['pagseguro']['token'] = "";
$config['pagseguro']['produtoNome'] = 'Tibia Coins';
$config['pagseguro']['urlRedirect'] =  $config['base_url'];
$config['pagseguro']['urlNotification'] = $config['base_url'].'retpagseguro.php';
$config['pagseguro']['offers'] = [
    500=>75,
    800=>125,
    1500=>250,
    2800=>500,
    4900=>1000
];

# Bank transfer data
$config['banktransfer']['bank'] = "";
$config['banktransfer']['agency'] = "";
$config['banktransfer']['account'] = "";
$config['banktransfer']['name'] = "";
$config['banktransfer']['operation'] = 003;

# PayPal configs
$config['paypal']['email'] = "";

# Social Networks
$config['social']['status'] = true;
$config['social']['facebook'] = "https://www.facebook.com/";

# Character Former name, time in days to show the former names
$config['site']['formerNames'] = 10;
$config['site']['formerNames_amount'] = 10;

# PAGE: characters.php
$config['site']['quests'] = array(
    "Demon Helmet" => 2213,
    "In Service of Yalahar" => 12279,
    "Pits Of Inferno" => 10544,
    "The Ancient Tombs" => 50220,
    "The Annihilator" => 2215,
    "The Demon Oak" => 1010,
    "Wrath Of The Emperor" => 12374
);

# PAGE: whoisonline.php
$config['site']['private-servlist.com_server_id'] = 0;

# Account Maker Config
$config['site']['serverPath'] = "";
$config['site']['encryptionType'] = 'sha1';
$config['site']['useServerConfigCache'] = false;
$towns_list = array(
    1 => 'VolkOT',
);

# Create Account Options
$config['site']['one_email'] = true;
$config['site']['create_account_verify_mail'] = false;
$config['site']['verify_code'] = true;
$config['site']['email_days_to_change'] = 3;
$config['site']['newaccount_premdays'] = 0;
$config['site']['send_register_email'] = true;
$config['site']['flash_client_enabled'] = false;

# Create Character Options
$config['site']['newchar_vocations'] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample');
$config['site']['newchar_towns'] = array(6);
$config['site']['max_players_per_account'] = 7;

# Emails Config
$config['site']['send_emails'] = false;
$config['site']['mail_address'] = "";
$config['site']['mail_senderName'] = "";
$config['site']['smtp_enabled'] = true;
$config['site']['smtp_host'] = "ssl://smtp.gmail.com";
$config['site']['smtp_port'] = 465;
$config['site']['smtp_auth'] = true;
$config['site']['smtp_user'] = "";
$config['site']['smtp_pass'] = "";
$config['site']['smtp_secure'] = true;

# PAGE: accountmanagement.php
$config['site']['send_mail_when_change_password'] = true;
$config['site']['send_mail_when_generate_reckey'] = true;
$config['site']['email_time_change'] = 7;
$config['site']['daystodelete'] = 7;

# PAGE: guilds.php
$config['site']['guild_need_level'] = 150;
$config['site']['guild_need_pacc'] = false;
$config['site']['guild_image_size_kb'] = 50;
$config['site']['guild_description_chars_limit'] = 2000;
$config['site']['guild_description_lines_limit'] = 6;
$config['site']['guild_motd_chars_limit'] = 250;

# PAGE: adminpanel.php
$config['site']['access_admin_panel'] = 3;

# PAGE: latestnews.php
$config['site']['news_limit'] = 6;

# PAGE: killstatistics.php
$config['site']['last_deaths_limit'] = 40;

# PAGE: team.php
$config['site']['groups_support'] = array(2, 3, 4, 5);

# PAGE: highscores.php
$config['site']['groups_hidden'] = array(3, 4, 5);
$config['site']['accounts_hidden'] = array(1);

# PAGE: lostaccount.php
$config['site']['email_lai_sec_interval'] = 180;

/**
 * DONATE CONFIG LIKE PAGASEGURO OLD_CONFIG
 * 100 = R$1,00 // 50 = TIBIA COINS COUNT
 *
 */
$config['donate']['offers'] = [
    500=>50,
    800=>125,
    1500=>250,
    2800=>500,
    4900=>1000
];
/**
 * configure your active payment method with this
 * TRUE = ACTIVE
 * FALSE = INACTIVE
 */
$config['paymentsMethods'] = [
    'pagseguro' => true,
    'paypal' => false,
    'transfer' => true
];

# Layout Config
$config['site']['layout'] = 'tibiacom';
$config['site']['vdarkborder'] = '#505050';
$config['site']['darkborder'] = '#D4C0A1';
$config['site']['lightborder'] = '#F1E0C6';
$config['site']['download_page'] = false;
$config['site']['serverinfo_page'] = true;

Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.

 

here.thumb.png.d898dcf5d9aa1950f7ca00c3c9132957.png

 

 

Editado por guilhermex1 (veja o histórico de edições)

redimensionado.png.f53d1acb320c73f7e18c7a0f288a48ed.png

 

 

Link para o post
Compartilhar em outros sites

isso se dá devido a database não ter os samples das vocations.

<?php

$assinatura = function($texto) {
	return $texto;
};

$assinatura('Eu ainda não tenho uma assinatura decente ):, php ♥');
?>

Meus sites.:

https://ferobraglobal.com/
https://codenome.com/
https://uam.codenome.com/

https://myci.myara.net/

 

Me ajuda no café:
http://picpay.me/ricardo.codenome

 

Link para o post
Compartilhar em outros sites
10 horas atrás, ricardo codenome disse:

isso se dá devido a database não ter os samples das vocations.

ja tinha verificado isso, tem sim as 4 Vocation + o Rook Sample

redimensionado.png.f53d1acb320c73f7e18c7a0f288a48ed.png

 

 

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.


  • Conteúdo Similar

    • Por Andersontatuador
      .Qual servidor ou website você utiliza como base? 
      Global Full 8.60 + Zao
      Qual o motivo deste tópico? 
      O site não esta adicionando os pontos na conta dos plays.
       
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       



    • Por A.Mokk
      .Qual servidor ou website você utiliza como base? 
      TFS 0.4
      Qual o motivo deste tópico? 
      Estou tendo um probleminha indelicado no meu site, gostaria de obter respostas aqui com voces que sao sempre muito eficientes e praticos.
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
       
    • Por thunmin
      .Qual servidor ou website você utiliza como base? 
      Canary
      Qual o motivo deste tópico? 
      Não consigo deixar ele automatico os players tem que confirmar o pagamento depois eu tenho que verificar se caiu pra depois eu confirmar e colocar as coins
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
    • Por Jordan422
      Faala Deuses do Tibia! Estou com um projeto sólido de um global old, mas to preso nessa parte do website viu.. Eu dou meu jeitinho mas ta chegando nas coisas avançadas que precisa daquele freelancer bacana para ajeitar umas páginas para mim! Já tenho as ideias, basta somente botar a mão na massa.. Quem estiver interessado por favor entrar em contato por mensagem aqui no Tibiaking mesmo ou preferencialmente pelo discord mythh9257 
       
    • Por moleza
      Para quem quer abrir um servidor antigo que roda em php5 e está com dificuldade com a configuração do linux, pode contratar um cpanel que contenha o php5 que facilita a configuração do site!!
       
      essa foi a minha solução!
       
      Resolvido !!
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo