This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// String Object | |
// Copyright (c) 2010 Kijin Sung <[email protected]> | |
// License: WTFPL <http://www.wtfpl.net/> | |
class String | |
{ | |
// Some properties. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ์น์ฌ์ดํธ์์ ๋ค์ด๋ฐ์ ์ ๋นํ ๊ณณ์ ์์ถ ํธ์ธ์. | |
require_once('/๊ฒฝ๋ก/htmlpurifier/library/HTMLPurifier.auto.php'); | |
// ๊ธฐ๋ณธ ์ค์ ์ ๋ถ๋ฌ์จ ํ ์ ๋นํ ์ปค์คํฐ๋ง์ด์ง์ ํด์ค๋๋ค. | |
$config = HTMLPurifier_Config::createDefault(); | |
$config->set('Attr.EnableID', false); | |
$config->set('Attr.DefaultImageAlt', ''); | |
// ์ธํฐ๋ท ์ฃผ์๋ฅผ ์๋์ผ๋ก ๋งํฌ๋ก ๋ฐ๊ฟ์ฃผ๋ ๊ธฐ๋ฅ | |
$config->set('AutoFormat.Linkify', true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Easy PDO for PHP 5.x | |
* Version 1.2 | |
* | |
* Copyright (c) 2009-2014 Kijin Sung <[email protected]> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// AES-256๊ณผ HMAC์ ์ฌ์ฉํ์ฌ ๋ฌธ์์ด์ ์ํธํํ๊ณ ์๋ณ์กฐ๋ฅผ ๋ฐฉ์งํ๋ ๋ฒ. | |
// ๋น๋ฐ๋ฒํธ๋ ์๋ฒ๋ง ์๊ณ ์์ด์ผ ํ๋ค. ์ ๋ ํด๋ผ์ด์ธํธ์๊ฒ ์ ์กํด์๋ ์๋๋ค. | |
// PHP 5.2 ์ด์, mcrypt ๋ชจ๋์ด ํ์ํ๋ค. | |
// ๋ฌธ์์ด์ ์ํธํํ๋ค. | |
function aes_encrypt($plaintext, $password) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ๋น๋์นญ ์๊ณ ๋ฆฌ๋ฌ์ธ RSA๋ฅผ ์ฌ์ฉํ์ฌ ๋ฌธ์์ด์ ์ํธํํ๋ ๋ฒ. | |
// ๊ฐ์ธํค ๋น๋ฐ๋ฒํธ๋ ์ํธํํ ๋๋ ํ์์๊ณ ๋ณตํธํํ ๋๋ง ์ ๋ ฅํ๋ฉด ๋๋ฏ๋ก | |
// ์๋ฒ์ ์ ์ฅํ ํ์ ์์ด ๊ทธ๋๊ทธ๋ ๊ด๋ฆฌ์๊ฐ ์ ๋ ฅํ๋๋ก ํด๋ ๋๋ค. | |
// PHP 5.2 ์ด์, openssl ๋ชจ๋์ด ํ์ํ๋ค. | |
// RSA ๊ฐ์ธํค, ๊ณต๊ฐํค ์กฐํฉ์ ์์ฑํ๋ค. | |
// ํค ์์ฑ์๋ ์๊ฐ์ด ๋ง์ด ๊ฑธ๋ฆฌ๋ฏ๋ก, ํ ๋ฒ๋ง ์์ฑํ์ฌ ์ ์ฅํด ๋๊ณ ์ฌ์ฉํ๋ฉด ๋๋ค. | |
// ๋จ, ๋น๋ฐ๋ฒํธ๋ ๊ฐ์ธํค๋ฅผ ์ฌ์ฉํ ๋๋ง๋ค ํ์ํ๋ค. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* PHP ํ์ผ ๋ค์ด๋ก๋ ํจ์. | |
* Version 1.3 | |
* | |
* Copyright (c) 2014 ์ฑ๊ธฐ์ง Kijin Sung | |
* | |
* License: MIT License (a.k.a. X11 License) | |
* http://www.olis.or.kr/ossw/license/license/detail.do?lid=1006 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// License: Public Domain | |
// | |
// ๋ง์ง๋ง ๊ธ์์ ๋ฐ์นจ์ด ์์ผ๋ฉด 0๋ณด๋ค ํฐ ์ ์๋ฅผ ๋ฐํํ๊ณ | |
// ๋ฐ์นจ์ด ์์ผ๋ฉด 0์ ๋ฐํํ๋ค. | |
// | |
// ์: | |
// $word = '๊นํ๋ธ'; | |
// echo $word . (has_batchim($word) ? '์' : '๋ฅผ'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Password Hashing with PBKDF2 (http://crackstation.net/hashing-security.htm). | |
* Copyright (c) 2013, Taylor Hornby | |
* All rights reserved. | |
* | |
* Modified to Work with Older Versions of PHP | |
* Copyright (c) 2014, Kijin Sung | |
* All rights reserved. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* CloudFlare ์ฌ์ฉ์ ์ค์ ๋ฐฉ๋ฌธ์ IP ๋ฐ SSL ์ฌ์ฉ ์ฌ๋ถ๋ฅผ | |
* ์ ํํ๊ฒ ํ์ ํ์ง ๋ชปํ๋ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ํด๋์ค | |
* ์น์๋ฒ์ mod_cloudflare๋ฅผ ์ค์นํ๊ธฐ ๊ณค๋ํ ๊ฒฝ์ฐ ์ฌ์ฉํ๋ค | |
* | |
* Written by ๊ธฐ์ง๊ณฐ <[email protected]> | |
* License: Public Domain | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* XE ๊ตฌ๋ฒ์ ์ PHP ์ธ์ดํ์ผ์ด๋ ๋ผ์ด๋ฏน์ค์ PHP ์ธ์ดํ์ผ์ | |
* lang.xml ํ์์ผ๋ก ๋ณํํ๋ ํ๋ก๊ทธ๋จ | |
* | |
* Copyright (c) 2016 Kijin Sung <[email protected]> | |
* License: MIT | |
*/ |
OlderNewer