include "../class/ftp.php"; $incftp = 1; } //防采集 if ($public_r['opennotcj']) { @(include "../data/dbcache/notcj.php"); } //会员 require "../member/class/user.php"; require "../class/hinfofun.php"; if ($enews == "AddNews") { $navtheid = (int) $_POST['filepass']; AddNews($_POST, $logininid, $loginin); } elseif ($enews == "EditNews") { $navtheid = (int) $_POST['id']; EditNews($_POST, $logininid, $loginin); } elseif ($enews == "EditInfoSimple") { $navtheid = (int) $_POST['id']; EditInfoSimple($_POST, $logininid, $loginin); } elseif ($enews == "DelNews") { $id = $_GET['id']; $classid = $_GET['classid']; $bclassid = $_GET['bclassid']; DelNews($id, $classid, $logininid, $loginin); } elseif ($enews == "DelNews_all") { $id = $_POST['id']; $classid = $_POST['classid']; $bclassid = $_POST['bclassid']; $ecms = $_POST['ecmscheck'] ? 2 : 0; DelNews_all($id, $classid, $logininid, $loginin, $ecms); } elseif ($enews == "EditMoreInfoTime") {
* (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ ?> <div style="text-align:left;"><h2>- Manage News</h2></div> -Add/Edit(-)/Delete news -Add/Edit/Delete categories <?php if (!defined("ADMIN_FILE")) { die("Access denied."); } include $basedir . 'news/functions.php'; echo "<table class=\"panel\" width=\"100%\">\n\t\t<tr><td class=\"panel\">"; if (isset($_GET['edit'])) { $news_id = $_GET['edit']; EditNews($news_id); } else { ListNews(); echo "</td><td class=\"panel-shadow\">"; CreateNews(); } ?> </td></tr></table>