Ignore:
Timestamp:
Nov 12, 2014 9:33:44 AM (11 years ago)
Author:
quyenla
Message:

thong ke cong tac vien

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/admin/controllers/report.php

    r461 r479  
    66class Report extends MX_Controller {
    77
    8 const TOKENPW = 'violet';
     8    const TOKENPW = 'violet';
    99
    1010    public function __construct() {
     
    193193    }
    194194
    195     public function get_username($us_id) {
     195    private function get_username($us_id) {
    196196        $src = 'violet';
    197197        $token = md5($us_id . self::TOKENPW);
    198198        $this->load->model('user_model');
    199199        $data = $this->user_model->get_user_info($src, $us_id, $token);
    200         if (strlen($data) > 0) {
     200        if (strpos($data, '&')) {
    201201            $arr_users = explode("&", $data);
    202202            $str_username = $arr_users[1];
     
    210210    public function test() {
    211211
    212 /*
    213         for ($i = 1; $i <= 5000; $i++) {
    214             $input['us_id'] = rand(1, 100);
    215             $input['paid_type'] = rand(1, 2);
    216             $input['amount'] = rand(3, 10) * 1000;
    217             $time = (rand((time() - (12 * 30 * 24 * 60 * 60)), time()));
    218             $input['paid_time'] = date("Y-m-d H:i:s", $time);
    219             $this->load->model('paidlog_model');
    220             $this->paidlog_model->insert($input);
    221         }
    222 
    223         die();
    224 */
     212        /*
     213          for ($i = 1; $i <= 5000; $i++) {
     214          $input['us_id'] = rand(1, 100);
     215          $input['paid_type'] = rand(1, 2);
     216          $input['amount'] = rand(3, 10) * 1000;
     217          $time = (rand((time() - (12 * 30 * 24 * 60 * 60)), time()));
     218          $input['paid_time'] = date("Y-m-d H:i:s", $time);
     219          $this->load->model('paidlog_model');
     220          $this->paidlog_model->insert($input);
     221          }
     222
     223          die();
     224         */
    225225        for ($i = 1; $i <= 200; $i++) {
    226226            $input['us_id'] = $i;
Note: See TracChangeset for help on using the changeset viewer.