Changeset 1243
- Timestamp:
- 10/12/10 19:55:51 (3 years ago)
- Location:
- g-map
- Files:
-
- 2 modified
- 1 copied
-
de-informal.xml (copied) (copied from g-map/de.xml)
-
optionals/de.gmap.wbb/files/lib/acp/action/UpdateMapAction.class.php (modified) (6 diffs)
-
package.xml (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
g-map/optionals/de.gmap.wbb/files/lib/acp/action/UpdateMapAction.class.php
r1239 r1243 5 5 /** 6 6 * Updates the map locations 7 * 7 * 8 8 * @package de.gmap.wbb 9 9 * @author Torben Brodt … … 12 12 class UpdateMapAction extends UpdateCounterAction { 13 13 public $action = 'UpdateMap'; 14 14 15 15 /** 16 16 * @see Action::execute() … … 18 18 public function execute() { 19 19 parent::execute(); 20 20 21 21 $col = User::getUserOptionID('location'); 22 22 $api = new GmapApi(); 23 23 24 24 if(empty($col) || !$api->isActive()) { 25 25 $this->calcProgress(); 26 26 $this->finish(); 27 27 } 28 28 29 29 $col = "userOption".$col; 30 30 31 31 // count board 32 32 $sql = "SELECT COUNT(*) AS count … … 35 35 $row = WCF::getDB()->getFirstRow($sql); 36 36 $count = $row['count']; 37 37 38 38 $i = 0; 39 39 40 40 // cleanup disabled users 41 $sql = 'DELETE FROM wcf 1_gmap_user42 USING wcf 1_gmap_user43 LEFT JOIN wcf 1_user ON wcf1_gmap_user.userID = wcf1_user.userID44 WHERE ISNULL(wcf 1_user.userID)';41 $sql = 'DELETE FROM wcf'.WCF_N.'_gmap_user 42 USING wcf'.WCF_N.'_gmap_user 43 LEFT JOIN wcf'.WCF_N.'_user ON wcf'.WCF_N.'_gmap_user.userID = wcf'.WCF_N.'_user.userID 44 WHERE ISNULL(wcf'.WCF_N.'_user.userID)'; 45 45 WCF::getDB()->sendQuery($sql); 46 46 47 47 // update 48 48 $sql = "SELECT userID, … … 54 54 while ($row = WCF::getDB()->fetchArray($result)) { 55 55 $point = $api->search($row['loc']); 56 56 57 57 if($point) { 58 58 $sql = "REPLACE INTO wcf".WCF_N."_gmap_user … … 61 61 WCF::getDB()->sendQuery($sql); 62 62 } 63 63 64 64 $i++; 65 65 } 66 66 67 67 if ($i == 0) { 68 68 $this->calcProgress(); 69 69 $this->finish(); 70 70 } 71 71 72 72 $this->calcProgress(($this->limit * $this->loop), $count); 73 73 $this->nextLoop(); -
g-map/package.xml
r1239 r1243 10 10 <packagedescription language="it"><![CDATA[Questo pacchetto aggiunge una mappa di Google sul tuo forum.]]></packagedescription> 11 11 <isunique>1</isunique> 12 <version>2.0. 0</version>12 <version>2.0.1</version> 13 13 <date>DATE</date> 14 14 <plugin>com.woltlab.wcf</plugin> … … 37 37 <pagelocation>pagelocation.xml</pagelocation> 38 38 <languages languagecode="de">de.xml</languages> 39 <languages languagecode="de-informal">de-informal.xml</languages> 39 40 <languages languagecode="en">en.xml</languages> 40 41 <languages languagecode="it">it.xml</languages> … … 45 46 </instructions> 46 47 48 <instructions type="update" fromversion="2.0.0"> 49 <files>files.tar</files> 50 <languages languagecode="de-informal">de-informal.xml</languages> 51 </instructions> 52 47 53 <instructions type="update" fromversion="2.0.0 RC 3"> 48 54 <files>files.tar</files> 55 <languages languagecode="de-informal">de-informal.xml</languages> 49 56 <pagemenu>pagemenu.xml</pagemenu> 50 57 <languages languagecode="it">it.xml</languages> … … 54 61 <instructions type="update" fromversion="2.0.0 RC 2"> 55 62 <files>files.tar</files> 63 <languages languagecode="de-informal">de-informal.xml</languages> 56 64 <pagemenu>pagemenu.xml</pagemenu> 57 65 <languages languagecode="it">it.xml</languages>
