<?php $task = mosGetParam($_REQUEST, 'task', '');switch ($task) { case 'save': doSave(); break; case 'savearticle': doSaveArticle(); break; case 'savecategory': doSaveCategory(); break; case 'save_the_planet': doSaveThePlanet(); break; case 'saveitem': saveItemPlease(); break; default: pageNotFound(); break;}?>
<?php private function makeRoute() { $c = count($this->segments); if ($c == 0) { return; } if ($c > 1) { exitPage::make('404', 'CSEA-0003'); } if ($this->segments[0] == 'osdescription.xml') { $this->controller = 'open'; $this->task = 'osDescription'; return; } $eng = strtolower(str_ireplace('.html', '', $this->segments[0])); $eng = filter_var($eng, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH); if ($eng != '') { $this->engine = $eng; }}?>
<?php $toolbar = $elxis->obj('toolbar');$toolbar->add($eLang->get('SAVE'), 'save', false, '', 'elxSubmit(\'save\');');$toolbar->add($eLang->get('APPLY'), 'saveedit', false, '', 'elxSubmit(\'apply\');');$toolbar->add($eLang->get('CANCEL'), 'cancel', false, $elxis->makeAURL('content:categories/'));?>
mosMenuBar::save('save_the_planet'); //task = save_the_planet