邮件发送队列

注册邮件发送任务\Phpcmf\Service::L('Notice')->send( 'email', 'form_email_tpl', $var, [ 't

【模块表单通知】使用教程

【模块表单通知】安装好后1、在插件配置界面,开启需要通知的模块表单即可。2、勾选通知类型本教程主要提供一个通知模板的示例。以模块表单名称为 demo为例创建一个邮件通知模板文件config/notic

条件循环修饰符、通配符

在条件查询循环时需要用到的修饰符修饰符介绍LIKE_字段模糊匹配查询,例如LIKE_title=%名称%,表示like title '%名称%'NOTLIKE_字段是LIKE的反条件 v4.62以上

创建数据控制器

数据控制器应用比较广泛,可以对数据表进行增删改查操作,利用开发者工具实现傻瓜式创建,非常方便例如数据表:CREATETABLEIFNOTEXISTS`{dbprefix}my_test`(`id`in

系统函数/内置函数

dr_is_empty,dr_is_sys_301,dr_else_value,dr_safe_url,dr_diff,dr_array_keys,dr_array_value,dr_in_array,dr_array_intersect,dr_array_intersect_key,dr_strlen,dr_strpos,dr_stripos,dr_move_uploaded_file,dr_html2code,dr_code2html,dr_html_code,dr_oauth_list,dr_is_mobile,dr_is_admin_search_field,dr_get_array_key,dr_site_info,dr_site_value,dr_get_ftable,dr_get_ftable_array,dr_get_content_img,dr_get_content_url,dr_is_app,dr_is_module,dr_rp,dr_rp_view,dr_qrcode,dr_sec2time,dr_get_files,dr_get_image,dr_upload_temp_path,dr_star_level,dr_format_create_sql,dr_cms_domain_name,dr_is_not_null_value,dr_lang,dr_client_data,dr_ueditor_html,dr_get_domain_name,dr_save_bfb_data,dr_avatar_dir,dr_avatar_path,dr_avatar,dr_member_info,dr_member_username_info,dr_list_function,dr_linkagepos,dr_linkage,dr_linkage_json,dr_linkage_list,dr_linkage_id,dr_linkage_cname,dr_linkage_level,dr_payform,dr_fieldform,dr_block,dr_var_value,dr_get_file,dr_down_file,dr_get_file_url,dr_field_options,dr_field_setting,dr_member_auth,dr_member_auth_id,dr_zhe_price,dr_price_value,dr_sku_value_name,dr_sku_price,dr_sku_name,dr_level_next_value,dr_html_auth,dr_pay_type_html,dr_pay_name,dr_pay_type,dr_pay_status,dr_pay_money_html,dr_clear_empty,dr_list_field_order,dr_array2array,dr_array22array,dr_is_use_module,dr_site_table_prefix,dr_module_table_prefix,dr_mform_table_prefix,dr_form_table_prefix,dr_icon,dr_file,dr_file_preview_html,dr_is_image,dr_format_option_array,dr_field_input,dr_dir_map,dr_file_map,dr_return_data,dr_form_hidden,dr_get_csrf_token,dr_form_search_hidden,dr_base64_encode,dr_base64_decode,dr_get_theme,dr_randcode,dr_is_numeric,dr_dir_delete,dr_authcode,dr_now_url,dr_code,dr_sorting,dr_member_order,dr_show_stars,dr_ajax_template,dr_post_json_data,dr_catcher_data,dr_search_rewrite_encode,dr_search_rewrite_decode,dr_rewrite_encode,dr_rewrite_decode,dr_get_keyword,dr_safe_keyword,dr_safe_replace,dr_safe_filename,dr_safe_username,dr_safe_password,dr_rm_http,dr_safe_replace_path,dr_strcut,dr_wordcut,dr_random_color,dr_fdate,dr_date,dr_object2array,dr_arraycut,dr_string2array,dr_array2string,dr_mkdirs,dr_format_file_size,dr_keyword_highlight,dr_preg_html,_format_feed_content_url_length,dr_qrcode_url,dr_get_order_string,dr_discount,dr_distance,dr_square_point,dr_tpl_path,dr_array_rand,dr_array_sort,dr_get_form_post_value,dr_get_mform_post_value,dr_get_register_value,dr_tpl_file,dr_count,dr_http_prefix,dr_to_url,dr_mobile_url,dr_is_url,dr_url_prefix,dr_web_prefix,dr_url_full,dr_url_rel,dr_text_rel,dr_text_full,dr_member_group_etime,dr_member_group_dtype,dr_html2emoji,dr_clear_emoji,dr_text2py,dr_html2text,dr_htmlspecialchars,dr_is_root_path,dr_check_put_path,dr_debug,dr_code2utf8,dr_clearhtml,dr_filter_description,dr_get_description,dr_get_keywords,dr_redirect,dr_redirect_safe_check,remove_invisible_characters

系统提醒 admin_notice

系统提醒用于显示在后台首页面板的提醒信息(用来通知管理员需要做一些什么事情)此钩子用于捕获系统提醒后的触发程序,一般用来短信通知或微信通知管理员赶紧来处理这些事务。挂钩点名称admin_notice挂

网站表单提交之后通知作者自己

知识点:表单提交之后的钩子、自定义通知设置1、先创建自定义通知脚本,文件:dayrui/My/Config/Notice.php代码如下:<?php/** * 通知动作注册配置 * * 动作字符

上传/下载文件扩展名白名单

设置不允许上传的文件扩展名、设置只允许通过远程下载的文件扩展名设置方法1、新建文件config/fileext.php2、内容格式如下<?php// 禁止以下文件上传$this->notallowed

编辑工具的选择 (清理BOM字符)

代码编写环境工具推荐使用:notepad++、DW、PhpStorm等专业型的编辑器工具;不要使用FTP工具在线编辑php文件,否则会影响程序打不开!注意,一定不要使用文本编辑器(如记事本、写字板、t

模板代码保护code标签/模板代码格式化

本教程必须在4.5.2及其以上版本使用一、模板代码注释模板代码注释内容不会被模板所显示,作为注释功能,代码语法如下:{note}注释内容{/note}这句不会出现在网页中,只会在模板里面显示,方便开发

模板代码注释note标签

在迅睿模板中使用的注释标签语法:模板代码注释内容不会被模板所显示,作为注释功能,代码语法如下:{note}注释内容{/note}这句不会出现在网页中,只会在模板里面显示,方便开发者设计模板一般开发者使

禁止地址的301跳转

为了网站地址的唯一性,当在地址后面加参数时会自动跳转到正规的地址可以通过配置文件的方式取消301跳转用Notepad++工具打开index.php (不要用记事本)define('IS_NOT...

自定义方式-发送通知提醒方法

1、发送站内消息\Phpcmf\Service::L('Notice')-&gt;send_notice_user(&quot;任务名称&quot;,$uid,['type'=&gt;'站内消...

模板方式-发送通知提醒方法

1、定义自己的提醒方法在App中新建dayrui/App/Myapp/Config/Notice.php

发送提醒通知

方法介绍\Phpcmf\Service::M(&#39;member&#39;)->notice($uid,$type,$note,$url=&#39;&#39;,$mark=&#39;&#39;)$...

open_basedir restriction in effect

绑定域名后出现这种错误时Warning:is_file():open_basedirrestrictionineffect.File(*****)isnotwithin...

DISTINCT Expression #1 of ORDER BY clause is not in SELECT list, references column

使用DISTINCT语句保存时:Expression#1ofORDERBYclauseisnotinSELECTlist,referencescolumn''whichisnotinS...

增减金币值

方法介绍\Phpcmf\Service::M('member')->add_score($uid, $val, $note = '', $url = '', $mark = '', $count = 0)$uid 用户id$val 增减值,负数表示扣金币$note 备注说明$url 相关链接$mark 唯一标注值,和count参数配...

增减积分值

方法介绍$this->member_model->add_experience($uid, $val, $note = '', $url = '', $mark = '', $count = 0)$uid 用户id$val 增减值,负数表示扣金币$note 备注说明$url 相关链接$mark 唯...

程序文件检测

程序文件检测针对cms的php文件进行安全性检测常见问题:1、bom异常需要将此文件保存成为utf8无Bom格式,推荐编辑器Notepad++2、POST不安全不能直接使用$_POST赋值,正确的写法...

提醒管理员 admin_notice

用于提醒管理员将要做的任务1、发起通知任务$this->member_model->admin_notice($site,$type,$member,$msg,$uri);*@paramsite站点id,公共部分0*@paramtypesystem系统content内容相关member会员相关app应用相关pay交...

万网虚拟主机无法连接数据库

万网虚拟主机无法连接数据时怎么办?Warning: mysql_connect(): mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication.一般情况下,虚拟的空间服务商的数据库都提供了phpMyAdmin的MySQL数据...

系统提醒

方法名:$this->member_model->admin_notice($site, $type, $member, $msg, $uri, $to);参数介绍:@param site 站点id,公共部分0@param type system系统 content内容相关 member会员相关 app应用相关 pa...