📄 p_poll.php
字号:
<?php
include'include/begin.php';
include'include/p_begin.php';
if (!$userp2[0]) {
echoerror(122);
}
include language();
$pagename_m = $_pagename[39];
$tpl_html = 'p_poll';
$reurl='p_poll.php';
include'include/main.php';
$id = (int)$_GET['id'];
if (isset($_GET['post'])) {
while (list(, $val) = @each($_POST['poll'])) {
$result = mysql_query("select * from {$db_prefix}annex where id='$val'", $myconn);
if ($row = mysql_fetch_array($result)) {
$pollfix = $row['pollfix'] == 1?0 : 1;
mysql_query("update {$db_prefix}annex set pollfix='$pollfix' where id='$val'", $myconn);
}
}
@unlink('cache/s_26.php');
echoioy(39);
}
if ($id > 0) {
$result = mysql_query("select * from {$db_prefix}annex where tid='$id' && code='poll' && fix='1' && pollfix=0" , $myconn);
while ($annexrow = mysql_fetch_array($result)) {
$annex = array('id' => $annexrow['id'], 'title' => htmlspecialchars($annexrow['title']), 'uptime' => echotime($annexrow['uptime']),);
$jjx1 .= tpl_fun_jjx1($annex);
}
}
$result = mysql_query("select * from {$db_prefix}annex where code='poll' && fix='1' && pollfix='1'", $myconn);
while ($annexrow = mysql_fetch_array($result)) {
$annexs = array('id' => $annexrow['id'], 'tid' => $annexrow['tid'], 'title' => htmlspecialchars($annexrow['title']), 'uptime' => echotime($annexrow['uptime']),);
$jjx2 .= tpl_fun_jjx2($annexs);
}
$echo = $jjx1 != ''?'' : 'display: none;';
include_once'./cache/template/m_' . $style_id . '_' . $tpl_html . '.php';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -