Esempio n. 1
0
<?php

$id = intval($_FANWE['request']['id']);
$module = strtolower(trim($_FANWE['request']['module']));
if ($id == 0 || empty($module)) {
    exit;
}
if (!getIsManage($module) && FDB::resultFirst("select uid from " . FDB::table("share") . " where share_id = " . $id) != $_FANWE['uid']) {
    exit;
}
if ($module == 'share' && FDB::resultFirst("select uid from " . FDB::table("share") . " where share_id = " . $id) == $_FANWE['uid']) {
    $_FANWE['authoritys'][$module] = array("edit" => 1, "delete" => 1);
}
$manage_lock = checkIsManageLock($module, $id);
include template('manage/slide_menu');
display();
Esempio n. 2
0
<?php

$id = (int) $_FANWE['request']['id'];
$module = strtolower(trim($_FANWE['request']['module']));
if ($id == 0 || empty($module)) {
    exit;
}
$old_module = $module;
if ($module == 'dapei') {
    $module = 'share';
}
if (!getIsManage($module)) {
    exit;
}
$tpl = 'manage/menu/common';
$manage_lock = checkIsManageLock($module, $id);
switch ($module) {
    case 'share':
        $manage_object = FDB::fetchFirst('SELECT * FROM ' . FDB::table('share') . ' WHERE share_id = ' . $id);
        break;
    case 'club':
        $manage_object = FDB::fetchFirst('SELECT * FROM ' . FDB::table('forum_thread') . ' WHERE tid = ' . $id);
        break;
    case 'ask':
        $manage_object = FDB::fetchFirst('SELECT * FROM ' . FDB::table('ask_thread') . ' WHERE tid = ' . $id);
        break;
    case 'shop':
        $manage_object = FDB::fetchFirst('SELECT * FROM ' . FDB::table('shop') . ' WHERE shop_id = ' . $id);
        break;
    case 'event':
        $manage_object = FDB::fetchFirst('SELECT * FROM ' . FDB::table('event') . ' WHERE id = ' . $id);
if ($page = 'book_index') {
    if (getIsManage('share')) {
        ?>
$('.i_w_f').hover(function(){
var shareID = this.getAttribute('shareID');
if(shareID)
$.GetManageMenu('share',shareID,this);
},function(){});
<?php 
    }
} elseif ($page = 'book_dapei') {
    if (getIsManage('share')) {
        ?>
$('.i_w_f').hover(function(){
var shareID = this.getAttribute('shareID');
if(shareID)
$.GetManageMenu('dapei',shareID,this);
},function(){});
<?php 
    }
} elseif ($page = 'book_look') {
    if (getIsManage('share')) {
        ?>
$('.i_w_f').hover(function(){
var shareID = this.getAttribute('shareID');
if(shareID)
$.GetManageMenu('share',shareID,this);
},function(){});
<?php 
    }
}