Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Pessoal Estou com Uma Duvida Alguem Pode Me Ajudar Por Favor ? Se For Ajudar Vou Explicar Oks.

 

é assim Eu quero Colocar Uma vocação No Meu Site ( Não é gesior Oks.. é Modern Acc) Então Por Exemplo quando eu For No Meu Site, Eu vou Criar Conta crio minha conta normal, Ai quando eu For criar Meu Personagen Por Exemplo: Naruto,Sakura,Sasuke, Rock Lee, Madara e Entre Outros, Então Por Exemplo eu quero adicionar A vocação Temari Que Eu tenho No Jogo Já Só q Não da Para escolher No SIte Como Eu coloco Para colocar mais Vocações Para escolher Para começar o Jogo ???

         

Print : http://prntscr.com/6ab34m  

Viram ? Então Como eu faço para adicionar novas vocações ai ?  

                                           

RESUMINDO: Como Adcionar Vocações No Site

 

Obrg Não Esquecerei Do Rep +++ Por Favor Me Ajudem Até Vlw :D

 

 

Link para o post
Compartilhar em outros sites

O tópico foi movido para a área correta, preste mais atenção da próxima vez!

Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680

Este tópico foi movido:

De: "Tibia KingAtendimento Geral"

Para: "OTServSuporte OTServSuporte de WebSites"

Link para o post
Compartilhar em outros sites
  • 2 weeks later...

bom você terá que mecher em config.php createaccount.php porfavor poste os dois aqui para min criar um pequeno tuto para você entender como faz esse processo

 

obs: caso tiver dois createaccount.php poste os dois

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

Compre seus Scripts Agora totalmente seguro e de forma rápida, aceitamos também encomendas.

discord.gg/phJZeHa2k4

 

Projeto ATS (Naruto)

Informações Abaixo

Facebook

Youtube
Discord

 

Tutoriais / Conteúdos

Clique Aqui

Link para o post
Compartilhar em outros sites
  • 1 year later...
Em 11/03/2015 ás 15:26, Brunds disse:

bom você terá que mecher em config.php createaccount.php porfavor poste os dois aqui para min criar um pequeno tuto para você entender como faz esse processo

 

obs: caso tiver dois createaccount.php poste os dois

pode me ensinar

meu CONFIG.LUA

Spoiler

<?php
/*These configs are neccessary in order to make Modern AAC work.*/

/*URL of website including http:// and without slash at the end! */
$config['website'] = $config['website'] = 'http://'.$_SERVER['HTTP_HOST'] . '/'.trim(dirname($_SERVER['SCRIPT_NAME']), '/.\\');


/*Database information*/
$config['database']['host'] = "127.0.0.1";
$config['database']['login'] = "root";
$config['database']['password'] = "";
$config['database']['database'] = "naruto";

/*Name of server*/
$config['server_name'] = "NARUTO FIRE";

// Sistema automatico Pagseguro by tatu_hunter
// Seu email cadastrado no pagseguro
$config['pagseguro']['email'] = '[email protected]';

// Nome do Produto
$config['pagseguro']['produtoNome'] = 'Pontos VIP';

// Valor unitario do produto ou seja valor de cada ponto
// Exemplo de valores
// 100 = R$ 1,00
// 235 = R$ 2,35
// 4254 = R$ 42,54
$config['pagseguro']['produtoValor'] = '100'; 

// Token gerado no painel do pagseguro
$config['pagseguro']['token'] = 'EFEB3B4CA8914CB3963C3695A6947965';  
/*End of most important configs*/

/*List of cities, declare by using city ID and name eg. 2=>"Eternia City" etc.*/
$config['cities'] = array(1=>'Main City', 2=>'Second City');

/* Simple ticket system */
$config['newsTickerLimit'] = 4; 
$config['newsTickerWords'] = 4;  

/*List of vocation available to choose when creating new character*/
$config['vocations'] = array(1=>"Naruto", 13=>"Sasuke", 25=>"Lee", 34=>"Sakura", 50=>"Gaara", 70=>"Neji", 90=>"Kiba", 110=>"Shikamaru", 130=>"Hinata", 150=>"Tenten", 170=>"Itachi", 600=>"Madara", 235=>"Minato", 780=>"Hashirama", 750=>"Tobirama", 745=>"Kimimaro", 685=>"Shisui", 190=>"Killer Bee");


/*List of vocation that exists on server*/
$config['server_vocations'] = array(1=>"Naruto", 13=>"Sasuke", 25=>"Lee", 34=>"Sakura", 50=>"Gaara", 70=>"Neji", 90=>"Kiba", 110=>"Shikamaru", 130=>"Hinata", 150=>"Tenten", 170=>"Itachi", 600=>"Madara", 235=>"Minato", 780=>"Hashirama", 750=>"Tobirama", 745=>"Kimimaro", 685=>"Shisui", 190=>"Killer Bee");

/*List of promotions, the key is vocation without promotion*/
$config['promotions'] = array(1=>"Master Sorcerer", 2=>"Elder Druid", 3=>"Royal Paladin", 4=>"Elite Knight");

/*Resitricted names*/
$config['restricted_names'] = array("god", "gamemaster", "admin", "account manager");

/*Names with any of this value cannot be created*/
$config['invalidNameTags'] = array("god", "gm", "cm", "gamemaster", "hoster", "admin");


/*ID and names of worlds*/
$config['worlds'][0] = "Fogo";

// Enable multiworld by uncommenting this
//$config['worlds'][1] = "Second World";

/* Addresses of each server */
$config['servers'][0] = array('address'=>'127.0.0.1', 'port'=>7171, 'vapusid'=>'%VAPUS_ID%');

// Enable multiworld by uncommenting this
//$config['servers'][1] = array('address'=>'127.0.0.1', 'port'=>7173, 'vapusid' => 'XXX');

/*Groups that exists on server*/
$config['groups'] = array(0=>"Player", 1=>"Player", 2=>"Tutor", 3=>"Senior Tutor", 4=>"Gamemaster", 5=>"Community Manager", 6=>"God");


/*Names of vocations as in database as samples. First key is world id and second vocation id.*/
$config['newchar_vocations'][0][1] = "Naruto Sample";
$config['newchar_vocations'][0][13] = "Sasuke Sample";
$config['newchar_vocations'][0][25] = "Lee Sample";
$config['newchar_vocations'][0][34] = "Sakura Sample";
$config['newchar_vocations'][0][50] = "Gaara Sample";
$config['newchar_vocations'][0][70] = "Neji Sample";
$config['newchar_vocations'][0][90] = "Kiba Sample";
$config['newchar_vocations'][0][110] = "Shikamaru Sample";
$config['newchar_vocations'][0][130] = "Hinata Sample";
$config['newchar_vocations'][0][150] = "Tenten Sample";
$config['newchar_vocations'][0][170] = "Itachi Sample";
$config['newchar_vocations'][0][685] = "Shisui Sample";
$config['newchar_vocations'][0][600] = "Madara Sample";
$config['newchar_vocations'][0][235] = "Minato Sample";
$config['newchar_vocations'][0][745] = "Kimimaro Sample";
$config['newchar_vocations'][0][750] = "Tobirama Sample";
$config['newchar_vocations'][0][190] = "Bee Sample";
$config['newchar_vocations'][1][1] = "Naruto Sample";
$config['newchar_vocations'][13][13] = "Sasuke Sample";
$config['newchar_vocations'][25][25] = "Lee Sample";
$config['newchar_vocations'][34][34] = "Sakura Sample";
$config['newchar_vocations'][50][50] = "Gaara Sample";
$config['newchar_vocations'][70][70] = "Neji Sample";
$config['newchar_vocations'][90][90] = "Kiba Sample";
$config['newchar_vocations'][110][110] = "Shikamaru Sample";
$config['newchar_vocations'][130][130] = "Hinata Sample";
$config['newchar_vocations'][150][150] = "Tenten Sample";
$config['newchar_vocations'][170][170] = "Itachi Sample";
$config['newchar_vocations'][190][190] = "Bee Sample";
$config['newchar_vocations'][685][685] = "Shisui Sample";
$config['newchar_vocations'][600][600] = "Madara Sample";
$config['newchar_vocations'][235][235] = "Minato Sample";
$config['newchar_vocations'][745][745] = "Kimimaro Sample";
$config['newchar_vocations'][750][750] = "Tobirama Sample";


/*Don't show chaarcters with group id higher than*/
$config['players_group_id_block'] = 3;


