Exemplo n.º 1
0
<?php

$share_id = intval($_FANWE['request']['id']);
if ($share_id == 0) {
    exit;
}
if (!checkAuthority('share', 'edit')) {
    exit;
}
$share = FS("Share")->getShareById($share_id);
if (empty($share)) {
    deleteManageLock('share', $share_id);
    exit;
}
$manage_lock = checkIsManageLock('share', $share_id);
if ($manage_lock === false) {
    createManageLock('share', $share_id);
} else {
    exit;
}
$share['share_tags'] = FDB::resultFirst("select group_concat(tag_name SEPARATOR ' ') from " . FDB::table("share_tags") . " where share_id = " . $share['share_id']);
$share_category = FDB::fetchAll("select c.cate_id,c.cate_name from " . FDB::table("share_category") . " as sc left join " . FDB::table("goods_category") . " as c on sc.cate_id = c.cate_id where sc.share_id = " . $share['share_id']);
$fanwe->cache->loadCache("goods_category");
include template('manage/share/edit');
display();
Exemplo n.º 2
0
<?php

$id = intval($_FANWE['request']['id']);
if ($id == 0) {
    exit;
}
if (!checkAuthority('share', 'edit') && FDB::resultFirst("select uid from " . FDB::table("share") . " where share_id = " . $id) != $_FANWE['uid']) {
    exit;
}
$manage_lock = checkIsManageLock('share', $id);
if ($manage_lock === false) {
    createManageLock('share', $id);
}
$share = FDB::fetchFirst("select share_id,title,content from " . FDB::table("share") . " where share_id =" . $id);
if (empty($share)) {
    deleteManageLock('share', $id);
    exit;
}
include template('manage/share/edit');
display();
Exemplo n.º 3
0
<?php

$id = intval($_FANWE['request']['id']);
if ($id == 0) {
    exit;
}
if (!checkAuthority('club', 'edit')) {
    exit;
}
$manage_lock = checkIsManageLock('club', $id);
if ($manage_lock === false) {
    createManageLock('club', $id);
} else {
    exit;
}
$topic = FS('Topic')->getTopicById($id);
if (empty($topic)) {
    deleteManageLock('club', $id);
    exit;
}
$fanwe->cache->loadCache("forums");
include template('manage/club/edit');
display();
Exemplo n.º 4
0
<?php

$id = intval($_FANWE['request']['id']);
if ($id == 0) {
    exit;
}
if (!checkAuthority('shop', 'edit')) {
    exit;
}
$manage_lock = checkIsManageLock('shop', $id);
if ($manage_lock === false) {
    createManageLock('shop', $id);
} else {
    exit;
}
$sql = "select * from " . FDB::table("shop") . " where shop_id = " . $id;
$shop = FDB::fetchFirst($sql);
if (empty($shop)) {
    deleteManageLock('shop', $id);
    exit;
}
$fanwe->cache->loadCache("shops");
include template('manage/shop/edit');
display();
Exemplo n.º 5
0
<?php

$id = intval($_FANWE['request']['id']);
if ($id == 0) {
    exit;
}
if (!checkAuthority('ask', 'edit')) {
    exit;
}
$manage_lock = checkIsManageLock('ask', $id);
if ($manage_lock === false) {
    createManageLock('ask', $id);
} else {
    exit;
}
$topic = FS('Ask')->getTopicById($id);
if (empty($topic)) {
    deleteManageLock('ask', $id);
    exit;
}
$fanwe->cache->loadCache("asks");
include template('manage/ask/edit');
display();
Exemplo n.º 6
0
<?php

$id = intval($_FANWE['request']['id']);
if ($id == 0) {
    exit;
}
if (!checkAuthority('second', 'edit')) {
    exit;
}
$manage_lock = checkIsManageLock('second', $id);
if ($manage_lock === false) {
    createManageLock('second', $id);
} else {
    exit;
}
$sql = "select * from " . FDB::table("second_goods") . " where gid = " . $id;
$goods = FDB::fetchFirst($sql);
if (empty($goods)) {
    deleteManageLock('second', $id);
    exit;
}
$fanwe->cache->loadCache("seconds");
$fanwe->cache->loadCache("citys");
include template('manage/second/edit');
display();