茶与水:教育不是灌输,而是点燃火焰 o(∩_∩)o
Let’s encrypt报错: new-authz error: {“type”:”urn:acme:error:unauthorized”,”detail”:”Error creating new authz :: Validations for new domains are disabled in the V1 API (https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430)”,”status”: 403} 解决方式:更新你的acme(/root/.acme.sh/acme.sh –upgrade) 思路:认真看这个报错,其实报错信息是比较明显的。网上大多数都是抄的(网站被举报了,去谷歌申诉)。报错信息说得是disabled,而不是unsafe 参考:https://blog.csdn.net/qq_36798131/article/details/107554435 补充acme github地址:https://github.com/acmesh-official/acme.sh 因为可能国内无法直接更新,所以补充上面的链接地址,可以下载后上传到/usr/local/acme.sh/ 然后重启下lnmp,然后重新为域名添加ssl即可。 强制更新Let’s Encrypt证书命令: 1"/usr/local/acme.sh"/acme.sh --force --cron --home "/usr/local/acme.sh" > /dev/null 出现 Congratulations, all renewals succeeded. 字样时,表示证书更新完成。(参考:https://www.seoimo.com/lamp-ssl/#ssl-renew-crontab)
(more...)
要解决2个问题: ①http跳转到https ②不带www跳转到www域名 解决①http跳转到https 只要是http开头的, 不管带还是不带www, 通通跳转到https://www.pianpai.com 添加以下代码 (域名改成自己的) 1return 301 https://www.pianpai.com$request_uri; 解决②不带www跳转到www域名 比如https://pianpai.com 跳转到 https://www.pianpai.com 写成两个server: 一个是www的, 不用做跳转, 只要删掉server_name中不带www的域名(如删掉pianpai.con,保留www.pianpai.com)就好了. 另一个是不带www的, 需要跳转到带www. 直接复制一份443的原配置代码 粘贴放在下方。 1234567891011121314151617server { listen 443 ssl http2; #listen [::]:443 ssl http2; server_name pianpai.com; return […]
(more...)
开发配置支付配置,支付授权目录,JSAPI支付,Native支付,Native支付回调链接 JSAPI 最多支持5个。 https://pay.weixin.qq.com/index.php/extend/pay_setting
(more...)
1234567891011121314151617181920212223242526272829303132333435/* Register Custom Post Type */ add_action( 'init', 'create_products_post_type' ); // add portfolio function create_products_post_type() { $labels = array( 'name' => __('产品', 'WPGP'), 'singular_name' => __('产品', 'WPGP'), 'add_new' […]
(more...)
|– /source/include 程序功能处理目录 |– /source/include/collection 淘贴功能模块 collection_comment.php 淘贴评论 collection_edit.php 淘贴编辑 collection_follow.php 淘贴关注 collection_index.php 淘贴首页 collection_view.php 淘贴专辑首页 |– /source/include/cron 后台计划任务 cron_announcement_daily.php 每日公告清理 cron_checkpatch_daily.php 每日获取安全补丁 cron_cleanfeed.php 清理过期动态 cron_cleannotification.php 清理每星期提醒数据(默认弃用) cron_cleantrace.php 清理每日动态(默认弃用) cron_cleanup_daily.php 每日数据清理 cron_cleanup_monthly.php 每月主题清理 cron_follow_daily.php 每周广播归档 cron_magic_daily.php 道具自动补货 cron_medal_daily.php 每日勋章更新 cron_member_optimize_daily.php 每日用户表优化 cron_onlinetime_monthly.php 清空本月在线时间 cron_promotion_hourly.php 论坛推广清理 cron_publish_halfhourly.php 定时发布主题 cron_secqaa_daily.php 每日验证问答更新 cron_tag_daily.php 每日标签更新 cron_threadexpiry_hourly.php 限时操作清理 cron_todaypost_daily.php 清空今日发帖数 […]
(more...)
|– /source/language 程序语言包(如不清楚,请打开各个文件查看) |– /source/language/adv 广告语言包 |– /source/language/block DIY语言包 |– /source/language/forum 论坛相关语言包 |– /source/language/group 群组语言包 |– /source/language/home 家园语言包 |– /source/language/magic 道具语言包 |– /source/language/member 用户相关语言包 |– /source/language/mobile 手机版wap语言包
(more...)
/template/default/common 公共模板目录全局加载 block_forumtree.htm DIY论坛树形列表模块 block_thread.htm DIY帖子模块调用文件 block_userinfo.htm 未找到相应的程序调用 buyinvitecode.htm 购买邀请码 common.css 全局css样式表 css_diy.css 全局DIY模式加载样式表 css_sample.htm 垃圾文件? css_space.css 个人空间样式表 editor.css 编辑器样式表 editor.htm 编辑器 editor_menu.htm 编辑器菜单 extcredits.htm 积分调用文件 faq.htm 帮助 footer.htm 全局页脚 footer_ajax.htm 全局页脚 AJAX模式使用 forum_calendar.css 日历css样式文件 forum_moderator.css 版主管理样式文件 getatuser.htm 游客数据输出模板 header.htm 全局页头文件 header_ajax.htm 全局页头文件(AJAX时自动加载) header_common.htm 全局页头文件(必须) header_diy.htm DIY模式页头文件 invite.htm 邀请好友 misc_imgcropper.htm module.css 整站css模块 preview.htm DIY预览模板文件 pubsearchform.htm […]
(more...)
|– /source/function DX自定义函数库 |–/function_admincp.php 后台各项处理函数 |–/function_attachment.php 附件类处理函数 |–/function_block.php DIY模块调用处理函数 |–/function_blog.php 日志函数 |–/function_cache.php 缓存函数 |–/function_cloudaddons.php 应用中心在线安装模板插件处理 |–/function_collection.php 淘贴处理函数 |–/function_comment.php 评论留言处理函数 |–/function_core.php 全局核心函数库 |–/function_credit.php 积分处理 |–/function_delete.php 清理类函数 |–/function_discuzcode.php 论坛UBB代码转换处理1 |–/function_domain.php 域名处理函数 |–/function_ec_credit.php |–/function_editor.php 编辑器处理函数 |–/function_exif.php 上传附件EXIF信息处理库 |–/function_feed.php 家园动态处理函数 |–/function_filesock.php PHP内置函数fsockopen模拟GET/POST |–/function_followcode.php 论坛UBB代码转换处理2 |–/function_forum.php 论坛全局功能处理函数 |–/function_forumlist.php 论坛相关功能处理函数 |–/function_friend.php 好友处理函数 |–/function_group.php 群组全局函数 |–/function_grouplog.php 群组积分日志记录处理 |–/function_home.php 空间处理函数(截取字符、个人空间DIY、上传等) |–/function_importdata.php 其他函数(表情、风格数据、DIY更新等) |–/function_magic.php […]
(more...)
1、检查UC_KEY在/admin.php和/uc_server/admin.php的设置是否一致,这个很容易出现的问题。如果你迁移时担心出问题,最好先保存一遍。 2、这是容易出问题的地方,上面的key两个地方都没错,那有很大几率是你的/uc_server/目录权限问题,设置777即可。
(more...)
以自定义域的名称为spydance为例 1234567$spydance = get_post_meta($pid, 'spydance', true); <?php if(isset($spydance ) && $spydance != "") : ?> 有值需要显示的内容 <?php else : ?> //有值显示 没有值需要显示的内容//没有值显示 <?php endif; ?>
(more...)
1 ... 12 13 14 15 16 ... 36