3-6.php

来自「make project on java」· PHP 代码 · 共 30 行

PHP
30
字号
<?php
include"../cache/config.inc.php";
include"begin.php";
adminlogin();

if (isset($_GET['post'])) {
    while (list ($key, $val) = @each($_POST['fname'])) {
        $type = $_POST['type'][$key]?1:0;
        $boardfile = nameformat($_POST['boardfile'][$key]);

        @mysql_query("update {$db_prefix}hack set name='$val',type='$type',boardfile='{$boardfile}' where id='$key'", $myconn);
    } 
    $reurl = "3-6.php";
    echoioy(10);
} 

$result = mysql_query("select * from {$db_prefix}hack ORDER BY vieworder", $myconn);
while ($row = mysql_fetch_array($result)) {
    $fname[$row[id]] = $row['name'];
    $fto[$row['fup']][] = $row['id'];
    $type[$row['id']] = $row['type']?'checked':null;
    $boardfile[$row['id']] = $row['boardfile'];
    if ($row[fup] == 0) $hide[$row['id']] = 'display: none;';
} while (list (, $val) = @each($fto[0])) {
    $forumid[] = $val; 
    $tablist[$val] = ""; 
    
    while (list (, $val2) = @each($fto[$val])) {
        $forumid[] = $val2; 
        $tablist[$val2] = "&nbsp;鈹

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?