/*Min. level to create guild*/
$config['levelToCreateGuild'] = 100;


/*Limit of latest deaths*/
$config['latestdeathlimit'] = 20;

/*Limit news per page*/
$config['newsLimit'] = 10;

/*Limit comments per page*/
$config['commentLimit'] = 10;

/*Template that should be used on website*/
$config['layout'] = "naruto";

/*Title of a website*/
$config['title'] = "NTO - Powered by Fellipe";


/*Premdays given when creating new account.*/
$config['premDays'] = 30;


/*Positions to start when creating character*/
$startPos['x'] = 1028;
$startPos['y'] = 912;
$startPos['z'] = 5;


/*Trigger password for scaffolding system.*/
$config['scaffolding_trigger'] = "password";

/*Minimum page access for admin priviliges*/
$config['adminAccess'] = 5;

/*Max threads per page*/
$config['threadsLimit'] = 10;

/*Max posts per page in a thread*/
$config['postsLimit'] = 10;

/*Time between posts*/
$config['timeBetweenPosts'] = 30;

/*Limit of submissions per page in bug tracker*/
$config['bugtrackerPageLimit'] = 10;

/*Limit of houses on listing page*/
$config['housesLimit'] = 10;

/*Level to buy house*/
$config['houseLevel'] = 50;

/*Lenght of housing auction in seconds*/
$config['houseAuctionTime'] = 604800;

/*Default timezone*/
$config['timezone'] = "Europe/London";

/*Allowed IPs to use command prompt in admin panel*/
$config['allowedToUseCMD'] = array("127.0.0.1", "localhost");

/* Path to your UI theme */
$config['UItheme'] = "smoothness/jquery-ui-1.7.2.custom.css";

/*Destination to guilds logos folder, must be writable.*/
$config['uploads'] = "/public/guild_logos/";

/* Status timeout (recheck if server is online) */
$config['statusTimeout'] = 1 + (5 * 60); // Default to 5min

/* Wrap words longer than */
$config['wrap_words'] = 80;

/*Limit comments per page in videos view*/
$config['videoCommentsLimit'] = 10;

/*Limit of videos to show while searching*/
$config['videoSearchLimit'] = 10;

/*Maximum amount of characters per account*/
$config['maxCharacters'] = 10;

/*Limit of inbox/outbox messages per page*/
$config['messagesLimit'] = 10;

/*Amount of names to be saved when looking for characters*/
$config['characterSearchLimit'] = 10;

/*Switch on Admin Window*/
$config['adminWindow'] = true;

/*Integrate facebook to AAC? (TRUE/FALSE)*/
$config['facebook'] = true;

/*Max amount of saved actions*/
$config['actionsCount'] = 15;

/*Player per page in hishscore */
$config['highscore']['per_page'] = 15;

/*Total players to show in highscores*/
$config['highscore']['total'] = 300;


/* Guild board creation */
$config['guildboardTitle'] = "Guildboard for %NAME%";
$config['guildboardDescription'] = "This is the guildboard for the great %NAME% guild!";

/* VAPus Settings */
$config['VAPusGraphStep'] = 1; // step * update time = time steps on graph, etc 6 with an update time of 10min = one hour

//Enable delay between creating characters
$config['characterDelay'] = true;

//Time between creating characters in seconds
$config['characterDelayTime'] = 240;

//Enable delay between creating accounts
$config['accountDelay'] = true;

//Time between creating accounts in seconds
$config['accountDelayTime'] = 240;

//Account restrictions
$config['restrictedAccounts'] = array('1'); 

############EVENTS############

# Event fired just after main framework to gain access to all features
$config['onLoad'] = array();

# Event fired after all finished loading no headers should be sent
$config['onReady'] = array();


#############################

/*
######################################################################################################################
 * Do not touch any of the configs below if you are not 100% sure what you are doing!
 * These are config to the engine, usually the default ones works well so no change needed for unexperienced users.
######################################################################################################################
*/
// Tiny hack to figure if we use Windows or not.
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') @define('USING_WINDOWS', 1);
else @define('USING_WINDOWS', 0);

