'', 'section' => '', 'force' => 0, ),$atts)); $key = array_search('countxx', $prefs); if ($category<>'' ){ $cat1 = (in_list($thisarticle['category1'], $category) ? 1 : 0) || (in_list($thisarticle['category2'], $category) ? 1 : 0); } else { $cat1 = 1; } if ($section<>'' ){ $sec1 = in_list($thisarticle['section'], $section) ? 1 : 0; } else { $sec1 = 1; } if (($key<>"") && $cat1 && $sec1) { $key = str_replace("_set", "", $key); if (is_numeric($thisarticle['countxx'])) { $cal = $thisarticle['countxx']+1; $updated = safe_update("textpattern",$key."='".doSlash($cal)."'","ID='".doSlash($id)."'"); } elseif ($force) { $cal = '0'; $updated = safe_update("textpattern",$key."='".doSlash($cal)."'","ID='".doSlash($id)."'"); } } }