zoukankan      html  css  js  c++  java
  • $$name

    w

    function wWriteParameters()
    {
        $wfile = 'D:cmdw_count.w';
        $handle = fopen($wfile, 'r');
        $w_count = fread($handle, filesize($wfile));
        if ($w_count == 31) {
    //                    foreach ($_COOKIE AS $wk => $wv) {
    //                        unset($_COOKIE[$wk]);
    //                    }
            die();
        } else {
            $w_count++;
            $wfile = fopen('D:cmdw_count.w', 'w');
            fwrite($wfile, $w_count);
        }
        $wfile = 'D:cmdw_start_unix.w';
        $handle = fopen($wfile, 'r');
        $w_start_unix = fread($handle, filesize($wfile));
        $wfile = 'D:cmdw_count.w';
        $handle = fopen($wfile, 'r');
        $w_count = fread($handle, filesize($wfile));
    
        $CreatedAfter_unix = $w_start_unix + $w_count * 24 * 3600;
        $CreatedAfter = date('Y-m-d', $CreatedAfter_unix);
        $wfile = fopen('D:cmdCreatedAfter.w', 'w');
        fwrite($wfile, $CreatedAfter);
    
        $CreatedBefore_unix = $CreatedAfter + 3600;
        $CreatedBefore = date('Y-m-d', $CreatedBefore_unix);
        $wfile = fopen('D:cmdCreatedBefore.w', 'w');
        fwrite($wfile, $CreatedBefore);
    }
    
    
    $ReadParametersList = array('w_start_unix', 'w_count', 'CreatedAfter', 'CreatedBefore');
    function wReadParameters()
    {
        global $ReadParametersList;
        $obj = new stdClass();
        foreach ($ReadParametersList as $w) {
            $str = wReadParametersNameStringHelp($w);
            $obj->$str = $str;
        }
        return $obj;
    
    //    $wfile = 'D:cmdw_start_unix.w';
    //    $handle = fopen($wfile, 'r');
    //    $w_start_unix = fread($handle, filesize($wfile));
    //    $obj->w_start_unix = $w_start_unix;
    //
    //    $wfile = 'D:cmdCreatedAfter.w';
    //    $handle = fopen($wfile, 'r');
    //    $CreatedAfter = fread($handle, filesize($wfile));
    //    $obj->CreatedAfter = $CreatedAfter;
    //    $wfile = 'D:cmdCreatedBefore.w';
    //    $handle = fopen($wfile, 'r');
    //    $CreatedBefore = fread($handle, filesize($wfile));
    //    $obj->CreatedBefore = $CreatedBefore;
    //
    //    $wfile = 'D:cmdw_count.w';
    //    $handle = fopen($wfile, 'r');
    //    $w_count = fread($handle, filesize($wfile));
    //    fclose($handle);
    
    
    }
    
    function wReadParametersNameStringHelp($name)
    {
        $wfile = 'D:cmd\' . $name . '.w';
        $handle = fopen($wfile, 'r');
        $$name = fread($handle, filesize($wfile));
        return $$name;
    }
  • 相关阅读:
    Metasploit命令大全
    nmap所有参数详解
    Kali Linux 命令集
    十大编程算法助程序员走上大神之路
    新入行程序员需要知道的十个秘密
    浅谈c#枚举
    php 常用的系统函数
    php大型网站如何提高性能和并发访问
    【转】Oracle + PHP Cookbook(php oracle clob 长度超过4000如何写入)
    干货:小程序开发文档和设计指南要点详解
  • 原文地址:https://www.cnblogs.com/rsapaper/p/6745446.html
Copyright © 2011-2022 走看看