macsplex.com 로그인

검색

조회 수 120 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄
Extra Form
phpbb에서 로그인에러 메시지가 나올때

login.php에 이 함수를 추가시켜주면 로그인에러가 사라집니다.



function phpbb_clean_username($username)

{

$username = substr(htmlspecialchars(str_replace("'", "'", trim($username))), 0, 25);

$username = phpbb_rtrim($username, "");

$username = str_replace("'", "'", $username);



return $username;

}



// added at phpBB 2.0.12 to fix a bug in PHP 4.3.10 (only supporting charlist in php >= 4.1.0)

function phpbb_rtrim($str, $charlist = false)

{

if ($charlist === false)

{

return rtrim($str);

}



$php_version = explode('.', PHP_VERSION);



// php version < 4.1.0

if ((int) $php_version[0] < 4 || ((int) $php_version[0] == 4 && (int) $php_version[1] < 1))

{

while ($str{strlen($str)-1} == $charlist)

{

$str = substr($str, 0, strlen($str)-1);

}

}

else

{

$str = rtrim($str, $charlist);

}



return $str;

}




--------------------------------------------------광고(Advertising)-------------------------------------------------------------------------------------


TAG •

리눅스 Tip

Linux Tip

  1. phpbb에서 로그인 에러가 나올시에..

    Read More
  2. php5연동 curl 설치

    Read More
  3. php 업로드 용량 제한 변경하기

    Read More
  4. OpenXenManager 설치방법

    CategoryUbuntu
    Read More
  5. OpenCubicPlayer

    CategoryUbuntu
    Read More
  6. Ngnix 특정폴더 인증절차추가

    CategoryDebian
    Read More
  7. Nginx사용시 업로드용량변경

    CategoryDebian
    Read More
  8. Nginx 이미지링크 방지

    CategoryDebian
    Read More
  9. nginx semrush bot 차단

    Categorynginx
    Read More
  10. nginx rewrite 예제

    Categorynginx
    Read More
  11. Nginx php-fpm 설정

    CategoryDebian
    Read More
  12. nginx "rewrite" directive is not allowed here in 에러발생시

    CategoryDebian
    Read More
  13. nautilus-image-converter

    CategoryUbuntu
    Read More
  14. mysql의 최대 성능 향상 방법

    CategoryDB
    Read More
  15. MySQL에서 백업 및 복구

    CategoryDB
    Read More
  16. MySQL에서 root 암호 설정

    CategoryDB
    Read More
  17. Mysql(MaridaDB)접속시 ERROR 2002 발생시

    CategoryDB
    Read More
  18. Mysql 자동 백업 하기

    CategoryDB
    Read More
  19. Mysql table 깨졌을때

    CategoryDB
    Read More
  20. mysql root password 변경

    CategoryDB
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 Next
/ 8