if(USING_WINDOWS) $config['engine']['PHPversion'] = "5.3.0";
else $config['engine']['PHPversion'] = "5.3.0";
$config['engine']['indexPage'] = "index.php";
$config['engine']['uri_protocol'] = "AUTO";
$config['engine']['charSET'] = "UTF-8";
$config['engine']['enable_hooks'] = FALSE;
$config['engine']['permitted_uri_chars'] = "a-z 0-9~%.:_\-'+";
$config['engine']['enable_query_strings'] = FALSE;
$config['engine']['global_xss_filtering'] = TRUE;
$config['engine']['compress_output'] = FALSE;
$config['engine']['proxy_ip'] = "";
$config['engine']['autoload_libraries'] = array();
$config['engine']['autoload_helper'] = array();
$config['engine']['autoload_plugin'] = array();
$config['engine']['autoload_config'] = array();
$config['engine']['autoload_model'] = array();
$config['engine']['default_controller'] = "home";
$config['engine']['platforms'] = array('windows nt 6.0' => 'Windows Longhorn', 'windows nt 5.2' => 'Windows 2003', 'windows nt 5.0' => 'Windows 2000', 'windows nt 5.1' => 'Windows XP', 'windows nt 4.0' => 'Windows NT 4.0', 'winnt4.0' => 'Windows NT 4.0', 'winnt 4.0' => 'Windows NT', 'winnt' => 'Windows NT', 'windows 98' => 'Windows 98', 'win98' => 'Windows 98', 'windows 95' => 'Windows 95', 'win95' => 'Windows 95', 'windows' => 'Unknown Windows OS', 'os x' => 'Mac OS X', 'ppc mac' => 'Power PC Mac', 'freebsd' => 'FreeBSD', 'ppc' => 'Macintosh', 'linux' => 'Linux', 'debian' => 'Debian', 'sunos' => 'Sun Solaris', 'beos' => 'BeOS', 'apachebench' => 'ApacheBench', 'aix' => 'AIX', 'irix' => 'Irix', 'osf' => 'DEC OSF', 'hp-ux' => 'HP-UX', 'netbsd' => 'NetBSD', 'bsdi' => 'BSDi', 'openbsd' => 'OpenBSD', 'gnu' => 'GNU/Linux', 'unix' => 'Unknown Unix OS' );
$config['engine']['mobiles'] = array('mobileexplorer' => 'Mobile Explorer', 'palmsource' => 'Palm', 'palmscape' => 'Palmscape', 'motorola' => "Motorola", 'nokia' => "Nokia", 'palm' => "Palm", 'iphone' => "Apple iPhone", 'ipod' => "Apple iPod Touch", 'sony' => "Sony Ericsson", 'ericsson' => "Sony Ericsson", 'blackberry' => "BlackBerry", 'cocoon' => "O2 Cocoon", 'blazer' => "Treo", 'lg' => "LG", 'amoi' => "Amoi", 'xda' => "XDA", 'mda' => "MDA", 'vario' => "Vario", 'htc' => "HTC", 'samsung' => "Samsung", 'sharp' => "Sharp", 'sie-' => "Siemens", 'alcatel' => "Alcatel", 'benq' => "BenQ", 'ipaq' => "HP iPaq", 'mot-' => "Motorola", 'playstation portable' => "PlayStation Portable", 'hiptop' => "Danger Hiptop", 'nec-' => "NEC", 'panasonic' => "Panasonic", 'philips' => "Philips", 'sagem' => "Sagem", 'sanyo' => "Sanyo", 'spv' => "SPV", 'zte' => "ZTE", 'sendo' => "Sendo", 'symbian' => "Symbian", 'SymbianOS' => "SymbianOS", 'elaine' => "Palm", 'palm' => "Palm", 'series60' => "Symbian S60", 'windows ce' => "Windows CE", 'obigo' => "Obigo", 'netfront' => "Netfront Browser", 'openwave' => "Openwave Browser", 'mobilexplorer' => "Mobile Explorer", 'operamini' => "Opera Mini", 'opera mini' => "Opera Mini", 'digital paths' => "Digital Paths", 'avantgo' => "AvantGo", 'xiino' => "Xiino", 'novarra' => "Novarra Transcoder", 'vodafone' => "Vodafone", 'docomo' => "NTT DoCoMo", 'o2' => "O2", 'mobile' => "Generic Mobile", 'wireless' => "Generic Mobile", 'j2me' => "Generic Mobile", 'midp' => "Generic Mobile", 'cldc' => "Generic Mobile", 'up.link' => "Generic Mobile", 'up.browser' => "Generic Mobile", 'smartphone' => "Generic Mobile", 'cellphone' => "Generic Mobile" );
$config['engine']['robots'] = array('googlebot' => 'Googlebot', 'msnbot' => 'MSNBot', 'slurp' => 'Inktomi Slurp', 'yahoo' => 'Yahoo', 'askjeeves' => 'AskJeeves', 'fastcrawler' => 'FastCrawler', 'infoseek' => 'InfoSeek Robot 1.0', 'lycos' => 'Lycos' );
$config['engine']['browsers'] = array('Opera' => 'Opera', 'MSIE' => 'Internet Explorer', 'Internet Explorer' => 'Internet Explorer', 'Shiira' => 'Shiira', 'Firefox' => 'Firefox', 'Chimera' => 'Chimera', 'Phoenix' => 'Phoenix', 'Firebird' => 'Firebird', 'Camino' => 'Camino', 'Netscape' => 'Netscape', 'OmniWeb' => 'OmniWeb', 'Safari' => 'Safari', 'Mozilla' => 'Mozilla', 'Konqueror' => 'Konqueror', 'icab' => 'iCab', 'Lynx' => 'Lynx', 'Links' => 'Links', 'hotjava' => 'HotJava', 'amaya' => 'Amaya', 'IBrowse' => 'IBrowse' );
$config['engine']['mimes'] = array('hqx' => 'application/mac-binhex40', 'cpt' => 'application/mac-compactpro', 'csv' => array ('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel' ), 'bin' => 'application/macbinary', 'dms' => 'application/octet-stream', 'lha' => 'application/octet-stream', 'lzh' => 'application/octet-stream', 'exe' => 'application/octet-stream', 'class' => 'application/octet-stream', 'psd' => 'application/x-photoshop', 'so' => 'application/octet-stream', 'sea' => 'application/octet-stream', 'dll' => 'application/octet-stream', 'oda' => 'application/oda', 'pdf' => array ('application/pdf', 'application/x-download' ), 'ai' => 'application/postscript', 'eps' => 'application/postscript', 'ps' => 'application/postscript', 'smi' => 'application/smil', 'smil' => 'application/smil', 'mif' => 'application/vnd.mif', 'xls' => array ('application/excel', 'application/vnd.ms-excel', 'application/msexcel' ), 'ppt' => array ('application/powerpoint', 'application/vnd.ms-powerpoint' ), 'wbxml' => 'application/wbxml', 'wmlc' => 'application/wmlc', 'dcr' => 'application/x-director', 'dir' => 'application/x-director', 'dxr' => 'application/x-director', 'dvi' => 'application/x-dvi', 'gtar' => 'application/x-gtar', 'gz' => 'application/x-gzip', 'php' => 'application/x-httpd-php', 'php4' => 'application/x-httpd-php', 'php3' => 'application/x-httpd-php', 'phtml' => 'application/x-httpd-php', 'phps' => 'application/x-httpd-php-source', 'js' => 'application/x-javascript', 'swf' => 'application/x-shockwave-flash', 'sit' => 'application/x-stuffit', 'tar' => 'application/x-tar', 'tgz' => 'application/x-tar', 'xhtml' => 'application/xhtml+xml', 'xht' => 'application/xhtml+xml', 'zip' => array ('application/x-zip', 'application/zip', 'application/x-zip-compressed' ), 'mid' => 'audio/midi', 'midi' => 'audio/midi', 'mpga' => 'audio/mpeg', 'mp2' => 'audio/mpeg', 'mp3' => array ('audio/mpeg', 'audio/mpg' ), 'aif' => 'audio/x-aiff', 'aiff' => 'audio/x-aiff', 'aifc' => 'audio/x-aiff', 'ram' => 'audio/x-pn-realaudio', 'rm' => 'audio/x-pn-realaudio', 'rpm' => 'audio/x-pn-realaudio-plugin', 'ra' => 'audio/x-realaudio', 'rv' => 'video/vnd.rn-realvideo', 'wav' => 'audio/x-wav', 'bmp' => 'image/bmp', 'gif' => 'image/gif', 'jpeg' => array ('image/jpeg', 'image/pjpeg' ), 'jpg' => array ('image/jpeg', 'image/pjpeg' ), 'jpe' => array ('image/jpeg', 'image/pjpeg' ), 'png' => array ('image/png', 'image/x-png' ), 'tiff' => 'image/tiff', 'tif' => 'image/tiff', 'css' => 'text/css', 'html' => 'text/html', 'htm' => 'text/html', 'shtml' => 'text/html', 'txt' => 'text/plain', 'text' => 'text/plain', 'log' => array ('text/plain', 'text/x-log' ), 'rtx' => 'text/richtext', 'rtf' => 'text/rtf', 'xml' => 'text/xml', 'xsl' => 'text/xml', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'mpe' => 'video/mpeg', 'qt' => 'video/quicktime', 'mov' => 'video/quicktime', 'avi' => 'video/x-msvideo', 'movie' => 'video/x-sgi-movie', 'doc' => 'application/msword', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'word' => array ('application/msword', 'application/octet-stream' ), 'xl' => 'application/excel', 'eml' => 'message/rfc822' );
$config['engine']['doctypes'] = array('xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">', 'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">', 'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">', 'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">', 'html5' => '<!DOCTYPE html>', 'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">', 'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">', 'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">' );
$config['engine']['url_suffix'] = ".ide";
$config['engine']['sess_cookie_name'] = 'ci_session';
$config['engine']['sess_expiration'] = 7200;
$config['engine']['sess_encrypt_cookie'] = FALSE;
$config['engine']['sess_use_database'] = FALSE;
$config['engine']['sess_table_name'] = 'ci_sessions';
$config['engine']['sess_match_ip'] = FALSE;
$config['engine']['sess_match_useragent'] = TRUE;
$config['engine']['sess_time_to_update'] = 300;
$config['engine']['rewrite_short_tags'] = false;
if(USING_WINDOWS == 1) {
//Load management is not available on Windows.
$config['engine']['loadManagement'] = false;
} else {
//Load management is a maximum ammount of processes website is using. If the website is flooded it will drop connection with users outside this amount.
$config['engine']['loadManagement'] = false;
$config['engine']['maxLoad'] = 60;
}

