コード例 #1
0
ファイル: article.php プロジェクト: bob2993714/project
			<p class="navbar-text navbar-right"><a href="index.php">回首頁</a></p>
		</div>
		<div class="panel panel-default">
		  <div class="panel-heading">
			<h3 class="panel-title"><?php 
echo $article_title;
?>
</h3>
		  </div>
		  <div class="panel-body"><?php 
echo $article_content;
?>
</div>
		  <ul class="list-group">
		  <?php 
if (count($article_files) > 0 && $getLib->checkVal($article_files[0])) {
    ?>
			<li class="list-group-item">附件下載
				<ul class="list-group">
				<?php 
    // show files
    $count = 0;
    foreach ($article_files as $fileData) {
        ?>
						<li class="list-group-item">
							<a href="<?php 
        echo $config_upload_folder . $getLib->setFilter($fileData);
        ?>
" target="_blank">
							<span class="glyphicon glyphicon-cloud-download pull-left download_icon"></span>
							<?php 
コード例 #2
0
ファイル: manage.php プロジェクト: bob2993714/project
// include auth file
include_once "class/auth.php";
// include template file
include_once "class/template.php";
session_start();
$getSettings = new Settings($config_setting_file_path);
$cpsub = $getSettings->getSettings();
$getLib = new Lib($cpsub['filter'], $cpsub['stripslashes']);
$getAuth = new Auth($config_account_data, $getLib);
$getTmp = new Template($config_current_version);
// check file status
$getLib->checkFileStatus($config_default_folder);
$getLib->checkFileStatus($config_article_file_path);
// get page val
$p = $getLib->setFilter($_GET['p']);
if (!$getLib->checkVal($p)) {
    $p = "about";
}
// check auth
$getAuth->checkAuth($_COOKIE, $_SESSION, $p);
// get page folder
$include_path = $getLib->checkAdminPath($p);
// current page
$website_current_page = "管理";
// get title
$website_title = $getLib->setFilter($cpsub['title']) . "-" . $website_current_page;
?>

<!DOCTYPE html>
<html lang="zh-tw">
  <head>
コード例 #3
0
ファイル: index.php プロジェクト: bob2993714/project
include_once "class/settings.php";
// include library file
include_once "class/lib.php";
// include article file
include_once "class/article.php";
// include page file
include_once "class/page.php";
// include template file
include_once "class/template.php";
$getData = $_GET;
$getSettings = new Settings($config_setting_file_path);
$cpsub = $getSettings->getSettings();
$getLib = new Lib($cpsub['filter'], $cpsub['stripslashes']);
$getTmp = new Template($config_current_version);
// set keyword
if ($getLib->checkVal($getData['keyword'])) {
    $getKeyword = $getLib->setFilter($getData['keyword']);
    $getKeywordLink = "?keyword=" . $getKeyword . "&";
} else {
    $getKeywordLink = "?";
}
// set Article
$getArticle = new Article($config_upload_folder, $config_article_file_path, $getLib);
$page = $_GET['page'];
// get article list
$getListArray = $getArticle->getAllList("display", "id", "desc", $getKeyword);
$getListSum = count($getListArray);
// set pager
$many = $cpsub['display_num'];
$display = $cpsub['display_page_num'];
$total = $getListSum;