Strict Standards: Declaration of action_plugin_blog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/lib/plugins/blog/action.php on line 13

Strict Standards: Declaration of action_plugin_indexmenu::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/lib/plugins/indexmenu/action.php on line 13

Strict Standards: Declaration of action_plugin_importoldchangelog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/lib/plugins/importoldchangelog/action.php on line 8

Strict Standards: Declaration of action_plugin_importoldindex::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/lib/plugins/importoldindex/action.php on line 8

Strict Standards: Declaration of action_plugin_include::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/lib/plugins/include/action.php on line 19

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/parserutils.php on line 208

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/parserutils.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/parserutils.php on line 421

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/parserutils.php on line 594

Strict Standards: Declaration of cache_instructions::retrieveCache() should be compatible with cache::retrieveCache($clean = true) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/cache.php on line 291

Deprecated: Function split() is deprecated in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/auth.php on line 154

Strict Standards: Only variables should be passed by reference in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/doku.php on line 73
ちょっと機能ついか [開発チーム]
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/data/cache/a/ad9a64da43a717cd21414c2ba805425c.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/data/cache/a/ad9a64da43a717cd21414c2ba805425c.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/data/cache/a/ad9a64da43a717cd21414c2ba805425c.xhtml failed

もくてき?

/*
ダウンロードこんてんつがどこ経由からきたのかを知る仕組み
で、経由を取得するのに http://www.fideli.com/t/[0-9]+ のしくみをつかう
 
html/t/classes/tClass.php でトラッキングの履歴が下記みたいに保存される
*/
// $tm_uniqnum には t/*** の部分の数字が入る
$_SESSION["_TRACK_HISTORY_"][time()] = $tm_uniqnum;

ダウンロードコンテンツに追加

downloadClass.php かな?

 
/*
 * auto_contents_download へカラムの追加
 * acd_tm_history TEXT型
 * 
 */
 
// ダウンロード時にログをインサートする部分に下記を追加
    if(isset($_SESSION["_TRACK_HISTORY_"])){
      $tmTmp = array();
      foreach($_SESSION["_TRACK_HISTORY_"] as $time => $number){
        $tmTmp[] = $time."_".$number;
      }
      if(count($tmTmp)){
        $hash["acd_tm_history"] = join(",",$tmTmp);
      }
    }

社内管理ページにダウンロード履歴確認ページ追加

  • 適当なプログラムを /kanri/以下にようい
  • ダウンロードされた時間,ダウンロードしたデータ,me_uniqnum,トラッキングログのリンク,トラッキングログの名前,トラッキングの時間,トラッキングログのリンク,トラッキングログの名前,トラッキングの時間,・・・・・
 
// 出力する(ダウンロードする項目のカラムを指定)
$sql = "select karamu,karamu,karamu,karamu.... from auto_contents_download";
$res = ***
 
// ぐるぐる
foreach($res as $k => $v){
  // トラッキングのデータをしゅとく
  $res[$k]["tracking"] = $this->getHistory(explode(",",$v["acd_tm_history"]));
}
 
// あとは下記をcsvの形式に整形して出力
print_r($res);
 
  function getHistory($array){
    $new = array();
    foreach($array as $key => $val){
      list($time,$num) = explode("_",$val);
      if($res = $this->getTm($num)){
        $new[$time] = $res;
      }
    }
    $return = array();
    if($new){
      foreach($new as $key => $val){
        $return[$key]["date"] = date('Y/m/d H:i:s',$key);
        $return[$key]["comment"] = $val["tm_comment"];
        $return[$key]["url"] = "http://www.fideli.com/api/ana.php?P=TrackDatailView&td_uniqnum=".$val["tm_td_uniqnum"];
      }
    }
    return $return
  }
 
  function getTm($tm){
    $sql = "SELECT * FROM track_master WHERE tm_uniqnum = ".$tm;
    if($res =& $this->db->DBSelect($sql)){
      return $res[0];
    }
  }
 
//  参考
// html/kanri/classes/piListClass.php
// templates/kanri/piList.html
// html/kanri/classes/piDetailClass.php
// templates/kanri/piDetail.html
ちょっと機能ついか.txt · 最終更新: 2010/07/27 15:46 (外部編集)
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0

Strict Standards: Only variables should be passed by reference in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/doku.php on line 81