Jogos Brasil

Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

2 participantes

    [Release] Pag De Config Do Seu Site

    Mr_PoPs
    Mr_PoPs
    Veterano
    Veterano


    Mensagens : 235
    Data de inscrição : 12/04/2010
    Especialidade : TQ-Binaryes

    [Release] Pag De Config Do Seu Site Empty [Release] Pag De Config Do Seu Site

    Mensagem  Mr_PoPs Sáb Abr 24, 2010 10:21 pm

    Aqui ta pra voces como configurar uma Pagina de registro do seu site, tem uns sites que vem com as config erradas ta aqui as certas Ó:
    Código:
    <?php
    //require_once './inc/class.captcha.php';
    // Configurations
    $myhost='localhost'; // MySQL database Nome Da Conection No Navicat
    $mypass='test'; // MySQL server
    $myuser='test'; // MySQL server

    $accdb='account_zf'; //Nome Da Suas DataBase
    //$accdb='account'; //Nome Da Suas DataBase ( Normalmente e Assim : account_zf ) Deletar o "_zf "
    $gamedb='zf'; //Seu Final da DataBase

    http://register.php
    $passhash=false; // definido como true se você deseja salvar hash de passar em vez de texto simples passar
    http://status.php
    $serveraddress='Ip Do Server'; //Server Ip
    $serverport=5816; //Server Conect Port
    $servername='Nome Do Server'; //Nome Do Seu Server

    http://ranks.php
    $tableSet=' width="440" border="1" align="center"'; // configurações ank tabelas de códigos html
    $limit=33; //records[lines/rows] limite para os postos da tabela
    $limit2=13; //records[lines/rows] limite para a metade de um quadro de classificação guilds



    // DON'T CHANGE ANYTHING BELOW THIS LINE
    // // // // // // // // // // // // // // // // // // // //
    // even more if u dont know what u r doing !!!
    $MySQL=mysql_connect($myhost,$myuser,$mypass);
    mysql_select_db($gamedb);

    // mainly ranks.php ...
    function prof ($val) { //params> int_proffesion returns>string_proffesion //made for prof and old_prof
    if ($val>9 && $val<16) return 'Trojan';
    if ($val>19 && $val<26) return 'Warrior';
    if ($val>39 && $val<46) return 'Archer';
    if ($val>99 && $val<102) return 'Taolist';
    if ($val>131 && $val<136) return 'Water';
    if ($val>141 && $val<146) return 'Fire';

    if ($val>0) return 'E> Taolist??';

    return (Empty($val) ? '' : 'Error'); // Quando a Prof Nao Esta Definida na Table
    }
    function pk ($val) { //params> int_pk returns>string_PKpoints
    if ($val>=1000) return '<font color="black"><b><u>'.$val.'</u></b></font>';
    if ($val>=100) return '<font color="black"><b>'.$val.'</b></font>'; // <font color="darkgreen">
    if ($val>=30 && $val<100) return '<font color="red">'.$val.'</font>';

    return $val; //I know ... lets say ... STANDART dot
    }
    function noble ($val,$cash) { //params> int_nobleNr. int_donated returns>string_nobleRank
    if ($val<4) return 'King/Queen';
    if ($val<16) return 'Prince';
    if ($val<51) return 'Duke';

    if ($cash>200000000) return 'Earl';
    if ($cash>100000000) return 'Baron';
    if ($cash>30000000) return 'Knight';

    return 'Error'; //Eu Sei...Digamos ... STANDART dot
    }

    /*
    <script type="text/javascript">
    function toggle(a,b) {
    a = document.getElementById(a);
    b = document.getElementById(b);
    var display = a.style.display ? '' : 'none';
    a.style.display = display;
    var displaydva = a.style.display ? 'block' : 'none';
    b.style.display = displaydva;
    }
    </script>
    <script type="text/javascript"> function Rshow(o) {
    var a = document.getElementByID('b'+o+'');
    a.style.display='none';
    document.getElementByID('row'+o+'').style.display= 'block';
    }
    function Rhide(o) {
    document.getElementByID('b'+o+'').style.display='b lock';
    var a = document.getElementByID('row'+o+'');
    a.style.display='none';
    } </script>
    */

    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <meta http-equiv="Content-Language" content="en-us" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Private Server</title>
    <script type="text/javascript" src="./inc/md5.js"></script>
    <link href="default.css" rel="stylesheet" type="text/css" />

    </head><body>
    <script type="text/javascript">
    function todd(a,b) {
    a = document.getElementById('row' + a + b);
    //var display = a.style.display ? '' : 'none';
    http://a.style.display = display;
    a.style.display='block';
    }
    </script>
    Creditos A Min
    Quem Gosto Da Thanks:D
    Ramix
    Ramix
    Moderador
    Moderador


    Mensagens : 1612
    Data de inscrição : 22/11/2009
    Especialidade : Halo Reach

    Personagem
    Experiência:
    [Release] Pag De Config Do Seu Site Left_bar_bleue1/1[Release] Pag De Config Do Seu Site Empty_bar_bleue  (1/1)

    [Release] Pag De Config Do Seu Site Empty Re: [Release] Pag De Config Do Seu Site

    Mensagem  Ramix Dom Abr 25, 2010 3:53 am

    wow isso e facil de fazer... so bastam tar atentos loool

      Data/hora atual: Dom maio 12, 2024 10:33 pm