case 'm-lev': replaceKey($fields, 'id', 'xtra1'); break; case 'resize': replaceKey($fields, 'vpw', 'xc'); replaceKey($fields, 'vph', 'yc'); break; } // We finally insert into the track table. $q->insertList($fields)->into('event')->run(); } // We update the track record as processed. $q->update('processed', 1)->into('track')->where("id=" . $chunk['id'])->run(); } } $c->redirect(); break; /* --------------------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------------------- */ case 'forget': $t = new Toolbar(); $t->addAction('Back', 'show()', 'go-back'); $c->register($t); if ($trackid = getvar('trackid', '')) { $c->displayMsg("OK, forgetting id={$trackid}."); } else { $c->displayMsg("I was supposed to receive an id to forget."); } break; /* --------------------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------------------- */