Jump to content
Close

RAJADAO

Member
  • Content Count

    96
  • Joined

  • Last visited

About RAJADAO

  • Rank
    Igor
  • Birthday 05/11/1993

Profile Information

  • Gender
    Masculino
  • Localization
    Rio de Janeiro
  • I am
    OT-Admin
  • Interests
    Aprendizado e aprimoramento no ramo de otserver.

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Tem wtsp ? Te chamei nesse numero pelo wtsp.
  2. Tentei inserir no meu layout.php e não consegui, pode me ajudar ? È um gesior 2012. @victor4312
  3. Não apareceu, da uma olhada no layout.php como ficou se ta certo pfv. <?php if(!defined('INITIALIZED')) exit; ?> <!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"> <head> <title><?PHP echo $title ?> Alternative Tibia Server</title> <meta name="description" content="Antiqua 7.4 Alternative Tibia Server, Otserv(Tibia) é um jogo multiplayer online (MMORPG). Participe deste jogo fascinante que tem milhares de fãs de todo o mundo!" /> <meta name="author" content="Antiqua 7.4" /> <meta http-equiv="content-language" content="en" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <meta name="keywords" content="Antiqua Tibia Server, Servidor de otserv,Servidor de tibia, jogo gratis, jogo legal, free online game, free multiplayer game, free online rpg, free mmorpg, mmorpg, mmog, online role playing game, online multiplayer game, internet game, online rpg, rpg,tibia, br, tibiabr, downloads, magias, magic, brasil, tibiabrasil, macetes, tibiarpgbrasil, dicas, tibiagg, mapas, rpg, graphical mud, rpg, game, fantasy, medieval, roleplaying game, mmorpg, massively multiplayer, online game, persistent online game, online world, persistent online world, massively multi-user, massively multi user, multi-user-dungeon, multiuser dungeon, internet game, online spiel, internet spiel, rollenspiel, multiplayer spiel, multiplayer game, free game, kostenloses spiel, free internet game, free online game, Página Inicial" /> <?PHP echo $layout_header; ?> <link rel="stylesheet" type="text/css" href="<?php echo $layout_name; ?>/style.css" /> <link rel="stylesheet" type="text/css" href="<?php echo $layout_name; ?>/basic.css" /> <style> #facebook{ background: url('<?php echo $layout_name; ?>/images/facebook.png') no-repeat; position: fixed; top: 200px; right: 0px; height: 42px; width: 42px; } </style> <!-- Load MooTools 1.2.5 and needed Libraries--> <script type="text/javascript" src="<?php echo $layout_name; ?>/js/mootools.js"></script> <script type="text/javascript" src="<?php echo $layout_name; ?>/js/lang_switcher.js"></script> <script type="text/javascript" src="<?php echo $layout_name; ?>/js/statusbox.js"></script> <script type="text/javascript" src="<?PHP echo $layout_name; ?>/initialize.js"></script> <script type='text/javascript'> var IMAGES=0; IMAGES='<?PHP echo $layout_name; ?>/images'; var g_FormField=''; var LINK_ACCOUNT=0; LINK_ACCOUNT='';</script> </head> <script type="text/javascript"> function init() { initLanguageBox(); initStatusBox(); } window.onload = init; </script> <script type="text/javascript"> jQuery(document).ready(function($) { $('a[rel*=facebox]').facebox() }) $.facebox.settings.opacity = 0.7; </script> <script language="javascript"> <!-- function somente_numero(campo){ var digits="0123456789" var campo_temp for (var i=0;i<campo.value.length;i++){ campo_temp=campo.value.substring(i,i+1) if (digits.indexOf(campo_temp)==-1){ campo.value = campo.value.substring(0,i); } } } --> </script> <body> <div id="vt_page"> <div id="vt_header"> <div id="vt_lang_switcher" onmouseover="ShowLanguages();" onmouseout="HideLanguages();"> <div id="vt_active_language"> <div id="vt_language">English</div> <div id="vt_language_flag"><img src="<?php echo $layout_name; ?>/images/gb.png" alt="GB" /></div> </div> <ul id="vt_languages_list"> <a href="http://translate.google.com/translate?hl=en&sl=en&tl=pl&u=http://<?php echo $_SERVER['SERVER_NAME']; ?>/"> <li id="language_pl"> <div class="list_left">Polski</div> <div class="list_right"><img src="<?php echo $layout_name; ?>/images/pl.png" alt="PL" /></div> </li> </a> <a href="http://<?php echo $_SERVER['SERVER_NAME']; ?>"> <li id="language_eng"> <div class="list_left">English</div> <div class="list_right"><img src="<?php echo $layout_name; ?>/images/gb.png" alt="ENG" /></div> </li> </a> <a href="http://translate.google.com/translate?hl=en&sl=en&tl=pt&u=http://<?php echo $_SERVER['SERVER_NAME']; ?>/"> <li id="language_eng"> <div class="list_left">Portuguese</div> <div class="list_right"><img src="<?php echo $layout_name; ?>/images/br.png" alt="ENG" /></div> </li> </a> <a href="http://translate.google.com/translate?hl=en&sl=en&tl=sv&u=http://<?php echo $_SERVER['SERVER_NAME']; ?>/"> <li id="language_eng"> <div class="list_left">Swedish</div> <div class="list_right"><img src="<?php echo $layout_name; ?>/images/swe.png" alt="ENG" /></div> </li> </a> </ul> </div> </div> <script id="float_fb" src="<?=$layout_name?>/fb_float_plugin.js" data-href="<?=$config['social']['facebook']?>" async></script> <div id="vt_content"> <div id="vt_content_top"> <div id="vt_content_bot"> <div id="vt_container"> <div id="vt_content_header"> <img src="<?php echo $layout_name; ?>/images/sub.png" alt="" /> </div> <div id="vt_padding_box"> <div class="darkbox"> <div class="top"> <div class="bot"> <?php if($_GET['subtopic'] == 'latestnews' || $_GET['subtopic'] == '') echo $main_content; else echo '<div class="content">'.$main_content.'</div>'; ?> </div> </div> </div> </div> </div> <div id="vt_panel"> <div class="vt_status_box" onmouseover="ShowStatusBox(1);" onmouseout="HideStatusBox(1);"> <div class="vt_active_status"> <div class="vt_status_name"><?php echo $config['server']['serverName']; ?></div> <div class="vt_status_state online"><?php if($config['status']['serverStatus_online'] == 1){ ?><span class="online">ON</span><?php }else{ ?><span class="offline">OFF</span><?php } ?></div> </div> <div class="vt_status_info" id="server_status_1"> <?php if($config['status']['serverStatus_online'] == 1){ ?> <table cellpadding="3" cellspacing="0" border="0" width="100%"> <tr> <td><b>IP:</b></td> <td><?php echo $_SERVER['SERVER_NAME']; ?></td> </tr> <tr> <td><b>Status:</b></td> <td><span class="online">ONLINE</span></td> </tr> <tr> <td><b>Players:</b></td> <td><a class="pcountlink" href="?subtopic=whoisonline"> <?PHP if($config['status']['serverStatus_online'] == 1) echo $config['status']['serverStatus_players'].' Players Online'; else echo '<font color="red"><b>Server OFFLINE</b></font>'; ?></a></td> </tr> <tr> <td><b>Save:</b></td> <td> 5:00</td> </tr> </table> <div id="fbplikebox" style="right: -250px; top: 100px;"> <div class="fbplbadge"></div> <iframe src="http://www.facebook.com/plugins/likebox.php?href=https://www.facebook.com/antiqua74/?fref=ts/963936866981152?fref=tsref=hl&amp;width=250&amp;height=250&amp;colorscheme=light&amp;show_faces=true&amp;border_color=%23C4C4C4&amp;stream=false&amp;header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:250px;background:#FFFFFF;" allowtransparency="true"></iframe> </div> <?php }else{ ?> <table cellpadding="3" cellspacing="0" border="0" width="100%"> <tr> <td><b>IP:</b></td> <td><?php echo $_SERVER['SERVER_NAME']; ?></td> </tr> <tr> <td><b>Status:</b></td> <td><span class="offline">OFFLINE</span></td> </tr> </table> <?php } ?> </div> </div> <div id="vt_news_menu"> <div class="header"><img src="<?php echo $layout_name; ?>/images/menu_latestnews.png" alt="News"/></div> <div class="content"> <ul> <li><a href="?subtopic=latestnews">Latest News</a></li> <li><a href="?subtopic=archive">News Archive</a></li> </ul> </div> </div> <div id="vt_account_menu"> <div class="header"><img src="<?php echo $layout_name; ?>/images/menu_account.png" alt="Account"/></div> <div class="content"> <ul> <?php if($logged){ echo '<li><a href="?subtopic=accountmanagement">Account management</a></li>'; }else{ echo'<li><a href="?subtopic=accountmanagement">Login</a></li> <li><a href="?subtopic=createaccount">Create Account</a></li> <li><a href="?subtopic=lostaccount">Lost Account?</a></li>'; } echo ' <li><a href="?subtopic=downloads">Downloads </a></li>'; ?> </ul> </div> </div> <div id="vt_forum_menu"> <div class="header"><img src="<?php echo $layout_name; ?>/images/menu_community.png" alt="community" /></div> <div class="content"> <ul> <li><a href="?subtopic=characters">Characters</a></li> <li><a href="?subtopic=whoisonline">Who is Online?</a></li> <li><a href="?subtopic=highscores">Highscores</a></li> <li><a href="?subtopic=houses">Houses</a></li> <li><a href="?subtopic=guilds">Guilds</a></li> <li><a href="?subtopic=wars">Guild wars</a></li> <li><a href="?subtopic=killstatistics">Kill Statistics</a></li> <li><a href="?subtopic=team">Support</a></li> <li><a href="?subtopic=tasks">Task Informations</a></li> </ul> </div> </div> <div id="vt_community_menu"> <div class="header"><img src="<?php echo $layout_name; ?>/images/menu_forum.png" alt="forum" /></div> <div class="content"> <ul> <li><a href="?subtopic=forum">Forum</a> </li> </ul> </div> </div> <div id="vt_library_menu"> <div class="header"><img src="<?php echo $layout_name; ?>/images/menu_library.png" alt="Library" /></div> <div class="content"> <ul> <li><a href="?subtopic=tibiarules">Rules</a></li> <li><a href="?subtopic=serverinfo">Server Information</a></li> <li><a href="?subtopic=experiencetable">Experience Table</a></li> </ul> </div> </div> <div id="vt_shop_menu"> <div class="header"><img src="<?php echo $layout_name; ?>/images/menu_shops.png" alt="Sklep" /></div> <div class="content"> <ul> <li><a href="?subtopic=buypoints">Donate</a></li> <li><a href="?subtopic=shopsystem">Shop</a></li> </ul> </div> </div> </div> </div> </div> <a href="https://www.facebook.com/antiqua74/" target="_blank"><div id="facebook"></div></a> </div> <div id="vt_footer"> <p>Copyright &copy; 2015 <a href="index.php"><?php echo $config['server']['serverName']; ?></a>. All rights reserved.</p> </div> </div> </body> </html>
  4. Então, eu to com esse aqui tbm <div id="fbplikebox" style="right: -250px; top: 100px;"> <div class="fbplbadge"></div> <iframe src="http://www.facebook.com/plugins/likebox.php?href=https://www.facebook.com/NOMEDOSEUOT/?fref=ts/963936866981152?fref=tsref=hl&amp;width=250&amp;height=250&amp;colorscheme=light&amp;show_faces=true&amp;border_color=%23C4C4C4&amp;stream=false&amp;header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:250px;background:#FFFFFF;" allowtransparency="true"></iframe></div> só não sei onde tem que colocar pra ele ficar no canto da pagina >> como na foto.for Ai ele fornece o codigo e fala que tem que colocar em layout.php, mas onde exatamente ?
  5. Foi mano, brigadão, eu queria add um botao daqueles que fica na lateral >>> quando rola a pagina ele sobe e desce junto, pode me ajudar a botar ele lá no site ? se não for te atrapalhar eh claro, ja ajudou bastante rep+ e como assim o site ta com loop infinito mano ? Como resolve isso ? o.o
  6. <?PHP header("Content-Type: text/html; charset=ISO-8859-1",true); date_default_timezone_set('America/Sao_Paulo'); // top kills - guilds $main_content .= '<center><div class="NewsHeadline"> <div class="NewsHeadlineBackground""> <table border="0"> <tr> <td style="text-align: center; font-weight: bold;"> <div class="fb-like fb_iframe_widget" data-href="https://www.facebook.com/antiqua74" data-layout="standard" data-action="like" data-show-faces="false" data-share="true" fb-xfbml-state="rendered" fb-iframe-plugin-query="action=like&amp;app_id=497232093667125&amp;container_width=720&amp;href=https%3A%2F%2Fwww.facebook.com%2FOldServbr&amp;layout=standard&amp;locale=en_US&amp;sdk=joey&amp;share=true&amp;show_faces=false"><span style="vertical-align: bottom; width: 450px; height: 20px;"><iframe name="f26839eaf9525ec" width="1000px" height="1000px" frameborder="0" allowtransparency="false" allowfullscreen="true" scrolling="no" title="fb:like Facebook Social Plugin" src="http://www.facebook.com/plugins/like.php?action=like&amp;app_id=497232093667125&amp;channel=http%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D42%23cb%3Df30dbf3dfeb5868%26domain%3DOldServbr.com%26origin%3Dhttp%253A%252F%252FOldServbr.com%252Ff38d449e4607c38%26relation%3Dparent.parent&amp;container_width=720&amp;href=https%3A%2F%2Fwww.facebook.com%2FOldServbr&amp;layout=standard&amp;locale=en_US&amp;sdk=joey&amp;share=true&amp;show_faces=false" style="border: none; visibility: visible; width: 550px; height: 30px;" class=""></iframe></span></div> <font color="white">Most powerfull guilds</font> </td> </tr> </table> </div> </div> <table border="0" cellspacing="3" cellpadding="4" width="100%"><tr>'; foreach($SQL->query('SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, COUNT(`g`.`name`) as `frags` FROM `players` p LEFT JOIN `player_deaths` pd ON `pd`.`killed_by` = `p`.`name` LEFT JOIN `guild_membership` gm ON `p`.`id` = `gm`.`player_id` LEFT JOIN `guilds` g ON `gm`.`guild_id` = `g`.`id` WHERE `g`.`id` > 0 AND `pd`.`unjustified` = 1 GROUP BY `name` ORDER BY `frags` DESC, `name` ASC LIMIT 4;') as $guild) $main_content .= '<td style="width: 25%; text-align: center;"><a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '"><img src="guild_image.php?id=' . $guild['id'] . '" width="64" height="64" border="0"/> <br />' . $guild['name'] . '</a><br />' . $guild['frags'] . ' kills </td>'; $main_content .= '</tr></table></center>'; //######################## SHOW TICKERS AND NEWS ####################### if ($logged){ $players_from_account = $SQL->query("SELECT `players`.`name`, `players`.`id` FROM `players` WHERE `players`.`account_id` = ".(int) $account_logged->getId())->fetchAll(); foreach($players_from_account as $player) { $str .= '<option value="'.$player['id'].'"'; if($player['id'] == $char_id) $strt .= ' selected="selected"'; $str .= '>'.$player['name'].'</option>'; } } $time = time(); $news_content .= ' <div id="newsticker" class="Box"> <div class="Corner-tl" style="background-image: url('.$layout_name.'/images/content/corner-tl.gif);"></div> <div class="Corner-tr" style="background-image: url('.$layout_name.'/images/content/corner-tr.gif);"></div> <div class="Border_1" style="background-image: url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="BorderTitleText" style="background-image: url('.$layout_name.'/images/content/title-background-green.gif);"></div> <img class="Title" src="/images/head/News Ticker.png" alt="Contentbox headline" /> <div class="Border_2"> <div class="Border_3"> <div class="BoxContent" style="background-image: url('.$layout_name.'/images/content/scroll.gif);">'; //##################### ADD NEW TICKER ##################### if($action == "newticker") { if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $ticker_text = stripslashes(trim($_POST['new_ticker'])); $ticker_icon = (int) $_POST['icon_id']; if(empty($ticker_text)) { $news_content .= 'You can\'t add empty ticker.'; } else { if(empty($ticker_icon)) { $news_icon = 0; } $SQL->query('INSERT INTO '.$SQL->tableName('z_news_tickers').' (date, author, image_id, text, hide_ticker) VALUES ('.$SQL->quote($time).', '.$account_logged->getId().', '.$ticker_icon.', '.$SQL->quote($ticker_text).', 0)'); $news_content .= '<center><h2><font color="red">Added new ticker:</font></h2></center><hr/> <div id="newsticker" class="Box"> <div id="TickerEntry-1" class="Row" onclick=\'TickerAction("TickerEntry-1")\'> <div class="Odd"> <div class="NewsTickerIcon" style="background-image: url('.$layout_name.'/images/news/icon_'.$ticker['image_id'].'.gif);"></div> <div id="TickerEntry-1-Button" class="NewsTickerExtend" style="background-image: url('.$layout_name.'/images/general/plus.gif);"></div> <div class="NewsTickerText"> <span class="NewsTickerDate">'.date("j M Y", $time).' -</span> <div id="TickerEntry-1-ShortText" class="NewsTickerShortText">'; $news_content .= '<a href="index.php?subtopic=latestnews&action=deleteticker&id='.$time.'"><img src="'.$layout_name.'/images/news/delete.png" border="0"></a>'; $news_content .= short_text($ticker_text, 60).' </div> <div id="TickerEntry-1-FullText" class="NewsTickerFullText">'; $news_content .= '<a href="index.php?subtopic=latestnews&action=deleteticker&id='.$time.'"><img src="'.$layout_name.'/images/news/delete.png" border="0"></a>'; $news_content .= $ticker_text.' </div> </div> </div> </div> </div><hr/>'; } } else { $news_content .= 'You don\'t have admin rights. You can\'t add new ticker.'; } $news_content .= '<form action="index.php?subtopic=latestnews" METHOD="post"><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></form>'; } //#################### DELETE (HIDE only!) TICKER ############################ if($action == "deleteticker") { if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { header("Location: "); $date = (int) $_REQUEST['id']; $SQL->query('UPDATE '.$SQL->tableName('z_news_tickers').' SET hide_ticker = 1 WHERE '.$SQL->fieldName('date').' = '.$date.';'); $news_content .= '<center>News tickets with <b>date '.date("j M Y", $date).'</b> has been deleted.<form action="index.php?subtopic=latestnews" METHOD=post><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>'; } else { $news_content .= '<center>You don\'t have admin rights. You can\'t delete tickers.<form action="index.php?subtopic=latestnews" METHOD=post><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>'; } } //show tickers if any in database or not blocked (tickers limit = 0) $tickers = $SQL->query('SELECT * FROM `z_news_tickers` WHERE hide_ticker != 1 ORDER BY date DESC LIMIT 50;'); $number_of_tickers = 0; if(is_object($tickers)) { foreach($tickers as $ticker) { if(is_int($number_of_tickers / 2)) $color = "Odd"; else $color = "Even"; $tickers_to_add .= ' <div id="TickerEntry-'.$number_of_tickers.'" class="Row" onclick=\'TickerAction("TickerEntry-'.$number_of_tickers.'")\'> <div class="'.$color.'"> <div class="NewsTickerIcon" style="background-image: url('.$layout_name.'/images/news/icon_'.$ticker['image_id'].'.gif);"></div> <div id="TickerEntry-'.$number_of_tickers.'-Button" class="NewsTickerExtend" style="background-image: url('.$layout_name.'/images/general/plus.gif);"></div> <div class="NewsTickerText"> <span class="NewsTickerDate">'.date("j M Y", $ticker['date']).' -</span> <div id="TickerEntry-'.$number_of_tickers.'-ShortText" class="NewsTickerShortText">'; //if admin show button to delete (hide) ticker if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $tickers_to_add .= '<a href="index.php?subtopic=latestnews&action=deleteticker&id='.$ticker['date'].'"><img src="'.$layout_name.'/images/news/delete.png" border="0"></a>'; } $tickers_to_add .= short_text($ticker['text'], 60).'</div> <div id="TickerEntry-'.$number_of_tickers.'-FullText" class="NewsTickerFullText">'; //if admin show button to delete (hide) ticker if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $tickers_to_add .= '<a href="index.php?subtopic=latestnews&action=deleteticker&id='.$ticker['date'].'"><img src="'.$layout_name.'/images/news/delete.png" border="0"></a>'; } $tickers_to_add .= $ticker['text'].'</div> </div> </div> </div>'; $number_of_tickers++; } } if(!empty($tickers_to_add)) { //show table with tickers if($group_id_of_acc_logged >= $config['site']['access_admin_panel'] && $action!=newticker) $news_content .= '<script type="text/javascript"> var showednewticker_state = "0"; function showNewTickerForm() { if(showednewticker_state == "0") { document.getElementById("newtickerform").innerHTML = \'<form action="index.php?subtopic=latestnews&action=newticker" method="post" ><table border="0"><tr><td bgcolor="D4C0A1" align="center"><b>Select icon:</b></td><td><table border="0" bgcolor="F1E0C6"><tr><td><img src="'.$layout_name.'/images/news/icon_0.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_1.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_2.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_3.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_4.gif" width="20"></td></tr><tr><td><input type="radio" name="icon_id" value="0" checked="checked"></td><td><input type="radio" name="icon_id" value="1"></td><td><input type="radio" name="icon_id" value="2"></td><td><input type="radio" name="icon_id" value="3"></td><td><input type="radio" name="icon_id" value="4"></td></tr></table></td></tr><tr><td align="center" bgcolor="D4C0A1"><b>New<br>ticker<br>text:</b></td><td bgcolor="F1E0C6"><textarea name="new_ticker" rows="3" cols="45"></textarea></td></tr><tr><td><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" ></div></div></form><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><img class="ButtonText" id="AddTicker" src="'.$layout_name.'/images/buttons/_sbutton_cancel.gif" onClick="showNewTickerForm()" alt="AddTicker" /></div></div></td></tr></table>\'; document.getElementById("jajo").innerHTML = \'\'; showednewticker_state = "1"; } else { document.getElementById("newtickerform").innerHTML = \'\'; document.getElementById("jajo").innerHTML = \'<div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><img class="ButtonText" id="AddTicker" src="'.$layout_name.'/images/buttons/addticker.gif" onClick="showNewTickerForm()" alt="AddTicker" /></div></div>\'; showednewticker_state = "0"; } } </script><div id="newtickerform"></div><div id="jajo"><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><img class="ButtonText" id="AddTicker" src="'.$layout_name.'/images/buttons/addticker.gif" onClick="showNewTickerForm()" alt="AddTicker" /></div></div></div><hr/>'; //add tickers list $news_content .= $tickers_to_add; //koniec } $news_content .= '</div> </div> </div> <div class="Border_1" style="background-image: url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="CornerWrapper-b"><div class="Corner-bl" style="background-image: url('.$layout_name.'/images/content/corner-bl.gif);"></div></div> <div class="CornerWrapper-b"><div class="Corner-br" style="background-image: url('.$layout_name.'/images/content/corner-br.gif);"></div></div> </div>'; //end of tickers, news part //featured article //sem creditos do autor, apenas postado por Dhenyz Shady no X-tibia. $news_content .= ' <div id="news" class="Box"> <div class="Corner-tl" style="background-image:url('.$layout_name.'/images/content/corner-tl.gif);"></div> <div class="Corner-tr" style="background-image:url('.$layout_name.'/images/content/corner-tr.gif);"></div> <div class="Border_1" style="background-image:url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="BorderTitleText" style="background-image:url(layouts/tibiacom/images/content/title-background-green.gif);"></div> <img class="Title" src="/images/head/Featured Article.png" alt="Contentbox headline" /> <div class="Border_2"> <div class="Border_3"> <div class="BoxContent" style="background-image:url('.$layout_name.'/images/content/scroll.gif);"> <div id=\'TeaserThumbnail\'><img src="layouts/tibiacom/images/news/topitems.jpg" width=150 height=100 border=0 alt="" ALIGN=right hspace="10" /></div> <div id=\'TeaserText\'> <div style="position: relative; top: -9px; margin-bottom: -60px;"></br> <b><font size="5px"><center><b><font style="text-decoration: inherit; text-shadow:#000 1px -1px 2px, #000 -1px 1px 2px, #000 1px 1px 2px, #000 -1px -1px 2px" size="1px" color="white">| IP: <font color="#00FF00">www.warglobal.com.br</font> / Port: <font color="#00FF00">7171</font> / Client: <font color="#00FF00">10.51</font>/<font color="#00FF00">10.53</font> |</b></font></center><br></b><font size="2px">Seja bem vindo ao <b><font color="green">www.warglobal.com.br</font></b>, servidor feito especialmente para jogadores que gostam de um pvp up. Oferecemos quests, outfits e quest sem algumas missoes, temos uma boa jogabilidade e estabilidade que poucos ots tem, esperamos que goste.<br><br><br><br> </font> </div> </div> </div> </div> </div> <div class="Border_1" style="background-image: url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="CornerWrapper-b"><div class="Corner-bl" style="background-image: url('.$layout_name.'/images/content/corner-bl.gif);"></div></div> <div class="CornerWrapper-b"><div class="Corner-br" style="background-image: url('.$layout_name.'/images/content/corner-br.gif);"></div></div> </div> '; //Fim do featured Article //adding news if($action == "newnews") { if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $text = ($_REQUEST['text']); $char_id = (int) $_REQUEST['char_id']; $post_topic = stripslashes(trim($_REQUEST['topic'])); $smile = (int) $_REQUEST['smile']; $news_icon = (int) $_REQUEST['icon_id']; if(empty($news_icon)) { $news_icon = 0; } if(empty($post_topic)) { $an_errors[] .= 'You can\'t add news without topic.'; } if(empty($text)) { $an_errors[] .= 'You can\'t add empty news.'; } if(empty($char_id)) { $an_errors[] .= 'Select character.'; } //execute query if(empty($an_errors)) { $SQL->query("INSERT INTO `z_forum` (`id` ,`first_post` ,`last_post` ,`section` ,`replies` ,`views` ,`author_aid` ,`author_guid` ,`post_text` ,`post_topic` ,`post_smile` ,`post_date` ,`last_edit_aid` ,`edit_date`, `post_ip`, `icon_id`) VALUES ('NULL', '0', '".time()."', '1', '0', '0', '".$account_logged->getId()."', '".(int) $char_id."', ".$SQL->quote($text).", ".$SQL->quote($post_topic).", '".(int) $smile."', '".time()."', '0', '0', '".$_SERVER['REMOTE_ADDR']."', '".$news_icon."')"); $thread_id = $SQL->lastInsertId(); $SQL->query("UPDATE `z_forum` SET `first_post`=".(int) $thread_id." WHERE `id` = ".(int) $thread_id);//show added data $main_content .= '<form action="index.php?subtopic=latestnews" METHOD=post><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></form>'; } else { //show errors $main_content .= '<div class="SmallBox" > <div class="MessageContainer" > <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="ErrorMessage" > <div class="BoxFrameVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="BoxFrameVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="AttentionSign" style="background-image:url('.$layout_name.'/images/content/attentionsign.gif);" /></div><b>The Following Errors Have Occurred:</b><br/>'; foreach($an_errors as $an_error) { $main_content .= '<li>'.$an_error; } $main_content .= '</div> <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> </div></div><br/>'; //okno edycji newsa z wpisanymi danymi przeslanymi wczesniej $main_content .= '<form action="index.php?subtopic=latestnews&action=newnews" method="post" ><table border="0"><tr><td bgcolor="D4C0A1" align="center"><b>Select icon:</b></td><td><table border="0" bgcolor="F1E0C6"><tr><td><img src="'.$layout_name.'/images/news/icon_0.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_1.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_2.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_3.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_4.gif" width="20"></td></tr><tr><td><input type="radio" name="icon_id" value="0" checked="checked"></td><td><input type="radio" name="icon_id" value="1"></td><td><input type="radio" name="icon_id" value="2"></td><td><input type="radio" name="icon_id" value="3"></td><td><input type="radio" name="icon_id" value="4"></td></tr></table></td></tr><tr><td align="center" bgcolor="F1E0C6"><b>Topic:</b></td><td><input type="text" name="topic" maxlenght="50" style="width: 300px" value="'.$post_topic.'"></td></tr><tr><td align="center" bgcolor="D4C0A1"><b>News<br>text:</b></td><td bgcolor="F1E0C6"><textarea name="text" rows="6" cols="60">'.$text.'</textarea></td></tr><tr><td width="180"><b>Character:</b></td><td><select name="char_id"><option value="0">(Choose character)</option>'.$str.'</select></td></tr><tr><td><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" ></div></div></form><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><img class="ButtonText" id="CancelAddNews" src="'.$layout_name.'/images/buttons/_sbutton_cancel.gif" onClick="location.href=\'index.php?subtopic=latestnews\';" alt="CancelAddNews" /></div></div></td></tr></table>'; } } else { $main_content .= 'You don\'t have site-admin rights. You can\'t add news.';} } //####################Show script with new news panel############################ if($group_id_of_acc_logged >= $config['site']['access_admin_panel'] && $action != 'newnews') { $main_content .= ' <font style="font-size: 16px; font-weight: bold; margin-left: 20px;">New News</font> <form action="index.php?subtopic=latestnews&action=newnews" method="post" > <table border="0"> <tr> <td bgcolor="D4C0A1" align="center"><b>Select icon:</b></td> <td> <table border="0"> <tr bgcolor="F1E0C6"> <td><img src="'.$layout_name.'/images/news/icon_0.gif" width="20"></td> <td><img src="'.$layout_name.'/images/news/icon_1.gif" width="20"></td> <td><img src="'.$layout_name.'/images/news/icon_2.gif" width="20"></td> <td><img src="'.$layout_name.'/images/news/icon_3.gif" width="20"></td> <td><img src="'.$layout_name.'/images/news/icon_4.gif" width="20"></td> </tr> <tr bgcolor="D4C0A1"> <td><input type="radio" name="icon_id" value="0" checked="checked"></td> <td><input type="radio" name="icon_id" value="1" /></td> <td><input type="radio" name="icon_id" value="2" /></td> <td><input type="radio" name="icon_id" value="3" /></td> <td><input type="radio" name="icon_id" value="4" /></td> </tr> </table> </td> </tr> <tr> <td align="center" bgcolor="F1E0C6"><b>Topic:</b></td> <td><input type="text" name="topic" maxlenght="50" style="width: 300px" ></td> </tr> <tr> <td align="center" bgcolor="D4C0A1"><b>News<br>text:</b></td> <td bgcolor="F1E0C6"><textarea name="text" rows="6" cols="50"></textarea></td> </tr> <tr> <td width="180"><b>Character:</b></td> <td><select name="char_id"><option value="0">(Choose character)</option>'.$str.'</select></td> </tr> <tr> <td> <div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" ></div></div></form></td></tr> </table> <hr/>'; $zapytanie = $SQL->query("SELECT `z_forum`.`icon_id`,`z_forum`.`post_topic`, `z_forum`.`author_guid`, `z_forum`.`post_date`, `z_forum`.`post_text`, `z_forum`.`id`, `z_forum`.`replies`, `players`.`name` FROM `z_forum`, `players` WHERE `section` = '1' AND `z_forum`.`id` = `first_post` AND `players`.`id` = `z_forum`.`author_guid` ORDER BY `post_date` DESC LIMIT 3;")->fetchAll(); } ///show news $announcements = $SQL->query("SELECT * FROM `announcements` WHERE id ORDER BY `date` DESC LIMIT 1"); foreach ($announcements as $announcementsRow){ $news_content .= '<div id="featuredarticle" class="Box"> <div class="Corner-tl" style="background-image:url('.$layout_name.'/images/content/corner-tl.gif);"></div> <div class="Corner-tr" style="background-image:url('.$layout_name.'/images/content/corner-tr.gif);"></div> <div class="Border_1" style="background-image:url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="BorderTitleText" style="background-image:url('.$layout_name.'/images/content/title-background-green.gif);"></div> <img class="Title" src="montaimg.php?text=Announcement" alt="Contentbox headline" /> <div class="Border_2"> <div class="Border_3"> <div class="BoxContent" style="background-image:url('.$layout_name.'/images/content/scroll.gif);"> <div id="TeaserThumbnail"><img src="images/news/announcement.jpg" width="150" height="100" border="0" alt="" /></div> <div id="TeaserText"> <div style="position: relative; margin-bottom: 2px;" > <div style="font-size:18px; font-weight:bold;">'.$announcementsRow['title'].'</div> </div> '.$announcementsRow['text'].' <br /> <br /> <small style="float: right;">Posted by <font color="red">'.$announcementsRow['author'].'</font> - '.date("d M Y", $announcementsRow['date']).'</small>'; if ($logged)if ($account_logged->getCustomField("page_access") > 6 ){ $news_content .='<input type="button" value="Deletar" OnClick="location.href=\'index.php?subtopic=cpanel&action=deletar_ann&id='.$announcementsRow['id'].'\'" />';} $news_content .=' </div> </div> </div> </div> <div class="Border_1" style="background-image:url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="CornerWrapper-b"><div class="Corner-bl" style="background-image:url('.$layout_name.'/images/content/corner-bl.gif);"></div></div> <div class="CornerWrapper-b"><div class="Corner-br" style="background-image:url('.$layout_name.'/images/content/corner-br.gif);"></div></div> </div> '; } // $zapytanie = $SQL->query("SELECT `z_forum`.`icon_id`,`z_forum`.`post_topic`, `z_forum`.`author_guid`, `z_forum`.`post_date`, `z_forum`.`post_text`, `z_forum`.`id`, `z_forum`.`replies`, `players`.`name` FROM `z_forum`, `players` WHERE `section` = '1' AND `z_forum`.`id` = `first_post` AND `players`.`id` = `z_forum`.`author_guid` ORDER BY `post_date` DESC LIMIT 6;")->fetchAll(); foreach ($zapytanie as $row) { $BB = array( '/\[youtube\](.*?)\[\/youtube\]/is' => '<center><object width="500" height="405"><param name="movie" value="http://www.youtube.com/v/$1&hl=pt-br&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/$1&hl=pt-br&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="405"></embed></object></center>', '/\[b\](.*?)\[\/b\]/is' => '<strong>$1</strong>', '/\[center\](.*?)\[\/center\]/is' => '<center>$1</center>', '/\[quote\](.*?)\[\/quote\]/is' => '<table cellpadding="0" style="background-color: #c4c4c4; width: 480px; border-style: dotted; border-color: #007900; border-width: 2px"><tr><td>$1</td></tr></table>', '/\[u\](.*?)\[\/u\]/is' => '<u>$1</u>', '/\[i\](.*?)\[\/i\]/is' => '<i>$1</i>', '/\[letter\](.*?)\[\/letter\]/is' => '<img src=images/letters/$1.gif alt=$1 />', '/\[url](.*?)\[\/url\]/is' => '<a href=$1>$1</a>', '/\[color\=(.*?)\](.*?)\[\/color\]/is' => '<span style="color: $1;">$2</span>', '/\[img\](.*?)\[\/img\]/is' => '<img src=$1 alt=$1 />', '/\[player\](.*?)\[\/player\]/is' => '<a href='.$server['ip'].'index.php?subtopic=characters&amp;name=$1>$1</a>', '/\[code\](.*?)\[\/code\]/is' => '<div dir="ltr" style="margin: 0px;padding: 2px;border: 1px inset;width: 500px;height: 290px;text-align: left;overflow: auto"><code style="white-space:nowrap">$1</code></div>' ); $message = preg_replace(array_keys($BB), array_values($BB), nl2br($row['post_text'])); $main_content .= ' <div class="NewsHeadline"> <div class="NewsHeadlineBackground" style=""> <center><h3><div class="NewsHeadlineText"><br>'.$row['post_topic'].'</div></h3></center> </div> </div> <table style=\'clear:both\' border=0 cellpadding=0 cellspacing=0 width=\'100%\'><tr> <td><img src="'.$layout_name.'/images/global/general/blank.gif" width=10 height=1 border=0 alt=\'\' /></td>'; if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $main_content .='<td width="100%">'.$message.'<br><p align="right"><a href="index.php?subtopic=forum&action=remove_post&id='.$row['id'].'"><font color="red">[Delete this news]</font></a> <a href="index.php?subtopic=forum&action=edit_post&id='.$row['id'].'"><font color="green">[Edit this news]</font></a>'; } else { $main_content .='<td width="100%">'.$message.'<br /><br />'; } $main_content .= '</td> <td><img src="'.$layout_name.'/images/global/general/blank.gif" width=10 height=1 border=0 alt=\'\' /></td> </tr></table>'; } ?>
  7. Como assim ? Não entendo nada de web =/ Entra pelo ip então, 158.69.131.119
  8. Consegui, cola seu server patch ai, vou tentar te ajudar, o site ta on da sua casa pelo xampp ou em algum host dedicado ?
  9. Então mano, não aparece a caneta (opção editar) nessa linha, como vc pode ver na print.
  10. Tipo Nome completo Valor TTL Ações A @ xxx.xxx.xxx.xxx 600 segundos CNAME www @ 1 hora Troco o @ pelo ip da minha maquina no host então ?
  11. Olá irmãos, eu tenho meu site hospedado junto de meu servidor em um cloud dedicado, comprei a poucos dias um dominio .com para meu site, só que não tenho nenhum conhecimento em como fazer o meu site funcionar pelo dominio, andei vendo alguns tutorias, tentei algumas coisas, mas continuo sem exito, alguém com conhecimento no assunto disposto a ajudar ? obrigado !

Open Tibia Server

Quer aprender a criar seu próprio servidor de Tibia? Então está no lugar certo, aqui você encontrará milhares de tutorias, scripts, códigos, mapas e utilitários para que você possa fazer o seu próprio servidor de Tibia partindo do zero.

Redes Sociais

Anuncie no Tibia King

Precisa de mais visibilidade em seus projetos? Quer publicidade para o seu servidor? Anuncie no Tibia King e faça sua divulgação, possuímos centenas de acessos simultâneos e milhares diários, com certeza será a sua solução! A publicação do seu anuncio é instantânea!

×
×
  • Create New...