66 Star 194 Fork 70

WuSiYu / MarkNote

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.php 870 Bytes
一键复制 编辑 原始数据 按行查看 历史
WuSiYu 提交于 2016-08-20 22:26 . 开始前端开发
<?php
//MarkNote 轻量级云记事本系统
error_reporting(E_ALL);
ini_set('display_errors', '1');
if( !file_exists('config.php') ){
header("Location: include/install.php");
exit();
}
require 'include/user.php';
if( isset($_GET['type']) ){
$type = $_GET['type'];
}else{
$type = 'home';
}
// echo 'index.php<br/>type='.$type.'<br/>';
if( $type == 'user' ){
// echo 'load '.$type.' page ---> ';
require 'user.php';
}
if( $type == 'notebook' ){
// echo 'load '.$type.' page ---> ';
require 'notebook.php';
}
if( $type == 'note' ){
// echo 'load '.$type.' page ---> ';
require 'note.php';
}
if( $type == 'home' ){
if(hasLogin()){
// echo 'load '.$type.' page ---> ';
require 'edit.php';
}
else{
// echo 'load '.$type.' page ---> ';
require 'login.php';
}
}
PHP
1
https://gitee.com/wusiyu/MarkNote.git
git@gitee.com:wusiyu/MarkNote.git
wusiyu
MarkNote
MarkNote
v2

搜索帮助