Changeset 340
- Timestamp:
- 10/14/08 22:17:05 (14 years ago)
- Location:
- dev
- Files:
-
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/admin/option_acache.php
r317 r340 10 10 options::fadd('Ignore pages', 'cache_ignore', 'edit:size:60'); 11 11 options::fadd('Cache times', 'cache_times', 'edit:size:60'); 12 13 options::cat('Advanced', 'Cache', 'Killmail Cache'); 14 options::fadd('Killmail Caching enabled','km_cache_enabled','checkbox'); 15 options::fadd('Killmail Cache directory', 'km_cache_dir', 'edit:size:40'); 16 options::fadd('Cached Killmails', 'none', 'custom', array('admin_acache', 'getKillmails')); 12 17 13 18 options::cat('Advanced', 'Cache', 'Reinforced'); … … 34 39 } 35 40 } 41 42 function getKillmails() 43 { 44 if (config::get('km_cache_dir')) 45 { 46 $dir = config::get('km_cache_dir'); 47 $count = 0; 48 if(is_dir($dir)) 49 { 50 if($handle = opendir($dir)) 51 { 52 while(($file = readdir($handle)) !== false) 53 { 54 $count++; 55 } 56 closedir($handle); 57 } 58 } 59 return $count - 2; 60 } 61 else 62 { 63 return 0; 64 } 65 } 36 66 } 37 67 ?> -
dev/common/includes/class.kill.php
r327 r340 194 194 function getRawMail() 195 195 { 196 $this->execQuery(); 196 if (config::get('km_cache_enabled') && file_exists(config::get('km_cache_dir')."/".$this->getID().".txt")) 197 { 198 return file_get_contents(config::get('km_cache_dir')."/".$this->getID().".txt"); 199 } 200 201 $this->execQuery(); 197 202 if ($this->isClassified()) 198 203 { … … 321 326 } 322 327 } 328 329 if (config::get('km_cache_enabled')) file_put_contents(config::get('km_cache_dir')."/".$this->getID().".txt", $mail); 323 330 324 331 return $mail; -
dev/common/includes/globals.php
r337 r340 1 1 <?php 2 2 // current subversion revision 3 preg_match('/\$Re'.'vision: (.*?) \$/', '$Revision: 3 37$', $match);3 preg_match('/\$Re'.'vision: (.*?) \$/', '$Revision: 340 $', $match); 4 4 define('SVN_REV', $match[1]); 5 5 -
dev/install/install_step2.php
r254 r340 85 85 echo '<br/><div class="block-header2">Connectivity</div>'; 86 86 // connectivity 87 $url = 'http:// sync.eve-dev.net/?a=sync_server';87 $url = 'http://www.eve-dev.net/logo.png'; 88 88 if (ini_get('allow_url_fopen')) 89 89 { -
dev/mods/history/history.xml
r339 r340 2 2 <history> 3 3 <changeset> 4 <rev>3 39</rev>4 <rev>340</rev> 5 5 <author>beans</author> 6 6 <date>14.10.2008</date> 7 7 <comment> 8 <type> UPD</type>8 <type>ADD</type> 9 9 <text> 10 Parser rewrite by FriedRoadKill 10 Possibility to cache killmails (Admin->Cache) 11 </text> 12 </comment> 13 <comment> 14 <type>FIX</type> 15 <text> 16 Changed installer step2 sitecheck 11 17 </text> 12 18 </comment>