Server : nginx/1.22.1
System : Linux iZwz9daxib3w3i063fw434Z 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64
User : www ( 1000)
PHP Version : 5.6.40
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Directory :  /www/wwwroot/www.jkmold.com/phpcms/modules/member/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : /www/wwwroot/www.jkmold.com/phpcms/modules/member/member_setting.php
<?php

/**

 * 管理员后台会员模块设置

 */



defined('IN_PHPCMS') or exit('No permission resources.');

pc_base::load_app_class('admin', 'admin', 0);

pc_base::load_sys_class('format', '', 0);



class member_setting extends admin {

	

	private $db;

	

	function __construct() {

		parent::__construct();

		$this->db = pc_base::load_model('module_model');	

	}



	/**

	 * member list

	 */

	function manage() {

		if(isset($_POST['dosubmit'])) {

			$member_setting = array2string($_POST['info']);

			

			$this->db->update(array('module'=>'member', 'setting'=>$member_setting), array('module'=>'member'));

			setcache('member_setting', $_POST['info']);

			showmessage(L('operation_success'), HTTP_REFERER);

		} else {

			$show_scroll = true;

			$member_setting = $this->db->get_one(array('module'=>'member'), 'setting');

			$member_setting = string2array($member_setting['setting']);

			

			$email_config = getcache('common', 'commons');

			$this->sms_setting_arr = getcache('sms','sms');

			$siteid = get_siteid();

			

			if(empty($email_config['mail_user']) || empty($email_config['mail_password'])) {

				$mail_disabled = 1;

			}

			

			if(!empty($this->sms_setting_arr[$siteid])) {

 				$this->sms_setting = $this->sms_setting_arr[$siteid];

				if($this->sms_setting['sms_enable']=='0'){

					$sms_disabled = 1;

				}else{

					if(empty($this->sms_setting['userid']) || empty($this->sms_setting['productid']) || empty($this->sms_setting['sms_key'])){

					$sms_disabled = 1;

					}

				}

 			} else {

				$sms_disabled = 1;

			}

 			

			include $this->admin_tpl('member_setting');

		}



	}



}

?>