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

📄 ads.inc.php

📁 Phpcms2008 是一款基于 PHP+Mysql 架构的网站内容管理系统
💻 PHP
字号:
<?php
defined('IN_PHPCMS') or exit('Access Denied');
require_once MOD_ROOT.'include/ads_place.class.php';
require_once MOD_ROOT.'include/ads.class.php';
require_once 'attachment.class.php';

$action = $action ? $action : 'manage';
$c_ads = new ads();
$adsplace = new ads_place();

switch($action)
{
	case 'add':
		if($dosubmit)
		{
			$attachment = new attachment($mod);
			if(isset($_FILES['flash']) && !empty($_FILES['flash']['name']))
			{
				$ads['flashurl'] = $c_ads->upload('flash');
				if(!$ads['flashurl']) shwomessage($attachment->error(), 'goback');
				$ads['flashurl'] = UPLOAD_URL.$ads['flashurl'];
			}
			if(!$c_ads->add($ads)) showmessage($c_ads->msg(), 'goback');
			showmessage($LANG['opration_successd_you_can_select_record_in_advertisement_order_list'], '?mod=ads&file=ads&action=manage','5000');
		}
		else
		{
			$placeid = intval($placeid);
			$place = array();
			$places = array();
			if(!$placeid) $places[0] = '璇烽

⌨️ 快捷键说明

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