Watch 1 Star 6 Fork 60

冒泡鱼 / MarkNotePHP

forked from WuSiYu / MarkNote 
Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
PHP轻量级MarkDown云记事本系统,使用GPL v2协议开源. spread retract

Clone or download
index.php 584 Bytes
Copy Edit Web IDE Raw Blame History
<?php
//MarkNote 轻量级云记事本系统
if( !file_exists('config.php') ){
header("Location: include/install.php");
exit();
}
require_once('common.php');
require 'include/user.php';
if( isset($_GET['type']) ){
$type = $_GET['type'];
}else{
$type = 'home';
}
// echo 'index.php<br/>type='.$type.'<br/>';
switch ($type) {
case 'home':
if(hasLogin()){
require 'edit.php';
}
else{
require 'login.php';
}
break;
case 'show':
require 'show.php';
break;
default:
# code...
break;
}

Comment ( 0 )

You need to Sign in for post a comment

Help Search