留言板



不知道
你好
你好
你好吗
留下来
刚和国家机关感觉感觉钢结构
刚和国家机关感觉感觉钢结构
刚和国家机关感觉感觉钢结构
阿斯蒂芬
https://www.yuque.com/weiker/xiaodi/pi1buq9uxnhhyrny
https://pan.baidu.com/s/1KQHKgHK1sjS9W9iaYYs5kg?pwd=6789
https://1ytdy-cn.getxlx.com/api/v1/client/subscribe?token=74453f0bc6aa01683bbcfd0e2461dc50
Nihao
#include #include #include #include #include #include #include #include #include using namespace std; class ArpSys { unordered_map Arp; vector> ArpBuffer; unordered_map BufferByPerIp; int maxARP=0, maxBuffer=0, maxBufferByPerIp=0, curArpNum=0; public: ArpSys(int arpCap, int cachedPktCap, int perIpCap) { maxARP=arpCap; maxBuffer=cachedPktCap; maxBufferByPerIp=perIpCap; } vector Update(int ip, const string& macAddr) { auto it = ArpBuffer; if(it!=ArpBuffer.end()) return {}; } string Forward(int ip, int pktId) { return "; } };
namespace IoContext { class Reader { public: explicit Reader(istream& in) : is(in) { } string GetCmd() { char c; is >> c; if (!is.good()) { return "; } string cmd{}; while (c != '(' && c != ' ' && c != ' ' && c != ' ' && c != ' ' && c != char_traits::eof()) { cmd.push_back(c); c = static_cast(is.get()); } if (c == '(') { is.unget(); } return cmd; } bool PickChar(char c) { char x; is >> x; return !is.fail() && x == c; } template bool ReadManyEach(T& value, U&... others) { if (!Read(value)) { return false; } if constexpr (sizeof...(others) == 0) { return PickChar(')'); } else { if (!PickChar(',')) { return false; } return ReadManyEach(others...); } } template bool ReadMany(T&... values) { if (!PickChar('(')) { return false; } if constexpr (sizeof...(values) == 0) { return PickChar(')'); } else { return ReadManyEach(values...); } }
bool IsGood() const { return is.good(); } template enable_if_t && !is_same_v, bool> Read(T& value) { is >> boolalpha >> value; return !is.fail(); } bool Read(string& value) { if (!PickChar('"')) { return false; } char c = static_cast(is.get()); while (c != '"') { value.push_back(c); c = static_cast(is.get()); if (is.fail()) { return false; } } return true; } private: istream& is; };
class Writer { public: explicit Writer(ostream& out) : os(out) { } template Writer& PutRaw(const T& value) { os << value; return *this; } template static auto IsIterable(const T& value) -> decltype((void)std::begin(declval()), true_type()); static false_type IsIterable(...);
nuh
hch Yhg
hgghyhhgghh
template

hdbb
jfbbfb
template

asdfasg
<>

.

【考题】 为防止长期摸鱼导致变笨,特此准备了几道题考考你! 1.至今思项羽,不()过江东。 2.阳春布()泽,万物生光辉。3.书籍是人类进步的阶梯。-﹣高尔() 4.世人笑我太()癫,我笑他人看不穿。 5.老夫聊发少年(),左牵黄,右擎苍。 6.危楼高百尺,手可摘()辰。7.君问归期未有(),巴山夜雨涨秋池。 8.()面边声连角起,千嶂里,长烟落日孤城闭。 9.料峭春风吹酒醒,()冷,山头斜照却相迎。 10.()闻琵琶已叹息,又闻此语重唧唧。 11.锦瑟无端()()弦,一弦一柱思华年

展示源码

<!DOCTYPE html>
<html>
    <head>
        <title>BLOG</title>
        <meta charset="utf-8">
        <!--样式表-->
            <?php $serverIP gethostbyname($_SERVER['SERVER_NAME']);
            
?>
            <link rel="stylesheet" href="https://<?php echo $serverIP;?>/blog/styles/index.css">
    </head>
    <body>
        
