add_log.php
来自「想必大家都在找个个日志的代码吧··呵呵·我今天就吐血奉献给大家吧」· PHP 代码 · 共 41 行
PHP
41 行
<?php/** * 鎾板啓鏃ュ織 * @copyright (c) 2008, Emlog All Rights Reserved * @version emlog-3.0.0 * $Id: add_log.php 762 2008-12-06 02:57:46Z emloog $ */require_once('./globals.php');require_once(EMLOG_ROOT.'/model/C_blog.php');require_once(EMLOG_ROOT.'/model/C_tag.php');require_once(EMLOG_ROOT.'/model/C_trackback.php');require_once(EMLOG_ROOT.'/model/C_sort.php');if($action == ''){ $emTag = new emTag($DB); $emSort = new emSort($DB); $sorts = $emSort->getSorts(); $tags = $emTag->getTag(); include getViews('header'); require_once(getViews('add_log')); include getViews('footer'); cleanPage();}//娣诲姞鏃ュ織if($action == 'addlog'){ $emBlog = new emBlog($DB); $emTag = new emTag($DB); $emTb = new emTrackback($DB); $pid = isset($_GET['pid']) ? $_GET['pid'] : ''; $title = isset($_POST['title']) ? addslashes(trim($_POST['title'])) : ''; $sort = isset($_POST['sort']) ? addslashes($_POST['sort']) : ''; $tagstring = isset($_POST['tag']) ? addslashes(trim($_POST['tag'])) : ''; $content = isset($_POST['content']) ? addslashes(trim($_POST['content'])) : ''; $blogid = isset($_POST['as_logid']) ? intval(trim($_POST['as_logid'])) : -1;//濡傝
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?