Initial import from local backup (Documents-Playground/pakerpale)

This commit is contained in:
jeonghwa
2026-07-03 05:27:47 +09:00
commit d8dab43237
1460 changed files with 134466 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Main class
*/
/**
* 메인 페이지를 담당하는 controller 입니다.
*/
class Main extends MY_Controller
{
/**
* 모델을 로딩합니다
*/
protected $models = array();
/**
* 헬퍼를 로딩합니다
*/
protected $helpers = array('form', 'array');
function __construct()
{
parent::__construct();
/**
* 라이브러리를 로딩합니다
*/
$this->load->library(array('querystring'));
}
/**
* 전체 메인 페이지입니다
*/
public function index()
{
if ($this->userlib->is_admin()) {
redirect(admin_url());
} else if ( ! $this->userlib->item('user_id')) {
redirect(site_url('login'));
} else {
redirect(site_url('login/nopage'));
}
}
}