66 Star 182 Fork 64

WuSiYu / MarkNote

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
index.php 870 Bytes
Copy Edit Web IDE Raw Blame History
WuSiYu authored 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';
}
}

Comment ( 0 )

Sign in for post a comment

PHP
1
https://git.oschina.net/wusiyu/MarkNote.git
git@git.oschina.net:wusiyu/MarkNote.git
wusiyu
MarkNote
MarkNote
v2

Search