Permalink
Browse files

fix

  • Loading branch information...
CatsMiaow committed Nov 28, 2015
1 parent 568fecd commit 52aa6fa980f0454358e6f2f40cf64d5acf50ba7f
@@ -254,7 +254,8 @@ function &get_config($replace = array())
}
}
return $_config[0] =& $config;
$_config[0] =& $config;
return $_config[0];
}
}
@@ -9,21 +9,7 @@ function __construct() {
function index() {
// $this->output->cache(1440); // 캐시 되고 있는동안 common 작동 안함
/* Apache 모듈 내역
$apache_m = @apache_get_modules();
$apache_modules = '';
$i = 1;
foreach ($apache_m as $row) {
$apache_modules .= $row.' ';
if ($i == 5) {
$apache_modules .= '<br/>';
$i = 1;
} else
$i++;
}
*/
// 계정의 사용량을 구함
$account_space = `du -sb`;
$account_space = substr($account_space,0,strlen($account_space)-3);
@@ -80,8 +66,6 @@ function index() {
'account_space' => byte_format($account_space),
'data_space' => byte_format($data_space),
'code_space' => byte_format($account_space - $data_space),
'apache_version' => apache_get_version(),
//'apache_modules' => $apache_modules,
'php_version' => phpversion(),
'zend_version' => zend_version(),
'gd_version' => $gd_version,
@@ -7,7 +7,7 @@ function __construct() {
$this->_assign_libraries();
}
function run($controller) {
public static function run($controller) {
if (strpos($controller, '.') !== FALSE) {
list($controller, $method) = explode('.', $controller);
}
@@ -20,7 +20,7 @@ function run($controller) {
// class name
$class = end(explode('/', $controller));
if ($class =& new $class()) {
if ($class = new $class()) {
if (method_exists($class, $method)) {
$args = func_get_args();
return call_user_func_array(array($class, $method), array_slice($args, 1));
@@ -253,13 +253,15 @@ function get_min_num($bo_table) {
}
function write_insert($bo_table, $wr_content, $wr_num, $wr_reply, $mb, $bo_notice) {
$wr_option = array($this->input->post('editor'),$this->input->post('secret'),$this->input->post('mail'),$this->input->post('nocomt'));
$this->db->insert('ki_write', array(
'bo_table' => $bo_table,
'wr_num' => $wr_num,
'wr_reply' => $wr_reply,
'wr_comment' => '0',
'ca_code' => ($this->input->post('ca_code')) ? str_replace('-', '.', $this->input->post('ca_code')) : '',
'wr_option' => $this->input->post('editor').','.$this->input->post('secret').','.$this->input->post('mail').','.$this->input->post('nocomt'),
'wr_option' => implode(',', array_filter($wr_option)),
'wr_subject' => $this->input->post('wr_subject'),
'wr_content' => $wr_content,
'wr_hit' => '0',
@@ -292,14 +294,16 @@ function write_insert($bo_table, $wr_content, $wr_num, $wr_reply, $mb, $bo_notic
function write_update($bo_table, $wr_content, $wr_id, $mb, $bo_notice) {
$ca_code = ($this->input->post('ca_code')) ? str_replace('-', '.', $this->input->post('ca_code')) : '';
$wr_option = array($this->input->post('editor'),$this->input->post('secret'),$this->input->post('mail'),$this->input->post('nocomt'));
$sql = array(
'ca_code' => $ca_code,
'wr_option' => $this->input->post('editor').','.$this->input->post('secret').','.$this->input->post('mail').','.$this->input->post('nocomt'),
'ca_code' => $ca_code,
'wr_option' => implode(',', array_filter($wr_option)),
'wr_subject' => $this->input->post('wr_subject'),
'wr_content' => $wr_content,
'mb_id' => $mb['mb_id'],
'wr_name' => $mb['wr_name'],
'wr_email' => $mb['wr_email']
'mb_id' => $mb['mb_id'],
'wr_name' => $mb['wr_name'],
'wr_email' => $mb['wr_email']
);
if ($this->input->post('wr_password')) {
@@ -6,33 +6,35 @@ function __construct() {
function insert($mb_nick) {
$sql = array(
'mb_id' => $this->input->post('mb_id'),
'mb_password' => $this->encrypt->encode($this->input->post('mb_password')),
'mb_name' => $this->input->post('mb_name'),
'mb_sex' => $this->input->post('mb_sex'),
'mb_birth' => $this->input->post('mb_birth'),
'mb_nick' => $mb_nick,
'mb_nick_date' => TIME_YMD,
'mb_password_q' => $this->input->post('mb_password_q'),
'mb_password_a' => $this->input->post('mb_password_a'),
'mb_email' => $this->input->post('mb_email'),
'mb_homepage' => $this->input->post('mb_homepage'),
'mb_tel' => $this->input->post('mb_tel'),
'mb_hp' => $this->input->post('mb_hp'),
'mb_zip' => $this->input->post('mb_zip1').'-'.$this->input->post('mb_zip2'),
'mb_addr1' => $this->input->post('mb_addr1'),
'mb_addr2' => $this->input->post('mb_addr2'),
'mb_profile' => $this->input->post('mb_profile', TRUE),
'mb_id' => $this->input->post('mb_id'),
'mb_password' => $this->encrypt->encode($this->input->post('mb_password')),
'mb_name' => $this->input->post('mb_name'),
'mb_sex' => $this->input->post('mb_sex'),
'mb_nick' => $mb_nick,
'mb_nick_date' => TIME_YMD,
'mb_password_q' => $this->input->post('mb_password_q'),
'mb_password_a' => $this->input->post('mb_password_a'),
'mb_email' => $this->input->post('mb_email'),
'mb_homepage' => $this->input->post('mb_homepage'),
'mb_tel' => $this->input->post('mb_tel'),
'mb_hp' => $this->input->post('mb_hp'),
'mb_zip' => $this->input->post('mb_zip1').'-'.$this->input->post('mb_zip2'),
'mb_addr1' => $this->input->post('mb_addr1'),
'mb_addr2' => $this->input->post('mb_addr2'),
'mb_profile' => $this->input->post('mb_profile', TRUE),
'mb_today_login' => TIME_YMDHIS,
'mb_datetime' => TIME_YMDHIS,
'mb_ip' => $this->input->server('REMOTE_ADDR'),
'mb_level' => $this->config->item('cf_register_level'),
'mb_login_ip' => $this->input->server('REMOTE_ADDR'),
'mb_mailling' => $this->input->post('mb_mailling'),
'mb_open' => $this->input->post('mb_open'),
'mb_open_date' => TIME_YMD
'mb_datetime' => TIME_YMDHIS,
'mb_ip' => $this->input->server('REMOTE_ADDR'),
'mb_level' => $this->config->item('cf_register_level'),
'mb_login_ip' => $this->input->server('REMOTE_ADDR'),
'mb_mailling' => $this->input->post('mb_mailling'),
'mb_open' => $this->input->post('mb_open'),
'mb_open_date' => TIME_YMD
);
if ($this->input->post('mb_birth'))
$sql['mb_birth'] = $this->input->post('mb_birth');
// 이메일 인증을 사용하지 않는다면 이메일 인증시간을 바로 넣는다
if (!$this->config->item('cf_use_email_certify'))
$sql['mb_email_certify'] = TIME_YMDHIS;
View
@@ -7,9 +7,14 @@ if (typeof(KCAPTCHA_JS) == 'undefined') {
$(function() {
$('body').on('click', '#kcaptcha', function() {
$.post(rt_path + '/_trans/kcaptcha/session', function(data) {
$('#kcaptcha').attr('src', rt_path + '/_trans/kcaptcha/image/' + (new Date).getTime());
md5_norobot_key = data;
$.ajax({
type: 'POST',
url: rt_path + '/_trans/kcaptcha/session',
contentType: 'application/x-www-form-urlencoded',
success: function(data) {
$('#kcaptcha').attr('src', rt_path + '/_trans/kcaptcha/image/' + (new Date).getTime());
md5_norobot_key = data;
}
});
});
$('#kcaptcha').trigger('click');
View
@@ -18,14 +18,6 @@ <h4>계정 정보</h4><hr/>
<dd><?=$data_space?></dd>
<dt>프로그램 사용량(A-D)</dt>
<dd><?=$code_space?></dd>
<dt>Apache 버전</dt>
<dd><?=$apache_version?></dd>
<!--
<dt>Apache 모듈</dt>
<dd>- 생략 -</dd>
-->
<dt>PHP 버전</dt>
<dd><?=$php_version?></dd>
<dt>Zend 버전</dt>

0 comments on commit 52aa6fa

Please sign in to comment.