grantpriv.bizext.php 400 B

123456789101112
  1. <?php
  2. if($this->app->clientLang == 'en')
  3. {
  4. $enDataFile = $this->app->getAppRoot() . 'db' . DS . 'en.sql';
  5. if(file_exists($enDataFile))
  6. {
  7. $enData = file_get_contents($enDataFile);
  8. $enData = str_replace('`zt_', $this->config->db->name . '.`zt_', $enData);
  9. $enData = str_replace('zt_', $this->config->db->prefix, $enData);
  10. $this->dbh->exec($enData);
  11. }
  12. }