tmpl_revisions', 'save_tmpl_files', 'tmpl_file_basepath'); $weblog_default = array('enable_image_resizing', 'image_resize_protocol', 'image_library_path', 'thumbnail_prefix', 'word_separator', 'use_category_name', 'reserved_category_word', 'auto_convert_high_ascii', 'new_posts_clear_caches', 'auto_assign_cat_parents'); $name = $which.'_default'; return ${$name}; } /* END */ } // END CLASS ?>key." = '".$this->escape_str($val)."' AND "; } $dest = preg_replace( "/AND $/" , "" , $dest); } else $dest = $where; return 'UPDATE `'.$table.'` SET '.$str.' WHERE '.$dest; } /* END */ } // END CLASS ?> } return $vals; } /* END */ } // END CLASS ?> { foreach($whitelisted_ip as $pure) { if ($pure != '' && strpos($this->AGENT, $pure) !== false) { $bad = 'n'; $this->whitelisted = 'y'; break; } } } if ( is_array($whitelisted_agent) && sizeof($whitelisted_agent) > 0) { foreach($whitelisted_agent as $pure) { if ($pure != '' && strpos($this->agent, $pure) !== false) { $bad = 'n'; $this->whitelisted = 'y'; break; } } } if ($bad == 'y') { $this->blacklisted = 'y'; } else { unset($_POST['HTTP_REFERER']); return true; // whitelisted, so end } } } } } unset($_POST['HTTP_REFERER']); return true; } /* END */ } // END CLASS ?>