/*
|--------------------------------------------------------------------------
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| If you have enabled error logging, you can set an error threshold to 
| determine what gets logged. Threshold options are:
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
|    0 = Disables logging, Error logging TURNED OFF
|    1 = Error Messages (including PHP errors)
|    2 = Debug Messages
|    3 = Informational Messages
|    4 = All Messages
|
| For a live site you'll usually only enable Errors (1) to be logged otherwise
| your log files will fill up very fast.
|
*/
$config['engine']['log_threshold'] = 0;


#DON'T TOUCH! DECLARING CONSTANS!
@DEFINE('LEVELTOCREATEGUILD', $config['levelToCreateGuild']);
@DEFINE('PREMDAYS', $config['premDays']);
@DEFINE('HOSTNAME', $config['database']['host']);
@DEFINE('USERNAME', $config['database']['login']);
@DEFINE('PASSWORD', $config['database']['password']);
@DEFINE('DATABASE', $config['database']['database']);
@DEFINE('WEBSITE', $config['website']);
?>
 

MEU CREATURE

Spoiler

<?php
require("system/system.php");
require("../config.php");
auth();
require("../system/application/libraries/POT/OTS.php");

/* Status types */
define('OK', 0);
define('MISSING_VAR', 1);
define('ACCOUNTNAME_TAKEN', 2);
define('UNKNOWN', 3);

