Jump to content

Courage

Moderators
  • Posts

    5,961
  • Joined

  • Last visited

  • Days Won

    290

Everything posted by Courage

  1. Ciudat. Testezi de pe acelasi browser?
  2. Schimba if ( isset ( $_COOKIE["v_{$ip}"] ) && $_COOKIE["v_{$ip}"] == 1 ) cu if ( isset ( $_COOKIE["v_{$sid}"] ) && $_COOKIE["v_{$sid}"] == 1 ) si setcookie("v_{$ip}", 1, $time + 86400, '/'); cu setcookie("v_{$sid}", 1, $time + 86400, '/');
  3. Auch.. postasem gresit. Am editat acum. Asa trebuie sa arate: <?php define('action',$_POST['action']); $result = array( 'xhr' => 'error' ); include 'core/init.php'; if (action == 'vote_server') { $sid = (int)$_POST['sid']; $ip = $_SERVER['REMOTE_ADDR']; $time = time(); if ( isset ( $_COOKIE["v_{$ip}"] ) && $_COOKIE["v_{$ip}"] == 1 ) // este setat cookie { $result['xhr'] = 'voted_already'; } else { $dbTime = @mysql_result(mysql_query("SELECT `timestamp` FROM `votes` WHERE `server_id` = '$sid' AND `ip` = '$ip' ORDER BY `timestamp` DESC LIMIT 1"), 0); $timeDiff = $time - $dbTime; if($timeDiff >= 86400) { mysql_query("INSERT INTO `votes` (`ip`, `server_id`, `timestamp`) VALUES ('".$ip."', $sid, $time)"); mysql_query("UPDATE `servers` SET `votes` = votes +1 WHERE `id` = $sid"); setcookie("v_{$ip}", 1, $time + 86400, '/'); // setam cookie $result['xhr'] = 'success'; } else { $result['xhr'] = 'voted_already'; } } } echo json_encode($result); ?>
  4. Din vote_updater.php, schimba if (action == 'vote_server') { $sid = (int)$_POST['sid']; $ip = $_SERVER['REMOTE_ADDR']; $time = time(); $dbTime = @mysql_result(mysql_query("SELECT `timestamp` FROM `votes` WHERE `server_id` = '$sid' AND `ip` = '$ip' ORDER BY `timestamp` DESC LIMIT 1"), 0); $timeDiff = $time - $dbTime; if($timeDiff >= 86400){ mysql_query("INSERT INTO `votes` (`ip`, `server_id`, `timestamp`) VALUES ('".$ip."', $sid, $time)"); mysql_query("UPDATE `servers` SET `votes` = votes +1 WHERE `id` = $sid"); $result['xhr'] = 'success'; } else { $result['xhr'] = 'voted_already'; } } cu if (action == 'vote_server') { $sid = (int)$_POST['sid']; $ip = $_SERVER['REMOTE_ADDR']; $time = time(); if ( isset ( $_COOKIE["v_{$ip}"] ) && $_COOKIE["v_{$ip}"] == 1 ) // este setat cookie { $result['xhr'] = 'voted_already'; } else { $dbTime = @mysql_result(mysql_query("SELECT `timestamp` FROM `votes` WHERE `server_id` = '$sid' AND `ip` = '$ip' ORDER BY `timestamp` DESC LIMIT 1"), 0); $timeDiff = $time - $dbTime; if($timeDiff >= 86400) { mysql_query("INSERT INTO `votes` (`ip`, `server_id`, `timestamp`) VALUES ('".$ip."', $sid, $time)"); mysql_query("UPDATE `servers` SET `votes` = votes +1 WHERE `id` = $sid"); setcookie("v_{$ip}", 1, $time + 86400, '/'); // setam cookie $result['xhr'] = 'success'; } else { $result['xhr'] = 'voted_already'; } } } Nu l-am testat, is mai incepator in php. Posteaza aici daca nu merge.
  5. $dbTime = @mysql_result(mysql_query("SELECT `timestamp` FROM `votes` WHERE `server_id` = '$sid' AND `ip` = '$ip' ORDER BY `timestamp` DESC LIMIT 1"), 0); $timeDiff = $time - $dbTime; if($timeDiff >= 86400){ mysql_query("INSERT INTO `votes` (`ip`, `server_id`, `timestamp`) VALUES ('".$ip."', $sid, $time)"); mysql_query("UPDATE `servers` SET `votes` = votes +1 WHERE `id` = $sid"); $result['xhr'] = 'success'; } else { $result['xhr'] = 'voted_already'; } Vad ca e setat sa poata vota o data la 24h. Vrei sa poata vota o singura data si atat sau o data la 24h?
  6. Nu folosesti File Zilla pentru a edita fisiere?
  7. Trimite-mi PM cu link de download sa vad ce-i pe acolo .
  8. Nu stiu cum o schimbi tu, dar pe server ea tot e prezenta. http://brewed.ro/public/style_images/brewed_official/f_icon.png Sigur bifezi sa fie inlocuita atunci cand pui alta noua ?
  9. https://www.google.ro/?gws_rd=ssl#q=IP.Board+forum+icons
  10. Vezi asta: http://webflake.sx/files/file/462-p33-server-list/
  11. Hmm, dezinstaleaza chat si cand reinstalezi, alege la inceput Create new tables in loc de override (sau cv de genu').
  12. Nu merge poza.
  13. Tema mai merge editata. Tu cum vrei sa vinzi marfa ?
  14. Pui codul in AdminCP > Look and Feel > tema ta > Board Index > hoogGroupNameIndicator
  15. Administratorii ii vad pe toti, chiar daca unii au bifat Sign in anonymously.
  16. Acum am vazut topicul. In codul postat de tine vad ca ai un </div> si un </if> cazute din cer. </foreach> </if> </div> <foreach loop="side_blocks:$side_blocks as $block"> {$block} </foreach> </div> <!-- asta --> <a href='#' id='toggle_sidebar' title='{$this->lang->words['toggle_sidebar']}' data-closed="{$this->lang->words['_laquo']}" data-open="&times;">&nbsp;</a> </if> <!-- si asta --> Adauga <if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']"> <div id='index_stats' class='ipsLayout_right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>> inainte de <foreach loop="side_blocks:$side_blocks as $block"> Perceptie gresita, mai ales ca oferim suport gratis pe ceva ce majoritatea care postati pe aici folositi ilegal.
  17. Şi nu te-ai gândit să-i întrebi, nu?
  18. Primesti vreo eroare in admincp pe pagina principala? (your profile photo directory is not writable - cv de genul)
  19. ACP > Members > Custom Profile Field > Location Adauga : si spatiu in casuta de jos, gen <span class='row_title'>{title}:</span> <span class='row_data'>{content}</span>
  20. [HQ] Secondary Group Icons
  21. Nu ţi-ar strica o carte de gramatică. 1. http://community.invisionpower.com/files/file/4361-bim34-hide-link-and-code/ 2. La ce te referi?
  22. CRG Multi ma confunda cu cel de pe soft_edia.
  23. Cred ca nu ai pus cu http:// in fata.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.