1 Star 0 Fork 69

kts168/MarkNote_1

forked from 冒泡鱼/MarkNote 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
edit.php 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
require_once('common.php');
require_once WEBROOT.'/include/user.php';
require_once WEBROOT.'/include/note.php';
if(!hasLogin()){
echo 'Please login';
exit();
}
//api
if( hasLogin() && isset($_POST['action']) && $_POST['action'] == 'getNotelist' ){
$theNotebooks = getUserNotebooks($USERNAME);
//var_dump($theNotebooks);
include(template('tag-notebooks'));
exit();
}
$settings=getUsersetting($USERNAME);
$js='';
if($settings->math) $js='<script src="https://cdn.bootcss.com/mathjax/2.7.4/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>';
$js.=<<<heredoc
<script type="text/javascript" charset="utf-8">
var NOTEID=$settings->noteid,MATHSTATUS=$settings->math,WAITINTERVAL=$settings->interval,CODESTATUS=$settings->code;
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\\\(","\\\\)"] ],
displayMath: [ ['$$','$$'], ["\\\\[","\\\\]"] ]
}
});
</script>
heredoc;
$css=$settings->black?'github-markdown':'black-markdown';
include(template('edit'));
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/kts168/MarkNote_1.git
[email protected]:kts168/MarkNote_1.git
kts168
MarkNote_1
MarkNote_1
v2

搜索帮助