You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
808 B

7 years ago
7 years ago
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3. class Helptool extends WB_Controller {
  4. public function index()
  5. {
  6. show_404();
  7. }
  8. public function lang()
  9. {
  10. header('Content-Type: application/javascript; charset=UTF-8');
  11. header('cache-control: no-cache, must-revalidate');
  12. header('pragma: no-cache');
  13. echo "var LANG = {};".PHP_EOL;
  14. $list = $this->db->get('localize')->result_array();
  15. foreach($list as $row) {
  16. $key = str_replace( array("게시판","공통","회원","팝업"), array('board','common','member','popup'), $row['loc_key'] );
  17. echo "LANG." . str_replace("/", "_", $key)." = '".str_replace("\r\n","", nl2br($row['loc_value_'.LANG]))."';".PHP_EOL;
  18. }
  19. exit;
  20. }
  21. }