/* Variable is missing? */
if(!isset($_GET['accountName']) || !isset($_GET['password']) || !isset($_GET['email'])) {
    die(json_encode(array('status'=>MISSING_VAR)));
}
    
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, array('host' => HOSTNAME, 'user' => USERNAME, 'database' => DATABASE, 'password' => PASSWORD));
$account = new OTS_Account();
$account->find($_GET['accountName']);

/* Account name taken? */
if($account->isLoaded()) {
    die(json_encode(array('status'=>ACCOUNTNAME_TAKEN)));
}
$name = $account->createNamed($_GET['accountName']);
$account->setPassword(sha1($_GET['password']));
$account->setEmail($_GET['email']);
$account->setCustomField('premdays', PREMDAYS);
try {
    $account->save();
}
catch(Exception $e) {
    die(json_encode(array('status'=>UNKNOWN, 'message'=>$e->getMessage())));
}
die(json_encode(array('status'=>OK, 'id'=>$account->getId())));
 

 

O rei de seu proprio destino é aquele que luta pela gloria do amanhã!
Discord : ZoR#9373


 

Link para o post
Compartilhar em outros sites

Man você tá recebendo essa opção por um select dentro da tag select em HTML basta você acrescentar esse

nome que você quer vou dar um exemplo:

 

                         <select name="cidade">
                        <option value="São Paulo" >São Paulo</option>
                        <option value="Rio de Janeiro" >Rio de Janeiro</option>

                        </select>

 

