Example #1
0
    /**
     * @see /htdocs/bw/lib/lang.php
     */
    public function __construct()
    {
        parent::__construct();
        // TODO: it is fun to offer the members the language of the volunteers, i.e. 'prog',
        // so I don't make any exceptions here; but we miss the flag - the BV flag ;-)
        // TODO: is it consensus we use "WelcomeToSignup" as the decision maker for languages?
        $query = '
SELECT `ShortCode`
FROM `words`
WHERE code = \'WelcomeToSignup\'';
        $result = $this->dao->query($query);
        while ($row = $result->fetch(PDB::FETCH_OBJ)) {
            $this->_langs[] = $row->ShortCode;
        }
        global $i_am_the_mailbot, $_SYSHCVOL;
        if ('auto' == PVars::getObj('db')->dbupdate && !(isset($_SYSHCVOL['NODBAUTOUPDATE']) ? $_SYSHCVOL['NODBAUTOUPDATE'] : true) && !(isset($i_am_the_mailbot) ? $i_am_the_mailbot : false)) {
            require_once "../././htdocs/bw/lib/dbupdate.php";
            DBUpdateCheck();
            //			die("<br />Please refresh again now, database has been updated") ;
        }
    }
Example #2
0
 /**
  * Constructor
  *
  * @param void
  */
 public function __construct()
 {
     parent::__construct();
     $this->bootstrap();
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
 }