        <!--导航栏-->
            <div class="navbar">
                <a href="https://<?php echo $serverIP;?>/blog" class="active">首页</a>
                <a href="https://<?php echo $serverIP;?>/blog/content/DatabaseQuery.php">数据库查询</a>
                <!--文件操作-->
                    <div class="dropdown">
                        <a href="#news" class="dropbtn">文件操作</a>
                        <div class="dropdown-content">
                            <a href="https://<?php echo $serverIP;?>/blog/content/FileUpLoad.php">文件上传</a>   
                            <a href="https://<?php echo $serverIP;?>/blog/content/FileDownLoad.php">文件下载</a>
                            <a href="https://<?php echo $serverIP;?>/blog/content/FileDelete.php">文件删除</a>
                            <a href="https://<?php echo $serverIP;?>/blog/content/FileRead&Write.php">文件读取和写入</a>
                        </div>
                    </div>
                <!--连接维持-->
                    <div class="dropdown">
                        <a href="#news" class="dropbtn">连接维持</a>
                        <div class="dropdown-content">
                            <a href="https://<?php echo $serverIP;?>/blog/content/COOKIE.php">COOKIE</a>   
                            <a href="https://<?php echo $serverIP;?>/blog/content/SESSION.php">SESSION</a>
                        </div>
                    </div>
                <!--JS-Ajax-->
                    <div class="dropdown">
                        <a href="#news" class="dropbtn">JS-Ajax</a>
                        <div class="dropdown-content">
                            <a href="https://<?php echo $serverIP;?>/blog/content/js_upfiles.php">文件上传</a>
                            <a href="https://<?php echo $serverIP;?>/blog/content/js_login.php">登录</a>
                            <a href="https://<?php echo $serverIP;?>/blog/content/js_shop.php">购物商城</a>
                        </div>
                    </div>
            </div>
            <hr>
        <!--搜索-->
            <form action="" method="post" enctype="multipart/form-data">
                <label for="search">搜索</label>
                <input type="search" name="search">
                <input type="submit" value="搜索">
            </form>
            <?php
                $n
=$_COOKIE['user'];echo $n;
                include(
"/opt/lampp/htdocs/blog/config/conn.php");
                if(isset(
$_POST['search']) && $_POST['search']!==''){
                    
$x=$_POST['search'];
                    
$sql "SELECT * FROM blog_db.posts WHERE title like '%$x%'";
                    
$result mysqli_query($conn$sql);
                    echo 
"查询 $x 的结果:<br>";
                    echo 
'查询总数量: '.mysqli_num_rows($result).'<br><br>';
                    if (
mysqli_num_rows($result) > 0
                    {
                        while(
$row mysqli_fetch_array($result)) {
                            echo 
"post_id:".$row['post_id'];
                            echo 
"<br>";
                            echo 
"author_id:".$row['author_id'];
                            echo 
"<br>";
                            echo 
"title:".$row['title'];
                            echo 
"<br>";
                            echo 
"slug:".$row['slug'];
                            echo 
"<br>";
                            echo 
"content:".$row['content'];
                            echo 
"<br>";
                            echo 
"created_at:".$row['created_at'];
                            echo 
"<br>";
                            echo 
"updated_at:".$row['updated_at'];
                            echo 
"<br><br>";
                        }
                    } else {
                        echo 
"0 结果";
                    }
                    
mysqli_close($conn);
                }
            
?>
        <!--留言板-->
            <div>
                <h2>留言板</h2>
                <form action="" method="POST">
                    <textarea  name="msg" rows="10" cols="50"></textarea><br>
                    <input type="submit" value="留言">
                </form>
                    <?php
                        
if(isset($_POST['msg']) && $_POST['msg']!==''){
                            
$msg=$_POST['msg'];
                            
//echo $msg;
                            
include("/opt/lampp/htdocs/blog/config/conn.php");
                            
$sql "SELECT * FROM blog_db.messages";
                            
$result mysqli_query($conn$sql);
                            
//print_r($result);
                            
$sql "INSERT INTO messages (message) values(\"$msg\")";
                            
mysqli_query($conn$sql);
                            
mysqli_close($conn); 
                        }
                    
?>
                <div style="padding:10px;background:#bfffcb;color:#ea5151">
                    <?php 
                        
include("/opt/lampp/htdocs/blog/config/conn.php");
                        
$sql "SELECT * FROM blog_db.messages";
                        
$result mysqli_query($conn$sql);
                        
//print_r($result);
                        
if (mysqli_num_rows($result) > 0
                        {
                            while(
$row mysqli_fetch_array($result)) {
                                echo 
$row['message']."<br>";
                            }
                        }else{
                            echo 
"无留言!";
                        }
                        
mysqli_close($conn);
                    
?>
                </div>
            </div>
        <!--展示源码-->
            <h1>展示源码</h1>
                <button class="source" style="float:left">源码</button>
                <div class="source" style="float:left">
                    <?php
                        show_source
(__file__);
                    
?>
                </div> 
        <?php system('whoami');?>
    </body>
</html>
daemon