OBS: dentro da tag <option> coloque o nome que você quer quando o usuário selecionar esse campo será inserido no banco dados

e como a sua database  já tem um campo que está recolhendo esse select então não é preciso mexer no php. Deixe como ele se

encontra.. feito isso Acrescente só essa tag <option value="seunome">Seunome</option> dentro do select ache a tag <select value="">    </select>

 

Editado por emersontb (veja o histórico de edições)
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 Kill of sumoners
      olá sou o takezo e estou caminhando para desenvolver um novo ot de naruto 100% com sprites 45°, ja contamos com mais de 25 vocations, cliente com layout reformulado, som ambiente e em ataques, porem a staff conta apenas comigo e mais um amigo, vim aqui procurar pessoas que possam querer integrar a staff, sejam elas devs, designers, mappers entre outros, para mais informações entre em contato privado comigo, desde ja muito obrigado!
       
      https://gyazo.com/745b10c56f4571464645fdea192cf350
    • Por Baryon
      Boa noite amigos, estou aqui para apresentar meu projeto.
      Estou aqui no intuito de tentar desenvolver um ats baseado em naruto full perspectiva e com uso reduzido de bot, teremos um bot próprio que ira lhe auxiliar na cura e com espaço para 1 magia com finalidade de treino, assim focando que os players possam tentar se divertir jogando na mao tanto a parte pve como pvp do game (oque eu acho mais legal).
      O Servidor ja se encontra com alguns sistema sendo eles:
      ・Passe de batalha
      ・Painel de missoes 
      ・Village war
      ・Sistema de vilas
      ・Bingo book
      ・Autoloot
      ・Ninja procurado
      ・Painel de Dungeons
      ・ World Boss
      Nossas vocaçoes sao divididas em classes sendo elas:
       ・Shooters: Deidara, Gaara, Kankuro, Tenten, Sasori, Konan.
       ・Especialistas: Shikamaru, Nagato, Hashirama, Oonoki, Orochimaru.
       ・Assassinos: Asuma, Madara, Minato, Sasuke, Obito, Kisame.
       ・Suportes: Sakura, Shizune, Ino, Tsunade.
       ・Lutadores: Naruto, Kiba, Chouji, Lee, Neji, Hinata.
             (obs: ja temos por volta de mais 10 personagens "prontos" alem desses com foco em atualizações futuras)
       Atualmente apenas eu e mais uma pessoas estamos desenvolvendo o servidor e ambos trabalham o tempo ou seja nao temos tanto tempo disponivel entao estou em buscas de novas pessoas com certa experiencia para integrar a equipe tenho em mente 4 vagas disponiveis que sao: 1 Mapper, 1 Dev, 1 Designer, 1 Moderador (ficara em contato com a staff e interagindo em nosso discord, ficando por dentro das novidades e no inicio do game ira iniciar como tutor para auxiliar os players).
       Caso alguem tenha interessa em embarcar nessa aventura favor entrar em contato cmg pelo discord 😉 em breve estarei postando mais atualizaçoes do ot aqui!

       Nosso discord: https://discord.gg/pPTkbAnNSV
      Meu contato no discord: baryon1492



    • Por bolinhaoriginal
      Bom Dia Hoje Eu Estou Aki Para Dropar O NTO Alternative, Porque Voce Me Pergunta?, Simples O Mlk E Mt Pnc, Vejam Os Relatos:

      Menino De 14 Anos: bem no inicio dos ots eu um pequeno garfanhoto no começo de otserver estilo dbo,ndbo,nto ( fazia poketibia na epoca ) eu comecei com um dbozin conhecendo os sistemas e vocaçoes comecei com a base teach ( sem conhecimento nenhum em dbo ) eu comecei a divulgar no facebook o dbo e o oriental vem no meu pv e começa a me xingar ( motivo? nenhum ) na epoca nem liguei mais vale resaltar aki

      Vendendo Base Dropada: bom a base nto alternative foi dropada fazia um tempo e o oriental msm sabendo disso foi vender para uma pessoa que nao sabia que foi dropada e tentou vender ( ela conversou cmg a tempo ) prints a baixo:
       
      A Volta ( kaksdkaskdk ) : bom dps de mt tempo chega o menino oriental no meu pv perguntando se eu tenho um dbo, e qual base e, eu respondo pra ele, depois disso ele pergunta se eu ja tive a base alternative ( origens eu acho ) e depois disso fui pro pc falar com ele e ele começou a ser cuzaum ( oq normalmente e kk ) eu falei que tinha sim e ele pergunta quem mandou, eu falo que nao sou x9 e ele me ameaça falando que meu ot nao pega 1 on e fala que vai divulgar ( falando mal ) pros outros e me xinga de filho da puta, e dps disso eu falo pra ele o relato de anos atras e ele fala: fodase seu merda do caralho
      prints a baixo:
       
      so estou esperando permiçao para dropar a base dbo alternative bye bye aproveitem a base nto alternative

      Download https://www.mediafire.com/file/f6mvl23caxnwhsw/NTO_ALTERNATIVE.rar/file
      Virus Total: https://www.virustotal.com/gui/file/1862f15c7424ef72e19c603688f8f76d12dbd017919ebabb1751a9dfd99b39d6
    • Por Thiagodsw
      Olá galera do Tibia King !
      Venho por meio deste tópico, publicar a ultima versão do meu servidor derivado de Tibia NTO Battle.
       
      deixei para brincarem e verem sistemas, as sources não disponibilizarei nem o site. afinal é um projeto que fiz com carinho e está a venda as sources. Thogo#9713
       
      O que tem de diferente no NTO Battle ? 
       
      Aura System e Wings Healthbar Monster Bar Healthbar vocation Sistema Raridade Shaders Dungeons e Tasks Game Shop Entre outros Veja algumas Imagens !
       
       
      O que tem nesse Pacote de Arquivos NTO Battle? 
       
      Datapack mais recente e completa do servidor. ( compilada pra windows Client Compilado SQL
      ACC GOD - god/god


      QUALQUER MSG NO DISCORD Thogo#9713
      -source client e otserv e site.
       
      DOWNLOAD  &  SCAN


       
      Client:
      https://mega.nz/file/hbgnSDRJ#xQT-qQHWLUV2Dn8jalwMGblCWnmL0_s3rZfqbxO7znw
      Server:
      https://mega.nz/file/sSZXlZ6a#gow-Db6diNVrnnPIH7qyBqP8WmVLFxWy85-yub_f32Y


       
      Scan
      Client
      https://www.virustotal.com/gui/file/86da72135d75d826c2665bb572084c30288eea843c2cfe2f7a405cfe1ea2f59c/detection
      Servidor
      https://www.virustotal.com/gui/file/cfa4d83c8b6c12fa0daf28cefd6762a053aee7245e6be8f5c02594825a2e2c1e?nocache=1
    • Por Aizuuu
      Bom Dia, Aconteceu Algumas Tretas Num Projeto Chamado ( NTO GUARDIAN ) Onde Eu Estava Ajudando, Mais O Dono Sumiu Com Meu Dinheiro Que Investi E Também A Metade Do Dinheiro Dos Donate ( QUE ERA MEU ), Agora Vou Dropar O Mapa Para Vocês E Ensinar A Abrir!.

      Passo 1: Baixe O Mapa E Extraia.

      https://www.virustotal.com/gui/file/6e3c21ba4f84bab805c540836e217754d7a900a394e3ce31b42f06a794eb91bc?nocache=1
      https://www.mediafire.com/file/ro8sx5fhhz1xzdc/MapaNTO.rar/file

      Passo 2: Jogue o Items.otb/Items.xml No Remeres


      Passo 3: Abra Seu Remeres E Coloque O Client!

      Passo 4: Crie Um New Map E Abra O Mapa E Seja Feliz!


      fad17884d1b65fad540ec6f6604a2aa7.mp4
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo