root/modules/branches/2.4/languages/install.php

Revision 5328, 453 bytes (checked in by p_lindheimer, 4 years ago)

add language module that allows language change in the call flow and adds language attribute to extensions/users

  • Property svn:mime-type set to text/plain
  • Property svn:eol-style set to native
Line 
1 <?php
2
3 global $db;
4
5 $autoincrement = (($amp_conf["AMPDBENGINE"] == "sqlite") || ($amp_conf["AMPDBENGINE"] == "sqlite3")) ? "AUTOINCREMENT":"AUTO_INCREMENT";
6 $sql = "CREATE TABLE IF NOT EXISTS languages (
7   language_id INTEGER NOT NULL PRIMARY KEY $autoincrement,
8   lang_code VARCHAR( 50 ) ,
9   description VARCHAR( 50 ) ,
10   dest VARCHAR( 255 )
11 )";
12
13 $check = $db->query($sql);
14 if(DB::IsError($check)) {
15   die_freepbx("Can not create languages table\n");
16 }
17
18 ?>
Note: See TracBrowser for help on using the browser.