kenken999 commited on
Commit
8895277
1 Parent(s): 37734b5
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +1 -0
  2. php/buttonhandler.php +0 -66
  3. php/changepwd.php +41 -0
  4. php/chat126_users1_search.php +84 -0
  5. php/chat_files_search.php +1 -12
  6. php/chat_groups_search.php +1 -12
  7. php/chat_history_search.php +1 -12
  8. php/chat_peopletype_search.php +1 -12
  9. php/chat_settings_search.php +1 -12
  10. php/chat_timezone_search.php +1 -12
  11. php/chat_users_search.php +1 -12
  12. php/classes/changepwdpage.php +490 -0
  13. php/classes/charts.php +8 -60
  14. php/classes/cipherer.php +1 -1
  15. php/classes/db.php +9 -33
  16. php/classes/listpage.php +1 -1
  17. php/classes/memberspage.php +14 -14
  18. php/classes/memberspage_ad.php +2 -2
  19. php/classes/projectsettings.php +11 -63
  20. php/classes/rightspage.php +14 -14
  21. php/classes/security.php +19 -113
  22. php/classes/security/ad.php +1 -1
  23. php/connections/ConnectionManager.php +23 -60
  24. php/connections/ConnectionManager_base.php +15 -41
  25. php/include/_global_settings.php +3 -3
  26. php/include/appsettings.php +16 -51
  27. php/include/audit.php +17 -331
  28. php/include/chat126_users1_settings.php +1629 -0
  29. php/include/chat126_users1_variables.php +13 -0
  30. php/include/chat_files_settings.php +18 -18
  31. php/include/chat_files_variables.php +1 -1
  32. php/include/chat_groups_settings.php +22 -22
  33. php/include/chat_groups_variables.php +1 -1
  34. php/include/chat_history_events.php +1 -3
  35. php/include/chat_history_settings.php +76 -555
  36. php/include/chat_history_variables.php +1 -1
  37. php/include/chat_peopletype_settings.php +16 -16
  38. php/include/chat_peopletype_variables.php +1 -1
  39. php/include/chat_settings_settings.php +63 -62
  40. php/include/chat_settings_variables.php +1 -1
  41. php/include/chat_timezone_settings.php +23 -23
  42. php/include/chat_timezone_variables.php +1 -1
  43. php/include/chat_users_settings.php +22 -22
  44. php/include/chat_users_variables.php +1 -1
  45. php/include/commonfunctions.php +20 -776
  46. php/include/dal.php +16 -64
  47. php/include/dal/chats_at_localhost__chat126_users1.php +14 -0
  48. php/include/dal/chats_at_localhost__chat_files.php +9 -0
  49. php/include/dal/chats_at_localhost__chat_groups.php +11 -0
  50. php/include/dal/chats_at_localhost__chat_history.php +17 -0
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  title: php
3
  emoji: 🚀
4
  colorFrom: blue
 
1
  ---
2
+ marp: true
3
  title: php
4
  emoji: 🚀
5
  colorFrom: blue
php/buttonhandler.php CHANGED
@@ -46,16 +46,6 @@ while( isset( $_REQUEST["masterkey".$i] ) ) {
46
  }
47
 
48
 
49
- if($buttId=='Add_Comment')
50
- {
51
- // for login page users table can be turned off
52
- if( $table != GLOBAL_PAGES )
53
- {
54
- require_once("include/". GetTableURL( $table ) ."_variables.php");
55
- $cipherer = new RunnerCipherer( $table );
56
- }
57
- buttonHandler_Add_Comment($params);
58
- }
59
  if($buttId=='Create_chart')
60
  {
61
  // for login page users table can be turned off
@@ -180,62 +170,6 @@ if( $eventId == 'tmp_file_event' && "chat_history" == $table )
180
 
181
 
182
  // create table and non table handlers
183
- function buttonHandler_Add_Comment($params)
184
- {
185
- global $strTableName;
186
- $result = array();
187
-
188
- // create new button object for get record data
189
- $params["keys"] = (array)my_json_decode(postvalue('keys'));
190
- $params["isManyKeys"] = postvalue('isManyKeys');
191
- $params["location"] = postvalue('location');
192
-
193
- $button = new Button($params);
194
- $ajax = $button; // for examle from HELP
195
- $keys = $button->getKeys();
196
-
197
- $masterData = false;
198
- if ( isset($params['masterData']) && count($params['masterData']) > 0 )
199
- {
200
- $masterData = $params['masterData'];
201
- }
202
- else if ( isset($params["masterTable"]) )
203
- {
204
- $masterData = $button->getMasterData($params["masterTable"]);
205
- }
206
-
207
- $contextParams = array();
208
- if ( $params["location"] == PAGE_VIEW )
209
- {
210
- $contextParams["data"] = $button->getRecordData();
211
- $contextParams["masterData"] = $masterData;
212
- }
213
- else if ( $params["location"] == PAGE_EDIT )
214
- {
215
- $contextParams["data"] = $button->getRecordData();
216
- $contextParams["newData"] = $params['fieldsData'];
217
- $contextParams["masterData"] = $masterData;
218
- }
219
- else if ( $params["location"] == "grid" )
220
- {
221
- $params["location"] = "list";
222
- $contextParams["data"] = $button->getRecordData();
223
- $contextParams["newData"] = $params['fieldsData'];
224
- $contextParams["masterData"] = $masterData;
225
- }
226
- else
227
- {
228
- $contextParams["masterData"] = $masterData;
229
- }
230
-
231
- RunnerContext::push( new RunnerContextItem( $params["location"], $contextParams));
232
- // Put your code here.
233
- $result["txt"] = $params["txt"]." world!";
234
- ;
235
- RunnerContext::pop();
236
- echo my_json_encode($result);
237
- $button->deleteTempFiles();
238
- }
239
  function buttonHandler_Create_chart($params)
240
  {
241
  global $strTableName;
 
46
  }
47
 
48
 
 
 
 
 
 
 
 
 
 
 
49
  if($buttId=='Create_chart')
50
  {
51
  // for login page users table can be turned off
 
170
 
171
 
172
  // create table and non table handlers
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  function buttonHandler_Create_chart($params)
174
  {
175
  global $strTableName;
php/changepwd.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ @ini_set("display_errors", "1");
3
+ @ini_set("display_startup_errors", "1");
4
+
5
+ require_once("include/dbcommon.php");
6
+
7
+ $token = postvalue("token");
8
+
9
+ Security::processLogoutRequest();
10
+ if( !$token && (!isLogged() || Security::isGuest() ) )
11
+ {
12
+ Security::saveRedirectURL();
13
+ HeaderRedirect("login", "", "message=expired");
14
+ return;
15
+ }
16
+
17
+ require_once("include/xtempl.php");
18
+ require_once("classes/changepwdpage.php");
19
+ require_once(getabspath("classes/cipherer.php"));
20
+
21
+
22
+ $xt = new Xtempl();
23
+
24
+
25
+ $params = array();
26
+ $params["xt"] = &$xt;
27
+ $params["token"] = $token;
28
+ $params["id"] = postvalue_number("id");
29
+ $params["tName"] = Security::loginTable();
30
+ $params["pageTable"] = GLOBAL_PAGES;
31
+ $params["pageType"] = PAGE_CHANGEPASS;
32
+ $params["needSearchClauseObj"] = false;
33
+ $params["action"] = ChangePasswordPage::readActionFromRequest();
34
+
35
+ $params["mode"] = ChangePasswordPage::readModeFromRequest();
36
+
37
+ $pageObject = new ChangePasswordPage( $params );
38
+ $pageObject->init();
39
+
40
+ $pageObject->process();
41
+ ?>
php/chat126_users1_search.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ @ini_set("display_errors","1");
3
+ @ini_set("display_startup_errors","1");
4
+
5
+ require_once("include/dbcommon.php");
6
+ add_nocache_headers();
7
+
8
+ require_once("classes/searchclause.php");
9
+ require_once("include/chat126_users1_variables.php");
10
+ require_once("classes/searchcontrol.php");
11
+ require_once("classes/advancedsearchcontrol.php");
12
+ require_once("classes/panelsearchcontrol.php");
13
+
14
+
15
+ Security::processLogoutRequest();
16
+
17
+ if( !isLogged() )
18
+ {
19
+ Security::saveRedirectURL();
20
+ redirectToLogin();
21
+ }
22
+
23
+ $accessGranted = CheckTablePermissions($strTableName, "S");
24
+ if(!$accessGranted)
25
+ {
26
+ HeaderRedirect("menu");
27
+ }
28
+
29
+
30
+ require_once('include/xtempl.php');
31
+ require_once('classes/searchpage.php');
32
+ require_once('classes/searchpage_dash.php');
33
+
34
+ $xt = new Xtempl();
35
+ $pageMode = SearchPage::readSearchModeFromRequest();
36
+
37
+ if( $pageMode == SEARCH_LOAD_CONTROL )
38
+ $layoutVersion = postvalue("layoutVersion");
39
+
40
+
41
+ $params = array();
42
+ $params['xt'] = &$xt;
43
+ $params['id'] = postvalue_number("id");
44
+ $params['mode'] = $pageMode;
45
+ $params['tName'] = $strTableName;
46
+ $params["pageName"] = postvalue("page");
47
+ $params['pageType'] = PAGE_SEARCH;
48
+ $params['chartName'] = $cname;
49
+ $params['reportName'] = $rname;
50
+ $params['templatefile'] = $templatefile;
51
+ $params['shortTableName'] = 'chat126_users1';
52
+ $params['layoutVersion'] = $layoutVersion;
53
+
54
+ $params['searchControllerId'] = postvalue('searchControllerId') ? postvalue('searchControllerId') : $id;
55
+ $params['ctrlField'] = postvalue('ctrlField');
56
+
57
+ $params['needSettings'] = postvalue('isNeedSettings');
58
+
59
+ if( $pageMode == SEARCH_DASHBOARD )
60
+ {
61
+ $params["dashTName"] = postvalue("table");
62
+ $params["dashElementName"] = postvalue("dashelement");
63
+ $params["dashPage"] = postvalue("dashPage");
64
+ }
65
+
66
+ // e.g. crosstable params
67
+ $params["extraPageParams"] = SearchPage::getExtraPageParams();
68
+
69
+ $params["masterTable"] = postvalue("mastertable");
70
+ if( $params["masterTable"] )
71
+ $params["masterKeysReq"] = RunnerPage::readMasterKeysFromRequest();
72
+
73
+
74
+ $pageObject = new SearchPage($params);
75
+
76
+ if( $pageMode == SEARCH_LOAD_CONTROL )
77
+ {
78
+ $pageObject->displaySearchControl();
79
+ return;
80
+ }
81
+
82
+ $pageObject->init();
83
+ $pageObject->process();
84
+ ?>
php/chat_files_search.php CHANGED
@@ -20,18 +20,7 @@ if( !isLogged() )
20
  redirectToLogin();
21
  }
22
 
23
- require_once( "include/reportfunctions.php" );
24
- $cname = postvalue("cname");
25
- $rname = postvalue("rname");
26
- if( $rname || $cname ) {
27
- $rpt_array = wrGetEntityArray(
28
- $rname ? $rname : $cname,
29
- $rname ? WR_REPORT : WR_CHART
30
- );
31
- $accessGranted = @$rpt_array['status'] != "private" || @$rpt_array['owner'] != Security::getUserName();
32
- } else {
33
- $accessGranted = CheckTablePermissions( $strTableName, "S" );
34
- }
35
  if(!$accessGranted)
36
  {
37
  HeaderRedirect("menu");
 
20
  redirectToLogin();
21
  }
22
 
23
+ $accessGranted = CheckTablePermissions($strTableName, "S");
 
 
 
 
 
 
 
 
 
 
 
24
  if(!$accessGranted)
25
  {
26
  HeaderRedirect("menu");
php/chat_groups_search.php CHANGED
@@ -20,18 +20,7 @@ if( !isLogged() )
20
  redirectToLogin();
21
  }
22
 
23
- require_once( "include/reportfunctions.php" );
24
- $cname = postvalue("cname");
25
- $rname = postvalue("rname");
26
- if( $rname || $cname ) {
27
- $rpt_array = wrGetEntityArray(
28
- $rname ? $rname : $cname,
29
- $rname ? WR_REPORT : WR_CHART
30
- );
31
- $accessGranted = @$rpt_array['status'] != "private" || @$rpt_array['owner'] != Security::getUserName();
32
- } else {
33
- $accessGranted = CheckTablePermissions( $strTableName, "S" );
34
- }
35
  if(!$accessGranted)
36
  {
37
  HeaderRedirect("menu");
 
20
  redirectToLogin();
21
  }
22
 
23
+ $accessGranted = CheckTablePermissions($strTableName, "S");
 
 
 
 
 
 
 
 
 
 
 
24
  if(!$accessGranted)
25
  {
26
  HeaderRedirect("menu");
php/chat_history_search.php CHANGED
@@ -20,18 +20,7 @@ if( !isLogged() )
20
  redirectToLogin();
21
  }
22
 
23
- require_once( "include/reportfunctions.php" );
24
- $cname = postvalue("cname");
25
- $rname = postvalue("rname");
26
- if( $rname || $cname ) {
27
- $rpt_array = wrGetEntityArray(
28
- $rname ? $rname : $cname,
29
- $rname ? WR_REPORT : WR_CHART
30
- );
31
- $accessGranted = @$rpt_array['status'] != "private" || @$rpt_array['owner'] != Security::getUserName();
32
- } else {
33
- $accessGranted = CheckTablePermissions( $strTableName, "S" );
34
- }
35
  if(!$accessGranted)
36
  {
37
  HeaderRedirect("menu");
 
20
  redirectToLogin();
21
  }
22
 
23
+ $accessGranted = CheckTablePermissions($strTableName, "S");
 
 
 
 
 
 
 
 
 
 
 
24
  if(!$accessGranted)
25
  {
26
  HeaderRedirect("menu");
php/chat_peopletype_search.php CHANGED
@@ -20,18 +20,7 @@ if( !isLogged() )
20
  redirectToLogin();
21
  }
22
 
23
- require_once( "include/reportfunctions.php" );
24
- $cname = postvalue("cname");
25
- $rname = postvalue("rname");
26
- if( $rname || $cname ) {
27
- $rpt_array = wrGetEntityArray(
28
- $rname ? $rname : $cname,
29
- $rname ? WR_REPORT : WR_CHART
30
- );
31
- $accessGranted = @$rpt_array['status'] != "private" || @$rpt_array['owner'] != Security::getUserName();
32
- } else {
33
- $accessGranted = CheckTablePermissions( $strTableName, "S" );
34
- }
35
  if(!$accessGranted)
36
  {
37
  HeaderRedirect("menu");
 
20
  redirectToLogin();
21
  }
22
 
23
+ $accessGranted = CheckTablePermissions($strTableName, "S");
 
 
 
 
 
 
 
 
 
 
 
24
  if(!$accessGranted)
25
  {
26
  HeaderRedirect("menu");
php/chat_settings_search.php CHANGED
@@ -20,18 +20,7 @@ if( !isLogged() )
20
  redirectToLogin();
21
  }
22
 
23
- require_once( "include/reportfunctions.php" );
24
- $cname = postvalue("cname");
25
- $rname = postvalue("rname");
26
- if( $rname || $cname ) {
27
- $rpt_array = wrGetEntityArray(
28
- $rname ? $rname : $cname,
29
- $rname ? WR_REPORT : WR_CHART
30
- );
31
- $accessGranted = @$rpt_array['status'] != "private" || @$rpt_array['owner'] != Security::getUserName();
32
- } else {
33
- $accessGranted = CheckTablePermissions( $strTableName, "S" );
34
- }
35
  if(!$accessGranted)
36
  {
37
  HeaderRedirect("menu");
 
20
  redirectToLogin();
21
  }
22
 
23
+ $accessGranted = CheckTablePermissions($strTableName, "S");
 
 
 
 
 
 
 
 
 
 
 
24
  if(!$accessGranted)
25
  {
26
  HeaderRedirect("menu");
php/chat_timezone_search.php CHANGED
@@ -20,18 +20,7 @@ if( !isLogged() )
20
  redirectToLogin();
21
  }
22
 
23
- require_once( "include/reportfunctions.php" );
24
- $cname = postvalue("cname");
25
- $rname = postvalue("rname");
26
- if( $rname || $cname ) {
27
- $rpt_array = wrGetEntityArray(
28
- $rname ? $rname : $cname,
29
- $rname ? WR_REPORT : WR_CHART
30
- );
31
- $accessGranted = @$rpt_array['status'] != "private" || @$rpt_array['owner'] != Security::getUserName();
32
- } else {
33
- $accessGranted = CheckTablePermissions( $strTableName, "S" );
34
- }
35
  if(!$accessGranted)
36
  {
37
  HeaderRedirect("menu");
 
20
  redirectToLogin();
21
  }
22
 
23
+ $accessGranted = CheckTablePermissions($strTableName, "S");
 
 
 
 
 
 
 
 
 
 
 
24
  if(!$accessGranted)
25
  {
26
  HeaderRedirect("menu");
php/chat_users_search.php CHANGED
@@ -20,18 +20,7 @@ if( !isLogged() )
20
  redirectToLogin();
21
  }
22
 
23
- require_once( "include/reportfunctions.php" );
24
- $cname = postvalue("cname");
25
- $rname = postvalue("rname");
26
- if( $rname || $cname ) {
27
- $rpt_array = wrGetEntityArray(
28
- $rname ? $rname : $cname,
29
- $rname ? WR_REPORT : WR_CHART
30
- );
31
- $accessGranted = @$rpt_array['status'] != "private" || @$rpt_array['owner'] != Security::getUserName();
32
- } else {
33
- $accessGranted = CheckTablePermissions( $strTableName, "S" );
34
- }
35
  if(!$accessGranted)
36
  {
37
  HeaderRedirect("menu");
 
20
  redirectToLogin();
21
  }
22
 
23
+ $accessGranted = CheckTablePermissions($strTableName, "S");
 
 
 
 
 
 
 
 
 
 
 
24
  if(!$accessGranted)
25
  {
26
  HeaderRedirect("menu");
php/classes/changepwdpage.php ADDED
@@ -0,0 +1,490 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class ChangePasswordPage extends RunnerPage
3
+ {
4
+ protected $pwdStrong = false;
5
+
6
+ public $token = "";
7
+
8
+ public $action;
9
+
10
+ protected $passwordField;
11
+ protected $usernameField;
12
+
13
+ protected $auditObj = null;
14
+
15
+ protected $changePwdFields;
16
+
17
+ protected $changedSuccess = false;
18
+
19
+ /**
20
+ *
21
+ */
22
+ function __construct(&$params = "")
23
+ {
24
+ parent::__construct($params);
25
+
26
+ if( !$this->action && !$this->checkToken() )
27
+ {
28
+ Security::saveRedirectURL();
29
+ HeaderRedirect("login");
30
+ return;
31
+ }
32
+
33
+ $this->passwordField = Security::passwordField();
34
+ $this->usernameField = Security::usernameField();
35
+
36
+ $this->auditObj = GetAuditObject();
37
+
38
+ if( $this->token )
39
+ {
40
+ $this->changePwdFields = array("newpass", "confirm");
41
+ // to send it back with a form (user may delete session before submit)
42
+ $this->setProxyValue("token", $this->token);
43
+ }
44
+ else
45
+ $this->changePwdFields = array("oldpass", "newpass", "confirm");
46
+
47
+ // fill global password settings
48
+ $this->pwdStrong = GetGlobalData("pwdStrong", false);
49
+
50
+ if( $this->pwdStrong )
51
+ {
52
+ $this->settingsMap["globalSettings"]["pwdStrong"] = true;
53
+ $this->settingsMap["globalSettings"]["pwdLen"] = GetGlobalData("pwdLen", 0);
54
+ $this->settingsMap["globalSettings"]["pwdUnique"] = GetGlobalData("pwdUnique", 0);
55
+ $this->settingsMap["globalSettings"]["pwdDigits"] = GetGlobalData("pwdDigits", 0);
56
+ $this->settingsMap["globalSettings"]["pwdUpperLower"] = GetGlobalData("pwdUpperLower", false);
57
+ }
58
+
59
+ $this->headerForms = array( "top" );
60
+ $this->footerForms = array( "footer" );
61
+ $this->bodyForms = array( "above-grid", "grid" );
62
+ }
63
+
64
+ /**
65
+ * Set the connection property
66
+ */
67
+ protected function setTableConnection()
68
+ {
69
+ global $cman;
70
+ $this->connection = $cman->getForLogin();
71
+ }
72
+
73
+ /**
74
+ *
75
+ */
76
+ protected function assignCipherer()
77
+ {
78
+ $this->cipherer = RunnerCipherer::getForLogin();
79
+ }
80
+
81
+ /**
82
+ *
83
+ */
84
+ protected function setReferer()
85
+ {
86
+ $referer = @$_SERVER["HTTP_REFERER"] ? @$_SERVER["HTTP_REFERER"] : "";
87
+
88
+ // ignore referer if from another site or if came from the same "change password" page
89
+ $home = strtoupper( projectUrl() );
90
+ $changePwdPage = strtoupper( projectUrl() . GetTableLink("changepwd") );
91
+ if( substr( strtoupper( $referer ), 0 , strlen( $home ) ) != $home ||
92
+ substr( strtoupper( $referer ), 0 , strlen( $changePwdPage ) ) == $changePwdPage ) {
93
+
94
+ $referer = "";
95
+ }
96
+
97
+ if( $referer ) {
98
+ $_SESSION["changepwd_referer"] = $referer;
99
+ }
100
+ if( !$_SESSION["changepwd_referer"] ) {
101
+ $_SESSION["changepwd_referer"] = projectUrl();
102
+ }
103
+
104
+ }
105
+
106
+ /**
107
+ * @return DsCondition
108
+ */
109
+ protected function getTokenCondition() {
110
+ return DataCondition::FieldEquals( "reset_token", $this->token );
111
+ }
112
+
113
+ /**
114
+ * @return DsCondition
115
+ */
116
+ protected function getUsernameCondition() {
117
+ if( $this->token ) {
118
+ return $this->getTokenCondition();
119
+ }
120
+
121
+ $caseInsensitive = Security::caseInsensitiveUsername() ? dsCASE_INSENSITIVE : dsCASE_STRICT;
122
+ return DataCondition::FieldEquals( $this->usernameField, Security::getUserName(), 0, $caseInsensitive );
123
+ }
124
+
125
+ /**
126
+ * @param String newpass
127
+ * @return
128
+ */
129
+ protected function getUpdateCommand( $newpass ) {
130
+ $dc = new DsCommand();
131
+
132
+ if( GetGlobalData( "bEncryptPasswords" ) ) {
133
+ if( !$this->cipherer->isFieldEncrypted( $this->passwordField ) )
134
+ $newpass = Security::hashPassword( $newpass );
135
+ }
136
+
137
+ $values = array();
138
+ $values[ $this->passwordField ] = $newpass;
139
+ if( $this->token ) {
140
+ $values[ "reset_token" ] = "";
141
+ $values[ "reset_date" ] = NULL;
142
+ if( GetGlobalData( "userRequireActivation" ) ) {
143
+ $values[ GetGlobalData( "userActivationField" ) ] = "1";
144
+ }
145
+ }
146
+
147
+ $dc->values = $values;
148
+ $dc->filter = $this->getUsernameCondition();
149
+ return $dc;
150
+ }
151
+
152
+
153
+ /**
154
+ * @return Array
155
+ */
156
+ protected function getControlValues()
157
+ {
158
+ $filename_values = array();
159
+ $blobfields = array();
160
+ $values = array();
161
+ foreach( $this->changePwdFields as $fName )
162
+ {
163
+ $fControl = $this->getControl( $fName, $this->id );
164
+ $fControl->readWebValue( $values, $blobfields, NULL, NULL, $filename_values );
165
+ }
166
+
167
+ return $values;
168
+ }
169
+
170
+
171
+ /**
172
+ * @return Boolean
173
+ */
174
+ protected function changePassword() {
175
+ // CSRF protection
176
+ if( !isPostRequest() )
177
+ return;
178
+
179
+ global $globalEvents;
180
+
181
+ $values = $this->getControlValues();
182
+
183
+ $dc = new DsCommand();
184
+ $dc->filter = $this->getUsernameCondition();
185
+ $qResult = $this->dataSource->getList( $dc );
186
+
187
+ $data = $qResult->fetchAssoc();
188
+ $row = $this->cipherer->DecryptFetchedArray( $data );
189
+
190
+ $dbOldPass = "";
191
+ if( !$row ) {
192
+ $this->message = "Invalid password";
193
+ return false;
194
+ }
195
+
196
+ $dbOldPass = $row[ $this->passwordField ];
197
+ $username = $row[ $this->usernameField ];
198
+
199
+ if( !$this->token && $this->pSet->hasOldPassField() ) {
200
+ if( !Security::verifyPassword( $values["oldpass"], $dbOldPass ) ) {
201
+ $this->message = "Invalid password";
202
+ return false;
203
+ }
204
+ }
205
+
206
+ $oldPass = $dbOldPass;
207
+
208
+ $newPass = $values["newpass"];
209
+ if( $this->pwdStrong && !checkpassword( $newPass ) ) {
210
+ $this->message = $this->getPwdStrongFailedMessage();
211
+ $this->jsSettings["tableSettings"][ $this->tName ]["msg_passwordError"] = $this->message;
212
+ return false;
213
+ }
214
+
215
+ $retval = true;
216
+ if( $globalEvents->exists("BeforeChangePassword") )
217
+ $retval = $globalEvents->BeforeChangePassword( $oldPass, $newPass, $this );
218
+
219
+ $values["newpass"] = $newPass;
220
+ if( $retval ) {
221
+ $dc = $this->getUpdateCommand( $values["newpass"] );
222
+ $this->dataSource->updateSingle( $dc, false );
223
+
224
+ if( $this->auditObj )
225
+ $this->auditObj->LogChPassword( $username );
226
+
227
+ if( $globalEvents->exists("AfterChangePassword") )
228
+ $globalEvents->AfterChangePassword( $oldPass, $values["newpass"], $this );
229
+ }
230
+
231
+ return $retval;
232
+ }
233
+
234
+ /**
235
+ * @return String
236
+ */
237
+ protected function getPwdStrongFailedMessage()
238
+ {
239
+ $msg = "";
240
+ $pwdLen = GetGlobalData("pwdLen", 0);
241
+ if($pwdLen)
242
+ {
243
+ $fmt = "Password must be at least %% characters length.";
244
+ $fmt = str_replace("%%", "".$pwdLen, $fmt);
245
+ $msg.= "<br>".$fmt;
246
+ }
247
+ $pwdUnique = GetGlobalData("pwdUnique", 0);
248
+ if($pwdUnique)
249
+ {
250
+ $fmt = "Password must contain %% unique characters.";
251
+ $fmt = str_replace("%%", "".$pwdUnique, $fmt);
252
+ $msg.= "<br>".$fmt;
253
+ }
254
+ $pwdDigits = GetGlobalData("pwdDigits", 0);
255
+ if($pwdDigits)
256
+ {
257
+ $fmt = "Password must contain %% digits or symbols.";
258
+ $fmt = str_replace("%%", "".$pwdDigits, $fmt);
259
+ $msg.= "<br>".$fmt;
260
+ }
261
+ if(GetGlobalData("pwdUpperLower", false))
262
+ {
263
+ $fmt = "Password must contain letters in upper and lower case.";
264
+ $msg.= "<br>".$fmt;
265
+ }
266
+
267
+ if($msg)
268
+ $msg = substr($msg, 4);
269
+
270
+ return $msg;
271
+ }
272
+
273
+ /**
274
+ *
275
+ */
276
+ public function process()
277
+ {
278
+ global $globalEvents;
279
+
280
+ $this->setReferer();
281
+
282
+ // Before Process event
283
+ if( $globalEvents->exists("BeforeProcessChangePwd") )
284
+ $globalEvents->BeforeProcessChangePwd( $this );
285
+
286
+ if( $this->action == "Change" ) {
287
+ $this->changedSuccess = $this->changePassword();
288
+
289
+ if( !$this->changedSuccess && $this->mode == CHANGEPASS_POPUP ) {
290
+ $returnJSON = array();
291
+ $returnJSON['success'] = false;
292
+
293
+ if( strlen( $this->message ) )
294
+ $returnJSON['message'] = $this->message;
295
+
296
+ if( !$this->isCaptchaOk )
297
+ $returnJSON['wrongCaptchaFieldName'] = $this->getCaptchaFieldName();
298
+
299
+ echo printJSON( $returnJSON );
300
+ exit();
301
+ }
302
+ }
303
+
304
+ if( !$this->changedSuccess ) {
305
+ $this->prepareEditControls();
306
+ } else {
307
+ $this->pageName = $this->pSet->getDefaultPage( $this->successPageType() );
308
+ $this->pSet = new ProjectSettings( $this->tName, $this->successPageType(), $this->pageName, $this->pageTable );
309
+
310
+ $this->pageData["buttons"] = array_merge( $this->pageData["buttons"], $this->pSet->buttons() );
311
+ foreach( $this->pSet->buttons() as $b ) {
312
+ $this->AddJSFile( "include/button_".$b.".js" );
313
+ }
314
+ }
315
+
316
+ $this->addCommonJs();
317
+ $this->fillSetCntrlMaps();
318
+ $this->addButtonHandlers();
319
+ $this->doCommonAssignments();
320
+
321
+ $this->showPage();
322
+ }
323
+
324
+ /**
325
+ * @param Boolean logged
326
+ */
327
+ protected function reportChangeStatus( $changed )
328
+ {
329
+ $returnJSON = array();
330
+
331
+ $returnJSON["message"] = $this->message;
332
+ $returnJSON["success"] = true;
333
+
334
+ echo printJSON( $returnJSON );
335
+ exit();
336
+ }
337
+
338
+ /**
339
+ *
340
+ */
341
+ protected function prepareEditControls()
342
+ {
343
+ foreach($this->changePwdFields as $fName)
344
+ {
345
+ $parameters = array();
346
+ $parameters["id"] = $this->id;
347
+ $parameters["mode"] = "add";
348
+ $parameters["field"] = $fName;
349
+ $parameters["format"] = "Password";
350
+ $parameters["pageObj"] = $this;
351
+ $parameters["suggest"] = true;
352
+ $parameters["validate"] = array('basicValidate' => array('IsRequired'));
353
+
354
+ $parameters["extraParams"] = array();
355
+ $parameters["extraParams"]["getConrirmFieldCtrl"] = true;
356
+
357
+ $controls = array('controls' => array());
358
+ $controls["controls"]['id'] = $this->id;
359
+ $controls["controls"]['mode'] = "add";
360
+ $controls["controls"]['ctrlInd'] = 0;
361
+ $controls["controls"]['fieldName'] = $fName;
362
+ $controls["controls"]['suggest'] = $parameters["suggest"];
363
+
364
+ $this->xt->assign_function( $fName."_editcontrol", "xt_buildeditcontrol", $parameters );
365
+ $this->xt->assign($fName."_label", true);
366
+
367
+ $this->xt->assign("labelfor_" . goodFieldName($fName), "value_".$fName."_".$this->id);
368
+
369
+ if( $this->is508 )
370
+ $this->xt->assign_section($fName."_label", "<label for=\"value_".$fName."_".$this->id."\">", "</label>");
371
+
372
+ $this->xt->assign($fName."_block", true);
373
+
374
+ $this->fillControlsMap($controls);
375
+ }
376
+ }
377
+
378
+ /**
379
+ *
380
+ */
381
+ protected function assignBody()
382
+ {
383
+ $this->body["begin"] .= GetBaseScriptsForPage(false);
384
+ $this->body["end"] = XTempl::create_method_assignment( "assignBodyEnd", $this );
385
+
386
+ $this->xt->assignbyref("body", $this->body);
387
+ }
388
+
389
+ /**
390
+ *
391
+ */
392
+ protected function doCommonAssignments()
393
+ {
394
+ $this->xt->assign("submit_attrs", "id=\"saveButton".$this->id."\"");
395
+
396
+ if( $this->mode == CHANGEPASS_POPUP ) {
397
+ $this->hideItemType("changepwd_back");
398
+ if( $this->changedSuccess )
399
+ $this->xt->assign("backlink_attrs", "id=\"backButton".$this->id."\"");
400
+ } else {
401
+ $this->xt->assign("backlink_attrs", "href=\"". runner_htmlspecialchars( $_SESSION["changepwd_referer"] )."\"");
402
+ }
403
+
404
+ $this->xt->assign("message_block", true);
405
+ if( $this->message ) {
406
+ $this->xt->assign("message_class", "alert-danger" );
407
+ $this->xt->assign("message", $this->message);
408
+ } else {
409
+ $this->hideElement("message");
410
+ }
411
+
412
+ $this->assignBody();
413
+ }
414
+
415
+ /**
416
+ *
417
+ */
418
+ protected function showPage() {
419
+ global $globalEvents;
420
+
421
+ if( $this->changedSuccess )
422
+ $this->switchToSuccessPage();
423
+
424
+ $templatefile = $this->templatefile;
425
+
426
+ if( $globalEvents->exists("BeforeShowChangePwd") )
427
+ $globalEvents->BeforeShowChangePwd( $this->xt, $templatefile, $this );
428
+
429
+ if( $this->mode == CHANGEPASS_POPUP )
430
+ {
431
+ $this->xt->assign("footer", false);
432
+ $this->xt->assign("header", false);
433
+ $this->xt->assign("body", $this->body);
434
+
435
+ $this->displayAJAX( $templatefile, $this->id + 1 );
436
+ exit();
437
+ }
438
+
439
+ $this->display( $templatefile );
440
+ }
441
+
442
+ /**
443
+ * @return String
444
+ */
445
+ public static function readActionFromRequest()
446
+ {
447
+ if( @$_POST["btnSubmit"] )
448
+ return @$_POST["btnSubmit"];
449
+
450
+ return "";
451
+ }
452
+
453
+ /**
454
+ * @return Boolean
455
+ */
456
+ protected function checkToken()
457
+ {
458
+ if( !$this->token )
459
+ return true;
460
+
461
+ $dc = new DsCommand();
462
+ $dc->filter = $this->getTokenCondition();
463
+ $qResult = $this->dataSource->getList( $dc );
464
+
465
+ $data = $this->cipherer->DecryptFetchedArray( $qResult->fetchAssoc() );
466
+ if( $data )
467
+ return secondsPassedFrom( $data["reset_date"] ) < 86400;
468
+
469
+ return false;
470
+ }
471
+
472
+ /**
473
+ * @return Number
474
+ */
475
+ public static function readModeFromRequest()
476
+ {
477
+ if( postvalue("mode") == "popup" )
478
+ return CHANGEPASS_POPUP;
479
+
480
+ return CHANGEPASS_SIMPLE;
481
+ }
482
+
483
+ function element2Item( $name ) {
484
+ if( $name == "message" ) {
485
+ return array( "changepwd_message" );
486
+ }
487
+ return parent::element2Item( $name );
488
+ }
489
+ }
490
+ ?>
php/classes/charts.php CHANGED
@@ -378,73 +378,21 @@ class Chart
378
  if( !$this->webchart )
379
  return true;
380
 
381
- if("public.kbarticles" == $this->chrt_array['tables'][0])
382
  return true;
383
- if("public.kbcategories" == $this->chrt_array['tables'][0])
384
  return true;
385
- if("public.kbcomments" == $this->chrt_array['tables'][0])
386
  return true;
387
- if("public.kbusers" == $this->chrt_array['tables'][0])
388
  return true;
389
- if("public.kbarticles" == $this->chrt_array['tables'][0])
390
  return true;
391
- if("public.faicons" == $this->chrt_array['tables'][0])
392
  return true;
393
- if("public.kbcomments" == $this->chrt_array['tables'][0])
394
  return true;
395
- if("public.fasis_chat_history" == $this->chrt_array['tables'][0])
396
- return true;
397
- if("public.products" == $this->chrt_array['tables'][0])
398
- return true;
399
- if("public.items" == $this->chrt_array['tables'][0])
400
- return true;
401
- if("public.appointments" == $this->chrt_array['tables'][0])
402
- return true;
403
- if("public.chat_history" == $this->chrt_array['tables'][0])
404
- return true;
405
- if("public.chat_users" == $this->chrt_array['tables'][0])
406
- return true;
407
- if("public.chat_settings" == $this->chrt_array['tables'][0])
408
- return true;
409
- if("public.chat_files" == $this->chrt_array['tables'][0])
410
- return true;
411
- if("public.chat_groups" == $this->chrt_array['tables'][0])
412
- return true;
413
- if("public.chat_peopletype" == $this->chrt_array['tables'][0])
414
- return true;
415
- if("public.chat_timezone" == $this->chrt_array['tables'][0])
416
- return true;
417
- if("public.chat_files" == $this->chrt_array['tables'][0])
418
- return true;
419
- if("public.chat_groups" == $this->chrt_array['tables'][0])
420
- return true;
421
- if("public.chat_history" == $this->chrt_array['tables'][0])
422
- return true;
423
- if("public.chat_peopletype" == $this->chrt_array['tables'][0])
424
- return true;
425
- if("public.chat_settings" == $this->chrt_array['tables'][0])
426
- return true;
427
- if("public.identity" == $this->chrt_array['tables'][0])
428
- return true;
429
- if("public.dataset_info" == $this->chrt_array['tables'][0])
430
- return true;
431
- if("public.KnowledgeBase1ugrights" == $this->chrt_array['tables'][0])
432
- return true;
433
- if("public.KnowledgeBase1ugmembers" == $this->chrt_array['tables'][0])
434
- return true;
435
- if("public.kbusers" == $this->chrt_array['tables'][0])
436
- return true;
437
- if("public.history" == $this->chrt_array['tables'][0])
438
- return true;
439
- if("public.zendesk__dataszz" == $this->chrt_array['tables'][0])
440
- return true;
441
- if("public.view_zendesk" == $this->chrt_array['tables'][0])
442
- return true;
443
- if("public.prompts" == $this->chrt_array['tables'][0])
444
- return true;
445
- if("public.view_faisis_chat_history" == $this->chrt_array['tables'][0])
446
- return true;
447
- if("public.server_setting" == $this->chrt_array['tables'][0])
448
  return true;
449
  return false;
450
  }
 
378
  if( !$this->webchart )
379
  return true;
380
 
381
+ if("chat_history" == $this->chrt_array['tables'][0])
382
  return true;
383
+ if("chat_users" == $this->chrt_array['tables'][0])
384
  return true;
385
+ if("chat_settings" == $this->chrt_array['tables'][0])
386
  return true;
387
+ if("chat_files" == $this->chrt_array['tables'][0])
388
  return true;
389
+ if("chat_groups" == $this->chrt_array['tables'][0])
390
  return true;
391
+ if("chat_peopletype" == $this->chrt_array['tables'][0])
392
  return true;
393
+ if("chat_timezone" == $this->chrt_array['tables'][0])
394
  return true;
395
+ if("chat126_users1" == $this->chrt_array['tables'][0])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
396
  return true;
397
  return false;
398
  }
php/classes/cipherer.php CHANGED
@@ -333,7 +333,7 @@ class RunnerCipherer
333
  public static function getForLogin( $loginSet = null )
334
  {
335
  if( !!Security::loginTable() ) {
336
- return new RunnerCipherer( "public.kbusers", $loginSet);
337
  }
338
  return new RunnerCipherer( GLOBAL_PAGES, null);
339
  }
 
333
  public static function getForLogin( $loginSet = null )
334
  {
335
  if( !!Security::loginTable() ) {
336
+ return new RunnerCipherer( "chat126_users1", $loginSet);
337
  }
338
  return new RunnerCipherer( GLOBAL_PAGES, null);
339
  }
php/classes/db.php CHANGED
@@ -352,40 +352,16 @@ class DB
352
  if( isset($dalTables[ $conn->connId ]) )
353
  return;
354
  $dalTables[ $conn->connId ] = array();
355
- if( "KnowledgeBase2_at_localhost" == $conn->connId )
356
  {
357
- $dalTables[$conn->connId][] = array("name" => "appointments", "varname" => "KnowledgeBase2_at_localhost_public_appointments", "altvarname" => "appointments", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
358
- $dalTables[$conn->connId][] = array("name" => "chat_files", "varname" => "KnowledgeBase2_at_localhost_public_chat_files", "altvarname" => "chat_files", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
359
- $dalTables[$conn->connId][] = array("name" => "chat_groups", "varname" => "KnowledgeBase2_at_localhost_public_chat_groups", "altvarname" => "chat_groups", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
360
- $dalTables[$conn->connId][] = array("name" => "chat_history", "varname" => "KnowledgeBase2_at_localhost_public_chat_history", "altvarname" => "chat_history", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
361
- $dalTables[$conn->connId][] = array("name" => "chat_peopletype", "varname" => "KnowledgeBase2_at_localhost_public_chat_peopletype", "altvarname" => "chat_peopletype", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
362
- $dalTables[$conn->connId][] = array("name" => "chat_settings", "varname" => "KnowledgeBase2_at_localhost_public_chat_settings", "altvarname" => "chat_settings", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
363
- $dalTables[$conn->connId][] = array("name" => "chat_timezone", "varname" => "KnowledgeBase2_at_localhost_public_chat_timezone", "altvarname" => "chat_timezone", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
364
- $dalTables[$conn->connId][] = array("name" => "chat_users", "varname" => "KnowledgeBase2_at_localhost_public_chat_users", "altvarname" => "chat_users", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
365
- $dalTables[$conn->connId][] = array("name" => "dataset_info", "varname" => "KnowledgeBase2_at_localhost_public_dataset_info", "altvarname" => "dataset_info", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
366
- $dalTables[$conn->connId][] = array("name" => "faicons", "varname" => "KnowledgeBase2_at_localhost_public_faicons", "altvarname" => "faicons", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
367
- $dalTables[$conn->connId][] = array("name" => "fasis_chat_history", "varname" => "KnowledgeBase2_at_localhost_public_fasis_chat_history", "altvarname" => "fasis_chat_history", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
368
- $dalTables[$conn->connId][] = array("name" => "history", "varname" => "KnowledgeBase2_at_localhost_public_history", "altvarname" => "history", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
369
- $dalTables[$conn->connId][] = array("name" => "identity", "varname" => "KnowledgeBase2_at_localhost_public_identity", "altvarname" => "identity", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
370
- $dalTables[$conn->connId][] = array("name" => "items", "varname" => "KnowledgeBase2_at_localhost_public_items", "altvarname" => "items", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
371
- $dalTables[$conn->connId][] = array("name" => "kbarticles", "varname" => "KnowledgeBase2_at_localhost_public_kbarticles", "altvarname" => "kbarticles", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
372
- $dalTables[$conn->connId][] = array("name" => "kbcategories", "varname" => "KnowledgeBase2_at_localhost_public_kbcategories", "altvarname" => "kbcategories", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
373
- $dalTables[$conn->connId][] = array("name" => "kbcomments", "varname" => "KnowledgeBase2_at_localhost_public_kbcomments", "altvarname" => "kbcomments", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
374
- $dalTables[$conn->connId][] = array("name" => "kbusers", "varname" => "KnowledgeBase2_at_localhost_public_kbusers", "altvarname" => "kbusers", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
375
- $dalTables[$conn->connId][] = array("name" => "knowledgebase1_audit", "varname" => "KnowledgeBase2_at_localhost_public_knowledgebase1_audit", "altvarname" => "knowledgebase1_audit", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
376
- $dalTables[$conn->connId][] = array("name" => "KnowledgeBase1uggroups", "varname" => "KnowledgeBase2_at_localhost_public_KnowledgeBase1uggroups", "altvarname" => "KnowledgeBase1uggroups", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
377
- $dalTables[$conn->connId][] = array("name" => "KnowledgeBase1ugmembers", "varname" => "KnowledgeBase2_at_localhost_public_KnowledgeBase1ugmembers", "altvarname" => "KnowledgeBase1ugmembers", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
378
- $dalTables[$conn->connId][] = array("name" => "KnowledgeBase1ugrights", "varname" => "KnowledgeBase2_at_localhost_public_KnowledgeBase1ugrights", "altvarname" => "KnowledgeBase1ugrights", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
379
- $dalTables[$conn->connId][] = array("name" => "noti", "varname" => "KnowledgeBase2_at_localhost_public_noti", "altvarname" => "noti", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
380
- $dalTables[$conn->connId][] = array("name" => "products", "varname" => "KnowledgeBase2_at_localhost_public_products", "altvarname" => "products", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
381
- $dalTables[$conn->connId][] = array("name" => "prompts", "varname" => "KnowledgeBase2_at_localhost_public_prompts", "altvarname" => "prompts", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
382
- $dalTables[$conn->connId][] = array("name" => "server_setting", "varname" => "KnowledgeBase2_at_localhost_public_server_setting", "altvarname" => "server_setting", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
383
- $dalTables[$conn->connId][] = array("name" => "view_faisis_chat_history", "varname" => "KnowledgeBase2_at_localhost_public_view_faisis_chat_history", "altvarname" => "view_faisis_chat_history", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
384
- $dalTables[$conn->connId][] = array("name" => "view_zendesk", "varname" => "KnowledgeBase2_at_localhost_public_view_zendesk", "altvarname" => "view_zendesk", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
385
- $dalTables[$conn->connId][] = array("name" => "webreport_admin", "varname" => "KnowledgeBase2_at_localhost_public_webreport_admin", "altvarname" => "webreport_admin", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
386
- $dalTables[$conn->connId][] = array("name" => "webreport_style", "varname" => "KnowledgeBase2_at_localhost_public_webreport_style", "altvarname" => "webreport_style", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
387
- $dalTables[$conn->connId][] = array("name" => "webreports", "varname" => "KnowledgeBase2_at_localhost_public_webreports", "altvarname" => "webreports", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
388
- $dalTables[$conn->connId][] = array("name" => "zendesk__dataszz", "varname" => "KnowledgeBase2_at_localhost_public_zendesk__dataszz", "altvarname" => "zendesk__dataszz", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
389
  }
390
  }
391
 
 
352
  if( isset($dalTables[ $conn->connId ]) )
353
  return;
354
  $dalTables[ $conn->connId ] = array();
355
+ if( "chats_at_localhost" == $conn->connId )
356
  {
357
+ $dalTables[$conn->connId][] = array("name" => "chat126_users1", "varname" => "chats_at_localhost__chat126_users1", "altvarname" => "chat126_users1", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
358
+ $dalTables[$conn->connId][] = array("name" => "chat_files", "varname" => "chats_at_localhost__chat_files", "altvarname" => "chat_files", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
359
+ $dalTables[$conn->connId][] = array("name" => "chat_groups", "varname" => "chats_at_localhost__chat_groups", "altvarname" => "chat_groups", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
360
+ $dalTables[$conn->connId][] = array("name" => "chat_history", "varname" => "chats_at_localhost__chat_history", "altvarname" => "chat_history", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
361
+ $dalTables[$conn->connId][] = array("name" => "chat_peopletype", "varname" => "chats_at_localhost__chat_peopletype", "altvarname" => "chat_peopletype", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
362
+ $dalTables[$conn->connId][] = array("name" => "chat_settings", "varname" => "chats_at_localhost__chat_settings", "altvarname" => "chat_settings", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
363
+ $dalTables[$conn->connId][] = array("name" => "chat_timezone", "varname" => "chats_at_localhost__chat_timezone", "altvarname" => "chat_timezone", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
364
+ $dalTables[$conn->connId][] = array("name" => "chat_users", "varname" => "chats_at_localhost__chat_users", "altvarname" => "chat_users", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
365
  }
366
  }
367
 
php/classes/listpage.php CHANGED
@@ -744,7 +744,7 @@ class ListPage extends RunnerPage
744
  // TODO - delete plugin user
745
  $dc = new DsCommand();
746
  $dc->filter = DataCondition::FieldEquals(
747
- "UserName",
748
  $user,
749
  0,
750
  Security::caseInsensitiveUsername() ? dsCASE_INSENSITIVE : dsCASE_STRICT
 
744
  // TODO - delete plugin user
745
  $dc = new DsCommand();
746
  $dc->filter = DataCondition::FieldEquals(
747
+ "",
748
  $user,
749
  0,
750
  Security::caseInsensitiveUsername() ? dsCASE_INSENSITIVE : dsCASE_STRICT
php/classes/memberspage.php CHANGED
@@ -257,16 +257,16 @@ class MembersPage extends ListPage_Simple
257
  $dc = new DsCommand();
258
 
259
  $dc->order = array();
260
- $dc->order[] = array( "column" => "UserName" );
261
- $dc->order[] = array( "column" => "GroupID" );
262
 
263
  // ugmembers username field may contains username or security plugin user id value
264
  $qResult = $dataSource->getList( $dc );
265
  while( $tdata = $qResult->fetchAssoc() ) {
266
- $provider = $tdata["Provider"];
267
  $this->members[] = array(
268
- "userId" => $tdata["UserName"],
269
- "groupId" => $tdata["GroupID"],
270
  "provider" => $provider
271
  );
272
  }
@@ -280,9 +280,9 @@ class MembersPage extends ListPage_Simple
280
  $this->groups[] = array(-1, "<"."Admin".">");
281
  $this->groupFullChecked[] = true;
282
 
283
- $groupIdField = "GroupID";
284
- $groupLabelField = "Label";
285
- $groupProviderField = "Provider";
286
 
287
  $dataSource = Security::getUgGroupsDatasource();
288
  $dc = new DsCommand();
@@ -418,22 +418,22 @@ class MembersPage extends ListPage_Simple
418
  if( $state == 1 ) {
419
  $dcInsert = new DsCommand();
420
  // update
421
- $dcInsert->values = array( "UserName" => $user, "GroupID" => $group );
422
  if( $provider != $dbProvider["code"] ) {
423
- $dcInsert->values[ "Provider" ] = $provider;
424
  }
425
  $dataSource->insertSingle( $dcInsert );
426
  } else {
427
  // delete
428
  $dcDelete = new DsCommand();
429
  $conditions = array(
430
- DataCondition::FieldEquals( "GroupID", $group ),
431
- DataCondition::FieldEquals( "UserName", $user, 0, Security::caseInsensitiveUsername() ? dsCASE_INSENSITIVE : dsCASE_STRICT )
432
  );
433
  if( $provider != $dbProvider["code"] ) {
434
- $conditions[] = DataCondition::FieldEquals( "Provider", $provider );
435
  } else if( storageGet( "groups_provider_field" ) ) {
436
- $conditions[] = DataCondition::FieldIs( "Provider", dsopEMPTY, "" );
437
  }
438
  $dcDelete->filter = DataCondition::_And( $conditions );
439
 
 
257
  $dc = new DsCommand();
258
 
259
  $dc->order = array();
260
+ $dc->order[] = array( "column" => "" );
261
+ $dc->order[] = array( "column" => "" );
262
 
263
  // ugmembers username field may contains username or security plugin user id value
264
  $qResult = $dataSource->getList( $dc );
265
  while( $tdata = $qResult->fetchAssoc() ) {
266
+ $provider = $tdata[""];
267
  $this->members[] = array(
268
+ "userId" => $tdata[""],
269
+ "groupId" => $tdata[""],
270
  "provider" => $provider
271
  );
272
  }
 
280
  $this->groups[] = array(-1, "<"."Admin".">");
281
  $this->groupFullChecked[] = true;
282
 
283
+ $groupIdField = "";
284
+ $groupLabelField = "";
285
+ $groupProviderField = "";
286
 
287
  $dataSource = Security::getUgGroupsDatasource();
288
  $dc = new DsCommand();
 
418
  if( $state == 1 ) {
419
  $dcInsert = new DsCommand();
420
  // update
421
+ $dcInsert->values = array( "" => $user, "" => $group );
422
  if( $provider != $dbProvider["code"] ) {
423
+ $dcInsert->values[ "" ] = $provider;
424
  }
425
  $dataSource->insertSingle( $dcInsert );
426
  } else {
427
  // delete
428
  $dcDelete = new DsCommand();
429
  $conditions = array(
430
+ DataCondition::FieldEquals( "", $group ),
431
+ DataCondition::FieldEquals( "", $user, 0, Security::caseInsensitiveUsername() ? dsCASE_INSENSITIVE : dsCASE_STRICT )
432
  );
433
  if( $provider != $dbProvider["code"] ) {
434
+ $conditions[] = DataCondition::FieldEquals( "", $provider );
435
  } else if( storageGet( "groups_provider_field" ) ) {
436
+ $conditions[] = DataCondition::FieldIs( "", dsopEMPTY, "" );
437
  }
438
  $dcDelete->filter = DataCondition::_And( $conditions );
439
 
php/classes/memberspage_ad.php CHANGED
@@ -41,7 +41,7 @@ class MembersPage_AD extends ListPage_Lookup
41
  $dataSource = Security::getUgGroupsDatasource();
42
 
43
  if( !Security::ADonlyLogin() || storageGet( "groups_provider_field" ) ) {
44
- $dc->filter = DataCondition::FieldEquals( "Provider", $this->providerCode );
45
  }
46
 
47
  $qResult = $dataSource->getList( $dc );
@@ -49,7 +49,7 @@ class MembersPage_AD extends ListPage_Lookup
49
  $members = array();
50
  while( $tdata = $qResult->fetchAssoc() )
51
  {
52
- $members[] = $tdata[ "Label" ];
53
  }
54
 
55
  return $members;
 
41
  $dataSource = Security::getUgGroupsDatasource();
42
 
43
  if( !Security::ADonlyLogin() || storageGet( "groups_provider_field" ) ) {
44
+ $dc->filter = DataCondition::FieldEquals( "", $this->providerCode );
45
  }
46
 
47
  $qResult = $dataSource->getList( $dc );
 
49
  $members = array();
50
  while( $tdata = $qResult->fetchAssoc() )
51
  {
52
+ $members[] = $tdata[ "" ];
53
  }
54
 
55
  return $members;
php/classes/projectsettings.php CHANGED
@@ -1027,7 +1027,7 @@ class ProjectSettings
1027
  {
1028
  $connId = $this->getTableData( ".connId" );
1029
  if( $connId == "" ) {
1030
- return "KnowledgeBase2_at_localhost";
1031
  }
1032
  return $connId;
1033
  }
@@ -3002,7 +3002,7 @@ class ProjectSettings
3002
  public static function getForLogin()
3003
  {
3004
  return !!Security::dbProvider()
3005
- ? new ProjectSettings("public.kbusers", PAGE_LIST)
3006
  : null;
3007
  }
3008
 
@@ -3578,74 +3578,22 @@ function fillProjectEntites()
3578
  global $projectEntities, $projectEntitiesReverse, $tablesByGoodName, $tablesByUpperCase, $tablesByUpperGoodname;
3579
  if( count( $projectEntities ) )
3580
  return;
3581
- $projectEntities[ "kbarticles" ] = array( "url" => "kbarticles", "type" => 1 );
3582
- $projectEntitiesReverse[ "kbarticles" ] = "kbarticles";
3583
- $projectEntities[ "kbcategories" ] = array( "url" => "kbcategories", "type" => 1 );
3584
- $projectEntitiesReverse[ "kbcategories" ] = "kbcategories";
3585
- $projectEntities[ "kbcomments" ] = array( "url" => "kbcomments", "type" => 1 );
3586
- $projectEntitiesReverse[ "kbcomments" ] = "kbcomments";
3587
- $projectEntities[ "public.kbusers" ] = array( "url" => "public_kbusers", "type" => 0 );
3588
- $projectEntitiesReverse[ "public_kbusers" ] = "public.kbusers";
3589
- $projectEntities[ "main" ] = array( "url" => "main", "type" => 1 );
3590
- $projectEntitiesReverse[ "main" ] = "main";
3591
- $projectEntities[ "faicons" ] = array( "url" => "faicons", "type" => 1 );
3592
- $projectEntitiesReverse[ "faicons" ] = "faicons";
3593
- $projectEntities[ "admin_comments" ] = array( "url" => "admin_comments", "type" => 1 );
3594
- $projectEntitiesReverse[ "admin_comments" ] = "admin_comments";
3595
- $projectEntities[ "public.fasis_chat_history" ] = array( "url" => "fasis_chat_history", "type" => 0 );
3596
- $projectEntitiesReverse[ "fasis_chat_history" ] = "public.fasis_chat_history";
3597
- $projectEntities[ "public.products" ] = array( "url" => "products", "type" => 0 );
3598
- $projectEntitiesReverse[ "products" ] = "public.products";
3599
- $projectEntities[ "public.items" ] = array( "url" => "items", "type" => 0 );
3600
- $projectEntitiesReverse[ "items" ] = "public.items";
3601
- $projectEntities[ "public.appointments" ] = array( "url" => "appointments", "type" => 0 );
3602
- $projectEntitiesReverse[ "appointments" ] = "public.appointments";
3603
- $projectEntities[ "chat_history" ] = array( "url" => "chat_history", "type" => 1 );
3604
  $projectEntitiesReverse[ "chat_history" ] = "chat_history";
3605
- $projectEntities[ "chat_users" ] = array( "url" => "chat_users", "type" => 1 );
3606
  $projectEntitiesReverse[ "chat_users" ] = "chat_users";
3607
- $projectEntities[ "chat_settings" ] = array( "url" => "chat_settings", "type" => 1 );
3608
  $projectEntitiesReverse[ "chat_settings" ] = "chat_settings";
3609
- $projectEntities[ "chat_files" ] = array( "url" => "chat_files", "type" => 1 );
3610
  $projectEntitiesReverse[ "chat_files" ] = "chat_files";
3611
- $projectEntities[ "chat_groups" ] = array( "url" => "chat_groups", "type" => 1 );
3612
  $projectEntitiesReverse[ "chat_groups" ] = "chat_groups";
3613
- $projectEntities[ "chat_peopletype" ] = array( "url" => "chat_peopletype", "type" => 1 );
3614
  $projectEntitiesReverse[ "chat_peopletype" ] = "chat_peopletype";
3615
- $projectEntities[ "chat_timezone" ] = array( "url" => "chat_timezone", "type" => 1 );
3616
  $projectEntitiesReverse[ "chat_timezone" ] = "chat_timezone";
3617
- $projectEntities[ "public.chat_files" ] = array( "url" => "chat_files1", "type" => 0 );
3618
- $projectEntitiesReverse[ "chat_files1" ] = "public.chat_files";
3619
- $projectEntities[ "public.chat_groups" ] = array( "url" => "chat_groups1", "type" => 0 );
3620
- $projectEntitiesReverse[ "chat_groups1" ] = "public.chat_groups";
3621
- $projectEntities[ "public.chat_history" ] = array( "url" => "chat_history1", "type" => 0 );
3622
- $projectEntitiesReverse[ "chat_history1" ] = "public.chat_history";
3623
- $projectEntities[ "public.chat_peopletype" ] = array( "url" => "chat_peopletype1", "type" => 0 );
3624
- $projectEntitiesReverse[ "chat_peopletype1" ] = "public.chat_peopletype";
3625
- $projectEntities[ "public.chat_settings" ] = array( "url" => "chat_settings1", "type" => 0 );
3626
- $projectEntitiesReverse[ "chat_settings1" ] = "public.chat_settings";
3627
- $projectEntities[ "public.identity" ] = array( "url" => "identity", "type" => 0 );
3628
- $projectEntitiesReverse[ "identity" ] = "public.identity";
3629
- $projectEntities[ "public.dataset_info" ] = array( "url" => "dataset_info", "type" => 0 );
3630
- $projectEntitiesReverse[ "dataset_info" ] = "public.dataset_info";
3631
- $projectEntities[ "admin_rights" ] = array( "url" => "admin_rights", "type" => 1 );
3632
- $projectEntitiesReverse[ "admin_rights" ] = "admin_rights";
3633
- $projectEntities[ "admin_members" ] = array( "url" => "admin_members", "type" => 1 );
3634
- $projectEntitiesReverse[ "admin_members" ] = "admin_members";
3635
- $projectEntities[ "admin_users" ] = array( "url" => "admin_users", "type" => 1 );
3636
- $projectEntitiesReverse[ "admin_users" ] = "admin_users";
3637
- $projectEntities[ "public.history" ] = array( "url" => "history", "type" => 0 );
3638
- $projectEntitiesReverse[ "history" ] = "public.history";
3639
- $projectEntities[ "public.zendesk__dataszz" ] = array( "url" => "zendesk__dataszz", "type" => 0 );
3640
- $projectEntitiesReverse[ "zendesk__dataszz" ] = "public.zendesk__dataszz";
3641
- $projectEntities[ "public.view_zendesk" ] = array( "url" => "view_zendesk", "type" => 0 );
3642
- $projectEntitiesReverse[ "view_zendesk" ] = "public.view_zendesk";
3643
- $projectEntities[ "public.prompts" ] = array( "url" => "prompts", "type" => 0 );
3644
- $projectEntitiesReverse[ "prompts" ] = "public.prompts";
3645
- $projectEntities[ "public.view_faisis_chat_history" ] = array( "url" => "view_faisis_chat_history", "type" => 0 );
3646
- $projectEntitiesReverse[ "view_faisis_chat_history" ] = "public.view_faisis_chat_history";
3647
- $projectEntities[ "public.server_setting" ] = array( "url" => "server_setting", "type" => 0 );
3648
- $projectEntitiesReverse[ "server_setting" ] = "public.server_setting";
3649
  }
3650
 
3651
  function findTable( $table ) {
 
1027
  {
1028
  $connId = $this->getTableData( ".connId" );
1029
  if( $connId == "" ) {
1030
+ return "chats_at_localhost";
1031
  }
1032
  return $connId;
1033
  }
 
3002
  public static function getForLogin()
3003
  {
3004
  return !!Security::dbProvider()
3005
+ ? new ProjectSettings("chat126_users1", PAGE_LIST)
3006
  : null;
3007
  }
3008
 
 
3578
  global $projectEntities, $projectEntitiesReverse, $tablesByGoodName, $tablesByUpperCase, $tablesByUpperGoodname;
3579
  if( count( $projectEntities ) )
3580
  return;
3581
+ $projectEntities[ "chat_history" ] = array( "url" => "chat_history", "type" => 0 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3582
  $projectEntitiesReverse[ "chat_history" ] = "chat_history";
3583
+ $projectEntities[ "chat_users" ] = array( "url" => "chat_users", "type" => 0 );
3584
  $projectEntitiesReverse[ "chat_users" ] = "chat_users";
3585
+ $projectEntities[ "chat_settings" ] = array( "url" => "chat_settings", "type" => 0 );
3586
  $projectEntitiesReverse[ "chat_settings" ] = "chat_settings";
3587
+ $projectEntities[ "chat_files" ] = array( "url" => "chat_files", "type" => 0 );
3588
  $projectEntitiesReverse[ "chat_files" ] = "chat_files";
3589
+ $projectEntities[ "chat_groups" ] = array( "url" => "chat_groups", "type" => 0 );
3590
  $projectEntitiesReverse[ "chat_groups" ] = "chat_groups";
3591
+ $projectEntities[ "chat_peopletype" ] = array( "url" => "chat_peopletype", "type" => 0 );
3592
  $projectEntitiesReverse[ "chat_peopletype" ] = "chat_peopletype";
3593
+ $projectEntities[ "chat_timezone" ] = array( "url" => "chat_timezone", "type" => 0 );
3594
  $projectEntitiesReverse[ "chat_timezone" ] = "chat_timezone";
3595
+ $projectEntities[ "chat126_users1" ] = array( "url" => "chat126_users1", "type" => 0 );
3596
+ $projectEntitiesReverse[ "chat126_users1" ] = "chat126_users1";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3597
  }
3598
 
3599
  function findTable( $table ) {
php/classes/rightspage.php CHANGED
@@ -132,9 +132,9 @@ class RightsPage extends ListPage
132
  $this->groups[-2] = array( "label" => "<"."Default".">" );
133
  $this->groups[-3] = array( "label" => "<"."Guest".">" );
134
 
135
- $groupIdField = "GroupID";
136
- $groupLabelField = "Label";
137
- $groupProviderField = "Provider";
138
 
139
  $dataSource = Security::getUgGroupsDatasource();
140
  $dc = new DsCommand();
@@ -193,12 +193,12 @@ class RightsPage extends ListPage
193
  function getRights()
194
  {
195
  // It's expected that $this->tName is equal to 'admin_right' so the page's db connection is used #9875
196
- $sql = "select ". $this->connection->addFieldWrappers( "GroupID" )
197
- .", ". $this->connection->addFieldWrappers( "TableName" )
198
- .", ". $this->connection->addFieldWrappers( "AccessMask" )
199
- .", ". $this->connection->addFieldWrappers( "Page" )
200
- ." from ". $this->connection->addTableWrappers( "public.KnowledgeBase1ugrights" )
201
- ." order by ". $this->connection->addFieldWrappers( "GroupID" );
202
 
203
  $qResult = $this->connection->query( $sql );
204
  while( $tdata = $qResult->fetchNumeric() )
@@ -692,11 +692,11 @@ class RightsPage extends ListPage
692
  function updateTablePermissions( $table, $group, $tableRights )
693
  {
694
  $mask = $tableRights["permissions"];
695
- $rightWTableName = $this->connection->addTableWrappers( "public.KnowledgeBase1ugrights" );
696
- $accessMaskWFieldName = $this->connection->addFieldWrappers( "AccessMask" );
697
- $groupisWFieldName = $this->connection->addFieldWrappers( "GroupID" );
698
- $pageWFieldName = $this->connection->addFieldWrappers( "Page" );
699
- $tableNameWFieldName = $this->connection->addFieldWrappers( "TableName" );
700
  $groupWhere = $groupisWFieldName."=". $group
701
  ." and ". $tableNameWFieldName ."=". $this->connection->prepareString( $table );
702
 
 
132
  $this->groups[-2] = array( "label" => "<"."Default".">" );
133
  $this->groups[-3] = array( "label" => "<"."Guest".">" );
134
 
135
+ $groupIdField = "";
136
+ $groupLabelField = "";
137
+ $groupProviderField = "";
138
 
139
  $dataSource = Security::getUgGroupsDatasource();
140
  $dc = new DsCommand();
 
193
  function getRights()
194
  {
195
  // It's expected that $this->tName is equal to 'admin_right' so the page's db connection is used #9875
196
+ $sql = "select ". $this->connection->addFieldWrappers( "" )
197
+ .", ". $this->connection->addFieldWrappers( "" )
198
+ .", ". $this->connection->addFieldWrappers( "" )
199
+ .", ". $this->connection->addFieldWrappers( "" )
200
+ ." from ". $this->connection->addTableWrappers( "ugrights" )
201
+ ." order by ". $this->connection->addFieldWrappers( "" );
202
 
203
  $qResult = $this->connection->query( $sql );
204
  while( $tdata = $qResult->fetchNumeric() )
 
692
  function updateTablePermissions( $table, $group, $tableRights )
693
  {
694
  $mask = $tableRights["permissions"];
695
+ $rightWTableName = $this->connection->addTableWrappers( "ugrights" );
696
+ $accessMaskWFieldName = $this->connection->addFieldWrappers( "" );
697
+ $groupisWFieldName = $this->connection->addFieldWrappers( "" );
698
+ $pageWFieldName = $this->connection->addFieldWrappers( "" );
699
+ $tableNameWFieldName = $this->connection->addFieldWrappers( "" );
700
  $groupWhere = $groupisWFieldName."=". $group
701
  ." and ". $tableNameWFieldName ."=". $this->connection->prepareString( $table );
702
 
php/classes/security.php CHANGED
@@ -376,8 +376,8 @@ class Security
376
  global $cman;
377
  $grConnection = $cman->getForUserGroups();
378
 
379
- $sql = "select ". $grConnection->addFieldWrappers( "Label" )
380
- ." from ". $grConnection->addTableWrappers( "public.KnowledgeBase1uggroups" ) . " WHERE " . $grConnection->addFieldWrappers( "GroupID" )
381
  ." in ( " . implode( ",", array_keys( $groupIds ) ) . ")";
382
 
383
  $qResult = $grConnection->query( $sql );
@@ -1024,71 +1024,10 @@ class Security
1024
 
1025
  public static function _staticRestrictedPages( $table ) {
1026
  $group = Security::getUserGroup();
1027
- if( $group == "<Guest>" ) {
1028
- if( $table == "admin_comments" )
1029
- {
1030
- $ret = array();
1031
- $ret[ "list" ] = true;
1032
- return $ret;
1033
- }
1034
- if( $table == "faicons" )
1035
- {
1036
- $ret = array();
1037
- $ret[ "list" ] = true;
1038
- $ret[ "search" ] = true;
1039
- $ret[ "view" ] = true;
1040
- return $ret;
1041
- }
1042
- if( $table == "kbcomments" )
1043
- {
1044
- $ret = array();
1045
- $ret[ "list_admin" ] = true;
1046
- return $ret;
1047
- }
1048
- return array();
1049
- }
1050
  if( $group == "admin" ) {
1051
  return array();
1052
  }
1053
  // default permissions
1054
- if( $table == "admin_comments" )
1055
- {
1056
- $ret = array();
1057
- $ret[ "list" ] = true;
1058
- return $ret;
1059
- }
1060
- if( $table == "faicons" )
1061
- {
1062
- $ret = array();
1063
- $ret[ "add" ] = true;
1064
- $ret[ "edit" ] = true;
1065
- $ret[ "export" ] = true;
1066
- $ret[ "import" ] = true;
1067
- $ret[ "list" ] = true;
1068
- $ret[ "print" ] = true;
1069
- $ret[ "search" ] = true;
1070
- $ret[ "view" ] = true;
1071
- return $ret;
1072
- }
1073
- if( $table == "kbcomments" )
1074
- {
1075
- $ret = array();
1076
- $ret[ "list_admin" ] = true;
1077
- return $ret;
1078
- }
1079
- if( $table == "public.fasis_chat_history" )
1080
- {
1081
- $ret = array();
1082
- $ret[ "add" ] = true;
1083
- $ret[ "edit" ] = true;
1084
- $ret[ "export" ] = true;
1085
- $ret[ "import" ] = true;
1086
- $ret[ "list" ] = true;
1087
- $ret[ "print" ] = true;
1088
- $ret[ "search" ] = true;
1089
- $ret[ "view" ] = true;
1090
- return $ret;
1091
- }
1092
  return array();
1093
  }
1094
 
@@ -1246,7 +1185,7 @@ class Security
1246
  return null;
1247
  }
1248
  global $cman;
1249
- return getDbTableDataSource( "public.KnowledgeBase1ugmembers", $cman->getUserGroupsConnId() );
1250
  }
1251
 
1252
  /**
@@ -1258,7 +1197,7 @@ class Security
1258
  return null;
1259
  }
1260
  global $cman;
1261
- return getDbTableDataSource( "public.KnowledgeBase1uggroups", $cman->getUserGroupsConnId() );
1262
  }
1263
 
1264
  /**
@@ -1270,7 +1209,7 @@ class Security
1270
  return null;
1271
  }
1272
  global $cman;
1273
- return getDbTableDataSource( "public.KnowledgeBase1ugrights", $cman->getUserGroupsConnId() );
1274
  }
1275
 
1276
 
@@ -1536,11 +1475,7 @@ class Security
1536
  }
1537
  if( $securityType == stAD && !$provider["useDbGroups"] ) {
1538
  $userId = Security::getUserName();
1539
- storageSet( "OwnerID", $userId );
1540
- storageSet( "_kbcomments_OwnerID", $userId );
1541
  } else {
1542
- storageSet( "OwnerID", $data["username"] );
1543
- storageSet( "_kbcomments_OwnerID", $data["username"] );
1544
  }
1545
  }
1546
 
@@ -1650,9 +1585,9 @@ class Security
1650
  $qResult = $dataSource->getList( $dc );
1651
 
1652
  $groups = array();
1653
- $providerField = "Provider";
1654
  while( $data = $qResult->fetchAssoc() ) {
1655
- $groups[] = $data["GroupID"];
1656
  }
1657
  storageSet( "members_provider_field", $qResult->fieldExists( $providerField ) );
1658
  return $groups;
@@ -1667,7 +1602,7 @@ class Security
1667
  }
1668
  $dc = new DsCommand();
1669
  $usernameFilter = DataCondition::FieldEquals(
1670
- "UserName",
1671
  $userId,
1672
  0,
1673
  Security::caseInsensitiveUsername() ? dsCASE_INSENSITIVE : dsCASE_STRICT);
@@ -1677,7 +1612,7 @@ class Security
1677
  $dc->filter = $usernameFilter;
1678
  } else {
1679
  $providerFilter = DataCondition::FieldEquals(
1680
- "Provider",
1681
  $provider["code"],
1682
  0 );
1683
  $dc->filter = DataCondition::_And( array( $usernameFilter, $providerFilter ) );
@@ -1704,11 +1639,11 @@ class Security
1704
  // prepare command
1705
  $dataSource = Security::getUgGroupsDatasource();
1706
 
1707
- $providerField = "Provider";
1708
 
1709
  $dc = new DsCommand();
1710
  $dc->filter = DataCondition::FieldInList(
1711
- "Label",
1712
  $userGroups,
1713
  Security::caseInsensitiveUsername() ? dsCASE_INSENSITIVE : dsCASE_STRICT);
1714
 
@@ -1722,7 +1657,7 @@ class Security
1722
  if( $verifyProvider && $data[ $providerField ] != $provider["code"] ) {
1723
  continue;
1724
  }
1725
- $groups[] = $data["GroupID"];
1726
  }
1727
  return $groups;
1728
  }
@@ -1793,10 +1728,10 @@ class Security
1793
  $dc = new DsCommand();
1794
  $dc->filter = DataCondition::_And( array(
1795
  DataCondition::FieldInList(
1796
- "GroupID",
1797
  $groups ),
1798
  DataCondition::_Not(
1799
- DataCondition::FieldIs( "AccessMask", dsopEMPTY, "" )
1800
  )
1801
  ));
1802
  $dataSource = Security::getUgRightsDatasource();
@@ -1867,10 +1802,10 @@ class Security
1867
  // read table permissions
1868
  while( $data = $qResult->fetchAssoc() )
1869
  {
1870
- $table = $data[ "TableName" ];
1871
- $mask = $data[ "AccessMask" ];
1872
- $group = $data[ "GroupID" ];
1873
- $restrictedPages = my_json_decode( $data[ "Page" ] );
1874
  if( !is_array( $restrictedPages )) {
1875
  $restrictedPages = array();
1876
  }
@@ -1911,35 +1846,6 @@ class Security
1911
  }
1912
 
1913
  public static function guestHasStaticPermissions() {
1914
- return true;
1915
- return true;
1916
- return true;
1917
- return true;
1918
- return true;
1919
- return true;
1920
- return true;
1921
- return true;
1922
- return true;
1923
- return true;
1924
- return true;
1925
- return true;
1926
- return true;
1927
- return true;
1928
- return true;
1929
- return true;
1930
- return true;
1931
- return true;
1932
- return true;
1933
- return true;
1934
- return true;
1935
- return true;
1936
- return true;
1937
- return true;
1938
- return true;
1939
- return true;
1940
- return true;
1941
- return true;
1942
- return true;
1943
  return false;
1944
  }
1945
 
@@ -1950,7 +1856,7 @@ class Security
1950
  // the database may have irrelevant records
1951
  $tables =& GetTablesListWithoutSecurity();
1952
  while( $data = $result->fetchAssoc() ) {
1953
- if( in_array( $data[ "TableName" ], $tables ) ) {
1954
  return true;
1955
  }
1956
  }
 
376
  global $cman;
377
  $grConnection = $cman->getForUserGroups();
378
 
379
+ $sql = "select ". $grConnection->addFieldWrappers( "" )
380
+ ." from ". $grConnection->addTableWrappers( "uggroups" ) . " WHERE " . $grConnection->addFieldWrappers( "" )
381
  ." in ( " . implode( ",", array_keys( $groupIds ) ) . ")";
382
 
383
  $qResult = $grConnection->query( $sql );
 
1024
 
1025
  public static function _staticRestrictedPages( $table ) {
1026
  $group = Security::getUserGroup();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1027
  if( $group == "admin" ) {
1028
  return array();
1029
  }
1030
  // default permissions
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1031
  return array();
1032
  }
1033
 
 
1185
  return null;
1186
  }
1187
  global $cman;
1188
+ return getDbTableDataSource( "ugmembers", $cman->getUserGroupsConnId() );
1189
  }
1190
 
1191
  /**
 
1197
  return null;
1198
  }
1199
  global $cman;
1200
+ return getDbTableDataSource( "uggroups", $cman->getUserGroupsConnId() );
1201
  }
1202
 
1203
  /**
 
1209
  return null;
1210
  }
1211
  global $cman;
1212
+ return getDbTableDataSource( "ugrights", $cman->getUserGroupsConnId() );
1213
  }
1214
 
1215
 
 
1475
  }
1476
  if( $securityType == stAD && !$provider["useDbGroups"] ) {
1477
  $userId = Security::getUserName();
 
 
1478
  } else {
 
 
1479
  }
1480
  }
1481
 
 
1585
  $qResult = $dataSource->getList( $dc );
1586
 
1587
  $groups = array();
1588
+ $providerField = "";
1589
  while( $data = $qResult->fetchAssoc() ) {
1590
+ $groups[] = $data[""];
1591
  }
1592
  storageSet( "members_provider_field", $qResult->fieldExists( $providerField ) );
1593
  return $groups;
 
1602
  }
1603
  $dc = new DsCommand();
1604
  $usernameFilter = DataCondition::FieldEquals(
1605
+ "",
1606
  $userId,
1607
  0,
1608
  Security::caseInsensitiveUsername() ? dsCASE_INSENSITIVE : dsCASE_STRICT);
 
1612
  $dc->filter = $usernameFilter;
1613
  } else {
1614
  $providerFilter = DataCondition::FieldEquals(
1615
+ "",
1616
  $provider["code"],
1617
  0 );
1618
  $dc->filter = DataCondition::_And( array( $usernameFilter, $providerFilter ) );
 
1639
  // prepare command
1640
  $dataSource = Security::getUgGroupsDatasource();
1641
 
1642
+ $providerField = "";
1643
 
1644
  $dc = new DsCommand();
1645
  $dc->filter = DataCondition::FieldInList(
1646
+ "",
1647
  $userGroups,
1648
  Security::caseInsensitiveUsername() ? dsCASE_INSENSITIVE : dsCASE_STRICT);
1649
 
 
1657
  if( $verifyProvider && $data[ $providerField ] != $provider["code"] ) {
1658
  continue;
1659
  }
1660
+ $groups[] = $data[""];
1661
  }
1662
  return $groups;
1663
  }
 
1728
  $dc = new DsCommand();
1729
  $dc->filter = DataCondition::_And( array(
1730
  DataCondition::FieldInList(
1731
+ "",
1732
  $groups ),
1733
  DataCondition::_Not(
1734
+ DataCondition::FieldIs( "", dsopEMPTY, "" )
1735
  )
1736
  ));
1737
  $dataSource = Security::getUgRightsDatasource();
 
1802
  // read table permissions
1803
  while( $data = $qResult->fetchAssoc() )
1804
  {
1805
+ $table = $data[ "" ];
1806
+ $mask = $data[ "" ];
1807
+ $group = $data[ "" ];
1808
+ $restrictedPages = my_json_decode( $data[ "" ] );
1809
  if( !is_array( $restrictedPages )) {
1810
  $restrictedPages = array();
1811
  }
 
1846
  }
1847
 
1848
  public static function guestHasStaticPermissions() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1849
  return false;
1850
  }
1851
 
 
1856
  // the database may have irrelevant records
1857
  $tables =& GetTablesListWithoutSecurity();
1858
  while( $data = $result->fetchAssoc() ) {
1859
+ if( in_array( $data[ "" ], $tables ) ) {
1860
  return true;
1861
  }
1862
  }
php/classes/security/ad.php CHANGED
@@ -338,7 +338,7 @@ class SecurityPluginAd extends SecurityPlugin {
338
  $qResult = $dataSource->getList( new DsCommand() );
339
  while( $tdata = $qResult->fetchAssoc() )
340
  {
341
- $dbgroups[ $tdata[ "Label" ] ] = true;
342
  }
343
 
344
  $filter = "(member:1.2.840.113556.1.4.1941:=". $distinguishedName .")";
 
338
  $qResult = $dataSource->getList( new DsCommand() );
339
  while( $tdata = $qResult->fetchAssoc() )
340
  {
341
+ $dbgroups[ $tdata[ "" ] ] = true;
342
  }
343
 
344
  $filter = "(member:1.2.840.113556.1.4.1941:=". $distinguishedName .")";
php/connections/ConnectionManager.php CHANGED
@@ -119,78 +119,41 @@ class ConnectionManager extends ConnectionManager_Base
119
  $connectionsData = array();
120
 
121
  $data = array();
122
- $data["dbType"] = 4;
123
- $data["connId"] = "KnowledgeBase2_at_localhost";
124
- $data["connName"] = "KnowledgeBase2 at localhost";
125
- $data["connStringType"] = "postgre";
126
- $postgre_url = getenv("postgre_url");
127
- $data["connectionString"] = $postgre_url; //currently unused
128
 
129
- $this->_connectionsIdByName["KnowledgeBase2 at localhost"] = "KnowledgeBase2_at_localhost";
130
 
131
  $data["connInfo"] = array();
132
- $data["ODBCUID"] = "";
133
- $data["ODBCPWD"] = "";
134
- $data["leftWrap"] = "\"";
135
- $data["rightWrap"] = "\"";
136
 
137
  $data["DBPath"] = "db"; //currently unused
138
  $data["useServerMapPath"] = 1; //currently unused
139
 
140
- $host="ep-odd-mode-93794521.us-east-2.aws.neon.tech";
141
- $user="miyataken999";
142
- $password="yz1wPf4KrWTm";
143
- $options="options=endpoint=ep-odd-mode-93794521 port=5432";
144
- $dbname="neondb";
145
- $data["connInfo"][0] = $host;
146
- $data["connInfo"][1] = $user;
147
- $data["connInfo"][2] = $password;
148
- $data["connInfo"][3] = $options;
149
- $data["connInfo"][4] = $dbname;
150
- ;
151
  // encription set
152
  $data["EncryptInfo"] = array();
153
  $data["EncryptInfo"]["mode"] = 0;
154
  $data["EncryptInfo"]["alg"] = 128;
155
  $data["EncryptInfo"]["key"] = "";
156
 
157
- $connectionsData["KnowledgeBase2_at_localhost"] = $data;
158
- $data = array();
159
- $data["dbType"] = 4;
160
- $data["connId"] = "neondbatuseast2awsneontech";
161
- $data["connName"] = "neondb at us-east-2.aws.neon.t";
162
- $data["connStringType"] = "postgre";
163
- $data["connectionString"] = $postgre_url; //currently unused
164
-
165
- $this->_connectionsIdByName["neondb at us-east-2.aws.neon.t"] = "neondbatuseast2awsneontech";
166
-
167
- $data["connInfo"] = array();
168
- $data["ODBCUID"] = "";
169
- $data["ODBCPWD"] = "";
170
- $data["leftWrap"] = "\"";
171
- $data["rightWrap"] = "\"";
172
-
173
- $data["DBPath"] = "db"; //currently unused
174
- $data["useServerMapPath"] = 1; //currently unused
175
-
176
- $host="ep-odd-mode-93794521.us-east-2.aws.neon.tech";
177
- $user="miyataken999";
178
- $password="yz1wPf4KrWTm";
179
- $options="options=endpoint=ep-odd-mode-93794521 port=5432";
180
- $dbname="neondb";
181
- $data["connInfo"][0] = $host;
182
- $data["connInfo"][1] = $user;
183
- $data["connInfo"][2] = $password;
184
- $data["connInfo"][3] = $options;
185
- $data["connInfo"][4] = $dbname;
186
- ;
187
- // encription set
188
- $data["EncryptInfo"] = array();
189
- $data["EncryptInfo"]["mode"] = 0;
190
- $data["EncryptInfo"]["alg"] = 256;
191
- $data["EncryptInfo"]["key"] = "";
192
-
193
- $connectionsData["neondbatuseast2awsneontech"] = $data;
194
  $this->_connectionsData = &$connectionsData;
195
  }
196
 
@@ -203,4 +166,4 @@ $data["connInfo"][4] = $dbname;
203
  $this->CloseConnections();
204
  }
205
  }
206
- ?>
 
119
  $connectionsData = array();
120
 
121
  $data = array();
122
+ $data["dbType"] = 0;
123
+ $data["connId"] = "chats_at_localhost";
124
+ $data["connName"] = "chats at localhost";
125
+ $data["connStringType"] = "mysql";
126
+ $data["connectionString"] = "mysql;mysql-41e5eb8-bpmboxes-c200.i.aivencloud.com;avnadmin;AVNS_EjXmU-QJSVJIxvGzWWm;25422;defaultdb;;1"; //currently unused
 
127
 
128
+ $this->_connectionsIdByName["chats at localhost"] = "chats_at_localhost";
129
 
130
  $data["connInfo"] = array();
131
+ $data["ODBCUID"] = "avnadmin";
132
+ $data["ODBCPWD"] = "AVNS_EjXmU-QJSVJIxvGzWWm";
133
+ $data["leftWrap"] = "`";
134
+ $data["rightWrap"] = "`";
135
 
136
  $data["DBPath"] = "db"; //currently unused
137
  $data["useServerMapPath"] = 1; //currently unused
138
 
139
+
140
+ // Don't change any of these lines manually!
141
+ // Use 'Server database connections' feature on the Output screen in PHPRunner instead.
142
+ $data["connInfo"][0] = "mysql-41e5eb8-bpmboxes-c200.i.aivencloud.com";
143
+ $data["connInfo"][1] = "avnadmin";
144
+ $data["connInfo"][2] = "AVNS_EjXmU-QJSVJIxvGzWWm";
145
+ $data["connInfo"][3] = "25422";
146
+ $data["connInfo"][4] = "defaultdb";
147
+ $data["connInfo"][5] = ""; //currently unused
148
+ $data["connInfo"][6] = "1"; //currently unused
149
+ $data["ODBCString"] = "DRIVER={MySQL ODBC 3.51 Driver};Server=mysql-41e5eb8-bpmboxes-c200.i.aivencloud.com;Uid=avnadmin;Pwd=AVNS_EjXmU-QJSVJIxvGzWWm;Port=25422;Database=defaultdb;OPTION=3";
150
  // encription set
151
  $data["EncryptInfo"] = array();
152
  $data["EncryptInfo"]["mode"] = 0;
153
  $data["EncryptInfo"]["alg"] = 128;
154
  $data["EncryptInfo"]["key"] = "";
155
 
156
+ $connectionsData["chats_at_localhost"] = $data;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  $this->_connectionsData = &$connectionsData;
158
  }
159
 
 
166
  $this->CloseConnections();
167
  }
168
  }
169
+ ?>
php/connections/ConnectionManager_base.php CHANGED
@@ -112,7 +112,7 @@ class ConnectionManager_Base
112
  */
113
  public function getDefault()
114
  {
115
- return $this->byId( "KnowledgeBase2_at_localhost" );
116
  }
117
 
118
  /**
@@ -121,7 +121,7 @@ class ConnectionManager_Base
121
  */
122
  public function getDefaultConnId()
123
  {
124
- return "KnowledgeBase2_at_localhost";
125
  }
126
 
127
 
@@ -149,7 +149,7 @@ class ConnectionManager_Base
149
  */
150
  public function getForAudit()
151
  {
152
- return $this->byId( "KnowledgeBase2_at_localhost" );
153
  }
154
 
155
  /**
@@ -158,7 +158,7 @@ class ConnectionManager_Base
158
  */
159
  public function getForLocking()
160
  {
161
- return $this->byId( "KnowledgeBase2_at_localhost" );
162
  }
163
 
164
  /**
@@ -170,7 +170,7 @@ class ConnectionManager_Base
170
  }
171
 
172
  public function getUserGroupsConnId() {
173
- return "KnowledgeBase2_at_localhost";
174
  }
175
 
176
  /**
@@ -188,7 +188,7 @@ class ConnectionManager_Base
188
  */
189
  public function getSavedSearchesConnId()
190
  {
191
- return "KnowledgeBase2_at_localhost";
192
  }
193
 
194
  /**
@@ -205,7 +205,7 @@ class ConnectionManager_Base
205
  * @return String
206
  */
207
  public function getWebReportsConnId() {
208
- return "KnowledgeBase2_at_localhost";
209
  }
210
 
211
  /**
@@ -243,40 +243,14 @@ class ConnectionManager_Base
243
  protected function _setTablesConnectionIds()
244
  {
245
  $connectionsIds = array();
246
- $connectionsIds["kbarticles"] = "KnowledgeBase2_at_localhost";
247
- $connectionsIds["kbcategories"] = "KnowledgeBase2_at_localhost";
248
- $connectionsIds["kbcomments"] = "KnowledgeBase2_at_localhost";
249
- $connectionsIds["public.kbusers"] = "KnowledgeBase2_at_localhost";
250
- $connectionsIds["main"] = "KnowledgeBase2_at_localhost";
251
- $connectionsIds["faicons"] = "KnowledgeBase2_at_localhost";
252
- $connectionsIds["admin_comments"] = "KnowledgeBase2_at_localhost";
253
- $connectionsIds["public.fasis_chat_history"] = "KnowledgeBase2_at_localhost";
254
- $connectionsIds["public.products"] = "KnowledgeBase2_at_localhost";
255
- $connectionsIds["public.items"] = "KnowledgeBase2_at_localhost";
256
- $connectionsIds["public.appointments"] = "KnowledgeBase2_at_localhost";
257
- $connectionsIds["chat_history"] = "KnowledgeBase2_at_localhost";
258
- $connectionsIds["chat_users"] = "KnowledgeBase2_at_localhost";
259
- $connectionsIds["chat_settings"] = "KnowledgeBase2_at_localhost";
260
- $connectionsIds["chat_files"] = "KnowledgeBase2_at_localhost";
261
- $connectionsIds["chat_groups"] = "KnowledgeBase2_at_localhost";
262
- $connectionsIds["chat_peopletype"] = "KnowledgeBase2_at_localhost";
263
- $connectionsIds["chat_timezone"] = "KnowledgeBase2_at_localhost";
264
- $connectionsIds["public.chat_files"] = "KnowledgeBase2_at_localhost";
265
- $connectionsIds["public.chat_groups"] = "KnowledgeBase2_at_localhost";
266
- $connectionsIds["public.chat_history"] = "KnowledgeBase2_at_localhost";
267
- $connectionsIds["public.chat_peopletype"] = "KnowledgeBase2_at_localhost";
268
- $connectionsIds["public.chat_settings"] = "KnowledgeBase2_at_localhost";
269
- $connectionsIds["public.identity"] = "KnowledgeBase2_at_localhost";
270
- $connectionsIds["public.dataset_info"] = "KnowledgeBase2_at_localhost";
271
- $connectionsIds["admin_rights"] = "KnowledgeBase2_at_localhost";
272
- $connectionsIds["admin_members"] = "KnowledgeBase2_at_localhost";
273
- $connectionsIds["admin_users"] = "KnowledgeBase2_at_localhost";
274
- $connectionsIds["public.history"] = "KnowledgeBase2_at_localhost";
275
- $connectionsIds["public.zendesk__dataszz"] = "KnowledgeBase2_at_localhost";
276
- $connectionsIds["public.view_zendesk"] = "KnowledgeBase2_at_localhost";
277
- $connectionsIds["public.prompts"] = "KnowledgeBase2_at_localhost";
278
- $connectionsIds["public.view_faisis_chat_history"] = "KnowledgeBase2_at_localhost";
279
- $connectionsIds["public.server_setting"] = "KnowledgeBase2_at_localhost";
280
 
281
  $this->_tablesConnectionIds = &$connectionsIds;
282
  }
 
112
  */
113
  public function getDefault()
114
  {
115
+ return $this->byId( "chats_at_localhost" );
116
  }
117
 
118
  /**
 
121
  */
122
  public function getDefaultConnId()
123
  {
124
+ return "chats_at_localhost";
125
  }
126
 
127
 
 
149
  */
150
  public function getForAudit()
151
  {
152
+ return $this->byId( "chats_at_localhost" );
153
  }
154
 
155
  /**
 
158
  */
159
  public function getForLocking()
160
  {
161
+ return $this->byId( "chats_at_localhost" );
162
  }
163
 
164
  /**
 
170
  }
171
 
172
  public function getUserGroupsConnId() {
173
+ return "chats_at_localhost";
174
  }
175
 
176
  /**
 
188
  */
189
  public function getSavedSearchesConnId()
190
  {
191
+ return "chats_at_localhost";
192
  }
193
 
194
  /**
 
205
  * @return String
206
  */
207
  public function getWebReportsConnId() {
208
+ return "chats_at_localhost";
209
  }
210
 
211
  /**
 
243
  protected function _setTablesConnectionIds()
244
  {
245
  $connectionsIds = array();
246
+ $connectionsIds["chat_history"] = "chats_at_localhost";
247
+ $connectionsIds["chat_users"] = "chats_at_localhost";
248
+ $connectionsIds["chat_settings"] = "chats_at_localhost";
249
+ $connectionsIds["chat_files"] = "chats_at_localhost";
250
+ $connectionsIds["chat_groups"] = "chats_at_localhost";
251
+ $connectionsIds["chat_peopletype"] = "chats_at_localhost";
252
+ $connectionsIds["chat_timezone"] = "chats_at_localhost";
253
+ $connectionsIds["chat126_users1"] = "chats_at_localhost";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
 
255
  $this->_tablesConnectionIds = &$connectionsIds;
256
  }
php/include/_global_settings.php CHANGED
@@ -3,11 +3,11 @@
3
  $tdataGLOBAL = array();
4
 
5
 
6
- $tdataGLOBAL[".pagesByType"] = my_json_decode( "{\"admin_members_list\":[\"admin_members_list\"],\"admin_rights_list\":[\"admin_rights_list\"],\"login\":[\"login\"],\"userinfo\":[\"userinfo\"]}" );
7
  $tdataGLOBAL[".originalPagesByType"] = $tdataGLOBAL[".pagesByType"];
8
- $tdataGLOBAL[".pages"] = types2pages( my_json_decode( "{\"admin_members_list\":[\"admin_members_list\"],\"admin_rights_list\":[\"admin_rights_list\"],\"login\":[\"login\"],\"userinfo\":[\"userinfo\"]}" ) );
9
  $tdataGLOBAL[".originalPages"] = $tdataGLOBAL[".pages"];
10
- $tdataGLOBAL[".defaultPages"] = my_json_decode( "{\"admin_members_list\":\"admin_members_list\",\"admin_rights_list\":\"admin_rights_list\",\"login\":\"login\",\"userinfo\":\"userinfo\"}" );
11
  $tdataGLOBAL[".originalDefaultPages"] = $tdataGLOBAL[".defaultPages"];
12
 
13
  $tables_data["<global>"] =& $tdataGLOBAL;
 
3
  $tdataGLOBAL = array();
4
 
5
 
6
+ $tdataGLOBAL[".pagesByType"] = my_json_decode( "{\"changepwd\":[\"changepwd_Chat1\"],\"changepwd_success\":[\"changepwd_success_Chat1\"],\"login\":[\"login_Chat1\"],\"menu\":[\"menu_Chat1\"],\"userinfo\":[\"userinfo_Chat1\"]}" );
7
  $tdataGLOBAL[".originalPagesByType"] = $tdataGLOBAL[".pagesByType"];
8
+ $tdataGLOBAL[".pages"] = types2pages( my_json_decode( "{\"changepwd\":[\"changepwd_Chat1\"],\"changepwd_success\":[\"changepwd_success_Chat1\"],\"login\":[\"login_Chat1\"],\"menu\":[\"menu_Chat1\"],\"userinfo\":[\"userinfo_Chat1\"]}" ) );
9
  $tdataGLOBAL[".originalPages"] = $tdataGLOBAL[".pages"];
10
+ $tdataGLOBAL[".defaultPages"] = my_json_decode( "{\"changepwd\":\"changepwd_Chat1\",\"changepwd_success\":\"changepwd_success_Chat1\",\"login\":\"login_Chat1\",\"menu\":\"menu_Chat1\",\"userinfo\":\"userinfo_Chat1\"}" );
11
  $tdataGLOBAL[".originalDefaultPages"] = $tdataGLOBAL[".defaultPages"];
12
 
13
  $tables_data["<global>"] =& $tdataGLOBAL;
php/include/appsettings.php CHANGED
@@ -628,7 +628,7 @@ $globalSettings["keepLoggedIn"] = true;
628
  //mail settings
629
  $globalSettings["useBuiltInMailer"] = false;
630
 
631
- $globalSettings["useCustomSMTPSettings"] = false;
632
 
633
  $globalSettings["strSMTPUser"] = "";
634
  $globalSettings["strSMTPServer"] = "localhost";
@@ -657,17 +657,16 @@ $adNestedPermissions = false;
657
 
658
  $ajaxSearchStartsWith = true;
659
 
660
- $globalSettings["staticGuestLogin"] = true;
661
 
662
 
663
- $globalSettings["LandingPageType"] = 0;
664
- $globalSettings["LandingTable"] = "main";
665
- $globalSettings["LandingPage"] = "list";
666
- $globalSettings["LandingURL"] = "main_list.php?page=mainpage";
667
- $globalSettings["LandingPageId"] = "mainpage";
668
 
669
  $globalSettings["ProjectLogo"] = array();
670
- $globalSettings["ProjectLogo"]["English"] = "<!--img src=\"images/icons48.png\"--><span>Knowledge Base Project</span>";
671
 
672
  $globalSettings["CookieBanner"] = array();
673
 
@@ -675,10 +674,9 @@ $globalSettings["useCookieBanner"] = 0 != 0;
675
 
676
  $globalSettings["htmlEmailTemplates"] = array();
677
 
678
- $globalSettings["isAddWebRep"] = true;
679
 
680
  $globalSettings["createLoginPage"] = true;
681
- $globalSettings["userGroupCount"] = 3;
682
 
683
 
684
  $globalSettings["apiGoogleMapsCode"] = "";
@@ -747,22 +745,21 @@ $wr_pagestylepath = "webreports";
747
  $wr_is_standalone = false;
748
  $WRAdminPagePassword = "";
749
 
750
- $WRAdminPagePassword = "webreports";
751
 
752
 
753
  /**
754
  * Legacy variables for pre-10.6 business templates only.
755
  * DEPRECATED
756
  */
757
- $cLoginTable = "public.kbusers";
758
  $cDisplayNameField = "fullname";
759
  $cUserNameField = "username";
760
  $cPasswordField = "password";
761
- $cUserGroupField = "group";
762
  $cEmailField = "email";
763
  $cUserpicField = "";
764
  $loginKeyFields= array();
765
- $loginKeyFields[] = "email";
766
 
767
  // legacy use only
768
  $cKeyFields = $loginKeyFields;
@@ -772,10 +769,10 @@ $cKeyFields = $loginKeyFields;
772
  */
773
 
774
 
775
- $globalSettings["usersDatasourceTable"] = "public.kbusers";
776
 
777
 
778
- $globalSettings["jwtSecret"] = "AePSql8YQwJMZA2upYMI";
779
 
780
 
781
  $arrCustomPages = array();
@@ -793,9 +790,9 @@ $suggestAllContent = true;
793
  $strLastSQL = "";
794
  $showCustomMarkerOnPrint = false;
795
 
796
- $projectBuildKey = "492_1720354121";
797
  $wizardBuildKey = "41974";
798
- $projectBuildNumber = "492";
799
 
800
  $mlang_messages = array();
801
  $mlang_charsets = array();
@@ -820,17 +817,6 @@ $menuTreelikeFlags["secondary"] = 1;
820
  // table captions
821
  $tableCaptions = array();
822
  $tableCaptions["English"] = array();
823
- $tableCaptions["English"]["kbarticles"] = "Articles";
824
- $tableCaptions["English"]["kbcategories"] = "Categories";
825
- $tableCaptions["English"]["kbcomments"] = "Comments";
826
- $tableCaptions["English"]["public_kbusers"] = "Users";
827
- $tableCaptions["English"]["main"] = "";
828
- $tableCaptions["English"]["faicons"] = "Faicons";
829
- $tableCaptions["English"]["admin_comments"] = "Admin Comments";
830
- $tableCaptions["English"]["public_fasis_chat_history"] = "知識へ登録";
831
- $tableCaptions["English"]["public_products"] = "Products";
832
- $tableCaptions["English"]["public_items"] = "Items";
833
- $tableCaptions["English"]["public_appointments"] = "Appointments";
834
  $tableCaptions["English"][""] = "";
835
  $tableCaptions["English"]["chat_history"] = "Chat History";
836
  $tableCaptions["English"]["chat_users"] = "Chat Users";
@@ -839,22 +825,7 @@ $tableCaptions["English"]["chat_files"] = "Chat Files";
839
  $tableCaptions["English"]["chat_groups"] = "Chat Groups";
840
  $tableCaptions["English"]["chat_peopletype"] = "Chat Peopletype";
841
  $tableCaptions["English"]["chat_timezone"] = "Chat Timezone";
842
- $tableCaptions["English"]["public_chat_files"] = "Chat Files";
843
- $tableCaptions["English"]["public_chat_groups"] = "Chat Groups";
844
- $tableCaptions["English"]["public_chat_history"] = "Chat History";
845
- $tableCaptions["English"]["public_chat_peopletype"] = "Chat Peopletype";
846
- $tableCaptions["English"]["public_chat_settings"] = "Chat Settings";
847
- $tableCaptions["English"]["public_identity"] = "Identity";
848
- $tableCaptions["English"]["public_dataset_info"] = "Dataset Info";
849
- $tableCaptions["English"]["admin_rights"] = "Admin Rights";
850
- $tableCaptions["English"]["admin_members"] = "Admin Members";
851
- $tableCaptions["English"]["admin_users"] = "Admin Users";
852
- $tableCaptions["English"]["public_history"] = "History";
853
- $tableCaptions["English"]["public_zendesk__dataszz"] = "Zendesk";
854
- $tableCaptions["English"]["public_view_zendesk"] = "View Zendesk";
855
- $tableCaptions["English"]["public_prompts"] = "Prompts";
856
- $tableCaptions["English"]["public_view_faisis_chat_history"] = "View Faisis Chat History";
857
- $tableCaptions["English"]["public_server_setting"] = "Server Setting";
858
 
859
 
860
  $globalEvents = new class_GlobalEvents;
@@ -940,12 +911,6 @@ if(mlang_getcurrentlang()=="English")
940
  $globalSettings["showDetailedError"] = true;
941
 
942
 
943
- $globalSettings["restCreate"] = true;
944
- $globalSettings["restReturnEncodedBinary"] = 1 != 0;
945
- $globalSettings["restAcceptEncodedBinary"] = 0 != 0;
946
- $globalSettings["restAuth"] = REST_APIKEY;
947
- $globalSettings["APIkey"] = "";
948
- $globalSettings["APIkeyField"] = "username";
949
 
950
  $globalSettings["mapMarkerCount"] = 50;
951
 
 
628
  //mail settings
629
  $globalSettings["useBuiltInMailer"] = false;
630
 
631
+ $globalSettings["useCustomSMTPSettings"] = true;
632
 
633
  $globalSettings["strSMTPUser"] = "";
634
  $globalSettings["strSMTPServer"] = "localhost";
 
657
 
658
  $ajaxSearchStartsWith = true;
659
 
 
660
 
661
 
662
+ $globalSettings["LandingPageType"] = 1;
663
+ $globalSettings["LandingTable"] = "chat_history";
664
+ $globalSettings["LandingPage"] = "add";
665
+ $globalSettings["LandingURL"] = "chat_history_add.php?page=add";
666
+ $globalSettings["LandingPageId"] = "add";
667
 
668
  $globalSettings["ProjectLogo"] = array();
669
+ $globalSettings["ProjectLogo"]["English"] = "Chats";
670
 
671
  $globalSettings["CookieBanner"] = array();
672
 
 
674
 
675
  $globalSettings["htmlEmailTemplates"] = array();
676
 
 
677
 
678
  $globalSettings["createLoginPage"] = true;
679
+ $globalSettings["userGroupCount"] = 2;
680
 
681
 
682
  $globalSettings["apiGoogleMapsCode"] = "";
 
745
  $wr_is_standalone = false;
746
  $WRAdminPagePassword = "";
747
 
 
748
 
749
 
750
  /**
751
  * Legacy variables for pre-10.6 business templates only.
752
  * DEPRECATED
753
  */
754
+ $cLoginTable = "chat126_users1";
755
  $cDisplayNameField = "fullname";
756
  $cUserNameField = "username";
757
  $cPasswordField = "password";
758
+ $cUserGroupField = "username";
759
  $cEmailField = "email";
760
  $cUserpicField = "";
761
  $loginKeyFields= array();
762
+ $loginKeyFields[] = "ID";
763
 
764
  // legacy use only
765
  $cKeyFields = $loginKeyFields;
 
769
  */
770
 
771
 
772
+ $globalSettings["usersDatasourceTable"] = "chat126_users1";
773
 
774
 
775
+ $globalSettings["jwtSecret"] = "cFIydWRfSpojgr9LUVYT";
776
 
777
 
778
  $arrCustomPages = array();
 
790
  $strLastSQL = "";
791
  $showCustomMarkerOnPrint = false;
792
 
793
+ $projectBuildKey = "3641_1721381610";
794
  $wizardBuildKey = "41974";
795
+ $projectBuildNumber = "3641";
796
 
797
  $mlang_messages = array();
798
  $mlang_charsets = array();
 
817
  // table captions
818
  $tableCaptions = array();
819
  $tableCaptions["English"] = array();
 
 
 
 
 
 
 
 
 
 
 
820
  $tableCaptions["English"][""] = "";
821
  $tableCaptions["English"]["chat_history"] = "Chat History";
822
  $tableCaptions["English"]["chat_users"] = "Chat Users";
 
825
  $tableCaptions["English"]["chat_groups"] = "Chat Groups";
826
  $tableCaptions["English"]["chat_peopletype"] = "Chat Peopletype";
827
  $tableCaptions["English"]["chat_timezone"] = "Chat Timezone";
828
+ $tableCaptions["English"]["chat126_users1"] = "Chat126 Users1";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
829
 
830
 
831
  $globalEvents = new class_GlobalEvents;
 
911
  $globalSettings["showDetailedError"] = true;
912
 
913
 
 
 
 
 
 
 
914
 
915
  $globalSettings["mapMarkerCount"] = 50;
916
 
php/include/audit.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  class AuditTrailTable
3
  {
4
- var $logTableName="public.knowledgebase1_audit";
5
  var $params;
6
 
7
  var $strLogin="login";
@@ -51,70 +51,18 @@ class AuditTrailTable
51
 
52
  function LogLogin($pUsername)
53
  {
54
- global $globalEvents;
55
- $retval=true;
56
- $table=Security::loginTable();
57
- $this->params[1]=$pUsername;
58
- $arr=array();
59
- $this->params=array($_SERVER["REMOTE_ADDR"], Security::getUserName() );
60
- if($globalEvents->exists("OnAuditLog"))
61
- $retval=$globalEvents->OnAuditLog($this->strLogin, $this->params, $table, $arr, $arr, $arr);
62
- if($retval)
63
- {
64
- $this->insert(now(), $this->params[0], $this->params[1], $table, $this->strLogin, "");
65
- }
66
- return $retval;
67
  }
68
 
69
  function LogLoginFailed($pUsername)
70
  {
71
- global $globalEvents;
72
- $retval=true;
73
- $table=Security::loginTable();
74
- $this->params[1]=$pUsername;
75
- $arr=array();
76
- if($globalEvents->exists("OnAuditLog"))
77
- $retval=$globalEvents->OnAuditLog($this->strFailLogin, $this->params, $table, $arr, $arr, $arr);
78
- if($retval)
79
- {
80
- $this->insert(now(), $this->params[0], $this->params[1], $table, $this->strFailLogin, "");
81
- }
82
- $this->params=array($_SERVER["REMOTE_ADDR"],"");
83
- return $retval;
84
  }
85
 
86
  function LogLogout()
87
  {
88
- global $globalEvents;
89
- if( Security::getUserName() !="" )
90
- {
91
- $retval=true;
92
- $table=Security::loginTable();
93
- $arr=array();
94
- if($globalEvents->exists("OnAuditLog"))
95
- $retval=$globalEvents->OnAuditLog($this->strLogout, $this->params, $table, $arr, $arr, $arr);
96
- if($retval)
97
- {
98
- $this->insert(now(), $this->params[0], $this->params[1], $table, $this->strLogout, "");
99
- }
100
- return $retval;
101
- }
102
  }
103
 
104
  function LogChPassword( $username )
105
  {
106
- global $globalEvents;
107
- $retval=true;
108
- $table=Security::loginTable();
109
- $arr=array();
110
- $this->params[ 1 ] = $username;
111
- if($globalEvents->exists("OnAuditLog"))
112
- $retval=$globalEvents->OnAuditLog($this->strChPass, $this->params, $table, $arr, $arr, $arr);
113
- if($retval)
114
- {
115
- $this->insert(now(), $this->params[0], $this->params[1], $table, $this->strChPass, "");
116
- }
117
- return $retval;
118
  }
119
 
120
  function LogAdd($str_table,$values,$keys)
@@ -408,139 +356,35 @@ class AuditTrailTable
408
 
409
  function logValueEnable($table)
410
  {
411
- if($table=="kbarticles")
412
- {
413
- return true;
414
- }
415
- if($table=="kbcategories")
416
- {
417
- return true;
418
- }
419
- if($table=="kbcomments")
420
- {
421
- return true;
422
- }
423
- if($table=="public.kbusers")
424
- {
425
- return true;
426
- }
427
- if($table=="main")
428
- {
429
- return true;
430
- }
431
- if($table=="faicons")
432
- {
433
- return true;
434
- }
435
- if($table=="admin_comments")
436
- {
437
- return true;
438
- }
439
- if($table=="public.fasis_chat_history")
440
- {
441
- return true;
442
- }
443
- if($table=="public.products")
444
- {
445
- return true;
446
- }
447
- if($table=="public.items")
448
- {
449
- return true;
450
- }
451
- if($table=="public.appointments")
452
- {
453
- return true;
454
- }
455
  if($table=="chat_history")
456
- {
457
- return true;
458
- }
459
- if($table=="chat_users")
460
- {
461
- return true;
462
- }
463
- if($table=="chat_settings")
464
- {
465
- return true;
466
- }
467
- if($table=="chat_files")
468
- {
469
- return true;
470
- }
471
- if($table=="chat_groups")
472
- {
473
- return true;
474
- }
475
- if($table=="chat_peopletype")
476
- {
477
- return true;
478
- }
479
- if($table=="chat_timezone")
480
- {
481
- return true;
482
- }
483
- if($table=="public.chat_files")
484
- {
485
- return true;
486
- }
487
- if($table=="public.chat_groups")
488
- {
489
- return true;
490
- }
491
- if($table=="public.chat_history")
492
- {
493
- return true;
494
- }
495
- if($table=="public.chat_peopletype")
496
- {
497
- return true;
498
- }
499
- if($table=="public.chat_settings")
500
- {
501
- return true;
502
- }
503
- if($table=="public.identity")
504
- {
505
- return true;
506
- }
507
- if($table=="public.dataset_info")
508
- {
509
- return true;
510
- }
511
- if($table=="admin_rights")
512
- {
513
- return false;
514
- }
515
- if($table=="admin_members")
516
  {
517
  return false;
518
  }
519
- if($table=="admin_users")
520
  {
521
  return false;
522
  }
523
- if($table=="public.history")
524
  {
525
  return false;
526
  }
527
- if($table=="public.zendesk__dataszz")
528
  {
529
  return false;
530
  }
531
- if($table=="public.view_zendesk")
532
  {
533
  return false;
534
  }
535
- if($table=="public.prompts")
536
  {
537
  return false;
538
  }
539
- if($table=="public.view_faisis_chat_history")
540
  {
541
  return false;
542
  }
543
- if($table=="public.server_setting")
544
  {
545
  return false;
546
  }
@@ -616,72 +460,18 @@ class AuditTrailFile
616
 
617
  function LogLogin($pUsername)
618
  {
619
- global $globalEvents;
620
- $retval=true;
621
- $table=Security::loginTable();
622
- $this->params[1]=$pUsername;
623
- $arr=array();
624
- if($globalEvents->exists("OnAuditLog"))
625
- $retval=$globalEvents->OnAuditLog($this->strLogin, $this->params, $table, $arr, $arr, $arr);
626
- if($retval)
627
- {
628
- $str=format_datetime_custom(db2time(now()),"MMM dd,yyyy").chr(9).format_datetime_custom(db2time(now()),"HH:mm:ss").chr(9).$this->params[0].chr(9).$this->params[1].chr(9).$table.chr(9).$this->strLogin."\r\n";
629
- $this->writeToLogFile( $str );
630
- }
631
- return $retval;
632
- }
633
 
634
  function LogLoginFailed($pUsername)
635
  {
636
- global $globalEvents;
637
- $retval=true;
638
- $table=Security::loginTable();
639
- $this->params[1]=$pUsername;
640
- $arr=array();
641
- if($globalEvents->exists("OnAuditLog"))
642
- $retval=$globalEvents->OnAuditLog($this->strFailLogin, $this->params, $table, $arr, $arr, $arr);
643
- if($retval)
644
- {
645
- $str=format_datetime_custom(db2time(now()),"MMM dd,yyyy").chr(9).format_datetime_custom(db2time(now()),"HH:mm:ss").chr(9).$this->params[0].chr(9).$this->params[1].chr(9).$table.chr(9).$this->strFailLogin."\r\n";
646
- $this->writeToLogFile( $str );
647
- }
648
- return $retval;
649
- }
650
 
651
  function LogLogout()
652
  {
653
- global $globalEvents;
654
- if(Security::getUserName() != "" )
655
- {
656
- $retval=true;
657
- $table=Security::loginTable();
658
- $arr=array();
659
- if($globalEvents->exists("OnAuditLog"))
660
- $retval=$globalEvents->OnAuditLog($this->strLogout, $this->params, $table, $arr, $arr, $arr);
661
- if($retval)
662
- {
663
- $str=format_datetime_custom(db2time(now()),"MMM dd,yyyy").chr(9).format_datetime_custom(db2time(now()),"HH:mm:ss").chr(9).$this->params[0].chr(9).$this->params[1].chr(9).$table.chr(9).$this->strLogout."\r\n";
664
- $this->writeToLogFile( $str );
665
- }
666
- return $retval;
667
- }
668
  }
669
 
670
  function LogChPassword( $username )
671
  {
672
- global $globalEvents;
673
- $retval=true;
674
- $table=Security::loginTable();
675
- $arr=array();
676
- $this->params[ 1 ] = $username;
677
- if($globalEvents->exists("OnAuditLog"))
678
- $retval=$globalEvents->OnAuditLog($this->strChPass, $this->params, $table, $arr, $arr, $arr);
679
- if($retval)
680
- {
681
- $str=format_datetime_custom(db2time(now()),"MMM dd,yyyy").chr(9).format_datetime_custom(db2time(now()),"HH:mm:ss").chr(9).$this->params[0].chr(9).$this->params[1].chr(9).$table.chr(9).$this->strChPass."\r\n";
682
- $this->writeToLogFile( $str );
683
- }
684
- return $retval;
685
  }
686
 
687
  function LogAdd($str_table,$values,$keys)
@@ -906,139 +696,35 @@ class AuditTrailFile
906
 
907
  function logValueEnable($table)
908
  {
909
- if($table=="kbarticles")
910
- {
911
- return true;
912
- }
913
- if($table=="kbcategories")
914
- {
915
- return true;
916
- }
917
- if($table=="kbcomments")
918
- {
919
- return true;
920
- }
921
- if($table=="public.kbusers")
922
- {
923
- return true;
924
- }
925
- if($table=="main")
926
- {
927
- return true;
928
- }
929
- if($table=="faicons")
930
- {
931
- return true;
932
- }
933
- if($table=="admin_comments")
934
- {
935
- return true;
936
- }
937
- if($table=="public.fasis_chat_history")
938
- {
939
- return true;
940
- }
941
- if($table=="public.products")
942
- {
943
- return true;
944
- }
945
- if($table=="public.items")
946
- {
947
- return true;
948
- }
949
- if($table=="public.appointments")
950
- {
951
- return true;
952
- }
953
  if($table=="chat_history")
954
- {
955
- return true;
956
- }
957
- if($table=="chat_users")
958
- {
959
- return true;
960
- }
961
- if($table=="chat_settings")
962
- {
963
- return true;
964
- }
965
- if($table=="chat_files")
966
- {
967
- return true;
968
- }
969
- if($table=="chat_groups")
970
- {
971
- return true;
972
- }
973
- if($table=="chat_peopletype")
974
- {
975
- return true;
976
- }
977
- if($table=="chat_timezone")
978
- {
979
- return true;
980
- }
981
- if($table=="public.chat_files")
982
- {
983
- return true;
984
- }
985
- if($table=="public.chat_groups")
986
- {
987
- return true;
988
- }
989
- if($table=="public.chat_history")
990
- {
991
- return true;
992
- }
993
- if($table=="public.chat_peopletype")
994
- {
995
- return true;
996
- }
997
- if($table=="public.chat_settings")
998
- {
999
- return true;
1000
- }
1001
- if($table=="public.identity")
1002
- {
1003
- return true;
1004
- }
1005
- if($table=="public.dataset_info")
1006
- {
1007
- return true;
1008
- }
1009
- if($table=="admin_rights")
1010
- {
1011
- return false;
1012
- }
1013
- if($table=="admin_members")
1014
  {
1015
  return false;
1016
  }
1017
- if($table=="admin_users")
1018
  {
1019
  return false;
1020
  }
1021
- if($table=="public.history")
1022
  {
1023
  return false;
1024
  }
1025
- if($table=="public.zendesk__dataszz")
1026
  {
1027
  return false;
1028
  }
1029
- if($table=="public.view_zendesk")
1030
  {
1031
  return false;
1032
  }
1033
- if($table=="public.prompts")
1034
  {
1035
  return false;
1036
  }
1037
- if($table=="public.view_faisis_chat_history")
1038
  {
1039
  return false;
1040
  }
1041
- if($table=="public.server_setting")
1042
  {
1043
  return false;
1044
  }
 
1
  <?php
2
  class AuditTrailTable
3
  {
4
+ var $logTableName="";
5
  var $params;
6
 
7
  var $strLogin="login";
 
51
 
52
  function LogLogin($pUsername)
53
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  }
55
 
56
  function LogLoginFailed($pUsername)
57
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  }
59
 
60
  function LogLogout()
61
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  }
63
 
64
  function LogChPassword( $username )
65
  {
 
 
 
 
 
 
 
 
 
 
 
 
66
  }
67
 
68
  function LogAdd($str_table,$values,$keys)
 
356
 
357
  function logValueEnable($table)
358
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
359
  if($table=="chat_history")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
360
  {
361
  return false;
362
  }
363
+ if($table=="chat_users")
364
  {
365
  return false;
366
  }
367
+ if($table=="chat_settings")
368
  {
369
  return false;
370
  }
371
+ if($table=="chat_files")
372
  {
373
  return false;
374
  }
375
+ if($table=="chat_groups")
376
  {
377
  return false;
378
  }
379
+ if($table=="chat_peopletype")
380
  {
381
  return false;
382
  }
383
+ if($table=="chat_timezone")
384
  {
385
  return false;
386
  }
387
+ if($table=="chat126_users1")
388
  {
389
  return false;
390
  }
 
460
 
461
  function LogLogin($pUsername)
462
  {
463
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
464
 
465
  function LogLoginFailed($pUsername)
466
  {
467
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
468
 
469
  function LogLogout()
470
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
471
  }
472
 
473
  function LogChPassword( $username )
474
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
475
  }
476
 
477
  function LogAdd($str_table,$values,$keys)
 
696
 
697
  function logValueEnable($table)
698
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
699
  if($table=="chat_history")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
700
  {
701
  return false;
702
  }
703
+ if($table=="chat_users")
704
  {
705
  return false;
706
  }
707
+ if($table=="chat_settings")
708
  {
709
  return false;
710
  }
711
+ if($table=="chat_files")
712
  {
713
  return false;
714
  }
715
+ if($table=="chat_groups")
716
  {
717
  return false;
718
  }
719
+ if($table=="chat_peopletype")
720
  {
721
  return false;
722
  }
723
+ if($table=="chat_timezone")
724
  {
725
  return false;
726
  }
727
+ if($table=="chat126_users1")
728
  {
729
  return false;
730
  }
php/include/chat126_users1_settings.php ADDED
@@ -0,0 +1,1629 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $tdatachat126_users1 = array();
3
+ $tdatachat126_users1[".searchableFields"] = array();
4
+ $tdatachat126_users1[".ShortName"] = "chat126_users1";
5
+ $tdatachat126_users1[".OwnerID"] = "";
6
+ $tdatachat126_users1[".OriginalTable"] = "chat126_users1";
7
+
8
+
9
+ $tdatachat126_users1[".pagesByType"] = my_json_decode( "{\"search\":[\"search\"]}" );
10
+ $tdatachat126_users1[".originalPagesByType"] = $tdatachat126_users1[".pagesByType"];
11
+ $tdatachat126_users1[".pages"] = types2pages( my_json_decode( "{\"search\":[\"search\"]}" ) );
12
+ $tdatachat126_users1[".originalPages"] = $tdatachat126_users1[".pages"];
13
+ $tdatachat126_users1[".defaultPages"] = my_json_decode( "{\"search\":\"search\"}" );
14
+ $tdatachat126_users1[".originalDefaultPages"] = $tdatachat126_users1[".defaultPages"];
15
+
16
+ // field labels
17
+ $fieldLabelschat126_users1 = array();
18
+ $fieldToolTipschat126_users1 = array();
19
+ $pageTitleschat126_users1 = array();
20
+ $placeHolderschat126_users1 = array();
21
+
22
+ if(mlang_getcurrentlang()=="English")
23
+ {
24
+ $fieldLabelschat126_users1["English"] = array();
25
+ $fieldToolTipschat126_users1["English"] = array();
26
+ $placeHolderschat126_users1["English"] = array();
27
+ $pageTitleschat126_users1["English"] = array();
28
+ $fieldLabelschat126_users1["English"]["ID"] = "ID";
29
+ $fieldToolTipschat126_users1["English"]["ID"] = "";
30
+ $placeHolderschat126_users1["English"]["ID"] = "";
31
+ $fieldLabelschat126_users1["English"]["username"] = "Username";
32
+ $fieldToolTipschat126_users1["English"]["username"] = "";
33
+ $placeHolderschat126_users1["English"]["username"] = "";
34
+ $fieldLabelschat126_users1["English"]["password"] = "Password";
35
+ $fieldToolTipschat126_users1["English"]["password"] = "";
36
+ $placeHolderschat126_users1["English"]["password"] = "";
37
+ $fieldLabelschat126_users1["English"]["email"] = "Email";
38
+ $fieldToolTipschat126_users1["English"]["email"] = "";
39
+ $placeHolderschat126_users1["English"]["email"] = "";
40
+ $fieldLabelschat126_users1["English"]["fullname"] = "Fullname";
41
+ $fieldToolTipschat126_users1["English"]["fullname"] = "";
42
+ $placeHolderschat126_users1["English"]["fullname"] = "";
43
+ $fieldLabelschat126_users1["English"]["groupid"] = "Groupid";
44
+ $fieldToolTipschat126_users1["English"]["groupid"] = "";
45
+ $placeHolderschat126_users1["English"]["groupid"] = "";
46
+ $fieldLabelschat126_users1["English"]["active"] = "Active";
47
+ $fieldToolTipschat126_users1["English"]["active"] = "";
48
+ $placeHolderschat126_users1["English"]["active"] = "";
49
+ $fieldLabelschat126_users1["English"]["ext_security_id"] = "Ext Security Id";
50
+ $fieldToolTipschat126_users1["English"]["ext_security_id"] = "";
51
+ $placeHolderschat126_users1["English"]["ext_security_id"] = "";
52
+ if (count($fieldToolTipschat126_users1["English"]))
53
+ $tdatachat126_users1[".isUseToolTips"] = true;
54
+ }
55
+
56
+
57
+ $tdatachat126_users1[".NCSearch"] = true;
58
+
59
+
60
+
61
+ $tdatachat126_users1[".shortTableName"] = "chat126_users1";
62
+ $tdatachat126_users1[".nSecOptions"] = 0;
63
+
64
+ $tdatachat126_users1[".mainTableOwnerID"] = "";
65
+ $tdatachat126_users1[".entityType"] = 0;
66
+ $tdatachat126_users1[".connId"] = "chats_at_localhost";
67
+
68
+
69
+ $tdatachat126_users1[".strOriginalTableName"] = "chat126_users1";
70
+
71
+
72
+
73
+
74
+
75
+ $tdatachat126_users1[".showAddInPopup"] = false;
76
+
77
+ $tdatachat126_users1[".showEditInPopup"] = false;
78
+
79
+ $tdatachat126_users1[".showViewInPopup"] = false;
80
+
81
+ $tdatachat126_users1[".listAjax"] = false;
82
+ // temporary
83
+ //$tdatachat126_users1[".listAjax"] = false;
84
+
85
+ $tdatachat126_users1[".audit"] = false;
86
+
87
+ $tdatachat126_users1[".locking"] = false;
88
+
89
+
90
+ $pages = $tdatachat126_users1[".defaultPages"];
91
+
92
+ if( $pages[PAGE_EDIT] ) {
93
+ $tdatachat126_users1[".edit"] = true;
94
+ $tdatachat126_users1[".afterEditAction"] = 1;
95
+ $tdatachat126_users1[".closePopupAfterEdit"] = 1;
96
+ $tdatachat126_users1[".afterEditActionDetTable"] = "";
97
+ }
98
+
99
+ if( $pages[PAGE_ADD] ) {
100
+ $tdatachat126_users1[".add"] = true;
101
+ $tdatachat126_users1[".afterAddAction"] = 1;
102
+ $tdatachat126_users1[".closePopupAfterAdd"] = 1;
103
+ $tdatachat126_users1[".afterAddActionDetTable"] = "";
104
+ }
105
+
106
+ if( $pages[PAGE_LIST] ) {
107
+ $tdatachat126_users1[".list"] = true;
108
+ }
109
+
110
+
111
+
112
+ $tdatachat126_users1[".strSortControlSettingsJSON"] = "";
113
+
114
+
115
+
116
+
117
+ if( $pages[PAGE_VIEW] ) {
118
+ $tdatachat126_users1[".view"] = true;
119
+ }
120
+
121
+ if( $pages[PAGE_IMPORT] ) {
122
+ $tdatachat126_users1[".import"] = true;
123
+ }
124
+
125
+ if( $pages[PAGE_EXPORT] ) {
126
+ $tdatachat126_users1[".exportTo"] = true;
127
+ }
128
+
129
+ if( $pages[PAGE_PRINT] ) {
130
+ $tdatachat126_users1[".printFriendly"] = true;
131
+ }
132
+
133
+
134
+
135
+ $tdatachat126_users1[".showSimpleSearchOptions"] = true; // temp fix #13449
136
+
137
+ // Allow Show/Hide Fields in GRID
138
+ $tdatachat126_users1[".allowShowHideFields"] = true; // temp fix #13449
139
+ //
140
+
141
+ // Allow Fields Reordering in GRID
142
+ $tdatachat126_users1[".allowFieldsReordering"] = true; // temp fix #13449
143
+ //
144
+
145
+ $tdatachat126_users1[".isUseAjaxSuggest"] = true;
146
+
147
+
148
+
149
+
150
+
151
+ $tdatachat126_users1[".ajaxCodeSnippetAdded"] = false;
152
+
153
+ $tdatachat126_users1[".buttonsAdded"] = false;
154
+
155
+ $tdatachat126_users1[".addPageEvents"] = false;
156
+
157
+ // use timepicker for search panel
158
+ $tdatachat126_users1[".isUseTimeForSearch"] = false;
159
+
160
+
161
+ $tdatachat126_users1[".badgeColor"] = "6493EA";
162
+
163
+
164
+ $tdatachat126_users1[".allSearchFields"] = array();
165
+ $tdatachat126_users1[".filterFields"] = array();
166
+ $tdatachat126_users1[".requiredSearchFields"] = array();
167
+
168
+ $tdatachat126_users1[".googleLikeFields"] = array();
169
+ $tdatachat126_users1[".googleLikeFields"][] = "ID";
170
+ $tdatachat126_users1[".googleLikeFields"][] = "username";
171
+ $tdatachat126_users1[".googleLikeFields"][] = "password";
172
+ $tdatachat126_users1[".googleLikeFields"][] = "email";
173
+ $tdatachat126_users1[".googleLikeFields"][] = "fullname";
174
+ $tdatachat126_users1[".googleLikeFields"][] = "groupid";
175
+ $tdatachat126_users1[".googleLikeFields"][] = "active";
176
+ $tdatachat126_users1[".googleLikeFields"][] = "ext_security_id";
177
+
178
+
179
+
180
+ $tdatachat126_users1[".tableType"] = "list";
181
+
182
+ $tdatachat126_users1[".printerPageOrientation"] = 0;
183
+ $tdatachat126_users1[".nPrinterPageScale"] = 100;
184
+
185
+ $tdatachat126_users1[".nPrinterSplitRecords"] = 40;
186
+
187
+ $tdatachat126_users1[".geocodingEnabled"] = false;
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+ $tdatachat126_users1[".pageSize"] = 20;
199
+
200
+ $tdatachat126_users1[".warnLeavingPages"] = true;
201
+
202
+
203
+
204
+ $tstrOrderBy = "";
205
+ $tdatachat126_users1[".strOrderBy"] = $tstrOrderBy;
206
+
207
+ $tdatachat126_users1[".orderindexes"] = array();
208
+
209
+
210
+ $tdatachat126_users1[".sqlHead"] = "SELECT ID, username, password, email, fullname, groupid, active, ext_security_id";
211
+ $tdatachat126_users1[".sqlFrom"] = "FROM chat126_users1";
212
+ $tdatachat126_users1[".sqlWhereExpr"] = "";
213
+ $tdatachat126_users1[".sqlTail"] = "";
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+ //fill array of records per page for list and report without group fields
225
+ $arrRPP = array();
226
+ $arrRPP[] = 10;
227
+ $arrRPP[] = 20;
228
+ $arrRPP[] = 30;
229
+ $arrRPP[] = 50;
230
+ $arrRPP[] = 100;
231
+ $arrRPP[] = 500;
232
+ $arrRPP[] = -1;
233
+ $tdatachat126_users1[".arrRecsPerPage"] = $arrRPP;
234
+
235
+ //fill array of groups per page for report with group fields
236
+ $arrGPP = array();
237
+ $arrGPP[] = 1;
238
+ $arrGPP[] = 3;
239
+ $arrGPP[] = 5;
240
+ $arrGPP[] = 10;
241
+ $arrGPP[] = 50;
242
+ $arrGPP[] = 100;
243
+ $arrGPP[] = -1;
244
+ $tdatachat126_users1[".arrGroupsPerPage"] = $arrGPP;
245
+
246
+ $tdatachat126_users1[".highlightSearchResults"] = true;
247
+
248
+ $tableKeyschat126_users1 = array();
249
+ $tableKeyschat126_users1[] = "ID";
250
+ $tdatachat126_users1[".Keys"] = $tableKeyschat126_users1;
251
+
252
+
253
+ $tdatachat126_users1[".hideMobileList"] = array();
254
+
255
+
256
+
257
+
258
+ // ID
259
+ // Custom field settings
260
+ $fdata = array();
261
+ $fdata["Index"] = 1;
262
+ $fdata["strName"] = "ID";
263
+ $fdata["GoodName"] = "ID";
264
+ $fdata["ownerTable"] = "chat126_users1";
265
+ $fdata["Label"] = GetFieldLabel("chat126_users1","ID");
266
+ $fdata["FieldType"] = 3;
267
+
268
+
269
+ $fdata["AutoInc"] = true;
270
+
271
+
272
+
273
+
274
+ $fdata["strField"] = "ID";
275
+
276
+ $fdata["sourceSingle"] = "ID";
277
+
278
+
279
+ $fdata["isSQLExpression"] = true;
280
+ $fdata["FullName"] = "ID";
281
+
282
+
283
+
284
+ $fdata["UploadFolder"] = "files";
285
+
286
+ // Begin View Formats
287
+ $fdata["ViewFormats"] = array();
288
+
289
+ $vdata = array("ViewFormat" => "");
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+ $vdata["NeedEncode"] = true;
306
+
307
+
308
+ $vdata["truncateText"] = true;
309
+ $vdata["NumberOfChars"] = 80;
310
+
311
+ $fdata["ViewFormats"]["view"] = $vdata;
312
+ // End View Formats
313
+
314
+ // Begin Edit Formats
315
+ $fdata["EditFormats"] = array();
316
+
317
+ $edata = array("EditFormat" => "Text field");
318
+
319
+
320
+ $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
321
+ $edata["weekdays"] = "[]";
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+ $edata["IsRequired"] = true;
330
+
331
+
332
+
333
+
334
+ $edata["acceptFileTypesHtml"] = "";
335
+
336
+ $edata["maxNumberOfFiles"] = 1;
337
+
338
+
339
+
340
+
341
+
342
+ $edata["HTML5InuptType"] = "text";
343
+
344
+ $edata["EditParams"] = "";
345
+
346
+ $edata["controlWidth"] = 200;
347
+
348
+ // Begin validation
349
+ $edata["validateAs"] = array();
350
+ $edata["validateAs"]["basicValidate"] = array();
351
+ $edata["validateAs"]["customMessages"] = array();
352
+ $edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
353
+ $edata["validateAs"]["basicValidate"][] = "IsRequired";
354
+
355
+
356
+ // End validation
357
+
358
+
359
+
360
+
361
+
362
+
363
+ $fdata["EditFormats"]["edit"] = $edata;
364
+ // End Edit Formats
365
+
366
+
367
+ $fdata["isSeparate"] = false;
368
+
369
+
370
+
371
+
372
+ // the field's search options settings
373
+ $fdata["defaultSearchOption"] = "Contains";
374
+
375
+ // the default search options list
376
+ $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
377
+ // the end of search options settings
378
+
379
+
380
+ //Filters settings
381
+ $fdata["filterTotals"] = 0;
382
+ $fdata["filterMultiSelect"] = 0;
383
+ $fdata["filterFormat"] = "Values list";
384
+ $fdata["showCollapsed"] = false;
385
+
386
+ $fdata["sortValueType"] = 0;
387
+ $fdata["numberOfVisibleItems"] = 10;
388
+
389
+ $fdata["filterBy"] = 0;
390
+
391
+
392
+
393
+
394
+
395
+ //end of Filters settings
396
+
397
+
398
+ $tdatachat126_users1["ID"] = $fdata;
399
+ $tdatachat126_users1[".searchableFields"][] = "ID";
400
+ // username
401
+ // Custom field settings
402
+ $fdata = array();
403
+ $fdata["Index"] = 2;
404
+ $fdata["strName"] = "username";
405
+ $fdata["GoodName"] = "username";
406
+ $fdata["ownerTable"] = "chat126_users1";
407
+ $fdata["Label"] = GetFieldLabel("chat126_users1","username");
408
+ $fdata["FieldType"] = 200;
409
+
410
+
411
+
412
+
413
+
414
+
415
+ $fdata["strField"] = "username";
416
+
417
+ $fdata["sourceSingle"] = "username";
418
+
419
+
420
+ $fdata["isSQLExpression"] = true;
421
+ $fdata["FullName"] = "username";
422
+
423
+
424
+
425
+ $fdata["UploadFolder"] = "files";
426
+
427
+ // Begin View Formats
428
+ $fdata["ViewFormats"] = array();
429
+
430
+ $vdata = array("ViewFormat" => "");
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+ $vdata["NeedEncode"] = true;
447
+
448
+
449
+ $vdata["truncateText"] = true;
450
+ $vdata["NumberOfChars"] = 80;
451
+
452
+ $fdata["ViewFormats"]["view"] = $vdata;
453
+ // End View Formats
454
+
455
+ // Begin Edit Formats
456
+ $fdata["EditFormats"] = array();
457
+
458
+ $edata = array("EditFormat" => "Text field");
459
+
460
+
461
+ $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
462
+ $edata["weekdays"] = "[]";
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+ $edata["acceptFileTypesHtml"] = "";
475
+
476
+ $edata["maxNumberOfFiles"] = 1;
477
+
478
+
479
+
480
+
481
+
482
+ $edata["HTML5InuptType"] = "text";
483
+
484
+ $edata["EditParams"] = "";
485
+ $edata["EditParams"].= " maxlength=255";
486
+
487
+ $edata["controlWidth"] = 200;
488
+
489
+ // Begin validation
490
+ $edata["validateAs"] = array();
491
+ $edata["validateAs"]["basicValidate"] = array();
492
+ $edata["validateAs"]["customMessages"] = array();
493
+
494
+
495
+ // End validation
496
+
497
+
498
+
499
+
500
+
501
+
502
+ $fdata["EditFormats"]["edit"] = $edata;
503
+ // End Edit Formats
504
+
505
+
506
+ $fdata["isSeparate"] = false;
507
+
508
+
509
+
510
+
511
+ // the field's search options settings
512
+ $fdata["defaultSearchOption"] = "Contains";
513
+
514
+ // the default search options list
515
+ $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
516
+ // the end of search options settings
517
+
518
+
519
+ //Filters settings
520
+ $fdata["filterTotals"] = 0;
521
+ $fdata["filterMultiSelect"] = 0;
522
+ $fdata["filterFormat"] = "Values list";
523
+ $fdata["showCollapsed"] = false;
524
+
525
+ $fdata["sortValueType"] = 0;
526
+ $fdata["numberOfVisibleItems"] = 10;
527
+
528
+ $fdata["filterBy"] = 0;
529
+
530
+
531
+
532
+
533
+
534
+ //end of Filters settings
535
+
536
+
537
+ $tdatachat126_users1["username"] = $fdata;
538
+ $tdatachat126_users1[".searchableFields"][] = "username";
539
+ // password
540
+ // Custom field settings
541
+ $fdata = array();
542
+ $fdata["Index"] = 3;
543
+ $fdata["strName"] = "password";
544
+ $fdata["GoodName"] = "password";
545
+ $fdata["ownerTable"] = "chat126_users1";
546
+ $fdata["Label"] = GetFieldLabel("chat126_users1","password");
547
+ $fdata["FieldType"] = 200;
548
+
549
+
550
+
551
+
552
+
553
+
554
+ $fdata["strField"] = "password";
555
+
556
+ $fdata["sourceSingle"] = "password";
557
+
558
+
559
+ $fdata["isSQLExpression"] = true;
560
+ $fdata["FullName"] = "password";
561
+
562
+
563
+
564
+ $fdata["UploadFolder"] = "files";
565
+
566
+ // Begin View Formats
567
+ $fdata["ViewFormats"] = array();
568
+
569
+ $vdata = array("ViewFormat" => "");
570
+
571
+
572
+
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+ $vdata["NeedEncode"] = true;
586
+
587
+
588
+ $vdata["truncateText"] = true;
589
+ $vdata["NumberOfChars"] = 80;
590
+
591
+ $fdata["ViewFormats"]["view"] = $vdata;
592
+ // End View Formats
593
+
594
+ // Begin Edit Formats
595
+ $fdata["EditFormats"] = array();
596
+
597
+ $edata = array("EditFormat" => "Password");
598
+
599
+
600
+ $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
601
+ $edata["weekdays"] = "[]";
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+ $edata["acceptFileTypesHtml"] = "";
614
+
615
+ $edata["maxNumberOfFiles"] = 1;
616
+
617
+
618
+
619
+
620
+
621
+
622
+ $edata["EditParams"] = "";
623
+ $edata["EditParams"].= " maxlength=255";
624
+
625
+ $edata["controlWidth"] = 200;
626
+
627
+ // Begin validation
628
+ $edata["validateAs"] = array();
629
+ $edata["validateAs"]["basicValidate"] = array();
630
+ $edata["validateAs"]["customMessages"] = array();
631
+
632
+
633
+ // End validation
634
+
635
+
636
+
637
+
638
+
639
+
640
+ $fdata["EditFormats"]["edit"] = $edata;
641
+ // End Edit Formats
642
+
643
+
644
+ $fdata["isSeparate"] = false;
645
+
646
+
647
+
648
+
649
+ // the field's search options settings
650
+ $fdata["defaultSearchOption"] = "Contains";
651
+
652
+ // the default search options list
653
+ $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
654
+ // the end of search options settings
655
+
656
+
657
+ //Filters settings
658
+ $fdata["filterTotals"] = 0;
659
+ $fdata["filterMultiSelect"] = 0;
660
+ $fdata["filterFormat"] = "Values list";
661
+ $fdata["showCollapsed"] = false;
662
+
663
+ $fdata["sortValueType"] = 0;
664
+ $fdata["numberOfVisibleItems"] = 10;
665
+
666
+ $fdata["filterBy"] = 0;
667
+
668
+
669
+
670
+
671
+
672
+ //end of Filters settings
673
+
674
+
675
+ $tdatachat126_users1["password"] = $fdata;
676
+ $tdatachat126_users1[".searchableFields"][] = "password";
677
+ // email
678
+ // Custom field settings
679
+ $fdata = array();
680
+ $fdata["Index"] = 4;
681
+ $fdata["strName"] = "email";
682
+ $fdata["GoodName"] = "email";
683
+ $fdata["ownerTable"] = "chat126_users1";
684
+ $fdata["Label"] = GetFieldLabel("chat126_users1","email");
685
+ $fdata["FieldType"] = 200;
686
+
687
+
688
+
689
+
690
+
691
+
692
+ $fdata["strField"] = "email";
693
+
694
+ $fdata["sourceSingle"] = "email";
695
+
696
+
697
+ $fdata["isSQLExpression"] = true;
698
+ $fdata["FullName"] = "email";
699
+
700
+
701
+
702
+ $fdata["UploadFolder"] = "files";
703
+
704
+ // Begin View Formats
705
+ $fdata["ViewFormats"] = array();
706
+
707
+ $vdata = array("ViewFormat" => "");
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+
722
+
723
+ $vdata["NeedEncode"] = true;
724
+
725
+
726
+ $vdata["truncateText"] = true;
727
+ $vdata["NumberOfChars"] = 80;
728
+
729
+ $fdata["ViewFormats"]["view"] = $vdata;
730
+ // End View Formats
731
+
732
+ // Begin Edit Formats
733
+ $fdata["EditFormats"] = array();
734
+
735
+ $edata = array("EditFormat" => "Text field");
736
+
737
+
738
+ $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
739
+ $edata["weekdays"] = "[]";
740
+
741
+
742
+
743
+
744
+
745
+
746
+
747
+
748
+
749
+
750
+
751
+ $edata["acceptFileTypesHtml"] = "";
752
+
753
+ $edata["maxNumberOfFiles"] = 1;
754
+
755
+
756
+
757
+
758
+
759
+ $edata["HTML5InuptType"] = "text";
760
+
761
+ $edata["EditParams"] = "";
762
+ $edata["EditParams"].= " maxlength=255";
763
+
764
+ $edata["controlWidth"] = 200;
765
+
766
+ // Begin validation
767
+ $edata["validateAs"] = array();
768
+ $edata["validateAs"]["basicValidate"] = array();
769
+ $edata["validateAs"]["customMessages"] = array();
770
+
771
+
772
+ // End validation
773
+
774
+
775
+
776
+
777
+
778
+
779
+ $fdata["EditFormats"]["edit"] = $edata;
780
+ // End Edit Formats
781
+
782
+
783
+ $fdata["isSeparate"] = false;
784
+
785
+
786
+
787
+
788
+ // the field's search options settings
789
+ $fdata["defaultSearchOption"] = "Contains";
790
+
791
+ // the default search options list
792
+ $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
793
+ // the end of search options settings
794
+
795
+
796
+ //Filters settings
797
+ $fdata["filterTotals"] = 0;
798
+ $fdata["filterMultiSelect"] = 0;
799
+ $fdata["filterFormat"] = "Values list";
800
+ $fdata["showCollapsed"] = false;
801
+
802
+ $fdata["sortValueType"] = 0;
803
+ $fdata["numberOfVisibleItems"] = 10;
804
+
805
+ $fdata["filterBy"] = 0;
806
+
807
+
808
+
809
+
810
+
811
+ //end of Filters settings
812
+
813
+
814
+ $tdatachat126_users1["email"] = $fdata;
815
+ $tdatachat126_users1[".searchableFields"][] = "email";
816
+ // fullname
817
+ // Custom field settings
818
+ $fdata = array();
819
+ $fdata["Index"] = 5;
820
+ $fdata["strName"] = "fullname";
821
+ $fdata["GoodName"] = "fullname";
822
+ $fdata["ownerTable"] = "chat126_users1";
823
+ $fdata["Label"] = GetFieldLabel("chat126_users1","fullname");
824
+ $fdata["FieldType"] = 200;
825
+
826
+
827
+
828
+
829
+
830
+
831
+ $fdata["strField"] = "fullname";
832
+
833
+ $fdata["sourceSingle"] = "fullname";
834
+
835
+
836
+ $fdata["isSQLExpression"] = true;
837
+ $fdata["FullName"] = "fullname";
838
+
839
+
840
+
841
+ $fdata["UploadFolder"] = "files";
842
+
843
+ // Begin View Formats
844
+ $fdata["ViewFormats"] = array();
845
+
846
+ $vdata = array("ViewFormat" => "");
847
+
848
+
849
+
850
+
851
+
852
+
853
+
854
+
855
+
856
+
857
+
858
+
859
+
860
+
861
+
862
+ $vdata["NeedEncode"] = true;
863
+
864
+
865
+ $vdata["truncateText"] = true;
866
+ $vdata["NumberOfChars"] = 80;
867
+
868
+ $fdata["ViewFormats"]["view"] = $vdata;
869
+ // End View Formats
870
+
871
+ // Begin Edit Formats
872
+ $fdata["EditFormats"] = array();
873
+
874
+ $edata = array("EditFormat" => "Text field");
875
+
876
+
877
+ $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
878
+ $edata["weekdays"] = "[]";
879
+
880
+
881
+
882
+
883
+
884
+
885
+
886
+
887
+
888
+
889
+
890
+ $edata["acceptFileTypesHtml"] = "";
891
+
892
+ $edata["maxNumberOfFiles"] = 1;
893
+
894
+
895
+
896
+
897
+
898
+ $edata["HTML5InuptType"] = "text";
899
+
900
+ $edata["EditParams"] = "";
901
+ $edata["EditParams"].= " maxlength=255";
902
+
903
+ $edata["controlWidth"] = 200;
904
+
905
+ // Begin validation
906
+ $edata["validateAs"] = array();
907
+ $edata["validateAs"]["basicValidate"] = array();
908
+ $edata["validateAs"]["customMessages"] = array();
909
+
910
+
911
+ // End validation
912
+
913
+
914
+
915
+
916
+
917
+
918
+ $fdata["EditFormats"]["edit"] = $edata;
919
+ // End Edit Formats
920
+
921
+
922
+ $fdata["isSeparate"] = false;
923
+
924
+
925
+
926
+
927
+ // the field's search options settings
928
+ $fdata["defaultSearchOption"] = "Contains";
929
+
930
+ // the default search options list
931
+ $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
932
+ // the end of search options settings
933
+
934
+
935
+ //Filters settings
936
+ $fdata["filterTotals"] = 0;
937
+ $fdata["filterMultiSelect"] = 0;
938
+ $fdata["filterFormat"] = "Values list";
939
+ $fdata["showCollapsed"] = false;
940
+
941
+ $fdata["sortValueType"] = 0;
942
+ $fdata["numberOfVisibleItems"] = 10;
943
+
944
+ $fdata["filterBy"] = 0;
945
+
946
+
947
+
948
+
949
+
950
+ //end of Filters settings
951
+
952
+
953
+ $tdatachat126_users1["fullname"] = $fdata;
954
+ $tdatachat126_users1[".searchableFields"][] = "fullname";
955
+ // groupid
956
+ // Custom field settings
957
+ $fdata = array();
958
+ $fdata["Index"] = 6;
959
+ $fdata["strName"] = "groupid";
960
+ $fdata["GoodName"] = "groupid";
961
+ $fdata["ownerTable"] = "chat126_users1";
962
+ $fdata["Label"] = GetFieldLabel("chat126_users1","groupid");
963
+ $fdata["FieldType"] = 200;
964
+
965
+
966
+
967
+
968
+
969
+
970
+ $fdata["strField"] = "groupid";
971
+
972
+ $fdata["sourceSingle"] = "groupid";
973
+
974
+
975
+ $fdata["isSQLExpression"] = true;
976
+ $fdata["FullName"] = "groupid";
977
+
978
+
979
+
980
+ $fdata["UploadFolder"] = "files";
981
+
982
+ // Begin View Formats
983
+ $fdata["ViewFormats"] = array();
984
+
985
+ $vdata = array("ViewFormat" => "");
986
+
987
+
988
+
989
+
990
+
991
+
992
+
993
+
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+ $vdata["NeedEncode"] = true;
1002
+
1003
+
1004
+ $vdata["truncateText"] = true;
1005
+ $vdata["NumberOfChars"] = 80;
1006
+
1007
+ $fdata["ViewFormats"]["view"] = $vdata;
1008
+ // End View Formats
1009
+
1010
+ // Begin Edit Formats
1011
+ $fdata["EditFormats"] = array();
1012
+
1013
+ $edata = array("EditFormat" => "Text field");
1014
+
1015
+
1016
+ $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
1017
+ $edata["weekdays"] = "[]";
1018
+
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+ $edata["acceptFileTypesHtml"] = "";
1030
+
1031
+ $edata["maxNumberOfFiles"] = 1;
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+ $edata["HTML5InuptType"] = "text";
1038
+
1039
+ $edata["EditParams"] = "";
1040
+ $edata["EditParams"].= " maxlength=255";
1041
+
1042
+ $edata["controlWidth"] = 200;
1043
+
1044
+ // Begin validation
1045
+ $edata["validateAs"] = array();
1046
+ $edata["validateAs"]["basicValidate"] = array();
1047
+ $edata["validateAs"]["customMessages"] = array();
1048
+
1049
+
1050
+ // End validation
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+ $fdata["EditFormats"]["edit"] = $edata;
1058
+ // End Edit Formats
1059
+
1060
+
1061
+ $fdata["isSeparate"] = false;
1062
+
1063
+
1064
+
1065
+
1066
+ // the field's search options settings
1067
+ $fdata["defaultSearchOption"] = "Contains";
1068
+
1069
+ // the default search options list
1070
+ $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
1071
+ // the end of search options settings
1072
+
1073
+
1074
+ //Filters settings
1075
+ $fdata["filterTotals"] = 0;
1076
+ $fdata["filterMultiSelect"] = 0;
1077
+ $fdata["filterFormat"] = "Values list";
1078
+ $fdata["showCollapsed"] = false;
1079
+
1080
+ $fdata["sortValueType"] = 0;
1081
+ $fdata["numberOfVisibleItems"] = 10;
1082
+
1083
+ $fdata["filterBy"] = 0;
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+ //end of Filters settings
1090
+
1091
+
1092
+ $tdatachat126_users1["groupid"] = $fdata;
1093
+ $tdatachat126_users1[".searchableFields"][] = "groupid";
1094
+ // active
1095
+ // Custom field settings
1096
+ $fdata = array();
1097
+ $fdata["Index"] = 7;
1098
+ $fdata["strName"] = "active";
1099
+ $fdata["GoodName"] = "active";
1100
+ $fdata["ownerTable"] = "chat126_users1";
1101
+ $fdata["Label"] = GetFieldLabel("chat126_users1","active");
1102
+ $fdata["FieldType"] = 3;
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+ $fdata["strField"] = "active";
1110
+
1111
+ $fdata["sourceSingle"] = "active";
1112
+
1113
+
1114
+ $fdata["isSQLExpression"] = true;
1115
+ $fdata["FullName"] = "active";
1116
+
1117
+
1118
+
1119
+ $fdata["UploadFolder"] = "files";
1120
+
1121
+ // Begin View Formats
1122
+ $fdata["ViewFormats"] = array();
1123
+
1124
+ $vdata = array("ViewFormat" => "");
1125
+
1126
+
1127
+
1128
+
1129
+
1130
+
1131
+
1132
+
1133
+
1134
+
1135
+
1136
+
1137
+
1138
+
1139
+
1140
+ $vdata["NeedEncode"] = true;
1141
+
1142
+
1143
+ $vdata["truncateText"] = true;
1144
+ $vdata["NumberOfChars"] = 80;
1145
+
1146
+ $fdata["ViewFormats"]["view"] = $vdata;
1147
+ // End View Formats
1148
+
1149
+ // Begin Edit Formats
1150
+ $fdata["EditFormats"] = array();
1151
+
1152
+ $edata = array("EditFormat" => "Text field");
1153
+
1154
+
1155
+ $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
1156
+ $edata["weekdays"] = "[]";
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+ $edata["acceptFileTypesHtml"] = "";
1169
+
1170
+ $edata["maxNumberOfFiles"] = 1;
1171
+
1172
+
1173
+
1174
+
1175
+
1176
+ $edata["HTML5InuptType"] = "text";
1177
+
1178
+ $edata["EditParams"] = "";
1179
+
1180
+ $edata["controlWidth"] = 200;
1181
+
1182
+ // Begin validation
1183
+ $edata["validateAs"] = array();
1184
+ $edata["validateAs"]["basicValidate"] = array();
1185
+ $edata["validateAs"]["customMessages"] = array();
1186
+ $edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
1187
+
1188
+
1189
+ // End validation
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+
1196
+ $fdata["EditFormats"]["edit"] = $edata;
1197
+ // End Edit Formats
1198
+
1199
+
1200
+ $fdata["isSeparate"] = false;
1201
+
1202
+
1203
+
1204
+
1205
+ // the field's search options settings
1206
+ $fdata["defaultSearchOption"] = "Contains";
1207
+
1208
+ // the default search options list
1209
+ $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
1210
+ // the end of search options settings
1211
+
1212
+
1213
+ //Filters settings
1214
+ $fdata["filterTotals"] = 0;
1215
+ $fdata["filterMultiSelect"] = 0;
1216
+ $fdata["filterFormat"] = "Values list";
1217
+ $fdata["showCollapsed"] = false;
1218
+
1219
+ $fdata["sortValueType"] = 0;
1220
+ $fdata["numberOfVisibleItems"] = 10;
1221
+
1222
+ $fdata["filterBy"] = 0;
1223
+
1224
+
1225
+
1226
+
1227
+
1228
+ //end of Filters settings
1229
+
1230
+
1231
+ $tdatachat126_users1["active"] = $fdata;
1232
+ $tdatachat126_users1[".searchableFields"][] = "active";
1233
+ // ext_security_id
1234
+ // Custom field settings
1235
+ $fdata = array();
1236
+ $fdata["Index"] = 8;
1237
+ $fdata["strName"] = "ext_security_id";
1238
+ $fdata["GoodName"] = "ext_security_id";
1239
+ $fdata["ownerTable"] = "chat126_users1";
1240
+ $fdata["Label"] = GetFieldLabel("chat126_users1","ext_security_id");
1241
+ $fdata["FieldType"] = 200;
1242
+
1243
+
1244
+
1245
+
1246
+
1247
+
1248
+ $fdata["strField"] = "ext_security_id";
1249
+
1250
+ $fdata["sourceSingle"] = "ext_security_id";
1251
+
1252
+
1253
+ $fdata["isSQLExpression"] = true;
1254
+ $fdata["FullName"] = "ext_security_id";
1255
+
1256
+
1257
+
1258
+ $fdata["UploadFolder"] = "files";
1259
+
1260
+ // Begin View Formats
1261
+ $fdata["ViewFormats"] = array();
1262
+
1263
+ $vdata = array("ViewFormat" => "");
1264
+
1265
+
1266
+
1267
+
1268
+
1269
+
1270
+
1271
+
1272
+
1273
+
1274
+
1275
+
1276
+
1277
+
1278
+
1279
+ $vdata["NeedEncode"] = true;
1280
+
1281
+
1282
+ $vdata["truncateText"] = true;
1283
+ $vdata["NumberOfChars"] = 80;
1284
+
1285
+ $fdata["ViewFormats"]["view"] = $vdata;
1286
+ // End View Formats
1287
+
1288
+ // Begin Edit Formats
1289
+ $fdata["EditFormats"] = array();
1290
+
1291
+ $edata = array("EditFormat" => "Text field");
1292
+
1293
+
1294
+ $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
1295
+ $edata["weekdays"] = "[]";
1296
+
1297
+
1298
+
1299
+
1300
+
1301
+
1302
+
1303
+
1304
+
1305
+
1306
+
1307
+ $edata["acceptFileTypesHtml"] = "";
1308
+
1309
+ $edata["maxNumberOfFiles"] = 1;
1310
+
1311
+
1312
+
1313
+
1314
+
1315
+ $edata["HTML5InuptType"] = "text";
1316
+
1317
+ $edata["EditParams"] = "";
1318
+ $edata["EditParams"].= " maxlength=100";
1319
+
1320
+ $edata["controlWidth"] = 200;
1321
+
1322
+ // Begin validation
1323
+ $edata["validateAs"] = array();
1324
+ $edata["validateAs"]["basicValidate"] = array();
1325
+ $edata["validateAs"]["customMessages"] = array();
1326
+
1327
+
1328
+ // End validation
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+ $fdata["EditFormats"]["edit"] = $edata;
1336
+ // End Edit Formats
1337
+
1338
+
1339
+ $fdata["isSeparate"] = false;
1340
+
1341
+
1342
+
1343
+
1344
+ // the field's search options settings
1345
+ $fdata["defaultSearchOption"] = "Contains";
1346
+
1347
+ // the default search options list
1348
+ $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
1349
+ // the end of search options settings
1350
+
1351
+
1352
+ //Filters settings
1353
+ $fdata["filterTotals"] = 0;
1354
+ $fdata["filterMultiSelect"] = 0;
1355
+ $fdata["filterFormat"] = "Values list";
1356
+ $fdata["showCollapsed"] = false;
1357
+
1358
+ $fdata["sortValueType"] = 0;
1359
+ $fdata["numberOfVisibleItems"] = 10;
1360
+
1361
+ $fdata["filterBy"] = 0;
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+ //end of Filters settings
1368
+
1369
+
1370
+ $tdatachat126_users1["ext_security_id"] = $fdata;
1371
+ $tdatachat126_users1[".searchableFields"][] = "ext_security_id";
1372
+
1373
+
1374
+ $tables_data["chat126_users1"]=&$tdatachat126_users1;
1375
+ $field_labels["chat126_users1"] = &$fieldLabelschat126_users1;
1376
+ $fieldToolTips["chat126_users1"] = &$fieldToolTipschat126_users1;
1377
+ $placeHolders["chat126_users1"] = &$placeHolderschat126_users1;
1378
+ $page_titles["chat126_users1"] = &$pageTitleschat126_users1;
1379
+
1380
+
1381
+ changeTextControlsToDate( "chat126_users1" );
1382
+
1383
+ // -----------------start prepare master-details data arrays ------------------------------//
1384
+ // tables which are detail tables for current table (master)
1385
+
1386
1387
+
1388
+ $detailsTablesData["chat126_users1"] = array();
1389
+ //endif
1390
+
1391
+ // tables which are master tables for current table (detail)
1392
+ $masterTablesData["chat126_users1"] = array();
1393
+
1394
+
1395
+
1396
+ // -----------------end prepare master-details data arrays ------------------------------//
1397
+
1398
+
1399
+
1400
+ require_once(getabspath("classes/sql.php"));
1401
+
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+ function createSqlQuery_chat126_users1()
1413
+ {
1414
+ $proto0=array();
1415
+ $proto0["m_strHead"] = "SELECT";
1416
+ $proto0["m_strFieldList"] = "ID, username, password, email, fullname, groupid, active, ext_security_id";
1417
+ $proto0["m_strFrom"] = "FROM chat126_users1";
1418
+ $proto0["m_strWhere"] = "";
1419
+ $proto0["m_strOrderBy"] = "";
1420
+
1421
+ ;
1422
+ $proto0["cipherer"] = null;
1423
+ $proto2=array();
1424
+ $proto2["m_sql"] = "";
1425
+ $proto2["m_uniontype"] = "SQLL_UNKNOWN";
1426
+ $obj = new SQLNonParsed(array(
1427
+ "m_sql" => ""
1428
+ ));
1429
+
1430
+ $proto2["m_column"]=$obj;
1431
+ $proto2["m_contained"] = array();
1432
+ $proto2["m_strCase"] = "";
1433
+ $proto2["m_havingmode"] = false;
1434
+ $proto2["m_inBrackets"] = false;
1435
+ $proto2["m_useAlias"] = false;
1436
+ $obj = new SQLLogicalExpr($proto2);
1437
+
1438
+ $proto0["m_where"] = $obj;
1439
+ $proto4=array();
1440
+ $proto4["m_sql"] = "";
1441
+ $proto4["m_uniontype"] = "SQLL_UNKNOWN";
1442
+ $obj = new SQLNonParsed(array(
1443
+ "m_sql" => ""
1444
+ ));
1445
+
1446
+ $proto4["m_column"]=$obj;
1447
+ $proto4["m_contained"] = array();
1448
+ $proto4["m_strCase"] = "";
1449
+ $proto4["m_havingmode"] = false;
1450
+ $proto4["m_inBrackets"] = false;
1451
+ $proto4["m_useAlias"] = false;
1452
+ $obj = new SQLLogicalExpr($proto4);
1453
+
1454
+ $proto0["m_having"] = $obj;
1455
+ $proto0["m_fieldlist"] = array();
1456
+ $proto6=array();
1457
+ $obj = new SQLField(array(
1458
+ "m_strName" => "ID",
1459
+ "m_strTable" => "chat126_users1",
1460
+ "m_srcTableName" => "chat126_users1"
1461
+ ));
1462
+
1463
+ $proto6["m_sql"] = "ID";
1464
+ $proto6["m_srcTableName"] = "chat126_users1";
1465
+ $proto6["m_expr"]=$obj;
1466
+ $proto6["m_alias"] = "";
1467
+ $obj = new SQLFieldListItem($proto6);
1468
+
1469
+ $proto0["m_fieldlist"][]=$obj;
1470
+ $proto8=array();
1471
+ $obj = new SQLField(array(
1472
+ "m_strName" => "username",
1473
+ "m_strTable" => "chat126_users1",
1474
+ "m_srcTableName" => "chat126_users1"
1475
+ ));
1476
+
1477
+ $proto8["m_sql"] = "username";
1478
+ $proto8["m_srcTableName"] = "chat126_users1";
1479
+ $proto8["m_expr"]=$obj;
1480
+ $proto8["m_alias"] = "";
1481
+ $obj = new SQLFieldListItem($proto8);
1482
+
1483
+ $proto0["m_fieldlist"][]=$obj;
1484
+ $proto10=array();
1485
+ $obj = new SQLField(array(
1486
+ "m_strName" => "password",
1487
+ "m_strTable" => "chat126_users1",
1488
+ "m_srcTableName" => "chat126_users1"
1489
+ ));
1490
+
1491
+ $proto10["m_sql"] = "password";
1492
+ $proto10["m_srcTableName"] = "chat126_users1";
1493
+ $proto10["m_expr"]=$obj;
1494
+ $proto10["m_alias"] = "";
1495
+ $obj = new SQLFieldListItem($proto10);
1496
+
1497
+ $proto0["m_fieldlist"][]=$obj;
1498
+ $proto12=array();
1499
+ $obj = new SQLField(array(
1500
+ "m_strName" => "email",
1501
+ "m_strTable" => "chat126_users1",
1502
+ "m_srcTableName" => "chat126_users1"
1503
+ ));
1504
+
1505
+ $proto12["m_sql"] = "email";
1506
+ $proto12["m_srcTableName"] = "chat126_users1";
1507
+ $proto12["m_expr"]=$obj;
1508
+ $proto12["m_alias"] = "";
1509
+ $obj = new SQLFieldListItem($proto12);
1510
+
1511
+ $proto0["m_fieldlist"][]=$obj;
1512
+ $proto14=array();
1513
+ $obj = new SQLField(array(
1514
+ "m_strName" => "fullname",
1515
+ "m_strTable" => "chat126_users1",
1516
+ "m_srcTableName" => "chat126_users1"
1517
+ ));
1518
+
1519
+ $proto14["m_sql"] = "fullname";
1520
+ $proto14["m_srcTableName"] = "chat126_users1";
1521
+ $proto14["m_expr"]=$obj;
1522
+ $proto14["m_alias"] = "";
1523
+ $obj = new SQLFieldListItem($proto14);
1524
+
1525
+ $proto0["m_fieldlist"][]=$obj;
1526
+ $proto16=array();
1527
+ $obj = new SQLField(array(
1528
+ "m_strName" => "groupid",
1529
+ "m_strTable" => "chat126_users1",
1530
+ "m_srcTableName" => "chat126_users1"
1531
+ ));
1532
+
1533
+ $proto16["m_sql"] = "groupid";
1534
+ $proto16["m_srcTableName"] = "chat126_users1";
1535
+ $proto16["m_expr"]=$obj;
1536
+ $proto16["m_alias"] = "";
1537
+ $obj = new SQLFieldListItem($proto16);
1538
+
1539
+ $proto0["m_fieldlist"][]=$obj;
1540
+ $proto18=array();
1541
+ $obj = new SQLField(array(
1542
+ "m_strName" => "active",
1543
+ "m_strTable" => "chat126_users1",
1544
+ "m_srcTableName" => "chat126_users1"
1545
+ ));
1546
+
1547
+ $proto18["m_sql"] = "active";
1548
+ $proto18["m_srcTableName"] = "chat126_users1";
1549
+ $proto18["m_expr"]=$obj;
1550
+ $proto18["m_alias"] = "";
1551
+ $obj = new SQLFieldListItem($proto18);
1552
+
1553
+ $proto0["m_fieldlist"][]=$obj;
1554
+ $proto20=array();
1555
+ $obj = new SQLField(array(
1556
+ "m_strName" => "ext_security_id",
1557
+ "m_strTable" => "chat126_users1",
1558
+ "m_srcTableName" => "chat126_users1"
1559
+ ));
1560
+
1561
+ $proto20["m_sql"] = "ext_security_id";
1562
+ $proto20["m_srcTableName"] = "chat126_users1";
1563
+ $proto20["m_expr"]=$obj;
1564
+ $proto20["m_alias"] = "";
1565
+ $obj = new SQLFieldListItem($proto20);
1566
+
1567
+ $proto0["m_fieldlist"][]=$obj;
1568
+ $proto0["m_fromlist"] = array();
1569
+ $proto22=array();
1570
+ $proto22["m_link"] = "SQLL_MAIN";
1571
+ $proto23=array();
1572
+ $proto23["m_strName"] = "chat126_users1";
1573
+ $proto23["m_srcTableName"] = "chat126_users1";
1574
+ $proto23["m_columns"] = array();
1575
+ $proto23["m_columns"][] = "ID";
1576
+ $proto23["m_columns"][] = "username";
1577
+ $proto23["m_columns"][] = "password";
1578
+ $proto23["m_columns"][] = "email";
1579
+ $proto23["m_columns"][] = "fullname";
1580
+ $proto23["m_columns"][] = "groupid";
1581
+ $proto23["m_columns"][] = "active";
1582
+ $proto23["m_columns"][] = "ext_security_id";
1583
+ $obj = new SQLTable($proto23);
1584
+
1585
+ $proto22["m_table"] = $obj;
1586
+ $proto22["m_sql"] = "chat126_users1";
1587
+ $proto22["m_alias"] = "";
1588
+ $proto22["m_srcTableName"] = "chat126_users1";
1589
+ $proto24=array();
1590
+ $proto24["m_sql"] = "";
1591
+ $proto24["m_uniontype"] = "SQLL_UNKNOWN";
1592
+ $obj = new SQLNonParsed(array(
1593
+ "m_sql" => ""
1594
+ ));
1595
+
1596
+ $proto24["m_column"]=$obj;
1597
+ $proto24["m_contained"] = array();
1598
+ $proto24["m_strCase"] = "";
1599
+ $proto24["m_havingmode"] = false;
1600
+ $proto24["m_inBrackets"] = false;
1601
+ $proto24["m_useAlias"] = false;
1602
+ $obj = new SQLLogicalExpr($proto24);
1603
+
1604
+ $proto22["m_joinon"] = $obj;
1605
+ $obj = new SQLFromListItem($proto22);
1606
+
1607
+ $proto0["m_fromlist"][]=$obj;
1608
+ $proto0["m_groupby"] = array();
1609
+ $proto0["m_orderby"] = array();
1610
+ $proto0["m_srcTableName"]="chat126_users1";
1611
+ $obj = new SQLQuery($proto0);
1612
+
1613
+ return $obj;
1614
+ }
1615
+ $queryData_chat126_users1 = createSqlQuery_chat126_users1();
1616
+
1617
+
1618
+
1619
+ ;
1620
+
1621
+
1622
+
1623
+ $tdatachat126_users1[".sqlquery"] = $queryData_chat126_users1;
1624
+
1625
+
1626
+
1627
+ $tdatachat126_users1[".hasEvents"] = false;
1628
+
1629
+ ?>
php/include/chat126_users1_variables.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $strTableName="chat126_users1";
3
+ $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
+
5
+ $strOriginalTableName="chat126_users1";
6
+
7
+ $gstrOrderBy="";
8
+ if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
9
+ $gstrOrderBy="order by ".$gstrOrderBy;
10
+
11
+ $reportCaseSensitiveGroupFields = false;
12
+
13
+ ?>
php/include/chat_files_settings.php CHANGED
@@ -3,14 +3,14 @@ $tdatachat_files = array();
3
  $tdatachat_files[".searchableFields"] = array();
4
  $tdatachat_files[".ShortName"] = "chat_files";
5
  $tdatachat_files[".OwnerID"] = "";
6
- $tdatachat_files[".OriginalTable"] = "public.chat_files";
7
 
8
 
9
- $tdatachat_files[".pagesByType"] = my_json_decode( "{}" );
10
  $tdatachat_files[".originalPagesByType"] = $tdatachat_files[".pagesByType"];
11
- $tdatachat_files[".pages"] = types2pages( my_json_decode( "{}" ) );
12
  $tdatachat_files[".originalPages"] = $tdatachat_files[".pages"];
13
- $tdatachat_files[".defaultPages"] = my_json_decode( "{}" );
14
  $tdatachat_files[".originalDefaultPages"] = $tdatachat_files[".defaultPages"];
15
 
16
  // field labels
@@ -47,11 +47,11 @@ $tdatachat_files[".shortTableName"] = "chat_files";
47
  $tdatachat_files[".nSecOptions"] = 0;
48
 
49
  $tdatachat_files[".mainTableOwnerID"] = "";
50
- $tdatachat_files[".entityType"] = 1;
51
- $tdatachat_files[".connId"] = "KnowledgeBase2_at_localhost";
52
 
53
 
54
- $tdatachat_files[".strOriginalTableName"] = "public.chat_files";
55
 
56
 
57
 
@@ -67,7 +67,7 @@ $tdatachat_files[".listAjax"] = false;
67
  // temporary
68
  //$tdatachat_files[".listAjax"] = false;
69
 
70
- $tdatachat_files[".audit"] = true;
71
 
72
  $tdatachat_files[".locking"] = false;
73
 
@@ -131,7 +131,7 @@ $tdatachat_files[".isUseAjaxSuggest"] = true;
131
 
132
 
133
 
134
-
135
 
136
  $tdatachat_files[".ajaxCodeSnippetAdded"] = false;
137
 
@@ -187,7 +187,7 @@ $tdatachat_files[".strOrderBy"] = $tstrOrderBy;
187
  $tdatachat_files[".orderindexes"] = array();
188
 
189
 
190
- $tdatachat_files[".sqlHead"] = "SELECT id, messageid, files";
191
  $tdatachat_files[".sqlFrom"] = "FROM chat_files";
192
  $tdatachat_files[".sqlWhereExpr"] = "";
193
  $tdatachat_files[".sqlTail"] = "";
@@ -241,7 +241,7 @@ $tdatachat_files[".hideMobileList"] = array();
241
  $fdata["Index"] = 1;
242
  $fdata["strName"] = "id";
243
  $fdata["GoodName"] = "id";
244
- $fdata["ownerTable"] = "public.chat_files";
245
  $fdata["Label"] = GetFieldLabel("chat_files","id");
246
  $fdata["FieldType"] = 3;
247
 
@@ -383,7 +383,7 @@ $tdatachat_files[".hideMobileList"] = array();
383
  $fdata["Index"] = 2;
384
  $fdata["strName"] = "messageid";
385
  $fdata["GoodName"] = "messageid";
386
- $fdata["ownerTable"] = "public.chat_files";
387
  $fdata["Label"] = GetFieldLabel("chat_files","messageid");
388
  $fdata["FieldType"] = 3;
389
 
@@ -522,7 +522,7 @@ $tdatachat_files[".hideMobileList"] = array();
522
  $fdata["Index"] = 3;
523
  $fdata["strName"] = "files";
524
  $fdata["GoodName"] = "files";
525
- $fdata["ownerTable"] = "public.chat_files";
526
  $fdata["Label"] = GetFieldLabel("chat_files","files");
527
  $fdata["FieldType"] = 200;
528
 
@@ -696,7 +696,7 @@ function createSqlQuery_chat_files()
696
  {
697
  $proto0=array();
698
  $proto0["m_strHead"] = "SELECT";
699
- $proto0["m_strFieldList"] = "id, messageid, files";
700
  $proto0["m_strFrom"] = "FROM chat_files";
701
  $proto0["m_strWhere"] = "";
702
  $proto0["m_strOrderBy"] = "";
@@ -739,7 +739,7 @@ $proto0["m_fieldlist"] = array();
739
  $proto6=array();
740
  $obj = new SQLField(array(
741
  "m_strName" => "id",
742
- "m_strTable" => "public.chat_files",
743
  "m_srcTableName" => "chat_files"
744
  ));
745
 
@@ -753,7 +753,7 @@ $proto0["m_fieldlist"][]=$obj;
753
  $proto8=array();
754
  $obj = new SQLField(array(
755
  "m_strName" => "messageid",
756
- "m_strTable" => "public.chat_files",
757
  "m_srcTableName" => "chat_files"
758
  ));
759
 
@@ -767,7 +767,7 @@ $proto0["m_fieldlist"][]=$obj;
767
  $proto10=array();
768
  $obj = new SQLField(array(
769
  "m_strName" => "files",
770
- "m_strTable" => "public.chat_files",
771
  "m_srcTableName" => "chat_files"
772
  ));
773
 
@@ -782,7 +782,7 @@ $proto0["m_fromlist"] = array();
782
  $proto12=array();
783
  $proto12["m_link"] = "SQLL_MAIN";
784
  $proto13=array();
785
- $proto13["m_strName"] = "public.chat_files";
786
  $proto13["m_srcTableName"] = "chat_files";
787
  $proto13["m_columns"] = array();
788
  $proto13["m_columns"][] = "id";
 
3
  $tdatachat_files[".searchableFields"] = array();
4
  $tdatachat_files[".ShortName"] = "chat_files";
5
  $tdatachat_files[".OwnerID"] = "";
6
+ $tdatachat_files[".OriginalTable"] = "chat_files";
7
 
8
 
9
+ $tdatachat_files[".pagesByType"] = my_json_decode( "{\"list\":[\"list\"],\"search\":[\"search\"]}" );
10
  $tdatachat_files[".originalPagesByType"] = $tdatachat_files[".pagesByType"];
11
+ $tdatachat_files[".pages"] = types2pages( my_json_decode( "{\"list\":[\"list\"],\"search\":[\"search\"]}" ) );
12
  $tdatachat_files[".originalPages"] = $tdatachat_files[".pages"];
13
+ $tdatachat_files[".defaultPages"] = my_json_decode( "{\"list\":\"list\",\"search\":\"search\"}" );
14
  $tdatachat_files[".originalDefaultPages"] = $tdatachat_files[".defaultPages"];
15
 
16
  // field labels
 
47
  $tdatachat_files[".nSecOptions"] = 0;
48
 
49
  $tdatachat_files[".mainTableOwnerID"] = "";
50
+ $tdatachat_files[".entityType"] = 0;
51
+ $tdatachat_files[".connId"] = "chats_at_localhost";
52
 
53
 
54
+ $tdatachat_files[".strOriginalTableName"] = "chat_files";
55
 
56
 
57
 
 
67
  // temporary
68
  //$tdatachat_files[".listAjax"] = false;
69
 
70
+ $tdatachat_files[".audit"] = false;
71
 
72
  $tdatachat_files[".locking"] = false;
73
 
 
131
 
132
 
133
 
134
+
135
 
136
  $tdatachat_files[".ajaxCodeSnippetAdded"] = false;
137
 
 
187
  $tdatachat_files[".orderindexes"] = array();
188
 
189
 
190
+ $tdatachat_files[".sqlHead"] = "SELECT id, messageid, files";
191
  $tdatachat_files[".sqlFrom"] = "FROM chat_files";
192
  $tdatachat_files[".sqlWhereExpr"] = "";
193
  $tdatachat_files[".sqlTail"] = "";
 
241
  $fdata["Index"] = 1;
242
  $fdata["strName"] = "id";
243
  $fdata["GoodName"] = "id";
244
+ $fdata["ownerTable"] = "chat_files";
245
  $fdata["Label"] = GetFieldLabel("chat_files","id");
246
  $fdata["FieldType"] = 3;
247
 
 
383
  $fdata["Index"] = 2;
384
  $fdata["strName"] = "messageid";
385
  $fdata["GoodName"] = "messageid";
386
+ $fdata["ownerTable"] = "chat_files";
387
  $fdata["Label"] = GetFieldLabel("chat_files","messageid");
388
  $fdata["FieldType"] = 3;
389
 
 
522
  $fdata["Index"] = 3;
523
  $fdata["strName"] = "files";
524
  $fdata["GoodName"] = "files";
525
+ $fdata["ownerTable"] = "chat_files";
526
  $fdata["Label"] = GetFieldLabel("chat_files","files");
527
  $fdata["FieldType"] = 200;
528
 
 
696
  {
697
  $proto0=array();
698
  $proto0["m_strHead"] = "SELECT";
699
+ $proto0["m_strFieldList"] = "id, messageid, files";
700
  $proto0["m_strFrom"] = "FROM chat_files";
701
  $proto0["m_strWhere"] = "";
702
  $proto0["m_strOrderBy"] = "";
 
739
  $proto6=array();
740
  $obj = new SQLField(array(
741
  "m_strName" => "id",
742
+ "m_strTable" => "chat_files",
743
  "m_srcTableName" => "chat_files"
744
  ));
745
 
 
753
  $proto8=array();
754
  $obj = new SQLField(array(
755
  "m_strName" => "messageid",
756
+ "m_strTable" => "chat_files",
757
  "m_srcTableName" => "chat_files"
758
  ));
759
 
 
767
  $proto10=array();
768
  $obj = new SQLField(array(
769
  "m_strName" => "files",
770
+ "m_strTable" => "chat_files",
771
  "m_srcTableName" => "chat_files"
772
  ));
773
 
 
782
  $proto12=array();
783
  $proto12["m_link"] = "SQLL_MAIN";
784
  $proto13=array();
785
+ $proto13["m_strName"] = "chat_files";
786
  $proto13["m_srcTableName"] = "chat_files";
787
  $proto13["m_columns"] = array();
788
  $proto13["m_columns"][] = "id";
php/include/chat_files_variables.php CHANGED
@@ -2,7 +2,7 @@
2
  $strTableName="chat_files";
3
  $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
 
5
- $strOriginalTableName="public.chat_files";
6
 
7
  $gstrOrderBy="";
8
  if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
 
2
  $strTableName="chat_files";
3
  $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
 
5
+ $strOriginalTableName="chat_files";
6
 
7
  $gstrOrderBy="";
8
  if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
php/include/chat_groups_settings.php CHANGED
@@ -3,14 +3,14 @@ $tdatachat_groups = array();
3
  $tdatachat_groups[".searchableFields"] = array();
4
  $tdatachat_groups[".ShortName"] = "chat_groups";
5
  $tdatachat_groups[".OwnerID"] = "";
6
- $tdatachat_groups[".OriginalTable"] = "public.chat_groups";
7
 
8
 
9
- $tdatachat_groups[".pagesByType"] = my_json_decode( "{}" );
10
  $tdatachat_groups[".originalPagesByType"] = $tdatachat_groups[".pagesByType"];
11
- $tdatachat_groups[".pages"] = types2pages( my_json_decode( "{}" ) );
12
  $tdatachat_groups[".originalPages"] = $tdatachat_groups[".pages"];
13
- $tdatachat_groups[".defaultPages"] = my_json_decode( "{}" );
14
  $tdatachat_groups[".originalDefaultPages"] = $tdatachat_groups[".defaultPages"];
15
 
16
  // field labels
@@ -53,11 +53,11 @@ $tdatachat_groups[".shortTableName"] = "chat_groups";
53
  $tdatachat_groups[".nSecOptions"] = 0;
54
 
55
  $tdatachat_groups[".mainTableOwnerID"] = "";
56
- $tdatachat_groups[".entityType"] = 1;
57
- $tdatachat_groups[".connId"] = "KnowledgeBase2_at_localhost";
58
 
59
 
60
- $tdatachat_groups[".strOriginalTableName"] = "public.chat_groups";
61
 
62
 
63
 
@@ -73,7 +73,7 @@ $tdatachat_groups[".listAjax"] = false;
73
  // temporary
74
  //$tdatachat_groups[".listAjax"] = false;
75
 
76
- $tdatachat_groups[".audit"] = true;
77
 
78
  $tdatachat_groups[".locking"] = false;
79
 
@@ -137,7 +137,7 @@ $tdatachat_groups[".isUseAjaxSuggest"] = true;
137
 
138
 
139
 
140
-
141
 
142
  $tdatachat_groups[".ajaxCodeSnippetAdded"] = false;
143
 
@@ -195,7 +195,7 @@ $tdatachat_groups[".strOrderBy"] = $tstrOrderBy;
195
  $tdatachat_groups[".orderindexes"] = array();
196
 
197
 
198
- $tdatachat_groups[".sqlHead"] = "SELECT id, groupname, targetid, grouptype, ownerid";
199
  $tdatachat_groups[".sqlFrom"] = "FROM chat_groups";
200
  $tdatachat_groups[".sqlWhereExpr"] = "";
201
  $tdatachat_groups[".sqlTail"] = "";
@@ -249,7 +249,7 @@ $tdatachat_groups[".hideMobileList"] = array();
249
  $fdata["Index"] = 1;
250
  $fdata["strName"] = "id";
251
  $fdata["GoodName"] = "id";
252
- $fdata["ownerTable"] = "public.chat_groups";
253
  $fdata["Label"] = GetFieldLabel("chat_groups","id");
254
  $fdata["FieldType"] = 3;
255
 
@@ -391,7 +391,7 @@ $tdatachat_groups[".hideMobileList"] = array();
391
  $fdata["Index"] = 2;
392
  $fdata["strName"] = "groupname";
393
  $fdata["GoodName"] = "groupname";
394
- $fdata["ownerTable"] = "public.chat_groups";
395
  $fdata["Label"] = GetFieldLabel("chat_groups","groupname");
396
  $fdata["FieldType"] = 200;
397
 
@@ -530,7 +530,7 @@ $tdatachat_groups[".hideMobileList"] = array();
530
  $fdata["Index"] = 3;
531
  $fdata["strName"] = "targetid";
532
  $fdata["GoodName"] = "targetid";
533
- $fdata["ownerTable"] = "public.chat_groups";
534
  $fdata["Label"] = GetFieldLabel("chat_groups","targetid");
535
  $fdata["FieldType"] = 200;
536
 
@@ -683,7 +683,7 @@ $tdatachat_groups[".hideMobileList"] = array();
683
  $fdata["Index"] = 4;
684
  $fdata["strName"] = "grouptype";
685
  $fdata["GoodName"] = "grouptype";
686
- $fdata["ownerTable"] = "public.chat_groups";
687
  $fdata["Label"] = GetFieldLabel("chat_groups","grouptype");
688
  $fdata["FieldType"] = 3;
689
 
@@ -847,7 +847,7 @@ $tdatachat_groups[".hideMobileList"] = array();
847
  $fdata["Index"] = 5;
848
  $fdata["strName"] = "ownerid";
849
  $fdata["GoodName"] = "ownerid";
850
- $fdata["ownerTable"] = "public.chat_groups";
851
  $fdata["Label"] = GetFieldLabel("chat_groups","ownerid");
852
  $fdata["FieldType"] = 200;
853
 
@@ -1024,7 +1024,7 @@ function createSqlQuery_chat_groups()
1024
  {
1025
  $proto0=array();
1026
  $proto0["m_strHead"] = "SELECT";
1027
- $proto0["m_strFieldList"] = "id, groupname, targetid, grouptype, ownerid";
1028
  $proto0["m_strFrom"] = "FROM chat_groups";
1029
  $proto0["m_strWhere"] = "";
1030
  $proto0["m_strOrderBy"] = "";
@@ -1067,7 +1067,7 @@ $proto0["m_fieldlist"] = array();
1067
  $proto6=array();
1068
  $obj = new SQLField(array(
1069
  "m_strName" => "id",
1070
- "m_strTable" => "public.chat_groups",
1071
  "m_srcTableName" => "chat_groups"
1072
  ));
1073
 
@@ -1081,7 +1081,7 @@ $proto0["m_fieldlist"][]=$obj;
1081
  $proto8=array();
1082
  $obj = new SQLField(array(
1083
  "m_strName" => "groupname",
1084
- "m_strTable" => "public.chat_groups",
1085
  "m_srcTableName" => "chat_groups"
1086
  ));
1087
 
@@ -1095,7 +1095,7 @@ $proto0["m_fieldlist"][]=$obj;
1095
  $proto10=array();
1096
  $obj = new SQLField(array(
1097
  "m_strName" => "targetid",
1098
- "m_strTable" => "public.chat_groups",
1099
  "m_srcTableName" => "chat_groups"
1100
  ));
1101
 
@@ -1109,7 +1109,7 @@ $proto0["m_fieldlist"][]=$obj;
1109
  $proto12=array();
1110
  $obj = new SQLField(array(
1111
  "m_strName" => "grouptype",
1112
- "m_strTable" => "public.chat_groups",
1113
  "m_srcTableName" => "chat_groups"
1114
  ));
1115
 
@@ -1123,7 +1123,7 @@ $proto0["m_fieldlist"][]=$obj;
1123
  $proto14=array();
1124
  $obj = new SQLField(array(
1125
  "m_strName" => "ownerid",
1126
- "m_strTable" => "public.chat_groups",
1127
  "m_srcTableName" => "chat_groups"
1128
  ));
1129
 
@@ -1138,7 +1138,7 @@ $proto0["m_fromlist"] = array();
1138
  $proto16=array();
1139
  $proto16["m_link"] = "SQLL_MAIN";
1140
  $proto17=array();
1141
- $proto17["m_strName"] = "public.chat_groups";
1142
  $proto17["m_srcTableName"] = "chat_groups";
1143
  $proto17["m_columns"] = array();
1144
  $proto17["m_columns"][] = "id";
 
3
  $tdatachat_groups[".searchableFields"] = array();
4
  $tdatachat_groups[".ShortName"] = "chat_groups";
5
  $tdatachat_groups[".OwnerID"] = "";
6
+ $tdatachat_groups[".OriginalTable"] = "chat_groups";
7
 
8
 
9
+ $tdatachat_groups[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"list\":[\"list\"],\"search\":[\"search\"]}" );
10
  $tdatachat_groups[".originalPagesByType"] = $tdatachat_groups[".pagesByType"];
11
+ $tdatachat_groups[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"list\":[\"list\"],\"search\":[\"search\"]}" ) );
12
  $tdatachat_groups[".originalPages"] = $tdatachat_groups[".pages"];
13
+ $tdatachat_groups[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"edit\":\"edit\",\"list\":\"list\",\"search\":\"search\"}" );
14
  $tdatachat_groups[".originalDefaultPages"] = $tdatachat_groups[".defaultPages"];
15
 
16
  // field labels
 
53
  $tdatachat_groups[".nSecOptions"] = 0;
54
 
55
  $tdatachat_groups[".mainTableOwnerID"] = "";
56
+ $tdatachat_groups[".entityType"] = 0;
57
+ $tdatachat_groups[".connId"] = "chats_at_localhost";
58
 
59
 
60
+ $tdatachat_groups[".strOriginalTableName"] = "chat_groups";
61
 
62
 
63
 
 
73
  // temporary
74
  //$tdatachat_groups[".listAjax"] = false;
75
 
76
+ $tdatachat_groups[".audit"] = false;
77
 
78
  $tdatachat_groups[".locking"] = false;
79
 
 
137
 
138
 
139
 
140
+
141
 
142
  $tdatachat_groups[".ajaxCodeSnippetAdded"] = false;
143
 
 
195
  $tdatachat_groups[".orderindexes"] = array();
196
 
197
 
198
+ $tdatachat_groups[".sqlHead"] = "SELECT id, groupname, targetid, grouptype, ownerid";
199
  $tdatachat_groups[".sqlFrom"] = "FROM chat_groups";
200
  $tdatachat_groups[".sqlWhereExpr"] = "";
201
  $tdatachat_groups[".sqlTail"] = "";
 
249
  $fdata["Index"] = 1;
250
  $fdata["strName"] = "id";
251
  $fdata["GoodName"] = "id";
252
+ $fdata["ownerTable"] = "chat_groups";
253
  $fdata["Label"] = GetFieldLabel("chat_groups","id");
254
  $fdata["FieldType"] = 3;
255
 
 
391
  $fdata["Index"] = 2;
392
  $fdata["strName"] = "groupname";
393
  $fdata["GoodName"] = "groupname";
394
+ $fdata["ownerTable"] = "chat_groups";
395
  $fdata["Label"] = GetFieldLabel("chat_groups","groupname");
396
  $fdata["FieldType"] = 200;
397
 
 
530
  $fdata["Index"] = 3;
531
  $fdata["strName"] = "targetid";
532
  $fdata["GoodName"] = "targetid";
533
+ $fdata["ownerTable"] = "chat_groups";
534
  $fdata["Label"] = GetFieldLabel("chat_groups","targetid");
535
  $fdata["FieldType"] = 200;
536
 
 
683
  $fdata["Index"] = 4;
684
  $fdata["strName"] = "grouptype";
685
  $fdata["GoodName"] = "grouptype";
686
+ $fdata["ownerTable"] = "chat_groups";
687
  $fdata["Label"] = GetFieldLabel("chat_groups","grouptype");
688
  $fdata["FieldType"] = 3;
689
 
 
847
  $fdata["Index"] = 5;
848
  $fdata["strName"] = "ownerid";
849
  $fdata["GoodName"] = "ownerid";
850
+ $fdata["ownerTable"] = "chat_groups";
851
  $fdata["Label"] = GetFieldLabel("chat_groups","ownerid");
852
  $fdata["FieldType"] = 200;
853
 
 
1024
  {
1025
  $proto0=array();
1026
  $proto0["m_strHead"] = "SELECT";
1027
+ $proto0["m_strFieldList"] = "id, groupname, targetid, grouptype, ownerid";
1028
  $proto0["m_strFrom"] = "FROM chat_groups";
1029
  $proto0["m_strWhere"] = "";
1030
  $proto0["m_strOrderBy"] = "";
 
1067
  $proto6=array();
1068
  $obj = new SQLField(array(
1069
  "m_strName" => "id",
1070
+ "m_strTable" => "chat_groups",
1071
  "m_srcTableName" => "chat_groups"
1072
  ));
1073
 
 
1081
  $proto8=array();
1082
  $obj = new SQLField(array(
1083
  "m_strName" => "groupname",
1084
+ "m_strTable" => "chat_groups",
1085
  "m_srcTableName" => "chat_groups"
1086
  ));
1087
 
 
1095
  $proto10=array();
1096
  $obj = new SQLField(array(
1097
  "m_strName" => "targetid",
1098
+ "m_strTable" => "chat_groups",
1099
  "m_srcTableName" => "chat_groups"
1100
  ));
1101
 
 
1109
  $proto12=array();
1110
  $obj = new SQLField(array(
1111
  "m_strName" => "grouptype",
1112
+ "m_strTable" => "chat_groups",
1113
  "m_srcTableName" => "chat_groups"
1114
  ));
1115
 
 
1123
  $proto14=array();
1124
  $obj = new SQLField(array(
1125
  "m_strName" => "ownerid",
1126
+ "m_strTable" => "chat_groups",
1127
  "m_srcTableName" => "chat_groups"
1128
  ));
1129
 
 
1138
  $proto16=array();
1139
  $proto16["m_link"] = "SQLL_MAIN";
1140
  $proto17=array();
1141
+ $proto17["m_strName"] = "chat_groups";
1142
  $proto17["m_srcTableName"] = "chat_groups";
1143
  $proto17["m_columns"] = array();
1144
  $proto17["m_columns"][] = "id";
php/include/chat_groups_variables.php CHANGED
@@ -2,7 +2,7 @@
2
  $strTableName="chat_groups";
3
  $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
 
5
- $strOriginalTableName="public.chat_groups";
6
 
7
  $gstrOrderBy="";
8
  if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
 
2
  $strTableName="chat_groups";
3
  $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
 
5
+ $strOriginalTableName="chat_groups";
6
 
7
  $gstrOrderBy="";
8
  if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
php/include/chat_history_events.php CHANGED
@@ -42,8 +42,6 @@ if(!count($userdata)){
42
  die();
43
  }
44
 
45
-
46
-
47
  $_SESSION["loginTime"] = 10;
48
  $_SESSION["scrollStep"] = 14;
49
  $res = array();
@@ -303,7 +301,7 @@ if(postvalue("a") == "getchatinfo"){
303
  $res["targetid"] = $_SESSION["targetid"];
304
  $res["currentUserNameStatus"] = getUserStatusHeader($_SESSION["targetid"]);
305
  $res["msg"] = getMessage($isStart);
306
- $res["video"] = 1;//getVideoCallData();
307
  $res["isVideoCall"] = "";
308
  if(count($res))
309
  $res["isVideoCall"] = $res["video"]["isVideo"];
 
42
  die();
43
  }
44
 
 
 
45
  $_SESSION["loginTime"] = 10;
46
  $_SESSION["scrollStep"] = 14;
47
  $res = array();
 
301
  $res["targetid"] = $_SESSION["targetid"];
302
  $res["currentUserNameStatus"] = getUserStatusHeader($_SESSION["targetid"]);
303
  $res["msg"] = getMessage($isStart);
304
+ $res["video"] = getVideoCallData();
305
  $res["isVideoCall"] = "";
306
  if(count($res))
307
  $res["isVideoCall"] = $res["video"]["isVideo"];
php/include/chat_history_settings.php CHANGED
@@ -3,14 +3,14 @@ $tdatachat_history = array();
3
  $tdatachat_history[".searchableFields"] = array();
4
  $tdatachat_history[".ShortName"] = "chat_history";
5
  $tdatachat_history[".OwnerID"] = "";
6
- $tdatachat_history[".OriginalTable"] = "public.chat_history";
7
 
8
 
9
- $tdatachat_history[".pagesByType"] = my_json_decode( "{}" );
10
  $tdatachat_history[".originalPagesByType"] = $tdatachat_history[".pagesByType"];
11
- $tdatachat_history[".pages"] = types2pages( my_json_decode( "{}" ) );
12
  $tdatachat_history[".originalPages"] = $tdatachat_history[".pages"];
13
- $tdatachat_history[".defaultPages"] = my_json_decode( "{}" );
14
  $tdatachat_history[".originalDefaultPages"] = $tdatachat_history[".defaultPages"];
15
 
16
  // field labels
@@ -58,15 +58,7 @@ if(mlang_getcurrentlang()=="English")
58
  $fieldLabelschat_history["English"]["isVideo"] = "Is Video";
59
  $fieldToolTipschat_history["English"]["isVideo"] = "";
60
  $placeHolderschat_history["English"]["isVideo"] = "";
61
- $fieldLabelschat_history["English"]["question"] = "Question";
62
- $fieldToolTipschat_history["English"]["question"] = "";
63
- $placeHolderschat_history["English"]["question"] = "";
64
- $fieldLabelschat_history["English"]["answer"] = "Answer";
65
- $fieldToolTipschat_history["English"]["answer"] = "";
66
- $placeHolderschat_history["English"]["answer"] = "";
67
- $fieldLabelschat_history["English"]["category"] = "Category";
68
- $fieldToolTipschat_history["English"]["category"] = "";
69
- $placeHolderschat_history["English"]["category"] = "";
70
  if (count($fieldToolTipschat_history["English"]))
71
  $tdatachat_history[".isUseToolTips"] = true;
72
  }
@@ -80,11 +72,11 @@ $tdatachat_history[".shortTableName"] = "chat_history";
80
  $tdatachat_history[".nSecOptions"] = 0;
81
 
82
  $tdatachat_history[".mainTableOwnerID"] = "";
83
- $tdatachat_history[".entityType"] = 1;
84
- $tdatachat_history[".connId"] = "KnowledgeBase2_at_localhost";
85
 
86
 
87
- $tdatachat_history[".strOriginalTableName"] = "public.chat_history";
88
 
89
 
90
 
@@ -100,7 +92,7 @@ $tdatachat_history[".listAjax"] = false;
100
  // temporary
101
  //$tdatachat_history[".listAjax"] = false;
102
 
103
- $tdatachat_history[".audit"] = true;
104
 
105
  $tdatachat_history[".locking"] = false;
106
 
@@ -164,7 +156,7 @@ $tdatachat_history[".isUseAjaxSuggest"] = true;
164
 
165
 
166
 
167
-
168
 
169
 
170
  $tdatachat_history[".ajaxCodeSnippetAdded"] = false;
@@ -195,9 +187,6 @@ $tdatachat_history[".googleLikeFields"][] = "tmp_file";
195
  $tdatachat_history[".googleLikeFields"][] = "status";
196
  $tdatachat_history[".googleLikeFields"][] = "status_created";
197
  $tdatachat_history[".googleLikeFields"][] = "isVideo";
198
- $tdatachat_history[".googleLikeFields"][] = "question";
199
- $tdatachat_history[".googleLikeFields"][] = "answer";
200
- $tdatachat_history[".googleLikeFields"][] = "category";
201
 
202
 
203
 
@@ -230,8 +219,8 @@ $tdatachat_history[".strOrderBy"] = $tstrOrderBy;
230
  $tdatachat_history[".orderindexes"] = array();
231
 
232
 
233
- $tdatachat_history[".sqlHead"] = "SELECT id, messages, ownerid, created, isread, targetid, tmp_file, status, status_created, \"soundRecord\", \"isVideo\", question, answer, category";
234
- $tdatachat_history[".sqlFrom"] = "FROM \"public\".chat_history";
235
  $tdatachat_history[".sqlWhereExpr"] = "";
236
  $tdatachat_history[".sqlTail"] = "";
237
 
@@ -284,7 +273,7 @@ $tdatachat_history[".hideMobileList"] = array();
284
  $fdata["Index"] = 1;
285
  $fdata["strName"] = "id";
286
  $fdata["GoodName"] = "id";
287
- $fdata["ownerTable"] = "public.chat_history";
288
  $fdata["Label"] = GetFieldLabel("chat_history","id");
289
  $fdata["FieldType"] = 3;
290
 
@@ -426,7 +415,7 @@ $tdatachat_history[".hideMobileList"] = array();
426
  $fdata["Index"] = 2;
427
  $fdata["strName"] = "messages";
428
  $fdata["GoodName"] = "messages";
429
- $fdata["ownerTable"] = "public.chat_history";
430
  $fdata["Label"] = GetFieldLabel("chat_history","messages");
431
  $fdata["FieldType"] = 200;
432
 
@@ -567,7 +556,7 @@ $tdatachat_history[".hideMobileList"] = array();
567
  $fdata["Index"] = 3;
568
  $fdata["strName"] = "ownerid";
569
  $fdata["GoodName"] = "ownerid";
570
- $fdata["ownerTable"] = "public.chat_history";
571
  $fdata["Label"] = GetFieldLabel("chat_history","ownerid");
572
  $fdata["FieldType"] = 200;
573
 
@@ -706,7 +695,7 @@ $tdatachat_history[".hideMobileList"] = array();
706
  $fdata["Index"] = 4;
707
  $fdata["strName"] = "created";
708
  $fdata["GoodName"] = "created";
709
- $fdata["ownerTable"] = "public.chat_history";
710
  $fdata["Label"] = GetFieldLabel("chat_history","created");
711
  $fdata["FieldType"] = 200;
712
 
@@ -845,7 +834,7 @@ $tdatachat_history[".hideMobileList"] = array();
845
  $fdata["Index"] = 5;
846
  $fdata["strName"] = "isread";
847
  $fdata["GoodName"] = "isread";
848
- $fdata["ownerTable"] = "public.chat_history";
849
  $fdata["Label"] = GetFieldLabel("chat_history","isread");
850
  $fdata["FieldType"] = 200;
851
 
@@ -984,7 +973,7 @@ $tdatachat_history[".hideMobileList"] = array();
984
  $fdata["Index"] = 6;
985
  $fdata["strName"] = "targetid";
986
  $fdata["GoodName"] = "targetid";
987
- $fdata["ownerTable"] = "public.chat_history";
988
  $fdata["Label"] = GetFieldLabel("chat_history","targetid");
989
  $fdata["FieldType"] = 200;
990
 
@@ -1123,7 +1112,7 @@ $tdatachat_history[".hideMobileList"] = array();
1123
  $fdata["Index"] = 7;
1124
  $fdata["strName"] = "tmp_file";
1125
  $fdata["GoodName"] = "tmp_file";
1126
- $fdata["ownerTable"] = "public.chat_history";
1127
  $fdata["Label"] = GetFieldLabel("chat_history","tmp_file");
1128
  $fdata["FieldType"] = 200;
1129
 
@@ -1262,7 +1251,7 @@ $tdatachat_history[".hideMobileList"] = array();
1262
  $fdata["Index"] = 8;
1263
  $fdata["strName"] = "status";
1264
  $fdata["GoodName"] = "status";
1265
- $fdata["ownerTable"] = "public.chat_history";
1266
  $fdata["Label"] = GetFieldLabel("chat_history","status");
1267
  $fdata["FieldType"] = 200;
1268
 
@@ -1401,7 +1390,7 @@ $tdatachat_history[".hideMobileList"] = array();
1401
  $fdata["Index"] = 9;
1402
  $fdata["strName"] = "status_created";
1403
  $fdata["GoodName"] = "status_created";
1404
- $fdata["ownerTable"] = "public.chat_history";
1405
  $fdata["Label"] = GetFieldLabel("chat_history","status_created");
1406
  $fdata["FieldType"] = 200;
1407
 
@@ -1540,7 +1529,7 @@ $tdatachat_history[".hideMobileList"] = array();
1540
  $fdata["Index"] = 10;
1541
  $fdata["strName"] = "soundRecord";
1542
  $fdata["GoodName"] = "soundRecord";
1543
- $fdata["ownerTable"] = "public.chat_history";
1544
  $fdata["Label"] = GetFieldLabel("chat_history","soundRecord");
1545
  $fdata["FieldType"] = 128;
1546
 
@@ -1555,7 +1544,7 @@ $tdatachat_history[".hideMobileList"] = array();
1555
 
1556
 
1557
  $fdata["isSQLExpression"] = true;
1558
- $fdata["FullName"] = "\"soundRecord\"";
1559
 
1560
 
1561
 
@@ -1687,7 +1676,7 @@ $tdatachat_history[".hideMobileList"] = array();
1687
  $fdata["Index"] = 11;
1688
  $fdata["strName"] = "isVideo";
1689
  $fdata["GoodName"] = "isVideo";
1690
- $fdata["ownerTable"] = "public.chat_history";
1691
  $fdata["Label"] = GetFieldLabel("chat_history","isVideo");
1692
  $fdata["FieldType"] = 3;
1693
 
@@ -1702,7 +1691,7 @@ $tdatachat_history[".hideMobileList"] = array();
1702
 
1703
 
1704
  $fdata["isSQLExpression"] = true;
1705
- $fdata["FullName"] = "\"isVideo\"";
1706
 
1707
 
1708
 
@@ -1820,429 +1809,6 @@ $tdatachat_history[".hideMobileList"] = array();
1820
 
1821
  $tdatachat_history["isVideo"] = $fdata;
1822
  $tdatachat_history[".searchableFields"][] = "isVideo";
1823
- // question
1824
- // Custom field settings
1825
- $fdata = array();
1826
- $fdata["Index"] = 12;
1827
- $fdata["strName"] = "question";
1828
- $fdata["GoodName"] = "question";
1829
- $fdata["ownerTable"] = "public.chat_history";
1830
- $fdata["Label"] = GetFieldLabel("chat_history","question");
1831
- $fdata["FieldType"] = 201;
1832
-
1833
-
1834
-
1835
-
1836
-
1837
-
1838
- $fdata["strField"] = "question";
1839
-
1840
- $fdata["sourceSingle"] = "question";
1841
-
1842
-
1843
- $fdata["isSQLExpression"] = true;
1844
- $fdata["FullName"] = "question";
1845
-
1846
-
1847
-
1848
- $fdata["UploadFolder"] = "files";
1849
-
1850
- // Begin View Formats
1851
- $fdata["ViewFormats"] = array();
1852
-
1853
- $vdata = array("ViewFormat" => "");
1854
-
1855
-
1856
-
1857
-
1858
-
1859
-
1860
-
1861
-
1862
-
1863
-
1864
-
1865
-
1866
-
1867
-
1868
-
1869
- $vdata["NeedEncode"] = true;
1870
-
1871
-
1872
- $vdata["truncateText"] = true;
1873
- $vdata["NumberOfChars"] = 80;
1874
-
1875
- $fdata["ViewFormats"]["view"] = $vdata;
1876
- // End View Formats
1877
-
1878
- // Begin Edit Formats
1879
- $fdata["EditFormats"] = array();
1880
-
1881
- $edata = array("EditFormat" => "Text area");
1882
-
1883
-
1884
- $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
1885
- $edata["weekdays"] = "[]";
1886
-
1887
-
1888
-
1889
-
1890
-
1891
-
1892
-
1893
-
1894
-
1895
-
1896
-
1897
- $edata["acceptFileTypesHtml"] = "";
1898
-
1899
- $edata["maxNumberOfFiles"] = 0;
1900
-
1901
-
1902
-
1903
-
1904
- $edata["nRows"] = 100;
1905
- $edata["nCols"] = 200;
1906
-
1907
-
1908
-
1909
- $edata["controlWidth"] = 200;
1910
-
1911
- // Begin validation
1912
- $edata["validateAs"] = array();
1913
- $edata["validateAs"]["basicValidate"] = array();
1914
- $edata["validateAs"]["customMessages"] = array();
1915
-
1916
-
1917
- // End validation
1918
-
1919
- $edata["CreateThumbnail"] = true;
1920
- $edata["StrThumbnail"] = "th";
1921
- $edata["ThumbnailSize"] = 600;
1922
-
1923
-
1924
-
1925
-
1926
-
1927
- $fdata["EditFormats"]["edit"] = $edata;
1928
- // End Edit Formats
1929
-
1930
-
1931
- $fdata["isSeparate"] = false;
1932
-
1933
-
1934
-
1935
-
1936
- // the field's search options settings
1937
- $fdata["defaultSearchOption"] = "Contains";
1938
-
1939
- // the default search options list
1940
- $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
1941
- // the end of search options settings
1942
-
1943
-
1944
- //Filters settings
1945
- $fdata["filterTotals"] = 0;
1946
- $fdata["filterMultiSelect"] = 0;
1947
- $fdata["filterFormat"] = "Values list";
1948
- $fdata["showCollapsed"] = false;
1949
-
1950
- $fdata["sortValueType"] = 0;
1951
- $fdata["numberOfVisibleItems"] = 10;
1952
-
1953
- $fdata["filterBy"] = 0;
1954
-
1955
-
1956
-
1957
-
1958
-
1959
- //end of Filters settings
1960
-
1961
-
1962
- $tdatachat_history["question"] = $fdata;
1963
- $tdatachat_history[".searchableFields"][] = "question";
1964
- // answer
1965
- // Custom field settings
1966
- $fdata = array();
1967
- $fdata["Index"] = 13;
1968
- $fdata["strName"] = "answer";
1969
- $fdata["GoodName"] = "answer";
1970
- $fdata["ownerTable"] = "public.chat_history";
1971
- $fdata["Label"] = GetFieldLabel("chat_history","answer");
1972
- $fdata["FieldType"] = 201;
1973
-
1974
-
1975
-
1976
-
1977
-
1978
-
1979
- $fdata["strField"] = "answer";
1980
-
1981
- $fdata["sourceSingle"] = "answer";
1982
-
1983
-
1984
- $fdata["isSQLExpression"] = true;
1985
- $fdata["FullName"] = "answer";
1986
-
1987
-
1988
-
1989
- $fdata["UploadFolder"] = "files";
1990
-
1991
- // Begin View Formats
1992
- $fdata["ViewFormats"] = array();
1993
-
1994
- $vdata = array("ViewFormat" => "");
1995
-
1996
-
1997
-
1998
-
1999
-
2000
-
2001
-
2002
-
2003
-
2004
-
2005
-
2006
-
2007
-
2008
-
2009
-
2010
- $vdata["NeedEncode"] = true;
2011
-
2012
-
2013
- $vdata["truncateText"] = true;
2014
- $vdata["NumberOfChars"] = 80;
2015
-
2016
- $fdata["ViewFormats"]["view"] = $vdata;
2017
- // End View Formats
2018
-
2019
- // Begin Edit Formats
2020
- $fdata["EditFormats"] = array();
2021
-
2022
- $edata = array("EditFormat" => "Text area");
2023
-
2024
-
2025
- $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
2026
- $edata["weekdays"] = "[]";
2027
-
2028
-
2029
-
2030
-
2031
-
2032
-
2033
-
2034
-
2035
-
2036
-
2037
-
2038
- $edata["acceptFileTypesHtml"] = "";
2039
-
2040
- $edata["maxNumberOfFiles"] = 0;
2041
-
2042
-
2043
-
2044
-
2045
- $edata["nRows"] = 100;
2046
- $edata["nCols"] = 200;
2047
-
2048
-
2049
-
2050
- $edata["controlWidth"] = 200;
2051
-
2052
- // Begin validation
2053
- $edata["validateAs"] = array();
2054
- $edata["validateAs"]["basicValidate"] = array();
2055
- $edata["validateAs"]["customMessages"] = array();
2056
-
2057
-
2058
- // End validation
2059
-
2060
- $edata["CreateThumbnail"] = true;
2061
- $edata["StrThumbnail"] = "th";
2062
- $edata["ThumbnailSize"] = 600;
2063
-
2064
-
2065
-
2066
-
2067
-
2068
- $fdata["EditFormats"]["edit"] = $edata;
2069
- // End Edit Formats
2070
-
2071
-
2072
- $fdata["isSeparate"] = false;
2073
-
2074
-
2075
-
2076
-
2077
- // the field's search options settings
2078
- $fdata["defaultSearchOption"] = "Contains";
2079
-
2080
- // the default search options list
2081
- $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
2082
- // the end of search options settings
2083
-
2084
-
2085
- //Filters settings
2086
- $fdata["filterTotals"] = 0;
2087
- $fdata["filterMultiSelect"] = 0;
2088
- $fdata["filterFormat"] = "Values list";
2089
- $fdata["showCollapsed"] = false;
2090
-
2091
- $fdata["sortValueType"] = 0;
2092
- $fdata["numberOfVisibleItems"] = 10;
2093
-
2094
- $fdata["filterBy"] = 0;
2095
-
2096
-
2097
-
2098
-
2099
-
2100
- //end of Filters settings
2101
-
2102
-
2103
- $tdatachat_history["answer"] = $fdata;
2104
- $tdatachat_history[".searchableFields"][] = "answer";
2105
- // category
2106
- // Custom field settings
2107
- $fdata = array();
2108
- $fdata["Index"] = 14;
2109
- $fdata["strName"] = "category";
2110
- $fdata["GoodName"] = "category";
2111
- $fdata["ownerTable"] = "public.chat_history";
2112
- $fdata["Label"] = GetFieldLabel("chat_history","category");
2113
- $fdata["FieldType"] = 201;
2114
-
2115
-
2116
-
2117
-
2118
-
2119
-
2120
- $fdata["strField"] = "category";
2121
-
2122
- $fdata["sourceSingle"] = "category";
2123
-
2124
-
2125
- $fdata["isSQLExpression"] = true;
2126
- $fdata["FullName"] = "category";
2127
-
2128
-
2129
-
2130
- $fdata["UploadFolder"] = "files";
2131
-
2132
- // Begin View Formats
2133
- $fdata["ViewFormats"] = array();
2134
-
2135
- $vdata = array("ViewFormat" => "");
2136
-
2137
-
2138
-
2139
-
2140
-
2141
-
2142
-
2143
-
2144
-
2145
-
2146
-
2147
-
2148
-
2149
-
2150
-
2151
- $vdata["NeedEncode"] = true;
2152
-
2153
-
2154
- $vdata["truncateText"] = true;
2155
- $vdata["NumberOfChars"] = 80;
2156
-
2157
- $fdata["ViewFormats"]["view"] = $vdata;
2158
- // End View Formats
2159
-
2160
- // Begin Edit Formats
2161
- $fdata["EditFormats"] = array();
2162
-
2163
- $edata = array("EditFormat" => "Text area");
2164
-
2165
-
2166
- $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
2167
- $edata["weekdays"] = "[]";
2168
-
2169
-
2170
-
2171
-
2172
-
2173
-
2174
-
2175
-
2176
-
2177
-
2178
-
2179
- $edata["acceptFileTypesHtml"] = "";
2180
-
2181
- $edata["maxNumberOfFiles"] = 0;
2182
-
2183
-
2184
-
2185
-
2186
- $edata["nRows"] = 100;
2187
- $edata["nCols"] = 200;
2188
-
2189
-
2190
-
2191
- $edata["controlWidth"] = 200;
2192
-
2193
- // Begin validation
2194
- $edata["validateAs"] = array();
2195
- $edata["validateAs"]["basicValidate"] = array();
2196
- $edata["validateAs"]["customMessages"] = array();
2197
-
2198
-
2199
- // End validation
2200
-
2201
- $edata["CreateThumbnail"] = true;
2202
- $edata["StrThumbnail"] = "th";
2203
- $edata["ThumbnailSize"] = 600;
2204
-
2205
-
2206
-
2207
-
2208
-
2209
- $fdata["EditFormats"]["edit"] = $edata;
2210
- // End Edit Formats
2211
-
2212
-
2213
- $fdata["isSeparate"] = false;
2214
-
2215
-
2216
-
2217
-
2218
- // the field's search options settings
2219
- $fdata["defaultSearchOption"] = "Contains";
2220
-
2221
- // the default search options list
2222
- $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
2223
- // the end of search options settings
2224
-
2225
-
2226
- //Filters settings
2227
- $fdata["filterTotals"] = 0;
2228
- $fdata["filterMultiSelect"] = 0;
2229
- $fdata["filterFormat"] = "Values list";
2230
- $fdata["showCollapsed"] = false;
2231
-
2232
- $fdata["sortValueType"] = 0;
2233
- $fdata["numberOfVisibleItems"] = 10;
2234
-
2235
- $fdata["filterBy"] = 0;
2236
-
2237
-
2238
-
2239
-
2240
-
2241
- //end of Filters settings
2242
-
2243
-
2244
- $tdatachat_history["category"] = $fdata;
2245
- $tdatachat_history[".searchableFields"][] = "category";
2246
 
2247
 
2248
  $tables_data["chat_history"]=&$tdatachat_history;
@@ -2287,8 +1853,8 @@ function createSqlQuery_chat_history()
2287
  {
2288
  $proto0=array();
2289
  $proto0["m_strHead"] = "SELECT";
2290
- $proto0["m_strFieldList"] = "id, messages, ownerid, created, isread, targetid, tmp_file, status, status_created, \"soundRecord\", \"isVideo\", question, answer, category";
2291
- $proto0["m_strFrom"] = "FROM \"public\".chat_history";
2292
  $proto0["m_strWhere"] = "";
2293
  $proto0["m_strOrderBy"] = "";
2294
 
@@ -2330,7 +1896,7 @@ $proto0["m_fieldlist"] = array();
2330
  $proto6=array();
2331
  $obj = new SQLField(array(
2332
  "m_strName" => "id",
2333
- "m_strTable" => "public.chat_history",
2334
  "m_srcTableName" => "chat_history"
2335
  ));
2336
 
@@ -2344,7 +1910,7 @@ $proto0["m_fieldlist"][]=$obj;
2344
  $proto8=array();
2345
  $obj = new SQLField(array(
2346
  "m_strName" => "messages",
2347
- "m_strTable" => "public.chat_history",
2348
  "m_srcTableName" => "chat_history"
2349
  ));
2350
 
@@ -2358,7 +1924,7 @@ $proto0["m_fieldlist"][]=$obj;
2358
  $proto10=array();
2359
  $obj = new SQLField(array(
2360
  "m_strName" => "ownerid",
2361
- "m_strTable" => "public.chat_history",
2362
  "m_srcTableName" => "chat_history"
2363
  ));
2364
 
@@ -2372,7 +1938,7 @@ $proto0["m_fieldlist"][]=$obj;
2372
  $proto12=array();
2373
  $obj = new SQLField(array(
2374
  "m_strName" => "created",
2375
- "m_strTable" => "public.chat_history",
2376
  "m_srcTableName" => "chat_history"
2377
  ));
2378
 
@@ -2386,7 +1952,7 @@ $proto0["m_fieldlist"][]=$obj;
2386
  $proto14=array();
2387
  $obj = new SQLField(array(
2388
  "m_strName" => "isread",
2389
- "m_strTable" => "public.chat_history",
2390
  "m_srcTableName" => "chat_history"
2391
  ));
2392
 
@@ -2400,7 +1966,7 @@ $proto0["m_fieldlist"][]=$obj;
2400
  $proto16=array();
2401
  $obj = new SQLField(array(
2402
  "m_strName" => "targetid",
2403
- "m_strTable" => "public.chat_history",
2404
  "m_srcTableName" => "chat_history"
2405
  ));
2406
 
@@ -2414,7 +1980,7 @@ $proto0["m_fieldlist"][]=$obj;
2414
  $proto18=array();
2415
  $obj = new SQLField(array(
2416
  "m_strName" => "tmp_file",
2417
- "m_strTable" => "public.chat_history",
2418
  "m_srcTableName" => "chat_history"
2419
  ));
2420
 
@@ -2428,7 +1994,7 @@ $proto0["m_fieldlist"][]=$obj;
2428
  $proto20=array();
2429
  $obj = new SQLField(array(
2430
  "m_strName" => "status",
2431
- "m_strTable" => "public.chat_history",
2432
  "m_srcTableName" => "chat_history"
2433
  ));
2434
 
@@ -2442,7 +2008,7 @@ $proto0["m_fieldlist"][]=$obj;
2442
  $proto22=array();
2443
  $obj = new SQLField(array(
2444
  "m_strName" => "status_created",
2445
- "m_strTable" => "public.chat_history",
2446
  "m_srcTableName" => "chat_history"
2447
  ));
2448
 
@@ -2456,11 +2022,11 @@ $proto0["m_fieldlist"][]=$obj;
2456
  $proto24=array();
2457
  $obj = new SQLField(array(
2458
  "m_strName" => "soundRecord",
2459
- "m_strTable" => "public.chat_history",
2460
  "m_srcTableName" => "chat_history"
2461
  ));
2462
 
2463
- $proto24["m_sql"] = "\"soundRecord\"";
2464
  $proto24["m_srcTableName"] = "chat_history";
2465
  $proto24["m_expr"]=$obj;
2466
  $proto24["m_alias"] = "";
@@ -2470,103 +2036,58 @@ $proto0["m_fieldlist"][]=$obj;
2470
  $proto26=array();
2471
  $obj = new SQLField(array(
2472
  "m_strName" => "isVideo",
2473
- "m_strTable" => "public.chat_history",
2474
  "m_srcTableName" => "chat_history"
2475
  ));
2476
 
2477
- $proto26["m_sql"] = "\"isVideo\"";
2478
  $proto26["m_srcTableName"] = "chat_history";
2479
  $proto26["m_expr"]=$obj;
2480
  $proto26["m_alias"] = "";
2481
  $obj = new SQLFieldListItem($proto26);
2482
 
2483
- $proto0["m_fieldlist"][]=$obj;
2484
- $proto28=array();
2485
- $obj = new SQLField(array(
2486
- "m_strName" => "question",
2487
- "m_strTable" => "public.chat_history",
2488
- "m_srcTableName" => "chat_history"
2489
- ));
2490
-
2491
- $proto28["m_sql"] = "question";
2492
- $proto28["m_srcTableName"] = "chat_history";
2493
- $proto28["m_expr"]=$obj;
2494
- $proto28["m_alias"] = "";
2495
- $obj = new SQLFieldListItem($proto28);
2496
-
2497
- $proto0["m_fieldlist"][]=$obj;
2498
- $proto30=array();
2499
- $obj = new SQLField(array(
2500
- "m_strName" => "answer",
2501
- "m_strTable" => "public.chat_history",
2502
- "m_srcTableName" => "chat_history"
2503
- ));
2504
-
2505
- $proto30["m_sql"] = "answer";
2506
- $proto30["m_srcTableName"] = "chat_history";
2507
- $proto30["m_expr"]=$obj;
2508
- $proto30["m_alias"] = "";
2509
- $obj = new SQLFieldListItem($proto30);
2510
-
2511
- $proto0["m_fieldlist"][]=$obj;
2512
- $proto32=array();
2513
- $obj = new SQLField(array(
2514
- "m_strName" => "category",
2515
- "m_strTable" => "public.chat_history",
2516
- "m_srcTableName" => "chat_history"
2517
- ));
2518
-
2519
- $proto32["m_sql"] = "category";
2520
- $proto32["m_srcTableName"] = "chat_history";
2521
- $proto32["m_expr"]=$obj;
2522
- $proto32["m_alias"] = "";
2523
- $obj = new SQLFieldListItem($proto32);
2524
-
2525
  $proto0["m_fieldlist"][]=$obj;
2526
  $proto0["m_fromlist"] = array();
2527
- $proto34=array();
2528
- $proto34["m_link"] = "SQLL_MAIN";
2529
- $proto35=array();
2530
- $proto35["m_strName"] = "public.chat_history";
2531
- $proto35["m_srcTableName"] = "chat_history";
2532
- $proto35["m_columns"] = array();
2533
- $proto35["m_columns"][] = "id";
2534
- $proto35["m_columns"][] = "messages";
2535
- $proto35["m_columns"][] = "ownerid";
2536
- $proto35["m_columns"][] = "created";
2537
- $proto35["m_columns"][] = "isread";
2538
- $proto35["m_columns"][] = "targetid";
2539
- $proto35["m_columns"][] = "tmp_file";
2540
- $proto35["m_columns"][] = "status";
2541
- $proto35["m_columns"][] = "status_created";
2542
- $proto35["m_columns"][] = "soundRecord";
2543
- $proto35["m_columns"][] = "isVideo";
2544
- $proto35["m_columns"][] = "question";
2545
- $proto35["m_columns"][] = "answer";
2546
- $proto35["m_columns"][] = "category";
2547
- $obj = new SQLTable($proto35);
2548
-
2549
- $proto34["m_table"] = $obj;
2550
- $proto34["m_sql"] = "\"public\".chat_history";
2551
- $proto34["m_alias"] = "";
2552
- $proto34["m_srcTableName"] = "chat_history";
2553
- $proto36=array();
2554
- $proto36["m_sql"] = "";
2555
- $proto36["m_uniontype"] = "SQLL_UNKNOWN";
2556
  $obj = new SQLNonParsed(array(
2557
  "m_sql" => ""
2558
  ));
2559
 
2560
- $proto36["m_column"]=$obj;
2561
- $proto36["m_contained"] = array();
2562
- $proto36["m_strCase"] = "";
2563
- $proto36["m_havingmode"] = false;
2564
- $proto36["m_inBrackets"] = false;
2565
- $proto36["m_useAlias"] = false;
2566
- $obj = new SQLLogicalExpr($proto36);
2567
 
2568
- $proto34["m_joinon"] = $obj;
2569
- $obj = new SQLFromListItem($proto34);
2570
 
2571
  $proto0["m_fromlist"][]=$obj;
2572
  $proto0["m_groupby"] = array();
@@ -2582,7 +2103,7 @@ $queryData_chat_history = createSqlQuery_chat_history();
2582
 
2583
  ;
2584
 
2585
-
2586
 
2587
  $tdatachat_history[".sqlquery"] = $queryData_chat_history;
2588
 
 
3
  $tdatachat_history[".searchableFields"] = array();
4
  $tdatachat_history[".ShortName"] = "chat_history";
5
  $tdatachat_history[".OwnerID"] = "";
6
+ $tdatachat_history[".OriginalTable"] = "chat_history";
7
 
8
 
9
+ $tdatachat_history[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"search\":[\"search\"]}" );
10
  $tdatachat_history[".originalPagesByType"] = $tdatachat_history[".pagesByType"];
11
+ $tdatachat_history[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"search\":[\"search\"]}" ) );
12
  $tdatachat_history[".originalPages"] = $tdatachat_history[".pages"];
13
+ $tdatachat_history[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"search\":\"search\"}" );
14
  $tdatachat_history[".originalDefaultPages"] = $tdatachat_history[".defaultPages"];
15
 
16
  // field labels
 
58
  $fieldLabelschat_history["English"]["isVideo"] = "Is Video";
59
  $fieldToolTipschat_history["English"]["isVideo"] = "";
60
  $placeHolderschat_history["English"]["isVideo"] = "";
61
+ $pageTitleschat_history["English"]["add"] = "Chat History";
 
 
 
 
 
 
 
 
62
  if (count($fieldToolTipschat_history["English"]))
63
  $tdatachat_history[".isUseToolTips"] = true;
64
  }
 
72
  $tdatachat_history[".nSecOptions"] = 0;
73
 
74
  $tdatachat_history[".mainTableOwnerID"] = "";
75
+ $tdatachat_history[".entityType"] = 0;
76
+ $tdatachat_history[".connId"] = "chats_at_localhost";
77
 
78
 
79
+ $tdatachat_history[".strOriginalTableName"] = "chat_history";
80
 
81
 
82
 
 
92
  // temporary
93
  //$tdatachat_history[".listAjax"] = false;
94
 
95
+ $tdatachat_history[".audit"] = false;
96
 
97
  $tdatachat_history[".locking"] = false;
98
 
 
156
 
157
 
158
 
159
+
160
 
161
 
162
  $tdatachat_history[".ajaxCodeSnippetAdded"] = false;
 
187
  $tdatachat_history[".googleLikeFields"][] = "status";
188
  $tdatachat_history[".googleLikeFields"][] = "status_created";
189
  $tdatachat_history[".googleLikeFields"][] = "isVideo";
 
 
 
190
 
191
 
192
 
 
219
  $tdatachat_history[".orderindexes"] = array();
220
 
221
 
222
+ $tdatachat_history[".sqlHead"] = "SELECT id, messages, ownerid, created, isread, targetid, tmp_file, status, status_created, soundRecord, isVideo";
223
+ $tdatachat_history[".sqlFrom"] = "FROM chat_history";
224
  $tdatachat_history[".sqlWhereExpr"] = "";
225
  $tdatachat_history[".sqlTail"] = "";
226
 
 
273
  $fdata["Index"] = 1;
274
  $fdata["strName"] = "id";
275
  $fdata["GoodName"] = "id";
276
+ $fdata["ownerTable"] = "chat_history";
277
  $fdata["Label"] = GetFieldLabel("chat_history","id");
278
  $fdata["FieldType"] = 3;
279
 
 
415
  $fdata["Index"] = 2;
416
  $fdata["strName"] = "messages";
417
  $fdata["GoodName"] = "messages";
418
+ $fdata["ownerTable"] = "chat_history";
419
  $fdata["Label"] = GetFieldLabel("chat_history","messages");
420
  $fdata["FieldType"] = 200;
421
 
 
556
  $fdata["Index"] = 3;
557
  $fdata["strName"] = "ownerid";
558
  $fdata["GoodName"] = "ownerid";
559
+ $fdata["ownerTable"] = "chat_history";
560
  $fdata["Label"] = GetFieldLabel("chat_history","ownerid");
561
  $fdata["FieldType"] = 200;
562
 
 
695
  $fdata["Index"] = 4;
696
  $fdata["strName"] = "created";
697
  $fdata["GoodName"] = "created";
698
+ $fdata["ownerTable"] = "chat_history";
699
  $fdata["Label"] = GetFieldLabel("chat_history","created");
700
  $fdata["FieldType"] = 200;
701
 
 
834
  $fdata["Index"] = 5;
835
  $fdata["strName"] = "isread";
836
  $fdata["GoodName"] = "isread";
837
+ $fdata["ownerTable"] = "chat_history";
838
  $fdata["Label"] = GetFieldLabel("chat_history","isread");
839
  $fdata["FieldType"] = 200;
840
 
 
973
  $fdata["Index"] = 6;
974
  $fdata["strName"] = "targetid";
975
  $fdata["GoodName"] = "targetid";
976
+ $fdata["ownerTable"] = "chat_history";
977
  $fdata["Label"] = GetFieldLabel("chat_history","targetid");
978
  $fdata["FieldType"] = 200;
979
 
 
1112
  $fdata["Index"] = 7;
1113
  $fdata["strName"] = "tmp_file";
1114
  $fdata["GoodName"] = "tmp_file";
1115
+ $fdata["ownerTable"] = "chat_history";
1116
  $fdata["Label"] = GetFieldLabel("chat_history","tmp_file");
1117
  $fdata["FieldType"] = 200;
1118
 
 
1251
  $fdata["Index"] = 8;
1252
  $fdata["strName"] = "status";
1253
  $fdata["GoodName"] = "status";
1254
+ $fdata["ownerTable"] = "chat_history";
1255
  $fdata["Label"] = GetFieldLabel("chat_history","status");
1256
  $fdata["FieldType"] = 200;
1257
 
 
1390
  $fdata["Index"] = 9;
1391
  $fdata["strName"] = "status_created";
1392
  $fdata["GoodName"] = "status_created";
1393
+ $fdata["ownerTable"] = "chat_history";
1394
  $fdata["Label"] = GetFieldLabel("chat_history","status_created");
1395
  $fdata["FieldType"] = 200;
1396
 
 
1529
  $fdata["Index"] = 10;
1530
  $fdata["strName"] = "soundRecord";
1531
  $fdata["GoodName"] = "soundRecord";
1532
+ $fdata["ownerTable"] = "chat_history";
1533
  $fdata["Label"] = GetFieldLabel("chat_history","soundRecord");
1534
  $fdata["FieldType"] = 128;
1535
 
 
1544
 
1545
 
1546
  $fdata["isSQLExpression"] = true;
1547
+ $fdata["FullName"] = "soundRecord";
1548
 
1549
 
1550
 
 
1676
  $fdata["Index"] = 11;
1677
  $fdata["strName"] = "isVideo";
1678
  $fdata["GoodName"] = "isVideo";
1679
+ $fdata["ownerTable"] = "chat_history";
1680
  $fdata["Label"] = GetFieldLabel("chat_history","isVideo");
1681
  $fdata["FieldType"] = 3;
1682
 
 
1691
 
1692
 
1693
  $fdata["isSQLExpression"] = true;
1694
+ $fdata["FullName"] = "isVideo";
1695
 
1696
 
1697
 
 
1809
 
1810
  $tdatachat_history["isVideo"] = $fdata;
1811
  $tdatachat_history[".searchableFields"][] = "isVideo";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1812
 
1813
 
1814
  $tables_data["chat_history"]=&$tdatachat_history;
 
1853
  {
1854
  $proto0=array();
1855
  $proto0["m_strHead"] = "SELECT";
1856
+ $proto0["m_strFieldList"] = "id, messages, ownerid, created, isread, targetid, tmp_file, status, status_created, soundRecord, isVideo";
1857
+ $proto0["m_strFrom"] = "FROM chat_history";
1858
  $proto0["m_strWhere"] = "";
1859
  $proto0["m_strOrderBy"] = "";
1860
 
 
1896
  $proto6=array();
1897
  $obj = new SQLField(array(
1898
  "m_strName" => "id",
1899
+ "m_strTable" => "chat_history",
1900
  "m_srcTableName" => "chat_history"
1901
  ));
1902
 
 
1910
  $proto8=array();
1911
  $obj = new SQLField(array(
1912
  "m_strName" => "messages",
1913
+ "m_strTable" => "chat_history",
1914
  "m_srcTableName" => "chat_history"
1915
  ));
1916
 
 
1924
  $proto10=array();
1925
  $obj = new SQLField(array(
1926
  "m_strName" => "ownerid",
1927
+ "m_strTable" => "chat_history",
1928
  "m_srcTableName" => "chat_history"
1929
  ));
1930
 
 
1938
  $proto12=array();
1939
  $obj = new SQLField(array(
1940
  "m_strName" => "created",
1941
+ "m_strTable" => "chat_history",
1942
  "m_srcTableName" => "chat_history"
1943
  ));
1944
 
 
1952
  $proto14=array();
1953
  $obj = new SQLField(array(
1954
  "m_strName" => "isread",
1955
+ "m_strTable" => "chat_history",
1956
  "m_srcTableName" => "chat_history"
1957
  ));
1958
 
 
1966
  $proto16=array();
1967
  $obj = new SQLField(array(
1968
  "m_strName" => "targetid",
1969
+ "m_strTable" => "chat_history",
1970
  "m_srcTableName" => "chat_history"
1971
  ));
1972
 
 
1980
  $proto18=array();
1981
  $obj = new SQLField(array(
1982
  "m_strName" => "tmp_file",
1983
+ "m_strTable" => "chat_history",
1984
  "m_srcTableName" => "chat_history"
1985
  ));
1986
 
 
1994
  $proto20=array();
1995
  $obj = new SQLField(array(
1996
  "m_strName" => "status",
1997
+ "m_strTable" => "chat_history",
1998
  "m_srcTableName" => "chat_history"
1999
  ));
2000
 
 
2008
  $proto22=array();
2009
  $obj = new SQLField(array(
2010
  "m_strName" => "status_created",
2011
+ "m_strTable" => "chat_history",
2012
  "m_srcTableName" => "chat_history"
2013
  ));
2014
 
 
2022
  $proto24=array();
2023
  $obj = new SQLField(array(
2024
  "m_strName" => "soundRecord",
2025
+ "m_strTable" => "chat_history",
2026
  "m_srcTableName" => "chat_history"
2027
  ));
2028
 
2029
+ $proto24["m_sql"] = "soundRecord";
2030
  $proto24["m_srcTableName"] = "chat_history";
2031
  $proto24["m_expr"]=$obj;
2032
  $proto24["m_alias"] = "";
 
2036
  $proto26=array();
2037
  $obj = new SQLField(array(
2038
  "m_strName" => "isVideo",
2039
+ "m_strTable" => "chat_history",
2040
  "m_srcTableName" => "chat_history"
2041
  ));
2042
 
2043
+ $proto26["m_sql"] = "isVideo";
2044
  $proto26["m_srcTableName"] = "chat_history";
2045
  $proto26["m_expr"]=$obj;
2046
  $proto26["m_alias"] = "";
2047
  $obj = new SQLFieldListItem($proto26);
2048
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2049
  $proto0["m_fieldlist"][]=$obj;
2050
  $proto0["m_fromlist"] = array();
2051
+ $proto28=array();
2052
+ $proto28["m_link"] = "SQLL_MAIN";
2053
+ $proto29=array();
2054
+ $proto29["m_strName"] = "chat_history";
2055
+ $proto29["m_srcTableName"] = "chat_history";
2056
+ $proto29["m_columns"] = array();
2057
+ $proto29["m_columns"][] = "id";
2058
+ $proto29["m_columns"][] = "messages";
2059
+ $proto29["m_columns"][] = "ownerid";
2060
+ $proto29["m_columns"][] = "created";
2061
+ $proto29["m_columns"][] = "isread";
2062
+ $proto29["m_columns"][] = "targetid";
2063
+ $proto29["m_columns"][] = "tmp_file";
2064
+ $proto29["m_columns"][] = "status";
2065
+ $proto29["m_columns"][] = "status_created";
2066
+ $proto29["m_columns"][] = "soundRecord";
2067
+ $proto29["m_columns"][] = "isVideo";
2068
+ $obj = new SQLTable($proto29);
2069
+
2070
+ $proto28["m_table"] = $obj;
2071
+ $proto28["m_sql"] = "chat_history";
2072
+ $proto28["m_alias"] = "";
2073
+ $proto28["m_srcTableName"] = "chat_history";
2074
+ $proto30=array();
2075
+ $proto30["m_sql"] = "";
2076
+ $proto30["m_uniontype"] = "SQLL_UNKNOWN";
 
 
 
2077
  $obj = new SQLNonParsed(array(
2078
  "m_sql" => ""
2079
  ));
2080
 
2081
+ $proto30["m_column"]=$obj;
2082
+ $proto30["m_contained"] = array();
2083
+ $proto30["m_strCase"] = "";
2084
+ $proto30["m_havingmode"] = false;
2085
+ $proto30["m_inBrackets"] = false;
2086
+ $proto30["m_useAlias"] = false;
2087
+ $obj = new SQLLogicalExpr($proto30);
2088
 
2089
+ $proto28["m_joinon"] = $obj;
2090
+ $obj = new SQLFromListItem($proto28);
2091
 
2092
  $proto0["m_fromlist"][]=$obj;
2093
  $proto0["m_groupby"] = array();
 
2103
 
2104
  ;
2105
 
2106
+
2107
 
2108
  $tdatachat_history[".sqlquery"] = $queryData_chat_history;
2109
 
php/include/chat_history_variables.php CHANGED
@@ -2,7 +2,7 @@
2
  $strTableName="chat_history";
3
  $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
 
5
- $strOriginalTableName="public.chat_history";
6
 
7
  $gstrOrderBy="";
8
  if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
 
2
  $strTableName="chat_history";
3
  $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
 
5
+ $strOriginalTableName="chat_history";
6
 
7
  $gstrOrderBy="";
8
  if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
php/include/chat_peopletype_settings.php CHANGED
@@ -3,14 +3,14 @@ $tdatachat_peopletype = array();
3
  $tdatachat_peopletype[".searchableFields"] = array();
4
  $tdatachat_peopletype[".ShortName"] = "chat_peopletype";
5
  $tdatachat_peopletype[".OwnerID"] = "";
6
- $tdatachat_peopletype[".OriginalTable"] = "public.chat_peopletype";
7
 
8
 
9
- $tdatachat_peopletype[".pagesByType"] = my_json_decode( "{}" );
10
  $tdatachat_peopletype[".originalPagesByType"] = $tdatachat_peopletype[".pagesByType"];
11
- $tdatachat_peopletype[".pages"] = types2pages( my_json_decode( "{}" ) );
12
  $tdatachat_peopletype[".originalPages"] = $tdatachat_peopletype[".pages"];
13
- $tdatachat_peopletype[".defaultPages"] = my_json_decode( "{}" );
14
  $tdatachat_peopletype[".originalDefaultPages"] = $tdatachat_peopletype[".defaultPages"];
15
 
16
  // field labels
@@ -44,11 +44,11 @@ $tdatachat_peopletype[".shortTableName"] = "chat_peopletype";
44
  $tdatachat_peopletype[".nSecOptions"] = 0;
45
 
46
  $tdatachat_peopletype[".mainTableOwnerID"] = "";
47
- $tdatachat_peopletype[".entityType"] = 1;
48
- $tdatachat_peopletype[".connId"] = "KnowledgeBase2_at_localhost";
49
 
50
 
51
- $tdatachat_peopletype[".strOriginalTableName"] = "public.chat_peopletype";
52
 
53
 
54
 
@@ -64,7 +64,7 @@ $tdatachat_peopletype[".listAjax"] = false;
64
  // temporary
65
  //$tdatachat_peopletype[".listAjax"] = false;
66
 
67
- $tdatachat_peopletype[".audit"] = true;
68
 
69
  $tdatachat_peopletype[".locking"] = false;
70
 
@@ -128,7 +128,7 @@ $tdatachat_peopletype[".isUseAjaxSuggest"] = true;
128
 
129
 
130
 
131
-
132
 
133
  $tdatachat_peopletype[".ajaxCodeSnippetAdded"] = false;
134
 
@@ -183,7 +183,7 @@ $tdatachat_peopletype[".strOrderBy"] = $tstrOrderBy;
183
  $tdatachat_peopletype[".orderindexes"] = array();
184
 
185
 
186
- $tdatachat_peopletype[".sqlHead"] = "SELECT id, name";
187
  $tdatachat_peopletype[".sqlFrom"] = "FROM chat_peopletype";
188
  $tdatachat_peopletype[".sqlWhereExpr"] = "";
189
  $tdatachat_peopletype[".sqlTail"] = "";
@@ -237,7 +237,7 @@ $tdatachat_peopletype[".hideMobileList"] = array();
237
  $fdata["Index"] = 1;
238
  $fdata["strName"] = "id";
239
  $fdata["GoodName"] = "id";
240
- $fdata["ownerTable"] = "public.chat_peopletype";
241
  $fdata["Label"] = GetFieldLabel("chat_peopletype","id");
242
  $fdata["FieldType"] = 3;
243
 
@@ -379,7 +379,7 @@ $tdatachat_peopletype[".hideMobileList"] = array();
379
  $fdata["Index"] = 2;
380
  $fdata["strName"] = "name";
381
  $fdata["GoodName"] = "name";
382
- $fdata["ownerTable"] = "public.chat_peopletype";
383
  $fdata["Label"] = GetFieldLabel("chat_peopletype","name");
384
  $fdata["FieldType"] = 200;
385
 
@@ -556,7 +556,7 @@ function createSqlQuery_chat_peopletype()
556
  {
557
  $proto0=array();
558
  $proto0["m_strHead"] = "SELECT";
559
- $proto0["m_strFieldList"] = "id, name";
560
  $proto0["m_strFrom"] = "FROM chat_peopletype";
561
  $proto0["m_strWhere"] = "";
562
  $proto0["m_strOrderBy"] = "";
@@ -599,7 +599,7 @@ $proto0["m_fieldlist"] = array();
599
  $proto6=array();
600
  $obj = new SQLField(array(
601
  "m_strName" => "id",
602
- "m_strTable" => "public.chat_peopletype",
603
  "m_srcTableName" => "chat_peopletype"
604
  ));
605
 
@@ -613,7 +613,7 @@ $proto0["m_fieldlist"][]=$obj;
613
  $proto8=array();
614
  $obj = new SQLField(array(
615
  "m_strName" => "name",
616
- "m_strTable" => "public.chat_peopletype",
617
  "m_srcTableName" => "chat_peopletype"
618
  ));
619
 
@@ -628,7 +628,7 @@ $proto0["m_fromlist"] = array();
628
  $proto10=array();
629
  $proto10["m_link"] = "SQLL_MAIN";
630
  $proto11=array();
631
- $proto11["m_strName"] = "public.chat_peopletype";
632
  $proto11["m_srcTableName"] = "chat_peopletype";
633
  $proto11["m_columns"] = array();
634
  $proto11["m_columns"][] = "id";
 
3
  $tdatachat_peopletype[".searchableFields"] = array();
4
  $tdatachat_peopletype[".ShortName"] = "chat_peopletype";
5
  $tdatachat_peopletype[".OwnerID"] = "";
6
+ $tdatachat_peopletype[".OriginalTable"] = "chat_peopletype";
7
 
8
 
9
+ $tdatachat_peopletype[".pagesByType"] = my_json_decode( "{\"search\":[\"search\"]}" );
10
  $tdatachat_peopletype[".originalPagesByType"] = $tdatachat_peopletype[".pagesByType"];
11
+ $tdatachat_peopletype[".pages"] = types2pages( my_json_decode( "{\"search\":[\"search\"]}" ) );
12
  $tdatachat_peopletype[".originalPages"] = $tdatachat_peopletype[".pages"];
13
+ $tdatachat_peopletype[".defaultPages"] = my_json_decode( "{\"search\":\"search\"}" );
14
  $tdatachat_peopletype[".originalDefaultPages"] = $tdatachat_peopletype[".defaultPages"];
15
 
16
  // field labels
 
44
  $tdatachat_peopletype[".nSecOptions"] = 0;
45
 
46
  $tdatachat_peopletype[".mainTableOwnerID"] = "";
47
+ $tdatachat_peopletype[".entityType"] = 0;
48
+ $tdatachat_peopletype[".connId"] = "chats_at_localhost";
49
 
50
 
51
+ $tdatachat_peopletype[".strOriginalTableName"] = "chat_peopletype";
52
 
53
 
54
 
 
64
  // temporary
65
  //$tdatachat_peopletype[".listAjax"] = false;
66
 
67
+ $tdatachat_peopletype[".audit"] = false;
68
 
69
  $tdatachat_peopletype[".locking"] = false;
70
 
 
128
 
129
 
130
 
131
+
132
 
133
  $tdatachat_peopletype[".ajaxCodeSnippetAdded"] = false;
134
 
 
183
  $tdatachat_peopletype[".orderindexes"] = array();
184
 
185
 
186
+ $tdatachat_peopletype[".sqlHead"] = "SELECT id, name";
187
  $tdatachat_peopletype[".sqlFrom"] = "FROM chat_peopletype";
188
  $tdatachat_peopletype[".sqlWhereExpr"] = "";
189
  $tdatachat_peopletype[".sqlTail"] = "";
 
237
  $fdata["Index"] = 1;
238
  $fdata["strName"] = "id";
239
  $fdata["GoodName"] = "id";
240
+ $fdata["ownerTable"] = "chat_peopletype";
241
  $fdata["Label"] = GetFieldLabel("chat_peopletype","id");
242
  $fdata["FieldType"] = 3;
243
 
 
379
  $fdata["Index"] = 2;
380
  $fdata["strName"] = "name";
381
  $fdata["GoodName"] = "name";
382
+ $fdata["ownerTable"] = "chat_peopletype";
383
  $fdata["Label"] = GetFieldLabel("chat_peopletype","name");
384
  $fdata["FieldType"] = 200;
385
 
 
556
  {
557
  $proto0=array();
558
  $proto0["m_strHead"] = "SELECT";
559
+ $proto0["m_strFieldList"] = "id, name";
560
  $proto0["m_strFrom"] = "FROM chat_peopletype";
561
  $proto0["m_strWhere"] = "";
562
  $proto0["m_strOrderBy"] = "";
 
599
  $proto6=array();
600
  $obj = new SQLField(array(
601
  "m_strName" => "id",
602
+ "m_strTable" => "chat_peopletype",
603
  "m_srcTableName" => "chat_peopletype"
604
  ));
605
 
 
613
  $proto8=array();
614
  $obj = new SQLField(array(
615
  "m_strName" => "name",
616
+ "m_strTable" => "chat_peopletype",
617
  "m_srcTableName" => "chat_peopletype"
618
  ));
619
 
 
628
  $proto10=array();
629
  $proto10["m_link"] = "SQLL_MAIN";
630
  $proto11=array();
631
+ $proto11["m_strName"] = "chat_peopletype";
632
  $proto11["m_srcTableName"] = "chat_peopletype";
633
  $proto11["m_columns"] = array();
634
  $proto11["m_columns"][] = "id";
php/include/chat_peopletype_variables.php CHANGED
@@ -2,7 +2,7 @@
2
  $strTableName="chat_peopletype";
3
  $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
 
5
- $strOriginalTableName="public.chat_peopletype";
6
 
7
  $gstrOrderBy="";
8
  if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
 
2
  $strTableName="chat_peopletype";
3
  $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
 
5
+ $strOriginalTableName="chat_peopletype";
6
 
7
  $gstrOrderBy="";
8
  if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
php/include/chat_settings_settings.php CHANGED
@@ -3,14 +3,14 @@ $tdatachat_settings = array();
3
  $tdatachat_settings[".searchableFields"] = array();
4
  $tdatachat_settings[".ShortName"] = "chat_settings";
5
  $tdatachat_settings[".OwnerID"] = "";
6
- $tdatachat_settings[".OriginalTable"] = "public.chat_settings";
7
 
8
 
9
- $tdatachat_settings[".pagesByType"] = my_json_decode( "{}" );
10
  $tdatachat_settings[".originalPagesByType"] = $tdatachat_settings[".pagesByType"];
11
- $tdatachat_settings[".pages"] = types2pages( my_json_decode( "{}" ) );
12
  $tdatachat_settings[".originalPages"] = $tdatachat_settings[".pages"];
13
- $tdatachat_settings[".defaultPages"] = my_json_decode( "{}" );
14
  $tdatachat_settings[".originalDefaultPages"] = $tdatachat_settings[".defaultPages"];
15
 
16
  // field labels
@@ -100,6 +100,7 @@ if(mlang_getcurrentlang()=="English")
100
  $fieldLabelschat_settings["English"]["WB_ClientSecret"] = "Client Secret";
101
  $fieldToolTipschat_settings["English"]["WB_ClientSecret"] = "";
102
  $placeHolderschat_settings["English"]["WB_ClientSecret"] = "";
 
103
  if (count($fieldToolTipschat_settings["English"]))
104
  $tdatachat_settings[".isUseToolTips"] = true;
105
  }
@@ -113,11 +114,11 @@ $tdatachat_settings[".shortTableName"] = "chat_settings";
113
  $tdatachat_settings[".nSecOptions"] = 0;
114
 
115
  $tdatachat_settings[".mainTableOwnerID"] = "";
116
- $tdatachat_settings[".entityType"] = 1;
117
- $tdatachat_settings[".connId"] = "KnowledgeBase2_at_localhost";
118
 
119
 
120
- $tdatachat_settings[".strOriginalTableName"] = "public.chat_settings";
121
 
122
 
123
 
@@ -133,7 +134,7 @@ $tdatachat_settings[".listAjax"] = false;
133
  // temporary
134
  //$tdatachat_settings[".listAjax"] = false;
135
 
136
- $tdatachat_settings[".audit"] = true;
137
 
138
  $tdatachat_settings[".locking"] = false;
139
 
@@ -197,7 +198,7 @@ $tdatachat_settings[".isUseAjaxSuggest"] = true;
197
 
198
 
199
 
200
-
201
 
202
 
203
 
@@ -277,7 +278,7 @@ $tdatachat_settings[".strOrderBy"] = $tstrOrderBy;
277
  $tdatachat_settings[".orderindexes"] = array();
278
 
279
 
280
- $tdatachat_settings[".sqlHead"] = "SELECT id, timeperiod, findusers, soundpath, soundenable, videoenable, provider, RC_ClientID, RC_ClientSecret, RC_Account, RC_Password, Z_APIKey, Z_APISecret, saveInCloud, Z_Token, timezone, RC_APIServerURL, MS_ClientID, MS_ClientSecret, MS_TenantID, G_ClientID, G_ClientSecret, G_APIKey, WB_ClientID, WB_ClientSecret";
281
  $tdatachat_settings[".sqlFrom"] = "FROM chat_settings";
282
  $tdatachat_settings[".sqlWhereExpr"] = "";
283
  $tdatachat_settings[".sqlTail"] = "";
@@ -331,7 +332,7 @@ $tdatachat_settings[".hideMobileList"] = array();
331
  $fdata["Index"] = 1;
332
  $fdata["strName"] = "id";
333
  $fdata["GoodName"] = "id";
334
- $fdata["ownerTable"] = "public.chat_settings";
335
  $fdata["Label"] = GetFieldLabel("chat_settings","id");
336
  $fdata["FieldType"] = 3;
337
 
@@ -473,7 +474,7 @@ $tdatachat_settings[".hideMobileList"] = array();
473
  $fdata["Index"] = 2;
474
  $fdata["strName"] = "timeperiod";
475
  $fdata["GoodName"] = "timeperiod";
476
- $fdata["ownerTable"] = "public.chat_settings";
477
  $fdata["Label"] = GetFieldLabel("chat_settings","timeperiod");
478
  $fdata["FieldType"] = 3;
479
 
@@ -612,7 +613,7 @@ $tdatachat_settings[".hideMobileList"] = array();
612
  $fdata["Index"] = 3;
613
  $fdata["strName"] = "findusers";
614
  $fdata["GoodName"] = "findusers";
615
- $fdata["ownerTable"] = "public.chat_settings";
616
  $fdata["Label"] = GetFieldLabel("chat_settings","findusers");
617
  $fdata["FieldType"] = 3;
618
 
@@ -747,7 +748,7 @@ $tdatachat_settings[".hideMobileList"] = array();
747
  $fdata["Index"] = 4;
748
  $fdata["strName"] = "soundpath";
749
  $fdata["GoodName"] = "soundpath";
750
- $fdata["ownerTable"] = "public.chat_settings";
751
  $fdata["Label"] = GetFieldLabel("chat_settings","soundpath");
752
  $fdata["FieldType"] = 200;
753
 
@@ -885,7 +886,7 @@ $tdatachat_settings[".hideMobileList"] = array();
885
  $fdata["Index"] = 5;
886
  $fdata["strName"] = "soundenable";
887
  $fdata["GoodName"] = "soundenable";
888
- $fdata["ownerTable"] = "public.chat_settings";
889
  $fdata["Label"] = GetFieldLabel("chat_settings","soundenable");
890
  $fdata["FieldType"] = 3;
891
 
@@ -1020,7 +1021,7 @@ $tdatachat_settings[".hideMobileList"] = array();
1020
  $fdata["Index"] = 6;
1021
  $fdata["strName"] = "videoenable";
1022
  $fdata["GoodName"] = "videoenable";
1023
- $fdata["ownerTable"] = "public.chat_settings";
1024
  $fdata["Label"] = GetFieldLabel("chat_settings","videoenable");
1025
  $fdata["FieldType"] = 3;
1026
 
@@ -1158,7 +1159,7 @@ $tdatachat_settings[".hideMobileList"] = array();
1158
  $fdata["Index"] = 7;
1159
  $fdata["strName"] = "provider";
1160
  $fdata["GoodName"] = "provider";
1161
- $fdata["ownerTable"] = "public.chat_settings";
1162
  $fdata["Label"] = GetFieldLabel("chat_settings","provider");
1163
  $fdata["FieldType"] = 200;
1164
 
@@ -1316,7 +1317,7 @@ $tdatachat_settings[".hideMobileList"] = array();
1316
  $fdata["Index"] = 8;
1317
  $fdata["strName"] = "RC_ClientID";
1318
  $fdata["GoodName"] = "RC_ClientID";
1319
- $fdata["ownerTable"] = "public.chat_settings";
1320
  $fdata["Label"] = GetFieldLabel("chat_settings","RC_ClientID");
1321
  $fdata["FieldType"] = 200;
1322
 
@@ -1455,7 +1456,7 @@ $tdatachat_settings[".hideMobileList"] = array();
1455
  $fdata["Index"] = 9;
1456
  $fdata["strName"] = "RC_ClientSecret";
1457
  $fdata["GoodName"] = "RC_ClientSecret";
1458
- $fdata["ownerTable"] = "public.chat_settings";
1459
  $fdata["Label"] = GetFieldLabel("chat_settings","RC_ClientSecret");
1460
  $fdata["FieldType"] = 200;
1461
 
@@ -1594,7 +1595,7 @@ $tdatachat_settings[".hideMobileList"] = array();
1594
  $fdata["Index"] = 10;
1595
  $fdata["strName"] = "RC_Account";
1596
  $fdata["GoodName"] = "RC_Account";
1597
- $fdata["ownerTable"] = "public.chat_settings";
1598
  $fdata["Label"] = GetFieldLabel("chat_settings","RC_Account");
1599
  $fdata["FieldType"] = 200;
1600
 
@@ -1733,7 +1734,7 @@ $tdatachat_settings[".hideMobileList"] = array();
1733
  $fdata["Index"] = 11;
1734
  $fdata["strName"] = "RC_Password";
1735
  $fdata["GoodName"] = "RC_Password";
1736
- $fdata["ownerTable"] = "public.chat_settings";
1737
  $fdata["Label"] = GetFieldLabel("chat_settings","RC_Password");
1738
  $fdata["FieldType"] = 200;
1739
 
@@ -1872,7 +1873,7 @@ $tdatachat_settings[".hideMobileList"] = array();
1872
  $fdata["Index"] = 12;
1873
  $fdata["strName"] = "Z_APIKey";
1874
  $fdata["GoodName"] = "Z_APIKey";
1875
- $fdata["ownerTable"] = "public.chat_settings";
1876
  $fdata["Label"] = GetFieldLabel("chat_settings","Z_APIKey");
1877
  $fdata["FieldType"] = 200;
1878
 
@@ -2011,7 +2012,7 @@ $tdatachat_settings[".hideMobileList"] = array();
2011
  $fdata["Index"] = 13;
2012
  $fdata["strName"] = "Z_APISecret";
2013
  $fdata["GoodName"] = "Z_APISecret";
2014
- $fdata["ownerTable"] = "public.chat_settings";
2015
  $fdata["Label"] = GetFieldLabel("chat_settings","Z_APISecret");
2016
  $fdata["FieldType"] = 200;
2017
 
@@ -2150,7 +2151,7 @@ $tdatachat_settings[".hideMobileList"] = array();
2150
  $fdata["Index"] = 14;
2151
  $fdata["strName"] = "saveInCloud";
2152
  $fdata["GoodName"] = "saveInCloud";
2153
- $fdata["ownerTable"] = "public.chat_settings";
2154
  $fdata["Label"] = GetFieldLabel("chat_settings","saveInCloud");
2155
  $fdata["FieldType"] = 3;
2156
 
@@ -2285,7 +2286,7 @@ $tdatachat_settings[".hideMobileList"] = array();
2285
  $fdata["Index"] = 15;
2286
  $fdata["strName"] = "Z_Token";
2287
  $fdata["GoodName"] = "Z_Token";
2288
- $fdata["ownerTable"] = "public.chat_settings";
2289
  $fdata["Label"] = GetFieldLabel("chat_settings","Z_Token");
2290
  $fdata["FieldType"] = 200;
2291
 
@@ -2424,7 +2425,7 @@ $tdatachat_settings[".hideMobileList"] = array();
2424
  $fdata["Index"] = 16;
2425
  $fdata["strName"] = "timezone";
2426
  $fdata["GoodName"] = "timezone";
2427
- $fdata["ownerTable"] = "public.chat_settings";
2428
  $fdata["Label"] = GetFieldLabel("chat_settings","timezone");
2429
  $fdata["FieldType"] = 200;
2430
 
@@ -2588,7 +2589,7 @@ $tdatachat_settings[".hideMobileList"] = array();
2588
  $fdata["Index"] = 17;
2589
  $fdata["strName"] = "RC_APIServerURL";
2590
  $fdata["GoodName"] = "RC_APIServerURL";
2591
- $fdata["ownerTable"] = "public.chat_settings";
2592
  $fdata["Label"] = GetFieldLabel("chat_settings","RC_APIServerURL");
2593
  $fdata["FieldType"] = 200;
2594
 
@@ -2727,7 +2728,7 @@ $tdatachat_settings[".hideMobileList"] = array();
2727
  $fdata["Index"] = 18;
2728
  $fdata["strName"] = "MS_ClientID";
2729
  $fdata["GoodName"] = "MS_ClientID";
2730
- $fdata["ownerTable"] = "public.chat_settings";
2731
  $fdata["Label"] = GetFieldLabel("chat_settings","MS_ClientID");
2732
  $fdata["FieldType"] = 200;
2733
 
@@ -2866,7 +2867,7 @@ $tdatachat_settings[".hideMobileList"] = array();
2866
  $fdata["Index"] = 19;
2867
  $fdata["strName"] = "MS_ClientSecret";
2868
  $fdata["GoodName"] = "MS_ClientSecret";
2869
- $fdata["ownerTable"] = "public.chat_settings";
2870
  $fdata["Label"] = GetFieldLabel("chat_settings","MS_ClientSecret");
2871
  $fdata["FieldType"] = 200;
2872
 
@@ -3005,7 +3006,7 @@ $tdatachat_settings[".hideMobileList"] = array();
3005
  $fdata["Index"] = 20;
3006
  $fdata["strName"] = "MS_TenantID";
3007
  $fdata["GoodName"] = "MS_TenantID";
3008
- $fdata["ownerTable"] = "public.chat_settings";
3009
  $fdata["Label"] = GetFieldLabel("chat_settings","MS_TenantID");
3010
  $fdata["FieldType"] = 200;
3011
 
@@ -3144,7 +3145,7 @@ $tdatachat_settings[".hideMobileList"] = array();
3144
  $fdata["Index"] = 21;
3145
  $fdata["strName"] = "G_ClientID";
3146
  $fdata["GoodName"] = "G_ClientID";
3147
- $fdata["ownerTable"] = "public.chat_settings";
3148
  $fdata["Label"] = GetFieldLabel("chat_settings","G_ClientID");
3149
  $fdata["FieldType"] = 200;
3150
 
@@ -3283,7 +3284,7 @@ $tdatachat_settings[".hideMobileList"] = array();
3283
  $fdata["Index"] = 22;
3284
  $fdata["strName"] = "G_ClientSecret";
3285
  $fdata["GoodName"] = "G_ClientSecret";
3286
- $fdata["ownerTable"] = "public.chat_settings";
3287
  $fdata["Label"] = GetFieldLabel("chat_settings","G_ClientSecret");
3288
  $fdata["FieldType"] = 200;
3289
 
@@ -3422,7 +3423,7 @@ $tdatachat_settings[".hideMobileList"] = array();
3422
  $fdata["Index"] = 23;
3423
  $fdata["strName"] = "G_APIKey";
3424
  $fdata["GoodName"] = "G_APIKey";
3425
- $fdata["ownerTable"] = "public.chat_settings";
3426
  $fdata["Label"] = GetFieldLabel("chat_settings","G_APIKey");
3427
  $fdata["FieldType"] = 200;
3428
 
@@ -3561,7 +3562,7 @@ $tdatachat_settings[".hideMobileList"] = array();
3561
  $fdata["Index"] = 24;
3562
  $fdata["strName"] = "WB_ClientID";
3563
  $fdata["GoodName"] = "WB_ClientID";
3564
- $fdata["ownerTable"] = "public.chat_settings";
3565
  $fdata["Label"] = GetFieldLabel("chat_settings","WB_ClientID");
3566
  $fdata["FieldType"] = 200;
3567
 
@@ -3700,7 +3701,7 @@ $tdatachat_settings[".hideMobileList"] = array();
3700
  $fdata["Index"] = 25;
3701
  $fdata["strName"] = "WB_ClientSecret";
3702
  $fdata["GoodName"] = "WB_ClientSecret";
3703
- $fdata["ownerTable"] = "public.chat_settings";
3704
  $fdata["Label"] = GetFieldLabel("chat_settings","WB_ClientSecret");
3705
  $fdata["FieldType"] = 200;
3706
 
@@ -3877,7 +3878,7 @@ function createSqlQuery_chat_settings()
3877
  {
3878
  $proto0=array();
3879
  $proto0["m_strHead"] = "SELECT";
3880
- $proto0["m_strFieldList"] = "id, timeperiod, findusers, soundpath, soundenable, videoenable, provider, RC_ClientID, RC_ClientSecret, RC_Account, RC_Password, Z_APIKey, Z_APISecret, saveInCloud, Z_Token, timezone, RC_APIServerURL, MS_ClientID, MS_ClientSecret, MS_TenantID, G_ClientID, G_ClientSecret, G_APIKey, WB_ClientID, WB_ClientSecret";
3881
  $proto0["m_strFrom"] = "FROM chat_settings";
3882
  $proto0["m_strWhere"] = "";
3883
  $proto0["m_strOrderBy"] = "";
@@ -3920,7 +3921,7 @@ $proto0["m_fieldlist"] = array();
3920
  $proto6=array();
3921
  $obj = new SQLField(array(
3922
  "m_strName" => "id",
3923
- "m_strTable" => "public.chat_settings",
3924
  "m_srcTableName" => "chat_settings"
3925
  ));
3926
 
@@ -3934,7 +3935,7 @@ $proto0["m_fieldlist"][]=$obj;
3934
  $proto8=array();
3935
  $obj = new SQLField(array(
3936
  "m_strName" => "timeperiod",
3937
- "m_strTable" => "public.chat_settings",
3938
  "m_srcTableName" => "chat_settings"
3939
  ));
3940
 
@@ -3948,7 +3949,7 @@ $proto0["m_fieldlist"][]=$obj;
3948
  $proto10=array();
3949
  $obj = new SQLField(array(
3950
  "m_strName" => "findusers",
3951
- "m_strTable" => "public.chat_settings",
3952
  "m_srcTableName" => "chat_settings"
3953
  ));
3954
 
@@ -3962,7 +3963,7 @@ $proto0["m_fieldlist"][]=$obj;
3962
  $proto12=array();
3963
  $obj = new SQLField(array(
3964
  "m_strName" => "soundpath",
3965
- "m_strTable" => "public.chat_settings",
3966
  "m_srcTableName" => "chat_settings"
3967
  ));
3968
 
@@ -3976,7 +3977,7 @@ $proto0["m_fieldlist"][]=$obj;
3976
  $proto14=array();
3977
  $obj = new SQLField(array(
3978
  "m_strName" => "soundenable",
3979
- "m_strTable" => "public.chat_settings",
3980
  "m_srcTableName" => "chat_settings"
3981
  ));
3982
 
@@ -3990,7 +3991,7 @@ $proto0["m_fieldlist"][]=$obj;
3990
  $proto16=array();
3991
  $obj = new SQLField(array(
3992
  "m_strName" => "videoenable",
3993
- "m_strTable" => "public.chat_settings",
3994
  "m_srcTableName" => "chat_settings"
3995
  ));
3996
 
@@ -4004,7 +4005,7 @@ $proto0["m_fieldlist"][]=$obj;
4004
  $proto18=array();
4005
  $obj = new SQLField(array(
4006
  "m_strName" => "provider",
4007
- "m_strTable" => "public.chat_settings",
4008
  "m_srcTableName" => "chat_settings"
4009
  ));
4010
 
@@ -4018,7 +4019,7 @@ $proto0["m_fieldlist"][]=$obj;
4018
  $proto20=array();
4019
  $obj = new SQLField(array(
4020
  "m_strName" => "RC_ClientID",
4021
- "m_strTable" => "public.chat_settings",
4022
  "m_srcTableName" => "chat_settings"
4023
  ));
4024
 
@@ -4032,7 +4033,7 @@ $proto0["m_fieldlist"][]=$obj;
4032
  $proto22=array();
4033
  $obj = new SQLField(array(
4034
  "m_strName" => "RC_ClientSecret",
4035
- "m_strTable" => "public.chat_settings",
4036
  "m_srcTableName" => "chat_settings"
4037
  ));
4038
 
@@ -4046,7 +4047,7 @@ $proto0["m_fieldlist"][]=$obj;
4046
  $proto24=array();
4047
  $obj = new SQLField(array(
4048
  "m_strName" => "RC_Account",
4049
- "m_strTable" => "public.chat_settings",
4050
  "m_srcTableName" => "chat_settings"
4051
  ));
4052
 
@@ -4060,7 +4061,7 @@ $proto0["m_fieldlist"][]=$obj;
4060
  $proto26=array();
4061
  $obj = new SQLField(array(
4062
  "m_strName" => "RC_Password",
4063
- "m_strTable" => "public.chat_settings",
4064
  "m_srcTableName" => "chat_settings"
4065
  ));
4066
 
@@ -4074,7 +4075,7 @@ $proto0["m_fieldlist"][]=$obj;
4074
  $proto28=array();
4075
  $obj = new SQLField(array(
4076
  "m_strName" => "Z_APIKey",
4077
- "m_strTable" => "public.chat_settings",
4078
  "m_srcTableName" => "chat_settings"
4079
  ));
4080
 
@@ -4088,7 +4089,7 @@ $proto0["m_fieldlist"][]=$obj;
4088
  $proto30=array();
4089
  $obj = new SQLField(array(
4090
  "m_strName" => "Z_APISecret",
4091
- "m_strTable" => "public.chat_settings",
4092
  "m_srcTableName" => "chat_settings"
4093
  ));
4094
 
@@ -4102,7 +4103,7 @@ $proto0["m_fieldlist"][]=$obj;
4102
  $proto32=array();
4103
  $obj = new SQLField(array(
4104
  "m_strName" => "saveInCloud",
4105
- "m_strTable" => "public.chat_settings",
4106
  "m_srcTableName" => "chat_settings"
4107
  ));
4108
 
@@ -4116,7 +4117,7 @@ $proto0["m_fieldlist"][]=$obj;
4116
  $proto34=array();
4117
  $obj = new SQLField(array(
4118
  "m_strName" => "Z_Token",
4119
- "m_strTable" => "public.chat_settings",
4120
  "m_srcTableName" => "chat_settings"
4121
  ));
4122
 
@@ -4130,7 +4131,7 @@ $proto0["m_fieldlist"][]=$obj;
4130
  $proto36=array();
4131
  $obj = new SQLField(array(
4132
  "m_strName" => "timezone",
4133
- "m_strTable" => "public.chat_settings",
4134
  "m_srcTableName" => "chat_settings"
4135
  ));
4136
 
@@ -4144,7 +4145,7 @@ $proto0["m_fieldlist"][]=$obj;
4144
  $proto38=array();
4145
  $obj = new SQLField(array(
4146
  "m_strName" => "RC_APIServerURL",
4147
- "m_strTable" => "public.chat_settings",
4148
  "m_srcTableName" => "chat_settings"
4149
  ));
4150
 
@@ -4158,7 +4159,7 @@ $proto0["m_fieldlist"][]=$obj;
4158
  $proto40=array();
4159
  $obj = new SQLField(array(
4160
  "m_strName" => "MS_ClientID",
4161
- "m_strTable" => "public.chat_settings",
4162
  "m_srcTableName" => "chat_settings"
4163
  ));
4164
 
@@ -4172,7 +4173,7 @@ $proto0["m_fieldlist"][]=$obj;
4172
  $proto42=array();
4173
  $obj = new SQLField(array(
4174
  "m_strName" => "MS_ClientSecret",
4175
- "m_strTable" => "public.chat_settings",
4176
  "m_srcTableName" => "chat_settings"
4177
  ));
4178
 
@@ -4186,7 +4187,7 @@ $proto0["m_fieldlist"][]=$obj;
4186
  $proto44=array();
4187
  $obj = new SQLField(array(
4188
  "m_strName" => "MS_TenantID",
4189
- "m_strTable" => "public.chat_settings",
4190
  "m_srcTableName" => "chat_settings"
4191
  ));
4192
 
@@ -4200,7 +4201,7 @@ $proto0["m_fieldlist"][]=$obj;
4200
  $proto46=array();
4201
  $obj = new SQLField(array(
4202
  "m_strName" => "G_ClientID",
4203
- "m_strTable" => "public.chat_settings",
4204
  "m_srcTableName" => "chat_settings"
4205
  ));
4206
 
@@ -4214,7 +4215,7 @@ $proto0["m_fieldlist"][]=$obj;
4214
  $proto48=array();
4215
  $obj = new SQLField(array(
4216
  "m_strName" => "G_ClientSecret",
4217
- "m_strTable" => "public.chat_settings",
4218
  "m_srcTableName" => "chat_settings"
4219
  ));
4220
 
@@ -4228,7 +4229,7 @@ $proto0["m_fieldlist"][]=$obj;
4228
  $proto50=array();
4229
  $obj = new SQLField(array(
4230
  "m_strName" => "G_APIKey",
4231
- "m_strTable" => "public.chat_settings",
4232
  "m_srcTableName" => "chat_settings"
4233
  ));
4234
 
@@ -4242,7 +4243,7 @@ $proto0["m_fieldlist"][]=$obj;
4242
  $proto52=array();
4243
  $obj = new SQLField(array(
4244
  "m_strName" => "WB_ClientID",
4245
- "m_strTable" => "public.chat_settings",
4246
  "m_srcTableName" => "chat_settings"
4247
  ));
4248
 
@@ -4256,7 +4257,7 @@ $proto0["m_fieldlist"][]=$obj;
4256
  $proto54=array();
4257
  $obj = new SQLField(array(
4258
  "m_strName" => "WB_ClientSecret",
4259
- "m_strTable" => "public.chat_settings",
4260
  "m_srcTableName" => "chat_settings"
4261
  ));
4262
 
@@ -4271,7 +4272,7 @@ $proto0["m_fromlist"] = array();
4271
  $proto56=array();
4272
  $proto56["m_link"] = "SQLL_MAIN";
4273
  $proto57=array();
4274
- $proto57["m_strName"] = "public.chat_settings";
4275
  $proto57["m_srcTableName"] = "chat_settings";
4276
  $proto57["m_columns"] = array();
4277
  $proto57["m_columns"][] = "id";
 
3
  $tdatachat_settings[".searchableFields"] = array();
4
  $tdatachat_settings[".ShortName"] = "chat_settings";
5
  $tdatachat_settings[".OwnerID"] = "";
6
+ $tdatachat_settings[".OriginalTable"] = "chat_settings";
7
 
8
 
9
+ $tdatachat_settings[".pagesByType"] = my_json_decode( "{\"edit\":[\"edit\"],\"search\":[\"search\"]}" );
10
  $tdatachat_settings[".originalPagesByType"] = $tdatachat_settings[".pagesByType"];
11
+ $tdatachat_settings[".pages"] = types2pages( my_json_decode( "{\"edit\":[\"edit\"],\"search\":[\"search\"]}" ) );
12
  $tdatachat_settings[".originalPages"] = $tdatachat_settings[".pages"];
13
+ $tdatachat_settings[".defaultPages"] = my_json_decode( "{\"edit\":\"edit\",\"search\":\"search\"}" );
14
  $tdatachat_settings[".originalDefaultPages"] = $tdatachat_settings[".defaultPages"];
15
 
16
  // field labels
 
100
  $fieldLabelschat_settings["English"]["WB_ClientSecret"] = "Client Secret";
101
  $fieldToolTipschat_settings["English"]["WB_ClientSecret"] = "";
102
  $placeHolderschat_settings["English"]["WB_ClientSecret"] = "";
103
+ $pageTitleschat_settings["English"]["edit"] = "Chat Settings";
104
  if (count($fieldToolTipschat_settings["English"]))
105
  $tdatachat_settings[".isUseToolTips"] = true;
106
  }
 
114
  $tdatachat_settings[".nSecOptions"] = 0;
115
 
116
  $tdatachat_settings[".mainTableOwnerID"] = "";
117
+ $tdatachat_settings[".entityType"] = 0;
118
+ $tdatachat_settings[".connId"] = "chats_at_localhost";
119
 
120
 
121
+ $tdatachat_settings[".strOriginalTableName"] = "chat_settings";
122
 
123
 
124
 
 
134
  // temporary
135
  //$tdatachat_settings[".listAjax"] = false;
136
 
137
+ $tdatachat_settings[".audit"] = false;
138
 
139
  $tdatachat_settings[".locking"] = false;
140
 
 
198
 
199
 
200
 
201
+
202
 
203
 
204
 
 
278
  $tdatachat_settings[".orderindexes"] = array();
279
 
280
 
281
+ $tdatachat_settings[".sqlHead"] = "SELECT id, timeperiod, findusers, soundpath, soundenable, videoenable, provider, RC_ClientID, RC_ClientSecret, RC_Account, RC_Password, Z_APIKey, Z_APISecret, saveInCloud, Z_Token, timezone, RC_APIServerURL, MS_ClientID, MS_ClientSecret, MS_TenantID, G_ClientID, G_ClientSecret, G_APIKey, WB_ClientID, WB_ClientSecret";
282
  $tdatachat_settings[".sqlFrom"] = "FROM chat_settings";
283
  $tdatachat_settings[".sqlWhereExpr"] = "";
284
  $tdatachat_settings[".sqlTail"] = "";
 
332
  $fdata["Index"] = 1;
333
  $fdata["strName"] = "id";
334
  $fdata["GoodName"] = "id";
335
+ $fdata["ownerTable"] = "chat_settings";
336
  $fdata["Label"] = GetFieldLabel("chat_settings","id");
337
  $fdata["FieldType"] = 3;
338
 
 
474
  $fdata["Index"] = 2;
475
  $fdata["strName"] = "timeperiod";
476
  $fdata["GoodName"] = "timeperiod";
477
+ $fdata["ownerTable"] = "chat_settings";
478
  $fdata["Label"] = GetFieldLabel("chat_settings","timeperiod");
479
  $fdata["FieldType"] = 3;
480
 
 
613
  $fdata["Index"] = 3;
614
  $fdata["strName"] = "findusers";
615
  $fdata["GoodName"] = "findusers";
616
+ $fdata["ownerTable"] = "chat_settings";
617
  $fdata["Label"] = GetFieldLabel("chat_settings","findusers");
618
  $fdata["FieldType"] = 3;
619
 
 
748
  $fdata["Index"] = 4;
749
  $fdata["strName"] = "soundpath";
750
  $fdata["GoodName"] = "soundpath";
751
+ $fdata["ownerTable"] = "chat_settings";
752
  $fdata["Label"] = GetFieldLabel("chat_settings","soundpath");
753
  $fdata["FieldType"] = 200;
754
 
 
886
  $fdata["Index"] = 5;
887
  $fdata["strName"] = "soundenable";
888
  $fdata["GoodName"] = "soundenable";
889
+ $fdata["ownerTable"] = "chat_settings";
890
  $fdata["Label"] = GetFieldLabel("chat_settings","soundenable");
891
  $fdata["FieldType"] = 3;
892
 
 
1021
  $fdata["Index"] = 6;
1022
  $fdata["strName"] = "videoenable";
1023
  $fdata["GoodName"] = "videoenable";
1024
+ $fdata["ownerTable"] = "chat_settings";
1025
  $fdata["Label"] = GetFieldLabel("chat_settings","videoenable");
1026
  $fdata["FieldType"] = 3;
1027
 
 
1159
  $fdata["Index"] = 7;
1160
  $fdata["strName"] = "provider";
1161
  $fdata["GoodName"] = "provider";
1162
+ $fdata["ownerTable"] = "chat_settings";
1163
  $fdata["Label"] = GetFieldLabel("chat_settings","provider");
1164
  $fdata["FieldType"] = 200;
1165
 
 
1317
  $fdata["Index"] = 8;
1318
  $fdata["strName"] = "RC_ClientID";
1319
  $fdata["GoodName"] = "RC_ClientID";
1320
+ $fdata["ownerTable"] = "chat_settings";
1321
  $fdata["Label"] = GetFieldLabel("chat_settings","RC_ClientID");
1322
  $fdata["FieldType"] = 200;
1323
 
 
1456
  $fdata["Index"] = 9;
1457
  $fdata["strName"] = "RC_ClientSecret";
1458
  $fdata["GoodName"] = "RC_ClientSecret";
1459
+ $fdata["ownerTable"] = "chat_settings";
1460
  $fdata["Label"] = GetFieldLabel("chat_settings","RC_ClientSecret");
1461
  $fdata["FieldType"] = 200;
1462
 
 
1595
  $fdata["Index"] = 10;
1596
  $fdata["strName"] = "RC_Account";
1597
  $fdata["GoodName"] = "RC_Account";
1598
+ $fdata["ownerTable"] = "chat_settings";
1599
  $fdata["Label"] = GetFieldLabel("chat_settings","RC_Account");
1600
  $fdata["FieldType"] = 200;
1601
 
 
1734
  $fdata["Index"] = 11;
1735
  $fdata["strName"] = "RC_Password";
1736
  $fdata["GoodName"] = "RC_Password";
1737
+ $fdata["ownerTable"] = "chat_settings";
1738
  $fdata["Label"] = GetFieldLabel("chat_settings","RC_Password");
1739
  $fdata["FieldType"] = 200;
1740
 
 
1873
  $fdata["Index"] = 12;
1874
  $fdata["strName"] = "Z_APIKey";
1875
  $fdata["GoodName"] = "Z_APIKey";
1876
+ $fdata["ownerTable"] = "chat_settings";
1877
  $fdata["Label"] = GetFieldLabel("chat_settings","Z_APIKey");
1878
  $fdata["FieldType"] = 200;
1879
 
 
2012
  $fdata["Index"] = 13;
2013
  $fdata["strName"] = "Z_APISecret";
2014
  $fdata["GoodName"] = "Z_APISecret";
2015
+ $fdata["ownerTable"] = "chat_settings";
2016
  $fdata["Label"] = GetFieldLabel("chat_settings","Z_APISecret");
2017
  $fdata["FieldType"] = 200;
2018
 
 
2151
  $fdata["Index"] = 14;
2152
  $fdata["strName"] = "saveInCloud";
2153
  $fdata["GoodName"] = "saveInCloud";
2154
+ $fdata["ownerTable"] = "chat_settings";
2155
  $fdata["Label"] = GetFieldLabel("chat_settings","saveInCloud");
2156
  $fdata["FieldType"] = 3;
2157
 
 
2286
  $fdata["Index"] = 15;
2287
  $fdata["strName"] = "Z_Token";
2288
  $fdata["GoodName"] = "Z_Token";
2289
+ $fdata["ownerTable"] = "chat_settings";
2290
  $fdata["Label"] = GetFieldLabel("chat_settings","Z_Token");
2291
  $fdata["FieldType"] = 200;
2292
 
 
2425
  $fdata["Index"] = 16;
2426
  $fdata["strName"] = "timezone";
2427
  $fdata["GoodName"] = "timezone";
2428
+ $fdata["ownerTable"] = "chat_settings";
2429
  $fdata["Label"] = GetFieldLabel("chat_settings","timezone");
2430
  $fdata["FieldType"] = 200;
2431
 
 
2589
  $fdata["Index"] = 17;
2590
  $fdata["strName"] = "RC_APIServerURL";
2591
  $fdata["GoodName"] = "RC_APIServerURL";
2592
+ $fdata["ownerTable"] = "chat_settings";
2593
  $fdata["Label"] = GetFieldLabel("chat_settings","RC_APIServerURL");
2594
  $fdata["FieldType"] = 200;
2595
 
 
2728
  $fdata["Index"] = 18;
2729
  $fdata["strName"] = "MS_ClientID";
2730
  $fdata["GoodName"] = "MS_ClientID";
2731
+ $fdata["ownerTable"] = "chat_settings";
2732
  $fdata["Label"] = GetFieldLabel("chat_settings","MS_ClientID");
2733
  $fdata["FieldType"] = 200;
2734
 
 
2867
  $fdata["Index"] = 19;
2868
  $fdata["strName"] = "MS_ClientSecret";
2869
  $fdata["GoodName"] = "MS_ClientSecret";
2870
+ $fdata["ownerTable"] = "chat_settings";
2871
  $fdata["Label"] = GetFieldLabel("chat_settings","MS_ClientSecret");
2872
  $fdata["FieldType"] = 200;
2873
 
 
3006
  $fdata["Index"] = 20;
3007
  $fdata["strName"] = "MS_TenantID";
3008
  $fdata["GoodName"] = "MS_TenantID";
3009
+ $fdata["ownerTable"] = "chat_settings";
3010
  $fdata["Label"] = GetFieldLabel("chat_settings","MS_TenantID");
3011
  $fdata["FieldType"] = 200;
3012
 
 
3145
  $fdata["Index"] = 21;
3146
  $fdata["strName"] = "G_ClientID";
3147
  $fdata["GoodName"] = "G_ClientID";
3148
+ $fdata["ownerTable"] = "chat_settings";
3149
  $fdata["Label"] = GetFieldLabel("chat_settings","G_ClientID");
3150
  $fdata["FieldType"] = 200;
3151
 
 
3284
  $fdata["Index"] = 22;
3285
  $fdata["strName"] = "G_ClientSecret";
3286
  $fdata["GoodName"] = "G_ClientSecret";
3287
+ $fdata["ownerTable"] = "chat_settings";
3288
  $fdata["Label"] = GetFieldLabel("chat_settings","G_ClientSecret");
3289
  $fdata["FieldType"] = 200;
3290
 
 
3423
  $fdata["Index"] = 23;
3424
  $fdata["strName"] = "G_APIKey";
3425
  $fdata["GoodName"] = "G_APIKey";
3426
+ $fdata["ownerTable"] = "chat_settings";
3427
  $fdata["Label"] = GetFieldLabel("chat_settings","G_APIKey");
3428
  $fdata["FieldType"] = 200;
3429
 
 
3562
  $fdata["Index"] = 24;
3563
  $fdata["strName"] = "WB_ClientID";
3564
  $fdata["GoodName"] = "WB_ClientID";
3565
+ $fdata["ownerTable"] = "chat_settings";
3566
  $fdata["Label"] = GetFieldLabel("chat_settings","WB_ClientID");
3567
  $fdata["FieldType"] = 200;
3568
 
 
3701
  $fdata["Index"] = 25;
3702
  $fdata["strName"] = "WB_ClientSecret";
3703
  $fdata["GoodName"] = "WB_ClientSecret";
3704
+ $fdata["ownerTable"] = "chat_settings";
3705
  $fdata["Label"] = GetFieldLabel("chat_settings","WB_ClientSecret");
3706
  $fdata["FieldType"] = 200;
3707
 
 
3878
  {
3879
  $proto0=array();
3880
  $proto0["m_strHead"] = "SELECT";
3881
+ $proto0["m_strFieldList"] = "id, timeperiod, findusers, soundpath, soundenable, videoenable, provider, RC_ClientID, RC_ClientSecret, RC_Account, RC_Password, Z_APIKey, Z_APISecret, saveInCloud, Z_Token, timezone, RC_APIServerURL, MS_ClientID, MS_ClientSecret, MS_TenantID, G_ClientID, G_ClientSecret, G_APIKey, WB_ClientID, WB_ClientSecret";
3882
  $proto0["m_strFrom"] = "FROM chat_settings";
3883
  $proto0["m_strWhere"] = "";
3884
  $proto0["m_strOrderBy"] = "";
 
3921
  $proto6=array();
3922
  $obj = new SQLField(array(
3923
  "m_strName" => "id",
3924
+ "m_strTable" => "chat_settings",
3925
  "m_srcTableName" => "chat_settings"
3926
  ));
3927
 
 
3935
  $proto8=array();
3936
  $obj = new SQLField(array(
3937
  "m_strName" => "timeperiod",
3938
+ "m_strTable" => "chat_settings",
3939
  "m_srcTableName" => "chat_settings"
3940
  ));
3941
 
 
3949
  $proto10=array();
3950
  $obj = new SQLField(array(
3951
  "m_strName" => "findusers",
3952
+ "m_strTable" => "chat_settings",
3953
  "m_srcTableName" => "chat_settings"
3954
  ));
3955
 
 
3963
  $proto12=array();
3964
  $obj = new SQLField(array(
3965
  "m_strName" => "soundpath",
3966
+ "m_strTable" => "chat_settings",
3967
  "m_srcTableName" => "chat_settings"
3968
  ));
3969
 
 
3977
  $proto14=array();
3978
  $obj = new SQLField(array(
3979
  "m_strName" => "soundenable",
3980
+ "m_strTable" => "chat_settings",
3981
  "m_srcTableName" => "chat_settings"
3982
  ));
3983
 
 
3991
  $proto16=array();
3992
  $obj = new SQLField(array(
3993
  "m_strName" => "videoenable",
3994
+ "m_strTable" => "chat_settings",
3995
  "m_srcTableName" => "chat_settings"
3996
  ));
3997
 
 
4005
  $proto18=array();
4006
  $obj = new SQLField(array(
4007
  "m_strName" => "provider",
4008
+ "m_strTable" => "chat_settings",
4009
  "m_srcTableName" => "chat_settings"
4010
  ));
4011
 
 
4019
  $proto20=array();
4020
  $obj = new SQLField(array(
4021
  "m_strName" => "RC_ClientID",
4022
+ "m_strTable" => "chat_settings",
4023
  "m_srcTableName" => "chat_settings"
4024
  ));
4025
 
 
4033
  $proto22=array();
4034
  $obj = new SQLField(array(
4035
  "m_strName" => "RC_ClientSecret",
4036
+ "m_strTable" => "chat_settings",
4037
  "m_srcTableName" => "chat_settings"
4038
  ));
4039
 
 
4047
  $proto24=array();
4048
  $obj = new SQLField(array(
4049
  "m_strName" => "RC_Account",
4050
+ "m_strTable" => "chat_settings",
4051
  "m_srcTableName" => "chat_settings"
4052
  ));
4053
 
 
4061
  $proto26=array();
4062
  $obj = new SQLField(array(
4063
  "m_strName" => "RC_Password",
4064
+ "m_strTable" => "chat_settings",
4065
  "m_srcTableName" => "chat_settings"
4066
  ));
4067
 
 
4075
  $proto28=array();
4076
  $obj = new SQLField(array(
4077
  "m_strName" => "Z_APIKey",
4078
+ "m_strTable" => "chat_settings",
4079
  "m_srcTableName" => "chat_settings"
4080
  ));
4081
 
 
4089
  $proto30=array();
4090
  $obj = new SQLField(array(
4091
  "m_strName" => "Z_APISecret",
4092
+ "m_strTable" => "chat_settings",
4093
  "m_srcTableName" => "chat_settings"
4094
  ));
4095
 
 
4103
  $proto32=array();
4104
  $obj = new SQLField(array(
4105
  "m_strName" => "saveInCloud",
4106
+ "m_strTable" => "chat_settings",
4107
  "m_srcTableName" => "chat_settings"
4108
  ));
4109
 
 
4117
  $proto34=array();
4118
  $obj = new SQLField(array(
4119
  "m_strName" => "Z_Token",
4120
+ "m_strTable" => "chat_settings",
4121
  "m_srcTableName" => "chat_settings"
4122
  ));
4123
 
 
4131
  $proto36=array();
4132
  $obj = new SQLField(array(
4133
  "m_strName" => "timezone",
4134
+ "m_strTable" => "chat_settings",
4135
  "m_srcTableName" => "chat_settings"
4136
  ));
4137
 
 
4145
  $proto38=array();
4146
  $obj = new SQLField(array(
4147
  "m_strName" => "RC_APIServerURL",
4148
+ "m_strTable" => "chat_settings",
4149
  "m_srcTableName" => "chat_settings"
4150
  ));
4151
 
 
4159
  $proto40=array();
4160
  $obj = new SQLField(array(
4161
  "m_strName" => "MS_ClientID",
4162
+ "m_strTable" => "chat_settings",
4163
  "m_srcTableName" => "chat_settings"
4164
  ));
4165
 
 
4173
  $proto42=array();
4174
  $obj = new SQLField(array(
4175
  "m_strName" => "MS_ClientSecret",
4176
+ "m_strTable" => "chat_settings",
4177
  "m_srcTableName" => "chat_settings"
4178
  ));
4179
 
 
4187
  $proto44=array();
4188
  $obj = new SQLField(array(
4189
  "m_strName" => "MS_TenantID",
4190
+ "m_strTable" => "chat_settings",
4191
  "m_srcTableName" => "chat_settings"
4192
  ));
4193
 
 
4201
  $proto46=array();
4202
  $obj = new SQLField(array(
4203
  "m_strName" => "G_ClientID",
4204
+ "m_strTable" => "chat_settings",
4205
  "m_srcTableName" => "chat_settings"
4206
  ));
4207
 
 
4215
  $proto48=array();
4216
  $obj = new SQLField(array(
4217
  "m_strName" => "G_ClientSecret",
4218
+ "m_strTable" => "chat_settings",
4219
  "m_srcTableName" => "chat_settings"
4220
  ));
4221
 
 
4229
  $proto50=array();
4230
  $obj = new SQLField(array(
4231
  "m_strName" => "G_APIKey",
4232
+ "m_strTable" => "chat_settings",
4233
  "m_srcTableName" => "chat_settings"
4234
  ));
4235
 
 
4243
  $proto52=array();
4244
  $obj = new SQLField(array(
4245
  "m_strName" => "WB_ClientID",
4246
+ "m_strTable" => "chat_settings",
4247
  "m_srcTableName" => "chat_settings"
4248
  ));
4249
 
 
4257
  $proto54=array();
4258
  $obj = new SQLField(array(
4259
  "m_strName" => "WB_ClientSecret",
4260
+ "m_strTable" => "chat_settings",
4261
  "m_srcTableName" => "chat_settings"
4262
  ));
4263
 
 
4272
  $proto56=array();
4273
  $proto56["m_link"] = "SQLL_MAIN";
4274
  $proto57=array();
4275
+ $proto57["m_strName"] = "chat_settings";
4276
  $proto57["m_srcTableName"] = "chat_settings";
4277
  $proto57["m_columns"] = array();
4278
  $proto57["m_columns"][] = "id";
php/include/chat_settings_variables.php CHANGED
@@ -2,7 +2,7 @@
2
  $strTableName="chat_settings";
3
  $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
 
5
- $strOriginalTableName="public.chat_settings";
6
 
7
  $gstrOrderBy="";
8
  if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
 
2
  $strTableName="chat_settings";
3
  $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
 
5
+ $strOriginalTableName="chat_settings";
6
 
7
  $gstrOrderBy="";
8
  if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
php/include/chat_timezone_settings.php CHANGED
@@ -3,7 +3,7 @@ $tdatachat_timezone = array();
3
  $tdatachat_timezone[".searchableFields"] = array();
4
  $tdatachat_timezone[".ShortName"] = "chat_timezone";
5
  $tdatachat_timezone[".OwnerID"] = "";
6
- $tdatachat_timezone[".OriginalTable"] = "public.chat_timezone";
7
 
8
 
9
  $tdatachat_timezone[".pagesByType"] = my_json_decode( "{}" );
@@ -56,11 +56,11 @@ $tdatachat_timezone[".shortTableName"] = "chat_timezone";
56
  $tdatachat_timezone[".nSecOptions"] = 0;
57
 
58
  $tdatachat_timezone[".mainTableOwnerID"] = "";
59
- $tdatachat_timezone[".entityType"] = 1;
60
- $tdatachat_timezone[".connId"] = "KnowledgeBase2_at_localhost";
61
 
62
 
63
- $tdatachat_timezone[".strOriginalTableName"] = "public.chat_timezone";
64
 
65
 
66
 
@@ -76,7 +76,7 @@ $tdatachat_timezone[".listAjax"] = false;
76
  // temporary
77
  //$tdatachat_timezone[".listAjax"] = false;
78
 
79
- $tdatachat_timezone[".audit"] = true;
80
 
81
  $tdatachat_timezone[".locking"] = false;
82
 
@@ -140,7 +140,7 @@ $tdatachat_timezone[".isUseAjaxSuggest"] = true;
140
 
141
 
142
 
143
-
144
 
145
  $tdatachat_timezone[".ajaxCodeSnippetAdded"] = false;
146
 
@@ -199,7 +199,7 @@ $tdatachat_timezone[".strOrderBy"] = $tstrOrderBy;
199
  $tdatachat_timezone[".orderindexes"] = array();
200
 
201
 
202
- $tdatachat_timezone[".sqlHead"] = "SELECT id, zoom, name, rc, \"order\", dotnet";
203
  $tdatachat_timezone[".sqlFrom"] = "FROM chat_timezone";
204
  $tdatachat_timezone[".sqlWhereExpr"] = "";
205
  $tdatachat_timezone[".sqlTail"] = "";
@@ -253,7 +253,7 @@ $tdatachat_timezone[".hideMobileList"] = array();
253
  $fdata["Index"] = 1;
254
  $fdata["strName"] = "id";
255
  $fdata["GoodName"] = "id";
256
- $fdata["ownerTable"] = "public.chat_timezone";
257
  $fdata["Label"] = GetFieldLabel("chat_timezone","id");
258
  $fdata["FieldType"] = 3;
259
 
@@ -395,7 +395,7 @@ $tdatachat_timezone[".hideMobileList"] = array();
395
  $fdata["Index"] = 2;
396
  $fdata["strName"] = "zoom";
397
  $fdata["GoodName"] = "zoom";
398
- $fdata["ownerTable"] = "public.chat_timezone";
399
  $fdata["Label"] = GetFieldLabel("chat_timezone","zoom");
400
  $fdata["FieldType"] = 200;
401
 
@@ -534,7 +534,7 @@ $tdatachat_timezone[".hideMobileList"] = array();
534
  $fdata["Index"] = 3;
535
  $fdata["strName"] = "name";
536
  $fdata["GoodName"] = "name";
537
- $fdata["ownerTable"] = "public.chat_timezone";
538
  $fdata["Label"] = GetFieldLabel("chat_timezone","name");
539
  $fdata["FieldType"] = 200;
540
 
@@ -673,7 +673,7 @@ $tdatachat_timezone[".hideMobileList"] = array();
673
  $fdata["Index"] = 4;
674
  $fdata["strName"] = "rc";
675
  $fdata["GoodName"] = "rc";
676
- $fdata["ownerTable"] = "public.chat_timezone";
677
  $fdata["Label"] = GetFieldLabel("chat_timezone","rc");
678
  $fdata["FieldType"] = 200;
679
 
@@ -812,7 +812,7 @@ $tdatachat_timezone[".hideMobileList"] = array();
812
  $fdata["Index"] = 5;
813
  $fdata["strName"] = "order";
814
  $fdata["GoodName"] = "order";
815
- $fdata["ownerTable"] = "public.chat_timezone";
816
  $fdata["Label"] = GetFieldLabel("chat_timezone","order");
817
  $fdata["FieldType"] = 3;
818
 
@@ -827,7 +827,7 @@ $tdatachat_timezone[".hideMobileList"] = array();
827
 
828
 
829
  $fdata["isSQLExpression"] = true;
830
- $fdata["FullName"] = "\"order\"";
831
 
832
 
833
 
@@ -951,7 +951,7 @@ $tdatachat_timezone[".hideMobileList"] = array();
951
  $fdata["Index"] = 6;
952
  $fdata["strName"] = "dotnet";
953
  $fdata["GoodName"] = "dotnet";
954
- $fdata["ownerTable"] = "public.chat_timezone";
955
  $fdata["Label"] = GetFieldLabel("chat_timezone","dotnet");
956
  $fdata["FieldType"] = 200;
957
 
@@ -1128,7 +1128,7 @@ function createSqlQuery_chat_timezone()
1128
  {
1129
  $proto0=array();
1130
  $proto0["m_strHead"] = "SELECT";
1131
- $proto0["m_strFieldList"] = "id, zoom, name, rc, \"order\", dotnet";
1132
  $proto0["m_strFrom"] = "FROM chat_timezone";
1133
  $proto0["m_strWhere"] = "";
1134
  $proto0["m_strOrderBy"] = "";
@@ -1171,7 +1171,7 @@ $proto0["m_fieldlist"] = array();
1171
  $proto6=array();
1172
  $obj = new SQLField(array(
1173
  "m_strName" => "id",
1174
- "m_strTable" => "public.chat_timezone",
1175
  "m_srcTableName" => "chat_timezone"
1176
  ));
1177
 
@@ -1185,7 +1185,7 @@ $proto0["m_fieldlist"][]=$obj;
1185
  $proto8=array();
1186
  $obj = new SQLField(array(
1187
  "m_strName" => "zoom",
1188
- "m_strTable" => "public.chat_timezone",
1189
  "m_srcTableName" => "chat_timezone"
1190
  ));
1191
 
@@ -1199,7 +1199,7 @@ $proto0["m_fieldlist"][]=$obj;
1199
  $proto10=array();
1200
  $obj = new SQLField(array(
1201
  "m_strName" => "name",
1202
- "m_strTable" => "public.chat_timezone",
1203
  "m_srcTableName" => "chat_timezone"
1204
  ));
1205
 
@@ -1213,7 +1213,7 @@ $proto0["m_fieldlist"][]=$obj;
1213
  $proto12=array();
1214
  $obj = new SQLField(array(
1215
  "m_strName" => "rc",
1216
- "m_strTable" => "public.chat_timezone",
1217
  "m_srcTableName" => "chat_timezone"
1218
  ));
1219
 
@@ -1227,11 +1227,11 @@ $proto0["m_fieldlist"][]=$obj;
1227
  $proto14=array();
1228
  $obj = new SQLField(array(
1229
  "m_strName" => "order",
1230
- "m_strTable" => "public.chat_timezone",
1231
  "m_srcTableName" => "chat_timezone"
1232
  ));
1233
 
1234
- $proto14["m_sql"] = "\"order\"";
1235
  $proto14["m_srcTableName"] = "chat_timezone";
1236
  $proto14["m_expr"]=$obj;
1237
  $proto14["m_alias"] = "";
@@ -1241,7 +1241,7 @@ $proto0["m_fieldlist"][]=$obj;
1241
  $proto16=array();
1242
  $obj = new SQLField(array(
1243
  "m_strName" => "dotnet",
1244
- "m_strTable" => "public.chat_timezone",
1245
  "m_srcTableName" => "chat_timezone"
1246
  ));
1247
 
@@ -1256,7 +1256,7 @@ $proto0["m_fromlist"] = array();
1256
  $proto18=array();
1257
  $proto18["m_link"] = "SQLL_MAIN";
1258
  $proto19=array();
1259
- $proto19["m_strName"] = "public.chat_timezone";
1260
  $proto19["m_srcTableName"] = "chat_timezone";
1261
  $proto19["m_columns"] = array();
1262
  $proto19["m_columns"][] = "id";
 
3
  $tdatachat_timezone[".searchableFields"] = array();
4
  $tdatachat_timezone[".ShortName"] = "chat_timezone";
5
  $tdatachat_timezone[".OwnerID"] = "";
6
+ $tdatachat_timezone[".OriginalTable"] = "chat_timezone";
7
 
8
 
9
  $tdatachat_timezone[".pagesByType"] = my_json_decode( "{}" );
 
56
  $tdatachat_timezone[".nSecOptions"] = 0;
57
 
58
  $tdatachat_timezone[".mainTableOwnerID"] = "";
59
+ $tdatachat_timezone[".entityType"] = 0;
60
+ $tdatachat_timezone[".connId"] = "chats_at_localhost";
61
 
62
 
63
+ $tdatachat_timezone[".strOriginalTableName"] = "chat_timezone";
64
 
65
 
66
 
 
76
  // temporary
77
  //$tdatachat_timezone[".listAjax"] = false;
78
 
79
+ $tdatachat_timezone[".audit"] = false;
80
 
81
  $tdatachat_timezone[".locking"] = false;
82
 
 
140
 
141
 
142
 
143
+
144
 
145
  $tdatachat_timezone[".ajaxCodeSnippetAdded"] = false;
146
 
 
199
  $tdatachat_timezone[".orderindexes"] = array();
200
 
201
 
202
+ $tdatachat_timezone[".sqlHead"] = "SELECT id, zoom, name, rc, `order`, dotnet";
203
  $tdatachat_timezone[".sqlFrom"] = "FROM chat_timezone";
204
  $tdatachat_timezone[".sqlWhereExpr"] = "";
205
  $tdatachat_timezone[".sqlTail"] = "";
 
253
  $fdata["Index"] = 1;
254
  $fdata["strName"] = "id";
255
  $fdata["GoodName"] = "id";
256
+ $fdata["ownerTable"] = "chat_timezone";
257
  $fdata["Label"] = GetFieldLabel("chat_timezone","id");
258
  $fdata["FieldType"] = 3;
259
 
 
395
  $fdata["Index"] = 2;
396
  $fdata["strName"] = "zoom";
397
  $fdata["GoodName"] = "zoom";
398
+ $fdata["ownerTable"] = "chat_timezone";
399
  $fdata["Label"] = GetFieldLabel("chat_timezone","zoom");
400
  $fdata["FieldType"] = 200;
401
 
 
534
  $fdata["Index"] = 3;
535
  $fdata["strName"] = "name";
536
  $fdata["GoodName"] = "name";
537
+ $fdata["ownerTable"] = "chat_timezone";
538
  $fdata["Label"] = GetFieldLabel("chat_timezone","name");
539
  $fdata["FieldType"] = 200;
540
 
 
673
  $fdata["Index"] = 4;
674
  $fdata["strName"] = "rc";
675
  $fdata["GoodName"] = "rc";
676
+ $fdata["ownerTable"] = "chat_timezone";
677
  $fdata["Label"] = GetFieldLabel("chat_timezone","rc");
678
  $fdata["FieldType"] = 200;
679
 
 
812
  $fdata["Index"] = 5;
813
  $fdata["strName"] = "order";
814
  $fdata["GoodName"] = "order";
815
+ $fdata["ownerTable"] = "chat_timezone";
816
  $fdata["Label"] = GetFieldLabel("chat_timezone","order");
817
  $fdata["FieldType"] = 3;
818
 
 
827
 
828
 
829
  $fdata["isSQLExpression"] = true;
830
+ $fdata["FullName"] = "`order`";
831
 
832
 
833
 
 
951
  $fdata["Index"] = 6;
952
  $fdata["strName"] = "dotnet";
953
  $fdata["GoodName"] = "dotnet";
954
+ $fdata["ownerTable"] = "chat_timezone";
955
  $fdata["Label"] = GetFieldLabel("chat_timezone","dotnet");
956
  $fdata["FieldType"] = 200;
957
 
 
1128
  {
1129
  $proto0=array();
1130
  $proto0["m_strHead"] = "SELECT";
1131
+ $proto0["m_strFieldList"] = "id, zoom, name, rc, `order`, dotnet";
1132
  $proto0["m_strFrom"] = "FROM chat_timezone";
1133
  $proto0["m_strWhere"] = "";
1134
  $proto0["m_strOrderBy"] = "";
 
1171
  $proto6=array();
1172
  $obj = new SQLField(array(
1173
  "m_strName" => "id",
1174
+ "m_strTable" => "chat_timezone",
1175
  "m_srcTableName" => "chat_timezone"
1176
  ));
1177
 
 
1185
  $proto8=array();
1186
  $obj = new SQLField(array(
1187
  "m_strName" => "zoom",
1188
+ "m_strTable" => "chat_timezone",
1189
  "m_srcTableName" => "chat_timezone"
1190
  ));
1191
 
 
1199
  $proto10=array();
1200
  $obj = new SQLField(array(
1201
  "m_strName" => "name",
1202
+ "m_strTable" => "chat_timezone",
1203
  "m_srcTableName" => "chat_timezone"
1204
  ));
1205
 
 
1213
  $proto12=array();
1214
  $obj = new SQLField(array(
1215
  "m_strName" => "rc",
1216
+ "m_strTable" => "chat_timezone",
1217
  "m_srcTableName" => "chat_timezone"
1218
  ));
1219
 
 
1227
  $proto14=array();
1228
  $obj = new SQLField(array(
1229
  "m_strName" => "order",
1230
+ "m_strTable" => "chat_timezone",
1231
  "m_srcTableName" => "chat_timezone"
1232
  ));
1233
 
1234
+ $proto14["m_sql"] = "`order`";
1235
  $proto14["m_srcTableName"] = "chat_timezone";
1236
  $proto14["m_expr"]=$obj;
1237
  $proto14["m_alias"] = "";
 
1241
  $proto16=array();
1242
  $obj = new SQLField(array(
1243
  "m_strName" => "dotnet",
1244
+ "m_strTable" => "chat_timezone",
1245
  "m_srcTableName" => "chat_timezone"
1246
  ));
1247
 
 
1256
  $proto18=array();
1257
  $proto18["m_link"] = "SQLL_MAIN";
1258
  $proto19=array();
1259
+ $proto19["m_strName"] = "chat_timezone";
1260
  $proto19["m_srcTableName"] = "chat_timezone";
1261
  $proto19["m_columns"] = array();
1262
  $proto19["m_columns"][] = "id";
php/include/chat_timezone_variables.php CHANGED
@@ -2,7 +2,7 @@
2
  $strTableName="chat_timezone";
3
  $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
 
5
- $strOriginalTableName="public.chat_timezone";
6
 
7
  $gstrOrderBy="";
8
  if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
 
2
  $strTableName="chat_timezone";
3
  $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
 
5
+ $strOriginalTableName="chat_timezone";
6
 
7
  $gstrOrderBy="";
8
  if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
php/include/chat_users_settings.php CHANGED
@@ -3,14 +3,14 @@ $tdatachat_users = array();
3
  $tdatachat_users[".searchableFields"] = array();
4
  $tdatachat_users[".ShortName"] = "chat_users";
5
  $tdatachat_users[".OwnerID"] = "";
6
- $tdatachat_users[".OriginalTable"] = "public.chat_users";
7
 
8
 
9
- $tdatachat_users[".pagesByType"] = my_json_decode( "{}" );
10
  $tdatachat_users[".originalPagesByType"] = $tdatachat_users[".pagesByType"];
11
- $tdatachat_users[".pages"] = types2pages( my_json_decode( "{}" ) );
12
  $tdatachat_users[".originalPages"] = $tdatachat_users[".pages"];
13
- $tdatachat_users[".defaultPages"] = my_json_decode( "{}" );
14
  $tdatachat_users[".originalDefaultPages"] = $tdatachat_users[".defaultPages"];
15
 
16
  // field labels
@@ -53,11 +53,11 @@ $tdatachat_users[".shortTableName"] = "chat_users";
53
  $tdatachat_users[".nSecOptions"] = 0;
54
 
55
  $tdatachat_users[".mainTableOwnerID"] = "";
56
- $tdatachat_users[".entityType"] = 1;
57
- $tdatachat_users[".connId"] = "KnowledgeBase2_at_localhost";
58
 
59
 
60
- $tdatachat_users[".strOriginalTableName"] = "public.chat_users";
61
 
62
 
63
 
@@ -73,7 +73,7 @@ $tdatachat_users[".listAjax"] = false;
73
  // temporary
74
  //$tdatachat_users[".listAjax"] = false;
75
 
76
- $tdatachat_users[".audit"] = true;
77
 
78
  $tdatachat_users[".locking"] = false;
79
 
@@ -137,7 +137,7 @@ $tdatachat_users[".isUseAjaxSuggest"] = true;
137
 
138
 
139
 
140
-
141
 
142
  $tdatachat_users[".ajaxCodeSnippetAdded"] = false;
143
 
@@ -194,7 +194,7 @@ $tdatachat_users[".strOrderBy"] = $tstrOrderBy;
194
  $tdatachat_users[".orderindexes"] = array();
195
 
196
 
197
- $tdatachat_users[".sqlHead"] = "SELECT id, userid, lastaccess, isTyping, userpic";
198
  $tdatachat_users[".sqlFrom"] = "FROM chat_users";
199
  $tdatachat_users[".sqlWhereExpr"] = "";
200
  $tdatachat_users[".sqlTail"] = "";
@@ -248,7 +248,7 @@ $tdatachat_users[".hideMobileList"] = array();
248
  $fdata["Index"] = 1;
249
  $fdata["strName"] = "id";
250
  $fdata["GoodName"] = "id";
251
- $fdata["ownerTable"] = "public.chat_users";
252
  $fdata["Label"] = GetFieldLabel("chat_users","id");
253
  $fdata["FieldType"] = 3;
254
 
@@ -390,7 +390,7 @@ $tdatachat_users[".hideMobileList"] = array();
390
  $fdata["Index"] = 2;
391
  $fdata["strName"] = "userid";
392
  $fdata["GoodName"] = "userid";
393
- $fdata["ownerTable"] = "public.chat_users";
394
  $fdata["Label"] = GetFieldLabel("chat_users","userid");
395
  $fdata["FieldType"] = 200;
396
 
@@ -529,7 +529,7 @@ $tdatachat_users[".hideMobileList"] = array();
529
  $fdata["Index"] = 3;
530
  $fdata["strName"] = "lastaccess";
531
  $fdata["GoodName"] = "lastaccess";
532
- $fdata["ownerTable"] = "public.chat_users";
533
  $fdata["Label"] = GetFieldLabel("chat_users","lastaccess");
534
  $fdata["FieldType"] = 135;
535
 
@@ -668,7 +668,7 @@ $tdatachat_users[".hideMobileList"] = array();
668
  $fdata["Index"] = 4;
669
  $fdata["strName"] = "isTyping";
670
  $fdata["GoodName"] = "isTyping";
671
- $fdata["ownerTable"] = "public.chat_users";
672
  $fdata["Label"] = GetFieldLabel("chat_users","isTyping");
673
  $fdata["FieldType"] = 200;
674
 
@@ -807,7 +807,7 @@ $tdatachat_users[".hideMobileList"] = array();
807
  $fdata["Index"] = 5;
808
  $fdata["strName"] = "userpic";
809
  $fdata["GoodName"] = "userpic";
810
- $fdata["ownerTable"] = "public.chat_users";
811
  $fdata["Label"] = GetFieldLabel("chat_users","userpic");
812
  $fdata["FieldType"] = 128;
813
 
@@ -992,7 +992,7 @@ function createSqlQuery_chat_users()
992
  {
993
  $proto0=array();
994
  $proto0["m_strHead"] = "SELECT";
995
- $proto0["m_strFieldList"] = "id, userid, lastaccess, isTyping, userpic";
996
  $proto0["m_strFrom"] = "FROM chat_users";
997
  $proto0["m_strWhere"] = "";
998
  $proto0["m_strOrderBy"] = "";
@@ -1035,7 +1035,7 @@ $proto0["m_fieldlist"] = array();
1035
  $proto6=array();
1036
  $obj = new SQLField(array(
1037
  "m_strName" => "id",
1038
- "m_strTable" => "public.chat_users",
1039
  "m_srcTableName" => "chat_users"
1040
  ));
1041
 
@@ -1049,7 +1049,7 @@ $proto0["m_fieldlist"][]=$obj;
1049
  $proto8=array();
1050
  $obj = new SQLField(array(
1051
  "m_strName" => "userid",
1052
- "m_strTable" => "public.chat_users",
1053
  "m_srcTableName" => "chat_users"
1054
  ));
1055
 
@@ -1063,7 +1063,7 @@ $proto0["m_fieldlist"][]=$obj;
1063
  $proto10=array();
1064
  $obj = new SQLField(array(
1065
  "m_strName" => "lastaccess",
1066
- "m_strTable" => "public.chat_users",
1067
  "m_srcTableName" => "chat_users"
1068
  ));
1069
 
@@ -1077,7 +1077,7 @@ $proto0["m_fieldlist"][]=$obj;
1077
  $proto12=array();
1078
  $obj = new SQLField(array(
1079
  "m_strName" => "isTyping",
1080
- "m_strTable" => "public.chat_users",
1081
  "m_srcTableName" => "chat_users"
1082
  ));
1083
 
@@ -1091,7 +1091,7 @@ $proto0["m_fieldlist"][]=$obj;
1091
  $proto14=array();
1092
  $obj = new SQLField(array(
1093
  "m_strName" => "userpic",
1094
- "m_strTable" => "public.chat_users",
1095
  "m_srcTableName" => "chat_users"
1096
  ));
1097
 
@@ -1106,7 +1106,7 @@ $proto0["m_fromlist"] = array();
1106
  $proto16=array();
1107
  $proto16["m_link"] = "SQLL_MAIN";
1108
  $proto17=array();
1109
- $proto17["m_strName"] = "public.chat_users";
1110
  $proto17["m_srcTableName"] = "chat_users";
1111
  $proto17["m_columns"] = array();
1112
  $proto17["m_columns"][] = "id";
 
3
  $tdatachat_users[".searchableFields"] = array();
4
  $tdatachat_users[".ShortName"] = "chat_users";
5
  $tdatachat_users[".OwnerID"] = "";
6
+ $tdatachat_users[".OriginalTable"] = "chat_users";
7
 
8
 
9
+ $tdatachat_users[".pagesByType"] = my_json_decode( "{\"search\":[\"search\"]}" );
10
  $tdatachat_users[".originalPagesByType"] = $tdatachat_users[".pagesByType"];
11
+ $tdatachat_users[".pages"] = types2pages( my_json_decode( "{\"search\":[\"search\"]}" ) );
12
  $tdatachat_users[".originalPages"] = $tdatachat_users[".pages"];
13
+ $tdatachat_users[".defaultPages"] = my_json_decode( "{\"search\":\"search\"}" );
14
  $tdatachat_users[".originalDefaultPages"] = $tdatachat_users[".defaultPages"];
15
 
16
  // field labels
 
53
  $tdatachat_users[".nSecOptions"] = 0;
54
 
55
  $tdatachat_users[".mainTableOwnerID"] = "";
56
+ $tdatachat_users[".entityType"] = 0;
57
+ $tdatachat_users[".connId"] = "chats_at_localhost";
58
 
59
 
60
+ $tdatachat_users[".strOriginalTableName"] = "chat_users";
61
 
62
 
63
 
 
73
  // temporary
74
  //$tdatachat_users[".listAjax"] = false;
75
 
76
+ $tdatachat_users[".audit"] = false;
77
 
78
  $tdatachat_users[".locking"] = false;
79
 
 
137
 
138
 
139
 
140
+
141
 
142
  $tdatachat_users[".ajaxCodeSnippetAdded"] = false;
143
 
 
194
  $tdatachat_users[".orderindexes"] = array();
195
 
196
 
197
+ $tdatachat_users[".sqlHead"] = "SELECT id, userid, lastaccess, isTyping, userpic";
198
  $tdatachat_users[".sqlFrom"] = "FROM chat_users";
199
  $tdatachat_users[".sqlWhereExpr"] = "";
200
  $tdatachat_users[".sqlTail"] = "";
 
248
  $fdata["Index"] = 1;
249
  $fdata["strName"] = "id";
250
  $fdata["GoodName"] = "id";
251
+ $fdata["ownerTable"] = "chat_users";
252
  $fdata["Label"] = GetFieldLabel("chat_users","id");
253
  $fdata["FieldType"] = 3;
254
 
 
390
  $fdata["Index"] = 2;
391
  $fdata["strName"] = "userid";
392
  $fdata["GoodName"] = "userid";
393
+ $fdata["ownerTable"] = "chat_users";
394
  $fdata["Label"] = GetFieldLabel("chat_users","userid");
395
  $fdata["FieldType"] = 200;
396
 
 
529
  $fdata["Index"] = 3;
530
  $fdata["strName"] = "lastaccess";
531
  $fdata["GoodName"] = "lastaccess";
532
+ $fdata["ownerTable"] = "chat_users";
533
  $fdata["Label"] = GetFieldLabel("chat_users","lastaccess");
534
  $fdata["FieldType"] = 135;
535
 
 
668
  $fdata["Index"] = 4;
669
  $fdata["strName"] = "isTyping";
670
  $fdata["GoodName"] = "isTyping";
671
+ $fdata["ownerTable"] = "chat_users";
672
  $fdata["Label"] = GetFieldLabel("chat_users","isTyping");
673
  $fdata["FieldType"] = 200;
674
 
 
807
  $fdata["Index"] = 5;
808
  $fdata["strName"] = "userpic";
809
  $fdata["GoodName"] = "userpic";
810
+ $fdata["ownerTable"] = "chat_users";
811
  $fdata["Label"] = GetFieldLabel("chat_users","userpic");
812
  $fdata["FieldType"] = 128;
813
 
 
992
  {
993
  $proto0=array();
994
  $proto0["m_strHead"] = "SELECT";
995
+ $proto0["m_strFieldList"] = "id, userid, lastaccess, isTyping, userpic";
996
  $proto0["m_strFrom"] = "FROM chat_users";
997
  $proto0["m_strWhere"] = "";
998
  $proto0["m_strOrderBy"] = "";
 
1035
  $proto6=array();
1036
  $obj = new SQLField(array(
1037
  "m_strName" => "id",
1038
+ "m_strTable" => "chat_users",
1039
  "m_srcTableName" => "chat_users"
1040
  ));
1041
 
 
1049
  $proto8=array();
1050
  $obj = new SQLField(array(
1051
  "m_strName" => "userid",
1052
+ "m_strTable" => "chat_users",
1053
  "m_srcTableName" => "chat_users"
1054
  ));
1055
 
 
1063
  $proto10=array();
1064
  $obj = new SQLField(array(
1065
  "m_strName" => "lastaccess",
1066
+ "m_strTable" => "chat_users",
1067
  "m_srcTableName" => "chat_users"
1068
  ));
1069
 
 
1077
  $proto12=array();
1078
  $obj = new SQLField(array(
1079
  "m_strName" => "isTyping",
1080
+ "m_strTable" => "chat_users",
1081
  "m_srcTableName" => "chat_users"
1082
  ));
1083
 
 
1091
  $proto14=array();
1092
  $obj = new SQLField(array(
1093
  "m_strName" => "userpic",
1094
+ "m_strTable" => "chat_users",
1095
  "m_srcTableName" => "chat_users"
1096
  ));
1097
 
 
1106
  $proto16=array();
1107
  $proto16["m_link"] = "SQLL_MAIN";
1108
  $proto17=array();
1109
+ $proto17["m_strName"] = "chat_users";
1110
  $proto17["m_srcTableName"] = "chat_users";
1111
  $proto17["m_columns"] = array();
1112
  $proto17["m_columns"][] = "id";
php/include/chat_users_variables.php CHANGED
@@ -2,7 +2,7 @@
2
  $strTableName="chat_users";
3
  $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
 
5
- $strOriginalTableName="public.chat_users";
6
 
7
  $gstrOrderBy="";
8
  if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
 
2
  $strTableName="chat_users";
3
  $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];
4
 
5
+ $strOriginalTableName="chat_users";
6
 
7
  $gstrOrderBy="";
8
  if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
php/include/commonfunctions.php CHANGED
@@ -203,28 +203,6 @@ function checkTableName($shortTName )
203
  if (!$shortTName)
204
  return false;
205
 
206
- if ("kbarticles" == $shortTName )
207
- return true;
208
- if ("kbcategories" == $shortTName )
209
- return true;
210
- if ("kbcomments" == $shortTName )
211
- return true;
212
- if ("public_kbusers" == $shortTName )
213
- return true;
214
- if ("main" == $shortTName )
215
- return true;
216
- if ("faicons" == $shortTName )
217
- return true;
218
- if ("admin_comments" == $shortTName )
219
- return true;
220
- if ("fasis_chat_history" == $shortTName )
221
- return true;
222
- if ("products" == $shortTName )
223
- return true;
224
- if ("items" == $shortTName )
225
- return true;
226
- if ("appointments" == $shortTName )
227
- return true;
228
  if ("chat_history" == $shortTName )
229
  return true;
230
  if ("chat_users" == $shortTName )
@@ -239,37 +217,7 @@ function checkTableName($shortTName )
239
  return true;
240
  if ("chat_timezone" == $shortTName )
241
  return true;
242
- if ("chat_files1" == $shortTName )
243
- return true;
244
- if ("chat_groups1" == $shortTName )
245
- return true;
246
- if ("chat_history1" == $shortTName )
247
- return true;
248
- if ("chat_peopletype1" == $shortTName )
249
- return true;
250
- if ("chat_settings1" == $shortTName )
251
- return true;
252
- if ("identity" == $shortTName )
253
- return true;
254
- if ("dataset_info" == $shortTName )
255
- return true;
256
- if ("admin_rights" == $shortTName )
257
- return true;
258
- if ("admin_members" == $shortTName )
259
- return true;
260
- if ("admin_users" == $shortTName )
261
- return true;
262
- if ("history" == $shortTName )
263
- return true;
264
- if ("zendesk__dataszz" == $shortTName )
265
- return true;
266
- if ("view_zendesk" == $shortTName )
267
- return true;
268
- if ("prompts" == $shortTName )
269
- return true;
270
- if ("view_faisis_chat_history" == $shortTName )
271
- return true;
272
- if ("server_setting" == $shortTName )
273
  return true;
274
  return false;
275
  }
@@ -322,105 +270,6 @@ function GetTablesList($pdfMode = false)
322
  $arr = array();
323
  $checkPermissions = Security::permissionsAvailable();
324
  $tableAvailable = true;
325
- if( $checkPermissions ) {
326
- $strPerm = GetUserPermissions("kbarticles");
327
- $tableAvailable = ( strpos($strPerm, "P") !== false
328
- || $pdfMode && strpos($strPerm, "S") !== false );
329
- }
330
- if( $tableAvailable ) {
331
- $arr[]="kbarticles";
332
- }
333
- $tableAvailable = true;
334
- if( $checkPermissions ) {
335
- $strPerm = GetUserPermissions("kbcategories");
336
- $tableAvailable = ( strpos($strPerm, "P") !== false
337
- || $pdfMode && strpos($strPerm, "S") !== false );
338
- }
339
- if( $tableAvailable ) {
340
- $arr[]="kbcategories";
341
- }
342
- $tableAvailable = true;
343
- if( $checkPermissions ) {
344
- $strPerm = GetUserPermissions("kbcomments");
345
- $tableAvailable = ( strpos($strPerm, "P") !== false
346
- || $pdfMode && strpos($strPerm, "S") !== false );
347
- }
348
- if( $tableAvailable ) {
349
- $arr[]="kbcomments";
350
- }
351
- $tableAvailable = true;
352
- if( $checkPermissions ) {
353
- $strPerm = GetUserPermissions("public.kbusers");
354
- $tableAvailable = ( strpos($strPerm, "P") !== false
355
- || $pdfMode && strpos($strPerm, "S") !== false );
356
- }
357
- if( $tableAvailable ) {
358
- $arr[]="public.kbusers";
359
- }
360
- $tableAvailable = true;
361
- if( $checkPermissions ) {
362
- $strPerm = GetUserPermissions("main");
363
- $tableAvailable = ( strpos($strPerm, "P") !== false
364
- || $pdfMode && strpos($strPerm, "S") !== false );
365
- }
366
- if( $tableAvailable ) {
367
- $arr[]="main";
368
- }
369
- $tableAvailable = true;
370
- if( $checkPermissions ) {
371
- $strPerm = GetUserPermissions("faicons");
372
- $tableAvailable = ( strpos($strPerm, "P") !== false
373
- || $pdfMode && strpos($strPerm, "S") !== false );
374
- }
375
- if( $tableAvailable ) {
376
- $arr[]="faicons";
377
- }
378
- $tableAvailable = true;
379
- if( $checkPermissions ) {
380
- $strPerm = GetUserPermissions("admin_comments");
381
- $tableAvailable = ( strpos($strPerm, "P") !== false
382
- || $pdfMode && strpos($strPerm, "S") !== false );
383
- }
384
- if( $tableAvailable ) {
385
- $arr[]="admin_comments";
386
- }
387
- $tableAvailable = true;
388
- if( $checkPermissions ) {
389
- $strPerm = GetUserPermissions("public.fasis_chat_history");
390
- $tableAvailable = ( strpos($strPerm, "P") !== false
391
- || $pdfMode && strpos($strPerm, "S") !== false );
392
- }
393
- if( $tableAvailable ) {
394
- $arr[]="public.fasis_chat_history";
395
- }
396
- $tableAvailable = true;
397
- if( $checkPermissions ) {
398
- $strPerm = GetUserPermissions("public.products");
399
- $tableAvailable = ( strpos($strPerm, "P") !== false
400
- || $pdfMode && strpos($strPerm, "S") !== false );
401
- }
402
- if( $tableAvailable ) {
403
- $arr[]="public.products";
404
- }
405
- $tableAvailable = true;
406
- if( $checkPermissions ) {
407
- $strPerm = GetUserPermissions("public.items");
408
- $tableAvailable = ( strpos($strPerm, "P") !== false
409
- || $pdfMode && strpos($strPerm, "S") !== false );
410
- }
411
- if( $tableAvailable ) {
412
- $arr[]="public.items";
413
- }
414
- $tableAvailable = true;
415
- if( $checkPermissions ) {
416
- $strPerm = GetUserPermissions("public.appointments");
417
- $tableAvailable = ( strpos($strPerm, "P") !== false
418
- || $pdfMode && strpos($strPerm, "S") !== false );
419
- }
420
- if( $tableAvailable ) {
421
- $arr[]="public.appointments";
422
- }
423
- $tableAvailable = true;
424
  if( $checkPermissions ) {
425
  $strPerm = GetUserPermissions("chat_history");
426
  $tableAvailable = ( strpos($strPerm, "P") !== false
@@ -485,147 +334,12 @@ function GetTablesList($pdfMode = false)
485
  }
486
  $tableAvailable = true;
487
  if( $checkPermissions ) {
488
- $strPerm = GetUserPermissions("public.chat_files");
489
- $tableAvailable = ( strpos($strPerm, "P") !== false
490
- || $pdfMode && strpos($strPerm, "S") !== false );
491
- }
492
- if( $tableAvailable ) {
493
- $arr[]="public.chat_files";
494
- }
495
- $tableAvailable = true;
496
- if( $checkPermissions ) {
497
- $strPerm = GetUserPermissions("public.chat_groups");
498
- $tableAvailable = ( strpos($strPerm, "P") !== false
499
- || $pdfMode && strpos($strPerm, "S") !== false );
500
- }
501
- if( $tableAvailable ) {
502
- $arr[]="public.chat_groups";
503
- }
504
- $tableAvailable = true;
505
- if( $checkPermissions ) {
506
- $strPerm = GetUserPermissions("public.chat_history");
507
- $tableAvailable = ( strpos($strPerm, "P") !== false
508
- || $pdfMode && strpos($strPerm, "S") !== false );
509
- }
510
- if( $tableAvailable ) {
511
- $arr[]="public.chat_history";
512
- }
513
- $tableAvailable = true;
514
- if( $checkPermissions ) {
515
- $strPerm = GetUserPermissions("public.chat_peopletype");
516
- $tableAvailable = ( strpos($strPerm, "P") !== false
517
- || $pdfMode && strpos($strPerm, "S") !== false );
518
- }
519
- if( $tableAvailable ) {
520
- $arr[]="public.chat_peopletype";
521
- }
522
- $tableAvailable = true;
523
- if( $checkPermissions ) {
524
- $strPerm = GetUserPermissions("public.chat_settings");
525
- $tableAvailable = ( strpos($strPerm, "P") !== false
526
- || $pdfMode && strpos($strPerm, "S") !== false );
527
- }
528
- if( $tableAvailable ) {
529
- $arr[]="public.chat_settings";
530
- }
531
- $tableAvailable = true;
532
- if( $checkPermissions ) {
533
- $strPerm = GetUserPermissions("public.identity");
534
- $tableAvailable = ( strpos($strPerm, "P") !== false
535
- || $pdfMode && strpos($strPerm, "S") !== false );
536
- }
537
- if( $tableAvailable ) {
538
- $arr[]="public.identity";
539
- }
540
- $tableAvailable = true;
541
- if( $checkPermissions ) {
542
- $strPerm = GetUserPermissions("public.dataset_info");
543
- $tableAvailable = ( strpos($strPerm, "P") !== false
544
- || $pdfMode && strpos($strPerm, "S") !== false );
545
- }
546
- if( $tableAvailable ) {
547
- $arr[]="public.dataset_info";
548
- }
549
- $tableAvailable = true;
550
- if( $checkPermissions ) {
551
- $strPerm = GetUserPermissions("admin_rights");
552
- $tableAvailable = ( strpos($strPerm, "P") !== false
553
- || $pdfMode && strpos($strPerm, "S") !== false );
554
- }
555
- if( $tableAvailable ) {
556
- $arr[]="admin_rights";
557
- }
558
- $tableAvailable = true;
559
- if( $checkPermissions ) {
560
- $strPerm = GetUserPermissions("admin_members");
561
- $tableAvailable = ( strpos($strPerm, "P") !== false
562
- || $pdfMode && strpos($strPerm, "S") !== false );
563
- }
564
- if( $tableAvailable ) {
565
- $arr[]="admin_members";
566
- }
567
- $tableAvailable = true;
568
- if( $checkPermissions ) {
569
- $strPerm = GetUserPermissions("admin_users");
570
- $tableAvailable = ( strpos($strPerm, "P") !== false
571
- || $pdfMode && strpos($strPerm, "S") !== false );
572
- }
573
- if( $tableAvailable ) {
574
- $arr[]="admin_users";
575
- }
576
- $tableAvailable = true;
577
- if( $checkPermissions ) {
578
- $strPerm = GetUserPermissions("public.history");
579
  $tableAvailable = ( strpos($strPerm, "P") !== false
580
  || $pdfMode && strpos($strPerm, "S") !== false );
581
  }
582
  if( $tableAvailable ) {
583
- $arr[]="public.history";
584
- }
585
- $tableAvailable = true;
586
- if( $checkPermissions ) {
587
- $strPerm = GetUserPermissions("public.zendesk__dataszz");
588
- $tableAvailable = ( strpos($strPerm, "P") !== false
589
- || $pdfMode && strpos($strPerm, "S") !== false );
590
- }
591
- if( $tableAvailable ) {
592
- $arr[]="public.zendesk__dataszz";
593
- }
594
- $tableAvailable = true;
595
- if( $checkPermissions ) {
596
- $strPerm = GetUserPermissions("public.view_zendesk");
597
- $tableAvailable = ( strpos($strPerm, "P") !== false
598
- || $pdfMode && strpos($strPerm, "S") !== false );
599
- }
600
- if( $tableAvailable ) {
601
- $arr[]="public.view_zendesk";
602
- }
603
- $tableAvailable = true;
604
- if( $checkPermissions ) {
605
- $strPerm = GetUserPermissions("public.prompts");
606
- $tableAvailable = ( strpos($strPerm, "P") !== false
607
- || $pdfMode && strpos($strPerm, "S") !== false );
608
- }
609
- if( $tableAvailable ) {
610
- $arr[]="public.prompts";
611
- }
612
- $tableAvailable = true;
613
- if( $checkPermissions ) {
614
- $strPerm = GetUserPermissions("public.view_faisis_chat_history");
615
- $tableAvailable = ( strpos($strPerm, "P") !== false
616
- || $pdfMode && strpos($strPerm, "S") !== false );
617
- }
618
- if( $tableAvailable ) {
619
- $arr[]="public.view_faisis_chat_history";
620
- }
621
- $tableAvailable = true;
622
- if( $checkPermissions ) {
623
- $strPerm = GetUserPermissions("public.server_setting");
624
- $tableAvailable = ( strpos($strPerm, "P") !== false
625
- || $pdfMode && strpos($strPerm, "S") !== false );
626
- }
627
- if( $tableAvailable ) {
628
- $arr[]="public.server_setting";
629
  }
630
  return $arr;
631
  }
@@ -636,17 +350,6 @@ function GetTablesList($pdfMode = false)
636
  function GetTablesListWithoutSecurity()
637
  {
638
  $arr = array();
639
- $arr[]="kbarticles";
640
- $arr[]="kbcategories";
641
- $arr[]="kbcomments";
642
- $arr[]="public.kbusers";
643
- $arr[]="main";
644
- $arr[]="faicons";
645
- $arr[]="admin_comments";
646
- $arr[]="public.fasis_chat_history";
647
- $arr[]="public.products";
648
- $arr[]="public.items";
649
- $arr[]="public.appointments";
650
  $arr[]="chat_history";
651
  $arr[]="chat_users";
652
  $arr[]="chat_settings";
@@ -654,22 +357,7 @@ function GetTablesListWithoutSecurity()
654
  $arr[]="chat_groups";
655
  $arr[]="chat_peopletype";
656
  $arr[]="chat_timezone";
657
- $arr[]="public.chat_files";
658
- $arr[]="public.chat_groups";
659
- $arr[]="public.chat_history";
660
- $arr[]="public.chat_peopletype";
661
- $arr[]="public.chat_settings";
662
- $arr[]="public.identity";
663
- $arr[]="public.dataset_info";
664
- $arr[]="admin_rights";
665
- $arr[]="admin_members";
666
- $arr[]="admin_users";
667
- $arr[]="public.history";
668
- $arr[]="public.zendesk__dataszz";
669
- $arr[]="public.view_zendesk";
670
- $arr[]="public.prompts";
671
- $arr[]="public.view_faisis_chat_history";
672
- $arr[]="public.server_setting";
673
  return $arr;
674
  }
675
 
@@ -1274,12 +962,6 @@ function GetUserPermissionsDynamic( $table )
1274
  global $gPermissionsRefreshTime,$gPermissionsRead;
1275
  if( Security::isAdmin() )
1276
  {
1277
- if($table=="admin_rights")
1278
- return "ADESPIM";
1279
- if($table=="admin_members")
1280
- return "ADESPIM";
1281
- if($table=="admin_users")
1282
- return "ADESPIM";
1283
  }
1284
 
1285
  $userRights = &Security::dynamicUserRights();
@@ -1297,512 +979,74 @@ function GetUserPermissionsStatic( $table )
1297
 
1298
  $sUserGroup = storageGet( "GroupID" );
1299
  $extraPerm = "";
1300
- if( $table=="kbarticles" )
1301
- {
1302
- if( $sUserGroup=="<Guest>" )
1303
- {
1304
- $extraPerm = 'M';
1305
- return "".$extraPerm;
1306
- }
1307
- if( $sUserGroup=="admin" )
1308
- {
1309
- $extraPerm = 'M';
1310
- return "AEDSPI".$extraPerm;
1311
- }
1312
- // default permissions
1313
- return "".$extraPerm;
1314
- }
1315
- if( $table=="kbcategories" )
1316
- {
1317
- if( $sUserGroup=="<Guest>" )
1318
- {
1319
- $extraPerm = 'M';
1320
- return "".$extraPerm;
1321
- }
1322
- if( $sUserGroup=="admin" )
1323
- {
1324
- $extraPerm = 'M';
1325
- return "AEDSPI".$extraPerm;
1326
- }
1327
- // default permissions
1328
- return "".$extraPerm;
1329
- }
1330
- if( $table=="kbcomments" )
1331
- {
1332
- if( $sUserGroup=="<Guest>" )
1333
- {
1334
- $extraPerm = 'M';
1335
- return "SPA".$extraPerm;
1336
- }
1337
- if( $sUserGroup=="admin" )
1338
- {
1339
- $extraPerm = 'M';
1340
- return "AEDSPI".$extraPerm;
1341
- }
1342
- // default permissions
1343
- return "AEDSPI".$extraPerm;
1344
- }
1345
- if( $table=="public.kbusers" )
1346
- {
1347
- if( $sUserGroup=="<Guest>" )
1348
- {
1349
- $extraPerm = 'M';
1350
- return "".$extraPerm;
1351
- }
1352
- if( $sUserGroup=="admin" )
1353
- {
1354
- $extraPerm = 'M';
1355
- return "AEDSPI".$extraPerm;
1356
- }
1357
- // default permissions
1358
- return "".$extraPerm;
1359
- }
1360
- if( $table=="main" )
1361
- {
1362
- if( $sUserGroup=="<Guest>" )
1363
- {
1364
- $extraPerm = 'M';
1365
- return "SP".$extraPerm;
1366
- }
1367
- if( $sUserGroup=="admin" )
1368
- {
1369
- $extraPerm = 'M';
1370
- return "AEDSPI".$extraPerm;
1371
- }
1372
- // default permissions
1373
- return "S".$extraPerm;
1374
- }
1375
- if( $table=="faicons" )
1376
- {
1377
- if( $sUserGroup=="<Guest>" )
1378
- {
1379
- $extraPerm = 'M';
1380
- return "".$extraPerm;
1381
- }
1382
- if( $sUserGroup=="admin" )
1383
- {
1384
- $extraPerm = 'M';
1385
- return "ADESPI".$extraPerm;
1386
- }
1387
- // default permissions
1388
- return "".$extraPerm;
1389
- }
1390
- if( $table=="admin_comments" )
1391
- {
1392
- if( $sUserGroup=="<Guest>" )
1393
- {
1394
- $extraPerm = 'M';
1395
- return "".$extraPerm;
1396
- }
1397
- if( $sUserGroup=="admin" )
1398
- {
1399
- $extraPerm = 'M';
1400
- return "ADESPI".$extraPerm;
1401
- }
1402
- // default permissions
1403
- return "".$extraPerm;
1404
- }
1405
- if( $table=="public.fasis_chat_history" )
1406
- {
1407
- if( $sUserGroup=="<Guest>" )
1408
- {
1409
- $extraPerm = 'M';
1410
- return "S".$extraPerm;
1411
- }
1412
- if( $sUserGroup=="admin" )
1413
- {
1414
- $extraPerm = 'M';
1415
- return "ADESPI".$extraPerm;
1416
- }
1417
- // default permissions
1418
- return "".$extraPerm;
1419
- }
1420
- if( $table=="public.products" )
1421
- {
1422
- if( $sUserGroup=="<Guest>" )
1423
- {
1424
- $extraPerm = 'M';
1425
- return "S".$extraPerm;
1426
- }
1427
- if( $sUserGroup=="admin" )
1428
- {
1429
- $extraPerm = 'M';
1430
- return "ADESPI".$extraPerm;
1431
- }
1432
- // default permissions
1433
- return "ADESPI".$extraPerm;
1434
- }
1435
- if( $table=="public.items" )
1436
- {
1437
- if( $sUserGroup=="<Guest>" )
1438
- {
1439
- $extraPerm = 'M';
1440
- return "S".$extraPerm;
1441
- }
1442
- if( $sUserGroup=="admin" )
1443
- {
1444
- $extraPerm = 'M';
1445
- return "ADESPI".$extraPerm;
1446
- }
1447
- // default permissions
1448
- return "ADESPI".$extraPerm;
1449
- }
1450
- if( $table=="public.appointments" )
1451
- {
1452
- if( $sUserGroup=="<Guest>" )
1453
- {
1454
- $extraPerm = 'M';
1455
- return "S".$extraPerm;
1456
- }
1457
- if( $sUserGroup=="admin" )
1458
- {
1459
- $extraPerm = 'M';
1460
- return "ADESPI".$extraPerm;
1461
- }
1462
- // default permissions
1463
- return "ADESPI".$extraPerm;
1464
- }
1465
  if( $table=="chat_history" )
1466
  {
1467
- if( $sUserGroup=="<Guest>" )
1468
- {
1469
- $extraPerm = 'M';
1470
- return "S".$extraPerm;
1471
- }
1472
- if( $sUserGroup=="admin" )
1473
- {
1474
- $extraPerm = 'M';
1475
- return "ADESPI".$extraPerm;
1476
- }
1477
- // default permissions
1478
- return "".$extraPerm;
1479
- }
1480
- if( $table=="chat_users" )
1481
- {
1482
- if( $sUserGroup=="<Guest>" )
1483
- {
1484
- $extraPerm = 'M';
1485
- return "S".$extraPerm;
1486
- }
1487
- if( $sUserGroup=="admin" )
1488
- {
1489
- $extraPerm = 'M';
1490
- return "ADESPI".$extraPerm;
1491
- }
1492
- // default permissions
1493
- return "".$extraPerm;
1494
- }
1495
- if( $table=="chat_settings" )
1496
- {
1497
- if( $sUserGroup=="<Guest>" )
1498
- {
1499
- $extraPerm = 'M';
1500
- return "S".$extraPerm;
1501
- }
1502
- if( $sUserGroup=="admin" )
1503
- {
1504
- $extraPerm = 'M';
1505
- return "ADESPI".$extraPerm;
1506
- }
1507
- // default permissions
1508
- return "".$extraPerm;
1509
- }
1510
- if( $table=="chat_files" )
1511
- {
1512
- if( $sUserGroup=="<Guest>" )
1513
- {
1514
- $extraPerm = 'M';
1515
- return "S".$extraPerm;
1516
- }
1517
- if( $sUserGroup=="admin" )
1518
- {
1519
- $extraPerm = 'M';
1520
- return "ADESPI".$extraPerm;
1521
- }
1522
- // default permissions
1523
- return "".$extraPerm;
1524
- }
1525
- if( $table=="chat_groups" )
1526
- {
1527
- if( $sUserGroup=="<Guest>" )
1528
- {
1529
- $extraPerm = 'M';
1530
- return "S".$extraPerm;
1531
- }
1532
- if( $sUserGroup=="admin" )
1533
- {
1534
- $extraPerm = 'M';
1535
- return "ADESPI".$extraPerm;
1536
- }
1537
- // default permissions
1538
- return "".$extraPerm;
1539
- }
1540
- if( $table=="chat_peopletype" )
1541
- {
1542
- if( $sUserGroup=="<Guest>" )
1543
- {
1544
- $extraPerm = 'M';
1545
- return "S".$extraPerm;
1546
- }
1547
- if( $sUserGroup=="admin" )
1548
- {
1549
- $extraPerm = 'M';
1550
- return "ADESPI".$extraPerm;
1551
- }
1552
- // default permissions
1553
- return "".$extraPerm;
1554
- }
1555
- if( $table=="chat_timezone" )
1556
- {
1557
- if( $sUserGroup=="<Guest>" )
1558
- {
1559
- $extraPerm = 'M';
1560
- return "S".$extraPerm;
1561
- }
1562
- if( $sUserGroup=="admin" )
1563
- {
1564
- $extraPerm = 'M';
1565
- return "ADESPI".$extraPerm;
1566
- }
1567
- // default permissions
1568
- return "".$extraPerm;
1569
- }
1570
- if( $table=="public.chat_files" )
1571
- {
1572
- if( $sUserGroup=="<Guest>" )
1573
- {
1574
- $extraPerm = 'M';
1575
- return "S".$extraPerm;
1576
- }
1577
- if( $sUserGroup=="admin" )
1578
- {
1579
- $extraPerm = 'M';
1580
- return "ADESPI".$extraPerm;
1581
- }
1582
- // default permissions
1583
- return "ADESPI".$extraPerm;
1584
- }
1585
- if( $table=="public.chat_groups" )
1586
- {
1587
- if( $sUserGroup=="<Guest>" )
1588
- {
1589
- $extraPerm = 'M';
1590
- return "S".$extraPerm;
1591
- }
1592
- if( $sUserGroup=="admin" )
1593
- {
1594
- $extraPerm = 'M';
1595
- return "ADESPI".$extraPerm;
1596
- }
1597
- // default permissions
1598
- return "ADESPI".$extraPerm;
1599
- }
1600
- if( $table=="public.chat_history" )
1601
- {
1602
- if( $sUserGroup=="<Guest>" )
1603
- {
1604
- $extraPerm = 'M';
1605
- return "S".$extraPerm;
1606
- }
1607
- if( $sUserGroup=="admin" )
1608
- {
1609
- $extraPerm = 'M';
1610
- return "ADESPI".$extraPerm;
1611
- }
1612
- // default permissions
1613
- return "ADESPI".$extraPerm;
1614
- }
1615
- if( $table=="public.chat_peopletype" )
1616
- {
1617
- if( $sUserGroup=="<Guest>" )
1618
- {
1619
- $extraPerm = 'M';
1620
- return "S".$extraPerm;
1621
- }
1622
- if( $sUserGroup=="admin" )
1623
- {
1624
- $extraPerm = 'M';
1625
- return "ADESPI".$extraPerm;
1626
- }
1627
- // default permissions
1628
- return "ADESPI".$extraPerm;
1629
- }
1630
- if( $table=="public.chat_settings" )
1631
- {
1632
- if( $sUserGroup=="<Guest>" )
1633
- {
1634
- $extraPerm = 'M';
1635
- return "S".$extraPerm;
1636
- }
1637
- if( $sUserGroup=="admin" )
1638
- {
1639
- $extraPerm = 'M';
1640
- return "ADESPI".$extraPerm;
1641
- }
1642
- // default permissions
1643
- return "ADESPI".$extraPerm;
1644
- }
1645
- if( $table=="public.identity" )
1646
- {
1647
- if( $sUserGroup=="<Guest>" )
1648
- {
1649
- $extraPerm = 'M';
1650
- return "S".$extraPerm;
1651
- }
1652
  if( $sUserGroup=="admin" )
1653
  {
1654
- $extraPerm = 'M';
1655
- return "ADESPI".$extraPerm;
1656
  }
1657
  // default permissions
1658
  return "ADESPI".$extraPerm;
1659
  }
1660
- if( $table=="public.dataset_info" )
1661
- {
1662
- if( $sUserGroup=="<Guest>" )
1663
- {
1664
- $extraPerm = 'M';
1665
- return "S".$extraPerm;
1666
- }
1667
- if( $sUserGroup=="admin" )
1668
- {
1669
- $extraPerm = 'M';
1670
- return "ADESPI".$extraPerm;
1671
- }
1672
- // default permissions
1673
- return "ADESPI".$extraPerm;
1674
- }
1675
- if( $table=="admin_rights" )
1676
- {
1677
- if( $sUserGroup=="<Guest>" )
1678
- {
1679
- $extraPerm = 'M';
1680
- return "S".$extraPerm;
1681
- }
1682
- if( $sUserGroup=="admin" )
1683
- {
1684
- $extraPerm = 'M';
1685
- return "ADESPI".$extraPerm;
1686
- }
1687
- // default permissions
1688
- return "ADESPI".$extraPerm;
1689
- }
1690
- if( $table=="admin_members" )
1691
- {
1692
- if( $sUserGroup=="<Guest>" )
1693
- {
1694
- $extraPerm = 'M';
1695
- return "S".$extraPerm;
1696
- }
1697
- if( $sUserGroup=="admin" )
1698
- {
1699
- $extraPerm = 'M';
1700
- return "ADESPI".$extraPerm;
1701
- }
1702
- // default permissions
1703
- return "ADESPI".$extraPerm;
1704
- }
1705
- if( $table=="admin_users" )
1706
  {
1707
- if( $sUserGroup=="<Guest>" )
1708
- {
1709
- $extraPerm = 'M';
1710
- return "S".$extraPerm;
1711
- }
1712
  if( $sUserGroup=="admin" )
1713
  {
1714
- $extraPerm = 'M';
1715
- return "ADESPI".$extraPerm;
1716
  }
1717
  // default permissions
1718
  return "ADESPI".$extraPerm;
1719
  }
1720
- if( $table=="public.history" )
1721
  {
1722
- if( $sUserGroup=="<Guest>" )
1723
- {
1724
- $extraPerm = 'M';
1725
- return "S".$extraPerm;
1726
- }
1727
  if( $sUserGroup=="admin" )
1728
  {
1729
- $extraPerm = 'M';
1730
- return "ADESPI".$extraPerm;
1731
  }
1732
  // default permissions
1733
  return "ADESPI".$extraPerm;
1734
  }
1735
- if( $table=="public.zendesk__dataszz" )
1736
  {
1737
- if( $sUserGroup=="<Guest>" )
1738
- {
1739
- $extraPerm = 'M';
1740
- return "S".$extraPerm;
1741
- }
1742
  if( $sUserGroup=="admin" )
1743
  {
1744
- $extraPerm = 'M';
1745
- return "ADESPI".$extraPerm;
1746
  }
1747
  // default permissions
1748
  return "ADESPI".$extraPerm;
1749
  }
1750
- if( $table=="public.view_zendesk" )
1751
  {
1752
- if( $sUserGroup=="<Guest>" )
1753
- {
1754
- $extraPerm = 'M';
1755
- return "S".$extraPerm;
1756
- }
1757
  if( $sUserGroup=="admin" )
1758
  {
1759
- $extraPerm = 'M';
1760
- return "ADESPI".$extraPerm;
1761
  }
1762
  // default permissions
1763
  return "ADESPI".$extraPerm;
1764
  }
1765
- if( $table=="public.prompts" )
1766
  {
1767
- if( $sUserGroup=="<Guest>" )
1768
- {
1769
- $extraPerm = 'M';
1770
- return "S".$extraPerm;
1771
- }
1772
  if( $sUserGroup=="admin" )
1773
  {
1774
- $extraPerm = 'M';
1775
- return "ADESPI".$extraPerm;
1776
  }
1777
  // default permissions
1778
  return "ADESPI".$extraPerm;
1779
  }
1780
- if( $table=="public.view_faisis_chat_history" )
1781
  {
1782
- if( $sUserGroup=="<Guest>" )
1783
- {
1784
- $extraPerm = 'M';
1785
- return "S".$extraPerm;
1786
- }
1787
  if( $sUserGroup=="admin" )
1788
  {
1789
- $extraPerm = 'M';
1790
- return "ADESPI".$extraPerm;
1791
  }
1792
  // default permissions
1793
  return "ADESPI".$extraPerm;
1794
  }
1795
- if( $table=="public.server_setting" )
1796
  {
1797
- if( $sUserGroup=="<Guest>" )
1798
- {
1799
- $extraPerm = 'M';
1800
- return "S".$extraPerm;
1801
- }
1802
  if( $sUserGroup=="admin" )
1803
  {
1804
- $extraPerm = 'M';
1805
- return "ADESPI".$extraPerm;
1806
  }
1807
  // default permissions
1808
  return "ADESPI".$extraPerm;
@@ -2534,6 +1778,7 @@ function GetFullSiteUrl()
2534
  */
2535
  function GetAuditObject($table="")
2536
  {
 
2537
 
2538
  $linkAudit = false;
2539
  if(!$table)
@@ -2548,7 +1793,6 @@ function GetAuditObject($table="")
2548
  if ($linkAudit)
2549
  {
2550
  require_once(getabspath("include/audit.php"));
2551
- return new AuditTrailTable();
2552
  }
2553
  else
2554
  {
 
203
  if (!$shortTName)
204
  return false;
205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
206
  if ("chat_history" == $shortTName )
207
  return true;
208
  if ("chat_users" == $shortTName )
 
217
  return true;
218
  if ("chat_timezone" == $shortTName )
219
  return true;
220
+ if ("chat126_users1" == $shortTName )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
221
  return true;
222
  return false;
223
  }
 
270
  $arr = array();
271
  $checkPermissions = Security::permissionsAvailable();
272
  $tableAvailable = true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
273
  if( $checkPermissions ) {
274
  $strPerm = GetUserPermissions("chat_history");
275
  $tableAvailable = ( strpos($strPerm, "P") !== false
 
334
  }
335
  $tableAvailable = true;
336
  if( $checkPermissions ) {
337
+ $strPerm = GetUserPermissions("chat126_users1");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
338
  $tableAvailable = ( strpos($strPerm, "P") !== false
339
  || $pdfMode && strpos($strPerm, "S") !== false );
340
  }
341
  if( $tableAvailable ) {
342
+ $arr[]="chat126_users1";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
343
  }
344
  return $arr;
345
  }
 
350
  function GetTablesListWithoutSecurity()
351
  {
352
  $arr = array();
 
 
 
 
 
 
 
 
 
 
 
353
  $arr[]="chat_history";
354
  $arr[]="chat_users";
355
  $arr[]="chat_settings";
 
357
  $arr[]="chat_groups";
358
  $arr[]="chat_peopletype";
359
  $arr[]="chat_timezone";
360
+ $arr[]="chat126_users1";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
361
  return $arr;
362
  }
363
 
 
962
  global $gPermissionsRefreshTime,$gPermissionsRead;
963
  if( Security::isAdmin() )
964
  {
 
 
 
 
 
 
965
  }
966
 
967
  $userRights = &Security::dynamicUserRights();
 
979
 
980
  $sUserGroup = storageGet( "GroupID" );
981
  $extraPerm = "";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
982
  if( $table=="chat_history" )
983
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
984
  if( $sUserGroup=="admin" )
985
  {
986
+ return "AEDSPI".$extraPerm;
 
987
  }
988
  // default permissions
989
  return "ADESPI".$extraPerm;
990
  }
991
+ if( $table=="chat_users" )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
992
  {
 
 
 
 
 
993
  if( $sUserGroup=="admin" )
994
  {
995
+ return "AEDSPI".$extraPerm;
 
996
  }
997
  // default permissions
998
  return "ADESPI".$extraPerm;
999
  }
1000
+ if( $table=="chat_settings" )
1001
  {
 
 
 
 
 
1002
  if( $sUserGroup=="admin" )
1003
  {
1004
+ return "AEDSPI".$extraPerm;
 
1005
  }
1006
  // default permissions
1007
  return "ADESPI".$extraPerm;
1008
  }
1009
+ if( $table=="chat_files" )
1010
  {
 
 
 
 
 
1011
  if( $sUserGroup=="admin" )
1012
  {
1013
+ return "AEDSPI".$extraPerm;
 
1014
  }
1015
  // default permissions
1016
  return "ADESPI".$extraPerm;
1017
  }
1018
+ if( $table=="chat_groups" )
1019
  {
 
 
 
 
 
1020
  if( $sUserGroup=="admin" )
1021
  {
1022
+ return "AEDSPI".$extraPerm;
 
1023
  }
1024
  // default permissions
1025
  return "ADESPI".$extraPerm;
1026
  }
1027
+ if( $table=="chat_peopletype" )
1028
  {
 
 
 
 
 
1029
  if( $sUserGroup=="admin" )
1030
  {
1031
+ return "AEDSPI".$extraPerm;
 
1032
  }
1033
  // default permissions
1034
  return "ADESPI".$extraPerm;
1035
  }
1036
+ if( $table=="chat_timezone" )
1037
  {
 
 
 
 
 
1038
  if( $sUserGroup=="admin" )
1039
  {
1040
+ return "AEDSPI".$extraPerm;
 
1041
  }
1042
  // default permissions
1043
  return "ADESPI".$extraPerm;
1044
  }
1045
+ if( $table=="chat126_users1" )
1046
  {
 
 
 
 
 
1047
  if( $sUserGroup=="admin" )
1048
  {
1049
+ return "ADESPI".$extraPerm;
 
1050
  }
1051
  // default permissions
1052
  return "ADESPI".$extraPerm;
 
1778
  */
1779
  function GetAuditObject($table="")
1780
  {
1781
+ return NULL;
1782
 
1783
  $linkAudit = false;
1784
  if(!$table)
 
1793
  if ($linkAudit)
1794
  {
1795
  require_once(getabspath("include/audit.php"));
 
1796
  }
1797
  else
1798
  {
php/include/dal.php CHANGED
@@ -47,38 +47,14 @@ function DBLookup($sql)
47
  */
48
  class tDAL
49
  {
50
- var $tblKnowledgeBase2_at_localhost_public_appointments;
51
- var $tblKnowledgeBase2_at_localhost_public_chat_files;
52
- var $tblKnowledgeBase2_at_localhost_public_chat_groups;
53
- var $tblKnowledgeBase2_at_localhost_public_chat_history;
54
- var $tblKnowledgeBase2_at_localhost_public_chat_peopletype;
55
- var $tblKnowledgeBase2_at_localhost_public_chat_settings;
56
- var $tblKnowledgeBase2_at_localhost_public_chat_timezone;
57
- var $tblKnowledgeBase2_at_localhost_public_chat_users;
58
- var $tblKnowledgeBase2_at_localhost_public_dataset_info;
59
- var $tblKnowledgeBase2_at_localhost_public_faicons;
60
- var $tblKnowledgeBase2_at_localhost_public_fasis_chat_history;
61
- var $tblKnowledgeBase2_at_localhost_public_history;
62
- var $tblKnowledgeBase2_at_localhost_public_identity;
63
- var $tblKnowledgeBase2_at_localhost_public_items;
64
- var $tblKnowledgeBase2_at_localhost_public_kbarticles;
65
- var $tblKnowledgeBase2_at_localhost_public_kbcategories;
66
- var $tblKnowledgeBase2_at_localhost_public_kbcomments;
67
- var $tblKnowledgeBase2_at_localhost_public_kbusers;
68
- var $tblKnowledgeBase2_at_localhost_public_knowledgebase1_audit;
69
- var $tblKnowledgeBase2_at_localhost_public_KnowledgeBase1uggroups;
70
- var $tblKnowledgeBase2_at_localhost_public_KnowledgeBase1ugmembers;
71
- var $tblKnowledgeBase2_at_localhost_public_KnowledgeBase1ugrights;
72
- var $tblKnowledgeBase2_at_localhost_public_noti;
73
- var $tblKnowledgeBase2_at_localhost_public_products;
74
- var $tblKnowledgeBase2_at_localhost_public_prompts;
75
- var $tblKnowledgeBase2_at_localhost_public_server_setting;
76
- var $tblKnowledgeBase2_at_localhost_public_view_faisis_chat_history;
77
- var $tblKnowledgeBase2_at_localhost_public_view_zendesk;
78
- var $tblKnowledgeBase2_at_localhost_public_webreport_admin;
79
- var $tblKnowledgeBase2_at_localhost_public_webreport_style;
80
- var $tblKnowledgeBase2_at_localhost_public_webreports;
81
- var $tblKnowledgeBase2_at_localhost_public_zendesk__dataszz;
82
  var $lstTables;
83
  var $Table = array();
84
 
@@ -86,38 +62,14 @@ class tDAL
86
  {
87
  if($this->lstTables)
88
  return;
89
- $this->lstTables[] = array("name" => "appointments", "varname" => "KnowledgeBase2_at_localhost_public_appointments", "altvarname" => "appointments", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
90
- $this->lstTables[] = array("name" => "chat_files", "varname" => "KnowledgeBase2_at_localhost_public_chat_files", "altvarname" => "chat_files", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
91
- $this->lstTables[] = array("name" => "chat_groups", "varname" => "KnowledgeBase2_at_localhost_public_chat_groups", "altvarname" => "chat_groups", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
92
- $this->lstTables[] = array("name" => "chat_history", "varname" => "KnowledgeBase2_at_localhost_public_chat_history", "altvarname" => "chat_history", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
93
- $this->lstTables[] = array("name" => "chat_peopletype", "varname" => "KnowledgeBase2_at_localhost_public_chat_peopletype", "altvarname" => "chat_peopletype", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
94
- $this->lstTables[] = array("name" => "chat_settings", "varname" => "KnowledgeBase2_at_localhost_public_chat_settings", "altvarname" => "chat_settings", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
95
- $this->lstTables[] = array("name" => "chat_timezone", "varname" => "KnowledgeBase2_at_localhost_public_chat_timezone", "altvarname" => "chat_timezone", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
96
- $this->lstTables[] = array("name" => "chat_users", "varname" => "KnowledgeBase2_at_localhost_public_chat_users", "altvarname" => "chat_users", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
97
- $this->lstTables[] = array("name" => "dataset_info", "varname" => "KnowledgeBase2_at_localhost_public_dataset_info", "altvarname" => "dataset_info", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
98
- $this->lstTables[] = array("name" => "faicons", "varname" => "KnowledgeBase2_at_localhost_public_faicons", "altvarname" => "faicons", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
99
- $this->lstTables[] = array("name" => "fasis_chat_history", "varname" => "KnowledgeBase2_at_localhost_public_fasis_chat_history", "altvarname" => "fasis_chat_history", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
100
- $this->lstTables[] = array("name" => "history", "varname" => "KnowledgeBase2_at_localhost_public_history", "altvarname" => "history", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
101
- $this->lstTables[] = array("name" => "identity", "varname" => "KnowledgeBase2_at_localhost_public_identity", "altvarname" => "identity", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
102
- $this->lstTables[] = array("name" => "items", "varname" => "KnowledgeBase2_at_localhost_public_items", "altvarname" => "items", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
103
- $this->lstTables[] = array("name" => "kbarticles", "varname" => "KnowledgeBase2_at_localhost_public_kbarticles", "altvarname" => "kbarticles", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
104
- $this->lstTables[] = array("name" => "kbcategories", "varname" => "KnowledgeBase2_at_localhost_public_kbcategories", "altvarname" => "kbcategories", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
105
- $this->lstTables[] = array("name" => "kbcomments", "varname" => "KnowledgeBase2_at_localhost_public_kbcomments", "altvarname" => "kbcomments", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
106
- $this->lstTables[] = array("name" => "kbusers", "varname" => "KnowledgeBase2_at_localhost_public_kbusers", "altvarname" => "kbusers", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
107
- $this->lstTables[] = array("name" => "knowledgebase1_audit", "varname" => "KnowledgeBase2_at_localhost_public_knowledgebase1_audit", "altvarname" => "knowledgebase1_audit", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
108
- $this->lstTables[] = array("name" => "KnowledgeBase1uggroups", "varname" => "KnowledgeBase2_at_localhost_public_KnowledgeBase1uggroups", "altvarname" => "KnowledgeBase1uggroups", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
109
- $this->lstTables[] = array("name" => "KnowledgeBase1ugmembers", "varname" => "KnowledgeBase2_at_localhost_public_KnowledgeBase1ugmembers", "altvarname" => "KnowledgeBase1ugmembers", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
110
- $this->lstTables[] = array("name" => "KnowledgeBase1ugrights", "varname" => "KnowledgeBase2_at_localhost_public_KnowledgeBase1ugrights", "altvarname" => "KnowledgeBase1ugrights", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
111
- $this->lstTables[] = array("name" => "noti", "varname" => "KnowledgeBase2_at_localhost_public_noti", "altvarname" => "noti", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
112
- $this->lstTables[] = array("name" => "products", "varname" => "KnowledgeBase2_at_localhost_public_products", "altvarname" => "products", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
113
- $this->lstTables[] = array("name" => "prompts", "varname" => "KnowledgeBase2_at_localhost_public_prompts", "altvarname" => "prompts", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
114
- $this->lstTables[] = array("name" => "server_setting", "varname" => "KnowledgeBase2_at_localhost_public_server_setting", "altvarname" => "server_setting", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
115
- $this->lstTables[] = array("name" => "view_faisis_chat_history", "varname" => "KnowledgeBase2_at_localhost_public_view_faisis_chat_history", "altvarname" => "view_faisis_chat_history", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
116
- $this->lstTables[] = array("name" => "view_zendesk", "varname" => "KnowledgeBase2_at_localhost_public_view_zendesk", "altvarname" => "view_zendesk", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
117
- $this->lstTables[] = array("name" => "webreport_admin", "varname" => "KnowledgeBase2_at_localhost_public_webreport_admin", "altvarname" => "webreport_admin", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
118
- $this->lstTables[] = array("name" => "webreport_style", "varname" => "KnowledgeBase2_at_localhost_public_webreport_style", "altvarname" => "webreport_style", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
119
- $this->lstTables[] = array("name" => "webreports", "varname" => "KnowledgeBase2_at_localhost_public_webreports", "altvarname" => "webreports", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
120
- $this->lstTables[] = array("name" => "zendesk__dataszz", "varname" => "KnowledgeBase2_at_localhost_public_zendesk__dataszz", "altvarname" => "zendesk__dataszz", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost");
121
  }
122
 
123
  /**
 
47
  */
48
  class tDAL
49
  {
50
+ var $tblchats_at_localhost__chat126_users1;
51
+ var $tblchats_at_localhost__chat_files;
52
+ var $tblchats_at_localhost__chat_groups;
53
+ var $tblchats_at_localhost__chat_history;
54
+ var $tblchats_at_localhost__chat_peopletype;
55
+ var $tblchats_at_localhost__chat_settings;
56
+ var $tblchats_at_localhost__chat_timezone;
57
+ var $tblchats_at_localhost__chat_users;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  var $lstTables;
59
  var $Table = array();
60
 
 
62
  {
63
  if($this->lstTables)
64
  return;
65
+ $this->lstTables[] = array("name" => "chat126_users1", "varname" => "chats_at_localhost__chat126_users1", "altvarname" => "chat126_users1", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
66
+ $this->lstTables[] = array("name" => "chat_files", "varname" => "chats_at_localhost__chat_files", "altvarname" => "chat_files", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
67
+ $this->lstTables[] = array("name" => "chat_groups", "varname" => "chats_at_localhost__chat_groups", "altvarname" => "chat_groups", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
68
+ $this->lstTables[] = array("name" => "chat_history", "varname" => "chats_at_localhost__chat_history", "altvarname" => "chat_history", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
69
+ $this->lstTables[] = array("name" => "chat_peopletype", "varname" => "chats_at_localhost__chat_peopletype", "altvarname" => "chat_peopletype", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
70
+ $this->lstTables[] = array("name" => "chat_settings", "varname" => "chats_at_localhost__chat_settings", "altvarname" => "chat_settings", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
71
+ $this->lstTables[] = array("name" => "chat_timezone", "varname" => "chats_at_localhost__chat_timezone", "altvarname" => "chat_timezone", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
72
+ $this->lstTables[] = array("name" => "chat_users", "varname" => "chats_at_localhost__chat_users", "altvarname" => "chat_users", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  }
74
 
75
  /**
php/include/dal/chats_at_localhost__chat126_users1.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $dalTablechat126_users1 = array();
3
+ $dalTablechat126_users1["ID"] = array("type"=>3,"varname"=>"ID", "name" => "ID", "autoInc" => "1");
4
+ $dalTablechat126_users1["username"] = array("type"=>200,"varname"=>"username", "name" => "username", "autoInc" => "0");
5
+ $dalTablechat126_users1["password"] = array("type"=>200,"varname"=>"password", "name" => "password", "autoInc" => "0");
6
+ $dalTablechat126_users1["email"] = array("type"=>200,"varname"=>"email", "name" => "email", "autoInc" => "0");
7
+ $dalTablechat126_users1["fullname"] = array("type"=>200,"varname"=>"fullname", "name" => "fullname", "autoInc" => "0");
8
+ $dalTablechat126_users1["groupid"] = array("type"=>200,"varname"=>"groupid", "name" => "groupid", "autoInc" => "0");
9
+ $dalTablechat126_users1["active"] = array("type"=>3,"varname"=>"active", "name" => "active", "autoInc" => "0");
10
+ $dalTablechat126_users1["ext_security_id"] = array("type"=>200,"varname"=>"ext_security_id", "name" => "ext_security_id", "autoInc" => "0");
11
+ $dalTablechat126_users1["ID"]["key"]=true;
12
+
13
+ $dal_info["chats_at_localhost__chat126_users1"] = &$dalTablechat126_users1;
14
+ ?>
php/include/dal/chats_at_localhost__chat_files.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $dalTablechat_files = array();
3
+ $dalTablechat_files["id"] = array("type"=>3,"varname"=>"id", "name" => "id", "autoInc" => "1");
4
+ $dalTablechat_files["messageid"] = array("type"=>3,"varname"=>"messageid", "name" => "messageid", "autoInc" => "0");
5
+ $dalTablechat_files["files"] = array("type"=>200,"varname"=>"files", "name" => "files", "autoInc" => "0");
6
+ $dalTablechat_files["id"]["key"]=true;
7
+
8
+ $dal_info["chats_at_localhost__chat_files"] = &$dalTablechat_files;
9
+ ?>
php/include/dal/chats_at_localhost__chat_groups.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $dalTablechat_groups = array();
3
+ $dalTablechat_groups["id"] = array("type"=>3,"varname"=>"id", "name" => "id", "autoInc" => "1");
4
+ $dalTablechat_groups["groupname"] = array("type"=>200,"varname"=>"groupname", "name" => "groupname", "autoInc" => "0");
5
+ $dalTablechat_groups["targetid"] = array("type"=>200,"varname"=>"targetid", "name" => "targetid", "autoInc" => "0");
6
+ $dalTablechat_groups["grouptype"] = array("type"=>3,"varname"=>"grouptype", "name" => "grouptype", "autoInc" => "0");
7
+ $dalTablechat_groups["ownerid"] = array("type"=>200,"varname"=>"ownerid", "name" => "ownerid", "autoInc" => "0");
8
+ $dalTablechat_groups["id"]["key"]=true;
9
+
10
+ $dal_info["chats_at_localhost__chat_groups"] = &$dalTablechat_groups;
11
+ ?>
php/include/dal/chats_at_localhost__chat_history.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $dalTablechat_history = array();
3
+ $dalTablechat_history["id"] = array("type"=>3,"varname"=>"id", "name" => "id", "autoInc" => "1");
4
+ $dalTablechat_history["messages"] = array("type"=>200,"varname"=>"messages", "name" => "messages", "autoInc" => "0");
5
+ $dalTablechat_history["ownerid"] = array("type"=>200,"varname"=>"ownerid", "name" => "ownerid", "autoInc" => "0");
6
+ $dalTablechat_history["created"] = array("type"=>200,"varname"=>"created", "name" => "created", "autoInc" => "0");
7
+ $dalTablechat_history["isread"] = array("type"=>200,"varname"=>"isread", "name" => "isread", "autoInc" => "0");
8
+ $dalTablechat_history["targetid"] = array("type"=>200,"varname"=>"targetid", "name" => "targetid", "autoInc" => "0");
9
+ $dalTablechat_history["tmp_file"] = array("type"=>200,"varname"=>"tmp_file", "name" => "tmp_file", "autoInc" => "0");
10
+ $dalTablechat_history["status"] = array("type"=>200,"varname"=>"status", "name" => "status", "autoInc" => "0");
11
+ $dalTablechat_history["status_created"] = array("type"=>200,"varname"=>"status_created", "name" => "status_created", "autoInc" => "0");
12
+ $dalTablechat_history["soundRecord"] = array("type"=>128,"varname"=>"soundRecord", "name" => "soundRecord", "autoInc" => "0");
13
+ $dalTablechat_history["isVideo"] = array("type"=>3,"varname"=>"isVideo", "name" => "isVideo", "autoInc" => "0");
14
+ $dalTablechat_history["id"]["key"]=true;
15
+
16
+ $dal_info["chats_at_localhost__chat_history"] = &$dalTablechat_history;
17
+ ?>