Guest User

Untitled

a guest
Nov 29th, 2017
775
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.55 KB | None | 0 0
  1. <?
  2. // anti flood protection
  3. // Faz o include do arquivo da Classe PHP
  4. // anti flood protection
  5. if($_SESSION['last_session_request'] > time() - 1){
  6. // users will be redirected to this page if it makes requests faster than 2 seconds
  7. header("location: http://www.google.com.br/");
  8. exit;
  9. }
  10.  
  11.  
  12. require('_inc/header.php');
  13. mysql_set_charset('utf8');
  14. mysql_query("SET NAMES 'utf8'");
  15. mysql_query('SET character_set_connection=utf8');
  16. mysql_query('SET character_set_client=utf8');
  17. mysql_query('SET character_set_results=utf8');
  18. $usuario = $user['user'];
  19. $ipban = $_SERVER["REMOTE_ADDR"];
  20. $iii = mysql_query("SELECT IP FROM ipbanido WHERE IP = '$ipban'");
  21. $ipb = mysql_fetch_array($iii);
  22. if(mysql_num_rows($iii) == 1){ echo "Sistema em manutenção"; }else{
  23. ?>
  24.  
  25. <?
  26. $GBound = (isset($_GET['aarrowmodulea']) ? $_GET['aarrowmodulea'] : 'inicio') ;
  27.  
  28.  
  29. $folder = 'aaapagesiguunsdtale';
  30. $folder2 = 'aaapagesiguunsdtales-top';
  31. if(substr_count($GBound, '/') > 0){
  32. $GBound = explode('/', $GBound);
  33.  
  34. $pagina = (file_exists("{$folder}/".$GBound[0].".php")) ? $GBound[0]: 'nao-existe';
  35. $pagina2 = (file_exists("{$folder2}/".$GBound[0].".php")) ? $GBound[0]: 'nao-existe';
  36. }else{
  37. $pagina = (file_exists("{$folder}/".$GBound.".php")) ? $GBound: 'nao-existe';
  38. $pagina2 = (file_exists("{$folder2}/".$GBound.".php")) ? $GBound: 'nao-existe';
  39. }
  40. ?>
  41.  
  42. <?
  43. if($fbconnect == ''){}else{
  44.  
  45. $msqlx = mysql_query("SELECT * FROM user WHERE idFacebook='$fbconnect'");
  46. $msqlnum = mysql_num_rows($msqlx);
  47. if($msqlnum <= '0'){}else{
  48. $usere = mysql_query("SELECT * FROM user WHERE idFacebook='$fbconnect'");
  49. $user = mysql_fetch_array($usere);
  50.  
  51. $gamere = mysql_query("SELECT * FROM game WHERE Id='$user[Id]'");
  52. $game = mysql_fetch_array($gamere);
  53.  
  54.  
  55. $creditore = mysql_query("SELECT * FROM credito WHERE ID='$user[Id]'");
  56. $credito = mysql_fetch_array($creditore);
  57. $cashre = mysql_query("SELECT * FROM cash WHERE ID='$user[Id]'");
  58. $cash = mysql_fetch_array($cashre);
  59.  
  60. $usuario = $_SESSION['s_usuario'];
  61. }
  62.  
  63.  
  64. }
  65. if ($GBound[0] == 'logout'){
  66. session_destroy();
  67.  
  68. ?>
  69. <meta http-equiv="refresh" content="0; url=/">
  70. <?
  71.  
  72. }
  73.  
  74.  
  75. if (checasessao()){
  76. $gamere = mysql_query("SELECT * FROM game WHERE Id='$_SESSION[s_usuario]'");
  77. $game = mysql_fetch_array($gamere);
  78. $usere = mysql_query("SELECT * FROM user WHERE Id='$_SESSION[s_usuario]'");
  79. $user = mysql_fetch_array($usere);
  80.  
  81. $creditore = mysql_query("SELECT * FROM credito WHERE ID='$_SESSION[s_usuario]'");
  82. $credito = mysql_fetch_array($creditore);
  83. $cashre = mysql_query("SELECT * FROM cash WHERE ID='$_SESSION[s_usuario]'");
  84. $cash = mysql_fetch_array($cashre);
  85.  
  86. $usuario = $_SESSION['s_usuario'];
  87. }
  88.  
  89. // This call will always work since we are fetching public data.
  90.  
  91.  
  92. ?>
  93. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  94. <html xmlns="http://www.w3.org/1999/xhtml">
  95. <head>
  96. <?
  97. $title = ucwords(strtr($GBound[0], "-", " "));
  98. $title2 = ucwords(strtr($GBound[1], "-", " "));
  99.  
  100. ?>
  101.  
  102. <?PHP if (checasessao() || $fbconnect >= '1'){?>
  103. <?
  104. $mysql_rescue_number_friends = mysql_query("SELECT * FROM buddylist WHERE Id = '$user[user]' AND Viewed = '0'");
  105. $mysql_rescue_number_buddy = mysql_query("SELECT * FROM notifications WHERE Tipo_Nota = '2' AND Receptor_Nota = '$user[user]' AND Lido_Nota = '0'");
  106. $mysql_rescue_number_notifications = mysql_query("SELECT * FROM notifications WHERE Tipo_Nota = '3' AND Receptor_Nota = '$user[user]' AND Lido_Nota = '0'");
  107.  
  108. if ($mysql_rescue_number_friends && $mysql_rescue_number_buddy && $mysql_rescue_number_notifications)
  109. {
  110. $number_friends = mysql_num_rows($mysql_rescue_number_friends);
  111. $number_buddy = mysql_num_rows($mysql_rescue_number_buddy);
  112. $number_notifications = mysql_num_rows($mysql_rescue_number_notifications);
  113. $numbersTotal = $number_buddy + $number_buddy + $number_notifications;
  114. if($numbersTotal == '0'){
  115. $totalNotifications = '';
  116. }else{
  117. $totalNotifications = "(".$numbersTotal.")";
  118. }
  119. }
  120. ?>
  121. <?
  122. }
  123. ?>
  124. <title><? if($GBound[0] == 'noticias' || $GBound[0] == 'eventos'){
  125. $pegar = trim(strip_tags($GBound[1]));
  126. $c = mysql_query("SELECT * FROM comunidade_livre WHERE fid='$pegar'");
  127. $editarg = mysql_fetch_array($c);
  128. if(css == 'pt-br'){
  129. $restricao = array("<b>" => "", "</b>" => "", "<i>" => "","</i>" => "");
  130. $titlenew = trim(strip_tags(ucwords(strtr($editarg['topicoptbr'], $restricao))));
  131. $textonew = nl2br($editarg['textoptbr']);
  132. }
  133. if(css == 'en-us'){
  134. $restricao = array("<b>" => "", "</b>" => "", "<i>" => "","</i>" => "");
  135. $titlenew = trim(strip_tags(nl2br($editarg['topicoenus'])));
  136. $textonew = nl2br($editarg['textoenus']);
  137. }
  138. echo "".$titlenew." - GBClassico";
  139.  
  140. }else{if($pagina == 'nao-existe'){echo " GBClassico";}else{ if($GBound[0] == 'i'){echo pagetitle;}else{echo "".$totalNotifications." ".$title." ".$title2." - GBClassico";}}}?> </title>
  141. <meta charset="utf-8">
  142. <link rel="shortcut icon" href="favicon.ico">
  143. <link href="/css/skitter.styles.css" type="text/css" media="all" rel="stylesheet" />
  144. <link href="/css/main.css" rel="stylesheet" type="text/css" charset="utf-8"/>
  145. <meta name="keywords" content="gunbound, gunbound, gbwc, classico, GunBound, gb, gun gbound, g bound, jogos online, jogo, gbclassico, www.gunboundclassico.com.br">
  146. <meta name="description" content="GBClassico - Como nós velhos tempos">
  147. <link rel="stylesheet" type="text/css" href="/css/shadowbox.css">
  148. <link href="/js/skins/winter/winter.css" rel="stylesheet" type="text/css" charset="utf-8"/>
  149. <link href="/css/<?PHP echo css ?>.css" rel="stylesheet" type="text/css" charset="utf-8"/>
  150. <link href="/css/fonts/fonts-stylesheet.css" rel="stylesheet" type="text/css" charset="utf-8"/>
  151. <link type="text/css" href="/css/jquery.jscrollpane.css" rel="stylesheet" media="all" />
  152. <link href="/css/unitip.css" rel="stylesheet" type="text/css" media="screen" title="" charset="utf-8">
  153.  
  154. <script type="text/javascript" src="/js/jquery-1.6.3.min.js"></script>
  155. <script type="text/javascript" src="/js/unitip.js"></script>
  156. <script src="/js/jquery.spritely-0.6.js" type="text/javascript"></script>
  157. <script type="text/javascript" src="/js/jquery.easing.1.3.js"></script>
  158. <script type="text/javascript" src="/js/jquery.animate-colors-min.js"></script>
  159. <script type="text/javascript" src="/js/jquery.skitter.js"></script>
  160. <script type="text/javascript" src="/js/highlight.js"></script>
  161. <script type="text/javascript" src="/js/jquery.mousewheel.js"></script>
  162. <script type="text/javascript" src="/js/jquery.jscrollpane.min.js"></script>
  163. <script type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'] ?>/js/motiongallery.js"></script>
  164. <script type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'] ?>/js/functions2.0<?PHP echo css ?>.js"></script>
  165. <script type="text/javascript" src="/js/shadowbox.js"></script>
  166. <script type="text/javascript" src="/js/enscroll-0.4.2.min.js"></script>
  167. <script type="text/javascript">
  168. (function($) {
  169. $(document).ready(function() {
  170. $('#bird')
  171. .sprite({
  172. fps: 5,
  173. no_of_frames: 10,
  174. start_at_frame: 1,
  175.  
  176.  
  177. })
  178.  
  179. });
  180. })(jQuery);
  181.  
  182.  
  183. </script>
  184.  
  185. <script>
  186. $(document).ready(function(){
  187. $('.content-area').jScrollPane({
  188. horizontalGutter:5,
  189. verticalGutter:5,
  190. 'showArrows': false
  191. });
  192.  
  193. $('.jspDrag').hide();
  194. $('.jspScrollable').mouseenter(function(){
  195. $('.jspDrag').stop(true, true).fadeIn('slow');
  196. });
  197. $('.jspScrollable').mouseleave(function(){
  198. $('.jspDrag').stop(true, true).fadeOut('slow');
  199. });
  200.  
  201. });
  202. </script>
  203.  
  204. <style type="text/css">
  205. .content-area{
  206. height:300px;
  207. }
  208. /*scrollpane custom CSS*/
  209. .jspVerticalBar {
  210. width: 8px;
  211. background: transparent;
  212. right:10px;
  213. }
  214.  
  215. .jspHorizontalBar {
  216. bottom: 5px;
  217. width: 100%;
  218. height: 8px;
  219. background: transparent;
  220. }
  221. .jspTrack {
  222. background: transparent;
  223. }
  224.  
  225. .jspDrag {
  226. background: url(/images/transparent-black.png) repeat;
  227. -webkit-border-radius:4px;
  228. -moz-border-radius:4px;
  229. border-radius:4px;
  230. }
  231.  
  232. .jspHorizontalBar .jspTrack,
  233. .jspHorizontalBar .jspDrag {
  234. float: left;
  235. height: 100%;
  236. }
  237.  
  238.  
  239.  
  240. .jspCorner {
  241. display:none
  242. }
  243.  
  244.  
  245. </style>
  246. <script>(function(d, s, id) {
  247. var js, fjs = d.getElementsByTagName(s)[0];
  248. if (d.getElementById(id)) return;
  249. js = d.createElement(s); js.id = id;
  250. js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1&appId=410788779017897";
  251. fjs.parentNode.insertBefore(js, fjs);
  252. }(document, 'script', 'facebook-jssdk'));</script>
  253. <script type="text/javascript">
  254. <? if (!isset($_POST["codeenvio"])){?>
  255. var bese = false;
  256. <? }else{ ?>
  257. var bese = true;
  258. <? } ?>
  259.  
  260. function openCodigo(){
  261.  
  262.  
  263.  
  264. if (bese == false){
  265.  
  266.  
  267. $('#poup-senha').fadeToggle('slow', function() {
  268. bese = true;
  269.  
  270. });
  271. $('#popupCodigo').fadeIn('slow', function() {
  272. bese = true;
  273.  
  274. });
  275. }else{
  276. $('#poup-senha').fadeToggle('slow', function() {
  277. bese = false;
  278. });
  279. $('#popupCodigo').fadeToggle('fast', function() {
  280. bese = false;
  281. });
  282. }
  283. }
  284. </script>
  285. <script type="text/javascript">
  286. var he = true;
  287. function openEvent(){
  288. if (he == false){
  289. $('#poup-senha').fadeToggle('slow', function() {
  290. he = true;
  291. });
  292. $('#popupEvent').fadeIn('slow', function() {
  293. he = true;
  294. });
  295. }else{
  296. $('#poup-senha').fadeToggle('slow', function() {
  297. he = false;
  298. });
  299. $('#popupEvent').fadeToggle('fast', function() {
  300. he = false;
  301. });
  302. }
  303. }
  304. </script>
  305.  
  306. <script type="text/javascript">
  307. <? if (!isset($_POST["recoverypass"])){?>
  308. var uj = false;
  309. <? }else{ ?>
  310. var uj = true;
  311. <? } ?>
  312. function openSenha(){
  313. if (uj == false){
  314. $('#poup-senha').fadeToggle('slow', function() {
  315. uj = true;
  316. });
  317. $('#popupSenha').fadeIn('slow', function() {
  318. uj = true;
  319. });
  320. }else{
  321. $('#poup-senha').fadeToggle('slow', function() {
  322. uj = false;
  323. });
  324. $('#popupSenha').fadeToggle('fast', function() {
  325. uj = false;
  326. });
  327. }
  328. }
  329. </script>
  330. <script type="text/javascript">
  331. Shadowbox.init();
  332. </script>
  333. <script type="text/javascript">
  334.  
  335. var _gaq = _gaq || [];
  336.  
  337. _gaq.push(['_setAccount', 'UA-37350590-1']);
  338.  
  339. _gaq.push(['_trackPageview']);
  340.  
  341. (function() {
  342. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  343. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  344. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  345. })();
  346.  
  347. </script>
  348.  
  349. <?PHP if (checasessao() || $fbconnect >= '1'){?>
  350. <script type="text/javascript">
  351. function ajScreen(requirement, id_element) {
  352. var xmlhttp = null;
  353.  
  354. try
  355. {
  356. xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  357. }
  358. catch (e)
  359. {
  360. try
  361. {
  362. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  363. }
  364. catch (E)
  365. {
  366. xmlhttp = false;
  367. }
  368. }
  369.  
  370. if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
  371. {
  372. try
  373. {
  374. xmlhttp = new XMLHttpRequest();
  375. }
  376. catch (e)
  377. {
  378. xmlhttp = false;
  379. }
  380. }
  381.  
  382. if (!document.getElementById("dynamic-div-" + id_element.id))
  383. {
  384. var dynamic_div = document.createElement('div');
  385.  
  386. dynamic_div.id = "dynamic-div-" + id_element.id;
  387. dynamic_div.className = "dynamic_div_notifications";
  388.  
  389. var lol = true;
  390.  
  391. id_element.onmouseover = function(){ lol = true; }
  392. id_element.onmouseout = function(){ lol = false; }
  393.  
  394. dynamic_div.onblur = function()
  395. {
  396. if (!lol)
  397. {
  398. document.body.removeChild(document.getElementById("dynamic-div-" + id_element.id));
  399. document.body.removeChild(document.getElementById("dynamic-div-arrow-" + id_element.id));
  400. }
  401. }
  402.  
  403. var dynamic_arrow = document.createElement('div');
  404.  
  405. dynamic_arrow.id = "dynamic-div-arrow-" + id_element.id;
  406. dynamic_arrow.className = "dynamic_div_arrow";
  407.  
  408. dynamic_arrow.innerHTML = "<img src=\"/images/seta.png\" width=\"14\" height=\"9\" />";
  409. dynamic_div.innerHTML = "<center><img style=\"margin-top:65px;\" src=\"/images/load.gif\" width=\"35\" height=\"35\" /></center>";
  410.  
  411. document.body.appendChild(dynamic_arrow);
  412. document.body.appendChild(dynamic_div);
  413.  
  414.  
  415. dynamic_div.style.top = (id_element.offsetTop + id_element.offsetHeight + 15) + "px";
  416. dynamic_div.style.left = (document.getElementById('headerCenterMenu').offsetLeft + id_element.offsetLeft - dynamic_div.offsetWidth / 2 + id_element.offsetWidth / 2 + 5) + "px";
  417.  
  418. dynamic_arrow.style.top = (dynamic_div.offsetTop - dynamic_arrow.offsetHeight + 7) + "px";
  419. dynamic_arrow.style.left = (dynamic_div.offsetLeft + (dynamic_div.offsetWidth / 2) - 13) + "px";
  420. dynamic_arrow.style.zIndex = "9";
  421.  
  422.  
  423. }
  424. else
  425. {
  426. document.body.removeChild(document.getElementById("dynamic-div-" + id_element.id));
  427. document.body.removeChild(document.getElementById("dynamic-div-arrow-" + id_element.id));
  428. }
  429.  
  430. if (xmlhttp)
  431. {
  432. xmlhttp.onreadystatechange = function()
  433. {
  434. if (xmlhttp.readyState == 4)
  435. {
  436. if (xmlhttp.status == 200)
  437. {
  438. dynamic_div.innerHTML = xmlhttp.responseText;
  439. }
  440. }
  441. }
  442.  
  443. xmlhttp.open("GET", requirement);
  444. xmlhttp.setRequestHeader('Content-Type','text/xml');
  445. xmlhttp.setRequestHeader('encoding','ISO-8859-1');
  446. xmlhttp.send(null);
  447. }
  448. }
  449.  
  450. function clickUpdate(requirement) {
  451. var xmlhttp = null;
  452.  
  453. try
  454. {
  455. xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  456. }
  457. catch (e)
  458. {
  459. try
  460. {
  461. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  462. }
  463. catch (E)
  464. {
  465. xmlhttp = false;
  466. }
  467. }
  468.  
  469. if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
  470. {
  471. try
  472. {
  473. xmlhttp = new XMLHttpRequest();
  474. }
  475. catch (e)
  476. {
  477. xmlhttp = false;
  478. }
  479. }
  480.  
  481. if (xmlhttp)
  482. {
  483. xmlhttp.onreadystatechange = function()
  484. {
  485. if (xmlhttp.readyState == 4)
  486. {
  487. if (xmlhttp.status == 200)
  488. {
  489. // OK
  490. }
  491. }
  492. }
  493.  
  494. xmlhttp.open("GET", requirement);
  495. xmlhttp.setRequestHeader('Content-Type','text/xml');
  496. xmlhttp.setRequestHeader('encoding','ISO-8859-1');
  497. xmlhttp.send(null);
  498. }
  499. }
  500.  
  501. window.addEventListener('load', function(){
  502. var friends_element, buddy_element, notifications_element, number_friends_element, number_buddy_element, number_notifications_element;
  503.  
  504. friends_element = document.getElementById('friends-notice');
  505. buddy_element = document.getElementById('buddy-notice');
  506. notifications_element = document.getElementById('notifications-notice');
  507.  
  508. number_friends_element = document.getElementById('number-friends-notice');
  509. number_buddy_element = document.getElementById('number-buddy-notice');
  510. number_notifications_element = document.getElementById('number-notifications-notice');
  511.  
  512. // EVENT FRIENDS ELEMENT
  513.  
  514. friends_element.onclick = function()
  515. {
  516. if (number_friends_element)
  517. {
  518. number_friends_element.innerHTML = 0;
  519. number_friends_element.style.display = 'none';
  520. }
  521. ajScreen("/get_notify_by_type.php?type=1&player_id=<?=$user['user']?>", friends_element);
  522. if (document.getElementById("dynamic-div-" + buddy_element.id))
  523. {
  524. document.body.removeChild(document.getElementById("dynamic-div-" + buddy_element.id));
  525. document.body.removeChild(document.getElementById("dynamic-div-arrow-" + buddy_element.id));
  526. }
  527. if (document.getElementById("dynamic-div-" + notifications_element.id))
  528. {
  529. document.body.removeChild(document.getElementById("dynamic-div-" + notifications_element.id));
  530. document.body.removeChild(document.getElementById("dynamic-div-arrow-" + notifications_element.id));
  531. }
  532. }
  533.  
  534. // EVENT BUDDY ELEMENT
  535.  
  536. buddy_element.onclick = function()
  537. {
  538. if (number_buddy_element)
  539. {
  540. number_buddy_element.innerHTML = 0;
  541. number_buddy_element.style.display = 'none';
  542. }
  543. ajScreen("/get_notify_by_type.php?type=2&player_id=<?=$user['user']?>", buddy_element);
  544. if (document.getElementById("dynamic-div-" + friends_element.id))
  545. {
  546. document.body.removeChild(document.getElementById("dynamic-div-" + friends_element.id));
  547. document.body.removeChild(document.getElementById("dynamic-div-arrow-" + friends_element.id));
  548. }
  549. if (document.getElementById("dynamic-div-" + notifications_element.id))
  550. {
  551. document.body.removeChild(document.getElementById("dynamic-div-" + notifications_element.id));
  552. document.body.removeChild(document.getElementById("dynamic-div-arrow-" + notifications_element.id));
  553. }
  554. }
  555.  
  556. // EVENT NOTIFICATIONS ELEMENT
  557.  
  558. notifications_element.onclick = function()
  559. {
  560. if (number_notifications_element)
  561. {
  562. number_notifications_element.innerHTML = 0;
  563. number_notifications_element.style.display = 'none';
  564. }
  565. ajScreen("/get_notify_by_type.php?type=3&player_id=<?=$user['user']?>", notifications_element);
  566. if (document.getElementById("dynamic-div-" + friends_element.id))
  567. {
  568. document.body.removeChild(document.getElementById("dynamic-div-" + friends_element.id));
  569. document.body.removeChild(document.getElementById("dynamic-div-arrow-" + friends_element.id));
  570. }
  571. if (document.getElementById("dynamic-div-" + buddy_element.id))
  572. {
  573. document.body.removeChild(document.getElementById("dynamic-div-" + buddy_element.id));
  574. document.body.removeChild(document.getElementById("dynamic-div-arrow-" + buddy_element.id));
  575. }
  576. }
  577. });
  578. </script>
  579.  
  580.  
  581. <?
  582. }
  583. ?>
  584.  
  585.  
  586.  
  587. <?PHP if (checasessao() || $fbconnect >= '1'){?>
  588.  
  589. <?
  590. }else{
  591. if($GBound[0] != 'forum' and $GBound[0] != 'noticias' and $GBound[0] != 'guia' and $GBound[0] != 'regras' and $GBound[0] != 'eventos' and $GBound[0] != 'guilds' and $GBound[0] != 'valida-email' and $GBound[0] != 'ranking' and $GBound[0] != 'download-game' and $GBound[0] != 'i' and $GBound[0] != 'registro' and $GBound[0] != 'halloweens'){
  592.  
  593. ?>
  594. <meta http-equiv="refresh" content="0; url=/registro/">
  595. <style type="text/css">
  596. body{background:none;}
  597. </style>
  598. <?
  599. exit;
  600. }
  601.  
  602. }?>
  603. <script>
  604. $(document).ready(function(){
  605.  
  606. $('.box_skitter_large').skitter({label: false, numbers: false});
  607. $('.box_skitter_small').skitter({label: false, numbers: false, interval: 1000});
  608. $('.box_skitter_medium').css({width: 500, height: 200}).skitter({navigation: false, dots: true, interval: 4000});
  609. $('.box_skitter_normal').css({width: 450, height: 280}).skitter({interval: 5000, hideTools: true, numbers: false, navigation: false, dots: true});
  610.  
  611. // Highlight
  612. $('pre.code').highlight({source:1, zebra:1, indent:'space', list:'ol'});
  613.  
  614. });
  615. </script>
  616. </head>
  617. <body class="home blog custom-font-enabled single-author speedo-popup-ready">
  618.  
  619. <div id="headerMenuTop">
  620. <div id="headerCenterMenu">
  621. <div id="headerMenuCenter">
  622. <div id="myslidemenu" class="jqueryslidemenu">
  623. <div class="logo" style="float:left;"> <a href="#" target="_blank">Radio</a></div>
  624. <div id="wrapper-notice">
  625. <div id="friends-notice">
  626. <?php
  627. if ($number_friends > 0) {
  628. ?>
  629. <div id="number-friends-notice"><?php echo $number_friends; ?></div>
  630. <?
  631. }
  632. ?>
  633. </div>
  634. <div class="line"></div>
  635. <div id="buddy-notice">
  636. <?php
  637. if ($number_buddy > 0) {
  638. ?>
  639. <div id="number-buddy-notice"><?php echo $number_buddy; ?></div>
  640. <?
  641. }
  642. ?>
  643. </div>
  644. <div class="line"></div>
  645. <div id="notifications-notice">
  646. <?php
  647. if ($number_notifications > 0) {
  648. ?>
  649. <div id="number-notifications-notice"><?php echo $number_notifications; ?></div>
  650. <?
  651. }
  652. ?>
  653. </div>
  654. </div>
  655. <ul>
  656. <li style="margin-left:58px; margin-top:8px;">
  657.  
  658. <div id="onlinePlayersTopbar">
  659. <div class="online-text">
  660. Online
  661. </div>
  662. </div>
  663. </li>
  664. </ul>
  665.  
  666.  
  667. <div style="float:right; width:275px;">
  668. <div id="facebookName">
  669. <div id="facebookTitle"><?php if ($fbconnect): ?><? echo bemvindoFB;?>, <span style="color:#3CBBE6;"><?=$user_profile['name']?><? endif; ?></span>
  670.  
  671. </div>
  672. </div>
  673. <div id="leanguageSelect">
  674. <div class="selectLeanguage"><a href="#">Forum</a></div>
  675. <div class="selectLeanguageIcon">
  676. <a href="#" title="Português(BR) Version">
  677. <img src="/images/pt-br/top/pt.png" border="0" width="28" height="22" title="Brazil" alt="Brazil" />
  678. </a>
  679. <a href="#" title="English(US) Version">
  680. <img src="/images/pt-br/top/us.png" border="0" width="28" height="22" title="EUA" alt="EUA" />
  681. </a>
  682. </div>
  683. </div>
  684. <?php if ($fbconnect): ?>
  685. <div id="facebookLogoutBtn">
  686. <a href="/logout/">Logout</a>
  687. </div>
  688. <? else: ?>
  689. <div id="facebookConnectBtn" style="float:left; margin-top:8px;">
  690. <a href="<?=$loginUrl?>">Login</a>
  691. </div>
  692. <? endif; ?>
  693. </div>
  694. <div style="float:right; width:80px;">
  695. <?php if ($fbconnect): ?>
  696.  
  697. <div id="facebook">
  698.  
  699. <div class="image"><img src="https://graph.facebook.com/<?php echo $fbconnect; ?>/picture" border="0" style="margin-top:6px; border:1px solid #333;" width="55" height="62"></div>
  700.  
  701.  
  702. </div>
  703. <div id="clear"></div>
  704.  
  705.  
  706.  
  707.  
  708. <?php endif ?>
  709. </div>
  710. </div>
  711. </div>
  712. </div>
  713. </ul>
  714. </div>
  715. </div>
  716.  
  717.  
  718.  
  719.  
  720. <!-- END Top Menu -->
  721.  
  722. <!-- its header -->
  723. <div id="itsheader">
  724. <!-- Beginning Content Top -->
  725. <div id="header">
  726.  
  727. <div id="clear"></div>
  728. <div id="contentLogo">
  729. <div id="hipl"></div>
  730. <div id="logo"></div>
  731.  
  732.  
  733. </div>
  734. <div id="clear"></div>
  735. <div id="contentHeader">
  736.  
  737. <div id="sliderCenter">
  738. <div class="contentLeft">
  739. <div id="register"><a href="/registro/">Registro</a></div>
  740. <div id="gamerStart"><a href="/download-game/" ><object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" name="flash_gamestart" width="168" height="100" id="flash_gamestart"><param name="movie" value="/swf/start.swf"><param name="wmode" value="transparent"><param name="FlashVars" value=""><param name="allowScriptAccess" value="always"><param name="allowFullScreen" value="true"><param name="quality" value="high"><param name="menu" value="false"><embed src="/swf/start.swf" width="168" height="100" wmode="transparent" name="flash_gamestart" flashvars="" allowscriptaccess="always" allowfullscreen="true" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="aaapagesiguunsdtale/x-shockwave-flash"></object>
  741. </a></div>
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748. <?PHP if (checasessao()){?>
  749. <div id="lineLogged"></div>
  750. <div id="divLogged">
  751. <div class="loggedTop"></div>
  752. <div class="loggedBottom">
  753.  
  754. <div class="name"><?PHP echo ola ?> <img src="/ranks/rank_<?=$game['TotalGrade']?>.gif"/><a href="/minha-conta/" title="Ver conta"><?=$game['NickName']?></a></div>
  755. <div class="lineDiv" style="height:15px;"></div>
  756.  
  757. <div style="height:70px; width:155px; background-repeat:no-repeat; background-position:50% 50%;"> </div>
  758. <div class="left" align="left" style="color: #F30;"><?PHP echo gold ?> </div>
  759. <div class="right" align="left"><?=number_format($game['Money']);?></div>
  760. <div class="left" align="left" style="color:#09F;"><?PHP echo cash ?> </div>
  761. <div class="right" align="left"><?=number_format($cash['Cash']);?></div>
  762. <div class="left" align="left" style="color:#090; font-weight:bold;"><?PHP echo credito ?></div>
  763. <div class="right" align="left"><?=number_format($credito['Credito']);?> <a href="/doar/"><b style="background-color: #E0EEFE; border:1px solid #B0C5F9; padding:3px; border-radius:5px; -moz-border-radius:5px; "><?PHP echo doar ?></b></a></div>
  764. <div class="btnMyAccount"><a href="/minha-conta/" title="Suas informações reunidas em um só lugar">Minha conta</a></div>
  765. <div class="btnExit"><a href="/logout/">Sair</a></div>
  766. </div>
  767. </div>
  768. <? }else{ ?>
  769. <div id="line"></div>
  770. <div id="divLogin">
  771. <form name="id_search" method="post">
  772. <dl class="bl">
  773. <dt><label for="userid">ID</label></dt>
  774. <dd><input type="text"name="user" maxlength="12" autocomplete="off" onKeyDown="_clf_onkeydown(0);" tabindex="1" class="idbg" onFocus="this.className='ipbg'" onBlur="if(this.value==''){this.className='idbg'}" autofocus></dd>
  775. <dt><label for="userpw">Password</label></dt>
  776. <dd><input type="password" name="pass" maxlength="30" autocomplete="off" onKeyDown="_clf_onkeydown(1);" onKeyPress="_clf_keypress_pwlen(this);" tabindex="2" class="pwbg" onFocus="this.className='ipbg'" onBlur="if(this.value==''){this.className='pwbg'}"></dd>
  777. </dl>
  778. <div ><input src="http://<? echo $_SERVER['HTTP_HOST'] ?>/images/pt-br/content/login/bt_login.png" name="Submit" type="image" class="submit" /></div>
  779. </form>
  780. <div id="clear"></div>
  781.  
  782. </div>
  783. <div class="lg_btm">
  784. <span class="t1" onClick="openSenha();"><?=poupsenha_1?></span> | <span class="t2" onClick="openCodigo();"><?=poupcodigo_1?></span>
  785. </div>
  786.  
  787.  
  788. <?
  789. }
  790. ?>
  791.  
  792. </div>
  793. <div id="contentTopCenter">
  794. <nav>
  795. <div id="navGuBound" class="navGunBound">
  796. <ul>
  797. <li><div class="home"><a href="/">Home</a></div></li>
  798. <div class="lineNav"></div>
  799. <li><div class="guia"><a href="/guia/">Guia</a></div>
  800. <ul style="width:330px;">
  801. <li><a href="/guia/como-jogar/"><?PHP echo menu_GameInfo_1 ?></a></li>
  802. <li><a href="/guia/mobiles/"><?PHP echo menu_GameInfo_2 ?></a></li>
  803. <li><a href="/guia/itens/"><?PHP echo menu_GameInfo_3 ?></a></li>
  804. <li><a href="/guia/tabela/"><?PHP echo menu_GameInfo_4 ?></a></li>
  805. <li><a href="/guia/papel-gm/"><?PHP echo menu_GameInfo_5 ?></a></li><div class="bgLeft" style="left:330px;"></div>
  806. <div class="guiaH" style="position:absolute; top:-39px;"></div>
  807.  
  808. </ul>
  809. </li><div class="lineNav"></div>
  810. <li><div class="comunidade"><a href="/forum/">Comunidade</a></div>
  811. <ul style="width:320px;">
  812. <div class="comunidadeH"></div>
  813. <li><a href="/forum/livre/"><?PHP echo menu_Forum_0 ?></a></li>
  814. <li><a href="/forum/tutorial/"><?PHP echo menu_Forum_5 ?></a></li>
  815. <li><a href="/forum/videos/"><?PHP echo menu_Forum_1 ?></a></li>
  816. <li><a href="/forum/screen/"><?PHP echo menu_Forum_2 ?></a></li>
  817. <li><a href="/forum/perolas/"><?PHP echo menu_Forum_3 ?></a></li>
  818. <div class="bgLeft" style="left:320px;"></div>
  819.  
  820.  
  821. </ul>
  822. </li><div class="lineNav"></div>
  823. <li><div class="rank"><a href="/ranking/total/">Rankings</a></div>
  824. <ul style="width:278px;">
  825.  
  826. <li><a href="/ranking/total/"><?PHP echo menu_Rank_1 ?></a></li>
  827. <li><a href="/ranking/semanal/"><?PHP echo menu_Rank_2 ?></a></li>
  828. <li><a href="/ranking/diario/"><?PHP echo menu_Rank_3 ?></a></li>
  829. <li><a href="/ranking/total/"><?PHP echo menu_Rank_4 ?></a></li>
  830. <li><a href="/ranking/pontos/"><?PHP echo 'Evento' ?></a></li>
  831. <div class="bgLeft" style="left:278px;"></div>
  832. <div class="rankH"></div>
  833. </ul>
  834. </li><div class="lineNav"></div>
  835. <li><div class="webShop"><a href="/webshop/">WebShop</a></div>
  836. <ul style="width:250px;">
  837. <li><a href="/loja-online/avatar/cash/"><?PHP echo menu_WebShop_1 ?></a></li>
  838. <li><a href="/loja-online/avatar/icoins/"><?PHP echo menu_WebShop_2 ?></a></li>
  839. <li><a href="/loja-online/comprar/vip/"><?PHP echo 'Comprar Vip';?></a></li>
  840. <li><a href="/loja-online/comprar/gvip/"><?PHP echo menu_WebShop_3 ?></a></li><div class="bgLeft" style="left:250px;"></div>
  841. <div class="webShopH"></div>
  842. </ul>
  843. </li><div class="lineNav"></div>
  844. <li><div class="guilds"><a href="/guilds/">Guilds</a></div></li><div class="lineNav"></div>
  845. <li><div class="download"><a href="/download-game/">Download</a></div>
  846.  
  847. </ul>
  848. <div id="clear"></div>
  849. </div>
  850. </nav>
  851. <? if($GBound[0] != "forum" && $GBound[0] != "teste" && $GBound[0] != "noticias" && $GBound[0] != "exclusivos" && $GBound[0] != "bdanidos" && $GBound[0] != "regras" && $GBound[0] != "familia-gunbound" && $GBound[0] != "trocar-pontos" && $GBound[0] != "minhas-doacoes" && $GBound[0] != "comprar" && $GBound[0] != "eventos" && $GBound[0] != "guilds") {?>
  852. <div id="divWebSlider">
  853. <div class="left"></div>
  854. <div id="center">
  855. <? require("{$folder2}/{$pagina2}.php"); ?>
  856. </div>
  857. <? }?>
  858. <div class="right"></div>
  859. </div>
  860.  
  861. </div>
  862. </div>
  863. </div>
  864. </div>
  865. <div id="bgBottom"></div>
  866. <div id="clear"></div>
  867. </div>
  868. <div id="headerBg">
  869. <!--- Start Content --->
  870. <div id="headerContent">
  871. <div style="position:relative; margin:0px auto;">
  872.  
  873. <div id="headerLeft" <? if (checasessao()){?>style="margin-top:45px;"<? } ?><? if($fbconnect >= '1'){?>style="margin-top:45px;"<? } ?>>
  874. <div id="contador">
  875. <div id="contadorNumber"><?PHP
  876.  
  877. $n = mysql_query("SELECT * FROM user");
  878. echo mysql_num_rows($n);
  879. ?></div> <div id="contadorTitle"><?=register?></div>
  880. </div>
  881. <div id="laterQuickTop"><div id="quickLink"></div></div>
  882. <div id="laterQuickCenter">
  883. <div id="quickSupport"><a href="/support/" title="Está com problemas? Aqui você poderá solucionar suas dúvidas">Support</a></div>
  884. <div id="quickDoar"><a href="/doar/">Doar</a></div>
  885. <div id="quickRegards"><a href="/regras/">Regards</a></div>
  886. <div id="quickClans"><a href="/guilds/">Clans</a></div>
  887. <div id="quickForum"><a href="/forum/livre/">Support</a></div>
  888. <div id="quickBanned"><a href="/banidos/">Banneds</a></div>
  889. <div id="quickTeam"><a href="/familia-gunbound/">Team</a></div>
  890. <div id="quickNiveis"><a href="/guia/tabela/">Niveis</a></div>
  891. <div id="quickEffects"><a href="/Effects/">Effects</a></div>
  892. <div id="clear"></div>
  893. </div>
  894. <div id="laterQuickBottom"></div>
  895. <div id="laterWomanTop"><div id="rankingTopFive"></div></div>
  896. <div id="laterWomanCenter">
  897. <div class="news_rank">
  898. <div id="totalRankHover" onClick="getranking('total');"></div>
  899. <div id="weeklyRank" onClick="getranking('semanal');"></div>
  900. <div id="vipRank" onClick="getranking('vip');"></div>
  901. </div>
  902. <div id="rankingBody">
  903. <?
  904.  
  905. $x = mysql_query("SELECT * FROM game ORDER BY TotalRank LIMIT 0,12");
  906. $i = $inicial;
  907. while($rx = mysql_fetch_array($x)){
  908.  
  909. $i++;
  910. ?>
  911. <table width="83%" border="0" cellspacing="0" cellpadding="0" style="margin-left:18px; border-bottom:1px dotted #B7E5FF; font-family:'trebuchet MS'">
  912. <tr>
  913. <td width="13%" height="27" align="center"><img src="http://<? echo $_SERVER['HTTP_HOST'] ?>/images/pt-br/rank/<?=$i?>.png" width="24" height="24"/> </td>
  914. <td width="20%" height="27" align="center"><div style="width:25px; height:15px; background-image:url(/ranks/rank_<?=$rx['TotalGrade']?>.gif); background-repeat:no-repeat; position:relative;"><span class="vip<?=$rx['Country']?>"></span></div> </td>
  915. <td width="67%" align="left" style="color:#0086DF; font-size:13px;"><?=$rx["NickName"]?></td>
  916. </tr>
  917. </table>
  918. <? }?>
  919. </div>
  920. </div>
  921. <div id="laterWomanBottom"></div>
  922.  
  923.  
  924. </div>
  925.  
  926. <div id="headerCenter" <? if( $GBound[0] == "forum" || $GBound[0] == "teste" || $GBound[0] == "comprar" || $GBound[0] == "exclusivos" || $GBound[0] == "familia-gunbound" || $GBound[0] == "regras" || $GBound[0] == "trocar-pontos" || $GBound[0] == "minhas-doacoes" || $GBound[0] == "noticias" || $GBound[0] == "eventos" || $GBound[0] == "badnidos" || $GBound[0] == "guilds") {?> style="margin-top:-310px;"<? } ?>>
  927.  
  928. <?
  929. if($fbconnect == ''){}else{
  930.  
  931. if(!isset($user['Id'])){
  932. if ($GBound[0] != "registro-facebook" && $GBound[0] != "registro" && $GBound[0] != "logout" && $GBound[0] != "noticias" && $GBound[0] != "home" && $GBound[0] != "ranking"){
  933. ?>
  934. <meta http-equiv="refresh" content="0; url=/registro/">
  935. <?
  936. }
  937. }else{
  938.  
  939. }
  940. }
  941. ?>
  942.  
  943. <?
  944. require("{$folder}/{$pagina}.php");
  945. ?>
  946.  
  947. </div>
  948. </div>
  949.  
  950. </div>
  951. <!-- End content Top -->
  952. <div id="clear"></div>
  953. <footer>
  954. <div id="footerCenter">
  955. <div id="copyright">
  956. <strong>Gunbound is copyright Softnyx </strong><br>
  957.  
  958. <?=footer?>
  959. </div>
  960.  
  961.  
  962.  
  963. <div id="clear"></div>
  964. </div>
  965. </footer>
  966. <div id="clear"></div>
  967. </div>
  968. <!-- poup senha -->
  969. <div class="ui-popup-container pop in ui-popup-active" id="popupSenha" <? if (!isset($_POST["recoverypass"])){?>style=" width: 490px; opacity: 1; z-index:999; position: fixed; top: 30%; left: 50%; display: none;" <? }else{ ?>style=" width: 490px; opacity: 1; z-index:999; position: fixed; top: 30%; left: 50%; " <? } ?>><div id="popupDialog" style="max-width:400px; position: relative; top:-30%; left: -50%; " class="ui-corner-all ui-popup ui-body-c ui-overlay-shadow">
  970.  
  971. <div class="ui-corner-top ui-header ui-bar-a" >
  972.  
  973. <h1 class="ui-title" role="heading" aria-level="1"><? echo poupsenha_1 ?></h1>
  974. </div>
  975. <div class="ui-corner-bottom ui-content ui-body-d">
  976. <h3 class="ui-title"><?=poupsenha_2?></h3>
  977. <p><? echo changenick_3 ?></p>
  978.  
  979. <form action="" method="post">
  980. <?
  981.  
  982. if (isset($_POST["recoverypass"])){
  983.  
  984. require_once "phpscadastro178.php/1527xgamesx8487.php";
  985. require_once "phpscadastro178.php/validation.php";
  986.  
  987. require_once "phpscadastro178.php/PHPMailer.php";
  988.  
  989.  
  990. require_once "phpscadastro178.php/class.smtp.php";
  991.  
  992. $email = (get_magic_quotes_gpc ()) ? stripslashes ($_POST["email"]) : $_POST["email"];
  993. $cod = (get_magic_quotes_gpc ()) ? stripslashes ($_POST["cod"]) : $_POST["cod"];
  994.  
  995. $rules[] = "required,email,".registrar28."";
  996. $rules[] = "length<50,email,".registrar29."";
  997. $rules[] = "valid_email2,email, ".registrar30."";
  998. $rules[] = "not_existe_email,email,".poupsenha_7."";
  999. $rules[] = "capt,cod,".registrar42."";
  1000. $errors = validateFields($_POST, $rules);
  1001.  
  1002. // if there were errors, re-populate the form fields
  1003. if (!empty($errors))
  1004. {
  1005. $fields = $_POST;
  1006. }
  1007.  
  1008. // no errors! redirect the user to the thankyou page (or whatever)
  1009. else
  1010. {
  1011.  
  1012. $login = getIdByEmail($email);
  1013. $nickname = getNickByEmail($email);
  1014. $senha = getSenhaByEmail($email);
  1015. $message = "Os dados foram enviados com sucesso!";
  1016. $corpo = '
  1017. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  1018. <tr>
  1019. <td align="center"><table id="ecxTable_01" width="640" border="0" cellpadding="0" cellspacing="0"> <tbody>
  1020. <tr></tr>
  1021. <tr> <td valign="top" align="center" bgcolor="#FFFFFF" height="1009"><table id="ecxTable_" width="640" border="0" cellpadding="0" cellspacing="0" height="963"> <tbody><tr> <td width="640" height="963"><table id="ecxTable_2" width="640" border="0" cellpadding="0" cellspacing="0" height="799"> <tbody><tr> <td height="431"><img src="http://www.igunbound.com.br/images/ImageProxy_008.jpg" alt="iGunBound" title="iGunBound" style="display:block;border:0;" width="640" height="514"></td> </tr> <tr> <td style="text-align:justify;" valign="top" align="justify" bgcolor="#232323" height="283"><table border="0" height="299"> <tbody>
  1022. <tr> <td width="33" height="295">&nbsp;</td> <td style="text-align:justify;" valign="top" width="557" align="justify"><p><font size="3" color="#ff9000" face="verdana"><strong>Ol&aacute;, '.$nickname.'!</strong></font><br> <br>
  1023. <font size="2" color="#b7b7b7" face="verdana">Voc&ecirc; solicitou o lembre da sua senha do iGunBound recentemente.</font></p>
  1024. <p><font size="2" color="#b7b7b7" face="verdana">Confira abaixo seus dados solicitados:</font></p>
  1025. <table width="518" align="center" bgcolor="#0d0d0d" border="0" height="81"> <tbody>
  1026. <tr> <td valign="middle" width="512" height="77"><table width="497" border="0"> <tbody>
  1027. <tr> <td width="20" height="66">&nbsp;</td> <td style="text-align:justify;" width="453" align="justify"> <p><font size="2" color="#b7b7b7" face="verdana">Seu nome de usu&aacute;rio &eacute;: '.$login.'<br>
  1028. <br>
  1029. Sua senha: '.$senha.' </font><font size="2" color="#b7b7b7" face="verdana"><br>
  1030. </font></p></td>
  1031. <td width="10" bgcolor="#0d0d0d">&nbsp;</td> </tr> </tbody></table></td>
  1032. </tr> </tbody></table>
  1033. <br>
  1034. <br>
  1035. <p> <font size="2" color="#b7b7b7" face="verdana">Atensiosamente,<br>
  1036. </font> <font size="2" color="#b7b7b7" face="verdana">Equipe iGunBound! </font><br>
  1037. <br> <br>
  1038. </p></td>
  1039. <td width="36">&nbsp;</td> </tr> </tbody></table></td> </tr> <tr></tr> </tbody></table>
  1040. <br>
  1041. <table width="600" align="center" border="0" cellpadding="0" cellspacing="0">
  1042. <tbody>
  1043. <tr></tr>
  1044. <tr></tr>
  1045. <tr></tr>
  1046. <tr>
  1047. <td><p><font size="1" color="#5a5657" face="arial"><br>
  1048. Este &eacute; um email autom&aacute;tico, por favor n&atilde;o responda. Se voc&ecirc;
  1049. tiver d&uacute;vidas, sugest&otilde;es ou cr&iacute;ticas a fazer, entre em contato com nossa <strong><a href="http://www.igunbound.com.br/tickets/" target="_blank">Central de Suporte</a></strong>.</font><font size="1" color="#5a5657" face="arial"><br>
  1050. <br>
  1051. This is an automatic email, please do not reply. If you have doubts comments or complains, contact our <strong><a href="http://www.igunbound.com.br/tickets/" target="_blank">Customer Care</a></strong>.</font></p></td>
  1052. </tr>
  1053. <tr>
  1054. <td>&nbsp;</td>
  1055. </tr>
  1056. </tbody>
  1057. </table></td> </tr> </tbody></table> <table width="640" border="0" cellpadding="0" cellspacing="0"> <tbody><tr> </tr> </tbody></table></td> </tr> <tr></tr></tbody></table></td>
  1058. </tr>
  1059. </table>
  1060.  
  1061.  
  1062.  
  1063. ';
  1064. $corpo .= "";
  1065. $corpo .= "";
  1066. $corpo .= "";
  1067. $corpo .= "";
  1068. $corpo .= "";
  1069. $corpo .= "";
  1070. $corpo .= "";
  1071. $header = "From: [GunBound Classico]" . "<" . $email . ">\r\n";
  1072.  
  1073. $mail = new PHPMailer();
  1074. $mail->IsSMTP();
  1075. $mail->SMTPAuth = true; // enable SMTP authentication
  1076. $mail->Host = "mail.gunboundclassico.com"; // GMAIL's SMTP server
  1077. $mail->Username = "suporte@gunboundclassico.com"; // GMAIL username
  1078. $mail->Password = "xwxx1"; // GMAIL password
  1079. $mail->AddReplyTo("suporte@gunboundclassico.com","GunBound Classico"); // Reply email address
  1080. $mail->From = "suporte@gunboundclassico.com";
  1081. $mail->FromName = "GunBound Classico"; // Name to appear once the email is sent
  1082. $mail->Subject = "GunBound Classico - [Recuperar senha]"; // Email's subject
  1083. //$mail->Body = "Hello World,<br />This is the HTML BODY<br />"; //HTML Body
  1084. $mail->AltBody = "Habilite o suporte html do seu e-mail"; // optional, commentA out and test
  1085. $mail->WordWrap = 50; // set word wrap
  1086. $mail->MsgHTML($corpo); // [optional] Send body email as HTML
  1087. $mail->AddAddress("$email", "$para"); // email address of recipient
  1088. //$mail->AddAttachment("files/files.zip"); // [optional] attachment
  1089. $mail->IsHTML(true); // [optional] send as HTML
  1090.  
  1091. if(!$mail->Send()){
  1092.  
  1093.  
  1094. $message = "Houve um erro com nosso servidor contratado...";
  1095.  
  1096. }else{
  1097.  
  1098. $message = "".poupsenha_8." $email";
  1099. }
  1100.  
  1101. //envio o correio...
  1102.  
  1103.  
  1104.  
  1105. // here you would either email the form contents to someone or store it in a database.
  1106. // To redirect to a "thankyou" page, you'd just do this:
  1107. // header("Location: thanks.php");
  1108. }
  1109.  
  1110. if (!empty($errors))
  1111. {
  1112. echo "<div class='error' style='width:350px;'>Por favor, corrija os erros abaixo:\n<ul>";
  1113. foreach ($errors as $error)
  1114. echo "<li>$error</li>\n";
  1115.  
  1116. echo "</ul></div><br />";
  1117. }
  1118.  
  1119. if (!empty($message))
  1120. {
  1121. echo "<div class='notify' style='width:350px;'>$message</div><br />";
  1122.  
  1123. }
  1124.  
  1125.  
  1126.  
  1127. }
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135. ?>
  1136. <table>
  1137. <tr>
  1138. <td>E-mail:</td>
  1139. <td><input type="text" class="ui-input-text ui-body-b ui-corner-all ui-shadow-inset" name="email" maxlength="50"></td>
  1140. </tr>
  1141. <tr>
  1142. <td>Repita o código:</td>
  1143. <td><img src="/CaptchaSecurityImages.php?width=100&height=40&characters=5" /></td>
  1144. </tr>
  1145. <tr>
  1146. <td></td>
  1147. <td><input type="text" class="ui-input-text ui-body-b ui-corner-all ui-shadow-inset" name="cod" maxlength="50"></td>
  1148. </tr>
  1149. <tr>
  1150. <td></td>
  1151.  
  1152. </tr>
  1153. </table>
  1154.  
  1155. <a onClick="openSenha();" data-role="button" data-inline="true" data-rel="back" data-theme="c" data-corners="true" data-shadow="true" data-iconshadow="true" data-wrapperels="span" class="ui-btn ui-btn-up-c ui-shadow ui-btn-corner-all ui-btn-inline"><span class="ui-btn-inner"><span class="ui-btn-text"><? echo cancel?></span></span></a> <span id="submit">
  1156. <input type="submit" name="recoverypass" class="ui-btn ui-btn-up-b ui-shadow ui-btn-corner-all ui-btn-inline" width="400" height="80" value="<? echo accept ?>"></span>
  1157.  
  1158. </form>
  1159. </div></div></div>
  1160.  
  1161. <!-- fim poup -->
  1162.  
  1163. <!-- poup senha -->
  1164. <div class="ui-popup-container pop in ui-popup-active" id="popupCodigo" <? if (!isset($_POST["codeenvio"])){?>style=" width: 490px; opacity: 1; z-index:999; position: fixed; top: 30%; left: 50%; display: none;" <? }else{ ?>style=" width: 490px; opacity: 1; z-index:999; position: fixed; top: 30%; left: 50%; " <? } ?>><div id="popupDialog" style="max-width:400px; position: relative; top:-30%; left: -50%; " class="ui-corner-all ui-popup ui-body-c ui-overlay-shadow">
  1165.  
  1166. <div class="ui-corner-top ui-header ui-bar-a" >
  1167.  
  1168. <h1 class="ui-title" role="heading" aria-level="1"><? echo poupcodigo_1 ?></h1>
  1169. </div>
  1170. <div class="ui-corner-bottom ui-content ui-body-d">
  1171. <h3 class="ui-title"><?=poupcodigo_2?></h3>
  1172. <p><? echo poupcodigo_3 ?></p>
  1173.  
  1174.  
  1175. <?php
  1176.  
  1177.  
  1178. if (isset($_POST["codeenvio"])){
  1179.  
  1180.  
  1181. require_once "phpscadastro178.php/1527xgamesx8487.php";
  1182. require_once "phpscadastro178.php/validation.php";
  1183.  
  1184. require_once "phpscadastro178.php/PHPMailer.php";
  1185.  
  1186.  
  1187. require_once "phpscadastro178.php/class.smtp.php";
  1188. $email = (get_magic_quotes_gpc ()) ? stripslashes ($_POST["email"]) : $_POST["email"];
  1189. $cod = (get_magic_quotes_gpc ()) ? stripslashes ($_POST["cod"]) : $_POST["cod"];
  1190.  
  1191. $existe = mysql_query("select Authority from user where E_Mail='$email'");
  1192. $auto = mysql_fetch_array($existe);
  1193. $autoridade = $auto["Authority"];
  1194.  
  1195. if($autoridade != '-2'){
  1196. $_POST["acf"] = "aaa";
  1197. } else {
  1198. $_POST["acf"] = "a";
  1199. }
  1200.  
  1201.  
  1202. $rules[] = "length<2,acf, Está conta já foi confirmada!.";
  1203. $rules[] = "required,email,Campo E-mail requerido.";
  1204. $rules[] = "length<50,email,Campo E-mail não pode ultrapassar a 50 caracteres.";
  1205. $rules[] = "valid_email,email, Digite um e-mail válido.";
  1206. $rules[] = "not_existe_email,email,E-mail não foi encontrado na nossa base de dados!";
  1207.  
  1208. $rules[] = "capt,cod,Código de segurança inválido";
  1209. $errors = validateFields($_POST, $rules);
  1210.  
  1211. // if there were errors, re-populate the form fields
  1212. if (!empty($errors))
  1213. {
  1214. $fields = $_POST;
  1215. }
  1216.  
  1217. // no errors! redirect the user to the thankyou page (or whatever)
  1218. else
  1219. {
  1220.  
  1221. /**************************CONFIRMAR CADASTRO NO E-MAIL*/
  1222.  
  1223. $login = getIdByEmail($_POST["email"]);
  1224. $email = $_POST["email"];
  1225. $cod = md5(base64_encode($login) . base64_encode($email) . "igunboundtopp49489848484584898");
  1226.  
  1227.  
  1228.  
  1229. $corpo = "<html>\n";
  1230. $corpo .= "<body>\n";
  1231. $corpo .= '
  1232. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  1233. <tr>
  1234. <td align="center"><table id="ecxTable_01" width="640" border="0" cellpadding="0" cellspacing="0"> <tbody>
  1235. <tr></tr>
  1236. <tr> <td valign="top" align="center" bgcolor="#FFFFFF" height="1009"><table id="ecxTable_" width="640" border="0" cellpadding="0" cellspacing="0" height="906"> <tbody><tr> <td width="640" height="906"><table id="ecxTable_2" width="640" border="0" cellpadding="0" cellspacing="0" height="988"> <tbody><tr> <td height="431"><img src="http://www.igunbound.com.br/images/ImageProxy_008.jpg" alt="iGunBound" title="iGunBound" style="display:block;border:0;" width="640" height="514"></td> </tr> <tr> <td style="text-align:justify;" valign="top" align="justify" bgcolor="#232323" height="371"><table border="0" height="397"> <tbody><tr> <td width="33" height="393">&nbsp;</td> <td style="text-align:justify;" valign="top" width="557" align="justify"><p><font size="3" color="#ff9000" face="verdana"><strong>Bem-vindo, '.$login.'!</strong></font><br> <br>
  1237. <font size="2" color="#b7b7b7" face="verdana">Voc&eacute; acabou de solicitar um pedido para ativa&ccedil;&atilde;o de conta, use o Link abaixo para efetuar ativar sua conta:</font><br>
  1238. <br><center><a href="http://www.igunbound.com.br/valida-email/cadastro/'.$email.'/'.$login.'/'.$cod.'/"><img src="http://www.igunbound.com.br/images/button.png" border="0"/></a></center>
  1239. </p> <p>&nbsp;</p> <table width="518" align="center" bgcolor="#0d0d0d" border="0" height="129"> <tbody><tr> <td valign="middle" width="512" height="125"><table width="497" border="0"> <tbody><tr> <td width="20" height="106">&nbsp;</td> <td style="text-align:justify;" width="453" align="justify"><font size="2" color="#b7b7b7" face="verdana"><br> <a href="http://www.igunbound.com.br/download-game/" target="_blank" style="color:#ff9000;text-decoration:none;">BAIXE O JOGO AQUI</a><br> <br> </font> <font size="2" color="#b7b7b7" face="verdana"> Caso tenha dificuldades durante o processo de instala&ccedil;&atilde;o, entre em contato com nossa <a href="http://www.igunbound.com.br/tickets/" target="_blank" style="color:#ff9000;text-decoration:none;">Central de Suporte</a>. </font></td> <td width="10" bgcolor="#0d0d0d">&nbsp;</td> </tr> </tbody></table></td> </tr> </tbody></table> <p><br>
  1240. <font size="2" color="#b7b7b7" face="verdana">Ative sua conta e divirta-se!</font> </p>
  1241. <p> <font size="2" color="#b7b7b7" face="verdana">Equipe iGunBound! </font><br> <br> </p></td> <td width="36">&nbsp;</td> </tr> </tbody></table></td> </tr> <tr></tr> </tbody></table></td> </tr> </tbody></table> <table width="640" border="0" cellpadding="0" cellspacing="0"> <tbody><tr> </tr> </tbody></table></td> </tr> <tr> <td valign="top" align="center" height="176"><table width="600" align="center" border="0" cellpadding="0" cellspacing="0"> <tbody><tr> <td>&nbsp;</td> </tr> <tr></tr>
  1242. <tr> <td valign="middle" align="center" height="20"></td> </tr> <tr> <td><p><font size="1" color="#5a5657" face="arial"><br>
  1243. Este &eacute; um email autom&aacute;tico, por favor n&atilde;o responda. Se voc&ecirc;
  1244. tiver dúvidas, sugest&otilde;es ou cr&iacute;ticas a fazer, entre em contato com nossa
  1245. <strong><a href="http://www.igunbound.com.br/tickets/" target="_blank">Central de Suporte</a></strong>.</font><font size="1" color="#5a5657" face="arial"><br> <br>This is an automatic email, please do not reply. If you have doubts comments or complains, contact our <strong><a href="http://www.igunbound.com.br/tickets/" target="_blank">Customer Care</a></strong>.</font></p></td> </tr> <tr> <td>&nbsp;</td> </tr> </tbody></table></td> </tr></tbody></table></td>
  1246. </tr>
  1247. </table>
  1248.  
  1249. ';
  1250. $corpo .= "";
  1251. $corpo .= "";
  1252. $corpo .= "";
  1253. $corpo .= "";
  1254. $corpo .= "";
  1255. $corpo .= "";
  1256. $corpo .= "";
  1257. $corpo .= "";
  1258. $corpo .= "</body>\n";
  1259. $corpo .= "</html>\n";
  1260.  
  1261. $mail = new PHPMailer();
  1262. $mail->IsSMTP();
  1263. $mail->SMTPAuth = true; // enable SMTP authentication
  1264. $mail->Host = "smtp.igunbound.com.br"; // GMAIL's SMTP server
  1265. $mail->Username = "general@igunbound.com.br"; // GMAIL username
  1266. $mail->Password = "l8PXP9KXlu88"; // GMAIL password
  1267. $mail->AddReplyTo("general@igunbound.com.br","iGunBound"); // Reply email address
  1268. $mail->From = "general@igunbound.com.br";
  1269. $mail->FromName = "iGunBound"; // Name to appear once the email is sent
  1270. $mail->Subject = "iGunBound - [ATIVAR CADASTRO]"; // Email's subject
  1271. //$mail->Body = "Hello World,<br />This is the HTML BODY<br />"; //HTML Body
  1272. $mail->AltBody = "Habilite o suporte html do seu e-mail"; // optional, comment out and test
  1273. $mail->WordWrap = 50; // set word wrap
  1274. $mail->MsgHTML($corpo); // [optional] Send body email as HTML
  1275. $mail->AddAddress("$email", "$email"); // email address of recipient
  1276. //$mail->AddAttachment("files/files.zip"); // [optional] attachment
  1277. $mail->IsHTML(true); // [optional] send as HTML
  1278. if(!$mail->Send()){
  1279.  
  1280. $message = "Houve um erro com nosso servidor contratado...";
  1281.  
  1282. }else{
  1283.  
  1284. $message = "Aten&ccedil;&atilde;o! Voc&ecirc; acaba de receber um e-mail contendo os procedimentos para ativar sua conta!";
  1285. }
  1286.  
  1287.  
  1288. /**/
  1289.  
  1290.  
  1291. // here you would either email the form contents to someone or store it in a database.
  1292. // To redirect to a "thankyou" page, you'd just do this:
  1293. // header("Location: thanks.php");
  1294. }
  1295.  
  1296. }
  1297.  
  1298.  
  1299. if (!empty($errors))
  1300. {
  1301. echo "<div class='error' style='width:350px;'>Por favor, corrija os erros abaixo:\n<ul>";
  1302. foreach ($errors as $error)
  1303. echo "<li>$error</li>\n";
  1304.  
  1305. echo "</ul></div><br />";
  1306. }
  1307.  
  1308. if (!empty($message))
  1309. {
  1310. echo "<div class='notify' style='width:350px;'>$message</div><br />";
  1311.  
  1312. }
  1313.  
  1314. // if $errors is not empty, the form must have failed one or more validation
  1315. // tests. Loop through each and display them on the page for the user
  1316.  
  1317. ?>
  1318. <form action="" method="post">
  1319. <table>
  1320. <tr>
  1321. <td>E-mail:</td>
  1322. <td><input type="text" class="ui-input-text ui-body-b ui-corner-all ui-shadow-inset" name="email" maxlength="50"></td>
  1323. </tr>
  1324. <tr>
  1325. <td>Repita o código:</td>
  1326. <td><img src="/CaptchaSecurityImages.php?width=100&height=40&characters=5" /></td>
  1327. </tr>
  1328. <tr>
  1329. <td></td>
  1330. <td><input type="text" class="ui-input-text ui-body-b ui-corner-all ui-shadow-inset" name="cod" maxlength="50"></td>
  1331. </tr>
  1332. <tr>
  1333. <td></td>
  1334.  
  1335. </tr>
  1336. </table>
  1337.  
  1338. <a onClick="openCodigo();" data-role="button" data-inline="true" data-rel="back" data-theme="c" data-corners="true" data-shadow="true" data-iconshadow="true" data-wrapperels="span" class="ui-btn ui-btn-up-c ui-shadow ui-btn-corner-all ui-btn-inline"><span class="ui-btn-inner"><span class="ui-btn-text"><? echo cancel?></span></span></a> <span id="submit">
  1339. <input type="submit" name="codeenvio" class="ui-btn ui-btn-up-b ui-shadow ui-btn-corner-all ui-btn-inline" width="400" height="80" value="<? echo accept ?>"></span>
  1340.  
  1341. </form>
  1342. </div></div></div>
  1343. <!-- fim codigo -->
  1344.  
  1345. <div id="poup-senha" <? if(isset($_POST["recoverypass"]) || isset($_POST["nickname"]) || isset($_POST["codeenvio"]) || isset($_POST["acceptNewGuild"]) || isset($_POST["acceptChangeSenha"])){?> style="opacity: 0.7; z-index: 80; height: 100%; left: 0; position: fixed; top: 0; width: 100%; background-color:#000;"
  1346. <? }else{ ?>style="opacity: 0.7; display:none; z-index: 80; height: 100%; left: 0; position: fixed; top: 0; width: 100%; background-color:#000;"<? } ?>></div>
  1347. <?
  1348. }
  1349. ?>
  1350. </body>
  1351. </html>
Add Comment
Please, Sign In to add comment