KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /home/queenjbs/xe/modules/pop_up/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/xe/modules/pop_up/pop_up.admin.controller.php
<?php
    /**
     * @class  pop_upAdminController
     * @author zirho (zirho6@gmail.com)
     * @brief  pop_up ¸ðµâÀÇ admin controller class
     **/

    class pop_upAdminController extends pop_up {

        /**
         * @brief ÃʱâÈ­
         **/
        function init() {
        }

        /**
         * @brief ÆË¾÷ ¸ðµâ ½Ã½ºÅÛ Á¤º¸ ÀÔ·Â
         **/
		function procPop_upAdminInsertPopupData(){
			
			$oModuleModel = &getModel('module');
			$ouput = $oModuleModel->isIDExists($this->module);
			if(!$output){
				// module ¿¡ pop_up µ¥ÀÌÅÍ ÀÔ·Â
				$site_module_info = Context::get('site_module_info');
				$args->site_srl = $site_module_info->site_srl;
				$args->mid = $this->module;
				$args->module = $this->module;

				$oModuleController = &getController('module');
				$output = $oModuleController->insertModule($args);

				// ÆË¾÷ ³»¿ë ÅØ½ºÆ® ¿¡µðÅÍ ³ôÀÌ Àû¿ë
				$module_srl = $output->get('module_srl');
				Context::set('target_module_srl', $module_srl);
				Context::set('editor_height', '200');
				Context::set('enable_autosave', 'N');

				$oEditorController = &getController('editor');
				$oEditorController->procEditorInsertModuleConfig();
			}
		}

        /**
         * @brief ÆË¾÷ ¿¬°á Ãß°¡
         **/
        function procPop_upAdminInsertPopupConn() {

            // ¸ðµâÀÇ Á¤º¸ ¼³Á¤
            $args = Context::getRequestVars();

			// ÆË¾÷ ³»¿ë ÀúÀå
            $args->title = $args->popup_name;
            $oDocumentController = &getController('document');

            // ÆË¾÷ ¸ðµâÀÇ model/controller °´Ã¼ »ý¼º
            $oPopupController = &getController('pop_up');
            $oPopupModel = &getModel('pop_up');
			
			// popup_conn_srlÀÌ ³Ñ¾î¿À¸é ¿ø ¸ðµâÀÌ ÀÖ´ÂÁö È®ÀÎ
			if($args->popup_conn_srl) {
                $popup_conn_info = $oPopupModel->getPop_upInfoByPopupSrl($args->popup_conn_srl);
                if($popup_conn_info->popup_conn_srl != $args->popup_conn_srl) unset($args->popup_conn_srl);
            }
			
			$args->document_srl = $popup_conn_info->document_srl;

            // module_srlÀÇ °ª¿¡ µû¶ó insert/update
            if(!$args->popup_conn_srl) {

				$output = $oDocumentController->insertDocument($args);			
				$args->document_srl = $output->get('document_srl');

                $args->popup_conn_srl = getNextSequence();
                $output = $oPopupController->procPop_upInsertPopupConn($args);
                $msg_code = 'success_registed';
            } else {
				
				$oDocumentModel = &getModel('document');
				$oDocument = $oDocumentModel->getDocument($popup_conn_info->document_srl, $this->grant->manager);

				$oDocumentController = &getController('document');
				$output = $oDocumentController->updateDocument($oDocument, $args);			

                $output = $oPopupController->procPop_upUpdatePopupConn($args);
                $msg_code = 'success_updated';

                // ij½Ã ÆÄÀÏ »èÁ¦
                $cache_file = sprintf("./files/cache/pop_up/%d.cache.php", $popup_conn_info->popup_conn_srl);
                if(file_exists($cache_file)) FileHandler::removeFile($cache_file);
            }

            if(!$output->toBool()) return $output;

            // µî·Ï ¼º°øÈÄ returnµÉ ¸Þ¼¼Áö Á¤¸®
            $this->add("popup_conn_srl", $output->get('popup_conn_srl'));
            $this->setMessage($msg_code);
        }

        /**
         * @brief ÆË¾÷ »èÁ¦
         **/
        function procPop_upAdminDeletePopupConn() {
            $popup_conn_srl = Context::get('popup_conn_srl');

            // ¿øº»À» ±¸Çؿ´Ù
            $oPopupController = &getController('pop_up');
			$args->popup_conn_srl = $popup_conn_srl;
            $output = $oPopupController->procPop_upDeletePopupConn($args);
            if(!$output->toBool()) return $output;

            //$this->add('module','popup');
            $this->add('page',Context::get('page'));
            $this->setMessage('success_deleted');
        }
    }
?>

Anon7 - 2021