묻고답하기

contact us 메일이

로그인 하지않으면 보내지지 않아 일부 수정을 조언을 얻어서 해보았구요

그래서 아래와 같이 넣었더니

작성화면에서는

보내지고

네이트메일은  되는데

 

네이버 메일은   메일이 도착하지 않아   --------- 문의드립니다.

문의드립니다. - 이종효 r2chh@naver.com-------------------------------  감사합니다.

ModuleObject.class.php -------------------- 의 내용은 아래와 같습니다. -

<?php
/**
* @class ModuleObject
* @author NHN (developers@xpressengine.com)
* base class of ModuleHandler
**/

class ModuleObject extends Object {

var $mid = NULL; ///< string to represent run-time instance of Module (XE Module)
var $module = NULL; ///< Class name of Xe Module that is identified by mid
var $module_srl = NULL; ///< integer value to represent a run-time instance of Module (XE Module)
var $module_info = NULL; ///< an object containing the module information
var $origin_module_info = NULL;
var $xml_info = NULL; ///< an object containing the module description extracted from XML file

var $module_path = NULL; ///< a path to directory where module source code resides

var $act = NULL; ///< a string value to contain the action name

var $template_path = NULL; ///< a path of directory where template files reside
var $template_file = NULL; ///< name of template file

var $layout_path = ''; ///< a path of directory where layout files reside
var $layout_file = ''; ///< name of layout file
var $edited_layout_file = ''; ///< name of temporary layout files that is modified in an admin mode

var $stop_proc = false; ///< a flag to indicating whether to stop the execution of code.

var $module_config = NULL;
var $ajaxRequestMethod = array('XMLRPC', 'JSON');

/**
* setter to set the name of module
* @param string $module name of module
* @return void
**/
function setModule($module) {
$this->module = $module;
}

/**
* setter to set the name of module path
* @param string $path the directory path to a module directory
* @return void
**/
function setModulePath($path) {
if(substr($path,-1)!='/') $path.='/';
$this->module_path = $path;
}

/**
* setter to set an url for redirection
* @param string $url url for redirection
* @remark redirect_url is used only for ajax requests
* @return void
**/
function setRedirectUrl($url='./', $output = NULL) {
$ajaxRequestMethod = array_flip($this->ajaxRequestMethod);
if(!isset($ajaxRequestMethod[Context::getRequestMethod()]))
{
$this->add('redirect_url', $url);
}

if($output !== NULL && is_object($output))
{
return $output;
}
}

/**
* get url for redirection
* @return string redirect_url
**/
function getRedirectUrl(){
return $this->get('redirect_url');
}

/**
* set message
* @param string $message a message string
* @param string $type type of message (error, info, update)
* @return void
**/
function setMessage($message, $type = null){
parent::setMessage($message);
$this->setMessageType($type);
}

/**
* set type of message
* @param string $type type of message (error, info, update)
* @return void
**/
function setMessageType($type){
$this->add('message_type', $type);
}

/**
* get type of message
* @return string $type
**/
function getMessageType(){
$type = $this->get('message_type');
$typeList = array('error'=>1, 'info'=>1, 'update'=>1);
if (!isset($typeList[$type])){
$type = $this->getError()?'error':'info';
}
return $type;
}

/**
* sett to set the template path for refresh.html
* refresh.html is executed as a result of method execution
* Tpl as the common run of the refresh.html ..
* @return void
**/
function setRefreshPage() {
$this->setTemplatePath('./common/tpl');
$this->setTemplateFile('refresh');
}


/**
* sett to set the action name
* @param string $act
* @return void
**/
function setAct($act) {
$this->act = $act;
}

/**
* sett to set module information
* @param object $module_info object containing module information
* @param object $xml_info object containing module description
* @return void
**/
function setModuleInfo($module_info, $xml_info) {
// The default variable settings
$this->mid = $module_info->mid;
$this->module_srl = $module_info->module_srl;
$this->module_info = $module_info;
$this->origin_module_info = $module_info;
$this->xml_info = $xml_info;
$this->skin_vars = $module_info->skin_vars;
// validate certificate info and permission settings necessary in Web-services
$is_logged = Context::get('is_logged');
$logged_info = Context::get('logged_info');
// module model create an object
$oModuleModel = &getModel('module');
// permission settings. access, manager(== is_admin) are fixed and privilege name in XE
$module_srl = Context::get('module_srl');
if(!$module_info->mid && !is_array($module_srl) && preg_match('/^([0-9]+)$/',$module_srl)) {
$request_module = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
if($request_module->module_srl == $module_srl) {
$grant = $oModuleModel->getGrant($request_module, $logged_info);
}
} else {
$grant = $oModuleModel->getGrant($module_info, $logged_info, $xml_info);
// have at least access grant
if( substr_count($this->act, 'Member') || substr_count($this->act, 'Communication'))
$grant->access = 1;
}
// display no permission if the current module doesn't have an access privilege
//if(!$grant->access) return $this->stop("msg_not_permitted");
// checks permission and action if you don't have an admin privilege
if(!$grant->manager) {
// get permission types(guest, member, manager, root) of the currently requested action
$permission_target = $xml_info->permission->{$this->act};
// check manager if a permission in module.xml otherwise action if no permission
if(!$permission_target && substr_count($this->act, 'Admin')) $permission_target = 'manager';
// Check permissions
switch($permission_target) {
case 'root' :
case 'manager' :
$this->stop('msg_is_not_administrator');
return;
case 'member' :
if(!$is_logged&&$module_info->mid!='contact')
{
$this->stop('msg_not_permitted_act');
return;
}
break;
}
}
// permission variable settings
$this->grant = $grant;

Context::set('grant', $grant);

$this->module_config = $oModuleModel->getModuleConfig($this->module, $module_info->site_srl);

if(method_exists($this, 'init')) $this->init();
}

/**
* set the stop_proc and approprate message for msg_code
* @param string $msg_code an error code
* @return ModuleObject $this
**/
function stop($msg_code) {
// flag setting to stop the proc processing
$this->stop_proc = true;
// Error handling
$this->setError(-1);
$this->setMessage($msg_code);
// Error message display by message module
$type = Mobile::isFromMobilePhone() ? 'mobile' : 'view';
$oMessageObject = &ModuleHandler::getModuleInstance('message',$type);
$oMessageObject->setError(-1);
$oMessageObject->setMessage($msg_code);
$oMessageObject->dispMessage();

$this->setTemplatePath($oMessageObject->getTemplatePath());
$this->setTemplateFile($oMessageObject->getTemplateFile());

return $this;
}

/**
* set the file name of the template file
* @param string name of file
* @return void
**/
function setTemplateFile($filename) {
if(substr($filename,-5)!='.html') $filename .= '.html';
$this->template_file = $filename;
}

/**
* retrieve the directory path of the template directory
* @return string
**/
function getTemplateFile() {
return $this->template_file;
}

/**
* set the directory path of the template directory
* @param string path of template directory.
* @return void
**/
function setTemplatePath($path) {
if(substr($path,0,1)!='/' && substr($path,0,2)!='./') $path = './'.$path;
if(substr($path,-1)!='/') $path .= '/';
$this->template_path = $path;
}

/**
* retrieve the directory path of the template directory
* @return string
**/
function getTemplatePath() {
return $this->template_path;
}

/**
* set the file name of the temporarily modified by admin
* @param string name of file
* @return void
**/
function setEditedLayoutFile($filename) {
if(substr($filename,-5)!='.html') $filename .= '.html';
$this->edited_layout_file = $filename;
}

/**
* retreived the file name of edited_layout_file
* @return string
**/
function getEditedLayoutFile() {
return $this->edited_layout_file;
}

/**
* set the file name of the layout file
* @param string name of file
* @return void
**/
function setLayoutFile($filename) {
if(substr($filename,-5)!='.html') $filename .= '.html';
$this->layout_file = $filename;
}

/**
* get the file name of the layout file
* @return string
**/
function getLayoutFile() {
return $this->layout_file;
}

/**
* set the directory path of the layout directory
* @param string path of layout directory.
**/
function setLayoutPath($path) {
if(substr($path,0,1)!='/' && substr($path,0,2)!='./') $path = './'.$path;
if(substr($path,-1)!='/') $path .= '/';
$this->layout_path = $path;
}

/**
* set the directory path of the layout directory
* @return string
**/
function getLayoutPath() {
return $this->layout_path;
}

/**
* excute the member method specified by $act variable
* @return boolean true : success false : fail
**/
function proc() {
// pass if stop_proc is true
if($this->stop_proc) return false;

// trigger call
$triggerOutput = ModuleHandler::triggerCall('moduleObject.proc', 'before', $this);
if(!$triggerOutput->toBool()) {
$this->setError($triggerOutput->getError());
$this->setMessage($triggerOutput->getMessage());
return false;
}

// execute an addon(call called_position as before_module_proc)
$called_position = 'before_module_proc';
$oAddonController = &getController('addon');
$addon_file = $oAddonController->getCacheFilePath(Mobile::isFromMobilePhone()?"mobile":"pc");
@include($addon_file);

if(isset($this->xml_info->action->{$this->act}) && method_exists($this, $this->act)) {
// Check permissions
if($this->module_srl && !$this->grant->access){
$this->stop("msg_not_permitted_act");
return FALSE;
}
// integrate skin information of the module(change to sync skin info with the target module only by seperating its table)
$oModuleModel = &getModel('module');
$oModuleModel->syncSkinInfoToModuleInfo($this->module_info);
Context::set('module_info', $this->module_info);
// Run
$output = $this->{$this->act}();
}
else {
return false;
}

// trigger call
$triggerOutput = ModuleHandler::triggerCall('moduleObject.proc', 'after', $this);
if(!$triggerOutput->toBool()) {
$this->setError($triggerOutput->getError());
$this->setMessage($triggerOutput->getMessage());
return false;
}

// execute an addon(call called_position as after_module_proc)
$called_position = 'after_module_proc';
$oAddonController = &getController('addon');
$addon_file = $oAddonController->getCacheFilePath(Mobile::isFromMobilePhone()?"mobile":"pc");
@include($addon_file);

if(is_a($output, 'Object') || is_subclass_of($output, 'Object')) {
$this->setError($output->getError());
$this->setMessage($output->getMessage());

if (!$output->toBool()) return false;
}
// execute api methos of the module if view action is and result is XMLRPC or JSON
if($this->module_info->module_type == 'view'){
if(Context::getResponseMethod() == 'XMLRPC' || Context::getResponseMethod() == 'JSON') {
$oAPI = getAPI($this->module_info->module, 'api');
if(method_exists($oAPI, $this->act)) {
$oAPI->{$this->act}($this);
}
}
}
return true;
}
}
?>

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
xe마스터하는그날까지 위젯질문이요 file  
joorans 회원가입시 주소 필드(우편번호 검색)에 관한 질문 [2] file 2014.06.09 by joorans
tiram2sue php를 통해 회원정보 일부분을 수정하고 싶습니다.  
작은111 링크가 활성화가 안되네요????? [2] 2014.06.09 by Double'U'
너마늘위해 signup_form 수정하고선 사이트가 정신줄을 놓았습니다... [4] file 2014.06.09 by 혼마_메이코
에엘 포인트에 따라 글쓰기 버튼 안보이고 보이게 하기 [3] 2014.06.09 by 소시덕분에힘받아요
katekim 크롬에서 글 등록이 안되고 글쓰기화면이 새로고침돼요 ㅠㅠ [14] 2014.06.09 by katekim
PEANUTSOUL 외국 스팸....어떻게 처리하시나요? [11] file 2014.06.09 by 뀰귤
qwqwwewe 포인트 질문입니다. [2] 2014.06.09 by qwqwwewe
qwqwwewe 누리고 쇼핑몰 질문좀입니다. [2] 2014.06.09 by qwqwwewe
나의해 모바일에서 음악재생하는 방법 조언부탁드립니다 [3] 2014.06.08 by mAKEkr
키스투엑스이 바뀐 카카오톡 API 때문에 고생. [2] 2014.06.08 by mAKEkr
태림이이이이이이 일반게시판에서 닉네임 출력을 하지 않게 수정해서 사용을 어떻게 해요?  
qufekfgo10 홈페이지에 유챗위젯 까는데 이상해용 ㅠㅠ [1] file 2014.06.08 by Uchat
qwqwwewe 도메인주소를 게시판마다 다르게 할 수 있나요? [2] 2014.06.08 by qwqwwewe
서리diu 다음 사이트에 메인 슬라이더 같은 위젯 찾을 수 있을까요? [1] 2014.06.08 by Luatic™
닉네임을길게하자 xe는 php 코드를 [6] 2014.06.08 by mAKEkr
별을사랑했네 스케치북 게시판 제목 작성란 기본글자 제거 방법문의 file  
아나까떼 외부프로그램으로 세션유지하는 방법,참조하는방법을 알고싶습니다.  
에엘 포인트 부족 시 업로드 또는 글쓰기 금지 [2] 2014.06.08 by 에엘
cjw90 컨텐츠 목록에 표시할 확장변수 출력 방법 질문드립니다 file  
cjw90 'utube로 본문에 삽입한 동영상'의 첫화면을 갤러리 목록에서 보여줄수 있는 방법좀 가르쳐주세요  
나의해 게시판 날자.시간 삭제방법 질문드려요 [2] 2014.06.08 by 나의해
에엘 글 열람 금지 [3] 2014.06.08 by 에엘
dyong 로그인에 문제가 생겼어요 [2] file 2014.06.08 by teguh100
차밍 스케치북 게시판에서 비회원만 ip가 출력되도록 하고 싶습니다. [6] 2014.06.08 by 차밍
운명같은사람 호스팅 5개에 최신xe코어를 업로드했는데 file  
콩까기 게시판 상단 html입력 가능부분에서 글씨를 클릭하면 슬라이딩으로 내용이 나오게 할수있을까요...? [3] 2014.06.08 by 콩까기
키스미베이베 미치겠네요...social xe 설정... [12] 2014.06.08 by 쿠드반지루엣
phpfer centos 6.5에 설치중인데. index.php 파일이 안열립니다.(빈화면만 뜸) [1] 2014.06.08 by 쿠드반지루엣