PageRenderTime 18ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/source/Plug-in/show1_di_bic.php

http://prosporous.googlecode.com/
PHP | 38 lines | 26 code | 5 blank | 7 comment | 0 complexity | ad3613cfa1729301ca8a3890ec316d6e MD5 | raw file
 1<?php
 2
 3/**
 4 * ????
 5 *
 6 * @author Administrator
 7 */
 8class show1_di_bic implements IPlugin {
 9
10    private $_name = 'Show1_di_after';
11    private $_version = '1.0';
12    private $_author = 'Zuolong Wang';
13    private $_modify = 'Sheng Huang';
14    public $_description = 'show1/i.php?????????';
15
16    function doAction() {
17        //????????
18        $params = func_get_args();
19        //echo 'global.php????<br />';
20        $new_id = mysql_insert_id();    //??????ID
21        $tree_info = Dga("tree", "id={$params[0]['tid']}");
22        $now = date("Y-m-d H:i:s"); //???????
23        $log_params['at'] = strtotime($now); //???
24        $log_params['username'] = $_SESSION['userinfo']['user'];    //???????????
25        $log_params['optime'] = $now;   //??????
26        $log_params['ip'] = $_SERVER["REMOTE_ADDR"];    //????????IP
27        $log_params['opp'] = "??";    //??????????????????
28        $log_params['optid'] = $params[0]['tid'];    //???????(tid)
29        $log_params['opid'] = $new_id;    //?????ID(id)
30        $log_params['modularname'] = $tree_info['title'];    //tid?tree???????
31        $log_params['log'] = "{$_SESSION['userinfo']['name']} {$_SESSION['userinfo']['user']} ? {$now} ? {$log_params['modularname']}(tid?{$log_params['optid']}) ????? [{$log_params['opp']}] ??? {$log_params['opp']}?ID??{$log_params['opid']} ?(IP?{$log_params['ip']})";
32        I("log", $log_params);
33        unset($params, $log_params, $new_id, $tree_info, $now);
34    }
35
36}
37
38?>