⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 new.php

📁 GForge 3.0 协作开发平台 支持CVS, mailing lists, bug tracking, message boards/forums, task management, perman
💻 PHP
字号:
<?php/** * GForge Forums Facility * * Copyright 2002 GForge, LLC * http://gforge.org/ * * @version   $Id: new.php,v 1.4 2003/01/10 14:44:23 bigdisk Exp $ *//*	Message Forums	By Tim Perdue, Sourceforge, 11/99	Massive rewrite by Tim Perdue 7/2000 (nested/views/save)	Complete OO rewrite by Tim Perdue 12/2002*/require_once('pre.php');require_once('www/forum/include/ForumHTML.class');require_once('common/forum/Forum.class');/*	User obviously has to be logged in to save place*/if ($forum_id && $group_id) {	//	//  Set up local objects	//	$g =& group_get_object($group_id);	if (!$g || !is_object($g) || $g->isError()) {		exit_no_group();	}	$f=new Forum($g,$forum_id);	if (!$f || !is_object($f)) {		exit_error('Error','Error Getting Forum');	} elseif ($f->isError()) {		exit_error('Error',$f->getErrorMessage());	}	$fh=new ForumHTML($f);	if (!$fh || !is_object($fh)) {		exit_error('Error','Error Getting ForumHTML');	} elseif ($fh->isError()) {		exit_error('Error',$fh->getErrorMessage());	}	if (session_loggedin() || $f->allowAnonymous()) {		if (!$f->savePlace()) {			exit_error('Error',$f->getErrorMessage());		} else {			forum_header(array('title'=>$f->getName(),'pagename'=>'forum_forum',				'sectionvals'=>$g->getPublicName(),'forum_id'=>$forum_id));			echo '<div align="center"><h3>'.$Language->getText('forum_message', 'thread').'</h3></div>';			$fh->showPostForm();			forum_footer(array());		}	} else {		exit_not_logged_in();	}} else {	exit_missing_param();}?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -