Jump to content

Yum

Members
  • Content Count

    7
  • Joined

  • Last visited

About Yum

  • Rank
    Newbie

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

2135 profile views
  1. Solved! $dias = $_POST['days']; $days = $dias * 86400; $today = getdate(); $ban = $today['0'] + $days;
  2. Hello, I'm trying to make the ban on an account through my php. I am not knowing generate the correct value for unban_time ... Using the basis of Ceres I got this: DEFINE('PARTNER_BAN', "UPDATE `login` SET `unban_time` = NOW() + '%d' WHERE `account_id` = '%d' AND `unban_time` = '0'"); What is the value of %d? if (isset($GET_frm_name) && isset($GET_id)) { $query = sprintf(ACCOUNTS_SEARCH_ACCOUNT_ID, trim($GET_id)); $result = execute_query($query, 'adminaccban.php'); if ($line = $result->fetch_row()) { $today = getdate(); if (notnumber($GET_id)) alert($lang['INCORRECT_CHARACTER']); if ($GET_bday == $today['mday'] && $GET_bmonth == $today['mon'] && $GET_byear == $today['year']) $ban = 0; else $ban = truedate($GET_bday, $GET_bmonth, $GET_byear); if ($ban <= time()) $ban = 0; if ($GET_block == 5) $ban = 0; if ($_SESSION[$CONFIG_name.'level'] <= $line[4] || ($line[4] >= $_SESSION[$CONFIG_name.'level'] && $_SESSION[$CONFIG_name.'level'] != 99)) { $ban = $line[6]; $GET_block = $line[7]; } $query = sprintf(ACCBAN_UPDATE, $ban, $GET_block, trim($GET_id)); $result = execute_query($query, 'adminaccban.php'); alert("Account Updated"); }}[/code][code]function truedate($day, $month, $year) { $diames = array ( 1 => 31, 2 => 28, 3 => 31, 4 => 30, 5 => 31, 6 => 30, 7 => 31, 8 => 31, 9 => 30, 10 => 31, 11 => 30, 12 => 31, ); if (($year % 4) === 0) $diames[2] = 29; if ($day > $diames[$month]) return 0; return mktime(0, 0, 0, $month, $day, $year);}
  3. Hello, I know there are numerous threads, but there are also numerous pages and my question is very simple. Which version 2013 is the most stable? How can I get the supported folders? http://herc.ws/board/topic/1653-guide-setting-up-2013-clients/ http://herc.ws/board/topic/901-basic-complete-renewal-data-english-folder/ I found some links, if you can help me, I appreciate it.
  4. I know that, I added the patch manually and succeeded in correcting some errors. These other I could not and that's why I'm asking for help.
  5. Hello, Been a while since I bought some systems for rAthena. And now I add them in Hercules and had a lot of mistakes, errors generated by the new structure of the source. Could you help me with this? Error clif.c Error pc.c
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.