-
Posts
5,961 -
Joined
-
Last visited
-
Days Won
290
Content Type
Profiles
Forums
Events
Everything posted by Courage
-
Ciudat. Testezi de pe acelasi browser?
-
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, '/');
-
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); ?>
-
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.
-
$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?
-
Nu folosesti File Zilla pentru a edita fisiere?
-
Trimite-mi PM cu link de download sa vad ce-i pe acolo .
-
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 ?
-
https://www.google.ro/?gws_rd=ssl#q=IP.Board+forum+icons
-
Vezi asta: http://webflake.sx/files/file/462-p33-server-list/
-
Hmm, dezinstaleaza chat si cand reinstalezi, alege la inceput Create new tables in loc de override (sau cv de genu').
-
Tema mai merge editata. Tu cum vrei sa vinzi marfa ?
-
-
Pui codul in AdminCP > Look and Feel > tema ta > Board Index > hoogGroupNameIndicator
-
Administratorii ii vad pe toti, chiar daca unii au bifat Sign in anonymously.
-
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="×"> </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.
-
Problema Gazduire: This Account Has Been Suspended
Courage replied to +Artick's topic in Domenii si gazduire web
Şi nu te-ai gândit să-i întrebi, nu? -
Primesti vreo eroare in admincp pe pagina principala? (your profile photo directory is not writable - cv de genul)
-
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>
-
[HQ] Secondary Group Icons
-
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?
-
Cereri schimbare nume utilizator/date cont
Courage replied to gaby's topic in Bug-uri, sugestii & feedback
CRG Multi ma confunda cu cel de pe soft_edia. -
Cum Pun In Dreapta Iconite De Facebook, Steam, Gt?
Courage replied to Teddy !'s topic in IP.Board 3.x
Cred ca nu ai pus cu http:// in fata. -
Cum Pun In Dreapta Iconite De Facebook, Steam, Gt?
Courage replied to Teddy !'s topic in IP.Board 3.x
Ce link ai pus?
