$online_flag = $db_doc->get_var($strsql);
             //上线下下线 func_ad.php
             set_topic($status, $update, $online_flag);
             //更新
             $strsql = "update " . TABLE_TOPIC . " set status='{$status}' , online_flag=0 where id='{$update}'";
             $db_doc->query($strsql);
         } else {
             $strsql = "select online_flag from " . TABLE_TOPIC . " where status=0 and id!='{$update}'";
             $online_flag = $db_doc->get_var($strsql);
             if (null === $online_flag) {
                 $online_flag = 0;
             } else {
                 $online_flag = !$online_flag;
             }
             //上线下下线 func_ad.php
             set_topic($status, $update, $online_flag);
             //更新
             $strsql = "update " . TABLE_TOPIC . " set status='{$status}',online_flag='{$online_flag}' where id='{$update}'";
             $db_doc->query($strsql);
         }
         //执行
         echo '<script>';
         echo 'location.href = "index.php?m=mod_topic&type=list";';
         echo '</script>';
         exit;
     }
 }
 //查询sql
 $strsql = "select * from " . TABLE_TOPIC;
 $where = '';
 if (!in_array($ad_uid, $super_topic_user)) {
Exemple #2
0
}
// cancello topic
if (@$_POST['delete_topic'] == 1) {
    delete_topic($username, $id);
}
// aggiunta nuovo messaggio
if (@$_GET['send'] == 1) {
    insert_topic(@$_POST['reply'], $id);
}
// sposto topic
if (@$_GET['move_topic'] == 1) {
    move_topic(@$_POST['move_t_id'], @$_POST['to_forum']);
}
// setta topic
if (@$_GET['set_topic'] == 1) {
    set_topic(@$_POST['set_topic'], $id);
}
$t_id = check_t_id($id);
$query = "SELECT  id, f_id, t_id, author, title, data, replyof, last, ora, date \n\t\t    FROM " . __PREFIX__ . "topic \n\t\t   WHERE id = '" . $id . "' \n\t\t      OR replyof = '" . $id . "' \n\t\t   ORDER BY id, last DESC";
$res = mysql_query($query);
while ($row = mysql_fetch_row($res)) {
    $query_2 = "SELECT email, web_site, msn, level, id, firma \n\t\t\t\t   FROM " . __PREFIX__ . "users \n\t\t\t\t  WHERE username = '******'";
    $row_info = mysql_fetch_row(mysql_query($query_2));
    $mail = login($username, $password) == FALSE ? '<i>Login richiesto!</i>' : check_null($row_info[0], 1);
    ?>

<div id="content">
	<div id="userinfo">	
		<div><div style="float: left;"><b><?php 
    print $row[3];
    ?>
Exemple #3
0
            get_cache($user_id, 1);
        }
    }
    //删除旧人员 更新权限缓存
    if ($f_person_arr) {
        foreach ($f_person_arr as $user_id) {
            get_cache($user_id, 1);
        }
    }
    //在线
    if ($is_online) {
        //得到上线所在版本
        $strsql = "select online_flag from " . TABLE_TOPIC . " where id='{$s_id}'";
        $online_flag = $db_doc->get_var($strsql);
        //执行生成步骤
        set_topic(0, $s_id, $online_flag);
    }
    echo '<script>';
    echo 'parent.location.href = "../../../index.php?m=mod_topic&type=list";';
    echo '</script>';
    exit;
}
//默认小时
if (!isset($starthour)) {
    $starthour = date('H');
}
if (!isset($endhour)) {
    $endhour = 23;
}
if (!isset($starttime)) {
    $starttime = date('Y-m-d');