Exemple #1
0
         dalert(lang($L['add_limit'], array($MG['add_limit'])));
     }
 }
 $msg = captcha($captcha, $need_captcha, true);
 if ($msg) {
     dalert($msg);
 }
 $msg = question($answer, $need_question, true);
 if ($msg) {
     dalert($msg);
 }
 if (isset($post['islink'])) {
     unset($post['islink']);
 }
 $post['clear_link'] = $MOD['clear_link'];
 if ($do->pass($post)) {
     $CAT = get_cat($post['catid']);
     if (!$CAT || !check_group($_groupid, $CAT['group_add'])) {
         dalert(lang($L['group_add'], array($CAT['catname'])));
     }
     $post['addtime'] = $post['level'] = $post['fee'] = 0;
     $post['style'] = $post['template'] = $post['note'] = $post['filepath'] = '';
     $need_check = $MOD['check_add'] == 2 ? $MG['check'] : $MOD['check_add'];
     $post['status'] = get_status(3, $need_check);
     $post['hits'] = 0;
     $post['username'] = $_username;
     $post['save_remotepic'] = $MOD['save_remotepic'] ? 1 : 0;
     $post['clear_link'] = $MOD['clear_link'] ? 1 : 0;
     $post['introduce_length'] = $MOD['introduce_length'] ? $MOD['introduce_length'] : 0;
     if ($could_color && $color && $_credit > $MOD['credit_color']) {
         $post['style'] = $color;