どういうわけか9月に、誰か
が半自動キーワード生成のアイデア
を提案しましたが、解決策は提案されませんでした。
ngcmsと2z-projectフォーラムで提案を聞いた後、解決策が
生まれました :
class.php(キーワードを定義するクラス)<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
<?
class autokeyword {
var $contents ;
var $encoding ;
var $keywords ;
var $wordLengthMin ;
var $wordOccuredMin ;
var $wordLengthMax ;
var $wordGoodArray ;
var $wordBlockArray ;
var $wordMaxCount ;
var $wordB ;
var $wordAddTitle ;
var $wordTitle ;
function autokeyword ( $params , $encoding )
{
$this -> wordGoodArray = array ( ) ;
$this -> wordBlockArray = array ( ) ;
$this -> encoding = $encoding ;
$this -> wordLengthMin = $params [ 'min_word_length' ] ;
$this -> wordLengthMax = $params [ 'max_word_length' ] ;
$this -> wordMaxCount = $params [ 'word_count' ] ;
if ( $params [ 'good_b' ] ) { $this -> wordB = 1 ; }
if ( $params [ 'add_title' ] > 0 )
{
$this -> wordAddTitle = $params [ 'add_title' ] ; $this -> wordTitle = $params [ 'title' ] ;
for ( $i = 0 ; $i < $this -> wordAddTitle ; $i ++ ) { $content .= $this -> wordTitle . ' ' ; }
$params [ 'content' ] = $content . ' ' . $params [ 'content' ] ;
}
if ( $params [ 'good_array' ] && $params [ 'good_word' ] == true ) { $this -> wordGoodArray = explode ( " \r \n " , $params [ 'good_array' ] ) ; }
if ( $params [ 'block_array' ] && $params [ 'block_word' ] == true ) { $this -> wordBlockArray = explode ( " \r \n " , $params [ 'block_array' ] ) ; }
$this -> contents = $this -> replace_chars ( $params [ 'content' ] ) ;
}
function replace_chars ( $content )
{
$content = strtolower ( $content ) ;
$content = strip_tags ( $content ) ;
if ( $this -> wordB == 1 ) { $content = preg_replace ( '[/b]!si' , '$1 $1' , $content ) ; }
$punctuations = array ( ',' , ')' , '(' , '.' , "'" , '"' , '<' , '>' , ';' , '!' , '?' , '/' , '-' ,
'_' , '[' , ']' , ':' , '+' , '=' , '#' , '$' , '"' , '©' , '>' , '<' , chr ( 10 ) , chr ( 13 ) , chr ( 9 ) ) ;
$punctuations = array_merge ( $this -> wordBlockArray , $punctuations ) ;
$content = str_replace ( $punctuations , " " , $content ) ;
$content = preg_replace ( '/ {2,}/si' , " " , $content ) ;
return $content ;
}
function parse_words ( )
{
$common = array ( "aaaaaaa" , "aaaaaaa" ) ;
$s = split ( " " , $this -> contents ) ;
$k = array ( ) ;
foreach ( $s as $key => $val ) {
if ( strlen ( trim ( $val ) ) >= $this -> wordLengthMin && strlen ( trim ( $val ) ) <= $this -> wordLengthMax && ! in_array ( trim ( $val ) , $common ) && ! is_numeric ( trim ( $val ) ) )
{
$k [ ] = trim ( $val ) ;
}
}
$k = array_count_values ( $k ) ;
$occur_filtered = $this -> occure_filter ( $k , $this -> wordOccuredMin ) ;
arsort ( $occur_filtered ) ;
$occur_filtered = array_flip ( $this -> wordGoodArray ) + $occur_filtered ;
array_splice ( $occur_filtered , $this -> wordMaxCount ) ;
$imploded = $this -> implode ( ", " , $occur_filtered ) ;
unset ( $k ) ;
unset ( $s ) ;
return $imploded ;
}
function occure_filter ( $array_count_values , $min_occur )
{
$occur_filtered = array ( ) ;
foreach ( $array_count_values as $word => $occured ) {
if ( $occured >= $min_occur ) {
$occur_filtered [ $word ] = $occured ;
}
}
return $occur_filtered ;
}
function implode ( $gule , $array )
{
$c = "" ;
foreach ( $array as $key => $val ) {
@ $c .= $key . $gule ;
}
return $c ;
}
}
?>
ajax.php(クラウドを返します)- <?
- if ( $ _POST [ 'q' ] )
- {
- header ( 'Content-type:text / html; charset = windows-1251' ) ;
- include_once ( "class.php" ) ;
- if ( $ _POST [ 'q' ] == '' || $ _POST [ 'q' ] == 'undefined' ) die ( '{"res": "エラー"、 "msg": "データなし!"} ' ) ;
- $ params [ 'content' ] = iconv ( 'UTF-8' 、 'windows-1251' 、 $ _POST [ 'q' ] ) ;
- $ params [ 'min_word_length' ] = 5 ; //最小語長
- $ params [ 'max_word_length' ] = 100 ; //最大語長
- $ params [ 'min_word_occur' ] = 2 ; //ビルドの最小数
- $ params [ 'word_sum' ] = 245 ; //すべての単語の最大長(スペース文字を指定)
- $ params [ 'block_word' ] = false ; //ストップワードをブロックします(追加したくない)
- $ params [ 'block_array' ] = 'hello' ; //ストップワードのリスト(改行セパレーター)
- $ params [ 'good_word' ] = false ; //お気に入りの単語を追加します(本当に追加したい)
- $ params [ 'good_array' ] = 'Habrahabr' ; //お気に入りの単語のリスト(改行セパレーター)
- $ params [ 'add_title' ] = 0 ; //タイトルを追加します(タイトルを追加する必要がある回数)
- $ params [ 'word_count' ] = 245 ; //最大単語数
- $ params [ 'good_b' ] = false ; // <b>タグ内の単語をdoubleとしてカウントします
- $ keyword = new autokeyword ( $ params 、 "windows-1251" ) ;
- $ SQL [ 'keywords' ] = substr ( $ keyword- > parse_words ( ) 、 0 、 $ params [ 'word_sum' ] ) ;
- $ SQL [ 'keywords' ] = substr ( $ SQL [ 'keywords' ] 、 0 、 strrpos ( $ SQL [ 'keywords' ] 、 '、' ) ) ;
- echo '{"res": "ok"、 "x1": "<span>' 。 $ SQL [ 'keywords' ] 。 '</ span>"}' ;
- }
- ?>
js.js(ページからリクエストを送信します)- 関数 SendPOST ( )
- {
- var data = document。 フォーム 内容 。 値 ;
- var title = document。 フォーム タイトル 値 ;
- ajaxSendPOST ( 'ajax.php' 、 'q =' + encodeURI ( title ) + '' + encodeURI ( data ) 、 SendCallback ) ;
- }
- 関数 SendCallback ( answer ) {
- var ans = eval ( '(' + answer + ')' ) ;
- if ( ans。res == 'error' ) { alert ( 'Empty?' ) ; 帰る }
- if ( ans。res != 'ok' ) { alert ( '私は何と言ったらいいかわからない' ) ; 帰る }
- keys_out = ans。 x1 ;
- keys_out = keys_out。 replace ( /、/ g 、 '</ span> <span>' ) ;
- ドキュメント。 getElementById ( 'autokey_out' ) 。 innerHTML = keys_out ;
- key_span =ドキュメント。 getElementById ( 'autokey_out' ) ;
- key_click = key_span。 getElementsByTagName ( 'span' ) ;
- for ( key_clickのi )
- {
- key_click [ i ] 。 onclick = function ( ) {
- if ( document。form。keyword。value == '' )
- {
- ドキュメント。 フォーム キーワード 。 値 = これ 。 innerHTML ;
- これ 。 parentNode 。 removeChild ( これ ) ;
- }
- 他に
- {
- ドキュメント。 フォーム キーワード 。 値 + = '、' + this 。 innerHTML ;
- これ 。 parentNode 。 removeChild ( これ )
- }
- }
- }
- }
- 関数 ajaxSendPOST ( xmlpage 、 data 、コールバック)
- {
- var xmlh = null ;
- if ( window。XMLHttpRequest )
- xmlh = new XMLHttpRequest ( ) ;
- 他に
- 試してみる
- { xmlh = new ActiveXObject ( 'Msxml2.XMLHTTP' ) ; }
- キャッチ ( ex )
- { xmlh = new ActiveXObject ( 'Microsoft.XMLHTTP' ) ; }
- if ( xmlh )
- {
- xmlh。 open ( 'post' 、 xmlpage 、 true ) ;
- xmlh。 onreadystatechange = function ( x ) { if ( xmlh。readyState == 4 ) callback ( xmlh。responseText ) ; }
- xmlh。 setRequestHeader ( "Accept-Charset" 、 "windows-1251" ) ;
- xmlh。 setRequestHeader ( "Accept-Language" 、 "ru、en" ) ;
- xmlh。 setRequestHeader ( "Connection" 、 "close" ) ;
- xmlh。 setRequestHeader ( "Content-length" 、 data。length ) ;
- xmlh。 setRequestHeader ( "Content-type" 、 "application / x-www-form-urlencoded" ) ;
- xmlh。 送信 (データ) ;
- }
- }
index.php- < スクリプト タイプ = "text / javascript" src = "js.js" > < / script >
- < スタイル タイプ = "text / css" >
- #autokey_out span {cursor:pointer; テキスト装飾:下線}
- < / スタイル >
- < form id = "postForm" name = "form" method = "post" action = "#" target = "_self" >
- < textarea name = "content" rows = "16" cols = "60" tabindex = "2" > < / / textarea >
- <br />
- < 入力 タイプ = 「テキスト」 名前 = 「キーワード」 サイズ = 「60」 値 = 「」 >
- < 入力 タイプ = 「送信」 値 = 「キーワードの取得」 name = 「autokey_keys」 onclick = 「javascript:SendPOST(); return false;」 >
- <br />
- < div id = "autokey_out" > < / / div >
- < / フォーム >
ソルサこれは最初の記事です。 あまりscられないでください。
______________________