聯(lián)系官方銷售客服
1835022288
028-61286886
鉤子名稱module_search_get_data用于模塊內(nèi)容搜索之前,不進(jìn)入默認(rèn)的搜索類,返回自己的搜索程序代碼,返回格式為 $data = [ 'id' => $i
訪問必應(yīng) IndexNow 官網(wǎng) https://www.bing.com/indexnow/getstarted打開網(wǎng)站后往下滑動(dòng)會(huì)看到 API Key
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_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_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
函數(shù)名:dr_get_content_kws例如提取show.html中的,那么寫法是:{php $kws = dr_get_content_kws($keywords, '模塊目錄需要填寫');}{
插件配置信息儲(chǔ)存目錄位于:cache/app/儲(chǔ)存配置信息:\Phpcmf\Service::M('app')->save_config("插件目錄", $配置數(shù)組);讀取配置信息:\Phpcmf\S
獲取客戶端UA字符串:\Phpcmf\Service::L('input')->get_user_agent()在模板中判斷終端{(lán)if \Phpcmf\Service::IS_PC_USER()} 是
讀取配置緩存函數(shù)格式:\Phpcmf\Service::C()->get_cache("緩存字符串");讀取模塊配置緩存:\Phpcmf\Service::C()->get_cache("module
網(wǎng)站信息屬性獲?。?cache = \Phpcmf\Service::L('cache')->get('site', SITE_ID);模塊配置屬性獲?。?cache = \Phpcmf\Servic
默認(rèn)情況下表單提交頁(yè)面是單獨(dú)的一個(gè)頁(yè)面,而在實(shí)際項(xiàng)目中有時(shí)候需要把表單提交頁(yè)面放到首頁(yè)、放到指定的欄目頁(yè)、放到會(huì)員中心,都有可能性。本章節(jié)來介紹如何把網(wǎng)站表單提交內(nèi)容部分放到其他頁(yè)面的任意位置1、我們以下圖的留言表單為例2、在指定的頁(yè)面,例如index.html首頁(yè)上加上,下面代碼中的‘liuyan’需要改成你自己的表單別名{php extract(dr_get_form_post_value(&...
IIS服務(wù)器搜索關(guān)鍵詞時(shí)出現(xiàn)[xss_clean]方法一:打開index.php文件,加上以下代碼:if(isset($_GET['rewrite'])){ $_GET['re
默認(rèn)情況下模塊表單提交頁(yè)面是單獨(dú)的一個(gè)頁(yè)面,而在實(shí)際項(xiàng)目中有時(shí)候需要把模塊表單提交頁(yè)面放到內(nèi)容詳情頁(yè)面,這樣可以不用跳轉(zhuǎn)到新頁(yè)面提交表單,而是直接在內(nèi)容中提交表單。1、以文章反饋表單為例2、在文章內(nèi)容頁(yè)面show.html,下面代碼中的‘fankui’需要改成你自己的表單別名{php extract(dr_get_mform_post_value(MOD_DIR, 'fankui'...
本接口用于驗(yàn)證用戶的登錄,并返回用戶基本信息和登錄授權(quán)碼。GET請(qǐng)求地址:/index.php?appid=[授權(quán)ID]&appsecret=[授權(quán)碼]&s=member&c=...
當(dāng)post數(shù)據(jù)結(jié)果返回:msg:view或者msg:當(dāng)前是get請(qǐng)求方式,返回當(dāng)前模板可用的變量說明你客戶端提交方式并非是post方式了使用API提交數(shù)據(jù)時(shí)必須使用POST方式,表單form的enct...
函數(shù)名:dr_get_content_url例如提取show.html中的內(nèi)容字段中的全部視頻地址,內(nèi)容字段是content,那么寫法是:{php$videos=dr_get_content_url($content,'src','mp4');}{loop$videos$img}地址:{$img}{/loop}視頻數(shù)量:{count($videos)}提取3張視頻地...
用于退出當(dāng)前賬號(hào)的登錄信息方法一:如果加裝過系統(tǒng)的js,直接使用退出函數(shù)即可我要退出方法二:如果沒有加裝系統(tǒng)的js,需要自己寫ajax退出函數(shù)我要退出functiondr_loginout(){$.ajax({type:"GET",dataType:"json",url:"/index.php?s=api&c=api&m=loginout",success:function(jso...
使用setContent和getContent,首先要找的編輯器的id號(hào)使用開發(fā)者工具,查看編輯器的id號(hào),如下圖那么,調(diào)用方法為:UE.getEditor('dr_content')...
一、函數(shù)名稱\Phpcmf\Service::C()->get_attachment($id)二、函數(shù)介紹獲取附件的基本信息,如作者、大小、地址、下載次數(shù)、文件類型等三、參數(shù)值參數(shù)介紹$id附件id號(hào)四、返回值返回文件信息數(shù)組Array ( [id] => 附件id [uid] => 作者id [author] => 作者名稱 [filesize] => 文件大?。▎?..
內(nèi)容詳情中(show.html) 模板中調(diào)用方法是:默認(rèn)class寫法:{dr_get_ftable(字段ID號(hào), $字段名)}自定義table的class寫法:{dr_get_ftable(字段ID號(hào), $字段名, 'mytableclass')}mytableclass就是給表格加class,解析為:table calss="mytableclass"注意:1、[字段名]需要換...
內(nèi)容詳情中(show.html) 模板中調(diào)用方法是:{loop $字段名 $i $c} 序號(hào): {$i} 標(biāo)題:{$c.title} 描述:{$c.description} 文件原始地址:{dr_get_file($c.file)} 文件的下載地址:{dr_down_file($c.file)} 圖片縮略圖:{dr_thumb($c.file, 200, 200...
微信插件后臺(tái)需要開啟自動(dòng)登錄模式授權(quán)登錄代碼示例:wx.login({success:function(res){console.log(res);if(res.code){wx.getUserInf...
函數(shù)名:dr_get_content_img例如提取show.html中的內(nèi)容字段中的全部圖片,內(nèi)容字段是content,那么寫法是:{php $imgs = dr_get_content_img($content);}{loop $imgs $img}{/loop}圖片數(shù)量:{count($imgs)}提取3張圖片寫法:{php $imgs = dr_get_content_img($conte...
提取視頻文件中的縮略圖片方法首先安裝ffmpeg1、BT面板的linux支持一鍵安裝wgethttp://download.bt.cn/install/ext/ffmpeg.sh&&s...
函數(shù)名稱:dr_catcher_data函數(shù)作用:將http的網(wǎng)絡(luò)資源下載存儲(chǔ)到變量中,類似于file_get_contents函數(shù)的加強(qiáng)版函數(shù)格式:dr_catcher_data($url地址,$超...
本接口用于接入第三方關(guān)鍵詞獲取接口來替換系統(tǒng)自帶的百度關(guān)鍵詞接口1、自定義函數(shù)文件/config/costom.php2、新增函數(shù)/***提取關(guān)鍵字*/functiondr_get_keywords(...
1、$_GET寫法\Phpcmf\Service::L('input')->get('變量名');//會(huì)進(jìn)行xss安全過濾\Phpcmf\Service::L('...
\Phpcmf\Service::M()->get_sql_query();輸出最后一次執(zhí)行的SQL語句
如來友情鏈接插件:http://www.tianruiyun.com/shop/app/397.html前端調(diào)用當(dāng)前站點(diǎn)的友情鏈接列表:{table table=app_rlink sid=SITE_ID zt=1 order=displayorder}網(wǎng)站標(biāo)題 {$t.title}地址 {$t.url}logo {dr_get_file($t.logo)}{/table}調(diào)用全部站點(diǎn)的友情鏈接列...
內(nèi)容詳情中(show.html) 模板中調(diào)用方法是:普通輸出:{$字段名}去掉html標(biāo)簽:{dr_clearhtml($字段名)}去掉html標(biāo)簽再截10個(gè)字:{dr_strcut(dr_clearhtml($字段名), 10, '...')}讀取內(nèi)容字段中的全部圖片{php $imgs = dr_get_content_img($字段名);}{loop $imgs $img}{...
內(nèi)容詳情中(show.html) 模板中調(diào)用方法是:{loop $字段名 $i $c} 序號(hào): {$i} 文件原始地址:{dr_get_file($c)} 文件的下載地址:{dr_down_file($c)} 圖片縮略圖:{dr_thumb($c, 200, 200)} 圖片縮略圖帶水?。簕dr_thumb($c, 200, 200, 1)}{/loop}注意:1、[...
內(nèi)容詳情中(show.html) 模板中調(diào)用方法是:文件的地址:{dr_get_file($字段名)}文件的下載地址:{dr_down_file($字段名)}縮略圖地址:{dr_thumb($字段名, 100, 100)}縮略圖帶上水印地址:{dr_thumb($字段名, 100, 100, 1)}注意:1、[字段名]需要換成你定義的具體字段英文名稱2、如果在list循環(huán)中調(diào)用,需要把[字段名]改...