BVB Source Codes

Project management software KisProject v1.0.3 Show module.build_log.php Source code

Return Download Project management software KisProject v1.0.3: download module.build_log.php Source code - Download Project management software KisProject v1.0.3 Source code - Type:.php
  1. <?php
  2. class CLogInfo
  3. {
  4.         var $log_id;
  5.         var $version;
  6.         var $builder;
  7.         var $prog_log;
  8.         var $config_log;
  9.         var $db_log;
  10.         var $log_time;
  11. };
  12.  
  13. class CBuildLog extends CModuleBase
  14. {
  15.         var $total_count;
  16.   var $page_count;
  17.         var $page_size;
  18.         var $page;
  19.        
  20.         function CBuildLog()
  21.         {
  22.                 global $Config;
  23.                 $Config["SQLITE_DB_NAME"] = "build_log/verision_log.db3";
  24.                 $this->db = new CDB("sqlite");
  25.                 $this->modules = array();
  26.                
  27.                 $this->page_size = $Config["pagesize"];
  28.                 $this->page = 1;
  29.                 $this->total_count = 0;
  30.                 $this->page_count = 0;
  31.                
  32.                 if(array_key_exists("page", $_REQUEST))
  33.                         $this->page = $_REQUEST["page"];
  34.                        
  35.                 $sql="select count(*) as ncount from tb_log";
  36.     $this->db->ExeQuerySql($sql);      
  37.     if($this->db->FetchRow())
  38.        $this->total_count = $this->db->Get("ncount");
  39.    
  40.     if($this->total_count>0)
  41.         $this->page_count = (int)(($this->total_count-1)/$this->page_size) + 1;
  42.        
  43.     if($this->page < 1) $this->page = 1;
  44.                 if($this->page > $this->page_count) $this->page = $this->page_count;   
  45.         }
  46.        
  47.         function Init()
  48.         {
  49.                 $begin= ($this->page-1) * $this->page_size;
  50.                 $sql = "select id, version, builder, programe_log, config_log, db_log, log_time from tb_log order by id desc limit " .$begin. "," .$this->page_size;
  51.                 $this->db->ExeQuerySql($sql);  
  52.                 while(true)
  53.                 {
  54.                         $log = new CLogInfo();
  55.                         $log->log_id            = $this->db->Get("id");
  56.                         $log->version           = $this->db->Get("version");
  57.       $log->builder             = $this->db->Get("builder");
  58.                         $log->prog_log  = iconv('gbk', 'utf-8', $this->db->Get("programe_log"));
  59.                         $log->config_log= $this->db->Get("config_log");
  60.                         $log->db_log            = $this->db->Get("db_log");
  61.                         $log->log_time  = $this->db->Get("log_time");
  62.                         $this->modules[sizeof($this->modules)] = $log;
  63.                        
  64.                         if(!$this->db->FetchRow()) break;
  65.                 }
  66.         }
  67. };
  68.  
  69.  
  70. class CClientLog extends CModuleBase
  71. {
  72.         var $total_count;
  73.   var $page_count;
  74.         var $page_size;
  75.         var $page;
  76.        
  77.         function CClientLog()
  78.         {
  79.                 global $Config;
  80.                 $Config["SQLITE_DB_NAME"] = "build_log/client_update.db3";
  81.                
  82.                 $this->db = new CDB("sqlite");
  83.                 $this->modules = array();
  84.                
  85.                 $this->page_size = $Config["pagesize"];
  86.                 $this->page = 1;
  87.                 $this->total_count = 0;
  88.                 $this->page_count = 0;
  89.                
  90.                 if(array_key_exists("page", $_REQUEST))
  91.                         $this->page = $_REQUEST["page"];
  92.                        
  93.                 $sql="select count(*) as ncount from update_notes";
  94.     $this->db->ExeQuerySql($sql);      
  95.     if($this->db->FetchRow())
  96.        $this->total_count = $this->db->Get("ncount");
  97.    
  98.     if($this->total_count>0)
  99.         $this->page_count = (int)(($this->total_count-1)/$this->page_size) + 1;
  100.        
  101.     if($this->page < 1) $this->page = 1;
  102.                 if($this->page > $this->page_count) $this->page = $this->page_count;   
  103.         }
  104.        
  105.         function Init()
  106.         {
  107.                 $begin= ($this->page-1) * $this->page_size;
  108.                 $sql = "select * from update_notes order by id desc limit ".$begin."," .$this->page_size;
  109.                
  110.                 $this->db->ExeQuerySql($sql);  
  111.                                
  112.                 while(true)
  113.                 {
  114.                         $log = new CLogInfo();
  115.                        
  116.                         $log->id = $this->db->Get("id");
  117.                         $log->version = $this->db->Get("version");
  118.                         $log->update_details =  str_replace("\n", "<br>", $this->db->Get("update_details") );
  119.                         $log->update_time = $this->db->Get("update_time");
  120.                        
  121.                         $this->modules[sizeof($this->modules)] = $log;
  122.                        
  123.                         if(!$this->db->FetchRow()) break;
  124.                 }
  125.         }      
  126. };
  127. ?>
  128.  
  129.  
  130.  
downloadmodule.build_log.php Source code - Download Project management software KisProject v1.0.3 Source code
Related Source Codes/Software:
MyProber PHP 0.26 a probe - MyProber v0.26 2016-10-23
Food science and technology chain edition v1.1 online reservation system - Treat chain version of the main functions of the o... 2016-10-23
Emlog for SAE v4.2.1 - Emlog for SAE is suitable for SAE emlog used modif... 2016-10-23
Easy website system v2.0 - Business easy built station system (Sunnyi Website... 2016-10-23
Good business mall v2.0 open source edition - Good business, open source shopping mall, which is... 2016-10-23
HP fetion automatic daily weather forecast v1.0 - HP fetion daily automated weather main uses 1. ac... 2016-10-23
Valley dad imitate homepage search - Modified more concise and convenient, but there is... 2016-10-23
hpMyAdmin v3.4.11 For Linux - HpMyAdmin is a PHP based, architecture in Web - Ba... 2016-10-23
V1.4 jmapcms website development system - 1. Modify the CHKJS file loading animation has alw... 2016-10-23
More than the V6.2 taobao guest program - Amoy Taobao V6.2 for short procedures, adopted a P... 2016-10-23
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top