<?php
/* vim: set expandtab tabstop=4 shiftwidth=4:
 +--------------------------------------------------------+
 | PHP version 5.x                                        |
 +--------------------------------------------------------+
 | Copyright : Song, Hyo-Jin <shj at xenosi.de>           |
 | Modifier  : Z&Mee <znmee at naver.com>                 |
 +--------------------------------------------------------+
 | License  : GPLv3                                       |
 +--------------------------------------------------------+
 $Id: autolink.inc.php, 2010-01-18. crucify, znmee Exp $
*/
function autolink($html) {
 return preg_replace_callback('~((?:https?|ftps?|ed2k|mmst?)://|//)?((\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:[a-z\d\-\.]+(?:\.(com|net|org|af|al|dz|as|ad|ao|ai|aq|ag|ar|am|aw|au|at|az|bs|bh|bd|bb|by|be|bz|bj|bm|bt|bo|ba|bw|bv|br|io|vg|bn|bg|bf|bi|kh|cm|ca|cv|ky|cf|td|cl|cn|cx|cc|co|km|cd|cg|ck|cr|ci|cu|cy|cz|dk|dj|dm|do|ec|eg|sv|gq|er|ee|et|fo|fk|fj|fi|fr|gf|pf|tf|ga|gm|ge|de|gh|gi|gr|gl|gd|gp|gu|gt|gn|gw|gy|ht|hm|va|hn|hk|hr|hu|is|in|id|ir|iq|ie|il|it|jm|jp|jo|kz|ke|ki|kp|kr|kw|kg|la|lv|lb|ls|lr|ly|li|lt|lu|mo|mk|mg|mw|my|mv|ml|mt|mh|mq|mr|mu|yt|mx|fm|md|mc|mn|ms|ma|mz|mm|na|nr|np|an|nl|nc|nz|ni|ne|ng|nu|nf|mp|no|om|pk|pw|ps|pa|pg|py|pe|ph|pn|pl|pt|pr|qa|re|ro|ru|rw|sh|kn|lc|pm|vc|ws|sm|st|sa|sn|cs|sc|sl|sg|sk|si|sb|so|za|gs|es|lk|sd|sr|sj|sz|se|ch|sy|tw|tj|tz|th|tl|tg|tk|to|tt|tn|tr|tm|tc|tv|vi|ug|ua|ae|gb|um|us|uy|uz|vu|ve|vn|wf|eh|ye|zm|zw))))(:\d+)?(?:([^/\s\)\x80-\xff])|/[^ \)<>\r\n]*)?)~im', 'autolink_callback', $html);

}
function autolink_callback($matches) {
 if( isset($matches[6]) ) {
  if( $matches[6] != '' ) { return $matches[0]; }
 }
 $link = '';
 if( $matches[1] != '' ) {
  $link .= $matches[1];
 } else {
  $link .= 'http://';
 }
 $link .= $matches[2];
 $url = $link;
 $arr = explode('?',$link);
 if ( isset($arr[1]) ) {
  $ar = explode('&',$arr[1]);
  foreach ( $ar as &$v ) {
   $i = explode('=',$v);
   $v = $i[0];
   if ( isset($i[1]) ) {
    $str = $i[1];
    if ( preg_match('/[\x80-\xff]+/',$str) ) {
     $v .= '='.urlencode($i[1]);
    } else {
     $v .= '='.$i[1];
    }
   }
  }
  $arr[1] = implode('&amp;',$ar);
  $url = $arr[0].'?'.$arr[1];
 }
 $urlHtm = htmlspecialchars($matches[0]);
 return '<a href="'.$url.'" title="'.$urlHtm.'" onclick="window.open(this.href); return false;">'.$urlHtm.'</a>';
}
?>

 

 

 

 

http://www.casternet.com/spamfree/example.php?code=20091202_02

mcrypt 없다고 난리칠때..

System Tips/Linux | 2009/10/24 21:50 | kalcapt
yum install libmcrypt libmcrypt-devel libmhash libmhash-devel

LinuxThreads 를 포함한..

잡것들.. 에러뜰 때...

이번엔;;

 

yum install gcc gcc-c++ cpp-c++ compat-gcc-32-g77 flex libjpeg-devel libpng-devel freetype-devel gd-devel libmcrypt php-ncurses.x86_64 glibc-utils.x86_64 libtiff-devel curl libtermcap-devel

 

요놈.. 한번 실행시켜주니깐.. 두말없이 컴파일되네;;ㅋㅋ

LinuxThreads 에러

분류없음 | 2009/10/24 20:25 | kalcapt
mysql 설치중 에러

checking "LinuxThreads"... "Not found"
configure: error: This is a linux system and Linuxthreads was not
found. On linux Linuxthreads should be used.  Please install Linuxthreads
(or a new glibc) and try again.  See the Installation chapter in the
Reference Manual for more information.
 
-----------------------------------------------------------------------

코어4에서는 새로운 glibc를 쓰는데...
/usr/include/pthread.h 에 /* Linuxthreads */ 라고 추가해줘야 한다는군요..
echo "/* Linuxthreads */" >> /usr/include/pthread.h
첫줄에 넣어두 되고 아무곳에나....

원인!!
mysql configure과정에서
pthread.h파일을 찾아 위 문구가 있는지 조사합니다.
Fedora Core4의 gllibc는 당연히 없으니 에러가 납니다!

-----------------------------------------------------------------------
흠...결국엔 요즘배포판 버전에는 상관이 없다는 말인가?? 혹시나 하는마음에 글작성..

- 출처 : 서버구글 -

필리핀을 향해..~

Kalcapt!!!/Diary!! | 2009/10/03 16:09 | kalcapt

오늘(10.03.sat) 6시에 합회 앞에서 모여서 인천으로 고고싱~

내일(10.04.sun) 새벽에 비행기타고 슝슝 간데욤.ㅋㅋ

 

PR467편 타고~

...

 

미국 유학간다고 알고 있는사람들 OTL;;

 

다녀와서 후한이 후환이 걱정되넹;;ㅋㅋㅋㅋ [5타정정 ㅋㅋㅋㅋ]

 

잘 무마시켜야지..~;

 

BlahBlah~

이전 1 2 3 4 5 ... 32 다음