📄 ads.inc.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 + -