WWWiki:Scratchpad

From World Wind Wiki

Jump to: navigation, search

This is some information on what needs to be done for the wiki. There was a lot of information in this document which may be out of date, hopefully it will get sorted through soon.

If you feel like contributing to any page, please do so, especially for the pages below.

Contents

[edit] Pages that require attention

[edit] User Pages

[edit] External Pages

[edit] Information below this point may be outdated

[edit] (Partially) Done

[edit] Administration

[edit] Non-English Pages

The following pages need to be translated into their respective languages and may need supporting text. Note that the wiki is having issues with Chinese characters.

The installer needs to be translanted into non English languages as well.

[edit] wiki

  • Ok I looked into this. The options are (in order from easiest to hardest): 1) just place a warning up on any dev pages saying that the content on these pages is copyright original author and is up for evaluation, testing and for open comment purposes only. 2) Put a go between page on the license policy that explains the funny ‘dual’ license. 3) Try our best to ‘hack’ media wiki to accept two licenses.
(i think #1 would be fine. just mention at the top and bottom of dev articles that this page is specifically exempted from the Creative Commons Attribution-ShareAlike license. —Jessi 22:16, 6 Feb 2005 (MST))

[edit] World Wind Central Hotspots

[edit] In Progress

[edit] Database work

[edit] Todo

Nowak: s/(^http:\/\/|^)([^\/]*).*(\/[^\/]*(\/$|$))/\1\2\/...\3/
try this :D
echo "http://test.com/a/b/c/d.php" | sed -E ' s/(^http:\/\/|^)([^\/]*).*(\/[^\/]*(\/$|$))/\1\2\/...\3/'
http://test.com/.../d.php
(again provided by nowak)
$wwc = array();
if (strncasecmp($link, 'worldwind://goto/', 17)) return array2object($wwc);
$types = array('lon' => 'float', 'altitude' => 'float', 'world' => 'string');
foreach (explod('&', substr($link,17)) as $field) {
  $field = explod('=',$field, 2);
  $x .= $field[0] . '->' . $field[1] . ' | ';
  if (isset($field[0]) && array_key_exists($field[0], $types)) {
    settype($field[1], $types[$field[0]]);
    $wwc[$field[0]] = $field[1];
  }
}
$wwc should be an array with all the info if I'm reading the code 
correctly.

Hmm.. might work better

function translate_uri($uri) {
   $parts = explode('/', $uri);
   for ($i = 0; $i < count($parts); $i++) {
     $parts[$i] = rawurlencode($parts[$i]);
   }
   return implode('/', $parts);
}

[edit] Done?