Exemplo n.º 1
0
    }
    if ($blogpsw != $records['blogpsw']) {
        catcherror($lnc[297]);
    }
    $return_main = $m_b->make_viewentry($records, $way, true);
    setcookie("entrypassword{$blogid}", $blogpsw);
    catchsuccess($return_main);
}
if ($job == 'getreplyonly') {
    acceptrequest('repid,reppsw,way,onetimecounter');
    $repid = floor($repid);
    $reppsw = md5($reppsw);
    $tablename = $way == 'reply' ? 'replies' : 'messages';
    $partialquery = "SELECT * FROM `{$db_prefix}{$tablename}` WHERE `repid`='{$repid}' LIMIT 1";
    $m_b = new getblogs();
    $records = $m_b->getbyquery($partialquery);
    if (!is_array($records) || $records['repid'] != $repid) {
        catcherror($lnc[305]);
    }
    if ($reppsw != $records['reppsw']) {
        catcherror($lnc[297]);
    }
    $records['reppsw'] = '';
    $records['reproperty'] = '0';
    if ($way == 'reply') {
        $output_single = $m_b->single_reply($records, floor($onetimecounter));
    } else {
        $output_single = $m_b->single_message($records, floor($onetimecounter));
    }
    catchsuccess($output_single);
}