Пример #1
0
 function wfitem(wf $wf)
 {
     $this->header = 'Выйти';
     if (wra_userscontext::isloged()) {
         @wra_userscontext::logout();
         @wra_fbu::clearfbid();
         @wra_vku::clearvkid();
         if (!empty($_SERVER['HTTP_REFERER'])) {
             WRA::gotopage($_SERVER['HTTP_REFERER']);
         } else {
             // WRA::gotopage(WRA::base_url().'me');
             WRA::gotopage(WRA::base_url());
         }
         $wf->nicedie();
     }
 }
Пример #2
0
 function opendb()
 {
     $this->dbconnection = mysql_connect(WRA_CONF::$dbhost, WRA_CONF::$dbuser, WRA_CONF::$dbpassword);
     mysql_query('SET NAMES \'utf8\'', $this->dbconnection);
     mysql_query('SET SQL_MODE=\'\'', $this->dbconnection);
     mysql_select_db(WRA_CONF::$dbdb, $this->dbconnection);
     wf::$dbglobal = $this->dbconnection;
 }