web report
Browse files- php/chat126_users1_search.php +12 -1
- php/chat_files_search.php +12 -1
- php/chat_groups_search.php +12 -1
- php/chat_history_search.php +12 -1
- php/chat_peopletype_search.php +12 -1
- php/chat_settings_search.php +12 -1
- php/chat_timezone_search.php +12 -1
- php/chat_users_search.php +12 -1
- php/classes/crosstable_webreport.php +9 -59
- php/classes/db.php +3 -0
- php/eoc_search.php +12 -1
- php/include/appsettings.php +4 -2
- php/include/dal.php +6 -0
- php/include/dal/chats_at_localhost__webreport_admin.php +10 -0
- php/include/dal/chats_at_localhost__webreport_style.php +14 -0
- php/include/dal/chats_at_localhost__webreports.php +15 -0
- php/include/menunodes_main.php +26 -0
- php/include/pages/_global_menu_Chat1.php +21 -5
- php/include/reportfunctions.php +15 -527
- php/templates/_global_menu_Chat1.htm +13 -0
- php/webchart1.php +2 -2
- php/webreport1.php +2 -2
php/chat126_users1_search.php
CHANGED
@@ -20,7 +20,18 @@ if( !isLogged() )
|
|
20 |
redirectToLogin();
|
21 |
}
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
if(!$accessGranted)
|
25 |
{
|
26 |
HeaderRedirect("menu");
|
|
|
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");
|
php/chat_files_search.php
CHANGED
@@ -20,7 +20,18 @@ if( !isLogged() )
|
|
20 |
redirectToLogin();
|
21 |
}
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
if(!$accessGranted)
|
25 |
{
|
26 |
HeaderRedirect("menu");
|
|
|
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");
|
php/chat_groups_search.php
CHANGED
@@ -20,7 +20,18 @@ if( !isLogged() )
|
|
20 |
redirectToLogin();
|
21 |
}
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
if(!$accessGranted)
|
25 |
{
|
26 |
HeaderRedirect("menu");
|
|
|
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");
|
php/chat_history_search.php
CHANGED
@@ -20,7 +20,18 @@ if( !isLogged() )
|
|
20 |
redirectToLogin();
|
21 |
}
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
if(!$accessGranted)
|
25 |
{
|
26 |
HeaderRedirect("menu");
|
|
|
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");
|
php/chat_peopletype_search.php
CHANGED
@@ -20,7 +20,18 @@ if( !isLogged() )
|
|
20 |
redirectToLogin();
|
21 |
}
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
if(!$accessGranted)
|
25 |
{
|
26 |
HeaderRedirect("menu");
|
|
|
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");
|
php/chat_settings_search.php
CHANGED
@@ -20,7 +20,18 @@ if( !isLogged() )
|
|
20 |
redirectToLogin();
|
21 |
}
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
if(!$accessGranted)
|
25 |
{
|
26 |
HeaderRedirect("menu");
|
|
|
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");
|
php/chat_timezone_search.php
CHANGED
@@ -20,7 +20,18 @@ if( !isLogged() )
|
|
20 |
redirectToLogin();
|
21 |
}
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
if(!$accessGranted)
|
25 |
{
|
26 |
HeaderRedirect("menu");
|
|
|
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");
|
php/chat_users_search.php
CHANGED
@@ -20,7 +20,18 @@ if( !isLogged() )
|
|
20 |
redirectToLogin();
|
21 |
}
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
if(!$accessGranted)
|
25 |
{
|
26 |
HeaderRedirect("menu");
|
|
|
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");
|
php/classes/crosstable_webreport.php
CHANGED
@@ -1381,73 +1381,23 @@ class CrossTableWebReport
|
|
1381 |
public function isProjectDB()
|
1382 |
{
|
1383 |
$isDB = false;
|
1384 |
-
if("
|
1385 |
$isDB = true;
|
1386 |
-
if("
|
1387 |
$isDB = true;
|
1388 |
-
if("
|
1389 |
$isDB = true;
|
1390 |
-
if("
|
1391 |
$isDB = true;
|
1392 |
-
if("
|
1393 |
$isDB = true;
|
1394 |
-
if("
|
1395 |
$isDB = true;
|
1396 |
-
if("
|
1397 |
$isDB = true;
|
1398 |
-
if("
|
1399 |
$isDB = true;
|
1400 |
-
if("
|
1401 |
-
$isDB = true;
|
1402 |
-
if("public.items" == $this->xml_array['tables'][0])
|
1403 |
-
$isDB = true;
|
1404 |
-
if("public.appointments" == $this->xml_array['tables'][0])
|
1405 |
-
$isDB = true;
|
1406 |
-
if("public.chat_history" == $this->xml_array['tables'][0])
|
1407 |
-
$isDB = true;
|
1408 |
-
if("public.chat_users" == $this->xml_array['tables'][0])
|
1409 |
-
$isDB = true;
|
1410 |
-
if("public.chat_settings" == $this->xml_array['tables'][0])
|
1411 |
-
$isDB = true;
|
1412 |
-
if("public.chat_files" == $this->xml_array['tables'][0])
|
1413 |
-
$isDB = true;
|
1414 |
-
if("public.chat_groups" == $this->xml_array['tables'][0])
|
1415 |
-
$isDB = true;
|
1416 |
-
if("public.chat_peopletype" == $this->xml_array['tables'][0])
|
1417 |
-
$isDB = true;
|
1418 |
-
if("public.chat_timezone" == $this->xml_array['tables'][0])
|
1419 |
-
$isDB = true;
|
1420 |
-
if("public.chat_files" == $this->xml_array['tables'][0])
|
1421 |
-
$isDB = true;
|
1422 |
-
if("public.chat_groups" == $this->xml_array['tables'][0])
|
1423 |
-
$isDB = true;
|
1424 |
-
if("public.chat_history" == $this->xml_array['tables'][0])
|
1425 |
-
$isDB = true;
|
1426 |
-
if("public.chat_peopletype" == $this->xml_array['tables'][0])
|
1427 |
-
$isDB = true;
|
1428 |
-
if("public.chat_settings" == $this->xml_array['tables'][0])
|
1429 |
-
$isDB = true;
|
1430 |
-
if("public.identity" == $this->xml_array['tables'][0])
|
1431 |
-
$isDB = true;
|
1432 |
-
if("public.dataset_info" == $this->xml_array['tables'][0])
|
1433 |
-
$isDB = true;
|
1434 |
-
if("public.KnowledgeBase1ugrights" == $this->xml_array['tables'][0])
|
1435 |
-
$isDB = true;
|
1436 |
-
if("public.KnowledgeBase1ugmembers" == $this->xml_array['tables'][0])
|
1437 |
-
$isDB = true;
|
1438 |
-
if("public.kbusers" == $this->xml_array['tables'][0])
|
1439 |
-
$isDB = true;
|
1440 |
-
if("public.history" == $this->xml_array['tables'][0])
|
1441 |
-
$isDB = true;
|
1442 |
-
if("public.zendesk__dataszz" == $this->xml_array['tables'][0])
|
1443 |
-
$isDB = true;
|
1444 |
-
if("public.view_zendesk" == $this->xml_array['tables'][0])
|
1445 |
-
$isDB = true;
|
1446 |
-
if("public.prompts" == $this->xml_array['tables'][0])
|
1447 |
-
$isDB = true;
|
1448 |
-
if("public.view_faisis_chat_history" == $this->xml_array['tables'][0])
|
1449 |
-
$isDB = true;
|
1450 |
-
if("public.server_setting" == $this->xml_array['tables'][0])
|
1451 |
$isDB = true;
|
1452 |
return $isDB;
|
1453 |
}
|
|
|
1381 |
public function isProjectDB()
|
1382 |
{
|
1383 |
$isDB = false;
|
1384 |
+
if("chat_history" == $this->xml_array['tables'][0])
|
1385 |
$isDB = true;
|
1386 |
+
if("chat_users" == $this->xml_array['tables'][0])
|
1387 |
$isDB = true;
|
1388 |
+
if("chat_settings" == $this->xml_array['tables'][0])
|
1389 |
$isDB = true;
|
1390 |
+
if("chat_files" == $this->xml_array['tables'][0])
|
1391 |
$isDB = true;
|
1392 |
+
if("chat_groups" == $this->xml_array['tables'][0])
|
1393 |
$isDB = true;
|
1394 |
+
if("chat_peopletype" == $this->xml_array['tables'][0])
|
1395 |
$isDB = true;
|
1396 |
+
if("chat_timezone" == $this->xml_array['tables'][0])
|
1397 |
$isDB = true;
|
1398 |
+
if("chat126_users1" == $this->xml_array['tables'][0])
|
1399 |
$isDB = true;
|
1400 |
+
if("Eoc" == $this->xml_array['tables'][0])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1401 |
$isDB = true;
|
1402 |
return $isDB;
|
1403 |
}
|
php/classes/db.php
CHANGED
@@ -363,6 +363,9 @@ class DB
|
|
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 |
$dalTables[$conn->connId][] = array("name" => "Eoc", "varname" => "chats_at_localhost__Eoc", "altvarname" => "Eoc", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
|
|
|
|
|
|
366 |
}
|
367 |
}
|
368 |
|
|
|
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 |
$dalTables[$conn->connId][] = array("name" => "Eoc", "varname" => "chats_at_localhost__Eoc", "altvarname" => "Eoc", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
366 |
+
$dalTables[$conn->connId][] = array("name" => "webreport_admin", "varname" => "chats_at_localhost__webreport_admin", "altvarname" => "webreport_admin", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
367 |
+
$dalTables[$conn->connId][] = array("name" => "webreport_style", "varname" => "chats_at_localhost__webreport_style", "altvarname" => "webreport_style", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
368 |
+
$dalTables[$conn->connId][] = array("name" => "webreports", "varname" => "chats_at_localhost__webreports", "altvarname" => "webreports", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
369 |
}
|
370 |
}
|
371 |
|
php/eoc_search.php
CHANGED
@@ -20,7 +20,18 @@ if( !isLogged() )
|
|
20 |
redirectToLogin();
|
21 |
}
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
if(!$accessGranted)
|
25 |
{
|
26 |
HeaderRedirect("menu");
|
|
|
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");
|
php/include/appsettings.php
CHANGED
@@ -674,6 +674,7 @@ $globalSettings["useCookieBanner"] = 0 != 0;
|
|
674 |
|
675 |
$globalSettings["htmlEmailTemplates"] = array();
|
676 |
|
|
|
677 |
|
678 |
$globalSettings["createLoginPage"] = true;
|
679 |
$globalSettings["userGroupCount"] = 2;
|
@@ -745,6 +746,7 @@ $wr_pagestylepath = "webreports";
|
|
745 |
$wr_is_standalone = false;
|
746 |
$WRAdminPagePassword = "";
|
747 |
|
|
|
748 |
|
749 |
|
750 |
/**
|
@@ -790,9 +792,9 @@ $suggestAllContent = true;
|
|
790 |
$strLastSQL = "";
|
791 |
$showCustomMarkerOnPrint = false;
|
792 |
|
793 |
-
$projectBuildKey = "
|
794 |
$wizardBuildKey = "41974";
|
795 |
-
$projectBuildNumber = "
|
796 |
|
797 |
$mlang_messages = array();
|
798 |
$mlang_charsets = array();
|
|
|
674 |
|
675 |
$globalSettings["htmlEmailTemplates"] = array();
|
676 |
|
677 |
+
$globalSettings["isAddWebRep"] = true;
|
678 |
|
679 |
$globalSettings["createLoginPage"] = true;
|
680 |
$globalSettings["userGroupCount"] = 2;
|
|
|
746 |
$wr_is_standalone = false;
|
747 |
$WRAdminPagePassword = "";
|
748 |
|
749 |
+
$WRAdminPagePassword = "webreports";
|
750 |
|
751 |
|
752 |
/**
|
|
|
792 |
$strLastSQL = "";
|
793 |
$showCustomMarkerOnPrint = false;
|
794 |
|
795 |
+
$projectBuildKey = "3643_1721285067";
|
796 |
$wizardBuildKey = "41974";
|
797 |
+
$projectBuildNumber = "3643";
|
798 |
|
799 |
$mlang_messages = array();
|
800 |
$mlang_charsets = array();
|
php/include/dal.php
CHANGED
@@ -56,6 +56,9 @@ class tDAL
|
|
56 |
var $tblchats_at_localhost__chat_timezone;
|
57 |
var $tblchats_at_localhost__chat_users;
|
58 |
var $tblchats_at_localhost__Eoc;
|
|
|
|
|
|
|
59 |
var $lstTables;
|
60 |
var $Table = array();
|
61 |
|
@@ -72,6 +75,9 @@ class tDAL
|
|
72 |
$this->lstTables[] = array("name" => "chat_timezone", "varname" => "chats_at_localhost__chat_timezone", "altvarname" => "chat_timezone", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
73 |
$this->lstTables[] = array("name" => "chat_users", "varname" => "chats_at_localhost__chat_users", "altvarname" => "chat_users", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
74 |
$this->lstTables[] = array("name" => "Eoc", "varname" => "chats_at_localhost__Eoc", "altvarname" => "Eoc", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
|
|
|
|
|
|
75 |
}
|
76 |
|
77 |
/**
|
|
|
56 |
var $tblchats_at_localhost__chat_timezone;
|
57 |
var $tblchats_at_localhost__chat_users;
|
58 |
var $tblchats_at_localhost__Eoc;
|
59 |
+
var $tblchats_at_localhost__webreport_admin;
|
60 |
+
var $tblchats_at_localhost__webreport_style;
|
61 |
+
var $tblchats_at_localhost__webreports;
|
62 |
var $lstTables;
|
63 |
var $Table = array();
|
64 |
|
|
|
75 |
$this->lstTables[] = array("name" => "chat_timezone", "varname" => "chats_at_localhost__chat_timezone", "altvarname" => "chat_timezone", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
76 |
$this->lstTables[] = array("name" => "chat_users", "varname" => "chats_at_localhost__chat_users", "altvarname" => "chat_users", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
77 |
$this->lstTables[] = array("name" => "Eoc", "varname" => "chats_at_localhost__Eoc", "altvarname" => "Eoc", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
78 |
+
$this->lstTables[] = array("name" => "webreport_admin", "varname" => "chats_at_localhost__webreport_admin", "altvarname" => "webreport_admin", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
79 |
+
$this->lstTables[] = array("name" => "webreport_style", "varname" => "chats_at_localhost__webreport_style", "altvarname" => "webreport_style", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
80 |
+
$this->lstTables[] = array("name" => "webreports", "varname" => "chats_at_localhost__webreports", "altvarname" => "webreports", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost");
|
81 |
}
|
82 |
|
83 |
/**
|
php/include/dal/chats_at_localhost__webreport_admin.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$dalTablewebreport_admin = array();
|
3 |
+
$dalTablewebreport_admin["id"] = array("type"=>3,"varname"=>"id", "name" => "id", "autoInc" => "1");
|
4 |
+
$dalTablewebreport_admin["tablename"] = array("type"=>200,"varname"=>"tablename", "name" => "tablename", "autoInc" => "0");
|
5 |
+
$dalTablewebreport_admin["db_type"] = array("type"=>200,"varname"=>"db_type", "name" => "db_type", "autoInc" => "0");
|
6 |
+
$dalTablewebreport_admin["group_name"] = array("type"=>200,"varname"=>"group_name", "name" => "group_name", "autoInc" => "0");
|
7 |
+
$dalTablewebreport_admin["id"]["key"]=true;
|
8 |
+
|
9 |
+
$dal_info["chats_at_localhost__webreport_admin"] = &$dalTablewebreport_admin;
|
10 |
+
?>
|
php/include/dal/chats_at_localhost__webreport_style.php
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$dalTablewebreport_style = array();
|
3 |
+
$dalTablewebreport_style["report_style_id"] = array("type"=>3,"varname"=>"report_style_id", "name" => "report_style_id", "autoInc" => "1");
|
4 |
+
$dalTablewebreport_style["type"] = array("type"=>200,"varname"=>"type", "name" => "type", "autoInc" => "0");
|
5 |
+
$dalTablewebreport_style["field"] = array("type"=>3,"varname"=>"field", "name" => "field", "autoInc" => "0");
|
6 |
+
$dalTablewebreport_style["group"] = array("type"=>3,"varname"=>"group", "name" => "group", "autoInc" => "0");
|
7 |
+
$dalTablewebreport_style["style_str"] = array("type"=>201,"varname"=>"style_str", "name" => "style_str", "autoInc" => "0");
|
8 |
+
$dalTablewebreport_style["uniq"] = array("type"=>3,"varname"=>"uniq", "name" => "uniq", "autoInc" => "0");
|
9 |
+
$dalTablewebreport_style["repname"] = array("type"=>200,"varname"=>"repname", "name" => "repname", "autoInc" => "0");
|
10 |
+
$dalTablewebreport_style["styletype"] = array("type"=>200,"varname"=>"styletype", "name" => "styletype", "autoInc" => "0");
|
11 |
+
$dalTablewebreport_style["report_style_id"]["key"]=true;
|
12 |
+
|
13 |
+
$dal_info["chats_at_localhost__webreport_style"] = &$dalTablewebreport_style;
|
14 |
+
?>
|
php/include/dal/chats_at_localhost__webreports.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$dalTablewebreports = array();
|
3 |
+
$dalTablewebreports["rpt_id"] = array("type"=>3,"varname"=>"rpt_id", "name" => "rpt_id", "autoInc" => "1");
|
4 |
+
$dalTablewebreports["rpt_name"] = array("type"=>200,"varname"=>"rpt_name", "name" => "rpt_name", "autoInc" => "0");
|
5 |
+
$dalTablewebreports["rpt_title"] = array("type"=>200,"varname"=>"rpt_title", "name" => "rpt_title", "autoInc" => "0");
|
6 |
+
$dalTablewebreports["rpt_cdate"] = array("type"=>135,"varname"=>"rpt_cdate", "name" => "rpt_cdate", "autoInc" => "0");
|
7 |
+
$dalTablewebreports["rpt_mdate"] = array("type"=>135,"varname"=>"rpt_mdate", "name" => "rpt_mdate", "autoInc" => "0");
|
8 |
+
$dalTablewebreports["rpt_content"] = array("type"=>201,"varname"=>"rpt_content", "name" => "rpt_content", "autoInc" => "0");
|
9 |
+
$dalTablewebreports["rpt_owner"] = array("type"=>200,"varname"=>"rpt_owner", "name" => "rpt_owner", "autoInc" => "0");
|
10 |
+
$dalTablewebreports["rpt_status"] = array("type"=>200,"varname"=>"rpt_status", "name" => "rpt_status", "autoInc" => "0");
|
11 |
+
$dalTablewebreports["rpt_type"] = array("type"=>200,"varname"=>"rpt_type", "name" => "rpt_type", "autoInc" => "0");
|
12 |
+
$dalTablewebreports["rpt_id"]["key"]=true;
|
13 |
+
|
14 |
+
$dal_info["chats_at_localhost__webreports"] = &$dalTablewebreports;
|
15 |
+
?>
|
php/include/menunodes_main.php
CHANGED
@@ -80,6 +80,32 @@
|
|
80 |
|
81 |
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
$menuNodes[] = $menuNode;
|
84 |
$menuNodesCache[ "main" ] = $menuNodes;
|
85 |
?>
|
|
|
80 |
|
81 |
|
82 |
|
83 |
+
$menuNodes[] = $menuNode;
|
84 |
+
$menuNode = array();
|
85 |
+
$menuNode["id"] = "4";
|
86 |
+
$menuNode["name"] = "";
|
87 |
+
$menuNode["href"] = "";
|
88 |
+
$menuNode["type"] = "Leaf";
|
89 |
+
$menuNode["table"] = "{04AFFBE6-86C0-47b0-ADD3-BA7FA19CA6FC}";
|
90 |
+
$menuNode["style"] = "";
|
91 |
+
$menuNode["params"] = "";
|
92 |
+
$menuNode["parent"] = "0";
|
93 |
+
$menuNode["nameType"] = "Text";
|
94 |
+
$menuNode["linkType"] = "Internal";
|
95 |
+
$menuNode["pageType"] = strtolower("WebReports");//
|
96 |
+
$menuNode["pageId"] = "";
|
97 |
+
$menuNode["openType"] = "None";
|
98 |
+
|
99 |
+
$menuNode["icon"] = "";
|
100 |
+
$menuNode["iconType"] = "0";
|
101 |
+
$menuNode["iconShow"] = "1";
|
102 |
+
|
103 |
+
$menuNode["color"] = "";
|
104 |
+
|
105 |
+
$menuNode["title"] = "Web Reports";
|
106 |
+
|
107 |
+
|
108 |
+
|
109 |
$menuNodes[] = $menuNode;
|
110 |
$menuNodesCache[ "main" ] = $menuNodes;
|
111 |
?>
|
php/include/pages/_global_menu_Chat1.php
CHANGED
@@ -16,7 +16,13 @@
|
|
16 |
'linkType' => 0,
|
17 |
'items' => null,
|
18 |
'table' => 'Eoc',
|
19 |
-
'page' => 'list' )
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
'fields' => array( 'gridFields' => array( ),
|
21 |
'searchRequiredFields' => array( ),
|
22 |
'searchPanelFields' => array( ),
|
@@ -28,7 +34,8 @@
|
|
28 |
'loginform_login',
|
29 |
'username_button' ),
|
30 |
'grid' => array( 'welcome_item',
|
31 |
-
'welcome_item1'
|
|
|
32 |
'formXtTags' => array( 'above-grid' => array( ) ),
|
33 |
'itemForms' => array( 'logo' => 'supertop',
|
34 |
'menu' => 'supertop',
|
@@ -36,7 +43,8 @@
|
|
36 |
'loginform_login' => 'supertop',
|
37 |
'username_button' => 'supertop',
|
38 |
'welcome_item' => 'grid',
|
39 |
-
'welcome_item1' => 'grid'
|
|
|
40 |
'itemLocations' => array( ),
|
41 |
'itemVisiblity' => array( 'menu' => 3,
|
42 |
'list_options' => 3,
|
@@ -45,7 +53,8 @@
|
|
45 |
'itemsByType' => array( 'logo' => array( 'logo' ),
|
46 |
'menu' => array( 'menu' ),
|
47 |
'welcome_item' => array( 'welcome_item',
|
48 |
-
'welcome_item1'
|
|
|
49 |
'list_options' => array( 'list_options' ),
|
50 |
'username_button' => array( 'username_button' ),
|
51 |
'loginform_login' => array( 'loginform_login' ),
|
@@ -97,7 +106,8 @@ array( 'cell' => 'c2' ) ),
|
|
97 |
'section' => '' ) ),
|
98 |
'cells' => array( 'c1' => array( 'model' => 'c1',
|
99 |
'items' => array( 'welcome_item',
|
100 |
-
'welcome_item1'
|
|
|
101 |
'deferredItems' => array( ),
|
102 |
'recsPerRow' => 1 ) ),
|
103 |
'items' => array( 'logo' => array( 'type' => 'logo' ),
|
@@ -132,6 +142,12 @@ array( 'cell' => 'c2' ) ),
|
|
132 |
'linkComments' => array( 'text' => 'Eoc description',
|
133 |
'type' => 0 ),
|
134 |
'background' => '#008B8B',
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
'linkType' => 0 ) ),
|
136 |
'dbProps' => array( ),
|
137 |
'version' => 14,
|
|
|
16 |
'linkType' => 0,
|
17 |
'items' => null,
|
18 |
'table' => 'Eoc',
|
19 |
+
'page' => 'list' ),
|
20 |
+
'welcome_item2' => array( 'menutItem' => true,
|
21 |
+
'group' => false,
|
22 |
+
'linkType' => 0,
|
23 |
+
'items' => null,
|
24 |
+
'table' => '{04AFFBE6-86C0-47b0-ADD3-BA7FA19CA6FC}',
|
25 |
+
'page' => null ) ) ),
|
26 |
'fields' => array( 'gridFields' => array( ),
|
27 |
'searchRequiredFields' => array( ),
|
28 |
'searchPanelFields' => array( ),
|
|
|
34 |
'loginform_login',
|
35 |
'username_button' ),
|
36 |
'grid' => array( 'welcome_item',
|
37 |
+
'welcome_item1',
|
38 |
+
'welcome_item2' ) ),
|
39 |
'formXtTags' => array( 'above-grid' => array( ) ),
|
40 |
'itemForms' => array( 'logo' => 'supertop',
|
41 |
'menu' => 'supertop',
|
|
|
43 |
'loginform_login' => 'supertop',
|
44 |
'username_button' => 'supertop',
|
45 |
'welcome_item' => 'grid',
|
46 |
+
'welcome_item1' => 'grid',
|
47 |
+
'welcome_item2' => 'grid' ),
|
48 |
'itemLocations' => array( ),
|
49 |
'itemVisiblity' => array( 'menu' => 3,
|
50 |
'list_options' => 3,
|
|
|
53 |
'itemsByType' => array( 'logo' => array( 'logo' ),
|
54 |
'menu' => array( 'menu' ),
|
55 |
'welcome_item' => array( 'welcome_item',
|
56 |
+
'welcome_item1',
|
57 |
+
'welcome_item2' ),
|
58 |
'list_options' => array( 'list_options' ),
|
59 |
'username_button' => array( 'username_button' ),
|
60 |
'loginform_login' => array( 'loginform_login' ),
|
|
|
106 |
'section' => '' ) ),
|
107 |
'cells' => array( 'c1' => array( 'model' => 'c1',
|
108 |
'items' => array( 'welcome_item',
|
109 |
+
'welcome_item1',
|
110 |
+
'welcome_item2' ) ) ),
|
111 |
'deferredItems' => array( ),
|
112 |
'recsPerRow' => 1 ) ),
|
113 |
'items' => array( 'logo' => array( 'type' => 'logo' ),
|
|
|
142 |
'linkComments' => array( 'text' => 'Eoc description',
|
143 |
'type' => 0 ),
|
144 |
'background' => '#008B8B',
|
145 |
+
'linkType' => 0 ),
|
146 |
+
'welcome_item2' => array( 'type' => 'welcome_item',
|
147 |
+
'linkUrl' => '',
|
148 |
+
'linkTable' => '{04AFFBE6-86C0-47b0-ADD3-BA7FA19CA6FC}',
|
149 |
+
'linkPage' => null,
|
150 |
+
'linkText' => null,
|
151 |
'linkType' => 0 ) ),
|
152 |
'dbProps' => array( ),
|
153 |
'version' => 14,
|
php/include/reportfunctions.php
CHANGED
@@ -47,9 +47,9 @@ function GetUserGroups() {
|
|
47 |
array(-3, "<"."Guest".">")
|
48 |
);
|
49 |
|
50 |
-
$groupIdField = "
|
51 |
-
$groupLabelField = "
|
52 |
-
$groupProviderField = "
|
53 |
|
54 |
$dataSource = Security::getUgGroupsDatasource();
|
55 |
$dc = new DsCommand();
|
@@ -66,12 +66,6 @@ function GetUserGroups() {
|
|
66 |
} else {
|
67 |
// static permissions
|
68 |
$arr = array();
|
69 |
-
if ( "<Guest>" == "<Guest>" ) {
|
70 |
-
$group = "Guest";
|
71 |
-
} else {
|
72 |
-
$group = "<Guest>";
|
73 |
-
}
|
74 |
-
$arr[]=array($group,"<Guest>");
|
75 |
if ( "admin" == "<Guest>" ) {
|
76 |
$group = "Guest";
|
77 |
} else {
|
@@ -104,8 +98,6 @@ function GetUserGroup()
|
|
104 |
{
|
105 |
if( !Security::isGuest() )
|
106 |
{
|
107 |
-
if ( "<Guest>" == @$_SESSION["GroupID"])
|
108 |
-
return array(@$_SESSION["GroupID"]);
|
109 |
if ( "admin" == @$_SESSION["GroupID"])
|
110 |
return array(@$_SESSION["GroupID"]);
|
111 |
return array("Default");
|
@@ -334,50 +326,6 @@ function testAdvSearch($table)
|
|
334 |
{
|
335 |
if(is_wr_project())
|
336 |
{
|
337 |
-
if($table=="kbarticles")
|
338 |
-
{
|
339 |
-
return 1;
|
340 |
-
}
|
341 |
-
if($table=="kbcategories")
|
342 |
-
{
|
343 |
-
return 1;
|
344 |
-
}
|
345 |
-
if($table=="kbcomments")
|
346 |
-
{
|
347 |
-
return 1;
|
348 |
-
}
|
349 |
-
if($table=="public.kbusers")
|
350 |
-
{
|
351 |
-
return 1;
|
352 |
-
}
|
353 |
-
if($table=="main")
|
354 |
-
{
|
355 |
-
return 1;
|
356 |
-
}
|
357 |
-
if($table=="faicons")
|
358 |
-
{
|
359 |
-
return 1;
|
360 |
-
}
|
361 |
-
if($table=="admin_comments")
|
362 |
-
{
|
363 |
-
return 1;
|
364 |
-
}
|
365 |
-
if($table=="public.fasis_chat_history")
|
366 |
-
{
|
367 |
-
return 1;
|
368 |
-
}
|
369 |
-
if($table=="public.products")
|
370 |
-
{
|
371 |
-
return 1;
|
372 |
-
}
|
373 |
-
if($table=="public.items")
|
374 |
-
{
|
375 |
-
return 1;
|
376 |
-
}
|
377 |
-
if($table=="public.appointments")
|
378 |
-
{
|
379 |
-
return 1;
|
380 |
-
}
|
381 |
if($table=="chat_history")
|
382 |
{
|
383 |
return 1;
|
@@ -406,67 +354,11 @@ function testAdvSearch($table)
|
|
406 |
{
|
407 |
return 1;
|
408 |
}
|
409 |
-
if($table=="
|
410 |
-
{
|
411 |
-
return 1;
|
412 |
-
}
|
413 |
-
if($table=="public.chat_groups")
|
414 |
-
{
|
415 |
-
return 1;
|
416 |
-
}
|
417 |
-
if($table=="public.chat_history")
|
418 |
-
{
|
419 |
-
return 1;
|
420 |
-
}
|
421 |
-
if($table=="public.chat_peopletype")
|
422 |
{
|
423 |
return 1;
|
424 |
}
|
425 |
-
if($table=="
|
426 |
-
{
|
427 |
-
return 1;
|
428 |
-
}
|
429 |
-
if($table=="public.identity")
|
430 |
-
{
|
431 |
-
return 1;
|
432 |
-
}
|
433 |
-
if($table=="public.dataset_info")
|
434 |
-
{
|
435 |
-
return 1;
|
436 |
-
}
|
437 |
-
if($table=="admin_rights")
|
438 |
-
{
|
439 |
-
return 1;
|
440 |
-
}
|
441 |
-
if($table=="admin_members")
|
442 |
-
{
|
443 |
-
return 1;
|
444 |
-
}
|
445 |
-
if($table=="admin_users")
|
446 |
-
{
|
447 |
-
return 1;
|
448 |
-
}
|
449 |
-
if($table=="public.history")
|
450 |
-
{
|
451 |
-
return 1;
|
452 |
-
}
|
453 |
-
if($table=="public.zendesk__dataszz")
|
454 |
-
{
|
455 |
-
return 1;
|
456 |
-
}
|
457 |
-
if($table=="public.view_zendesk")
|
458 |
-
{
|
459 |
-
return 1;
|
460 |
-
}
|
461 |
-
if($table=="public.prompts")
|
462 |
-
{
|
463 |
-
return 1;
|
464 |
-
}
|
465 |
-
if($table=="public.view_faisis_chat_history")
|
466 |
-
{
|
467 |
-
return 1;
|
468 |
-
}
|
469 |
-
if($table=="public.server_setting")
|
470 |
{
|
471 |
return 1;
|
472 |
}
|
@@ -723,50 +615,6 @@ function getCaptionTable($table)
|
|
723 |
global $strTableName;
|
724 |
if(!$table)
|
725 |
$table=$strTableName;
|
726 |
-
if($table=="kbarticles")
|
727 |
-
{
|
728 |
-
return "Articles";
|
729 |
-
}
|
730 |
-
if($table=="kbcategories")
|
731 |
-
{
|
732 |
-
return "Categories";
|
733 |
-
}
|
734 |
-
if($table=="kbcomments")
|
735 |
-
{
|
736 |
-
return "Comments";
|
737 |
-
}
|
738 |
-
if($table=="public.kbusers")
|
739 |
-
{
|
740 |
-
return "Users";
|
741 |
-
}
|
742 |
-
if($table=="main")
|
743 |
-
{
|
744 |
-
return "";
|
745 |
-
}
|
746 |
-
if($table=="faicons")
|
747 |
-
{
|
748 |
-
return "Faicons";
|
749 |
-
}
|
750 |
-
if($table=="admin_comments")
|
751 |
-
{
|
752 |
-
return "Admin Comments";
|
753 |
-
}
|
754 |
-
if($table=="public.fasis_chat_history")
|
755 |
-
{
|
756 |
-
return "知識へ登録";
|
757 |
-
}
|
758 |
-
if($table=="public.products")
|
759 |
-
{
|
760 |
-
return "Products";
|
761 |
-
}
|
762 |
-
if($table=="public.items")
|
763 |
-
{
|
764 |
-
return "Items";
|
765 |
-
}
|
766 |
-
if($table=="public.appointments")
|
767 |
-
{
|
768 |
-
return "Appointments";
|
769 |
-
}
|
770 |
if($table=="chat_history")
|
771 |
{
|
772 |
return "Chat History";
|
@@ -795,69 +643,13 @@ function getCaptionTable($table)
|
|
795 |
{
|
796 |
return "Chat Timezone";
|
797 |
}
|
798 |
-
if($table=="
|
799 |
-
{
|
800 |
-
return "Chat Files";
|
801 |
-
}
|
802 |
-
if($table=="public.chat_groups")
|
803 |
-
{
|
804 |
-
return "Chat Groups";
|
805 |
-
}
|
806 |
-
if($table=="public.chat_history")
|
807 |
-
{
|
808 |
-
return "Chat History";
|
809 |
-
}
|
810 |
-
if($table=="public.chat_peopletype")
|
811 |
-
{
|
812 |
-
return "Chat Peopletype";
|
813 |
-
}
|
814 |
-
if($table=="public.chat_settings")
|
815 |
{
|
816 |
-
return "
|
817 |
-
}
|
818 |
-
if($table=="public.identity")
|
819 |
-
{
|
820 |
-
return "Identity";
|
821 |
-
}
|
822 |
-
if($table=="public.dataset_info")
|
823 |
-
{
|
824 |
-
return "Dataset Info";
|
825 |
-
}
|
826 |
-
if($table=="admin_rights")
|
827 |
-
{
|
828 |
-
return "Admin Rights";
|
829 |
-
}
|
830 |
-
if($table=="admin_members")
|
831 |
-
{
|
832 |
-
return "Admin Members";
|
833 |
}
|
834 |
-
if($table=="
|
835 |
{
|
836 |
-
return "
|
837 |
-
}
|
838 |
-
if($table=="public.history")
|
839 |
-
{
|
840 |
-
return "History";
|
841 |
-
}
|
842 |
-
if($table=="public.zendesk__dataszz")
|
843 |
-
{
|
844 |
-
return "Zendesk";
|
845 |
-
}
|
846 |
-
if($table=="public.view_zendesk")
|
847 |
-
{
|
848 |
-
return "View Zendesk";
|
849 |
-
}
|
850 |
-
if($table=="public.prompts")
|
851 |
-
{
|
852 |
-
return "Prompts";
|
853 |
-
}
|
854 |
-
if($table=="public.view_faisis_chat_history")
|
855 |
-
{
|
856 |
-
return "View Faisis Chat History";
|
857 |
-
}
|
858 |
-
if($table=="public.server_setting")
|
859 |
-
{
|
860 |
-
return "Server Setting";
|
861 |
}
|
862 |
return $table;
|
863 |
}
|
@@ -1721,138 +1513,6 @@ function GetTablesListReport()
|
|
1721 |
{
|
1722 |
$arr=array();
|
1723 |
$securityFlag = true;
|
1724 |
-
if( Security::permissionsAvailable() ) {
|
1725 |
-
$strPerm = GetUserPermissions("kbarticles");
|
1726 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1727 |
-
}
|
1728 |
-
if($securityFlag)
|
1729 |
-
{
|
1730 |
-
$value="kbarticles";
|
1731 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1732 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1733 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1734 |
-
$arr[]="kbarticles";
|
1735 |
-
}
|
1736 |
-
if( Security::permissionsAvailable() ) {
|
1737 |
-
$strPerm = GetUserPermissions("kbcategories");
|
1738 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1739 |
-
}
|
1740 |
-
if($securityFlag)
|
1741 |
-
{
|
1742 |
-
$value="kbcategories";
|
1743 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1744 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1745 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1746 |
-
$arr[]="kbcategories";
|
1747 |
-
}
|
1748 |
-
if( Security::permissionsAvailable() ) {
|
1749 |
-
$strPerm = GetUserPermissions("kbcomments");
|
1750 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1751 |
-
}
|
1752 |
-
if($securityFlag)
|
1753 |
-
{
|
1754 |
-
$value="kbcomments";
|
1755 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1756 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1757 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1758 |
-
$arr[]="kbcomments";
|
1759 |
-
}
|
1760 |
-
if( Security::permissionsAvailable() ) {
|
1761 |
-
$strPerm = GetUserPermissions("public.kbusers");
|
1762 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1763 |
-
}
|
1764 |
-
if($securityFlag)
|
1765 |
-
{
|
1766 |
-
$value="public.kbusers";
|
1767 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1768 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1769 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1770 |
-
$arr[]="public.kbusers";
|
1771 |
-
}
|
1772 |
-
if( Security::permissionsAvailable() ) {
|
1773 |
-
$strPerm = GetUserPermissions("main");
|
1774 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1775 |
-
}
|
1776 |
-
if($securityFlag)
|
1777 |
-
{
|
1778 |
-
$value="main";
|
1779 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1780 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1781 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1782 |
-
$arr[]="main";
|
1783 |
-
}
|
1784 |
-
if( Security::permissionsAvailable() ) {
|
1785 |
-
$strPerm = GetUserPermissions("faicons");
|
1786 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1787 |
-
}
|
1788 |
-
if($securityFlag)
|
1789 |
-
{
|
1790 |
-
$value="faicons";
|
1791 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1792 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1793 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1794 |
-
$arr[]="faicons";
|
1795 |
-
}
|
1796 |
-
if( Security::permissionsAvailable() ) {
|
1797 |
-
$strPerm = GetUserPermissions("admin_comments");
|
1798 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1799 |
-
}
|
1800 |
-
if($securityFlag)
|
1801 |
-
{
|
1802 |
-
$value="admin_comments";
|
1803 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1804 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1805 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1806 |
-
$arr[]="admin_comments";
|
1807 |
-
}
|
1808 |
-
if( Security::permissionsAvailable() ) {
|
1809 |
-
$strPerm = GetUserPermissions("public.fasis_chat_history");
|
1810 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1811 |
-
}
|
1812 |
-
if($securityFlag)
|
1813 |
-
{
|
1814 |
-
$value="public.fasis_chat_history";
|
1815 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1816 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1817 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1818 |
-
$arr[]="public.fasis_chat_history";
|
1819 |
-
}
|
1820 |
-
if( Security::permissionsAvailable() ) {
|
1821 |
-
$strPerm = GetUserPermissions("public.products");
|
1822 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1823 |
-
}
|
1824 |
-
if($securityFlag)
|
1825 |
-
{
|
1826 |
-
$value="public.products";
|
1827 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1828 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1829 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1830 |
-
$arr[]="public.products";
|
1831 |
-
}
|
1832 |
-
if( Security::permissionsAvailable() ) {
|
1833 |
-
$strPerm = GetUserPermissions("public.items");
|
1834 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1835 |
-
}
|
1836 |
-
if($securityFlag)
|
1837 |
-
{
|
1838 |
-
$value="public.items";
|
1839 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1840 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1841 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1842 |
-
$arr[]="public.items";
|
1843 |
-
}
|
1844 |
-
if( Security::permissionsAvailable() ) {
|
1845 |
-
$strPerm = GetUserPermissions("public.appointments");
|
1846 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1847 |
-
}
|
1848 |
-
if($securityFlag)
|
1849 |
-
{
|
1850 |
-
$value="public.appointments";
|
1851 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1852 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1853 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1854 |
-
$arr[]="public.appointments";
|
1855 |
-
}
|
1856 |
if( Security::permissionsAvailable() ) {
|
1857 |
$strPerm = GetUserPermissions("chat_history");
|
1858 |
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
@@ -1938,196 +1598,28 @@ function GetTablesListReport()
|
|
1938 |
$arr[]="chat_timezone";
|
1939 |
}
|
1940 |
if( Security::permissionsAvailable() ) {
|
1941 |
-
$strPerm = GetUserPermissions("
|
1942 |
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1943 |
}
|
1944 |
if($securityFlag)
|
1945 |
{
|
1946 |
-
$value="
|
1947 |
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1948 |
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1949 |
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1950 |
-
$arr[]="
|
1951 |
}
|
1952 |
if( Security::permissionsAvailable() ) {
|
1953 |
-
$strPerm = GetUserPermissions("
|
1954 |
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1955 |
}
|
1956 |
if($securityFlag)
|
1957 |
{
|
1958 |
-
$value="
|
1959 |
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1960 |
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1961 |
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1962 |
-
$arr[]="
|
1963 |
-
}
|
1964 |
-
if( Security::permissionsAvailable() ) {
|
1965 |
-
$strPerm = GetUserPermissions("public.chat_history");
|
1966 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1967 |
-
}
|
1968 |
-
if($securityFlag)
|
1969 |
-
{
|
1970 |
-
$value="public.chat_history";
|
1971 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1972 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1973 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1974 |
-
$arr[]="public.chat_history";
|
1975 |
-
}
|
1976 |
-
if( Security::permissionsAvailable() ) {
|
1977 |
-
$strPerm = GetUserPermissions("public.chat_peopletype");
|
1978 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1979 |
-
}
|
1980 |
-
if($securityFlag)
|
1981 |
-
{
|
1982 |
-
$value="public.chat_peopletype";
|
1983 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1984 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1985 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1986 |
-
$arr[]="public.chat_peopletype";
|
1987 |
-
}
|
1988 |
-
if( Security::permissionsAvailable() ) {
|
1989 |
-
$strPerm = GetUserPermissions("public.chat_settings");
|
1990 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1991 |
-
}
|
1992 |
-
if($securityFlag)
|
1993 |
-
{
|
1994 |
-
$value="public.chat_settings";
|
1995 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1996 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1997 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1998 |
-
$arr[]="public.chat_settings";
|
1999 |
-
}
|
2000 |
-
if( Security::permissionsAvailable() ) {
|
2001 |
-
$strPerm = GetUserPermissions("public.identity");
|
2002 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
2003 |
-
}
|
2004 |
-
if($securityFlag)
|
2005 |
-
{
|
2006 |
-
$value="public.identity";
|
2007 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
2008 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
2009 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
2010 |
-
$arr[]="public.identity";
|
2011 |
-
}
|
2012 |
-
if( Security::permissionsAvailable() ) {
|
2013 |
-
$strPerm = GetUserPermissions("public.dataset_info");
|
2014 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
2015 |
-
}
|
2016 |
-
if($securityFlag)
|
2017 |
-
{
|
2018 |
-
$value="public.dataset_info";
|
2019 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
2020 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
2021 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
2022 |
-
$arr[]="public.dataset_info";
|
2023 |
-
}
|
2024 |
-
if( Security::permissionsAvailable() ) {
|
2025 |
-
$strPerm = GetUserPermissions("admin_rights");
|
2026 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
2027 |
-
}
|
2028 |
-
if($securityFlag)
|
2029 |
-
{
|
2030 |
-
$value="admin_rights";
|
2031 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
2032 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
2033 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
2034 |
-
$arr[]="admin_rights";
|
2035 |
-
}
|
2036 |
-
if( Security::permissionsAvailable() ) {
|
2037 |
-
$strPerm = GetUserPermissions("admin_members");
|
2038 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
2039 |
-
}
|
2040 |
-
if($securityFlag)
|
2041 |
-
{
|
2042 |
-
$value="admin_members";
|
2043 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
2044 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
2045 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
2046 |
-
$arr[]="admin_members";
|
2047 |
-
}
|
2048 |
-
if( Security::permissionsAvailable() ) {
|
2049 |
-
$strPerm = GetUserPermissions("admin_users");
|
2050 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
2051 |
-
}
|
2052 |
-
if($securityFlag)
|
2053 |
-
{
|
2054 |
-
$value="admin_users";
|
2055 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
2056 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
2057 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
2058 |
-
$arr[]="admin_users";
|
2059 |
-
}
|
2060 |
-
if( Security::permissionsAvailable() ) {
|
2061 |
-
$strPerm = GetUserPermissions("public.history");
|
2062 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
2063 |
-
}
|
2064 |
-
if($securityFlag)
|
2065 |
-
{
|
2066 |
-
$value="public.history";
|
2067 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
2068 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
2069 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
2070 |
-
$arr[]="public.history";
|
2071 |
-
}
|
2072 |
-
if( Security::permissionsAvailable() ) {
|
2073 |
-
$strPerm = GetUserPermissions("public.zendesk__dataszz");
|
2074 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
2075 |
-
}
|
2076 |
-
if($securityFlag)
|
2077 |
-
{
|
2078 |
-
$value="public.zendesk__dataszz";
|
2079 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
2080 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
2081 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
2082 |
-
$arr[]="public.zendesk__dataszz";
|
2083 |
-
}
|
2084 |
-
if( Security::permissionsAvailable() ) {
|
2085 |
-
$strPerm = GetUserPermissions("public.view_zendesk");
|
2086 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
2087 |
-
}
|
2088 |
-
if($securityFlag)
|
2089 |
-
{
|
2090 |
-
$value="public.view_zendesk";
|
2091 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
2092 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
2093 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
2094 |
-
$arr[]="public.view_zendesk";
|
2095 |
-
}
|
2096 |
-
if( Security::permissionsAvailable() ) {
|
2097 |
-
$strPerm = GetUserPermissions("public.prompts");
|
2098 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
2099 |
-
}
|
2100 |
-
if($securityFlag)
|
2101 |
-
{
|
2102 |
-
$value="public.prompts";
|
2103 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
2104 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
2105 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
2106 |
-
$arr[]="public.prompts";
|
2107 |
-
}
|
2108 |
-
if( Security::permissionsAvailable() ) {
|
2109 |
-
$strPerm = GetUserPermissions("public.view_faisis_chat_history");
|
2110 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
2111 |
-
}
|
2112 |
-
if($securityFlag)
|
2113 |
-
{
|
2114 |
-
$value="public.view_faisis_chat_history";
|
2115 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
2116 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
2117 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
2118 |
-
$arr[]="public.view_faisis_chat_history";
|
2119 |
-
}
|
2120 |
-
if( Security::permissionsAvailable() ) {
|
2121 |
-
$strPerm = GetUserPermissions("public.server_setting");
|
2122 |
-
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
2123 |
-
}
|
2124 |
-
if($securityFlag)
|
2125 |
-
{
|
2126 |
-
$value="public.server_setting";
|
2127 |
-
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
2128 |
-
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
2129 |
-
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
2130 |
-
$arr[]="public.server_setting";
|
2131 |
}
|
2132 |
return $arr;
|
2133 |
}
|
@@ -2215,10 +1707,6 @@ function isWRAdmin()
|
|
2215 |
}
|
2216 |
$sUserGroup=@$_SESSION["GroupID"];
|
2217 |
if( !Security::dynamicPermissions() ) {
|
2218 |
-
if($sUserGroup=="<Guest>")
|
2219 |
-
{
|
2220 |
-
return false;
|
2221 |
-
}
|
2222 |
if($sUserGroup=="admin")
|
2223 |
{
|
2224 |
return false;
|
|
|
47 |
array(-3, "<"."Guest".">")
|
48 |
);
|
49 |
|
50 |
+
$groupIdField = "";
|
51 |
+
$groupLabelField = "";
|
52 |
+
$groupProviderField = "";
|
53 |
|
54 |
$dataSource = Security::getUgGroupsDatasource();
|
55 |
$dc = new DsCommand();
|
|
|
66 |
} else {
|
67 |
// static permissions
|
68 |
$arr = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
if ( "admin" == "<Guest>" ) {
|
70 |
$group = "Guest";
|
71 |
} else {
|
|
|
98 |
{
|
99 |
if( !Security::isGuest() )
|
100 |
{
|
|
|
|
|
101 |
if ( "admin" == @$_SESSION["GroupID"])
|
102 |
return array(@$_SESSION["GroupID"]);
|
103 |
return array("Default");
|
|
|
326 |
{
|
327 |
if(is_wr_project())
|
328 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
329 |
if($table=="chat_history")
|
330 |
{
|
331 |
return 1;
|
|
|
354 |
{
|
355 |
return 1;
|
356 |
}
|
357 |
+
if($table=="chat126_users1")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
{
|
359 |
return 1;
|
360 |
}
|
361 |
+
if($table=="Eoc")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
362 |
{
|
363 |
return 1;
|
364 |
}
|
|
|
615 |
global $strTableName;
|
616 |
if(!$table)
|
617 |
$table=$strTableName;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
618 |
if($table=="chat_history")
|
619 |
{
|
620 |
return "Chat History";
|
|
|
643 |
{
|
644 |
return "Chat Timezone";
|
645 |
}
|
646 |
+
if($table=="chat126_users1")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
647 |
{
|
648 |
+
return "Chat126 Users1";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
649 |
}
|
650 |
+
if($table=="Eoc")
|
651 |
{
|
652 |
+
return "Eoc";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
653 |
}
|
654 |
return $table;
|
655 |
}
|
|
|
1513 |
{
|
1514 |
$arr=array();
|
1515 |
$securityFlag = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1516 |
if( Security::permissionsAvailable() ) {
|
1517 |
$strPerm = GetUserPermissions("chat_history");
|
1518 |
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
|
|
1598 |
$arr[]="chat_timezone";
|
1599 |
}
|
1600 |
if( Security::permissionsAvailable() ) {
|
1601 |
+
$strPerm = GetUserPermissions("chat126_users1");
|
1602 |
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1603 |
}
|
1604 |
if($securityFlag)
|
1605 |
{
|
1606 |
+
$value="chat126_users1";
|
1607 |
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1608 |
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1609 |
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1610 |
+
$arr[]="chat126_users1";
|
1611 |
}
|
1612 |
if( Security::permissionsAvailable() ) {
|
1613 |
+
$strPerm = GetUserPermissions("Eoc");
|
1614 |
$securityFlag = strpos($strPerm, "P") !== false || strpos($strPerm, "S") !== false;
|
1615 |
}
|
1616 |
if($securityFlag)
|
1617 |
{
|
1618 |
+
$value="Eoc";
|
1619 |
if(substr($value,-6)!="_audit" && substr($value,-8)!="_locking" && substr($value,-9)!="_ugrights" && substr($value,-9)!="_uggroups"
|
1620 |
&& substr($value,-10)!="_ugmembers" && $value!="admin_rights" && $value!="admin_users"
|
1621 |
&& $value!="admin_members" && $value!="webreports" && $value!="webreport_style" && $value!="webreport_settings" && $value!="webreport_admin" && $value!="webreport_sql")
|
1622 |
+
$arr[]="Eoc";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1623 |
}
|
1624 |
return $arr;
|
1625 |
}
|
|
|
1707 |
}
|
1708 |
$sUserGroup=@$_SESSION["GroupID"];
|
1709 |
if( !Security::dynamicPermissions() ) {
|
|
|
|
|
|
|
|
|
1710 |
if($sUserGroup=="admin")
|
1711 |
{
|
1712 |
return false;
|
php/templates/_global_menu_Chat1.htm
CHANGED
@@ -310,6 +310,19 @@
|
|
310 |
Eoc description </div>
|
311 |
</div>
|
312 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
</div>
|
314 |
</td>
|
315 |
</tr>
|
|
|
310 |
Eoc description </div>
|
311 |
</div>
|
312 |
|
313 |
+
|
314 |
+
|
315 |
+
<div class="bs-welcome-item" data-itemtype="welcome_item" data-itemid="welcome_item2" {$item_welcome_item2} data-pageid="{$pageid}" data-comment-len="0">
|
316 |
+
<div class="bs-welcome-header">
|
317 |
+
<a id="itemlink" href="webreport.php" >
|
318 |
+
Web Reports </a>
|
319 |
+
</div>
|
320 |
+
|
321 |
+
|
322 |
+
<div class="bs-welcome-content">
|
323 |
+
Web Reports and Charts </div>
|
324 |
+
</div>
|
325 |
+
|
326 |
</div>
|
327 |
</td>
|
328 |
</tr>
|
php/webchart1.php
CHANGED
@@ -78,8 +78,8 @@ if ( !empty( $arr_rel ) )
|
|
78 |
$arr_relations = array_slice(explode("@END@", $arr_rel["relations"]), 0, -1);
|
79 |
|
80 |
|
81 |
-
$strLeftWrapper = "
|
82 |
-
$strRightWrapper = "
|
83 |
|
84 |
$tables = "";
|
85 |
$b_includes .= "
|
|
|
78 |
$arr_relations = array_slice(explode("@END@", $arr_rel["relations"]), 0, -1);
|
79 |
|
80 |
|
81 |
+
$strLeftWrapper = "`"; // #9875
|
82 |
+
$strRightWrapper = "`"; // #9875
|
83 |
|
84 |
$tables = "";
|
85 |
$b_includes .= "
|
php/webreport1.php
CHANGED
@@ -75,8 +75,8 @@ $arr_rel = $_SESSION['webreports']['table_relations'];
|
|
75 |
if ( !empty( $arr_rel ) )
|
76 |
$arr_relations = array_slice(explode("@END@", $arr_rel["relations"]), 0, -1);
|
77 |
|
78 |
-
$strLeftWrapper = "
|
79 |
-
$strRightWrapper = "
|
80 |
|
81 |
$tables = "";
|
82 |
$b_includes .= "
|
|
|
75 |
if ( !empty( $arr_rel ) )
|
76 |
$arr_relations = array_slice(explode("@END@", $arr_rel["relations"]), 0, -1);
|
77 |
|
78 |
+
$strLeftWrapper = "`"; // #9875
|
79 |
+
$strRightWrapper = "`"; // #9875
|
80 |
|
81 |
$tables = "";
|
82 |
$b_includes .= "
|