$timestamp = date("Y-m-d H:i:s", time()); $createdby = $xoopsUser->getVar('uid'); $uname = $xoopsUser->getVar('uname'); $uid = $xoopsUser->getVar('uid'); $isadmin = $xoopsUser->isAdmin(); $action = $_GET['action']; if ($isadmin) { $log->showLog(3, "Current user is admin user"); } //$log->cleanLog(); switch ($action) { case "country": $o->saveCountry(); break; case "window": $o->saveWindow(); break; case "currency": $o->saveCurrency(); break; case "conversionrate": $o->saveConversionRate(); break; case "period": $o->savePeriod(); break; case "races": $o->saveRaces(); break; case "region": $o->saveRegion();