All the sources codespage 6
C++
July 02, 2016 am31 01:30
#297
LOG("[%d]:%02X", 14+1+ioctl_buf.buf[14]+1+ioctl_buf.buf[14+1+ioctl_buf.buf[14]], ioctl_buf.buf[14+1+ioctl_buf.buf[14]+1+ioctl_buf.buf[14+1+ioctl_buf.buf[14]]]);
card_buf[0] = ioctl_buf.buf[14]+2;
card_buf[1] = ioctl_buf.buf[14]>0?0:1;
memcpy(&card_buf[2], &ioctl_buf.buf[14+1], ioctl_buf.buf[14]);
card_buf[card_buf[0]] = ioctl_buf.buf[14+1+ioctl_buf.buf[14]]+2;
card_buf[card_buf[0]+1] = ioctl_buf.buf[14+1+ioctl_buf.buf[14]]>0?0:1;
memcpy(&card_buf[card_buf[0]+2], &ioctl_buf.buf[14+1+ioctl_buf.buf[14]+1], ioctl_buf.buf[14+1+ioctl_buf.buf[14]]);
card_buf[card_buf[0]+card_buf[card_buf[0]]]=2;
card_buf[card_buf[0]+card_buf[card_buf[0]]+1]=1;
if(ioctl_buf.buf[14+1+ioctl_buf.buf[14]+1+ioctl_buf.buf[14+1+ioctl_buf.buf[14]]]==0x00 && !rejected)
{
// some code
}
// some code
buf_puts( &w, (char*)&ioctl_buf.buf[14+1+ioctl_buf.buf[14]+1+ioctl_buf.buf[14+1+ioctl_buf.buf[14]]+1], ioctl_buf.size-(14+1+ioctl_buf.buf[14]+1+ioctl_buf.buf[14+1+ioctl_buf.buf[14]]+1)-2 );
C++
July 01, 2016 am31 01:30
#296
/* ... */
/* BUG: Remember to always include the following three header files anytime you use inet_ntop otherwise
* you get segmentation fault!!!
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
/* ... */
PHP
June 30, 2016 am30 01:30
#295
$result = (Db::getInstance()->Execute('
UPDATE `'._DB_PREFIX_.'category`
SET `position`= `position` '.($way ? '- 1' : '+ 1').'
WHERE `position`
'.($way
? '> '.(int)($movedCategory['position']).' AND `position` <= '.(int)($position)
: '< '.(int)($movedCategory['position']).' AND `position` >= '.(int)($position)).'
AND `id_parent`='.(int)($movedCategory['id_parent']))
AND Db::getInstance()->Execute('
UPDATE `'._DB_PREFIX_.'category`
SET `position` = '.(int)($position).'
WHERE `id_parent` = '.(int)($movedCategory['id_parent']).'
AND `id_category`='.(int)($movedCategory['id_category'])));