变更集1515401
时间戳: 2016年10月15日下午02:23:57 ( 8年 (之前) 位置: eve-shipinfo/干线 文件夹: -
5已编辑
-
类/EVEShipInfo.php (已修改) ( 7个差异 ) -
classes/EVEShipInfo/Admin/Page/Main/Dashboard.php类 (已修改) ( 3个差异 ) -
data/data.zip (已修改) ( 以前的 ) -
js/admin/仪表盘.js (已修改) ( 1个差异 ) -
自述.txt (已修改) ( 1个差异 )
图例:
未修改 补充 远离的
-
eve-shipinfo/trunk/classes/EVEShipInfo.php 1512895元 1515401兰特 124 124 $数据=wp_remote_retrieve_response_message($result); 125 125 }其他{ 126 $infoRemote=EVEShipInfo::parseVersion(trim($result['body'])); 127 $infoLocal=EVEShipInfo::parseVersion($this->getDataVersion()); 128 $update=false; 129 if($infoRemote['date']>$infoLocal['date']){ 130 $update=true; 131 } 132 126 133 $data=数组( 127 ' 在线'=>$result['正文 '], 128 ' 已安装'=>$this->getDataVersion() 134 ' remoteVersion“=>$infoRemote[”版本 '], 135 ' updateAvailable’=>$update, 129 136 ); 130 137 } … … 132 139 133 140 $response=数组( 141 “url”=>$url, 134 142 “state”=>$state, 135 143 “data”=>$data … … 1205 1213 *@return布尔值 1206 1214 */ 1207 公共函数isDatabaseUpToDate( ) 1208 { 1209 if(isset($this->cachedDBUpToDate) ) { 1215 公共函数isDatabaseUpToDate( $force=错误 ) 1216 { 1217 if(isset($this->cachedDBUpToDate) && !$ 力 ) { 1210 1218 return$this->cachedDBUpToDate;返回$this->cachedDBUpToDate; 1211 1219 } … … 1262 1270 $this->handle_unpackDataFiles(); 1263 1271 1264 如果($this->isDatabaseUpToDate( )) { 1272 如果($this->isDatabaseUpToDate( 真的 )) { 1265 1273 回报; 1266 1274 } … … 1286 1294 $this->handle_databasePopulate(); 1287 1295 1288 $this->setOption('installed_db_version',$this->getDataVersion()); 1289 1296 $this->cachedDBUpToDate=true; 1290 1297 } … … 1466 1473 } 1467 1474 } 1475 1476 $version=$this->loadDataFile('db-version.txt'); 1477 $this->setOption('installed_db_version',$version); 1468 1478 } 1469 1479 … … 1482 1492 返回null; 1483 1493 } 1494 1495 公共静态函数parseVersion($version) 1496 { 1497 $dateString=子项($version,strpos($versions,'-')+1); 1498 $year=子($dateString,0,4); 1499 $month=子项($dateString,4,2); 1500 $day=子项($dateString,6,2); 1501 1502 返回数组( 1503 “版本”=>$version, 1504 “年”=>$year, 1505 “月”=>$month, 1506 “天”=>$day, 1507 “date”=>新DateTime($year.'-'.$month.'-'.$day) 1508 ); 1509 } 1484 1510 } 1485 1511 -
eve-shipinfo/trunk/classes/EVEShipInfo/Admin/Page/Main/Dashboard.php 1512895元 1515401兰特 146 146 } 147 147 148 $ 内容 =file_get_contents($versionFile); 149 if(空($ 内容 )) { 148 $ 版本 =file_get_contents($versionFile); 149 if(空($ 版本 )) { 150 150 抛出新的EVEShipInfo_Exception( 151 151 '没有可用的版本信息', … … 154 154 ); 155 155 } 156 157 if($content==$this->plugin->getDataVersion()){ 156 157 $infoNew=EVEShipInfo::parseVersion($version); 158 $infoOld=EVEShipInfo::parseVersion($this->plugin->getDataVersion()); 159 160 if($infoNew['date']<=$infoOld['date']){ 158 161 return$this->ui->createStuffBox(__('更新数据库','eve-shipinfo')) 159 162 ->生成警告() 160 163 ->设置内容( 161 164 “<p>”。 162 冲刺( 163 __(“数据库版本%1$s已安装。”,“eve-shipinfo”), 164 “<代码>”$ 内容。'</ 代码>' 165 ). 165 __(“已安装较新或同等数据库。”,“eve-shipinfo”)。 166 166 “</p>”。 167 167 “<p>”。 168 $this->ui->按钮(__(' 后退 ','eve-shipinfo')) 168 $this->ui->按钮(__(' 好 啊 ','eve-shipinfo')) 169 169 ->链接($this->getURL())。 170 170 “</p>” … … 255 255 “</p>”。 256 256 '<p id=“updatecheck-available”style=“display:none”class=“text-warning”>'。 257 __(“有更新可用。”,“eve-shipinfo”)。”。 257 冲刺( 258 __('可用更新:版本%1$s','eve-shipinfo'), 259 '<code id=“updatecheck-remoteversion”></code>' 260 ).' '. 258 261 冲刺( 259 262 __('从%1$splugin项目页面%2$s获取','eve-shipinfo'), -
eve-shipinfo/ttrunk/js/admin/Dashboard.js 1417468兰特 1515401兰特 31 31 } 32 32 33 if(data.data.online!=data.data.installed){ 33 var结果=data.data; 34 35 if(result.updateAvailable==true){ 36 jQuery('#updatecheckremoteversion').html(result.remoteversion); 34 37 jQuery('#updatecheck-available').show(); 35 38 回报; -
eve-shipinfo/trunk/readme.txt 1417469兰特 1515401兰特 16 16 =功能= 17 17 18 *便携式EVE Online提供所有4个数据库 63 船舶 19 * 9 26张高质量定制发货屏幕截图(正面/侧面) 20 *集成 简单的 浅色和深色布局的主题 18 *便携式EVE Online提供所有4个数据库 74 船舶 19 * 9 48张高质量定制发货屏幕截图(正面/侧面),单独下载 20 *集成 浅色和深色布局的主题 21 21 *将发货名称链接到博客中的信息弹出窗口或虚拟发货页面 22 22 *极其可定制的发货清单短代码