function run() { parent::run(); if (wra_userscontext::isloged($this->wf) || wra_u::islogin()) { WRA::gotopage(WRA::base_url()); return; } $this->wf->cp->ogtitle = 'Fresh ukrainian news on the map '; $this->wf->cp->ogname = 'Map of war in Ukraine'; $this->wf->cp->header = 'Map of Unrest in Ukraine'; $this->wf->cp->description = 'Fresh news from Ukraine on the map, event of summer 2014, war between Russia and Ukraine, beginning of Third World War. 2014 pro-Russian conflict in Ukraine '; $this->wf->cp->keywords = 'Ukraine, Russia, Donetsk, war, artillery, war games, provocations, intelligence, USA, Eastern Europe'; // $this->lastupdate= wra_foursqvenues::lastupdate(); }
static function hasright($rightname) { // WRA::debug($rightname); // die(); if (self::isloged() || wra_u::islogin()) { $userid = self::curuser(); $urights = wra_usersrights::getlist($userid); switch ($rightname) { case 'adminpage': if (in_array(1, $urights)) { return true; } else { if (wra_u::islogin()) { $uid = wra_u::logedUser(); if ($uid->points > 0) { return true; } } } // if (in_array(5, $urights)) // return true; break; case 'admin': if (in_array(1, $urights)) { return true; } break; case 'user': if (in_array(4, $urights)) { return true; } break; case 'expert': if (in_array(5, $urights)) { return true; } break; default: return false; break; } return false; } else { return false; } }