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

This commit is contained in:
jeonghwa
2026-07-03 05:27:29 +09:00
commit d918e2eddc
2971 changed files with 264195 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class ArticleController extends MY_Controller
{
public function __construct()
{
parent::__construct();
}
public function index()
{
$this->load->model('CategoryModel', 'categoryModel');
$this->load->model('ArticleModel', 'articleModel');
$this->response(200, 'success', ['insert' => $this->articleModel->save(json_decode($this->input->raw_input_stream))]);
}
}

View File

@@ -0,0 +1,27 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class KeyController extends CI_Controller
{
public function __construct()
{
parent::__construct();
}
public function index()
{
$this->load->library('encryption');
$this->encryption->initialize(
array(
'cipher' => 'aes-256',
'mode' => 'ctr',
'key' => '2UFdhHgY5n5Smd5RnD3H8Z6rKJ8j3zra'
)
);
$ciphertext = $this->encryption->encrypt('ctnews^L3wvaMt8GLAatZLE.T' . base64_encode(time()));
$this->output
->set_content_type('application/json')
->set_output(json_encode(['token' => $ciphertext]));
}
}

View File

@@ -0,0 +1,21 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class PlaceController extends MY_Controller
{
public function __construct()
{
parent::__construct();
}
public function index()
{
}
public function save()
{
$this->load->model('PlaceModel', 'placeModel');
$this->response(200, 'success', ['insert' => $this->placeModel->save(json_decode($this->input->raw_input_stream))]);
}
}

View File

@@ -0,0 +1,19 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class PodController extends MY_Controller
{
public function __construct()
{
parent::__construct();
}
public function station()
{
if($this->input->method() == 'post') {
$this->load->model('StationModel', 'stationModel');
$this->response(200, 'success', $this->stationModel->save(json_decode($this->input->raw_input_stream)));
}
}
}

View File

@@ -0,0 +1,25 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Welcome extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/welcome/<method_name>
* @see https://codeigniter.com/user_guide/general/urls.html
*/
public function index()
{
$this->load->view('welcome_message');
}
}

View File

@@ -0,0 +1,37 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class YoutubeController extends MY_Controller
{
public function __construct()
{
parent::__construct();
}
public function index()
{
$this->load->model('LifeModel', 'lifeModel');
$this->response(200, 'success', $this->lifeModel->saveCmTv(json_decode($this->input->raw_input_stream)));
}
public function curation() {
$this->load->model('CurationModel', 'curationModel');
$this->response(200, 'success', $this->curationModel->save(json_decode($this->input->raw_input_stream)));
}
public function video() {
$this->load->model('CurationModel', 'curationModel');
$this->response(200, 'success', $this->curationModel->get(json_decode($this->input->raw_input_stream)));
}
public function delete() {
$this->load->model('CurationModel', 'curationModel');
$this->response(200, 'success', $this->curationModel->delete(json_decode($this->input->raw_input_stream)));
}
public function channel() {
$this->load->model('ChannelModel', 'channelnModel');
$this->response(200, 'success', $this->channelnModel->get(json_decode($this->input->raw_input_stream)));
}
}

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>