diff --git a/README.md b/README.md index 1a2196b16ed5319227bb3c927e9da45f63162c18..f18ba3d403d91f1487a5ce026157218244588209 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ --- +marp: true title: php emoji: 🚀 colorFrom: blue diff --git a/php/buttonhandler.php b/php/buttonhandler.php index f8f5e073942ea3fd1f357b0779e34971d99b01aa..25aba5e7791b6cd9ed17d0393fa5b8fe9bd79ce1 100644 --- a/php/buttonhandler.php +++ b/php/buttonhandler.php @@ -46,16 +46,6 @@ while( isset( $_REQUEST["masterkey".$i] ) ) { } -if($buttId=='Add_Comment') -{ - // for login page users table can be turned off - if( $table != GLOBAL_PAGES ) - { - require_once("include/". GetTableURL( $table ) ."_variables.php"); - $cipherer = new RunnerCipherer( $table ); - } - buttonHandler_Add_Comment($params); -} if($buttId=='Create_chart') { // for login page users table can be turned off @@ -180,62 +170,6 @@ if( $eventId == 'tmp_file_event' && "chat_history" == $table ) // create table and non table handlers -function buttonHandler_Add_Comment($params) -{ - global $strTableName; - $result = array(); - - // create new button object for get record data - $params["keys"] = (array)my_json_decode(postvalue('keys')); - $params["isManyKeys"] = postvalue('isManyKeys'); - $params["location"] = postvalue('location'); - - $button = new Button($params); - $ajax = $button; // for examle from HELP - $keys = $button->getKeys(); - - $masterData = false; - if ( isset($params['masterData']) && count($params['masterData']) > 0 ) - { - $masterData = $params['masterData']; - } - else if ( isset($params["masterTable"]) ) - { - $masterData = $button->getMasterData($params["masterTable"]); - } - - $contextParams = array(); - if ( $params["location"] == PAGE_VIEW ) - { - $contextParams["data"] = $button->getRecordData(); - $contextParams["masterData"] = $masterData; - } - else if ( $params["location"] == PAGE_EDIT ) - { - $contextParams["data"] = $button->getRecordData(); - $contextParams["newData"] = $params['fieldsData']; - $contextParams["masterData"] = $masterData; - } - else if ( $params["location"] == "grid" ) - { - $params["location"] = "list"; - $contextParams["data"] = $button->getRecordData(); - $contextParams["newData"] = $params['fieldsData']; - $contextParams["masterData"] = $masterData; - } - else - { - $contextParams["masterData"] = $masterData; - } - - RunnerContext::push( new RunnerContextItem( $params["location"], $contextParams)); - // Put your code here. -$result["txt"] = $params["txt"]." world!"; -; - RunnerContext::pop(); - echo my_json_encode($result); - $button->deleteTempFiles(); -} function buttonHandler_Create_chart($params) { global $strTableName; diff --git a/php/changepwd.php b/php/changepwd.php new file mode 100644 index 0000000000000000000000000000000000000000..b8592a372bfdecd776270889cb61acc9ea25861e --- /dev/null +++ b/php/changepwd.php @@ -0,0 +1,41 @@ +init(); + +$pageObject->process(); +?> \ No newline at end of file diff --git a/php/chat126_users1_search.php b/php/chat126_users1_search.php new file mode 100644 index 0000000000000000000000000000000000000000..a77e01e9d4c8a95871af40c77c453517d873cca5 --- /dev/null +++ b/php/chat126_users1_search.php @@ -0,0 +1,84 @@ +displaySearchControl(); + return; +} + +$pageObject->init(); +$pageObject->process(); +?> \ No newline at end of file diff --git a/php/chat_files_search.php b/php/chat_files_search.php index 8286ed62cf00df8e049ba3feee3ddf401e1540ad..b4717b346eb10e6940d2f6c5949de75938aed3d9 100644 --- a/php/chat_files_search.php +++ b/php/chat_files_search.php @@ -20,18 +20,7 @@ if( !isLogged() ) redirectToLogin(); } -require_once( "include/reportfunctions.php" ); -$cname = postvalue("cname"); -$rname = postvalue("rname"); -if( $rname || $cname ) { - $rpt_array = wrGetEntityArray( - $rname ? $rname : $cname, - $rname ? WR_REPORT : WR_CHART - ); - $accessGranted = @$rpt_array['status'] != "private" || @$rpt_array['owner'] != Security::getUserName(); -} else { - $accessGranted = CheckTablePermissions( $strTableName, "S" ); -} +$accessGranted = CheckTablePermissions($strTableName, "S"); if(!$accessGranted) { HeaderRedirect("menu"); diff --git a/php/chat_groups_search.php b/php/chat_groups_search.php index ca8da558815f62b356219c54837b3d4d5956044c..8b8d7c4269768caec8f49cd1f35ee89426d270df 100644 --- a/php/chat_groups_search.php +++ b/php/chat_groups_search.php @@ -20,18 +20,7 @@ if( !isLogged() ) redirectToLogin(); } -require_once( "include/reportfunctions.php" ); -$cname = postvalue("cname"); -$rname = postvalue("rname"); -if( $rname || $cname ) { - $rpt_array = wrGetEntityArray( - $rname ? $rname : $cname, - $rname ? WR_REPORT : WR_CHART - ); - $accessGranted = @$rpt_array['status'] != "private" || @$rpt_array['owner'] != Security::getUserName(); -} else { - $accessGranted = CheckTablePermissions( $strTableName, "S" ); -} +$accessGranted = CheckTablePermissions($strTableName, "S"); if(!$accessGranted) { HeaderRedirect("menu"); diff --git a/php/chat_history_search.php b/php/chat_history_search.php index 2f9d1ed895f77749d5aebfe8eba061ebf56dd866..be71202664bdd7491bbbd6e3c0d07c5ab24456fd 100644 --- a/php/chat_history_search.php +++ b/php/chat_history_search.php @@ -20,18 +20,7 @@ if( !isLogged() ) redirectToLogin(); } -require_once( "include/reportfunctions.php" ); -$cname = postvalue("cname"); -$rname = postvalue("rname"); -if( $rname || $cname ) { - $rpt_array = wrGetEntityArray( - $rname ? $rname : $cname, - $rname ? WR_REPORT : WR_CHART - ); - $accessGranted = @$rpt_array['status'] != "private" || @$rpt_array['owner'] != Security::getUserName(); -} else { - $accessGranted = CheckTablePermissions( $strTableName, "S" ); -} +$accessGranted = CheckTablePermissions($strTableName, "S"); if(!$accessGranted) { HeaderRedirect("menu"); diff --git a/php/chat_peopletype_search.php b/php/chat_peopletype_search.php index 742cad1f2048786b3971be766bfa79808ef3c1b9..a58b6aba6ca84a70c16b56db96801812e3053d37 100644 --- a/php/chat_peopletype_search.php +++ b/php/chat_peopletype_search.php @@ -20,18 +20,7 @@ if( !isLogged() ) redirectToLogin(); } -require_once( "include/reportfunctions.php" ); -$cname = postvalue("cname"); -$rname = postvalue("rname"); -if( $rname || $cname ) { - $rpt_array = wrGetEntityArray( - $rname ? $rname : $cname, - $rname ? WR_REPORT : WR_CHART - ); - $accessGranted = @$rpt_array['status'] != "private" || @$rpt_array['owner'] != Security::getUserName(); -} else { - $accessGranted = CheckTablePermissions( $strTableName, "S" ); -} +$accessGranted = CheckTablePermissions($strTableName, "S"); if(!$accessGranted) { HeaderRedirect("menu"); diff --git a/php/chat_settings_search.php b/php/chat_settings_search.php index b6232570e02819b841549cc97e0308884e2b215d..a151e35c0b773a89cb4771b7139e35cdd8b21d54 100644 --- a/php/chat_settings_search.php +++ b/php/chat_settings_search.php @@ -20,18 +20,7 @@ if( !isLogged() ) redirectToLogin(); } -require_once( "include/reportfunctions.php" ); -$cname = postvalue("cname"); -$rname = postvalue("rname"); -if( $rname || $cname ) { - $rpt_array = wrGetEntityArray( - $rname ? $rname : $cname, - $rname ? WR_REPORT : WR_CHART - ); - $accessGranted = @$rpt_array['status'] != "private" || @$rpt_array['owner'] != Security::getUserName(); -} else { - $accessGranted = CheckTablePermissions( $strTableName, "S" ); -} +$accessGranted = CheckTablePermissions($strTableName, "S"); if(!$accessGranted) { HeaderRedirect("menu"); diff --git a/php/chat_timezone_search.php b/php/chat_timezone_search.php index 09a9f78799c3d0d46fdcca149f3f19028410bb04..a9f3478b95b304780a74c93e02f97c694fa7cf37 100644 --- a/php/chat_timezone_search.php +++ b/php/chat_timezone_search.php @@ -20,18 +20,7 @@ if( !isLogged() ) redirectToLogin(); } -require_once( "include/reportfunctions.php" ); -$cname = postvalue("cname"); -$rname = postvalue("rname"); -if( $rname || $cname ) { - $rpt_array = wrGetEntityArray( - $rname ? $rname : $cname, - $rname ? WR_REPORT : WR_CHART - ); - $accessGranted = @$rpt_array['status'] != "private" || @$rpt_array['owner'] != Security::getUserName(); -} else { - $accessGranted = CheckTablePermissions( $strTableName, "S" ); -} +$accessGranted = CheckTablePermissions($strTableName, "S"); if(!$accessGranted) { HeaderRedirect("menu"); diff --git a/php/chat_users_search.php b/php/chat_users_search.php index f500c3adb536d83d8cf22784978e7dde2a7e6ac5..854ea614aea7f5b6f433ab93de3d03ad368abd31 100644 --- a/php/chat_users_search.php +++ b/php/chat_users_search.php @@ -20,18 +20,7 @@ if( !isLogged() ) redirectToLogin(); } -require_once( "include/reportfunctions.php" ); -$cname = postvalue("cname"); -$rname = postvalue("rname"); -if( $rname || $cname ) { - $rpt_array = wrGetEntityArray( - $rname ? $rname : $cname, - $rname ? WR_REPORT : WR_CHART - ); - $accessGranted = @$rpt_array['status'] != "private" || @$rpt_array['owner'] != Security::getUserName(); -} else { - $accessGranted = CheckTablePermissions( $strTableName, "S" ); -} +$accessGranted = CheckTablePermissions($strTableName, "S"); if(!$accessGranted) { HeaderRedirect("menu"); diff --git a/php/classes/changepwdpage.php b/php/classes/changepwdpage.php new file mode 100644 index 0000000000000000000000000000000000000000..65a5d10fb10e69d8b9f45fea90cdc6aeaa7483ce --- /dev/null +++ b/php/classes/changepwdpage.php @@ -0,0 +1,490 @@ +action && !$this->checkToken() ) + { + Security::saveRedirectURL(); + HeaderRedirect("login"); + return; + } + + $this->passwordField = Security::passwordField(); + $this->usernameField = Security::usernameField(); + + $this->auditObj = GetAuditObject(); + + if( $this->token ) + { + $this->changePwdFields = array("newpass", "confirm"); + // to send it back with a form (user may delete session before submit) + $this->setProxyValue("token", $this->token); + } + else + $this->changePwdFields = array("oldpass", "newpass", "confirm"); + + // fill global password settings + $this->pwdStrong = GetGlobalData("pwdStrong", false); + + if( $this->pwdStrong ) + { + $this->settingsMap["globalSettings"]["pwdStrong"] = true; + $this->settingsMap["globalSettings"]["pwdLen"] = GetGlobalData("pwdLen", 0); + $this->settingsMap["globalSettings"]["pwdUnique"] = GetGlobalData("pwdUnique", 0); + $this->settingsMap["globalSettings"]["pwdDigits"] = GetGlobalData("pwdDigits", 0); + $this->settingsMap["globalSettings"]["pwdUpperLower"] = GetGlobalData("pwdUpperLower", false); + } + + $this->headerForms = array( "top" ); + $this->footerForms = array( "footer" ); + $this->bodyForms = array( "above-grid", "grid" ); + } + + /** + * Set the connection property + */ + protected function setTableConnection() + { + global $cman; + $this->connection = $cman->getForLogin(); + } + + /** + * + */ + protected function assignCipherer() + { + $this->cipherer = RunnerCipherer::getForLogin(); + } + + /** + * + */ + protected function setReferer() + { + $referer = @$_SERVER["HTTP_REFERER"] ? @$_SERVER["HTTP_REFERER"] : ""; + + // ignore referer if from another site or if came from the same "change password" page + $home = strtoupper( projectUrl() ); + $changePwdPage = strtoupper( projectUrl() . GetTableLink("changepwd") ); + if( substr( strtoupper( $referer ), 0 , strlen( $home ) ) != $home || + substr( strtoupper( $referer ), 0 , strlen( $changePwdPage ) ) == $changePwdPage ) { + + $referer = ""; + } + + if( $referer ) { + $_SESSION["changepwd_referer"] = $referer; + } + if( !$_SESSION["changepwd_referer"] ) { + $_SESSION["changepwd_referer"] = projectUrl(); + } + + } + + /** + * @return DsCondition + */ + protected function getTokenCondition() { + return DataCondition::FieldEquals( "reset_token", $this->token ); + } + + /** + * @return DsCondition + */ + protected function getUsernameCondition() { + if( $this->token ) { + return $this->getTokenCondition(); + } + + $caseInsensitive = Security::caseInsensitiveUsername() ? dsCASE_INSENSITIVE : dsCASE_STRICT; + return DataCondition::FieldEquals( $this->usernameField, Security::getUserName(), 0, $caseInsensitive ); + } + + /** + * @param String newpass + * @return + */ + protected function getUpdateCommand( $newpass ) { + $dc = new DsCommand(); + + if( GetGlobalData( "bEncryptPasswords" ) ) { + if( !$this->cipherer->isFieldEncrypted( $this->passwordField ) ) + $newpass = Security::hashPassword( $newpass ); + } + + $values = array(); + $values[ $this->passwordField ] = $newpass; + if( $this->token ) { + $values[ "reset_token" ] = ""; + $values[ "reset_date" ] = NULL; + if( GetGlobalData( "userRequireActivation" ) ) { + $values[ GetGlobalData( "userActivationField" ) ] = "1"; + } + } + + $dc->values = $values; + $dc->filter = $this->getUsernameCondition(); + return $dc; + } + + + /** + * @return Array + */ + protected function getControlValues() + { + $filename_values = array(); + $blobfields = array(); + $values = array(); + foreach( $this->changePwdFields as $fName ) + { + $fControl = $this->getControl( $fName, $this->id ); + $fControl->readWebValue( $values, $blobfields, NULL, NULL, $filename_values ); + } + + return $values; + } + + + /** + * @return Boolean + */ + protected function changePassword() { + // CSRF protection + if( !isPostRequest() ) + return; + + global $globalEvents; + + $values = $this->getControlValues(); + + $dc = new DsCommand(); + $dc->filter = $this->getUsernameCondition(); + $qResult = $this->dataSource->getList( $dc ); + + $data = $qResult->fetchAssoc(); + $row = $this->cipherer->DecryptFetchedArray( $data ); + + $dbOldPass = ""; + if( !$row ) { + $this->message = "Invalid password"; + return false; + } + + $dbOldPass = $row[ $this->passwordField ]; + $username = $row[ $this->usernameField ]; + + if( !$this->token && $this->pSet->hasOldPassField() ) { + if( !Security::verifyPassword( $values["oldpass"], $dbOldPass ) ) { + $this->message = "Invalid password"; + return false; + } + } + + $oldPass = $dbOldPass; + + $newPass = $values["newpass"]; + if( $this->pwdStrong && !checkpassword( $newPass ) ) { + $this->message = $this->getPwdStrongFailedMessage(); + $this->jsSettings["tableSettings"][ $this->tName ]["msg_passwordError"] = $this->message; + return false; + } + + $retval = true; + if( $globalEvents->exists("BeforeChangePassword") ) + $retval = $globalEvents->BeforeChangePassword( $oldPass, $newPass, $this ); + + $values["newpass"] = $newPass; + if( $retval ) { + $dc = $this->getUpdateCommand( $values["newpass"] ); + $this->dataSource->updateSingle( $dc, false ); + + if( $this->auditObj ) + $this->auditObj->LogChPassword( $username ); + + if( $globalEvents->exists("AfterChangePassword") ) + $globalEvents->AfterChangePassword( $oldPass, $values["newpass"], $this ); + } + + return $retval; + } + + /** + * @return String + */ + protected function getPwdStrongFailedMessage() + { + $msg = ""; + $pwdLen = GetGlobalData("pwdLen", 0); + if($pwdLen) + { + $fmt = "Password must be at least %% characters length."; + $fmt = str_replace("%%", "".$pwdLen, $fmt); + $msg.= "
".$fmt; + } + $pwdUnique = GetGlobalData("pwdUnique", 0); + if($pwdUnique) + { + $fmt = "Password must contain %% unique characters."; + $fmt = str_replace("%%", "".$pwdUnique, $fmt); + $msg.= "
".$fmt; + } + $pwdDigits = GetGlobalData("pwdDigits", 0); + if($pwdDigits) + { + $fmt = "Password must contain %% digits or symbols."; + $fmt = str_replace("%%", "".$pwdDigits, $fmt); + $msg.= "
".$fmt; + } + if(GetGlobalData("pwdUpperLower", false)) + { + $fmt = "Password must contain letters in upper and lower case."; + $msg.= "
".$fmt; + } + + if($msg) + $msg = substr($msg, 4); + + return $msg; + } + + /** + * + */ + public function process() + { + global $globalEvents; + + $this->setReferer(); + + // Before Process event + if( $globalEvents->exists("BeforeProcessChangePwd") ) + $globalEvents->BeforeProcessChangePwd( $this ); + + if( $this->action == "Change" ) { + $this->changedSuccess = $this->changePassword(); + + if( !$this->changedSuccess && $this->mode == CHANGEPASS_POPUP ) { + $returnJSON = array(); + $returnJSON['success'] = false; + + if( strlen( $this->message ) ) + $returnJSON['message'] = $this->message; + + if( !$this->isCaptchaOk ) + $returnJSON['wrongCaptchaFieldName'] = $this->getCaptchaFieldName(); + + echo printJSON( $returnJSON ); + exit(); + } + } + + if( !$this->changedSuccess ) { + $this->prepareEditControls(); + } else { + $this->pageName = $this->pSet->getDefaultPage( $this->successPageType() ); + $this->pSet = new ProjectSettings( $this->tName, $this->successPageType(), $this->pageName, $this->pageTable ); + + $this->pageData["buttons"] = array_merge( $this->pageData["buttons"], $this->pSet->buttons() ); + foreach( $this->pSet->buttons() as $b ) { + $this->AddJSFile( "include/button_".$b.".js" ); + } + } + + $this->addCommonJs(); + $this->fillSetCntrlMaps(); + $this->addButtonHandlers(); + $this->doCommonAssignments(); + + $this->showPage(); + } + + /** + * @param Boolean logged + */ + protected function reportChangeStatus( $changed ) + { + $returnJSON = array(); + + $returnJSON["message"] = $this->message; + $returnJSON["success"] = true; + + echo printJSON( $returnJSON ); + exit(); + } + + /** + * + */ + protected function prepareEditControls() + { + foreach($this->changePwdFields as $fName) + { + $parameters = array(); + $parameters["id"] = $this->id; + $parameters["mode"] = "add"; + $parameters["field"] = $fName; + $parameters["format"] = "Password"; + $parameters["pageObj"] = $this; + $parameters["suggest"] = true; + $parameters["validate"] = array('basicValidate' => array('IsRequired')); + + $parameters["extraParams"] = array(); + $parameters["extraParams"]["getConrirmFieldCtrl"] = true; + + $controls = array('controls' => array()); + $controls["controls"]['id'] = $this->id; + $controls["controls"]['mode'] = "add"; + $controls["controls"]['ctrlInd'] = 0; + $controls["controls"]['fieldName'] = $fName; + $controls["controls"]['suggest'] = $parameters["suggest"]; + + $this->xt->assign_function( $fName."_editcontrol", "xt_buildeditcontrol", $parameters ); + $this->xt->assign($fName."_label", true); + + $this->xt->assign("labelfor_" . goodFieldName($fName), "value_".$fName."_".$this->id); + + if( $this->is508 ) + $this->xt->assign_section($fName."_label", ""); + + $this->xt->assign($fName."_block", true); + + $this->fillControlsMap($controls); + } + } + + /** + * + */ + protected function assignBody() + { + $this->body["begin"] .= GetBaseScriptsForPage(false); + $this->body["end"] = XTempl::create_method_assignment( "assignBodyEnd", $this ); + + $this->xt->assignbyref("body", $this->body); + } + + /** + * + */ + protected function doCommonAssignments() + { + $this->xt->assign("submit_attrs", "id=\"saveButton".$this->id."\""); + + if( $this->mode == CHANGEPASS_POPUP ) { + $this->hideItemType("changepwd_back"); + if( $this->changedSuccess ) + $this->xt->assign("backlink_attrs", "id=\"backButton".$this->id."\""); + } else { + $this->xt->assign("backlink_attrs", "href=\"". runner_htmlspecialchars( $_SESSION["changepwd_referer"] )."\""); + } + + $this->xt->assign("message_block", true); + if( $this->message ) { + $this->xt->assign("message_class", "alert-danger" ); + $this->xt->assign("message", $this->message); + } else { + $this->hideElement("message"); + } + + $this->assignBody(); + } + + /** + * + */ + protected function showPage() { + global $globalEvents; + + if( $this->changedSuccess ) + $this->switchToSuccessPage(); + + $templatefile = $this->templatefile; + + if( $globalEvents->exists("BeforeShowChangePwd") ) + $globalEvents->BeforeShowChangePwd( $this->xt, $templatefile, $this ); + + if( $this->mode == CHANGEPASS_POPUP ) + { + $this->xt->assign("footer", false); + $this->xt->assign("header", false); + $this->xt->assign("body", $this->body); + + $this->displayAJAX( $templatefile, $this->id + 1 ); + exit(); + } + + $this->display( $templatefile ); + } + + /** + * @return String + */ + public static function readActionFromRequest() + { + if( @$_POST["btnSubmit"] ) + return @$_POST["btnSubmit"]; + + return ""; + } + + /** + * @return Boolean + */ + protected function checkToken() + { + if( !$this->token ) + return true; + + $dc = new DsCommand(); + $dc->filter = $this->getTokenCondition(); + $qResult = $this->dataSource->getList( $dc ); + + $data = $this->cipherer->DecryptFetchedArray( $qResult->fetchAssoc() ); + if( $data ) + return secondsPassedFrom( $data["reset_date"] ) < 86400; + + return false; + } + + /** + * @return Number + */ + public static function readModeFromRequest() + { + if( postvalue("mode") == "popup" ) + return CHANGEPASS_POPUP; + + return CHANGEPASS_SIMPLE; + } + + function element2Item( $name ) { + if( $name == "message" ) { + return array( "changepwd_message" ); + } + return parent::element2Item( $name ); + } +} +?> \ No newline at end of file diff --git a/php/classes/charts.php b/php/classes/charts.php index 2a868b687f1627bfe05bb0f1f74d470727749f1b..a32321a7d7aea1e7ea942507c6217de8ca1ef3a0 100644 --- a/php/classes/charts.php +++ b/php/classes/charts.php @@ -378,73 +378,21 @@ class Chart if( !$this->webchart ) return true; - if("public.kbarticles" == $this->chrt_array['tables'][0]) + if("chat_history" == $this->chrt_array['tables'][0]) return true; - if("public.kbcategories" == $this->chrt_array['tables'][0]) + if("chat_users" == $this->chrt_array['tables'][0]) return true; - if("public.kbcomments" == $this->chrt_array['tables'][0]) + if("chat_settings" == $this->chrt_array['tables'][0]) return true; - if("public.kbusers" == $this->chrt_array['tables'][0]) + if("chat_files" == $this->chrt_array['tables'][0]) return true; - if("public.kbarticles" == $this->chrt_array['tables'][0]) + if("chat_groups" == $this->chrt_array['tables'][0]) return true; - if("public.faicons" == $this->chrt_array['tables'][0]) + if("chat_peopletype" == $this->chrt_array['tables'][0]) return true; - if("public.kbcomments" == $this->chrt_array['tables'][0]) + if("chat_timezone" == $this->chrt_array['tables'][0]) return true; - if("public.fasis_chat_history" == $this->chrt_array['tables'][0]) - return true; - if("public.products" == $this->chrt_array['tables'][0]) - return true; - if("public.items" == $this->chrt_array['tables'][0]) - return true; - if("public.appointments" == $this->chrt_array['tables'][0]) - return true; - if("public.chat_history" == $this->chrt_array['tables'][0]) - return true; - if("public.chat_users" == $this->chrt_array['tables'][0]) - return true; - if("public.chat_settings" == $this->chrt_array['tables'][0]) - return true; - if("public.chat_files" == $this->chrt_array['tables'][0]) - return true; - if("public.chat_groups" == $this->chrt_array['tables'][0]) - return true; - if("public.chat_peopletype" == $this->chrt_array['tables'][0]) - return true; - if("public.chat_timezone" == $this->chrt_array['tables'][0]) - return true; - if("public.chat_files" == $this->chrt_array['tables'][0]) - return true; - if("public.chat_groups" == $this->chrt_array['tables'][0]) - return true; - if("public.chat_history" == $this->chrt_array['tables'][0]) - return true; - if("public.chat_peopletype" == $this->chrt_array['tables'][0]) - return true; - if("public.chat_settings" == $this->chrt_array['tables'][0]) - return true; - if("public.identity" == $this->chrt_array['tables'][0]) - return true; - if("public.dataset_info" == $this->chrt_array['tables'][0]) - return true; - if("public.KnowledgeBase1ugrights" == $this->chrt_array['tables'][0]) - return true; - if("public.KnowledgeBase1ugmembers" == $this->chrt_array['tables'][0]) - return true; - if("public.kbusers" == $this->chrt_array['tables'][0]) - return true; - if("public.history" == $this->chrt_array['tables'][0]) - return true; - if("public.zendesk__dataszz" == $this->chrt_array['tables'][0]) - return true; - if("public.view_zendesk" == $this->chrt_array['tables'][0]) - return true; - if("public.prompts" == $this->chrt_array['tables'][0]) - return true; - if("public.view_faisis_chat_history" == $this->chrt_array['tables'][0]) - return true; - if("public.server_setting" == $this->chrt_array['tables'][0]) + if("chat126_users1" == $this->chrt_array['tables'][0]) return true; return false; } diff --git a/php/classes/cipherer.php b/php/classes/cipherer.php index d15013f33735d7053a7417011b94c53335781171..3805b7ccf36490e8742e24e83bb353aba0ed7eeb 100644 --- a/php/classes/cipherer.php +++ b/php/classes/cipherer.php @@ -333,7 +333,7 @@ class RunnerCipherer public static function getForLogin( $loginSet = null ) { if( !!Security::loginTable() ) { - return new RunnerCipherer( "public.kbusers", $loginSet); + return new RunnerCipherer( "chat126_users1", $loginSet); } return new RunnerCipherer( GLOBAL_PAGES, null); } diff --git a/php/classes/db.php b/php/classes/db.php index dcdb308b8a1b8b8694aaee9c5d0687b258bb21d7..7d7d06bfa031b0bf6f2703714eb64adf1d533912 100644 --- a/php/classes/db.php +++ b/php/classes/db.php @@ -352,40 +352,16 @@ class DB if( isset($dalTables[ $conn->connId ]) ) return; $dalTables[ $conn->connId ] = array(); - if( "KnowledgeBase2_at_localhost" == $conn->connId ) + if( "chats_at_localhost" == $conn->connId ) { - $dalTables[$conn->connId][] = array("name" => "appointments", "varname" => "KnowledgeBase2_at_localhost_public_appointments", "altvarname" => "appointments", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $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"); - $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"); - $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"); - $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"); - $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"); - $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"); - $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"); - $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"); - $dalTables[$conn->connId][] = array("name" => "faicons", "varname" => "KnowledgeBase2_at_localhost_public_faicons", "altvarname" => "faicons", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $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"); - $dalTables[$conn->connId][] = array("name" => "history", "varname" => "KnowledgeBase2_at_localhost_public_history", "altvarname" => "history", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $dalTables[$conn->connId][] = array("name" => "identity", "varname" => "KnowledgeBase2_at_localhost_public_identity", "altvarname" => "identity", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $dalTables[$conn->connId][] = array("name" => "items", "varname" => "KnowledgeBase2_at_localhost_public_items", "altvarname" => "items", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $dalTables[$conn->connId][] = array("name" => "kbarticles", "varname" => "KnowledgeBase2_at_localhost_public_kbarticles", "altvarname" => "kbarticles", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $dalTables[$conn->connId][] = array("name" => "kbcategories", "varname" => "KnowledgeBase2_at_localhost_public_kbcategories", "altvarname" => "kbcategories", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $dalTables[$conn->connId][] = array("name" => "kbcomments", "varname" => "KnowledgeBase2_at_localhost_public_kbcomments", "altvarname" => "kbcomments", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $dalTables[$conn->connId][] = array("name" => "kbusers", "varname" => "KnowledgeBase2_at_localhost_public_kbusers", "altvarname" => "kbusers", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $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"); - $dalTables[$conn->connId][] = array("name" => "KnowledgeBase1uggroups", "varname" => "KnowledgeBase2_at_localhost_public_KnowledgeBase1uggroups", "altvarname" => "KnowledgeBase1uggroups", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $dalTables[$conn->connId][] = array("name" => "KnowledgeBase1ugmembers", "varname" => "KnowledgeBase2_at_localhost_public_KnowledgeBase1ugmembers", "altvarname" => "KnowledgeBase1ugmembers", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $dalTables[$conn->connId][] = array("name" => "KnowledgeBase1ugrights", "varname" => "KnowledgeBase2_at_localhost_public_KnowledgeBase1ugrights", "altvarname" => "KnowledgeBase1ugrights", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $dalTables[$conn->connId][] = array("name" => "noti", "varname" => "KnowledgeBase2_at_localhost_public_noti", "altvarname" => "noti", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $dalTables[$conn->connId][] = array("name" => "products", "varname" => "KnowledgeBase2_at_localhost_public_products", "altvarname" => "products", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $dalTables[$conn->connId][] = array("name" => "prompts", "varname" => "KnowledgeBase2_at_localhost_public_prompts", "altvarname" => "prompts", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $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"); - $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"); - $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"); - $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"); - $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"); - $dalTables[$conn->connId][] = array("name" => "webreports", "varname" => "KnowledgeBase2_at_localhost_public_webreports", "altvarname" => "webreports", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $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"); + $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"); + $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"); + $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"); + $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"); + $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"); + $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"); + $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"); + $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"); } } diff --git a/php/classes/listpage.php b/php/classes/listpage.php index 0edc0fbbe4ab8c32f74fa40aca1e3768989b36c9..9e331c363d3ae100d6f8adc86740ae58b3d219d4 100644 --- a/php/classes/listpage.php +++ b/php/classes/listpage.php @@ -744,7 +744,7 @@ class ListPage extends RunnerPage // TODO - delete plugin user $dc = new DsCommand(); $dc->filter = DataCondition::FieldEquals( - "UserName", + "", $user, 0, Security::caseInsensitiveUsername() ? dsCASE_INSENSITIVE : dsCASE_STRICT diff --git a/php/classes/memberspage.php b/php/classes/memberspage.php index 04b2d8ac91427989ce3a6990a8b4eae087c29546..0d67b1179834ac2a3b5ece4d7420bbd95f6e4612 100644 --- a/php/classes/memberspage.php +++ b/php/classes/memberspage.php @@ -257,16 +257,16 @@ class MembersPage extends ListPage_Simple $dc = new DsCommand(); $dc->order = array(); - $dc->order[] = array( "column" => "UserName" ); - $dc->order[] = array( "column" => "GroupID" ); + $dc->order[] = array( "column" => "" ); + $dc->order[] = array( "column" => "" ); // ugmembers username field may contains username or security plugin user id value $qResult = $dataSource->getList( $dc ); while( $tdata = $qResult->fetchAssoc() ) { - $provider = $tdata["Provider"]; + $provider = $tdata[""]; $this->members[] = array( - "userId" => $tdata["UserName"], - "groupId" => $tdata["GroupID"], + "userId" => $tdata[""], + "groupId" => $tdata[""], "provider" => $provider ); } @@ -280,9 +280,9 @@ class MembersPage extends ListPage_Simple $this->groups[] = array(-1, "<"."Admin".">"); $this->groupFullChecked[] = true; - $groupIdField = "GroupID"; - $groupLabelField = "Label"; - $groupProviderField = "Provider"; + $groupIdField = ""; + $groupLabelField = ""; + $groupProviderField = ""; $dataSource = Security::getUgGroupsDatasource(); $dc = new DsCommand(); @@ -418,22 +418,22 @@ class MembersPage extends ListPage_Simple if( $state == 1 ) { $dcInsert = new DsCommand(); // update - $dcInsert->values = array( "UserName" => $user, "GroupID" => $group ); + $dcInsert->values = array( "" => $user, "" => $group ); if( $provider != $dbProvider["code"] ) { - $dcInsert->values[ "Provider" ] = $provider; + $dcInsert->values[ "" ] = $provider; } $dataSource->insertSingle( $dcInsert ); } else { // delete $dcDelete = new DsCommand(); $conditions = array( - DataCondition::FieldEquals( "GroupID", $group ), - DataCondition::FieldEquals( "UserName", $user, 0, Security::caseInsensitiveUsername() ? dsCASE_INSENSITIVE : dsCASE_STRICT ) + DataCondition::FieldEquals( "", $group ), + DataCondition::FieldEquals( "", $user, 0, Security::caseInsensitiveUsername() ? dsCASE_INSENSITIVE : dsCASE_STRICT ) ); if( $provider != $dbProvider["code"] ) { - $conditions[] = DataCondition::FieldEquals( "Provider", $provider ); + $conditions[] = DataCondition::FieldEquals( "", $provider ); } else if( storageGet( "groups_provider_field" ) ) { - $conditions[] = DataCondition::FieldIs( "Provider", dsopEMPTY, "" ); + $conditions[] = DataCondition::FieldIs( "", dsopEMPTY, "" ); } $dcDelete->filter = DataCondition::_And( $conditions ); diff --git a/php/classes/memberspage_ad.php b/php/classes/memberspage_ad.php index b075cd1263780c31987bd2a551851a0358c55efd..41d68879fbc077b4fc0fae762f3585402e21dc9f 100644 --- a/php/classes/memberspage_ad.php +++ b/php/classes/memberspage_ad.php @@ -41,7 +41,7 @@ class MembersPage_AD extends ListPage_Lookup $dataSource = Security::getUgGroupsDatasource(); if( !Security::ADonlyLogin() || storageGet( "groups_provider_field" ) ) { - $dc->filter = DataCondition::FieldEquals( "Provider", $this->providerCode ); + $dc->filter = DataCondition::FieldEquals( "", $this->providerCode ); } $qResult = $dataSource->getList( $dc ); @@ -49,7 +49,7 @@ class MembersPage_AD extends ListPage_Lookup $members = array(); while( $tdata = $qResult->fetchAssoc() ) { - $members[] = $tdata[ "Label" ]; + $members[] = $tdata[ "" ]; } return $members; diff --git a/php/classes/projectsettings.php b/php/classes/projectsettings.php index 24799d55bfd0a9da7262441860d13228974893f2..473cb72daa1bffdcf27252daf7e936bc4c04f745 100644 --- a/php/classes/projectsettings.php +++ b/php/classes/projectsettings.php @@ -1027,7 +1027,7 @@ class ProjectSettings { $connId = $this->getTableData( ".connId" ); if( $connId == "" ) { - return "KnowledgeBase2_at_localhost"; + return "chats_at_localhost"; } return $connId; } @@ -3002,7 +3002,7 @@ class ProjectSettings public static function getForLogin() { return !!Security::dbProvider() - ? new ProjectSettings("public.kbusers", PAGE_LIST) + ? new ProjectSettings("chat126_users1", PAGE_LIST) : null; } @@ -3578,74 +3578,22 @@ function fillProjectEntites() global $projectEntities, $projectEntitiesReverse, $tablesByGoodName, $tablesByUpperCase, $tablesByUpperGoodname; if( count( $projectEntities ) ) return; - $projectEntities[ "kbarticles" ] = array( "url" => "kbarticles", "type" => 1 ); - $projectEntitiesReverse[ "kbarticles" ] = "kbarticles"; - $projectEntities[ "kbcategories" ] = array( "url" => "kbcategories", "type" => 1 ); - $projectEntitiesReverse[ "kbcategories" ] = "kbcategories"; - $projectEntities[ "kbcomments" ] = array( "url" => "kbcomments", "type" => 1 ); - $projectEntitiesReverse[ "kbcomments" ] = "kbcomments"; - $projectEntities[ "public.kbusers" ] = array( "url" => "public_kbusers", "type" => 0 ); - $projectEntitiesReverse[ "public_kbusers" ] = "public.kbusers"; - $projectEntities[ "main" ] = array( "url" => "main", "type" => 1 ); - $projectEntitiesReverse[ "main" ] = "main"; - $projectEntities[ "faicons" ] = array( "url" => "faicons", "type" => 1 ); - $projectEntitiesReverse[ "faicons" ] = "faicons"; - $projectEntities[ "admin_comments" ] = array( "url" => "admin_comments", "type" => 1 ); - $projectEntitiesReverse[ "admin_comments" ] = "admin_comments"; - $projectEntities[ "public.fasis_chat_history" ] = array( "url" => "fasis_chat_history", "type" => 0 ); - $projectEntitiesReverse[ "fasis_chat_history" ] = "public.fasis_chat_history"; - $projectEntities[ "public.products" ] = array( "url" => "products", "type" => 0 ); - $projectEntitiesReverse[ "products" ] = "public.products"; - $projectEntities[ "public.items" ] = array( "url" => "items", "type" => 0 ); - $projectEntitiesReverse[ "items" ] = "public.items"; - $projectEntities[ "public.appointments" ] = array( "url" => "appointments", "type" => 0 ); - $projectEntitiesReverse[ "appointments" ] = "public.appointments"; - $projectEntities[ "chat_history" ] = array( "url" => "chat_history", "type" => 1 ); + $projectEntities[ "chat_history" ] = array( "url" => "chat_history", "type" => 0 ); $projectEntitiesReverse[ "chat_history" ] = "chat_history"; - $projectEntities[ "chat_users" ] = array( "url" => "chat_users", "type" => 1 ); + $projectEntities[ "chat_users" ] = array( "url" => "chat_users", "type" => 0 ); $projectEntitiesReverse[ "chat_users" ] = "chat_users"; - $projectEntities[ "chat_settings" ] = array( "url" => "chat_settings", "type" => 1 ); + $projectEntities[ "chat_settings" ] = array( "url" => "chat_settings", "type" => 0 ); $projectEntitiesReverse[ "chat_settings" ] = "chat_settings"; - $projectEntities[ "chat_files" ] = array( "url" => "chat_files", "type" => 1 ); + $projectEntities[ "chat_files" ] = array( "url" => "chat_files", "type" => 0 ); $projectEntitiesReverse[ "chat_files" ] = "chat_files"; - $projectEntities[ "chat_groups" ] = array( "url" => "chat_groups", "type" => 1 ); + $projectEntities[ "chat_groups" ] = array( "url" => "chat_groups", "type" => 0 ); $projectEntitiesReverse[ "chat_groups" ] = "chat_groups"; - $projectEntities[ "chat_peopletype" ] = array( "url" => "chat_peopletype", "type" => 1 ); + $projectEntities[ "chat_peopletype" ] = array( "url" => "chat_peopletype", "type" => 0 ); $projectEntitiesReverse[ "chat_peopletype" ] = "chat_peopletype"; - $projectEntities[ "chat_timezone" ] = array( "url" => "chat_timezone", "type" => 1 ); + $projectEntities[ "chat_timezone" ] = array( "url" => "chat_timezone", "type" => 0 ); $projectEntitiesReverse[ "chat_timezone" ] = "chat_timezone"; - $projectEntities[ "public.chat_files" ] = array( "url" => "chat_files1", "type" => 0 ); - $projectEntitiesReverse[ "chat_files1" ] = "public.chat_files"; - $projectEntities[ "public.chat_groups" ] = array( "url" => "chat_groups1", "type" => 0 ); - $projectEntitiesReverse[ "chat_groups1" ] = "public.chat_groups"; - $projectEntities[ "public.chat_history" ] = array( "url" => "chat_history1", "type" => 0 ); - $projectEntitiesReverse[ "chat_history1" ] = "public.chat_history"; - $projectEntities[ "public.chat_peopletype" ] = array( "url" => "chat_peopletype1", "type" => 0 ); - $projectEntitiesReverse[ "chat_peopletype1" ] = "public.chat_peopletype"; - $projectEntities[ "public.chat_settings" ] = array( "url" => "chat_settings1", "type" => 0 ); - $projectEntitiesReverse[ "chat_settings1" ] = "public.chat_settings"; - $projectEntities[ "public.identity" ] = array( "url" => "identity", "type" => 0 ); - $projectEntitiesReverse[ "identity" ] = "public.identity"; - $projectEntities[ "public.dataset_info" ] = array( "url" => "dataset_info", "type" => 0 ); - $projectEntitiesReverse[ "dataset_info" ] = "public.dataset_info"; - $projectEntities[ "admin_rights" ] = array( "url" => "admin_rights", "type" => 1 ); - $projectEntitiesReverse[ "admin_rights" ] = "admin_rights"; - $projectEntities[ "admin_members" ] = array( "url" => "admin_members", "type" => 1 ); - $projectEntitiesReverse[ "admin_members" ] = "admin_members"; - $projectEntities[ "admin_users" ] = array( "url" => "admin_users", "type" => 1 ); - $projectEntitiesReverse[ "admin_users" ] = "admin_users"; - $projectEntities[ "public.history" ] = array( "url" => "history", "type" => 0 ); - $projectEntitiesReverse[ "history" ] = "public.history"; - $projectEntities[ "public.zendesk__dataszz" ] = array( "url" => "zendesk__dataszz", "type" => 0 ); - $projectEntitiesReverse[ "zendesk__dataszz" ] = "public.zendesk__dataszz"; - $projectEntities[ "public.view_zendesk" ] = array( "url" => "view_zendesk", "type" => 0 ); - $projectEntitiesReverse[ "view_zendesk" ] = "public.view_zendesk"; - $projectEntities[ "public.prompts" ] = array( "url" => "prompts", "type" => 0 ); - $projectEntitiesReverse[ "prompts" ] = "public.prompts"; - $projectEntities[ "public.view_faisis_chat_history" ] = array( "url" => "view_faisis_chat_history", "type" => 0 ); - $projectEntitiesReverse[ "view_faisis_chat_history" ] = "public.view_faisis_chat_history"; - $projectEntities[ "public.server_setting" ] = array( "url" => "server_setting", "type" => 0 ); - $projectEntitiesReverse[ "server_setting" ] = "public.server_setting"; + $projectEntities[ "chat126_users1" ] = array( "url" => "chat126_users1", "type" => 0 ); + $projectEntitiesReverse[ "chat126_users1" ] = "chat126_users1"; } function findTable( $table ) { diff --git a/php/classes/rightspage.php b/php/classes/rightspage.php index 6b4ff7d7cee023d91dd9c0a3a28f43178ebeafce..c1f517adfbf1ec4c6ffcfe541f030b980dfdbe8d 100644 --- a/php/classes/rightspage.php +++ b/php/classes/rightspage.php @@ -132,9 +132,9 @@ class RightsPage extends ListPage $this->groups[-2] = array( "label" => "<"."Default".">" ); $this->groups[-3] = array( "label" => "<"."Guest".">" ); - $groupIdField = "GroupID"; - $groupLabelField = "Label"; - $groupProviderField = "Provider"; + $groupIdField = ""; + $groupLabelField = ""; + $groupProviderField = ""; $dataSource = Security::getUgGroupsDatasource(); $dc = new DsCommand(); @@ -193,12 +193,12 @@ class RightsPage extends ListPage function getRights() { // It's expected that $this->tName is equal to 'admin_right' so the page's db connection is used #9875 - $sql = "select ". $this->connection->addFieldWrappers( "GroupID" ) - .", ". $this->connection->addFieldWrappers( "TableName" ) - .", ". $this->connection->addFieldWrappers( "AccessMask" ) - .", ". $this->connection->addFieldWrappers( "Page" ) - ." from ". $this->connection->addTableWrappers( "public.KnowledgeBase1ugrights" ) - ." order by ". $this->connection->addFieldWrappers( "GroupID" ); + $sql = "select ". $this->connection->addFieldWrappers( "" ) + .", ". $this->connection->addFieldWrappers( "" ) + .", ". $this->connection->addFieldWrappers( "" ) + .", ". $this->connection->addFieldWrappers( "" ) + ." from ". $this->connection->addTableWrappers( "ugrights" ) + ." order by ". $this->connection->addFieldWrappers( "" ); $qResult = $this->connection->query( $sql ); while( $tdata = $qResult->fetchNumeric() ) @@ -692,11 +692,11 @@ class RightsPage extends ListPage function updateTablePermissions( $table, $group, $tableRights ) { $mask = $tableRights["permissions"]; - $rightWTableName = $this->connection->addTableWrappers( "public.KnowledgeBase1ugrights" ); - $accessMaskWFieldName = $this->connection->addFieldWrappers( "AccessMask" ); - $groupisWFieldName = $this->connection->addFieldWrappers( "GroupID" ); - $pageWFieldName = $this->connection->addFieldWrappers( "Page" ); - $tableNameWFieldName = $this->connection->addFieldWrappers( "TableName" ); + $rightWTableName = $this->connection->addTableWrappers( "ugrights" ); + $accessMaskWFieldName = $this->connection->addFieldWrappers( "" ); + $groupisWFieldName = $this->connection->addFieldWrappers( "" ); + $pageWFieldName = $this->connection->addFieldWrappers( "" ); + $tableNameWFieldName = $this->connection->addFieldWrappers( "" ); $groupWhere = $groupisWFieldName."=". $group ." and ". $tableNameWFieldName ."=". $this->connection->prepareString( $table ); diff --git a/php/classes/security.php b/php/classes/security.php index ea1cdafed05891c6efa02114f10df8d62ef5c353..d4f66780665c0236d4485a8ddda8df72e19b3b88 100644 --- a/php/classes/security.php +++ b/php/classes/security.php @@ -376,8 +376,8 @@ class Security global $cman; $grConnection = $cman->getForUserGroups(); - $sql = "select ". $grConnection->addFieldWrappers( "Label" ) - ." from ". $grConnection->addTableWrappers( "public.KnowledgeBase1uggroups" ) . " WHERE " . $grConnection->addFieldWrappers( "GroupID" ) + $sql = "select ". $grConnection->addFieldWrappers( "" ) + ." from ". $grConnection->addTableWrappers( "uggroups" ) . " WHERE " . $grConnection->addFieldWrappers( "" ) ." in ( " . implode( ",", array_keys( $groupIds ) ) . ")"; $qResult = $grConnection->query( $sql ); @@ -1024,71 +1024,10 @@ class Security public static function _staticRestrictedPages( $table ) { $group = Security::getUserGroup(); - if( $group == "" ) { - if( $table == "admin_comments" ) - { - $ret = array(); - $ret[ "list" ] = true; - return $ret; - } - if( $table == "faicons" ) - { - $ret = array(); - $ret[ "list" ] = true; - $ret[ "search" ] = true; - $ret[ "view" ] = true; - return $ret; - } - if( $table == "kbcomments" ) - { - $ret = array(); - $ret[ "list_admin" ] = true; - return $ret; - } - return array(); - } if( $group == "admin" ) { return array(); } // default permissions - if( $table == "admin_comments" ) - { - $ret = array(); - $ret[ "list" ] = true; - return $ret; - } - if( $table == "faicons" ) - { - $ret = array(); - $ret[ "add" ] = true; - $ret[ "edit" ] = true; - $ret[ "export" ] = true; - $ret[ "import" ] = true; - $ret[ "list" ] = true; - $ret[ "print" ] = true; - $ret[ "search" ] = true; - $ret[ "view" ] = true; - return $ret; - } - if( $table == "kbcomments" ) - { - $ret = array(); - $ret[ "list_admin" ] = true; - return $ret; - } - if( $table == "public.fasis_chat_history" ) - { - $ret = array(); - $ret[ "add" ] = true; - $ret[ "edit" ] = true; - $ret[ "export" ] = true; - $ret[ "import" ] = true; - $ret[ "list" ] = true; - $ret[ "print" ] = true; - $ret[ "search" ] = true; - $ret[ "view" ] = true; - return $ret; - } return array(); } @@ -1246,7 +1185,7 @@ class Security return null; } global $cman; - return getDbTableDataSource( "public.KnowledgeBase1ugmembers", $cman->getUserGroupsConnId() ); + return getDbTableDataSource( "ugmembers", $cman->getUserGroupsConnId() ); } /** @@ -1258,7 +1197,7 @@ class Security return null; } global $cman; - return getDbTableDataSource( "public.KnowledgeBase1uggroups", $cman->getUserGroupsConnId() ); + return getDbTableDataSource( "uggroups", $cman->getUserGroupsConnId() ); } /** @@ -1270,7 +1209,7 @@ class Security return null; } global $cman; - return getDbTableDataSource( "public.KnowledgeBase1ugrights", $cman->getUserGroupsConnId() ); + return getDbTableDataSource( "ugrights", $cman->getUserGroupsConnId() ); } @@ -1536,11 +1475,7 @@ class Security } if( $securityType == stAD && !$provider["useDbGroups"] ) { $userId = Security::getUserName(); - storageSet( "OwnerID", $userId ); - storageSet( "_kbcomments_OwnerID", $userId ); } else { - storageSet( "OwnerID", $data["username"] ); - storageSet( "_kbcomments_OwnerID", $data["username"] ); } } @@ -1650,9 +1585,9 @@ class Security $qResult = $dataSource->getList( $dc ); $groups = array(); - $providerField = "Provider"; + $providerField = ""; while( $data = $qResult->fetchAssoc() ) { - $groups[] = $data["GroupID"]; + $groups[] = $data[""]; } storageSet( "members_provider_field", $qResult->fieldExists( $providerField ) ); return $groups; @@ -1667,7 +1602,7 @@ class Security } $dc = new DsCommand(); $usernameFilter = DataCondition::FieldEquals( - "UserName", + "", $userId, 0, Security::caseInsensitiveUsername() ? dsCASE_INSENSITIVE : dsCASE_STRICT); @@ -1677,7 +1612,7 @@ class Security $dc->filter = $usernameFilter; } else { $providerFilter = DataCondition::FieldEquals( - "Provider", + "", $provider["code"], 0 ); $dc->filter = DataCondition::_And( array( $usernameFilter, $providerFilter ) ); @@ -1704,11 +1639,11 @@ class Security // prepare command $dataSource = Security::getUgGroupsDatasource(); - $providerField = "Provider"; + $providerField = ""; $dc = new DsCommand(); $dc->filter = DataCondition::FieldInList( - "Label", + "", $userGroups, Security::caseInsensitiveUsername() ? dsCASE_INSENSITIVE : dsCASE_STRICT); @@ -1722,7 +1657,7 @@ class Security if( $verifyProvider && $data[ $providerField ] != $provider["code"] ) { continue; } - $groups[] = $data["GroupID"]; + $groups[] = $data[""]; } return $groups; } @@ -1793,10 +1728,10 @@ class Security $dc = new DsCommand(); $dc->filter = DataCondition::_And( array( DataCondition::FieldInList( - "GroupID", + "", $groups ), DataCondition::_Not( - DataCondition::FieldIs( "AccessMask", dsopEMPTY, "" ) + DataCondition::FieldIs( "", dsopEMPTY, "" ) ) )); $dataSource = Security::getUgRightsDatasource(); @@ -1867,10 +1802,10 @@ class Security // read table permissions while( $data = $qResult->fetchAssoc() ) { - $table = $data[ "TableName" ]; - $mask = $data[ "AccessMask" ]; - $group = $data[ "GroupID" ]; - $restrictedPages = my_json_decode( $data[ "Page" ] ); + $table = $data[ "" ]; + $mask = $data[ "" ]; + $group = $data[ "" ]; + $restrictedPages = my_json_decode( $data[ "" ] ); if( !is_array( $restrictedPages )) { $restrictedPages = array(); } @@ -1911,35 +1846,6 @@ class Security } public static function guestHasStaticPermissions() { - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; - return true; return false; } @@ -1950,7 +1856,7 @@ class Security // the database may have irrelevant records $tables =& GetTablesListWithoutSecurity(); while( $data = $result->fetchAssoc() ) { - if( in_array( $data[ "TableName" ], $tables ) ) { + if( in_array( $data[ "" ], $tables ) ) { return true; } } diff --git a/php/classes/security/ad.php b/php/classes/security/ad.php index 475347b0e22983514c8d9e2153c5c4cbf74b8d75..0bc5566df0af2499aa1cc15cda4a7a1dd39aba67 100644 --- a/php/classes/security/ad.php +++ b/php/classes/security/ad.php @@ -338,7 +338,7 @@ class SecurityPluginAd extends SecurityPlugin { $qResult = $dataSource->getList( new DsCommand() ); while( $tdata = $qResult->fetchAssoc() ) { - $dbgroups[ $tdata[ "Label" ] ] = true; + $dbgroups[ $tdata[ "" ] ] = true; } $filter = "(member:1.2.840.113556.1.4.1941:=". $distinguishedName .")"; diff --git a/php/connections/ConnectionManager.php b/php/connections/ConnectionManager.php index 33aef4faee8ba9dc377161f0894277a352c8f6a7..dfe3053e97b832768bea788439b74625aebb2ea0 100644 --- a/php/connections/ConnectionManager.php +++ b/php/connections/ConnectionManager.php @@ -119,78 +119,41 @@ class ConnectionManager extends ConnectionManager_Base $connectionsData = array(); $data = array(); - $data["dbType"] = 4; - $data["connId"] = "KnowledgeBase2_at_localhost"; - $data["connName"] = "KnowledgeBase2 at localhost"; - $data["connStringType"] = "postgre"; - $postgre_url = getenv("postgre_url"); - $data["connectionString"] = $postgre_url; //currently unused + $data["dbType"] = 0; + $data["connId"] = "chats_at_localhost"; + $data["connName"] = "chats at localhost"; + $data["connStringType"] = "mysql"; + $data["connectionString"] = "mysql;mysql-41e5eb8-bpmboxes-c200.i.aivencloud.com;avnadmin;AVNS_EjXmU-QJSVJIxvGzWWm;25422;defaultdb;;1"; //currently unused - $this->_connectionsIdByName["KnowledgeBase2 at localhost"] = "KnowledgeBase2_at_localhost"; + $this->_connectionsIdByName["chats at localhost"] = "chats_at_localhost"; $data["connInfo"] = array(); - $data["ODBCUID"] = ""; - $data["ODBCPWD"] = ""; - $data["leftWrap"] = "\""; - $data["rightWrap"] = "\""; + $data["ODBCUID"] = "avnadmin"; + $data["ODBCPWD"] = "AVNS_EjXmU-QJSVJIxvGzWWm"; + $data["leftWrap"] = "`"; + $data["rightWrap"] = "`"; $data["DBPath"] = "db"; //currently unused $data["useServerMapPath"] = 1; //currently unused -$host="ep-odd-mode-93794521.us-east-2.aws.neon.tech"; -$user="miyataken999"; -$password="yz1wPf4KrWTm"; -$options="options=endpoint=ep-odd-mode-93794521 port=5432"; -$dbname="neondb"; -$data["connInfo"][0] = $host; -$data["connInfo"][1] = $user; -$data["connInfo"][2] = $password; -$data["connInfo"][3] = $options; -$data["connInfo"][4] = $dbname; -; + + // Don't change any of these lines manually! + // Use 'Server database connections' feature on the Output screen in PHPRunner instead. + $data["connInfo"][0] = "mysql-41e5eb8-bpmboxes-c200.i.aivencloud.com"; + $data["connInfo"][1] = "avnadmin"; + $data["connInfo"][2] = "AVNS_EjXmU-QJSVJIxvGzWWm"; + $data["connInfo"][3] = "25422"; + $data["connInfo"][4] = "defaultdb"; + $data["connInfo"][5] = ""; //currently unused + $data["connInfo"][6] = "1"; //currently unused + $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"; // encription set $data["EncryptInfo"] = array(); $data["EncryptInfo"]["mode"] = 0; $data["EncryptInfo"]["alg"] = 128; $data["EncryptInfo"]["key"] = ""; - $connectionsData["KnowledgeBase2_at_localhost"] = $data; - $data = array(); - $data["dbType"] = 4; - $data["connId"] = "neondbatuseast2awsneontech"; - $data["connName"] = "neondb at us-east-2.aws.neon.t"; - $data["connStringType"] = "postgre"; - $data["connectionString"] = $postgre_url; //currently unused - - $this->_connectionsIdByName["neondb at us-east-2.aws.neon.t"] = "neondbatuseast2awsneontech"; - - $data["connInfo"] = array(); - $data["ODBCUID"] = ""; - $data["ODBCPWD"] = ""; - $data["leftWrap"] = "\""; - $data["rightWrap"] = "\""; - - $data["DBPath"] = "db"; //currently unused - $data["useServerMapPath"] = 1; //currently unused - -$host="ep-odd-mode-93794521.us-east-2.aws.neon.tech"; -$user="miyataken999"; -$password="yz1wPf4KrWTm"; -$options="options=endpoint=ep-odd-mode-93794521 port=5432"; -$dbname="neondb"; -$data["connInfo"][0] = $host; -$data["connInfo"][1] = $user; -$data["connInfo"][2] = $password; -$data["connInfo"][3] = $options; -$data["connInfo"][4] = $dbname; -; - // encription set - $data["EncryptInfo"] = array(); - $data["EncryptInfo"]["mode"] = 0; - $data["EncryptInfo"]["alg"] = 256; - $data["EncryptInfo"]["key"] = ""; - - $connectionsData["neondbatuseast2awsneontech"] = $data; + $connectionsData["chats_at_localhost"] = $data; $this->_connectionsData = &$connectionsData; } @@ -203,4 +166,4 @@ $data["connInfo"][4] = $dbname; $this->CloseConnections(); } } -?> +?> \ No newline at end of file diff --git a/php/connections/ConnectionManager_base.php b/php/connections/ConnectionManager_base.php index 54861013533e649e88fcb15dac1880117fa1bb18..798cf7fbd643eacccde385ca1953d28d252a2428 100644 --- a/php/connections/ConnectionManager_base.php +++ b/php/connections/ConnectionManager_base.php @@ -112,7 +112,7 @@ class ConnectionManager_Base */ public function getDefault() { - return $this->byId( "KnowledgeBase2_at_localhost" ); + return $this->byId( "chats_at_localhost" ); } /** @@ -121,7 +121,7 @@ class ConnectionManager_Base */ public function getDefaultConnId() { - return "KnowledgeBase2_at_localhost"; + return "chats_at_localhost"; } @@ -149,7 +149,7 @@ class ConnectionManager_Base */ public function getForAudit() { - return $this->byId( "KnowledgeBase2_at_localhost" ); + return $this->byId( "chats_at_localhost" ); } /** @@ -158,7 +158,7 @@ class ConnectionManager_Base */ public function getForLocking() { - return $this->byId( "KnowledgeBase2_at_localhost" ); + return $this->byId( "chats_at_localhost" ); } /** @@ -170,7 +170,7 @@ class ConnectionManager_Base } public function getUserGroupsConnId() { - return "KnowledgeBase2_at_localhost"; + return "chats_at_localhost"; } /** @@ -188,7 +188,7 @@ class ConnectionManager_Base */ public function getSavedSearchesConnId() { - return "KnowledgeBase2_at_localhost"; + return "chats_at_localhost"; } /** @@ -205,7 +205,7 @@ class ConnectionManager_Base * @return String */ public function getWebReportsConnId() { - return "KnowledgeBase2_at_localhost"; + return "chats_at_localhost"; } /** @@ -243,40 +243,14 @@ class ConnectionManager_Base protected function _setTablesConnectionIds() { $connectionsIds = array(); - $connectionsIds["kbarticles"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["kbcategories"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["kbcomments"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.kbusers"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["main"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["faicons"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["admin_comments"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.fasis_chat_history"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.products"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.items"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.appointments"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["chat_history"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["chat_users"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["chat_settings"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["chat_files"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["chat_groups"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["chat_peopletype"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["chat_timezone"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.chat_files"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.chat_groups"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.chat_history"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.chat_peopletype"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.chat_settings"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.identity"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.dataset_info"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["admin_rights"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["admin_members"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["admin_users"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.history"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.zendesk__dataszz"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.view_zendesk"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.prompts"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.view_faisis_chat_history"] = "KnowledgeBase2_at_localhost"; - $connectionsIds["public.server_setting"] = "KnowledgeBase2_at_localhost"; + $connectionsIds["chat_history"] = "chats_at_localhost"; + $connectionsIds["chat_users"] = "chats_at_localhost"; + $connectionsIds["chat_settings"] = "chats_at_localhost"; + $connectionsIds["chat_files"] = "chats_at_localhost"; + $connectionsIds["chat_groups"] = "chats_at_localhost"; + $connectionsIds["chat_peopletype"] = "chats_at_localhost"; + $connectionsIds["chat_timezone"] = "chats_at_localhost"; + $connectionsIds["chat126_users1"] = "chats_at_localhost"; $this->_tablesConnectionIds = &$connectionsIds; } diff --git a/php/include/_global_settings.php b/php/include/_global_settings.php index 50055625baf76a3f9dbb9846ebfc35d67d34c134..cc40b4169e46c4a02b7f3cdfe1877f5088a1f05d 100644 --- a/php/include/_global_settings.php +++ b/php/include/_global_settings.php @@ -3,11 +3,11 @@ $tdataGLOBAL = array(); -$tdataGLOBAL[".pagesByType"] = my_json_decode( "{\"admin_members_list\":[\"admin_members_list\"],\"admin_rights_list\":[\"admin_rights_list\"],\"login\":[\"login\"],\"userinfo\":[\"userinfo\"]}" ); +$tdataGLOBAL[".pagesByType"] = my_json_decode( "{\"changepwd\":[\"changepwd_Chat1\"],\"changepwd_success\":[\"changepwd_success_Chat1\"],\"login\":[\"login_Chat1\"],\"menu\":[\"menu_Chat1\"],\"userinfo\":[\"userinfo_Chat1\"]}" ); $tdataGLOBAL[".originalPagesByType"] = $tdataGLOBAL[".pagesByType"]; -$tdataGLOBAL[".pages"] = types2pages( my_json_decode( "{\"admin_members_list\":[\"admin_members_list\"],\"admin_rights_list\":[\"admin_rights_list\"],\"login\":[\"login\"],\"userinfo\":[\"userinfo\"]}" ) ); +$tdataGLOBAL[".pages"] = types2pages( my_json_decode( "{\"changepwd\":[\"changepwd_Chat1\"],\"changepwd_success\":[\"changepwd_success_Chat1\"],\"login\":[\"login_Chat1\"],\"menu\":[\"menu_Chat1\"],\"userinfo\":[\"userinfo_Chat1\"]}" ) ); $tdataGLOBAL[".originalPages"] = $tdataGLOBAL[".pages"]; -$tdataGLOBAL[".defaultPages"] = my_json_decode( "{\"admin_members_list\":\"admin_members_list\",\"admin_rights_list\":\"admin_rights_list\",\"login\":\"login\",\"userinfo\":\"userinfo\"}" ); +$tdataGLOBAL[".defaultPages"] = my_json_decode( "{\"changepwd\":\"changepwd_Chat1\",\"changepwd_success\":\"changepwd_success_Chat1\",\"login\":\"login_Chat1\",\"menu\":\"menu_Chat1\",\"userinfo\":\"userinfo_Chat1\"}" ); $tdataGLOBAL[".originalDefaultPages"] = $tdataGLOBAL[".defaultPages"]; $tables_data[""] =& $tdataGLOBAL; diff --git a/php/include/appsettings.php b/php/include/appsettings.php index 7b078c94ae5c26b7e4f988554929e2e188dd568c..3461d1c1dd9b8b31a2b821e038279fa7faa4fb17 100644 --- a/php/include/appsettings.php +++ b/php/include/appsettings.php @@ -628,7 +628,7 @@ $globalSettings["keepLoggedIn"] = true; //mail settings $globalSettings["useBuiltInMailer"] = false; -$globalSettings["useCustomSMTPSettings"] = false; +$globalSettings["useCustomSMTPSettings"] = true; $globalSettings["strSMTPUser"] = ""; $globalSettings["strSMTPServer"] = "localhost"; @@ -657,17 +657,16 @@ $adNestedPermissions = false; $ajaxSearchStartsWith = true; -$globalSettings["staticGuestLogin"] = true; -$globalSettings["LandingPageType"] = 0; -$globalSettings["LandingTable"] = "main"; -$globalSettings["LandingPage"] = "list"; -$globalSettings["LandingURL"] = "main_list.php?page=mainpage"; -$globalSettings["LandingPageId"] = "mainpage"; +$globalSettings["LandingPageType"] = 1; +$globalSettings["LandingTable"] = "chat_history"; +$globalSettings["LandingPage"] = "add"; +$globalSettings["LandingURL"] = "chat_history_add.php?page=add"; +$globalSettings["LandingPageId"] = "add"; $globalSettings["ProjectLogo"] = array(); -$globalSettings["ProjectLogo"]["English"] = "Knowledge Base Project"; +$globalSettings["ProjectLogo"]["English"] = "Chats"; $globalSettings["CookieBanner"] = array(); @@ -675,10 +674,9 @@ $globalSettings["useCookieBanner"] = 0 != 0; $globalSettings["htmlEmailTemplates"] = array(); -$globalSettings["isAddWebRep"] = true; $globalSettings["createLoginPage"] = true; -$globalSettings["userGroupCount"] = 3; +$globalSettings["userGroupCount"] = 2; $globalSettings["apiGoogleMapsCode"] = ""; @@ -747,22 +745,21 @@ $wr_pagestylepath = "webreports"; $wr_is_standalone = false; $WRAdminPagePassword = ""; -$WRAdminPagePassword = "webreports"; /** * Legacy variables for pre-10.6 business templates only. * DEPRECATED */ -$cLoginTable = "public.kbusers"; +$cLoginTable = "chat126_users1"; $cDisplayNameField = "fullname"; $cUserNameField = "username"; $cPasswordField = "password"; -$cUserGroupField = "group"; +$cUserGroupField = "username"; $cEmailField = "email"; $cUserpicField = ""; $loginKeyFields= array(); -$loginKeyFields[] = "email"; +$loginKeyFields[] = "ID"; // legacy use only $cKeyFields = $loginKeyFields; @@ -772,10 +769,10 @@ $cKeyFields = $loginKeyFields; */ -$globalSettings["usersDatasourceTable"] = "public.kbusers"; +$globalSettings["usersDatasourceTable"] = "chat126_users1"; -$globalSettings["jwtSecret"] = "AePSql8YQwJMZA2upYMI"; +$globalSettings["jwtSecret"] = "cFIydWRfSpojgr9LUVYT"; $arrCustomPages = array(); @@ -793,9 +790,9 @@ $suggestAllContent = true; $strLastSQL = ""; $showCustomMarkerOnPrint = false; -$projectBuildKey = "492_1720354121"; +$projectBuildKey = "3641_1721381610"; $wizardBuildKey = "41974"; -$projectBuildNumber = "492"; +$projectBuildNumber = "3641"; $mlang_messages = array(); $mlang_charsets = array(); @@ -820,17 +817,6 @@ $menuTreelikeFlags["secondary"] = 1; // table captions $tableCaptions = array(); $tableCaptions["English"] = array(); -$tableCaptions["English"]["kbarticles"] = "Articles"; -$tableCaptions["English"]["kbcategories"] = "Categories"; -$tableCaptions["English"]["kbcomments"] = "Comments"; -$tableCaptions["English"]["public_kbusers"] = "Users"; -$tableCaptions["English"]["main"] = ""; -$tableCaptions["English"]["faicons"] = "Faicons"; -$tableCaptions["English"]["admin_comments"] = "Admin Comments"; -$tableCaptions["English"]["public_fasis_chat_history"] = "知識へ登録"; -$tableCaptions["English"]["public_products"] = "Products"; -$tableCaptions["English"]["public_items"] = "Items"; -$tableCaptions["English"]["public_appointments"] = "Appointments"; $tableCaptions["English"][""] = ""; $tableCaptions["English"]["chat_history"] = "Chat History"; $tableCaptions["English"]["chat_users"] = "Chat Users"; @@ -839,22 +825,7 @@ $tableCaptions["English"]["chat_files"] = "Chat Files"; $tableCaptions["English"]["chat_groups"] = "Chat Groups"; $tableCaptions["English"]["chat_peopletype"] = "Chat Peopletype"; $tableCaptions["English"]["chat_timezone"] = "Chat Timezone"; -$tableCaptions["English"]["public_chat_files"] = "Chat Files"; -$tableCaptions["English"]["public_chat_groups"] = "Chat Groups"; -$tableCaptions["English"]["public_chat_history"] = "Chat History"; -$tableCaptions["English"]["public_chat_peopletype"] = "Chat Peopletype"; -$tableCaptions["English"]["public_chat_settings"] = "Chat Settings"; -$tableCaptions["English"]["public_identity"] = "Identity"; -$tableCaptions["English"]["public_dataset_info"] = "Dataset Info"; -$tableCaptions["English"]["admin_rights"] = "Admin Rights"; -$tableCaptions["English"]["admin_members"] = "Admin Members"; -$tableCaptions["English"]["admin_users"] = "Admin Users"; -$tableCaptions["English"]["public_history"] = "History"; -$tableCaptions["English"]["public_zendesk__dataszz"] = "Zendesk"; -$tableCaptions["English"]["public_view_zendesk"] = "View Zendesk"; -$tableCaptions["English"]["public_prompts"] = "Prompts"; -$tableCaptions["English"]["public_view_faisis_chat_history"] = "View Faisis Chat History"; -$tableCaptions["English"]["public_server_setting"] = "Server Setting"; +$tableCaptions["English"]["chat126_users1"] = "Chat126 Users1"; $globalEvents = new class_GlobalEvents; @@ -940,12 +911,6 @@ if(mlang_getcurrentlang()=="English") $globalSettings["showDetailedError"] = true; -$globalSettings["restCreate"] = true; -$globalSettings["restReturnEncodedBinary"] = 1 != 0; -$globalSettings["restAcceptEncodedBinary"] = 0 != 0; -$globalSettings["restAuth"] = REST_APIKEY; -$globalSettings["APIkey"] = ""; -$globalSettings["APIkeyField"] = "username"; $globalSettings["mapMarkerCount"] = 50; diff --git a/php/include/audit.php b/php/include/audit.php index 6e3375859e98909310661516508359a9b43efeca..64190756b5b4beef51513facc5abcf0fbacbf4e4 100644 --- a/php/include/audit.php +++ b/php/include/audit.php @@ -1,7 +1,7 @@ params[1]=$pUsername; - $arr=array(); - $this->params=array($_SERVER["REMOTE_ADDR"], Security::getUserName() ); - if($globalEvents->exists("OnAuditLog")) - $retval=$globalEvents->OnAuditLog($this->strLogin, $this->params, $table, $arr, $arr, $arr); - if($retval) - { - $this->insert(now(), $this->params[0], $this->params[1], $table, $this->strLogin, ""); - } - return $retval; } function LogLoginFailed($pUsername) { - global $globalEvents; - $retval=true; - $table=Security::loginTable(); - $this->params[1]=$pUsername; - $arr=array(); - if($globalEvents->exists("OnAuditLog")) - $retval=$globalEvents->OnAuditLog($this->strFailLogin, $this->params, $table, $arr, $arr, $arr); - if($retval) - { - $this->insert(now(), $this->params[0], $this->params[1], $table, $this->strFailLogin, ""); - } - $this->params=array($_SERVER["REMOTE_ADDR"],""); - return $retval; } function LogLogout() { - global $globalEvents; - if( Security::getUserName() !="" ) - { - $retval=true; - $table=Security::loginTable(); - $arr=array(); - if($globalEvents->exists("OnAuditLog")) - $retval=$globalEvents->OnAuditLog($this->strLogout, $this->params, $table, $arr, $arr, $arr); - if($retval) - { - $this->insert(now(), $this->params[0], $this->params[1], $table, $this->strLogout, ""); - } - return $retval; - } } function LogChPassword( $username ) { - global $globalEvents; - $retval=true; - $table=Security::loginTable(); - $arr=array(); - $this->params[ 1 ] = $username; - if($globalEvents->exists("OnAuditLog")) - $retval=$globalEvents->OnAuditLog($this->strChPass, $this->params, $table, $arr, $arr, $arr); - if($retval) - { - $this->insert(now(), $this->params[0], $this->params[1], $table, $this->strChPass, ""); - } - return $retval; } function LogAdd($str_table,$values,$keys) @@ -408,139 +356,35 @@ class AuditTrailTable function logValueEnable($table) { - if($table=="kbarticles") - { - return true; - } - if($table=="kbcategories") - { - return true; - } - if($table=="kbcomments") - { - return true; - } - if($table=="public.kbusers") - { - return true; - } - if($table=="main") - { - return true; - } - if($table=="faicons") - { - return true; - } - if($table=="admin_comments") - { - return true; - } - if($table=="public.fasis_chat_history") - { - return true; - } - if($table=="public.products") - { - return true; - } - if($table=="public.items") - { - return true; - } - if($table=="public.appointments") - { - return true; - } if($table=="chat_history") - { - return true; - } - if($table=="chat_users") - { - return true; - } - if($table=="chat_settings") - { - return true; - } - if($table=="chat_files") - { - return true; - } - if($table=="chat_groups") - { - return true; - } - if($table=="chat_peopletype") - { - return true; - } - if($table=="chat_timezone") - { - return true; - } - if($table=="public.chat_files") - { - return true; - } - if($table=="public.chat_groups") - { - return true; - } - if($table=="public.chat_history") - { - return true; - } - if($table=="public.chat_peopletype") - { - return true; - } - if($table=="public.chat_settings") - { - return true; - } - if($table=="public.identity") - { - return true; - } - if($table=="public.dataset_info") - { - return true; - } - if($table=="admin_rights") - { - return false; - } - if($table=="admin_members") { return false; } - if($table=="admin_users") + if($table=="chat_users") { return false; } - if($table=="public.history") + if($table=="chat_settings") { return false; } - if($table=="public.zendesk__dataszz") + if($table=="chat_files") { return false; } - if($table=="public.view_zendesk") + if($table=="chat_groups") { return false; } - if($table=="public.prompts") + if($table=="chat_peopletype") { return false; } - if($table=="public.view_faisis_chat_history") + if($table=="chat_timezone") { return false; } - if($table=="public.server_setting") + if($table=="chat126_users1") { return false; } @@ -616,72 +460,18 @@ class AuditTrailFile function LogLogin($pUsername) { - global $globalEvents; - $retval=true; - $table=Security::loginTable(); - $this->params[1]=$pUsername; - $arr=array(); - if($globalEvents->exists("OnAuditLog")) - $retval=$globalEvents->OnAuditLog($this->strLogin, $this->params, $table, $arr, $arr, $arr); - if($retval) - { - $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"; - $this->writeToLogFile( $str ); - } - return $retval; - } + } function LogLoginFailed($pUsername) { - global $globalEvents; - $retval=true; - $table=Security::loginTable(); - $this->params[1]=$pUsername; - $arr=array(); - if($globalEvents->exists("OnAuditLog")) - $retval=$globalEvents->OnAuditLog($this->strFailLogin, $this->params, $table, $arr, $arr, $arr); - if($retval) - { - $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"; - $this->writeToLogFile( $str ); - } - return $retval; - } + } function LogLogout() { - global $globalEvents; - if(Security::getUserName() != "" ) - { - $retval=true; - $table=Security::loginTable(); - $arr=array(); - if($globalEvents->exists("OnAuditLog")) - $retval=$globalEvents->OnAuditLog($this->strLogout, $this->params, $table, $arr, $arr, $arr); - if($retval) - { - $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"; - $this->writeToLogFile( $str ); - } - return $retval; - } } function LogChPassword( $username ) { - global $globalEvents; - $retval=true; - $table=Security::loginTable(); - $arr=array(); - $this->params[ 1 ] = $username; - if($globalEvents->exists("OnAuditLog")) - $retval=$globalEvents->OnAuditLog($this->strChPass, $this->params, $table, $arr, $arr, $arr); - if($retval) - { - $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"; - $this->writeToLogFile( $str ); - } - return $retval; } function LogAdd($str_table,$values,$keys) @@ -906,139 +696,35 @@ class AuditTrailFile function logValueEnable($table) { - if($table=="kbarticles") - { - return true; - } - if($table=="kbcategories") - { - return true; - } - if($table=="kbcomments") - { - return true; - } - if($table=="public.kbusers") - { - return true; - } - if($table=="main") - { - return true; - } - if($table=="faicons") - { - return true; - } - if($table=="admin_comments") - { - return true; - } - if($table=="public.fasis_chat_history") - { - return true; - } - if($table=="public.products") - { - return true; - } - if($table=="public.items") - { - return true; - } - if($table=="public.appointments") - { - return true; - } if($table=="chat_history") - { - return true; - } - if($table=="chat_users") - { - return true; - } - if($table=="chat_settings") - { - return true; - } - if($table=="chat_files") - { - return true; - } - if($table=="chat_groups") - { - return true; - } - if($table=="chat_peopletype") - { - return true; - } - if($table=="chat_timezone") - { - return true; - } - if($table=="public.chat_files") - { - return true; - } - if($table=="public.chat_groups") - { - return true; - } - if($table=="public.chat_history") - { - return true; - } - if($table=="public.chat_peopletype") - { - return true; - } - if($table=="public.chat_settings") - { - return true; - } - if($table=="public.identity") - { - return true; - } - if($table=="public.dataset_info") - { - return true; - } - if($table=="admin_rights") - { - return false; - } - if($table=="admin_members") { return false; } - if($table=="admin_users") + if($table=="chat_users") { return false; } - if($table=="public.history") + if($table=="chat_settings") { return false; } - if($table=="public.zendesk__dataszz") + if($table=="chat_files") { return false; } - if($table=="public.view_zendesk") + if($table=="chat_groups") { return false; } - if($table=="public.prompts") + if($table=="chat_peopletype") { return false; } - if($table=="public.view_faisis_chat_history") + if($table=="chat_timezone") { return false; } - if($table=="public.server_setting") + if($table=="chat126_users1") { return false; } diff --git a/php/include/chat126_users1_settings.php b/php/include/chat126_users1_settings.php new file mode 100644 index 0000000000000000000000000000000000000000..0fbca6ae792b118b94ed5f141c79ba5e7b37e766 --- /dev/null +++ b/php/include/chat126_users1_settings.php @@ -0,0 +1,1629 @@ + ""); + + + + + + + + + + + + + + + + $vdata["NeedEncode"] = true; + + + $vdata["truncateText"] = true; + $vdata["NumberOfChars"] = 80; + + $fdata["ViewFormats"]["view"] = $vdata; +// End View Formats + +// Begin Edit Formats + $fdata["EditFormats"] = array(); + + $edata = array("EditFormat" => "Text field"); + + + $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text"); + $edata["weekdays"] = "[]"; + + + + + + + + $edata["IsRequired"] = true; + + + + + $edata["acceptFileTypesHtml"] = ""; + + $edata["maxNumberOfFiles"] = 1; + + + + + + $edata["HTML5InuptType"] = "text"; + + $edata["EditParams"] = ""; + + $edata["controlWidth"] = 200; + +// Begin validation + $edata["validateAs"] = array(); + $edata["validateAs"]["basicValidate"] = array(); + $edata["validateAs"]["customMessages"] = array(); + $edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number"); + $edata["validateAs"]["basicValidate"][] = "IsRequired"; + + +// End validation + + + + + + + $fdata["EditFormats"]["edit"] = $edata; +// End Edit Formats + + + $fdata["isSeparate"] = false; + + + + +// the field's search options settings + $fdata["defaultSearchOption"] = "Contains"; + + // the default search options list + $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY); +// the end of search options settings + + +//Filters settings + $fdata["filterTotals"] = 0; + $fdata["filterMultiSelect"] = 0; + $fdata["filterFormat"] = "Values list"; + $fdata["showCollapsed"] = false; + + $fdata["sortValueType"] = 0; + $fdata["numberOfVisibleItems"] = 10; + + $fdata["filterBy"] = 0; + + + + + +//end of Filters settings + + + $tdatachat126_users1["ID"] = $fdata; + $tdatachat126_users1[".searchableFields"][] = "ID"; +// username +// Custom field settings + $fdata = array(); + $fdata["Index"] = 2; + $fdata["strName"] = "username"; + $fdata["GoodName"] = "username"; + $fdata["ownerTable"] = "chat126_users1"; + $fdata["Label"] = GetFieldLabel("chat126_users1","username"); + $fdata["FieldType"] = 200; + + + + + + + $fdata["strField"] = "username"; + + $fdata["sourceSingle"] = "username"; + + + $fdata["isSQLExpression"] = true; + $fdata["FullName"] = "username"; + + + + $fdata["UploadFolder"] = "files"; + +// Begin View Formats + $fdata["ViewFormats"] = array(); + + $vdata = array("ViewFormat" => ""); + + + + + + + + + + + + + + + + $vdata["NeedEncode"] = true; + + + $vdata["truncateText"] = true; + $vdata["NumberOfChars"] = 80; + + $fdata["ViewFormats"]["view"] = $vdata; +// End View Formats + +// Begin Edit Formats + $fdata["EditFormats"] = array(); + + $edata = array("EditFormat" => "Text field"); + + + $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text"); + $edata["weekdays"] = "[]"; + + + + + + + + + + + + $edata["acceptFileTypesHtml"] = ""; + + $edata["maxNumberOfFiles"] = 1; + + + + + + $edata["HTML5InuptType"] = "text"; + + $edata["EditParams"] = ""; + $edata["EditParams"].= " maxlength=255"; + + $edata["controlWidth"] = 200; + +// Begin validation + $edata["validateAs"] = array(); + $edata["validateAs"]["basicValidate"] = array(); + $edata["validateAs"]["customMessages"] = array(); + + +// End validation + + + + + + + $fdata["EditFormats"]["edit"] = $edata; +// End Edit Formats + + + $fdata["isSeparate"] = false; + + + + +// the field's search options settings + $fdata["defaultSearchOption"] = "Contains"; + + // the default search options list + $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY); +// the end of search options settings + + +//Filters settings + $fdata["filterTotals"] = 0; + $fdata["filterMultiSelect"] = 0; + $fdata["filterFormat"] = "Values list"; + $fdata["showCollapsed"] = false; + + $fdata["sortValueType"] = 0; + $fdata["numberOfVisibleItems"] = 10; + + $fdata["filterBy"] = 0; + + + + + +//end of Filters settings + + + $tdatachat126_users1["username"] = $fdata; + $tdatachat126_users1[".searchableFields"][] = "username"; +// password +// Custom field settings + $fdata = array(); + $fdata["Index"] = 3; + $fdata["strName"] = "password"; + $fdata["GoodName"] = "password"; + $fdata["ownerTable"] = "chat126_users1"; + $fdata["Label"] = GetFieldLabel("chat126_users1","password"); + $fdata["FieldType"] = 200; + + + + + + + $fdata["strField"] = "password"; + + $fdata["sourceSingle"] = "password"; + + + $fdata["isSQLExpression"] = true; + $fdata["FullName"] = "password"; + + + + $fdata["UploadFolder"] = "files"; + +// Begin View Formats + $fdata["ViewFormats"] = array(); + + $vdata = array("ViewFormat" => ""); + + + + + + + + + + + + + + + + $vdata["NeedEncode"] = true; + + + $vdata["truncateText"] = true; + $vdata["NumberOfChars"] = 80; + + $fdata["ViewFormats"]["view"] = $vdata; +// End View Formats + +// Begin Edit Formats + $fdata["EditFormats"] = array(); + + $edata = array("EditFormat" => "Password"); + + + $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text"); + $edata["weekdays"] = "[]"; + + + + + + + + + + + + $edata["acceptFileTypesHtml"] = ""; + + $edata["maxNumberOfFiles"] = 1; + + + + + + + $edata["EditParams"] = ""; + $edata["EditParams"].= " maxlength=255"; + + $edata["controlWidth"] = 200; + +// Begin validation + $edata["validateAs"] = array(); + $edata["validateAs"]["basicValidate"] = array(); + $edata["validateAs"]["customMessages"] = array(); + + +// End validation + + + + + + + $fdata["EditFormats"]["edit"] = $edata; +// End Edit Formats + + + $fdata["isSeparate"] = false; + + + + +// the field's search options settings + $fdata["defaultSearchOption"] = "Contains"; + + // the default search options list + $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY); +// the end of search options settings + + +//Filters settings + $fdata["filterTotals"] = 0; + $fdata["filterMultiSelect"] = 0; + $fdata["filterFormat"] = "Values list"; + $fdata["showCollapsed"] = false; + + $fdata["sortValueType"] = 0; + $fdata["numberOfVisibleItems"] = 10; + + $fdata["filterBy"] = 0; + + + + + +//end of Filters settings + + + $tdatachat126_users1["password"] = $fdata; + $tdatachat126_users1[".searchableFields"][] = "password"; +// email +// Custom field settings + $fdata = array(); + $fdata["Index"] = 4; + $fdata["strName"] = "email"; + $fdata["GoodName"] = "email"; + $fdata["ownerTable"] = "chat126_users1"; + $fdata["Label"] = GetFieldLabel("chat126_users1","email"); + $fdata["FieldType"] = 200; + + + + + + + $fdata["strField"] = "email"; + + $fdata["sourceSingle"] = "email"; + + + $fdata["isSQLExpression"] = true; + $fdata["FullName"] = "email"; + + + + $fdata["UploadFolder"] = "files"; + +// Begin View Formats + $fdata["ViewFormats"] = array(); + + $vdata = array("ViewFormat" => ""); + + + + + + + + + + + + + + + + $vdata["NeedEncode"] = true; + + + $vdata["truncateText"] = true; + $vdata["NumberOfChars"] = 80; + + $fdata["ViewFormats"]["view"] = $vdata; +// End View Formats + +// Begin Edit Formats + $fdata["EditFormats"] = array(); + + $edata = array("EditFormat" => "Text field"); + + + $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text"); + $edata["weekdays"] = "[]"; + + + + + + + + + + + + $edata["acceptFileTypesHtml"] = ""; + + $edata["maxNumberOfFiles"] = 1; + + + + + + $edata["HTML5InuptType"] = "text"; + + $edata["EditParams"] = ""; + $edata["EditParams"].= " maxlength=255"; + + $edata["controlWidth"] = 200; + +// Begin validation + $edata["validateAs"] = array(); + $edata["validateAs"]["basicValidate"] = array(); + $edata["validateAs"]["customMessages"] = array(); + + +// End validation + + + + + + + $fdata["EditFormats"]["edit"] = $edata; +// End Edit Formats + + + $fdata["isSeparate"] = false; + + + + +// the field's search options settings + $fdata["defaultSearchOption"] = "Contains"; + + // the default search options list + $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY); +// the end of search options settings + + +//Filters settings + $fdata["filterTotals"] = 0; + $fdata["filterMultiSelect"] = 0; + $fdata["filterFormat"] = "Values list"; + $fdata["showCollapsed"] = false; + + $fdata["sortValueType"] = 0; + $fdata["numberOfVisibleItems"] = 10; + + $fdata["filterBy"] = 0; + + + + + +//end of Filters settings + + + $tdatachat126_users1["email"] = $fdata; + $tdatachat126_users1[".searchableFields"][] = "email"; +// fullname +// Custom field settings + $fdata = array(); + $fdata["Index"] = 5; + $fdata["strName"] = "fullname"; + $fdata["GoodName"] = "fullname"; + $fdata["ownerTable"] = "chat126_users1"; + $fdata["Label"] = GetFieldLabel("chat126_users1","fullname"); + $fdata["FieldType"] = 200; + + + + + + + $fdata["strField"] = "fullname"; + + $fdata["sourceSingle"] = "fullname"; + + + $fdata["isSQLExpression"] = true; + $fdata["FullName"] = "fullname"; + + + + $fdata["UploadFolder"] = "files"; + +// Begin View Formats + $fdata["ViewFormats"] = array(); + + $vdata = array("ViewFormat" => ""); + + + + + + + + + + + + + + + + $vdata["NeedEncode"] = true; + + + $vdata["truncateText"] = true; + $vdata["NumberOfChars"] = 80; + + $fdata["ViewFormats"]["view"] = $vdata; +// End View Formats + +// Begin Edit Formats + $fdata["EditFormats"] = array(); + + $edata = array("EditFormat" => "Text field"); + + + $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text"); + $edata["weekdays"] = "[]"; + + + + + + + + + + + + $edata["acceptFileTypesHtml"] = ""; + + $edata["maxNumberOfFiles"] = 1; + + + + + + $edata["HTML5InuptType"] = "text"; + + $edata["EditParams"] = ""; + $edata["EditParams"].= " maxlength=255"; + + $edata["controlWidth"] = 200; + +// Begin validation + $edata["validateAs"] = array(); + $edata["validateAs"]["basicValidate"] = array(); + $edata["validateAs"]["customMessages"] = array(); + + +// End validation + + + + + + + $fdata["EditFormats"]["edit"] = $edata; +// End Edit Formats + + + $fdata["isSeparate"] = false; + + + + +// the field's search options settings + $fdata["defaultSearchOption"] = "Contains"; + + // the default search options list + $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY); +// the end of search options settings + + +//Filters settings + $fdata["filterTotals"] = 0; + $fdata["filterMultiSelect"] = 0; + $fdata["filterFormat"] = "Values list"; + $fdata["showCollapsed"] = false; + + $fdata["sortValueType"] = 0; + $fdata["numberOfVisibleItems"] = 10; + + $fdata["filterBy"] = 0; + + + + + +//end of Filters settings + + + $tdatachat126_users1["fullname"] = $fdata; + $tdatachat126_users1[".searchableFields"][] = "fullname"; +// groupid +// Custom field settings + $fdata = array(); + $fdata["Index"] = 6; + $fdata["strName"] = "groupid"; + $fdata["GoodName"] = "groupid"; + $fdata["ownerTable"] = "chat126_users1"; + $fdata["Label"] = GetFieldLabel("chat126_users1","groupid"); + $fdata["FieldType"] = 200; + + + + + + + $fdata["strField"] = "groupid"; + + $fdata["sourceSingle"] = "groupid"; + + + $fdata["isSQLExpression"] = true; + $fdata["FullName"] = "groupid"; + + + + $fdata["UploadFolder"] = "files"; + +// Begin View Formats + $fdata["ViewFormats"] = array(); + + $vdata = array("ViewFormat" => ""); + + + + + + + + + + + + + + + + $vdata["NeedEncode"] = true; + + + $vdata["truncateText"] = true; + $vdata["NumberOfChars"] = 80; + + $fdata["ViewFormats"]["view"] = $vdata; +// End View Formats + +// Begin Edit Formats + $fdata["EditFormats"] = array(); + + $edata = array("EditFormat" => "Text field"); + + + $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text"); + $edata["weekdays"] = "[]"; + + + + + + + + + + + + $edata["acceptFileTypesHtml"] = ""; + + $edata["maxNumberOfFiles"] = 1; + + + + + + $edata["HTML5InuptType"] = "text"; + + $edata["EditParams"] = ""; + $edata["EditParams"].= " maxlength=255"; + + $edata["controlWidth"] = 200; + +// Begin validation + $edata["validateAs"] = array(); + $edata["validateAs"]["basicValidate"] = array(); + $edata["validateAs"]["customMessages"] = array(); + + +// End validation + + + + + + + $fdata["EditFormats"]["edit"] = $edata; +// End Edit Formats + + + $fdata["isSeparate"] = false; + + + + +// the field's search options settings + $fdata["defaultSearchOption"] = "Contains"; + + // the default search options list + $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY); +// the end of search options settings + + +//Filters settings + $fdata["filterTotals"] = 0; + $fdata["filterMultiSelect"] = 0; + $fdata["filterFormat"] = "Values list"; + $fdata["showCollapsed"] = false; + + $fdata["sortValueType"] = 0; + $fdata["numberOfVisibleItems"] = 10; + + $fdata["filterBy"] = 0; + + + + + +//end of Filters settings + + + $tdatachat126_users1["groupid"] = $fdata; + $tdatachat126_users1[".searchableFields"][] = "groupid"; +// active +// Custom field settings + $fdata = array(); + $fdata["Index"] = 7; + $fdata["strName"] = "active"; + $fdata["GoodName"] = "active"; + $fdata["ownerTable"] = "chat126_users1"; + $fdata["Label"] = GetFieldLabel("chat126_users1","active"); + $fdata["FieldType"] = 3; + + + + + + + $fdata["strField"] = "active"; + + $fdata["sourceSingle"] = "active"; + + + $fdata["isSQLExpression"] = true; + $fdata["FullName"] = "active"; + + + + $fdata["UploadFolder"] = "files"; + +// Begin View Formats + $fdata["ViewFormats"] = array(); + + $vdata = array("ViewFormat" => ""); + + + + + + + + + + + + + + + + $vdata["NeedEncode"] = true; + + + $vdata["truncateText"] = true; + $vdata["NumberOfChars"] = 80; + + $fdata["ViewFormats"]["view"] = $vdata; +// End View Formats + +// Begin Edit Formats + $fdata["EditFormats"] = array(); + + $edata = array("EditFormat" => "Text field"); + + + $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text"); + $edata["weekdays"] = "[]"; + + + + + + + + + + + + $edata["acceptFileTypesHtml"] = ""; + + $edata["maxNumberOfFiles"] = 1; + + + + + + $edata["HTML5InuptType"] = "text"; + + $edata["EditParams"] = ""; + + $edata["controlWidth"] = 200; + +// Begin validation + $edata["validateAs"] = array(); + $edata["validateAs"]["basicValidate"] = array(); + $edata["validateAs"]["customMessages"] = array(); + $edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number"); + + +// End validation + + + + + + + $fdata["EditFormats"]["edit"] = $edata; +// End Edit Formats + + + $fdata["isSeparate"] = false; + + + + +// the field's search options settings + $fdata["defaultSearchOption"] = "Contains"; + + // the default search options list + $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY); +// the end of search options settings + + +//Filters settings + $fdata["filterTotals"] = 0; + $fdata["filterMultiSelect"] = 0; + $fdata["filterFormat"] = "Values list"; + $fdata["showCollapsed"] = false; + + $fdata["sortValueType"] = 0; + $fdata["numberOfVisibleItems"] = 10; + + $fdata["filterBy"] = 0; + + + + + +//end of Filters settings + + + $tdatachat126_users1["active"] = $fdata; + $tdatachat126_users1[".searchableFields"][] = "active"; +// ext_security_id +// Custom field settings + $fdata = array(); + $fdata["Index"] = 8; + $fdata["strName"] = "ext_security_id"; + $fdata["GoodName"] = "ext_security_id"; + $fdata["ownerTable"] = "chat126_users1"; + $fdata["Label"] = GetFieldLabel("chat126_users1","ext_security_id"); + $fdata["FieldType"] = 200; + + + + + + + $fdata["strField"] = "ext_security_id"; + + $fdata["sourceSingle"] = "ext_security_id"; + + + $fdata["isSQLExpression"] = true; + $fdata["FullName"] = "ext_security_id"; + + + + $fdata["UploadFolder"] = "files"; + +// Begin View Formats + $fdata["ViewFormats"] = array(); + + $vdata = array("ViewFormat" => ""); + + + + + + + + + + + + + + + + $vdata["NeedEncode"] = true; + + + $vdata["truncateText"] = true; + $vdata["NumberOfChars"] = 80; + + $fdata["ViewFormats"]["view"] = $vdata; +// End View Formats + +// Begin Edit Formats + $fdata["EditFormats"] = array(); + + $edata = array("EditFormat" => "Text field"); + + + $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text"); + $edata["weekdays"] = "[]"; + + + + + + + + + + + + $edata["acceptFileTypesHtml"] = ""; + + $edata["maxNumberOfFiles"] = 1; + + + + + + $edata["HTML5InuptType"] = "text"; + + $edata["EditParams"] = ""; + $edata["EditParams"].= " maxlength=100"; + + $edata["controlWidth"] = 200; + +// Begin validation + $edata["validateAs"] = array(); + $edata["validateAs"]["basicValidate"] = array(); + $edata["validateAs"]["customMessages"] = array(); + + +// End validation + + + + + + + $fdata["EditFormats"]["edit"] = $edata; +// End Edit Formats + + + $fdata["isSeparate"] = false; + + + + +// the field's search options settings + $fdata["defaultSearchOption"] = "Contains"; + + // the default search options list + $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY); +// the end of search options settings + + +//Filters settings + $fdata["filterTotals"] = 0; + $fdata["filterMultiSelect"] = 0; + $fdata["filterFormat"] = "Values list"; + $fdata["showCollapsed"] = false; + + $fdata["sortValueType"] = 0; + $fdata["numberOfVisibleItems"] = 10; + + $fdata["filterBy"] = 0; + + + + + +//end of Filters settings + + + $tdatachat126_users1["ext_security_id"] = $fdata; + $tdatachat126_users1[".searchableFields"][] = "ext_security_id"; + + +$tables_data["chat126_users1"]=&$tdatachat126_users1; +$field_labels["chat126_users1"] = &$fieldLabelschat126_users1; +$fieldToolTips["chat126_users1"] = &$fieldToolTipschat126_users1; +$placeHolders["chat126_users1"] = &$placeHolderschat126_users1; +$page_titles["chat126_users1"] = &$pageTitleschat126_users1; + + +changeTextControlsToDate( "chat126_users1" ); + +// -----------------start prepare master-details data arrays ------------------------------// +// tables which are detail tables for current table (master) + +//if !@TABLE.bReportCrossTab + +$detailsTablesData["chat126_users1"] = array(); +//endif + +// tables which are master tables for current table (detail) +$masterTablesData["chat126_users1"] = array(); + + + +// -----------------end prepare master-details data arrays ------------------------------// + + + +require_once(getabspath("classes/sql.php")); + + + + + + + + + + + +function createSqlQuery_chat126_users1() +{ +$proto0=array(); +$proto0["m_strHead"] = "SELECT"; +$proto0["m_strFieldList"] = "ID, username, password, email, fullname, groupid, active, ext_security_id"; +$proto0["m_strFrom"] = "FROM chat126_users1"; +$proto0["m_strWhere"] = ""; +$proto0["m_strOrderBy"] = ""; + + ; + $proto0["cipherer"] = null; +$proto2=array(); +$proto2["m_sql"] = ""; +$proto2["m_uniontype"] = "SQLL_UNKNOWN"; + $obj = new SQLNonParsed(array( + "m_sql" => "" +)); + +$proto2["m_column"]=$obj; +$proto2["m_contained"] = array(); +$proto2["m_strCase"] = ""; +$proto2["m_havingmode"] = false; +$proto2["m_inBrackets"] = false; +$proto2["m_useAlias"] = false; +$obj = new SQLLogicalExpr($proto2); + +$proto0["m_where"] = $obj; +$proto4=array(); +$proto4["m_sql"] = ""; +$proto4["m_uniontype"] = "SQLL_UNKNOWN"; + $obj = new SQLNonParsed(array( + "m_sql" => "" +)); + +$proto4["m_column"]=$obj; +$proto4["m_contained"] = array(); +$proto4["m_strCase"] = ""; +$proto4["m_havingmode"] = false; +$proto4["m_inBrackets"] = false; +$proto4["m_useAlias"] = false; +$obj = new SQLLogicalExpr($proto4); + +$proto0["m_having"] = $obj; +$proto0["m_fieldlist"] = array(); + $proto6=array(); + $obj = new SQLField(array( + "m_strName" => "ID", + "m_strTable" => "chat126_users1", + "m_srcTableName" => "chat126_users1" +)); + +$proto6["m_sql"] = "ID"; +$proto6["m_srcTableName"] = "chat126_users1"; +$proto6["m_expr"]=$obj; +$proto6["m_alias"] = ""; +$obj = new SQLFieldListItem($proto6); + +$proto0["m_fieldlist"][]=$obj; + $proto8=array(); + $obj = new SQLField(array( + "m_strName" => "username", + "m_strTable" => "chat126_users1", + "m_srcTableName" => "chat126_users1" +)); + +$proto8["m_sql"] = "username"; +$proto8["m_srcTableName"] = "chat126_users1"; +$proto8["m_expr"]=$obj; +$proto8["m_alias"] = ""; +$obj = new SQLFieldListItem($proto8); + +$proto0["m_fieldlist"][]=$obj; + $proto10=array(); + $obj = new SQLField(array( + "m_strName" => "password", + "m_strTable" => "chat126_users1", + "m_srcTableName" => "chat126_users1" +)); + +$proto10["m_sql"] = "password"; +$proto10["m_srcTableName"] = "chat126_users1"; +$proto10["m_expr"]=$obj; +$proto10["m_alias"] = ""; +$obj = new SQLFieldListItem($proto10); + +$proto0["m_fieldlist"][]=$obj; + $proto12=array(); + $obj = new SQLField(array( + "m_strName" => "email", + "m_strTable" => "chat126_users1", + "m_srcTableName" => "chat126_users1" +)); + +$proto12["m_sql"] = "email"; +$proto12["m_srcTableName"] = "chat126_users1"; +$proto12["m_expr"]=$obj; +$proto12["m_alias"] = ""; +$obj = new SQLFieldListItem($proto12); + +$proto0["m_fieldlist"][]=$obj; + $proto14=array(); + $obj = new SQLField(array( + "m_strName" => "fullname", + "m_strTable" => "chat126_users1", + "m_srcTableName" => "chat126_users1" +)); + +$proto14["m_sql"] = "fullname"; +$proto14["m_srcTableName"] = "chat126_users1"; +$proto14["m_expr"]=$obj; +$proto14["m_alias"] = ""; +$obj = new SQLFieldListItem($proto14); + +$proto0["m_fieldlist"][]=$obj; + $proto16=array(); + $obj = new SQLField(array( + "m_strName" => "groupid", + "m_strTable" => "chat126_users1", + "m_srcTableName" => "chat126_users1" +)); + +$proto16["m_sql"] = "groupid"; +$proto16["m_srcTableName"] = "chat126_users1"; +$proto16["m_expr"]=$obj; +$proto16["m_alias"] = ""; +$obj = new SQLFieldListItem($proto16); + +$proto0["m_fieldlist"][]=$obj; + $proto18=array(); + $obj = new SQLField(array( + "m_strName" => "active", + "m_strTable" => "chat126_users1", + "m_srcTableName" => "chat126_users1" +)); + +$proto18["m_sql"] = "active"; +$proto18["m_srcTableName"] = "chat126_users1"; +$proto18["m_expr"]=$obj; +$proto18["m_alias"] = ""; +$obj = new SQLFieldListItem($proto18); + +$proto0["m_fieldlist"][]=$obj; + $proto20=array(); + $obj = new SQLField(array( + "m_strName" => "ext_security_id", + "m_strTable" => "chat126_users1", + "m_srcTableName" => "chat126_users1" +)); + +$proto20["m_sql"] = "ext_security_id"; +$proto20["m_srcTableName"] = "chat126_users1"; +$proto20["m_expr"]=$obj; +$proto20["m_alias"] = ""; +$obj = new SQLFieldListItem($proto20); + +$proto0["m_fieldlist"][]=$obj; +$proto0["m_fromlist"] = array(); + $proto22=array(); +$proto22["m_link"] = "SQLL_MAIN"; + $proto23=array(); +$proto23["m_strName"] = "chat126_users1"; +$proto23["m_srcTableName"] = "chat126_users1"; +$proto23["m_columns"] = array(); +$proto23["m_columns"][] = "ID"; +$proto23["m_columns"][] = "username"; +$proto23["m_columns"][] = "password"; +$proto23["m_columns"][] = "email"; +$proto23["m_columns"][] = "fullname"; +$proto23["m_columns"][] = "groupid"; +$proto23["m_columns"][] = "active"; +$proto23["m_columns"][] = "ext_security_id"; +$obj = new SQLTable($proto23); + +$proto22["m_table"] = $obj; +$proto22["m_sql"] = "chat126_users1"; +$proto22["m_alias"] = ""; +$proto22["m_srcTableName"] = "chat126_users1"; +$proto24=array(); +$proto24["m_sql"] = ""; +$proto24["m_uniontype"] = "SQLL_UNKNOWN"; + $obj = new SQLNonParsed(array( + "m_sql" => "" +)); + +$proto24["m_column"]=$obj; +$proto24["m_contained"] = array(); +$proto24["m_strCase"] = ""; +$proto24["m_havingmode"] = false; +$proto24["m_inBrackets"] = false; +$proto24["m_useAlias"] = false; +$obj = new SQLLogicalExpr($proto24); + +$proto22["m_joinon"] = $obj; +$obj = new SQLFromListItem($proto22); + +$proto0["m_fromlist"][]=$obj; +$proto0["m_groupby"] = array(); +$proto0["m_orderby"] = array(); +$proto0["m_srcTableName"]="chat126_users1"; +$obj = new SQLQuery($proto0); + + return $obj; +} +$queryData_chat126_users1 = createSqlQuery_chat126_users1(); + + + + ; + + + +$tdatachat126_users1[".sqlquery"] = $queryData_chat126_users1; + + + +$tdatachat126_users1[".hasEvents"] = false; + +?> \ No newline at end of file diff --git a/php/include/chat126_users1_variables.php b/php/include/chat126_users1_variables.php new file mode 100644 index 0000000000000000000000000000000000000000..6d8af0c14de52f9aeaaaf0487efadaa7f7effcac --- /dev/null +++ b/php/include/chat126_users1_variables.php @@ -0,0 +1,13 @@ + \ No newline at end of file diff --git a/php/include/chat_files_settings.php b/php/include/chat_files_settings.php index 0c6524d86f47a25770f2e35fd42fd685059e2a01..56ad9c804d56ca6402e77b76da7b820959fa02ca 100644 --- a/php/include/chat_files_settings.php +++ b/php/include/chat_files_settings.php @@ -3,14 +3,14 @@ $tdatachat_files = array(); $tdatachat_files[".searchableFields"] = array(); $tdatachat_files[".ShortName"] = "chat_files"; $tdatachat_files[".OwnerID"] = ""; -$tdatachat_files[".OriginalTable"] = "public.chat_files"; +$tdatachat_files[".OriginalTable"] = "chat_files"; -$tdatachat_files[".pagesByType"] = my_json_decode( "{}" ); +$tdatachat_files[".pagesByType"] = my_json_decode( "{\"list\":[\"list\"],\"search\":[\"search\"]}" ); $tdatachat_files[".originalPagesByType"] = $tdatachat_files[".pagesByType"]; -$tdatachat_files[".pages"] = types2pages( my_json_decode( "{}" ) ); +$tdatachat_files[".pages"] = types2pages( my_json_decode( "{\"list\":[\"list\"],\"search\":[\"search\"]}" ) ); $tdatachat_files[".originalPages"] = $tdatachat_files[".pages"]; -$tdatachat_files[".defaultPages"] = my_json_decode( "{}" ); +$tdatachat_files[".defaultPages"] = my_json_decode( "{\"list\":\"list\",\"search\":\"search\"}" ); $tdatachat_files[".originalDefaultPages"] = $tdatachat_files[".defaultPages"]; // field labels @@ -47,11 +47,11 @@ $tdatachat_files[".shortTableName"] = "chat_files"; $tdatachat_files[".nSecOptions"] = 0; $tdatachat_files[".mainTableOwnerID"] = ""; -$tdatachat_files[".entityType"] = 1; -$tdatachat_files[".connId"] = "KnowledgeBase2_at_localhost"; +$tdatachat_files[".entityType"] = 0; +$tdatachat_files[".connId"] = "chats_at_localhost"; -$tdatachat_files[".strOriginalTableName"] = "public.chat_files"; +$tdatachat_files[".strOriginalTableName"] = "chat_files"; @@ -67,7 +67,7 @@ $tdatachat_files[".listAjax"] = false; // temporary //$tdatachat_files[".listAjax"] = false; - $tdatachat_files[".audit"] = true; + $tdatachat_files[".audit"] = false; $tdatachat_files[".locking"] = false; @@ -131,7 +131,7 @@ $tdatachat_files[".isUseAjaxSuggest"] = true; - + $tdatachat_files[".ajaxCodeSnippetAdded"] = false; @@ -187,7 +187,7 @@ $tdatachat_files[".strOrderBy"] = $tstrOrderBy; $tdatachat_files[".orderindexes"] = array(); -$tdatachat_files[".sqlHead"] = "SELECT id, messageid, files"; +$tdatachat_files[".sqlHead"] = "SELECT id, messageid, files"; $tdatachat_files[".sqlFrom"] = "FROM chat_files"; $tdatachat_files[".sqlWhereExpr"] = ""; $tdatachat_files[".sqlTail"] = ""; @@ -241,7 +241,7 @@ $tdatachat_files[".hideMobileList"] = array(); $fdata["Index"] = 1; $fdata["strName"] = "id"; $fdata["GoodName"] = "id"; - $fdata["ownerTable"] = "public.chat_files"; + $fdata["ownerTable"] = "chat_files"; $fdata["Label"] = GetFieldLabel("chat_files","id"); $fdata["FieldType"] = 3; @@ -383,7 +383,7 @@ $tdatachat_files[".hideMobileList"] = array(); $fdata["Index"] = 2; $fdata["strName"] = "messageid"; $fdata["GoodName"] = "messageid"; - $fdata["ownerTable"] = "public.chat_files"; + $fdata["ownerTable"] = "chat_files"; $fdata["Label"] = GetFieldLabel("chat_files","messageid"); $fdata["FieldType"] = 3; @@ -522,7 +522,7 @@ $tdatachat_files[".hideMobileList"] = array(); $fdata["Index"] = 3; $fdata["strName"] = "files"; $fdata["GoodName"] = "files"; - $fdata["ownerTable"] = "public.chat_files"; + $fdata["ownerTable"] = "chat_files"; $fdata["Label"] = GetFieldLabel("chat_files","files"); $fdata["FieldType"] = 200; @@ -696,7 +696,7 @@ function createSqlQuery_chat_files() { $proto0=array(); $proto0["m_strHead"] = "SELECT"; -$proto0["m_strFieldList"] = "id, messageid, files"; +$proto0["m_strFieldList"] = "id, messageid, files"; $proto0["m_strFrom"] = "FROM chat_files"; $proto0["m_strWhere"] = ""; $proto0["m_strOrderBy"] = ""; @@ -739,7 +739,7 @@ $proto0["m_fieldlist"] = array(); $proto6=array(); $obj = new SQLField(array( "m_strName" => "id", - "m_strTable" => "public.chat_files", + "m_strTable" => "chat_files", "m_srcTableName" => "chat_files" )); @@ -753,7 +753,7 @@ $proto0["m_fieldlist"][]=$obj; $proto8=array(); $obj = new SQLField(array( "m_strName" => "messageid", - "m_strTable" => "public.chat_files", + "m_strTable" => "chat_files", "m_srcTableName" => "chat_files" )); @@ -767,7 +767,7 @@ $proto0["m_fieldlist"][]=$obj; $proto10=array(); $obj = new SQLField(array( "m_strName" => "files", - "m_strTable" => "public.chat_files", + "m_strTable" => "chat_files", "m_srcTableName" => "chat_files" )); @@ -782,7 +782,7 @@ $proto0["m_fromlist"] = array(); $proto12=array(); $proto12["m_link"] = "SQLL_MAIN"; $proto13=array(); -$proto13["m_strName"] = "public.chat_files"; +$proto13["m_strName"] = "chat_files"; $proto13["m_srcTableName"] = "chat_files"; $proto13["m_columns"] = array(); $proto13["m_columns"][] = "id"; diff --git a/php/include/chat_files_variables.php b/php/include/chat_files_variables.php index d67b5cc40157806ad80699561f4b58e17a347001..645c2b66355c6ca5d3138fb7f18999f4416b940e 100644 --- a/php/include/chat_files_variables.php +++ b/php/include/chat_files_variables.php @@ -2,7 +2,7 @@ $strTableName="chat_files"; $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"]; -$strOriginalTableName="public.chat_files"; +$strOriginalTableName="chat_files"; $gstrOrderBy=""; if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by") diff --git a/php/include/chat_groups_settings.php b/php/include/chat_groups_settings.php index 89d7fd3cefa869dca6671bfc9ceaa91e32996fd3..78f25127082e630eb545a54a10ff8d1abe5f87a0 100644 --- a/php/include/chat_groups_settings.php +++ b/php/include/chat_groups_settings.php @@ -3,14 +3,14 @@ $tdatachat_groups = array(); $tdatachat_groups[".searchableFields"] = array(); $tdatachat_groups[".ShortName"] = "chat_groups"; $tdatachat_groups[".OwnerID"] = ""; -$tdatachat_groups[".OriginalTable"] = "public.chat_groups"; +$tdatachat_groups[".OriginalTable"] = "chat_groups"; -$tdatachat_groups[".pagesByType"] = my_json_decode( "{}" ); +$tdatachat_groups[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"list\":[\"list\"],\"search\":[\"search\"]}" ); $tdatachat_groups[".originalPagesByType"] = $tdatachat_groups[".pagesByType"]; -$tdatachat_groups[".pages"] = types2pages( my_json_decode( "{}" ) ); +$tdatachat_groups[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"list\":[\"list\"],\"search\":[\"search\"]}" ) ); $tdatachat_groups[".originalPages"] = $tdatachat_groups[".pages"]; -$tdatachat_groups[".defaultPages"] = my_json_decode( "{}" ); +$tdatachat_groups[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"edit\":\"edit\",\"list\":\"list\",\"search\":\"search\"}" ); $tdatachat_groups[".originalDefaultPages"] = $tdatachat_groups[".defaultPages"]; // field labels @@ -53,11 +53,11 @@ $tdatachat_groups[".shortTableName"] = "chat_groups"; $tdatachat_groups[".nSecOptions"] = 0; $tdatachat_groups[".mainTableOwnerID"] = ""; -$tdatachat_groups[".entityType"] = 1; -$tdatachat_groups[".connId"] = "KnowledgeBase2_at_localhost"; +$tdatachat_groups[".entityType"] = 0; +$tdatachat_groups[".connId"] = "chats_at_localhost"; -$tdatachat_groups[".strOriginalTableName"] = "public.chat_groups"; +$tdatachat_groups[".strOriginalTableName"] = "chat_groups"; @@ -73,7 +73,7 @@ $tdatachat_groups[".listAjax"] = false; // temporary //$tdatachat_groups[".listAjax"] = false; - $tdatachat_groups[".audit"] = true; + $tdatachat_groups[".audit"] = false; $tdatachat_groups[".locking"] = false; @@ -137,7 +137,7 @@ $tdatachat_groups[".isUseAjaxSuggest"] = true; - + $tdatachat_groups[".ajaxCodeSnippetAdded"] = false; @@ -195,7 +195,7 @@ $tdatachat_groups[".strOrderBy"] = $tstrOrderBy; $tdatachat_groups[".orderindexes"] = array(); -$tdatachat_groups[".sqlHead"] = "SELECT id, groupname, targetid, grouptype, ownerid"; +$tdatachat_groups[".sqlHead"] = "SELECT id, groupname, targetid, grouptype, ownerid"; $tdatachat_groups[".sqlFrom"] = "FROM chat_groups"; $tdatachat_groups[".sqlWhereExpr"] = ""; $tdatachat_groups[".sqlTail"] = ""; @@ -249,7 +249,7 @@ $tdatachat_groups[".hideMobileList"] = array(); $fdata["Index"] = 1; $fdata["strName"] = "id"; $fdata["GoodName"] = "id"; - $fdata["ownerTable"] = "public.chat_groups"; + $fdata["ownerTable"] = "chat_groups"; $fdata["Label"] = GetFieldLabel("chat_groups","id"); $fdata["FieldType"] = 3; @@ -391,7 +391,7 @@ $tdatachat_groups[".hideMobileList"] = array(); $fdata["Index"] = 2; $fdata["strName"] = "groupname"; $fdata["GoodName"] = "groupname"; - $fdata["ownerTable"] = "public.chat_groups"; + $fdata["ownerTable"] = "chat_groups"; $fdata["Label"] = GetFieldLabel("chat_groups","groupname"); $fdata["FieldType"] = 200; @@ -530,7 +530,7 @@ $tdatachat_groups[".hideMobileList"] = array(); $fdata["Index"] = 3; $fdata["strName"] = "targetid"; $fdata["GoodName"] = "targetid"; - $fdata["ownerTable"] = "public.chat_groups"; + $fdata["ownerTable"] = "chat_groups"; $fdata["Label"] = GetFieldLabel("chat_groups","targetid"); $fdata["FieldType"] = 200; @@ -683,7 +683,7 @@ $tdatachat_groups[".hideMobileList"] = array(); $fdata["Index"] = 4; $fdata["strName"] = "grouptype"; $fdata["GoodName"] = "grouptype"; - $fdata["ownerTable"] = "public.chat_groups"; + $fdata["ownerTable"] = "chat_groups"; $fdata["Label"] = GetFieldLabel("chat_groups","grouptype"); $fdata["FieldType"] = 3; @@ -847,7 +847,7 @@ $tdatachat_groups[".hideMobileList"] = array(); $fdata["Index"] = 5; $fdata["strName"] = "ownerid"; $fdata["GoodName"] = "ownerid"; - $fdata["ownerTable"] = "public.chat_groups"; + $fdata["ownerTable"] = "chat_groups"; $fdata["Label"] = GetFieldLabel("chat_groups","ownerid"); $fdata["FieldType"] = 200; @@ -1024,7 +1024,7 @@ function createSqlQuery_chat_groups() { $proto0=array(); $proto0["m_strHead"] = "SELECT"; -$proto0["m_strFieldList"] = "id, groupname, targetid, grouptype, ownerid"; +$proto0["m_strFieldList"] = "id, groupname, targetid, grouptype, ownerid"; $proto0["m_strFrom"] = "FROM chat_groups"; $proto0["m_strWhere"] = ""; $proto0["m_strOrderBy"] = ""; @@ -1067,7 +1067,7 @@ $proto0["m_fieldlist"] = array(); $proto6=array(); $obj = new SQLField(array( "m_strName" => "id", - "m_strTable" => "public.chat_groups", + "m_strTable" => "chat_groups", "m_srcTableName" => "chat_groups" )); @@ -1081,7 +1081,7 @@ $proto0["m_fieldlist"][]=$obj; $proto8=array(); $obj = new SQLField(array( "m_strName" => "groupname", - "m_strTable" => "public.chat_groups", + "m_strTable" => "chat_groups", "m_srcTableName" => "chat_groups" )); @@ -1095,7 +1095,7 @@ $proto0["m_fieldlist"][]=$obj; $proto10=array(); $obj = new SQLField(array( "m_strName" => "targetid", - "m_strTable" => "public.chat_groups", + "m_strTable" => "chat_groups", "m_srcTableName" => "chat_groups" )); @@ -1109,7 +1109,7 @@ $proto0["m_fieldlist"][]=$obj; $proto12=array(); $obj = new SQLField(array( "m_strName" => "grouptype", - "m_strTable" => "public.chat_groups", + "m_strTable" => "chat_groups", "m_srcTableName" => "chat_groups" )); @@ -1123,7 +1123,7 @@ $proto0["m_fieldlist"][]=$obj; $proto14=array(); $obj = new SQLField(array( "m_strName" => "ownerid", - "m_strTable" => "public.chat_groups", + "m_strTable" => "chat_groups", "m_srcTableName" => "chat_groups" )); @@ -1138,7 +1138,7 @@ $proto0["m_fromlist"] = array(); $proto16=array(); $proto16["m_link"] = "SQLL_MAIN"; $proto17=array(); -$proto17["m_strName"] = "public.chat_groups"; +$proto17["m_strName"] = "chat_groups"; $proto17["m_srcTableName"] = "chat_groups"; $proto17["m_columns"] = array(); $proto17["m_columns"][] = "id"; diff --git a/php/include/chat_groups_variables.php b/php/include/chat_groups_variables.php index ebc89c0f726a3ea7e018a2f9b6c25bb8973aad5d..c0fde4509590190968868c706ea01d90560195d3 100644 --- a/php/include/chat_groups_variables.php +++ b/php/include/chat_groups_variables.php @@ -2,7 +2,7 @@ $strTableName="chat_groups"; $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"]; -$strOriginalTableName="public.chat_groups"; +$strOriginalTableName="chat_groups"; $gstrOrderBy=""; if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by") diff --git a/php/include/chat_history_events.php b/php/include/chat_history_events.php index ae0472f999c89acb71b1be46589d89293050bd87..8c09127918c55c03898d2c1c89d0cbbf5c65feaf 100644 --- a/php/include/chat_history_events.php +++ b/php/include/chat_history_events.php @@ -42,8 +42,6 @@ if(!count($userdata)){ die(); } - - $_SESSION["loginTime"] = 10; $_SESSION["scrollStep"] = 14; $res = array(); @@ -303,7 +301,7 @@ if(postvalue("a") == "getchatinfo"){ $res["targetid"] = $_SESSION["targetid"]; $res["currentUserNameStatus"] = getUserStatusHeader($_SESSION["targetid"]); $res["msg"] = getMessage($isStart); - $res["video"] = 1;//getVideoCallData(); + $res["video"] = getVideoCallData(); $res["isVideoCall"] = ""; if(count($res)) $res["isVideoCall"] = $res["video"]["isVideo"]; diff --git a/php/include/chat_history_settings.php b/php/include/chat_history_settings.php index 8cd2acb0027ac0d32c061e6014db289175a14714..1a780a31b6026f8874597d172f14c885a942267e 100644 --- a/php/include/chat_history_settings.php +++ b/php/include/chat_history_settings.php @@ -3,14 +3,14 @@ $tdatachat_history = array(); $tdatachat_history[".searchableFields"] = array(); $tdatachat_history[".ShortName"] = "chat_history"; $tdatachat_history[".OwnerID"] = ""; -$tdatachat_history[".OriginalTable"] = "public.chat_history"; +$tdatachat_history[".OriginalTable"] = "chat_history"; -$tdatachat_history[".pagesByType"] = my_json_decode( "{}" ); +$tdatachat_history[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"search\":[\"search\"]}" ); $tdatachat_history[".originalPagesByType"] = $tdatachat_history[".pagesByType"]; -$tdatachat_history[".pages"] = types2pages( my_json_decode( "{}" ) ); +$tdatachat_history[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"search\":[\"search\"]}" ) ); $tdatachat_history[".originalPages"] = $tdatachat_history[".pages"]; -$tdatachat_history[".defaultPages"] = my_json_decode( "{}" ); +$tdatachat_history[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"search\":\"search\"}" ); $tdatachat_history[".originalDefaultPages"] = $tdatachat_history[".defaultPages"]; // field labels @@ -58,15 +58,7 @@ if(mlang_getcurrentlang()=="English") $fieldLabelschat_history["English"]["isVideo"] = "Is Video"; $fieldToolTipschat_history["English"]["isVideo"] = ""; $placeHolderschat_history["English"]["isVideo"] = ""; - $fieldLabelschat_history["English"]["question"] = "Question"; - $fieldToolTipschat_history["English"]["question"] = ""; - $placeHolderschat_history["English"]["question"] = ""; - $fieldLabelschat_history["English"]["answer"] = "Answer"; - $fieldToolTipschat_history["English"]["answer"] = ""; - $placeHolderschat_history["English"]["answer"] = ""; - $fieldLabelschat_history["English"]["category"] = "Category"; - $fieldToolTipschat_history["English"]["category"] = ""; - $placeHolderschat_history["English"]["category"] = ""; + $pageTitleschat_history["English"]["add"] = "Chat History"; if (count($fieldToolTipschat_history["English"])) $tdatachat_history[".isUseToolTips"] = true; } @@ -80,11 +72,11 @@ $tdatachat_history[".shortTableName"] = "chat_history"; $tdatachat_history[".nSecOptions"] = 0; $tdatachat_history[".mainTableOwnerID"] = ""; -$tdatachat_history[".entityType"] = 1; -$tdatachat_history[".connId"] = "KnowledgeBase2_at_localhost"; +$tdatachat_history[".entityType"] = 0; +$tdatachat_history[".connId"] = "chats_at_localhost"; -$tdatachat_history[".strOriginalTableName"] = "public.chat_history"; +$tdatachat_history[".strOriginalTableName"] = "chat_history"; @@ -100,7 +92,7 @@ $tdatachat_history[".listAjax"] = false; // temporary //$tdatachat_history[".listAjax"] = false; - $tdatachat_history[".audit"] = true; + $tdatachat_history[".audit"] = false; $tdatachat_history[".locking"] = false; @@ -164,7 +156,7 @@ $tdatachat_history[".isUseAjaxSuggest"] = true; - + $tdatachat_history[".ajaxCodeSnippetAdded"] = false; @@ -195,9 +187,6 @@ $tdatachat_history[".googleLikeFields"][] = "tmp_file"; $tdatachat_history[".googleLikeFields"][] = "status"; $tdatachat_history[".googleLikeFields"][] = "status_created"; $tdatachat_history[".googleLikeFields"][] = "isVideo"; -$tdatachat_history[".googleLikeFields"][] = "question"; -$tdatachat_history[".googleLikeFields"][] = "answer"; -$tdatachat_history[".googleLikeFields"][] = "category"; @@ -230,8 +219,8 @@ $tdatachat_history[".strOrderBy"] = $tstrOrderBy; $tdatachat_history[".orderindexes"] = array(); -$tdatachat_history[".sqlHead"] = "SELECT id, messages, ownerid, created, isread, targetid, tmp_file, status, status_created, \"soundRecord\", \"isVideo\", question, answer, category"; -$tdatachat_history[".sqlFrom"] = "FROM \"public\".chat_history"; +$tdatachat_history[".sqlHead"] = "SELECT id, messages, ownerid, created, isread, targetid, tmp_file, status, status_created, soundRecord, isVideo"; +$tdatachat_history[".sqlFrom"] = "FROM chat_history"; $tdatachat_history[".sqlWhereExpr"] = ""; $tdatachat_history[".sqlTail"] = ""; @@ -284,7 +273,7 @@ $tdatachat_history[".hideMobileList"] = array(); $fdata["Index"] = 1; $fdata["strName"] = "id"; $fdata["GoodName"] = "id"; - $fdata["ownerTable"] = "public.chat_history"; + $fdata["ownerTable"] = "chat_history"; $fdata["Label"] = GetFieldLabel("chat_history","id"); $fdata["FieldType"] = 3; @@ -426,7 +415,7 @@ $tdatachat_history[".hideMobileList"] = array(); $fdata["Index"] = 2; $fdata["strName"] = "messages"; $fdata["GoodName"] = "messages"; - $fdata["ownerTable"] = "public.chat_history"; + $fdata["ownerTable"] = "chat_history"; $fdata["Label"] = GetFieldLabel("chat_history","messages"); $fdata["FieldType"] = 200; @@ -567,7 +556,7 @@ $tdatachat_history[".hideMobileList"] = array(); $fdata["Index"] = 3; $fdata["strName"] = "ownerid"; $fdata["GoodName"] = "ownerid"; - $fdata["ownerTable"] = "public.chat_history"; + $fdata["ownerTable"] = "chat_history"; $fdata["Label"] = GetFieldLabel("chat_history","ownerid"); $fdata["FieldType"] = 200; @@ -706,7 +695,7 @@ $tdatachat_history[".hideMobileList"] = array(); $fdata["Index"] = 4; $fdata["strName"] = "created"; $fdata["GoodName"] = "created"; - $fdata["ownerTable"] = "public.chat_history"; + $fdata["ownerTable"] = "chat_history"; $fdata["Label"] = GetFieldLabel("chat_history","created"); $fdata["FieldType"] = 200; @@ -845,7 +834,7 @@ $tdatachat_history[".hideMobileList"] = array(); $fdata["Index"] = 5; $fdata["strName"] = "isread"; $fdata["GoodName"] = "isread"; - $fdata["ownerTable"] = "public.chat_history"; + $fdata["ownerTable"] = "chat_history"; $fdata["Label"] = GetFieldLabel("chat_history","isread"); $fdata["FieldType"] = 200; @@ -984,7 +973,7 @@ $tdatachat_history[".hideMobileList"] = array(); $fdata["Index"] = 6; $fdata["strName"] = "targetid"; $fdata["GoodName"] = "targetid"; - $fdata["ownerTable"] = "public.chat_history"; + $fdata["ownerTable"] = "chat_history"; $fdata["Label"] = GetFieldLabel("chat_history","targetid"); $fdata["FieldType"] = 200; @@ -1123,7 +1112,7 @@ $tdatachat_history[".hideMobileList"] = array(); $fdata["Index"] = 7; $fdata["strName"] = "tmp_file"; $fdata["GoodName"] = "tmp_file"; - $fdata["ownerTable"] = "public.chat_history"; + $fdata["ownerTable"] = "chat_history"; $fdata["Label"] = GetFieldLabel("chat_history","tmp_file"); $fdata["FieldType"] = 200; @@ -1262,7 +1251,7 @@ $tdatachat_history[".hideMobileList"] = array(); $fdata["Index"] = 8; $fdata["strName"] = "status"; $fdata["GoodName"] = "status"; - $fdata["ownerTable"] = "public.chat_history"; + $fdata["ownerTable"] = "chat_history"; $fdata["Label"] = GetFieldLabel("chat_history","status"); $fdata["FieldType"] = 200; @@ -1401,7 +1390,7 @@ $tdatachat_history[".hideMobileList"] = array(); $fdata["Index"] = 9; $fdata["strName"] = "status_created"; $fdata["GoodName"] = "status_created"; - $fdata["ownerTable"] = "public.chat_history"; + $fdata["ownerTable"] = "chat_history"; $fdata["Label"] = GetFieldLabel("chat_history","status_created"); $fdata["FieldType"] = 200; @@ -1540,7 +1529,7 @@ $tdatachat_history[".hideMobileList"] = array(); $fdata["Index"] = 10; $fdata["strName"] = "soundRecord"; $fdata["GoodName"] = "soundRecord"; - $fdata["ownerTable"] = "public.chat_history"; + $fdata["ownerTable"] = "chat_history"; $fdata["Label"] = GetFieldLabel("chat_history","soundRecord"); $fdata["FieldType"] = 128; @@ -1555,7 +1544,7 @@ $tdatachat_history[".hideMobileList"] = array(); $fdata["isSQLExpression"] = true; - $fdata["FullName"] = "\"soundRecord\""; + $fdata["FullName"] = "soundRecord"; @@ -1687,7 +1676,7 @@ $tdatachat_history[".hideMobileList"] = array(); $fdata["Index"] = 11; $fdata["strName"] = "isVideo"; $fdata["GoodName"] = "isVideo"; - $fdata["ownerTable"] = "public.chat_history"; + $fdata["ownerTable"] = "chat_history"; $fdata["Label"] = GetFieldLabel("chat_history","isVideo"); $fdata["FieldType"] = 3; @@ -1702,7 +1691,7 @@ $tdatachat_history[".hideMobileList"] = array(); $fdata["isSQLExpression"] = true; - $fdata["FullName"] = "\"isVideo\""; + $fdata["FullName"] = "isVideo"; @@ -1820,429 +1809,6 @@ $tdatachat_history[".hideMobileList"] = array(); $tdatachat_history["isVideo"] = $fdata; $tdatachat_history[".searchableFields"][] = "isVideo"; -// question -// Custom field settings - $fdata = array(); - $fdata["Index"] = 12; - $fdata["strName"] = "question"; - $fdata["GoodName"] = "question"; - $fdata["ownerTable"] = "public.chat_history"; - $fdata["Label"] = GetFieldLabel("chat_history","question"); - $fdata["FieldType"] = 201; - - - - - - - $fdata["strField"] = "question"; - - $fdata["sourceSingle"] = "question"; - - - $fdata["isSQLExpression"] = true; - $fdata["FullName"] = "question"; - - - - $fdata["UploadFolder"] = "files"; - -// Begin View Formats - $fdata["ViewFormats"] = array(); - - $vdata = array("ViewFormat" => ""); - - - - - - - - - - - - - - - - $vdata["NeedEncode"] = true; - - - $vdata["truncateText"] = true; - $vdata["NumberOfChars"] = 80; - - $fdata["ViewFormats"]["view"] = $vdata; -// End View Formats - -// Begin Edit Formats - $fdata["EditFormats"] = array(); - - $edata = array("EditFormat" => "Text area"); - - - $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text"); - $edata["weekdays"] = "[]"; - - - - - - - - - - - - $edata["acceptFileTypesHtml"] = ""; - - $edata["maxNumberOfFiles"] = 0; - - - - - $edata["nRows"] = 100; - $edata["nCols"] = 200; - - - - $edata["controlWidth"] = 200; - -// Begin validation - $edata["validateAs"] = array(); - $edata["validateAs"]["basicValidate"] = array(); - $edata["validateAs"]["customMessages"] = array(); - - -// End validation - - $edata["CreateThumbnail"] = true; - $edata["StrThumbnail"] = "th"; - $edata["ThumbnailSize"] = 600; - - - - - - $fdata["EditFormats"]["edit"] = $edata; -// End Edit Formats - - - $fdata["isSeparate"] = false; - - - - -// the field's search options settings - $fdata["defaultSearchOption"] = "Contains"; - - // the default search options list - $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY); -// the end of search options settings - - -//Filters settings - $fdata["filterTotals"] = 0; - $fdata["filterMultiSelect"] = 0; - $fdata["filterFormat"] = "Values list"; - $fdata["showCollapsed"] = false; - - $fdata["sortValueType"] = 0; - $fdata["numberOfVisibleItems"] = 10; - - $fdata["filterBy"] = 0; - - - - - -//end of Filters settings - - - $tdatachat_history["question"] = $fdata; - $tdatachat_history[".searchableFields"][] = "question"; -// answer -// Custom field settings - $fdata = array(); - $fdata["Index"] = 13; - $fdata["strName"] = "answer"; - $fdata["GoodName"] = "answer"; - $fdata["ownerTable"] = "public.chat_history"; - $fdata["Label"] = GetFieldLabel("chat_history","answer"); - $fdata["FieldType"] = 201; - - - - - - - $fdata["strField"] = "answer"; - - $fdata["sourceSingle"] = "answer"; - - - $fdata["isSQLExpression"] = true; - $fdata["FullName"] = "answer"; - - - - $fdata["UploadFolder"] = "files"; - -// Begin View Formats - $fdata["ViewFormats"] = array(); - - $vdata = array("ViewFormat" => ""); - - - - - - - - - - - - - - - - $vdata["NeedEncode"] = true; - - - $vdata["truncateText"] = true; - $vdata["NumberOfChars"] = 80; - - $fdata["ViewFormats"]["view"] = $vdata; -// End View Formats - -// Begin Edit Formats - $fdata["EditFormats"] = array(); - - $edata = array("EditFormat" => "Text area"); - - - $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text"); - $edata["weekdays"] = "[]"; - - - - - - - - - - - - $edata["acceptFileTypesHtml"] = ""; - - $edata["maxNumberOfFiles"] = 0; - - - - - $edata["nRows"] = 100; - $edata["nCols"] = 200; - - - - $edata["controlWidth"] = 200; - -// Begin validation - $edata["validateAs"] = array(); - $edata["validateAs"]["basicValidate"] = array(); - $edata["validateAs"]["customMessages"] = array(); - - -// End validation - - $edata["CreateThumbnail"] = true; - $edata["StrThumbnail"] = "th"; - $edata["ThumbnailSize"] = 600; - - - - - - $fdata["EditFormats"]["edit"] = $edata; -// End Edit Formats - - - $fdata["isSeparate"] = false; - - - - -// the field's search options settings - $fdata["defaultSearchOption"] = "Contains"; - - // the default search options list - $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY); -// the end of search options settings - - -//Filters settings - $fdata["filterTotals"] = 0; - $fdata["filterMultiSelect"] = 0; - $fdata["filterFormat"] = "Values list"; - $fdata["showCollapsed"] = false; - - $fdata["sortValueType"] = 0; - $fdata["numberOfVisibleItems"] = 10; - - $fdata["filterBy"] = 0; - - - - - -//end of Filters settings - - - $tdatachat_history["answer"] = $fdata; - $tdatachat_history[".searchableFields"][] = "answer"; -// category -// Custom field settings - $fdata = array(); - $fdata["Index"] = 14; - $fdata["strName"] = "category"; - $fdata["GoodName"] = "category"; - $fdata["ownerTable"] = "public.chat_history"; - $fdata["Label"] = GetFieldLabel("chat_history","category"); - $fdata["FieldType"] = 201; - - - - - - - $fdata["strField"] = "category"; - - $fdata["sourceSingle"] = "category"; - - - $fdata["isSQLExpression"] = true; - $fdata["FullName"] = "category"; - - - - $fdata["UploadFolder"] = "files"; - -// Begin View Formats - $fdata["ViewFormats"] = array(); - - $vdata = array("ViewFormat" => ""); - - - - - - - - - - - - - - - - $vdata["NeedEncode"] = true; - - - $vdata["truncateText"] = true; - $vdata["NumberOfChars"] = 80; - - $fdata["ViewFormats"]["view"] = $vdata; -// End View Formats - -// Begin Edit Formats - $fdata["EditFormats"] = array(); - - $edata = array("EditFormat" => "Text area"); - - - $edata["weekdayMessage"] = array("message" => "", "messageType" => "Text"); - $edata["weekdays"] = "[]"; - - - - - - - - - - - - $edata["acceptFileTypesHtml"] = ""; - - $edata["maxNumberOfFiles"] = 0; - - - - - $edata["nRows"] = 100; - $edata["nCols"] = 200; - - - - $edata["controlWidth"] = 200; - -// Begin validation - $edata["validateAs"] = array(); - $edata["validateAs"]["basicValidate"] = array(); - $edata["validateAs"]["customMessages"] = array(); - - -// End validation - - $edata["CreateThumbnail"] = true; - $edata["StrThumbnail"] = "th"; - $edata["ThumbnailSize"] = 600; - - - - - - $fdata["EditFormats"]["edit"] = $edata; -// End Edit Formats - - - $fdata["isSeparate"] = false; - - - - -// the field's search options settings - $fdata["defaultSearchOption"] = "Contains"; - - // the default search options list - $fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY); -// the end of search options settings - - -//Filters settings - $fdata["filterTotals"] = 0; - $fdata["filterMultiSelect"] = 0; - $fdata["filterFormat"] = "Values list"; - $fdata["showCollapsed"] = false; - - $fdata["sortValueType"] = 0; - $fdata["numberOfVisibleItems"] = 10; - - $fdata["filterBy"] = 0; - - - - - -//end of Filters settings - - - $tdatachat_history["category"] = $fdata; - $tdatachat_history[".searchableFields"][] = "category"; $tables_data["chat_history"]=&$tdatachat_history; @@ -2287,8 +1853,8 @@ function createSqlQuery_chat_history() { $proto0=array(); $proto0["m_strHead"] = "SELECT"; -$proto0["m_strFieldList"] = "id, messages, ownerid, created, isread, targetid, tmp_file, status, status_created, \"soundRecord\", \"isVideo\", question, answer, category"; -$proto0["m_strFrom"] = "FROM \"public\".chat_history"; +$proto0["m_strFieldList"] = "id, messages, ownerid, created, isread, targetid, tmp_file, status, status_created, soundRecord, isVideo"; +$proto0["m_strFrom"] = "FROM chat_history"; $proto0["m_strWhere"] = ""; $proto0["m_strOrderBy"] = ""; @@ -2330,7 +1896,7 @@ $proto0["m_fieldlist"] = array(); $proto6=array(); $obj = new SQLField(array( "m_strName" => "id", - "m_strTable" => "public.chat_history", + "m_strTable" => "chat_history", "m_srcTableName" => "chat_history" )); @@ -2344,7 +1910,7 @@ $proto0["m_fieldlist"][]=$obj; $proto8=array(); $obj = new SQLField(array( "m_strName" => "messages", - "m_strTable" => "public.chat_history", + "m_strTable" => "chat_history", "m_srcTableName" => "chat_history" )); @@ -2358,7 +1924,7 @@ $proto0["m_fieldlist"][]=$obj; $proto10=array(); $obj = new SQLField(array( "m_strName" => "ownerid", - "m_strTable" => "public.chat_history", + "m_strTable" => "chat_history", "m_srcTableName" => "chat_history" )); @@ -2372,7 +1938,7 @@ $proto0["m_fieldlist"][]=$obj; $proto12=array(); $obj = new SQLField(array( "m_strName" => "created", - "m_strTable" => "public.chat_history", + "m_strTable" => "chat_history", "m_srcTableName" => "chat_history" )); @@ -2386,7 +1952,7 @@ $proto0["m_fieldlist"][]=$obj; $proto14=array(); $obj = new SQLField(array( "m_strName" => "isread", - "m_strTable" => "public.chat_history", + "m_strTable" => "chat_history", "m_srcTableName" => "chat_history" )); @@ -2400,7 +1966,7 @@ $proto0["m_fieldlist"][]=$obj; $proto16=array(); $obj = new SQLField(array( "m_strName" => "targetid", - "m_strTable" => "public.chat_history", + "m_strTable" => "chat_history", "m_srcTableName" => "chat_history" )); @@ -2414,7 +1980,7 @@ $proto0["m_fieldlist"][]=$obj; $proto18=array(); $obj = new SQLField(array( "m_strName" => "tmp_file", - "m_strTable" => "public.chat_history", + "m_strTable" => "chat_history", "m_srcTableName" => "chat_history" )); @@ -2428,7 +1994,7 @@ $proto0["m_fieldlist"][]=$obj; $proto20=array(); $obj = new SQLField(array( "m_strName" => "status", - "m_strTable" => "public.chat_history", + "m_strTable" => "chat_history", "m_srcTableName" => "chat_history" )); @@ -2442,7 +2008,7 @@ $proto0["m_fieldlist"][]=$obj; $proto22=array(); $obj = new SQLField(array( "m_strName" => "status_created", - "m_strTable" => "public.chat_history", + "m_strTable" => "chat_history", "m_srcTableName" => "chat_history" )); @@ -2456,11 +2022,11 @@ $proto0["m_fieldlist"][]=$obj; $proto24=array(); $obj = new SQLField(array( "m_strName" => "soundRecord", - "m_strTable" => "public.chat_history", + "m_strTable" => "chat_history", "m_srcTableName" => "chat_history" )); -$proto24["m_sql"] = "\"soundRecord\""; +$proto24["m_sql"] = "soundRecord"; $proto24["m_srcTableName"] = "chat_history"; $proto24["m_expr"]=$obj; $proto24["m_alias"] = ""; @@ -2470,103 +2036,58 @@ $proto0["m_fieldlist"][]=$obj; $proto26=array(); $obj = new SQLField(array( "m_strName" => "isVideo", - "m_strTable" => "public.chat_history", + "m_strTable" => "chat_history", "m_srcTableName" => "chat_history" )); -$proto26["m_sql"] = "\"isVideo\""; +$proto26["m_sql"] = "isVideo"; $proto26["m_srcTableName"] = "chat_history"; $proto26["m_expr"]=$obj; $proto26["m_alias"] = ""; $obj = new SQLFieldListItem($proto26); -$proto0["m_fieldlist"][]=$obj; - $proto28=array(); - $obj = new SQLField(array( - "m_strName" => "question", - "m_strTable" => "public.chat_history", - "m_srcTableName" => "chat_history" -)); - -$proto28["m_sql"] = "question"; -$proto28["m_srcTableName"] = "chat_history"; -$proto28["m_expr"]=$obj; -$proto28["m_alias"] = ""; -$obj = new SQLFieldListItem($proto28); - -$proto0["m_fieldlist"][]=$obj; - $proto30=array(); - $obj = new SQLField(array( - "m_strName" => "answer", - "m_strTable" => "public.chat_history", - "m_srcTableName" => "chat_history" -)); - -$proto30["m_sql"] = "answer"; -$proto30["m_srcTableName"] = "chat_history"; -$proto30["m_expr"]=$obj; -$proto30["m_alias"] = ""; -$obj = new SQLFieldListItem($proto30); - -$proto0["m_fieldlist"][]=$obj; - $proto32=array(); - $obj = new SQLField(array( - "m_strName" => "category", - "m_strTable" => "public.chat_history", - "m_srcTableName" => "chat_history" -)); - -$proto32["m_sql"] = "category"; -$proto32["m_srcTableName"] = "chat_history"; -$proto32["m_expr"]=$obj; -$proto32["m_alias"] = ""; -$obj = new SQLFieldListItem($proto32); - $proto0["m_fieldlist"][]=$obj; $proto0["m_fromlist"] = array(); - $proto34=array(); -$proto34["m_link"] = "SQLL_MAIN"; - $proto35=array(); -$proto35["m_strName"] = "public.chat_history"; -$proto35["m_srcTableName"] = "chat_history"; -$proto35["m_columns"] = array(); -$proto35["m_columns"][] = "id"; -$proto35["m_columns"][] = "messages"; -$proto35["m_columns"][] = "ownerid"; -$proto35["m_columns"][] = "created"; -$proto35["m_columns"][] = "isread"; -$proto35["m_columns"][] = "targetid"; -$proto35["m_columns"][] = "tmp_file"; -$proto35["m_columns"][] = "status"; -$proto35["m_columns"][] = "status_created"; -$proto35["m_columns"][] = "soundRecord"; -$proto35["m_columns"][] = "isVideo"; -$proto35["m_columns"][] = "question"; -$proto35["m_columns"][] = "answer"; -$proto35["m_columns"][] = "category"; -$obj = new SQLTable($proto35); - -$proto34["m_table"] = $obj; -$proto34["m_sql"] = "\"public\".chat_history"; -$proto34["m_alias"] = ""; -$proto34["m_srcTableName"] = "chat_history"; -$proto36=array(); -$proto36["m_sql"] = ""; -$proto36["m_uniontype"] = "SQLL_UNKNOWN"; + $proto28=array(); +$proto28["m_link"] = "SQLL_MAIN"; + $proto29=array(); +$proto29["m_strName"] = "chat_history"; +$proto29["m_srcTableName"] = "chat_history"; +$proto29["m_columns"] = array(); +$proto29["m_columns"][] = "id"; +$proto29["m_columns"][] = "messages"; +$proto29["m_columns"][] = "ownerid"; +$proto29["m_columns"][] = "created"; +$proto29["m_columns"][] = "isread"; +$proto29["m_columns"][] = "targetid"; +$proto29["m_columns"][] = "tmp_file"; +$proto29["m_columns"][] = "status"; +$proto29["m_columns"][] = "status_created"; +$proto29["m_columns"][] = "soundRecord"; +$proto29["m_columns"][] = "isVideo"; +$obj = new SQLTable($proto29); + +$proto28["m_table"] = $obj; +$proto28["m_sql"] = "chat_history"; +$proto28["m_alias"] = ""; +$proto28["m_srcTableName"] = "chat_history"; +$proto30=array(); +$proto30["m_sql"] = ""; +$proto30["m_uniontype"] = "SQLL_UNKNOWN"; $obj = new SQLNonParsed(array( "m_sql" => "" )); -$proto36["m_column"]=$obj; -$proto36["m_contained"] = array(); -$proto36["m_strCase"] = ""; -$proto36["m_havingmode"] = false; -$proto36["m_inBrackets"] = false; -$proto36["m_useAlias"] = false; -$obj = new SQLLogicalExpr($proto36); +$proto30["m_column"]=$obj; +$proto30["m_contained"] = array(); +$proto30["m_strCase"] = ""; +$proto30["m_havingmode"] = false; +$proto30["m_inBrackets"] = false; +$proto30["m_useAlias"] = false; +$obj = new SQLLogicalExpr($proto30); -$proto34["m_joinon"] = $obj; -$obj = new SQLFromListItem($proto34); +$proto28["m_joinon"] = $obj; +$obj = new SQLFromListItem($proto28); $proto0["m_fromlist"][]=$obj; $proto0["m_groupby"] = array(); @@ -2582,7 +2103,7 @@ $queryData_chat_history = createSqlQuery_chat_history(); ; - + $tdatachat_history[".sqlquery"] = $queryData_chat_history; diff --git a/php/include/chat_history_variables.php b/php/include/chat_history_variables.php index 2feb1e630b6c20d1f6044c07abe0192ca76d98bc..489230f44d6edd6d99ffa1f508ddbf29a32515aa 100644 --- a/php/include/chat_history_variables.php +++ b/php/include/chat_history_variables.php @@ -2,7 +2,7 @@ $strTableName="chat_history"; $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"]; -$strOriginalTableName="public.chat_history"; +$strOriginalTableName="chat_history"; $gstrOrderBy=""; if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by") diff --git a/php/include/chat_peopletype_settings.php b/php/include/chat_peopletype_settings.php index f59fd1620c2abaa738388d2d5d97fbace42d72b7..995bd33efc3da971146ed4be0039dad753724953 100644 --- a/php/include/chat_peopletype_settings.php +++ b/php/include/chat_peopletype_settings.php @@ -3,14 +3,14 @@ $tdatachat_peopletype = array(); $tdatachat_peopletype[".searchableFields"] = array(); $tdatachat_peopletype[".ShortName"] = "chat_peopletype"; $tdatachat_peopletype[".OwnerID"] = ""; -$tdatachat_peopletype[".OriginalTable"] = "public.chat_peopletype"; +$tdatachat_peopletype[".OriginalTable"] = "chat_peopletype"; -$tdatachat_peopletype[".pagesByType"] = my_json_decode( "{}" ); +$tdatachat_peopletype[".pagesByType"] = my_json_decode( "{\"search\":[\"search\"]}" ); $tdatachat_peopletype[".originalPagesByType"] = $tdatachat_peopletype[".pagesByType"]; -$tdatachat_peopletype[".pages"] = types2pages( my_json_decode( "{}" ) ); +$tdatachat_peopletype[".pages"] = types2pages( my_json_decode( "{\"search\":[\"search\"]}" ) ); $tdatachat_peopletype[".originalPages"] = $tdatachat_peopletype[".pages"]; -$tdatachat_peopletype[".defaultPages"] = my_json_decode( "{}" ); +$tdatachat_peopletype[".defaultPages"] = my_json_decode( "{\"search\":\"search\"}" ); $tdatachat_peopletype[".originalDefaultPages"] = $tdatachat_peopletype[".defaultPages"]; // field labels @@ -44,11 +44,11 @@ $tdatachat_peopletype[".shortTableName"] = "chat_peopletype"; $tdatachat_peopletype[".nSecOptions"] = 0; $tdatachat_peopletype[".mainTableOwnerID"] = ""; -$tdatachat_peopletype[".entityType"] = 1; -$tdatachat_peopletype[".connId"] = "KnowledgeBase2_at_localhost"; +$tdatachat_peopletype[".entityType"] = 0; +$tdatachat_peopletype[".connId"] = "chats_at_localhost"; -$tdatachat_peopletype[".strOriginalTableName"] = "public.chat_peopletype"; +$tdatachat_peopletype[".strOriginalTableName"] = "chat_peopletype"; @@ -64,7 +64,7 @@ $tdatachat_peopletype[".listAjax"] = false; // temporary //$tdatachat_peopletype[".listAjax"] = false; - $tdatachat_peopletype[".audit"] = true; + $tdatachat_peopletype[".audit"] = false; $tdatachat_peopletype[".locking"] = false; @@ -128,7 +128,7 @@ $tdatachat_peopletype[".isUseAjaxSuggest"] = true; - + $tdatachat_peopletype[".ajaxCodeSnippetAdded"] = false; @@ -183,7 +183,7 @@ $tdatachat_peopletype[".strOrderBy"] = $tstrOrderBy; $tdatachat_peopletype[".orderindexes"] = array(); -$tdatachat_peopletype[".sqlHead"] = "SELECT id, name"; +$tdatachat_peopletype[".sqlHead"] = "SELECT id, name"; $tdatachat_peopletype[".sqlFrom"] = "FROM chat_peopletype"; $tdatachat_peopletype[".sqlWhereExpr"] = ""; $tdatachat_peopletype[".sqlTail"] = ""; @@ -237,7 +237,7 @@ $tdatachat_peopletype[".hideMobileList"] = array(); $fdata["Index"] = 1; $fdata["strName"] = "id"; $fdata["GoodName"] = "id"; - $fdata["ownerTable"] = "public.chat_peopletype"; + $fdata["ownerTable"] = "chat_peopletype"; $fdata["Label"] = GetFieldLabel("chat_peopletype","id"); $fdata["FieldType"] = 3; @@ -379,7 +379,7 @@ $tdatachat_peopletype[".hideMobileList"] = array(); $fdata["Index"] = 2; $fdata["strName"] = "name"; $fdata["GoodName"] = "name"; - $fdata["ownerTable"] = "public.chat_peopletype"; + $fdata["ownerTable"] = "chat_peopletype"; $fdata["Label"] = GetFieldLabel("chat_peopletype","name"); $fdata["FieldType"] = 200; @@ -556,7 +556,7 @@ function createSqlQuery_chat_peopletype() { $proto0=array(); $proto0["m_strHead"] = "SELECT"; -$proto0["m_strFieldList"] = "id, name"; +$proto0["m_strFieldList"] = "id, name"; $proto0["m_strFrom"] = "FROM chat_peopletype"; $proto0["m_strWhere"] = ""; $proto0["m_strOrderBy"] = ""; @@ -599,7 +599,7 @@ $proto0["m_fieldlist"] = array(); $proto6=array(); $obj = new SQLField(array( "m_strName" => "id", - "m_strTable" => "public.chat_peopletype", + "m_strTable" => "chat_peopletype", "m_srcTableName" => "chat_peopletype" )); @@ -613,7 +613,7 @@ $proto0["m_fieldlist"][]=$obj; $proto8=array(); $obj = new SQLField(array( "m_strName" => "name", - "m_strTable" => "public.chat_peopletype", + "m_strTable" => "chat_peopletype", "m_srcTableName" => "chat_peopletype" )); @@ -628,7 +628,7 @@ $proto0["m_fromlist"] = array(); $proto10=array(); $proto10["m_link"] = "SQLL_MAIN"; $proto11=array(); -$proto11["m_strName"] = "public.chat_peopletype"; +$proto11["m_strName"] = "chat_peopletype"; $proto11["m_srcTableName"] = "chat_peopletype"; $proto11["m_columns"] = array(); $proto11["m_columns"][] = "id"; diff --git a/php/include/chat_peopletype_variables.php b/php/include/chat_peopletype_variables.php index cbd99f70b355dbfba61b58f038dbea9535cdd3a2..e46294fc4f75c4b9ad5c64becc35d7eebbed8d79 100644 --- a/php/include/chat_peopletype_variables.php +++ b/php/include/chat_peopletype_variables.php @@ -2,7 +2,7 @@ $strTableName="chat_peopletype"; $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"]; -$strOriginalTableName="public.chat_peopletype"; +$strOriginalTableName="chat_peopletype"; $gstrOrderBy=""; if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by") diff --git a/php/include/chat_settings_settings.php b/php/include/chat_settings_settings.php index 15a19765987365db616cdcd4df3586f14d5afe9b..cad7a9c544cdd56cff06fcff6c17b45f84e22cb6 100644 --- a/php/include/chat_settings_settings.php +++ b/php/include/chat_settings_settings.php @@ -3,14 +3,14 @@ $tdatachat_settings = array(); $tdatachat_settings[".searchableFields"] = array(); $tdatachat_settings[".ShortName"] = "chat_settings"; $tdatachat_settings[".OwnerID"] = ""; -$tdatachat_settings[".OriginalTable"] = "public.chat_settings"; +$tdatachat_settings[".OriginalTable"] = "chat_settings"; -$tdatachat_settings[".pagesByType"] = my_json_decode( "{}" ); +$tdatachat_settings[".pagesByType"] = my_json_decode( "{\"edit\":[\"edit\"],\"search\":[\"search\"]}" ); $tdatachat_settings[".originalPagesByType"] = $tdatachat_settings[".pagesByType"]; -$tdatachat_settings[".pages"] = types2pages( my_json_decode( "{}" ) ); +$tdatachat_settings[".pages"] = types2pages( my_json_decode( "{\"edit\":[\"edit\"],\"search\":[\"search\"]}" ) ); $tdatachat_settings[".originalPages"] = $tdatachat_settings[".pages"]; -$tdatachat_settings[".defaultPages"] = my_json_decode( "{}" ); +$tdatachat_settings[".defaultPages"] = my_json_decode( "{\"edit\":\"edit\",\"search\":\"search\"}" ); $tdatachat_settings[".originalDefaultPages"] = $tdatachat_settings[".defaultPages"]; // field labels @@ -100,6 +100,7 @@ if(mlang_getcurrentlang()=="English") $fieldLabelschat_settings["English"]["WB_ClientSecret"] = "Client Secret"; $fieldToolTipschat_settings["English"]["WB_ClientSecret"] = ""; $placeHolderschat_settings["English"]["WB_ClientSecret"] = ""; + $pageTitleschat_settings["English"]["edit"] = "Chat Settings"; if (count($fieldToolTipschat_settings["English"])) $tdatachat_settings[".isUseToolTips"] = true; } @@ -113,11 +114,11 @@ $tdatachat_settings[".shortTableName"] = "chat_settings"; $tdatachat_settings[".nSecOptions"] = 0; $tdatachat_settings[".mainTableOwnerID"] = ""; -$tdatachat_settings[".entityType"] = 1; -$tdatachat_settings[".connId"] = "KnowledgeBase2_at_localhost"; +$tdatachat_settings[".entityType"] = 0; +$tdatachat_settings[".connId"] = "chats_at_localhost"; -$tdatachat_settings[".strOriginalTableName"] = "public.chat_settings"; +$tdatachat_settings[".strOriginalTableName"] = "chat_settings"; @@ -133,7 +134,7 @@ $tdatachat_settings[".listAjax"] = false; // temporary //$tdatachat_settings[".listAjax"] = false; - $tdatachat_settings[".audit"] = true; + $tdatachat_settings[".audit"] = false; $tdatachat_settings[".locking"] = false; @@ -197,7 +198,7 @@ $tdatachat_settings[".isUseAjaxSuggest"] = true; - + @@ -277,7 +278,7 @@ $tdatachat_settings[".strOrderBy"] = $tstrOrderBy; $tdatachat_settings[".orderindexes"] = array(); -$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"; +$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"; $tdatachat_settings[".sqlFrom"] = "FROM chat_settings"; $tdatachat_settings[".sqlWhereExpr"] = ""; $tdatachat_settings[".sqlTail"] = ""; @@ -331,7 +332,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 1; $fdata["strName"] = "id"; $fdata["GoodName"] = "id"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","id"); $fdata["FieldType"] = 3; @@ -473,7 +474,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 2; $fdata["strName"] = "timeperiod"; $fdata["GoodName"] = "timeperiod"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","timeperiod"); $fdata["FieldType"] = 3; @@ -612,7 +613,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 3; $fdata["strName"] = "findusers"; $fdata["GoodName"] = "findusers"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","findusers"); $fdata["FieldType"] = 3; @@ -747,7 +748,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 4; $fdata["strName"] = "soundpath"; $fdata["GoodName"] = "soundpath"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","soundpath"); $fdata["FieldType"] = 200; @@ -885,7 +886,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 5; $fdata["strName"] = "soundenable"; $fdata["GoodName"] = "soundenable"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","soundenable"); $fdata["FieldType"] = 3; @@ -1020,7 +1021,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 6; $fdata["strName"] = "videoenable"; $fdata["GoodName"] = "videoenable"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","videoenable"); $fdata["FieldType"] = 3; @@ -1158,7 +1159,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 7; $fdata["strName"] = "provider"; $fdata["GoodName"] = "provider"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","provider"); $fdata["FieldType"] = 200; @@ -1316,7 +1317,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 8; $fdata["strName"] = "RC_ClientID"; $fdata["GoodName"] = "RC_ClientID"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","RC_ClientID"); $fdata["FieldType"] = 200; @@ -1455,7 +1456,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 9; $fdata["strName"] = "RC_ClientSecret"; $fdata["GoodName"] = "RC_ClientSecret"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","RC_ClientSecret"); $fdata["FieldType"] = 200; @@ -1594,7 +1595,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 10; $fdata["strName"] = "RC_Account"; $fdata["GoodName"] = "RC_Account"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","RC_Account"); $fdata["FieldType"] = 200; @@ -1733,7 +1734,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 11; $fdata["strName"] = "RC_Password"; $fdata["GoodName"] = "RC_Password"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","RC_Password"); $fdata["FieldType"] = 200; @@ -1872,7 +1873,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 12; $fdata["strName"] = "Z_APIKey"; $fdata["GoodName"] = "Z_APIKey"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","Z_APIKey"); $fdata["FieldType"] = 200; @@ -2011,7 +2012,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 13; $fdata["strName"] = "Z_APISecret"; $fdata["GoodName"] = "Z_APISecret"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","Z_APISecret"); $fdata["FieldType"] = 200; @@ -2150,7 +2151,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 14; $fdata["strName"] = "saveInCloud"; $fdata["GoodName"] = "saveInCloud"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","saveInCloud"); $fdata["FieldType"] = 3; @@ -2285,7 +2286,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 15; $fdata["strName"] = "Z_Token"; $fdata["GoodName"] = "Z_Token"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","Z_Token"); $fdata["FieldType"] = 200; @@ -2424,7 +2425,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 16; $fdata["strName"] = "timezone"; $fdata["GoodName"] = "timezone"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","timezone"); $fdata["FieldType"] = 200; @@ -2588,7 +2589,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 17; $fdata["strName"] = "RC_APIServerURL"; $fdata["GoodName"] = "RC_APIServerURL"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","RC_APIServerURL"); $fdata["FieldType"] = 200; @@ -2727,7 +2728,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 18; $fdata["strName"] = "MS_ClientID"; $fdata["GoodName"] = "MS_ClientID"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","MS_ClientID"); $fdata["FieldType"] = 200; @@ -2866,7 +2867,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 19; $fdata["strName"] = "MS_ClientSecret"; $fdata["GoodName"] = "MS_ClientSecret"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","MS_ClientSecret"); $fdata["FieldType"] = 200; @@ -3005,7 +3006,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 20; $fdata["strName"] = "MS_TenantID"; $fdata["GoodName"] = "MS_TenantID"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","MS_TenantID"); $fdata["FieldType"] = 200; @@ -3144,7 +3145,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 21; $fdata["strName"] = "G_ClientID"; $fdata["GoodName"] = "G_ClientID"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","G_ClientID"); $fdata["FieldType"] = 200; @@ -3283,7 +3284,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 22; $fdata["strName"] = "G_ClientSecret"; $fdata["GoodName"] = "G_ClientSecret"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","G_ClientSecret"); $fdata["FieldType"] = 200; @@ -3422,7 +3423,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 23; $fdata["strName"] = "G_APIKey"; $fdata["GoodName"] = "G_APIKey"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","G_APIKey"); $fdata["FieldType"] = 200; @@ -3561,7 +3562,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 24; $fdata["strName"] = "WB_ClientID"; $fdata["GoodName"] = "WB_ClientID"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","WB_ClientID"); $fdata["FieldType"] = 200; @@ -3700,7 +3701,7 @@ $tdatachat_settings[".hideMobileList"] = array(); $fdata["Index"] = 25; $fdata["strName"] = "WB_ClientSecret"; $fdata["GoodName"] = "WB_ClientSecret"; - $fdata["ownerTable"] = "public.chat_settings"; + $fdata["ownerTable"] = "chat_settings"; $fdata["Label"] = GetFieldLabel("chat_settings","WB_ClientSecret"); $fdata["FieldType"] = 200; @@ -3877,7 +3878,7 @@ function createSqlQuery_chat_settings() { $proto0=array(); $proto0["m_strHead"] = "SELECT"; -$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"; +$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"; $proto0["m_strFrom"] = "FROM chat_settings"; $proto0["m_strWhere"] = ""; $proto0["m_strOrderBy"] = ""; @@ -3920,7 +3921,7 @@ $proto0["m_fieldlist"] = array(); $proto6=array(); $obj = new SQLField(array( "m_strName" => "id", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -3934,7 +3935,7 @@ $proto0["m_fieldlist"][]=$obj; $proto8=array(); $obj = new SQLField(array( "m_strName" => "timeperiod", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -3948,7 +3949,7 @@ $proto0["m_fieldlist"][]=$obj; $proto10=array(); $obj = new SQLField(array( "m_strName" => "findusers", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -3962,7 +3963,7 @@ $proto0["m_fieldlist"][]=$obj; $proto12=array(); $obj = new SQLField(array( "m_strName" => "soundpath", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -3976,7 +3977,7 @@ $proto0["m_fieldlist"][]=$obj; $proto14=array(); $obj = new SQLField(array( "m_strName" => "soundenable", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -3990,7 +3991,7 @@ $proto0["m_fieldlist"][]=$obj; $proto16=array(); $obj = new SQLField(array( "m_strName" => "videoenable", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4004,7 +4005,7 @@ $proto0["m_fieldlist"][]=$obj; $proto18=array(); $obj = new SQLField(array( "m_strName" => "provider", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4018,7 +4019,7 @@ $proto0["m_fieldlist"][]=$obj; $proto20=array(); $obj = new SQLField(array( "m_strName" => "RC_ClientID", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4032,7 +4033,7 @@ $proto0["m_fieldlist"][]=$obj; $proto22=array(); $obj = new SQLField(array( "m_strName" => "RC_ClientSecret", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4046,7 +4047,7 @@ $proto0["m_fieldlist"][]=$obj; $proto24=array(); $obj = new SQLField(array( "m_strName" => "RC_Account", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4060,7 +4061,7 @@ $proto0["m_fieldlist"][]=$obj; $proto26=array(); $obj = new SQLField(array( "m_strName" => "RC_Password", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4074,7 +4075,7 @@ $proto0["m_fieldlist"][]=$obj; $proto28=array(); $obj = new SQLField(array( "m_strName" => "Z_APIKey", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4088,7 +4089,7 @@ $proto0["m_fieldlist"][]=$obj; $proto30=array(); $obj = new SQLField(array( "m_strName" => "Z_APISecret", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4102,7 +4103,7 @@ $proto0["m_fieldlist"][]=$obj; $proto32=array(); $obj = new SQLField(array( "m_strName" => "saveInCloud", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4116,7 +4117,7 @@ $proto0["m_fieldlist"][]=$obj; $proto34=array(); $obj = new SQLField(array( "m_strName" => "Z_Token", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4130,7 +4131,7 @@ $proto0["m_fieldlist"][]=$obj; $proto36=array(); $obj = new SQLField(array( "m_strName" => "timezone", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4144,7 +4145,7 @@ $proto0["m_fieldlist"][]=$obj; $proto38=array(); $obj = new SQLField(array( "m_strName" => "RC_APIServerURL", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4158,7 +4159,7 @@ $proto0["m_fieldlist"][]=$obj; $proto40=array(); $obj = new SQLField(array( "m_strName" => "MS_ClientID", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4172,7 +4173,7 @@ $proto0["m_fieldlist"][]=$obj; $proto42=array(); $obj = new SQLField(array( "m_strName" => "MS_ClientSecret", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4186,7 +4187,7 @@ $proto0["m_fieldlist"][]=$obj; $proto44=array(); $obj = new SQLField(array( "m_strName" => "MS_TenantID", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4200,7 +4201,7 @@ $proto0["m_fieldlist"][]=$obj; $proto46=array(); $obj = new SQLField(array( "m_strName" => "G_ClientID", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4214,7 +4215,7 @@ $proto0["m_fieldlist"][]=$obj; $proto48=array(); $obj = new SQLField(array( "m_strName" => "G_ClientSecret", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4228,7 +4229,7 @@ $proto0["m_fieldlist"][]=$obj; $proto50=array(); $obj = new SQLField(array( "m_strName" => "G_APIKey", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4242,7 +4243,7 @@ $proto0["m_fieldlist"][]=$obj; $proto52=array(); $obj = new SQLField(array( "m_strName" => "WB_ClientID", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4256,7 +4257,7 @@ $proto0["m_fieldlist"][]=$obj; $proto54=array(); $obj = new SQLField(array( "m_strName" => "WB_ClientSecret", - "m_strTable" => "public.chat_settings", + "m_strTable" => "chat_settings", "m_srcTableName" => "chat_settings" )); @@ -4271,7 +4272,7 @@ $proto0["m_fromlist"] = array(); $proto56=array(); $proto56["m_link"] = "SQLL_MAIN"; $proto57=array(); -$proto57["m_strName"] = "public.chat_settings"; +$proto57["m_strName"] = "chat_settings"; $proto57["m_srcTableName"] = "chat_settings"; $proto57["m_columns"] = array(); $proto57["m_columns"][] = "id"; diff --git a/php/include/chat_settings_variables.php b/php/include/chat_settings_variables.php index e1ef7f0e75f4a8eedc5c35de072466634b00dfab..01e262a58886c5b939883f1811c152f8bfd24035 100644 --- a/php/include/chat_settings_variables.php +++ b/php/include/chat_settings_variables.php @@ -2,7 +2,7 @@ $strTableName="chat_settings"; $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"]; -$strOriginalTableName="public.chat_settings"; +$strOriginalTableName="chat_settings"; $gstrOrderBy=""; if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by") diff --git a/php/include/chat_timezone_settings.php b/php/include/chat_timezone_settings.php index e298c3b08164bb315181408343f241db48371165..0648a6dca8a3b9011022510e17a57ea93eb9f2b9 100644 --- a/php/include/chat_timezone_settings.php +++ b/php/include/chat_timezone_settings.php @@ -3,7 +3,7 @@ $tdatachat_timezone = array(); $tdatachat_timezone[".searchableFields"] = array(); $tdatachat_timezone[".ShortName"] = "chat_timezone"; $tdatachat_timezone[".OwnerID"] = ""; -$tdatachat_timezone[".OriginalTable"] = "public.chat_timezone"; +$tdatachat_timezone[".OriginalTable"] = "chat_timezone"; $tdatachat_timezone[".pagesByType"] = my_json_decode( "{}" ); @@ -56,11 +56,11 @@ $tdatachat_timezone[".shortTableName"] = "chat_timezone"; $tdatachat_timezone[".nSecOptions"] = 0; $tdatachat_timezone[".mainTableOwnerID"] = ""; -$tdatachat_timezone[".entityType"] = 1; -$tdatachat_timezone[".connId"] = "KnowledgeBase2_at_localhost"; +$tdatachat_timezone[".entityType"] = 0; +$tdatachat_timezone[".connId"] = "chats_at_localhost"; -$tdatachat_timezone[".strOriginalTableName"] = "public.chat_timezone"; +$tdatachat_timezone[".strOriginalTableName"] = "chat_timezone"; @@ -76,7 +76,7 @@ $tdatachat_timezone[".listAjax"] = false; // temporary //$tdatachat_timezone[".listAjax"] = false; - $tdatachat_timezone[".audit"] = true; + $tdatachat_timezone[".audit"] = false; $tdatachat_timezone[".locking"] = false; @@ -140,7 +140,7 @@ $tdatachat_timezone[".isUseAjaxSuggest"] = true; - + $tdatachat_timezone[".ajaxCodeSnippetAdded"] = false; @@ -199,7 +199,7 @@ $tdatachat_timezone[".strOrderBy"] = $tstrOrderBy; $tdatachat_timezone[".orderindexes"] = array(); -$tdatachat_timezone[".sqlHead"] = "SELECT id, zoom, name, rc, \"order\", dotnet"; +$tdatachat_timezone[".sqlHead"] = "SELECT id, zoom, name, rc, `order`, dotnet"; $tdatachat_timezone[".sqlFrom"] = "FROM chat_timezone"; $tdatachat_timezone[".sqlWhereExpr"] = ""; $tdatachat_timezone[".sqlTail"] = ""; @@ -253,7 +253,7 @@ $tdatachat_timezone[".hideMobileList"] = array(); $fdata["Index"] = 1; $fdata["strName"] = "id"; $fdata["GoodName"] = "id"; - $fdata["ownerTable"] = "public.chat_timezone"; + $fdata["ownerTable"] = "chat_timezone"; $fdata["Label"] = GetFieldLabel("chat_timezone","id"); $fdata["FieldType"] = 3; @@ -395,7 +395,7 @@ $tdatachat_timezone[".hideMobileList"] = array(); $fdata["Index"] = 2; $fdata["strName"] = "zoom"; $fdata["GoodName"] = "zoom"; - $fdata["ownerTable"] = "public.chat_timezone"; + $fdata["ownerTable"] = "chat_timezone"; $fdata["Label"] = GetFieldLabel("chat_timezone","zoom"); $fdata["FieldType"] = 200; @@ -534,7 +534,7 @@ $tdatachat_timezone[".hideMobileList"] = array(); $fdata["Index"] = 3; $fdata["strName"] = "name"; $fdata["GoodName"] = "name"; - $fdata["ownerTable"] = "public.chat_timezone"; + $fdata["ownerTable"] = "chat_timezone"; $fdata["Label"] = GetFieldLabel("chat_timezone","name"); $fdata["FieldType"] = 200; @@ -673,7 +673,7 @@ $tdatachat_timezone[".hideMobileList"] = array(); $fdata["Index"] = 4; $fdata["strName"] = "rc"; $fdata["GoodName"] = "rc"; - $fdata["ownerTable"] = "public.chat_timezone"; + $fdata["ownerTable"] = "chat_timezone"; $fdata["Label"] = GetFieldLabel("chat_timezone","rc"); $fdata["FieldType"] = 200; @@ -812,7 +812,7 @@ $tdatachat_timezone[".hideMobileList"] = array(); $fdata["Index"] = 5; $fdata["strName"] = "order"; $fdata["GoodName"] = "order"; - $fdata["ownerTable"] = "public.chat_timezone"; + $fdata["ownerTable"] = "chat_timezone"; $fdata["Label"] = GetFieldLabel("chat_timezone","order"); $fdata["FieldType"] = 3; @@ -827,7 +827,7 @@ $tdatachat_timezone[".hideMobileList"] = array(); $fdata["isSQLExpression"] = true; - $fdata["FullName"] = "\"order\""; + $fdata["FullName"] = "`order`"; @@ -951,7 +951,7 @@ $tdatachat_timezone[".hideMobileList"] = array(); $fdata["Index"] = 6; $fdata["strName"] = "dotnet"; $fdata["GoodName"] = "dotnet"; - $fdata["ownerTable"] = "public.chat_timezone"; + $fdata["ownerTable"] = "chat_timezone"; $fdata["Label"] = GetFieldLabel("chat_timezone","dotnet"); $fdata["FieldType"] = 200; @@ -1128,7 +1128,7 @@ function createSqlQuery_chat_timezone() { $proto0=array(); $proto0["m_strHead"] = "SELECT"; -$proto0["m_strFieldList"] = "id, zoom, name, rc, \"order\", dotnet"; +$proto0["m_strFieldList"] = "id, zoom, name, rc, `order`, dotnet"; $proto0["m_strFrom"] = "FROM chat_timezone"; $proto0["m_strWhere"] = ""; $proto0["m_strOrderBy"] = ""; @@ -1171,7 +1171,7 @@ $proto0["m_fieldlist"] = array(); $proto6=array(); $obj = new SQLField(array( "m_strName" => "id", - "m_strTable" => "public.chat_timezone", + "m_strTable" => "chat_timezone", "m_srcTableName" => "chat_timezone" )); @@ -1185,7 +1185,7 @@ $proto0["m_fieldlist"][]=$obj; $proto8=array(); $obj = new SQLField(array( "m_strName" => "zoom", - "m_strTable" => "public.chat_timezone", + "m_strTable" => "chat_timezone", "m_srcTableName" => "chat_timezone" )); @@ -1199,7 +1199,7 @@ $proto0["m_fieldlist"][]=$obj; $proto10=array(); $obj = new SQLField(array( "m_strName" => "name", - "m_strTable" => "public.chat_timezone", + "m_strTable" => "chat_timezone", "m_srcTableName" => "chat_timezone" )); @@ -1213,7 +1213,7 @@ $proto0["m_fieldlist"][]=$obj; $proto12=array(); $obj = new SQLField(array( "m_strName" => "rc", - "m_strTable" => "public.chat_timezone", + "m_strTable" => "chat_timezone", "m_srcTableName" => "chat_timezone" )); @@ -1227,11 +1227,11 @@ $proto0["m_fieldlist"][]=$obj; $proto14=array(); $obj = new SQLField(array( "m_strName" => "order", - "m_strTable" => "public.chat_timezone", + "m_strTable" => "chat_timezone", "m_srcTableName" => "chat_timezone" )); -$proto14["m_sql"] = "\"order\""; +$proto14["m_sql"] = "`order`"; $proto14["m_srcTableName"] = "chat_timezone"; $proto14["m_expr"]=$obj; $proto14["m_alias"] = ""; @@ -1241,7 +1241,7 @@ $proto0["m_fieldlist"][]=$obj; $proto16=array(); $obj = new SQLField(array( "m_strName" => "dotnet", - "m_strTable" => "public.chat_timezone", + "m_strTable" => "chat_timezone", "m_srcTableName" => "chat_timezone" )); @@ -1256,7 +1256,7 @@ $proto0["m_fromlist"] = array(); $proto18=array(); $proto18["m_link"] = "SQLL_MAIN"; $proto19=array(); -$proto19["m_strName"] = "public.chat_timezone"; +$proto19["m_strName"] = "chat_timezone"; $proto19["m_srcTableName"] = "chat_timezone"; $proto19["m_columns"] = array(); $proto19["m_columns"][] = "id"; diff --git a/php/include/chat_timezone_variables.php b/php/include/chat_timezone_variables.php index d06299ae46d00728c1b22303838fc4800797bd09..33378ba2bdc31f93718a546a80443376776a3696 100644 --- a/php/include/chat_timezone_variables.php +++ b/php/include/chat_timezone_variables.php @@ -2,7 +2,7 @@ $strTableName="chat_timezone"; $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"]; -$strOriginalTableName="public.chat_timezone"; +$strOriginalTableName="chat_timezone"; $gstrOrderBy=""; if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by") diff --git a/php/include/chat_users_settings.php b/php/include/chat_users_settings.php index 89b7b53a4b87c1ba16cbe5a2a274198ddac17860..5f6b82adb4947023dce809c071320135a91eb659 100644 --- a/php/include/chat_users_settings.php +++ b/php/include/chat_users_settings.php @@ -3,14 +3,14 @@ $tdatachat_users = array(); $tdatachat_users[".searchableFields"] = array(); $tdatachat_users[".ShortName"] = "chat_users"; $tdatachat_users[".OwnerID"] = ""; -$tdatachat_users[".OriginalTable"] = "public.chat_users"; +$tdatachat_users[".OriginalTable"] = "chat_users"; -$tdatachat_users[".pagesByType"] = my_json_decode( "{}" ); +$tdatachat_users[".pagesByType"] = my_json_decode( "{\"search\":[\"search\"]}" ); $tdatachat_users[".originalPagesByType"] = $tdatachat_users[".pagesByType"]; -$tdatachat_users[".pages"] = types2pages( my_json_decode( "{}" ) ); +$tdatachat_users[".pages"] = types2pages( my_json_decode( "{\"search\":[\"search\"]}" ) ); $tdatachat_users[".originalPages"] = $tdatachat_users[".pages"]; -$tdatachat_users[".defaultPages"] = my_json_decode( "{}" ); +$tdatachat_users[".defaultPages"] = my_json_decode( "{\"search\":\"search\"}" ); $tdatachat_users[".originalDefaultPages"] = $tdatachat_users[".defaultPages"]; // field labels @@ -53,11 +53,11 @@ $tdatachat_users[".shortTableName"] = "chat_users"; $tdatachat_users[".nSecOptions"] = 0; $tdatachat_users[".mainTableOwnerID"] = ""; -$tdatachat_users[".entityType"] = 1; -$tdatachat_users[".connId"] = "KnowledgeBase2_at_localhost"; +$tdatachat_users[".entityType"] = 0; +$tdatachat_users[".connId"] = "chats_at_localhost"; -$tdatachat_users[".strOriginalTableName"] = "public.chat_users"; +$tdatachat_users[".strOriginalTableName"] = "chat_users"; @@ -73,7 +73,7 @@ $tdatachat_users[".listAjax"] = false; // temporary //$tdatachat_users[".listAjax"] = false; - $tdatachat_users[".audit"] = true; + $tdatachat_users[".audit"] = false; $tdatachat_users[".locking"] = false; @@ -137,7 +137,7 @@ $tdatachat_users[".isUseAjaxSuggest"] = true; - + $tdatachat_users[".ajaxCodeSnippetAdded"] = false; @@ -194,7 +194,7 @@ $tdatachat_users[".strOrderBy"] = $tstrOrderBy; $tdatachat_users[".orderindexes"] = array(); -$tdatachat_users[".sqlHead"] = "SELECT id, userid, lastaccess, isTyping, userpic"; +$tdatachat_users[".sqlHead"] = "SELECT id, userid, lastaccess, isTyping, userpic"; $tdatachat_users[".sqlFrom"] = "FROM chat_users"; $tdatachat_users[".sqlWhereExpr"] = ""; $tdatachat_users[".sqlTail"] = ""; @@ -248,7 +248,7 @@ $tdatachat_users[".hideMobileList"] = array(); $fdata["Index"] = 1; $fdata["strName"] = "id"; $fdata["GoodName"] = "id"; - $fdata["ownerTable"] = "public.chat_users"; + $fdata["ownerTable"] = "chat_users"; $fdata["Label"] = GetFieldLabel("chat_users","id"); $fdata["FieldType"] = 3; @@ -390,7 +390,7 @@ $tdatachat_users[".hideMobileList"] = array(); $fdata["Index"] = 2; $fdata["strName"] = "userid"; $fdata["GoodName"] = "userid"; - $fdata["ownerTable"] = "public.chat_users"; + $fdata["ownerTable"] = "chat_users"; $fdata["Label"] = GetFieldLabel("chat_users","userid"); $fdata["FieldType"] = 200; @@ -529,7 +529,7 @@ $tdatachat_users[".hideMobileList"] = array(); $fdata["Index"] = 3; $fdata["strName"] = "lastaccess"; $fdata["GoodName"] = "lastaccess"; - $fdata["ownerTable"] = "public.chat_users"; + $fdata["ownerTable"] = "chat_users"; $fdata["Label"] = GetFieldLabel("chat_users","lastaccess"); $fdata["FieldType"] = 135; @@ -668,7 +668,7 @@ $tdatachat_users[".hideMobileList"] = array(); $fdata["Index"] = 4; $fdata["strName"] = "isTyping"; $fdata["GoodName"] = "isTyping"; - $fdata["ownerTable"] = "public.chat_users"; + $fdata["ownerTable"] = "chat_users"; $fdata["Label"] = GetFieldLabel("chat_users","isTyping"); $fdata["FieldType"] = 200; @@ -807,7 +807,7 @@ $tdatachat_users[".hideMobileList"] = array(); $fdata["Index"] = 5; $fdata["strName"] = "userpic"; $fdata["GoodName"] = "userpic"; - $fdata["ownerTable"] = "public.chat_users"; + $fdata["ownerTable"] = "chat_users"; $fdata["Label"] = GetFieldLabel("chat_users","userpic"); $fdata["FieldType"] = 128; @@ -992,7 +992,7 @@ function createSqlQuery_chat_users() { $proto0=array(); $proto0["m_strHead"] = "SELECT"; -$proto0["m_strFieldList"] = "id, userid, lastaccess, isTyping, userpic"; +$proto0["m_strFieldList"] = "id, userid, lastaccess, isTyping, userpic"; $proto0["m_strFrom"] = "FROM chat_users"; $proto0["m_strWhere"] = ""; $proto0["m_strOrderBy"] = ""; @@ -1035,7 +1035,7 @@ $proto0["m_fieldlist"] = array(); $proto6=array(); $obj = new SQLField(array( "m_strName" => "id", - "m_strTable" => "public.chat_users", + "m_strTable" => "chat_users", "m_srcTableName" => "chat_users" )); @@ -1049,7 +1049,7 @@ $proto0["m_fieldlist"][]=$obj; $proto8=array(); $obj = new SQLField(array( "m_strName" => "userid", - "m_strTable" => "public.chat_users", + "m_strTable" => "chat_users", "m_srcTableName" => "chat_users" )); @@ -1063,7 +1063,7 @@ $proto0["m_fieldlist"][]=$obj; $proto10=array(); $obj = new SQLField(array( "m_strName" => "lastaccess", - "m_strTable" => "public.chat_users", + "m_strTable" => "chat_users", "m_srcTableName" => "chat_users" )); @@ -1077,7 +1077,7 @@ $proto0["m_fieldlist"][]=$obj; $proto12=array(); $obj = new SQLField(array( "m_strName" => "isTyping", - "m_strTable" => "public.chat_users", + "m_strTable" => "chat_users", "m_srcTableName" => "chat_users" )); @@ -1091,7 +1091,7 @@ $proto0["m_fieldlist"][]=$obj; $proto14=array(); $obj = new SQLField(array( "m_strName" => "userpic", - "m_strTable" => "public.chat_users", + "m_strTable" => "chat_users", "m_srcTableName" => "chat_users" )); @@ -1106,7 +1106,7 @@ $proto0["m_fromlist"] = array(); $proto16=array(); $proto16["m_link"] = "SQLL_MAIN"; $proto17=array(); -$proto17["m_strName"] = "public.chat_users"; +$proto17["m_strName"] = "chat_users"; $proto17["m_srcTableName"] = "chat_users"; $proto17["m_columns"] = array(); $proto17["m_columns"][] = "id"; diff --git a/php/include/chat_users_variables.php b/php/include/chat_users_variables.php index d96637c8d6c83439e5c228ef392acb680f82f310..cafa2602bd870b9bf643f7214d9e0c990ab4bba2 100644 --- a/php/include/chat_users_variables.php +++ b/php/include/chat_users_variables.php @@ -2,7 +2,7 @@ $strTableName="chat_users"; $_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"]; -$strOriginalTableName="public.chat_users"; +$strOriginalTableName="chat_users"; $gstrOrderBy=""; if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by") diff --git a/php/include/commonfunctions.php b/php/include/commonfunctions.php index 58dd5534e1f8228b8925842310803dae2a53974d..b9ee97e7cd5cce5d1346e6bb9fcb9c601135f015 100644 --- a/php/include/commonfunctions.php +++ b/php/include/commonfunctions.php @@ -203,28 +203,6 @@ function checkTableName($shortTName ) if (!$shortTName) return false; - if ("kbarticles" == $shortTName ) - return true; - if ("kbcategories" == $shortTName ) - return true; - if ("kbcomments" == $shortTName ) - return true; - if ("public_kbusers" == $shortTName ) - return true; - if ("main" == $shortTName ) - return true; - if ("faicons" == $shortTName ) - return true; - if ("admin_comments" == $shortTName ) - return true; - if ("fasis_chat_history" == $shortTName ) - return true; - if ("products" == $shortTName ) - return true; - if ("items" == $shortTName ) - return true; - if ("appointments" == $shortTName ) - return true; if ("chat_history" == $shortTName ) return true; if ("chat_users" == $shortTName ) @@ -239,37 +217,7 @@ function checkTableName($shortTName ) return true; if ("chat_timezone" == $shortTName ) return true; - if ("chat_files1" == $shortTName ) - return true; - if ("chat_groups1" == $shortTName ) - return true; - if ("chat_history1" == $shortTName ) - return true; - if ("chat_peopletype1" == $shortTName ) - return true; - if ("chat_settings1" == $shortTName ) - return true; - if ("identity" == $shortTName ) - return true; - if ("dataset_info" == $shortTName ) - return true; - if ("admin_rights" == $shortTName ) - return true; - if ("admin_members" == $shortTName ) - return true; - if ("admin_users" == $shortTName ) - return true; - if ("history" == $shortTName ) - return true; - if ("zendesk__dataszz" == $shortTName ) - return true; - if ("view_zendesk" == $shortTName ) - return true; - if ("prompts" == $shortTName ) - return true; - if ("view_faisis_chat_history" == $shortTName ) - return true; - if ("server_setting" == $shortTName ) + if ("chat126_users1" == $shortTName ) return true; return false; } @@ -322,105 +270,6 @@ function GetTablesList($pdfMode = false) $arr = array(); $checkPermissions = Security::permissionsAvailable(); $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("kbarticles"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="kbarticles"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("kbcategories"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="kbcategories"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("kbcomments"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="kbcomments"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.kbusers"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.kbusers"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("main"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="main"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("faicons"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="faicons"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("admin_comments"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="admin_comments"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.fasis_chat_history"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.fasis_chat_history"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.products"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.products"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.items"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.items"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.appointments"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.appointments"; - } - $tableAvailable = true; if( $checkPermissions ) { $strPerm = GetUserPermissions("chat_history"); $tableAvailable = ( strpos($strPerm, "P") !== false @@ -485,147 +334,12 @@ function GetTablesList($pdfMode = false) } $tableAvailable = true; if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.chat_files"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.chat_files"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.chat_groups"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.chat_groups"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.chat_history"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.chat_history"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.chat_peopletype"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.chat_peopletype"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.chat_settings"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.chat_settings"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.identity"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.identity"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.dataset_info"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.dataset_info"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("admin_rights"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="admin_rights"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("admin_members"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="admin_members"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("admin_users"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="admin_users"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.history"); + $strPerm = GetUserPermissions("chat126_users1"); $tableAvailable = ( strpos($strPerm, "P") !== false || $pdfMode && strpos($strPerm, "S") !== false ); } if( $tableAvailable ) { - $arr[]="public.history"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.zendesk__dataszz"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.zendesk__dataszz"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.view_zendesk"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.view_zendesk"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.prompts"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.prompts"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.view_faisis_chat_history"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.view_faisis_chat_history"; - } - $tableAvailable = true; - if( $checkPermissions ) { - $strPerm = GetUserPermissions("public.server_setting"); - $tableAvailable = ( strpos($strPerm, "P") !== false - || $pdfMode && strpos($strPerm, "S") !== false ); - } - if( $tableAvailable ) { - $arr[]="public.server_setting"; + $arr[]="chat126_users1"; } return $arr; } @@ -636,17 +350,6 @@ function GetTablesList($pdfMode = false) function GetTablesListWithoutSecurity() { $arr = array(); - $arr[]="kbarticles"; - $arr[]="kbcategories"; - $arr[]="kbcomments"; - $arr[]="public.kbusers"; - $arr[]="main"; - $arr[]="faicons"; - $arr[]="admin_comments"; - $arr[]="public.fasis_chat_history"; - $arr[]="public.products"; - $arr[]="public.items"; - $arr[]="public.appointments"; $arr[]="chat_history"; $arr[]="chat_users"; $arr[]="chat_settings"; @@ -654,22 +357,7 @@ function GetTablesListWithoutSecurity() $arr[]="chat_groups"; $arr[]="chat_peopletype"; $arr[]="chat_timezone"; - $arr[]="public.chat_files"; - $arr[]="public.chat_groups"; - $arr[]="public.chat_history"; - $arr[]="public.chat_peopletype"; - $arr[]="public.chat_settings"; - $arr[]="public.identity"; - $arr[]="public.dataset_info"; - $arr[]="admin_rights"; - $arr[]="admin_members"; - $arr[]="admin_users"; - $arr[]="public.history"; - $arr[]="public.zendesk__dataszz"; - $arr[]="public.view_zendesk"; - $arr[]="public.prompts"; - $arr[]="public.view_faisis_chat_history"; - $arr[]="public.server_setting"; + $arr[]="chat126_users1"; return $arr; } @@ -1274,12 +962,6 @@ function GetUserPermissionsDynamic( $table ) global $gPermissionsRefreshTime,$gPermissionsRead; if( Security::isAdmin() ) { - if($table=="admin_rights") - return "ADESPIM"; - if($table=="admin_members") - return "ADESPIM"; - if($table=="admin_users") - return "ADESPIM"; } $userRights = &Security::dynamicUserRights(); @@ -1297,512 +979,74 @@ function GetUserPermissionsStatic( $table ) $sUserGroup = storageGet( "GroupID" ); $extraPerm = ""; - if( $table=="kbarticles" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "AEDSPI".$extraPerm; - } -// default permissions - return "".$extraPerm; - } - if( $table=="kbcategories" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "AEDSPI".$extraPerm; - } -// default permissions - return "".$extraPerm; - } - if( $table=="kbcomments" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "SPA".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "AEDSPI".$extraPerm; - } -// default permissions - return "AEDSPI".$extraPerm; - } - if( $table=="public.kbusers" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "AEDSPI".$extraPerm; - } -// default permissions - return "".$extraPerm; - } - if( $table=="main" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "SP".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "AEDSPI".$extraPerm; - } -// default permissions - return "S".$extraPerm; - } - if( $table=="faicons" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "".$extraPerm; - } - if( $table=="admin_comments" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "".$extraPerm; - } - if( $table=="public.fasis_chat_history" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "".$extraPerm; - } - if( $table=="public.products" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "ADESPI".$extraPerm; - } - if( $table=="public.items" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "ADESPI".$extraPerm; - } - if( $table=="public.appointments" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "ADESPI".$extraPerm; - } if( $table=="chat_history" ) { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "".$extraPerm; - } - if( $table=="chat_users" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "".$extraPerm; - } - if( $table=="chat_settings" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "".$extraPerm; - } - if( $table=="chat_files" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "".$extraPerm; - } - if( $table=="chat_groups" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "".$extraPerm; - } - if( $table=="chat_peopletype" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "".$extraPerm; - } - if( $table=="chat_timezone" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "".$extraPerm; - } - if( $table=="public.chat_files" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "ADESPI".$extraPerm; - } - if( $table=="public.chat_groups" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "ADESPI".$extraPerm; - } - if( $table=="public.chat_history" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "ADESPI".$extraPerm; - } - if( $table=="public.chat_peopletype" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "ADESPI".$extraPerm; - } - if( $table=="public.chat_settings" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "ADESPI".$extraPerm; - } - if( $table=="public.identity" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } if( $sUserGroup=="admin" ) { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; + return "AEDSPI".$extraPerm; } // default permissions return "ADESPI".$extraPerm; } - if( $table=="public.dataset_info" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "ADESPI".$extraPerm; - } - if( $table=="admin_rights" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "ADESPI".$extraPerm; - } - if( $table=="admin_members" ) - { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } - if( $sUserGroup=="admin" ) - { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; - } -// default permissions - return "ADESPI".$extraPerm; - } - if( $table=="admin_users" ) + if( $table=="chat_users" ) { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } if( $sUserGroup=="admin" ) { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; + return "AEDSPI".$extraPerm; } // default permissions return "ADESPI".$extraPerm; } - if( $table=="public.history" ) + if( $table=="chat_settings" ) { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } if( $sUserGroup=="admin" ) { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; + return "AEDSPI".$extraPerm; } // default permissions return "ADESPI".$extraPerm; } - if( $table=="public.zendesk__dataszz" ) + if( $table=="chat_files" ) { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } if( $sUserGroup=="admin" ) { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; + return "AEDSPI".$extraPerm; } // default permissions return "ADESPI".$extraPerm; } - if( $table=="public.view_zendesk" ) + if( $table=="chat_groups" ) { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } if( $sUserGroup=="admin" ) { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; + return "AEDSPI".$extraPerm; } // default permissions return "ADESPI".$extraPerm; } - if( $table=="public.prompts" ) + if( $table=="chat_peopletype" ) { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } if( $sUserGroup=="admin" ) { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; + return "AEDSPI".$extraPerm; } // default permissions return "ADESPI".$extraPerm; } - if( $table=="public.view_faisis_chat_history" ) + if( $table=="chat_timezone" ) { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } if( $sUserGroup=="admin" ) { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; + return "AEDSPI".$extraPerm; } // default permissions return "ADESPI".$extraPerm; } - if( $table=="public.server_setting" ) + if( $table=="chat126_users1" ) { - if( $sUserGroup=="" ) - { - $extraPerm = 'M'; - return "S".$extraPerm; - } if( $sUserGroup=="admin" ) { - $extraPerm = 'M'; - return "ADESPI".$extraPerm; + return "ADESPI".$extraPerm; } // default permissions return "ADESPI".$extraPerm; @@ -2534,6 +1778,7 @@ function GetFullSiteUrl() */ function GetAuditObject($table="") { + return NULL; $linkAudit = false; if(!$table) @@ -2548,7 +1793,6 @@ function GetAuditObject($table="") if ($linkAudit) { require_once(getabspath("include/audit.php")); - return new AuditTrailTable(); } else { diff --git a/php/include/dal.php b/php/include/dal.php index 6e228929952b3399c946787cf7475a747561824d..3f8d4c65418bd8bdaca72e959ab0f8201093755e 100644 --- a/php/include/dal.php +++ b/php/include/dal.php @@ -47,38 +47,14 @@ function DBLookup($sql) */ class tDAL { - var $tblKnowledgeBase2_at_localhost_public_appointments; - var $tblKnowledgeBase2_at_localhost_public_chat_files; - var $tblKnowledgeBase2_at_localhost_public_chat_groups; - var $tblKnowledgeBase2_at_localhost_public_chat_history; - var $tblKnowledgeBase2_at_localhost_public_chat_peopletype; - var $tblKnowledgeBase2_at_localhost_public_chat_settings; - var $tblKnowledgeBase2_at_localhost_public_chat_timezone; - var $tblKnowledgeBase2_at_localhost_public_chat_users; - var $tblKnowledgeBase2_at_localhost_public_dataset_info; - var $tblKnowledgeBase2_at_localhost_public_faicons; - var $tblKnowledgeBase2_at_localhost_public_fasis_chat_history; - var $tblKnowledgeBase2_at_localhost_public_history; - var $tblKnowledgeBase2_at_localhost_public_identity; - var $tblKnowledgeBase2_at_localhost_public_items; - var $tblKnowledgeBase2_at_localhost_public_kbarticles; - var $tblKnowledgeBase2_at_localhost_public_kbcategories; - var $tblKnowledgeBase2_at_localhost_public_kbcomments; - var $tblKnowledgeBase2_at_localhost_public_kbusers; - var $tblKnowledgeBase2_at_localhost_public_knowledgebase1_audit; - var $tblKnowledgeBase2_at_localhost_public_KnowledgeBase1uggroups; - var $tblKnowledgeBase2_at_localhost_public_KnowledgeBase1ugmembers; - var $tblKnowledgeBase2_at_localhost_public_KnowledgeBase1ugrights; - var $tblKnowledgeBase2_at_localhost_public_noti; - var $tblKnowledgeBase2_at_localhost_public_products; - var $tblKnowledgeBase2_at_localhost_public_prompts; - var $tblKnowledgeBase2_at_localhost_public_server_setting; - var $tblKnowledgeBase2_at_localhost_public_view_faisis_chat_history; - var $tblKnowledgeBase2_at_localhost_public_view_zendesk; - var $tblKnowledgeBase2_at_localhost_public_webreport_admin; - var $tblKnowledgeBase2_at_localhost_public_webreport_style; - var $tblKnowledgeBase2_at_localhost_public_webreports; - var $tblKnowledgeBase2_at_localhost_public_zendesk__dataszz; + var $tblchats_at_localhost__chat126_users1; + var $tblchats_at_localhost__chat_files; + var $tblchats_at_localhost__chat_groups; + var $tblchats_at_localhost__chat_history; + var $tblchats_at_localhost__chat_peopletype; + var $tblchats_at_localhost__chat_settings; + var $tblchats_at_localhost__chat_timezone; + var $tblchats_at_localhost__chat_users; var $lstTables; var $Table = array(); @@ -86,38 +62,14 @@ class tDAL { if($this->lstTables) return; - $this->lstTables[] = array("name" => "appointments", "varname" => "KnowledgeBase2_at_localhost_public_appointments", "altvarname" => "appointments", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $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"); - $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"); - $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"); - $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"); - $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"); - $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"); - $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"); - $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"); - $this->lstTables[] = array("name" => "faicons", "varname" => "KnowledgeBase2_at_localhost_public_faicons", "altvarname" => "faicons", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $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"); - $this->lstTables[] = array("name" => "history", "varname" => "KnowledgeBase2_at_localhost_public_history", "altvarname" => "history", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $this->lstTables[] = array("name" => "identity", "varname" => "KnowledgeBase2_at_localhost_public_identity", "altvarname" => "identity", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $this->lstTables[] = array("name" => "items", "varname" => "KnowledgeBase2_at_localhost_public_items", "altvarname" => "items", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $this->lstTables[] = array("name" => "kbarticles", "varname" => "KnowledgeBase2_at_localhost_public_kbarticles", "altvarname" => "kbarticles", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $this->lstTables[] = array("name" => "kbcategories", "varname" => "KnowledgeBase2_at_localhost_public_kbcategories", "altvarname" => "kbcategories", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $this->lstTables[] = array("name" => "kbcomments", "varname" => "KnowledgeBase2_at_localhost_public_kbcomments", "altvarname" => "kbcomments", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $this->lstTables[] = array("name" => "kbusers", "varname" => "KnowledgeBase2_at_localhost_public_kbusers", "altvarname" => "kbusers", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $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"); - $this->lstTables[] = array("name" => "KnowledgeBase1uggroups", "varname" => "KnowledgeBase2_at_localhost_public_KnowledgeBase1uggroups", "altvarname" => "KnowledgeBase1uggroups", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $this->lstTables[] = array("name" => "KnowledgeBase1ugmembers", "varname" => "KnowledgeBase2_at_localhost_public_KnowledgeBase1ugmembers", "altvarname" => "KnowledgeBase1ugmembers", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $this->lstTables[] = array("name" => "KnowledgeBase1ugrights", "varname" => "KnowledgeBase2_at_localhost_public_KnowledgeBase1ugrights", "altvarname" => "KnowledgeBase1ugrights", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $this->lstTables[] = array("name" => "noti", "varname" => "KnowledgeBase2_at_localhost_public_noti", "altvarname" => "noti", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $this->lstTables[] = array("name" => "products", "varname" => "KnowledgeBase2_at_localhost_public_products", "altvarname" => "products", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $this->lstTables[] = array("name" => "prompts", "varname" => "KnowledgeBase2_at_localhost_public_prompts", "altvarname" => "prompts", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $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"); - $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"); - $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"); - $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"); - $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"); - $this->lstTables[] = array("name" => "webreports", "varname" => "KnowledgeBase2_at_localhost_public_webreports", "altvarname" => "webreports", "connId" => "KnowledgeBase2_at_localhost", "schema" => "public", "connName" => "KnowledgeBase2 at localhost"); - $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"); + $this->lstTables[] = array("name" => "chat126_users1", "varname" => "chats_at_localhost__chat126_users1", "altvarname" => "chat126_users1", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost"); + $this->lstTables[] = array("name" => "chat_files", "varname" => "chats_at_localhost__chat_files", "altvarname" => "chat_files", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost"); + $this->lstTables[] = array("name" => "chat_groups", "varname" => "chats_at_localhost__chat_groups", "altvarname" => "chat_groups", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost"); + $this->lstTables[] = array("name" => "chat_history", "varname" => "chats_at_localhost__chat_history", "altvarname" => "chat_history", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost"); + $this->lstTables[] = array("name" => "chat_peopletype", "varname" => "chats_at_localhost__chat_peopletype", "altvarname" => "chat_peopletype", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost"); + $this->lstTables[] = array("name" => "chat_settings", "varname" => "chats_at_localhost__chat_settings", "altvarname" => "chat_settings", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost"); + $this->lstTables[] = array("name" => "chat_timezone", "varname" => "chats_at_localhost__chat_timezone", "altvarname" => "chat_timezone", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost"); + $this->lstTables[] = array("name" => "chat_users", "varname" => "chats_at_localhost__chat_users", "altvarname" => "chat_users", "connId" => "chats_at_localhost", "schema" => "", "connName" => "chats at localhost"); } /** diff --git a/php/include/dal/chats_at_localhost__chat126_users1.php b/php/include/dal/chats_at_localhost__chat126_users1.php new file mode 100644 index 0000000000000000000000000000000000000000..5d5707c607df7489ea29d771e1f5d53d581ee324 --- /dev/null +++ b/php/include/dal/chats_at_localhost__chat126_users1.php @@ -0,0 +1,14 @@ +3,"varname"=>"ID", "name" => "ID", "autoInc" => "1"); +$dalTablechat126_users1["username"] = array("type"=>200,"varname"=>"username", "name" => "username", "autoInc" => "0"); +$dalTablechat126_users1["password"] = array("type"=>200,"varname"=>"password", "name" => "password", "autoInc" => "0"); +$dalTablechat126_users1["email"] = array("type"=>200,"varname"=>"email", "name" => "email", "autoInc" => "0"); +$dalTablechat126_users1["fullname"] = array("type"=>200,"varname"=>"fullname", "name" => "fullname", "autoInc" => "0"); +$dalTablechat126_users1["groupid"] = array("type"=>200,"varname"=>"groupid", "name" => "groupid", "autoInc" => "0"); +$dalTablechat126_users1["active"] = array("type"=>3,"varname"=>"active", "name" => "active", "autoInc" => "0"); +$dalTablechat126_users1["ext_security_id"] = array("type"=>200,"varname"=>"ext_security_id", "name" => "ext_security_id", "autoInc" => "0"); +$dalTablechat126_users1["ID"]["key"]=true; + +$dal_info["chats_at_localhost__chat126_users1"] = &$dalTablechat126_users1; +?> \ No newline at end of file diff --git a/php/include/dal/chats_at_localhost__chat_files.php b/php/include/dal/chats_at_localhost__chat_files.php new file mode 100644 index 0000000000000000000000000000000000000000..a0d84890943ac3837a470c09fe2cdf6ef628d614 --- /dev/null +++ b/php/include/dal/chats_at_localhost__chat_files.php @@ -0,0 +1,9 @@ +3,"varname"=>"id", "name" => "id", "autoInc" => "1"); +$dalTablechat_files["messageid"] = array("type"=>3,"varname"=>"messageid", "name" => "messageid", "autoInc" => "0"); +$dalTablechat_files["files"] = array("type"=>200,"varname"=>"files", "name" => "files", "autoInc" => "0"); +$dalTablechat_files["id"]["key"]=true; + +$dal_info["chats_at_localhost__chat_files"] = &$dalTablechat_files; +?> \ No newline at end of file diff --git a/php/include/dal/chats_at_localhost__chat_groups.php b/php/include/dal/chats_at_localhost__chat_groups.php new file mode 100644 index 0000000000000000000000000000000000000000..2503e423d6a91c9262a86d8821c057fc5b41c5eb --- /dev/null +++ b/php/include/dal/chats_at_localhost__chat_groups.php @@ -0,0 +1,11 @@ +3,"varname"=>"id", "name" => "id", "autoInc" => "1"); +$dalTablechat_groups["groupname"] = array("type"=>200,"varname"=>"groupname", "name" => "groupname", "autoInc" => "0"); +$dalTablechat_groups["targetid"] = array("type"=>200,"varname"=>"targetid", "name" => "targetid", "autoInc" => "0"); +$dalTablechat_groups["grouptype"] = array("type"=>3,"varname"=>"grouptype", "name" => "grouptype", "autoInc" => "0"); +$dalTablechat_groups["ownerid"] = array("type"=>200,"varname"=>"ownerid", "name" => "ownerid", "autoInc" => "0"); +$dalTablechat_groups["id"]["key"]=true; + +$dal_info["chats_at_localhost__chat_groups"] = &$dalTablechat_groups; +?> \ No newline at end of file diff --git a/php/include/dal/chats_at_localhost__chat_history.php b/php/include/dal/chats_at_localhost__chat_history.php new file mode 100644 index 0000000000000000000000000000000000000000..be300f2010b9ec9341b664d5dfab9df9b63687f9 --- /dev/null +++ b/php/include/dal/chats_at_localhost__chat_history.php @@ -0,0 +1,17 @@ +3,"varname"=>"id", "name" => "id", "autoInc" => "1"); +$dalTablechat_history["messages"] = array("type"=>200,"varname"=>"messages", "name" => "messages", "autoInc" => "0"); +$dalTablechat_history["ownerid"] = array("type"=>200,"varname"=>"ownerid", "name" => "ownerid", "autoInc" => "0"); +$dalTablechat_history["created"] = array("type"=>200,"varname"=>"created", "name" => "created", "autoInc" => "0"); +$dalTablechat_history["isread"] = array("type"=>200,"varname"=>"isread", "name" => "isread", "autoInc" => "0"); +$dalTablechat_history["targetid"] = array("type"=>200,"varname"=>"targetid", "name" => "targetid", "autoInc" => "0"); +$dalTablechat_history["tmp_file"] = array("type"=>200,"varname"=>"tmp_file", "name" => "tmp_file", "autoInc" => "0"); +$dalTablechat_history["status"] = array("type"=>200,"varname"=>"status", "name" => "status", "autoInc" => "0"); +$dalTablechat_history["status_created"] = array("type"=>200,"varname"=>"status_created", "name" => "status_created", "autoInc" => "0"); +$dalTablechat_history["soundRecord"] = array("type"=>128,"varname"=>"soundRecord", "name" => "soundRecord", "autoInc" => "0"); +$dalTablechat_history["isVideo"] = array("type"=>3,"varname"=>"isVideo", "name" => "isVideo", "autoInc" => "0"); +$dalTablechat_history["id"]["key"]=true; + +$dal_info["chats_at_localhost__chat_history"] = &$dalTablechat_history; +?> \ No newline at end of file diff --git a/php/include/dal/chats_at_localhost__chat_peopletype.php b/php/include/dal/chats_at_localhost__chat_peopletype.php new file mode 100644 index 0000000000000000000000000000000000000000..ced1ced544e14e5b63c08e24d1494ae91d127827 --- /dev/null +++ b/php/include/dal/chats_at_localhost__chat_peopletype.php @@ -0,0 +1,8 @@ +3,"varname"=>"id", "name" => "id", "autoInc" => "1"); +$dalTablechat_peopletype["name"] = array("type"=>200,"varname"=>"name", "name" => "name", "autoInc" => "0"); +$dalTablechat_peopletype["id"]["key"]=true; + +$dal_info["chats_at_localhost__chat_peopletype"] = &$dalTablechat_peopletype; +?> \ No newline at end of file diff --git a/php/include/dal/chats_at_localhost__chat_settings.php b/php/include/dal/chats_at_localhost__chat_settings.php new file mode 100644 index 0000000000000000000000000000000000000000..9affe98d76ddf7dc271b84410ef5af8a5481e7ea --- /dev/null +++ b/php/include/dal/chats_at_localhost__chat_settings.php @@ -0,0 +1,31 @@ +3,"varname"=>"id", "name" => "id", "autoInc" => "1"); +$dalTablechat_settings["timeperiod"] = array("type"=>3,"varname"=>"timeperiod", "name" => "timeperiod", "autoInc" => "0"); +$dalTablechat_settings["findusers"] = array("type"=>3,"varname"=>"findusers", "name" => "findusers", "autoInc" => "0"); +$dalTablechat_settings["soundpath"] = array("type"=>200,"varname"=>"soundpath", "name" => "soundpath", "autoInc" => "0"); +$dalTablechat_settings["soundenable"] = array("type"=>3,"varname"=>"soundenable", "name" => "soundenable", "autoInc" => "0"); +$dalTablechat_settings["videoenable"] = array("type"=>3,"varname"=>"videoenable", "name" => "videoenable", "autoInc" => "0"); +$dalTablechat_settings["provider"] = array("type"=>200,"varname"=>"provider", "name" => "provider", "autoInc" => "0"); +$dalTablechat_settings["RC_ClientID"] = array("type"=>200,"varname"=>"RC_ClientID", "name" => "RC_ClientID", "autoInc" => "0"); +$dalTablechat_settings["RC_ClientSecret"] = array("type"=>200,"varname"=>"RC_ClientSecret", "name" => "RC_ClientSecret", "autoInc" => "0"); +$dalTablechat_settings["RC_Account"] = array("type"=>200,"varname"=>"RC_Account", "name" => "RC_Account", "autoInc" => "0"); +$dalTablechat_settings["RC_Password"] = array("type"=>200,"varname"=>"RC_Password", "name" => "RC_Password", "autoInc" => "0"); +$dalTablechat_settings["Z_APIKey"] = array("type"=>200,"varname"=>"Z_APIKey", "name" => "Z_APIKey", "autoInc" => "0"); +$dalTablechat_settings["Z_APISecret"] = array("type"=>200,"varname"=>"Z_APISecret", "name" => "Z_APISecret", "autoInc" => "0"); +$dalTablechat_settings["saveInCloud"] = array("type"=>3,"varname"=>"saveInCloud", "name" => "saveInCloud", "autoInc" => "0"); +$dalTablechat_settings["Z_Token"] = array("type"=>200,"varname"=>"Z_Token", "name" => "Z_Token", "autoInc" => "0"); +$dalTablechat_settings["timezone"] = array("type"=>200,"varname"=>"timezone", "name" => "timezone", "autoInc" => "0"); +$dalTablechat_settings["RC_APIServerURL"] = array("type"=>200,"varname"=>"RC_APIServerURL", "name" => "RC_APIServerURL", "autoInc" => "0"); +$dalTablechat_settings["MS_ClientID"] = array("type"=>200,"varname"=>"MS_ClientID", "name" => "MS_ClientID", "autoInc" => "0"); +$dalTablechat_settings["MS_ClientSecret"] = array("type"=>200,"varname"=>"MS_ClientSecret", "name" => "MS_ClientSecret", "autoInc" => "0"); +$dalTablechat_settings["MS_TenantID"] = array("type"=>200,"varname"=>"MS_TenantID", "name" => "MS_TenantID", "autoInc" => "0"); +$dalTablechat_settings["G_ClientID"] = array("type"=>200,"varname"=>"G_ClientID", "name" => "G_ClientID", "autoInc" => "0"); +$dalTablechat_settings["G_ClientSecret"] = array("type"=>200,"varname"=>"G_ClientSecret", "name" => "G_ClientSecret", "autoInc" => "0"); +$dalTablechat_settings["G_APIKey"] = array("type"=>200,"varname"=>"G_APIKey", "name" => "G_APIKey", "autoInc" => "0"); +$dalTablechat_settings["WB_ClientID"] = array("type"=>200,"varname"=>"WB_ClientID", "name" => "WB_ClientID", "autoInc" => "0"); +$dalTablechat_settings["WB_ClientSecret"] = array("type"=>200,"varname"=>"WB_ClientSecret", "name" => "WB_ClientSecret", "autoInc" => "0"); +$dalTablechat_settings["id"]["key"]=true; + +$dal_info["chats_at_localhost__chat_settings"] = &$dalTablechat_settings; +?> \ No newline at end of file diff --git a/php/include/dal/chats_at_localhost__chat_timezone.php b/php/include/dal/chats_at_localhost__chat_timezone.php new file mode 100644 index 0000000000000000000000000000000000000000..7d999dbe22186be6ca6ae19bc62e4fa5e94a67ff --- /dev/null +++ b/php/include/dal/chats_at_localhost__chat_timezone.php @@ -0,0 +1,12 @@ +3,"varname"=>"id", "name" => "id", "autoInc" => "1"); +$dalTablechat_timezone["zoom"] = array("type"=>200,"varname"=>"zoom", "name" => "zoom", "autoInc" => "0"); +$dalTablechat_timezone["name"] = array("type"=>200,"varname"=>"name", "name" => "name", "autoInc" => "0"); +$dalTablechat_timezone["rc"] = array("type"=>200,"varname"=>"rc", "name" => "rc", "autoInc" => "0"); +$dalTablechat_timezone["order"] = array("type"=>3,"varname"=>"order", "name" => "order", "autoInc" => "0"); +$dalTablechat_timezone["dotnet"] = array("type"=>200,"varname"=>"dotnet", "name" => "dotnet", "autoInc" => "0"); +$dalTablechat_timezone["id"]["key"]=true; + +$dal_info["chats_at_localhost__chat_timezone"] = &$dalTablechat_timezone; +?> \ No newline at end of file diff --git a/php/include/dal/chats_at_localhost__chat_users.php b/php/include/dal/chats_at_localhost__chat_users.php new file mode 100644 index 0000000000000000000000000000000000000000..ddd6da8ec75efacf92b01895d15b78db3c7c2c12 --- /dev/null +++ b/php/include/dal/chats_at_localhost__chat_users.php @@ -0,0 +1,11 @@ +3,"varname"=>"id", "name" => "id", "autoInc" => "1"); +$dalTablechat_users["userid"] = array("type"=>200,"varname"=>"userid", "name" => "userid", "autoInc" => "0"); +$dalTablechat_users["lastaccess"] = array("type"=>135,"varname"=>"lastaccess", "name" => "lastaccess", "autoInc" => "0"); +$dalTablechat_users["isTyping"] = array("type"=>200,"varname"=>"isTyping", "name" => "isTyping", "autoInc" => "0"); +$dalTablechat_users["userpic"] = array("type"=>128,"varname"=>"userpic", "name" => "userpic", "autoInc" => "0"); +$dalTablechat_users["id"]["key"]=true; + +$dal_info["chats_at_localhost__chat_users"] = &$dalTablechat_users; +?> \ No newline at end of file diff --git a/php/include/dbcommon.php b/php/include/dbcommon.php index 1723eaaaa31d79be574de0101934db6b3455aebe..a044847edd71bb1cc7253f593e80201ab22db511 100644 --- a/php/include/dbcommon.php +++ b/php/include/dbcommon.php @@ -16,7 +16,7 @@ if( array_key_exists( "secure", $cookieParams ) ) { } // isolate sessions for projects running on the same site -@session_name( "pD1lszvk6ratOZhmmgvkp" ); +@session_name( "pD0VlErj2qNENyHIqOXR6" ); // Setting the cache limiter to '' will turn off automatic sending of cache headers entirely @session_cache_limiter(""); diff --git a/php/include/events.php b/php/include/events.php index df164127dcf98215f86585b093a3f40c4be18893..a596c337c6c9ca016d538ff3148408fc028b50f6 100644 --- a/php/include/events.php +++ b/php/include/events.php @@ -23,14 +23,10 @@ class class_GlobalEvents extends eventsBase { // fill list of events + $this->events["ModifyMenuItem"]=true; + // onscreen events - $this->events["catefory_list"] = true; - $this->events["category_select"] = true; - $this->events["category_title"] = true; - $this->events["helpfull"] = true; - $this->events["login_header"] = true; - $this->events["main_snippet"] = true; $this->events["chats_history"] = true; $this->events["chat_users"] = true; $this->events["chat_notification"] = true; @@ -79,220 +75,47 @@ class class_GlobalEvents extends eventsBase -// onscreen events - function event_catefory_list(&$params) - { - $main_link = GetTableLink("main","list")."?page=category&"; -$category_rs = DB::Select("kbcategories"); -while($category = $category_rs->fetchAssoc() ){ - $link = $main_link."f=(Category~equals~".rawurlencode($category["Category"]).")"; - echo ""; -} - - ; -} - function event_category_select(&$params) - { - $category_rs = DB::Select("kbcategories"); -echo ""; - - ; -} - function event_category_title(&$params) - { - echo $_SESSION["category"]; - ; -} - function event_helpfull(&$params) - { - - -echo "Was this article helpful?"; -echo ""; -echo "Yes"; -echo "No"; -echo ""; -echo ""; -echo "Thank you for your feedback!"; - ; -} - function event_login_header(&$params) - { - $script = <<<'EOD' -
-Use to login -
- -EOD; + + + + + + + -echo $script; - ; -} - function event_main_snippet(&$params) - { - // Put your code here. -echo '
- - - - - - - - - - - -
'; - ; -} +// onscreen events function event_chats_history(&$params) { //$msg = getMessage(0,"true"); diff --git a/php/include/export_functions.php b/php/include/export_functions.php index cd575bc10d8c70a4715b1d2b1dbe786d37cc19f2..3720eef6baa6fb92e6bebd04d605250cb189205a 100644 --- a/php/include/export_functions.php +++ b/php/include/export_functions.php @@ -1,6 +1,7 @@ \ No newline at end of file diff --git a/php/include/locale.php b/php/include/locale.php index e87ed645dc263291f685cba7a40b144c9305a489..9210cf146360a8167903d5d67d5919cf59c2fbe5 100644 --- a/php/include/locale.php +++ b/php/include/locale.php @@ -7,69 +7,69 @@ require_once(getabspath("include/LocaleFunctions.php")); $locale_info = array(); -$locale_info["LOCALE_LANGNAME"]="ja"; -$locale_info["LOCALE_CTRYNAME"]="JP"; +$locale_info["LOCALE_LANGNAME"]="en"; +$locale_info["LOCALE_CTRYNAME"]="US"; // date settings $locale_info["LOCALE_ICENTURY"]="1"; -$locale_info["LOCALE_IDATE"]="2"; -$locale_info["LOCALE_ILDATE"]="2"; +$locale_info["LOCALE_IDATE"]="0"; +$locale_info["LOCALE_ILDATE"]="0"; $locale_info["LOCALE_SDATE"]="/"; -$locale_info["LOCALE_SLONGDATE"]="yyyy'年'M'月'd'日'"; -$locale_info["LOCALE_SSHORTDATE"]="yyyy/MM/dd"; +$locale_info["LOCALE_SLONGDATE"]="dddd, MMMM d, yyyy"; +$locale_info["LOCALE_SSHORTDATE"]="M/d/yyyy"; // weekday names $locale_info["LOCALE_IFIRSTDAYOFWEEK"]="6"; -$locale_info["LOCALE_SDAYNAME1"]="月曜日"; -$locale_info["LOCALE_SDAYNAME2"]="火曜日"; -$locale_info["LOCALE_SDAYNAME3"]="水曜日"; -$locale_info["LOCALE_SDAYNAME4"]="木曜日"; -$locale_info["LOCALE_SDAYNAME5"]="金曜日"; -$locale_info["LOCALE_SDAYNAME6"]="土曜日"; -$locale_info["LOCALE_SDAYNAME7"]="日曜日"; -$locale_info["LOCALE_SABBREVDAYNAME1"]="月"; -$locale_info["LOCALE_SABBREVDAYNAME2"]="火"; -$locale_info["LOCALE_SABBREVDAYNAME3"]="水"; -$locale_info["LOCALE_SABBREVDAYNAME4"]="木"; -$locale_info["LOCALE_SABBREVDAYNAME5"]="金"; -$locale_info["LOCALE_SABBREVDAYNAME6"]="土"; -$locale_info["LOCALE_SABBREVDAYNAME7"]="日"; +$locale_info["LOCALE_SDAYNAME1"]="Monday"; +$locale_info["LOCALE_SDAYNAME2"]="Tuesday"; +$locale_info["LOCALE_SDAYNAME3"]="Wednesday"; +$locale_info["LOCALE_SDAYNAME4"]="Thursday"; +$locale_info["LOCALE_SDAYNAME5"]="Friday"; +$locale_info["LOCALE_SDAYNAME6"]="Saturday"; +$locale_info["LOCALE_SDAYNAME7"]="Sunday"; +$locale_info["LOCALE_SABBREVDAYNAME1"]="Mon"; +$locale_info["LOCALE_SABBREVDAYNAME2"]="Tue"; +$locale_info["LOCALE_SABBREVDAYNAME3"]="Wed"; +$locale_info["LOCALE_SABBREVDAYNAME4"]="Thu"; +$locale_info["LOCALE_SABBREVDAYNAME5"]="Fri"; +$locale_info["LOCALE_SABBREVDAYNAME6"]="Sat"; +$locale_info["LOCALE_SABBREVDAYNAME7"]="Sun"; // month names -$locale_info["LOCALE_SMONTHNAME1"]="1月"; -$locale_info["LOCALE_SMONTHNAME2"]="2月"; -$locale_info["LOCALE_SMONTHNAME3"]="3月"; -$locale_info["LOCALE_SMONTHNAME4"]="4月"; -$locale_info["LOCALE_SMONTHNAME5"]="5月"; -$locale_info["LOCALE_SMONTHNAME6"]="6月"; -$locale_info["LOCALE_SMONTHNAME7"]="7月"; -$locale_info["LOCALE_SMONTHNAME8"]="8月"; -$locale_info["LOCALE_SMONTHNAME9"]="9月"; -$locale_info["LOCALE_SMONTHNAME10"]="10月"; -$locale_info["LOCALE_SMONTHNAME11"]="11月"; -$locale_info["LOCALE_SMONTHNAME12"]="12月"; -$locale_info["LOCALE_SABBREVMONTHNAME1"]="1"; -$locale_info["LOCALE_SABBREVMONTHNAME2"]="2"; -$locale_info["LOCALE_SABBREVMONTHNAME3"]="3"; -$locale_info["LOCALE_SABBREVMONTHNAME4"]="4"; -$locale_info["LOCALE_SABBREVMONTHNAME5"]="5"; -$locale_info["LOCALE_SABBREVMONTHNAME6"]="6"; -$locale_info["LOCALE_SABBREVMONTHNAME7"]="7"; -$locale_info["LOCALE_SABBREVMONTHNAME8"]="8"; -$locale_info["LOCALE_SABBREVMONTHNAME9"]="9"; -$locale_info["LOCALE_SABBREVMONTHNAME10"]="10"; -$locale_info["LOCALE_SABBREVMONTHNAME11"]="11"; -$locale_info["LOCALE_SABBREVMONTHNAME12"]="12"; +$locale_info["LOCALE_SMONTHNAME1"]="January"; +$locale_info["LOCALE_SMONTHNAME2"]="February"; +$locale_info["LOCALE_SMONTHNAME3"]="March"; +$locale_info["LOCALE_SMONTHNAME4"]="April"; +$locale_info["LOCALE_SMONTHNAME5"]="May"; +$locale_info["LOCALE_SMONTHNAME6"]="June"; +$locale_info["LOCALE_SMONTHNAME7"]="July"; +$locale_info["LOCALE_SMONTHNAME8"]="August"; +$locale_info["LOCALE_SMONTHNAME9"]="September"; +$locale_info["LOCALE_SMONTHNAME10"]="October"; +$locale_info["LOCALE_SMONTHNAME11"]="November"; +$locale_info["LOCALE_SMONTHNAME12"]="December"; +$locale_info["LOCALE_SABBREVMONTHNAME1"]="Jan"; +$locale_info["LOCALE_SABBREVMONTHNAME2"]="Feb"; +$locale_info["LOCALE_SABBREVMONTHNAME3"]="Mar"; +$locale_info["LOCALE_SABBREVMONTHNAME4"]="Apr"; +$locale_info["LOCALE_SABBREVMONTHNAME5"]="May"; +$locale_info["LOCALE_SABBREVMONTHNAME6"]="Jun"; +$locale_info["LOCALE_SABBREVMONTHNAME7"]="Jul"; +$locale_info["LOCALE_SABBREVMONTHNAME8"]="Aug"; +$locale_info["LOCALE_SABBREVMONTHNAME9"]="Sep"; +$locale_info["LOCALE_SABBREVMONTHNAME10"]="Oct"; +$locale_info["LOCALE_SABBREVMONTHNAME11"]="Nov"; +$locale_info["LOCALE_SABBREVMONTHNAME12"]="Dec"; // time settings -$locale_info["LOCALE_ITIME"]="1"; +$locale_info["LOCALE_ITIME"]="0"; $locale_info["LOCALE_ITIMEMARKPOSN"]="0"; $locale_info["LOCALE_ITLZERO"]="0"; -$locale_info["LOCALE_S1159"]="午前"; -$locale_info["LOCALE_S2359"]="午後"; +$locale_info["LOCALE_S1159"]="AM"; +$locale_info["LOCALE_S2359"]="PM"; $locale_info["LOCALE_STIME"]=":"; -$locale_info["LOCALE_STIMEFORMAT"]="H:mm:ss"; +$locale_info["LOCALE_STIMEFORMAT"]="h:mm:ss tt"; // currency settings -$locale_info["LOCALE_ICURRDIGITS"]="0"; +$locale_info["LOCALE_ICURRDIGITS"]="2"; $locale_info["LOCALE_ICURRENCY"]="0"; -$locale_info["LOCALE_INEGCURR"]="1"; -$locale_info["LOCALE_SCURRENCY"]="¥"; +$locale_info["LOCALE_INEGCURR"]="0"; +$locale_info["LOCALE_SCURRENCY"]="\$"; $locale_info["LOCALE_SMONDECIMALSEP"]="."; $locale_info["LOCALE_SMONGROUPING"]="3;0"; $locale_info["LOCALE_SMONTHOUSANDSEP"]=","; diff --git a/php/include/locking.php b/php/include/locking.php index bf182c0b629ebf82c98c4bca03990f24f2ad9f62..ca842e24ec19036b81b5bc4b0f00fca25870783d 100644 --- a/php/include/locking.php +++ b/php/include/locking.php @@ -1,7 +1,7 @@ "kbarticles", "field" => "Category", "page" => "edit"); - if( !isset( $lookupTableLinks["faicons"] ) ) { - $lookupTableLinks["faicons"] = array(); - } - if( !isset( $lookupTableLinks["faicons"]["kbcategories.faicon"] )) { - $lookupTableLinks["faicons"]["kbcategories.faicon"] = array(); - } - $lookupTableLinks["faicons"]["kbcategories.faicon"]["edit"] = array("table" => "kbcategories", "field" => "faicon", "page" => "edit"); - if( !isset( $lookupTableLinks["kbarticles"] ) ) { - $lookupTableLinks["kbarticles"] = array(); - } - if( !isset( $lookupTableLinks["kbarticles"]["admin_comments.ArticleID"] )) { - $lookupTableLinks["kbarticles"]["admin_comments.ArticleID"] = array(); - } - $lookupTableLinks["kbarticles"]["admin_comments.ArticleID"]["edit"] = array("table" => "admin_comments", "field" => "ArticleID", "page" => "edit"); if( !isset( $lookupTableLinks["chat_timezone"] ) ) { $lookupTableLinks["chat_timezone"] = array(); } diff --git a/php/include/menunodes_adminarea.php b/php/include/menunodes_adminarea.php index a6be2f94622cc4dee962ec73c0cf74022644e5fd..e636abc3a4cc05091977c007aecbe188f0282470 100644 --- a/php/include/menunodes_adminarea.php +++ b/php/include/menunodes_adminarea.php @@ -3,54 +3,6 @@ // create menu nodes arr $menuNodes = array(); //Admin Area menu items -// admin_rights item -$menuNode = array(); -$menuNode["id"] = "1"; -$menuNode["name"] = "admin_rights"; -$menuNode["type"] = "Leaf"; -$menuNode["table"] = "admin_rights"; -$menuNode["style"] = ""; -$menuNode["params"] = ""; -$menuNode["parent"] = "0"; -$menuNode["nameType"] = "Text"; -$menuNode["linkType"] = "External"; -$menuNode["pageType"] = "AdminArea"; -$menuNode["openType"] = "None"; -$menuNode["title"] = "Permissions"; -$menuNode["href"] = GetTableLink("admin_rights", "list"); -$menuNodes[] = $menuNode; -// admin_members item -$menuNode = array(); -$menuNode["id"] = "2"; -$menuNode["name"] = "admin_members"; -$menuNode["type"] = "Leaf"; -$menuNode["table"] = "admin_members"; -$menuNode["style"] = ""; -$menuNode["params"] = ""; -$menuNode["parent"] = "0"; -$menuNode["nameType"] = "Text"; -$menuNode["linkType"] = "External"; -$menuNode["pageType"] = "AdminArea"; -$menuNode["openType"] = "None"; -$menuNode["title"] = "Assign users to groups"; -$menuNode["href"] = GetTableLink("admin_members", "list"); -$menuNodes[] = $menuNode; -// admin_users item -$menuNode = array(); -$menuNode["id"] = "3"; -$menuNode["name"] = "admin_users"; -$menuNode["type"] = "Leaf"; -$menuNode["table"] = "admin_users"; -$menuNode["style"] = ""; -$menuNode["params"] = ""; -$menuNode["parent"] = "0"; -$menuNode["nameType"] = "Text"; -$menuNode["linkType"] = "External"; -$menuNode["pageType"] = "AdminArea"; -$menuNode["openType"] = "None"; -$menuNode["title"] = "Add/Edit users"; -$menuNode["href"] = GetTableLink("admin_users", "list"); -$menuNodes[] = $menuNode; $menuNodesCache[ "adminarea" ] = $menuNodes; ?> diff --git a/php/include/menunodes_main.php b/php/include/menunodes_main.php index 80b57e021af66b52af48d477113c5d3674ca4a56..e44faeb6128d016371cd26c88d955e2672b8746d 100644 --- a/php/include/menunodes_main.php +++ b/php/include/menunodes_main.php @@ -4,75 +4,23 @@ $menuNodes = array(); $menuNode = array(); - $menuNode["id"] = "7"; - $menuNode["name"] = "admin"; - $menuNode["href"] = ""; - $menuNode["type"] = "Group"; - $menuNode["table"] = ""; - $menuNode["style"] = ""; - $menuNode["params"] = ""; - $menuNode["parent"] = "0"; - $menuNode["nameType"] = "Text"; - $menuNode["linkType"] = "None"; - $menuNode["pageType"] = strtolower("");// - $menuNode["pageId"] = ""; - $menuNode["openType"] = "None"; - - $menuNode["icon"] = ""; - $menuNode["iconType"] = "0"; - $menuNode["iconShow"] = "1"; - - $menuNode["color"] = ""; - - $menuNode["title"] = "admin"; - - - - $menuNodes[] = $menuNode; - $menuNode = array(); - $menuNode["id"] = "28"; - $menuNode["name"] = "AI"; - $menuNode["href"] = ""; - $menuNode["type"] = "Group"; - $menuNode["table"] = ""; - $menuNode["style"] = ""; - $menuNode["params"] = ""; - $menuNode["parent"] = "0"; - $menuNode["nameType"] = "Text"; - $menuNode["linkType"] = "None"; - $menuNode["pageType"] = strtolower("");// - $menuNode["pageId"] = ""; - $menuNode["openType"] = "None"; - - $menuNode["icon"] = ""; - $menuNode["iconType"] = "0"; - $menuNode["iconShow"] = "1"; - - $menuNode["color"] = ""; - - $menuNode["title"] = "AI"; - - - - $menuNodes[] = $menuNode; - $menuNode = array(); - $menuNode["id"] = "13"; + $menuNode["id"] = "1"; $menuNode["name"] = "Chat"; - $menuNode["href"] = ""; - $menuNode["type"] = "Group"; - $menuNode["table"] = ""; + $menuNode["href"] = "mypage.htm"; + $menuNode["type"] = "Leaf"; + $menuNode["table"] = "chat_history"; $menuNode["style"] = ""; $menuNode["params"] = ""; $menuNode["parent"] = "0"; $menuNode["nameType"] = "Text"; - $menuNode["linkType"] = "None"; - $menuNode["pageType"] = strtolower("");// + $menuNode["linkType"] = "Internal"; + $menuNode["pageType"] = strtolower("Add");// $menuNode["pageId"] = ""; $menuNode["openType"] = "None"; - $menuNode["icon"] = ""; - $menuNode["iconType"] = "0"; - $menuNode["iconShow"] = "1"; + $menuNode["icon"] = "glyphicon-briefcase"; + $menuNode["iconType"] = "2"; + $menuNode["iconShow"] = "2"; $menuNode["color"] = ""; @@ -82,17 +30,17 @@ $menuNodes[] = $menuNode; $menuNode = array(); - $menuNode["id"] = "9"; - $menuNode["name"] = ""; - $menuNode["href"] = ""; + $menuNode["id"] = "2"; + $menuNode["name"] = "Settings"; + $menuNode["href"] = "mypage.htm"; $menuNode["type"] = "Leaf"; - $menuNode["table"] = "{04AFFBE6-86C0-47b0-ADD3-BA7FA19CA6FC}"; + $menuNode["table"] = "chat_settings"; $menuNode["style"] = ""; - $menuNode["params"] = ""; - $menuNode["parent"] = "13"; + $menuNode["params"] = "editid1=1"; + $menuNode["parent"] = "0"; $menuNode["nameType"] = "Text"; $menuNode["linkType"] = "Internal"; - $menuNode["pageType"] = strtolower("WebReports");// + $menuNode["pageType"] = strtolower("Edit");// $menuNode["pageId"] = ""; $menuNode["openType"] = "None"; @@ -102,7 +50,7 @@ $menuNode["color"] = ""; - $menuNode["title"] = "Web Reports"; + $menuNode["title"] = "Settings"; diff --git a/php/include/pages/_global_changepwd_Chat1.php b/php/include/pages/_global_changepwd_Chat1.php new file mode 100644 index 0000000000000000000000000000000000000000..9ea045597a66ad5f2ab3b83e3d8329be031890b7 --- /dev/null +++ b/php/include/pages/_global_changepwd_Chat1.php @@ -0,0 +1,133 @@ + array( 'captcha' => false ), +'fields' => array( 'gridFields' => array( ), +'searchRequiredFields' => array( ), +'searchPanelFields' => array( ), +'fieldItems' => array( ) ), +'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( 'changepwd_message' ), +'supertop' => array( ), +'top' => array( 'changepwd_header' ), +'grid' => array( 'oldpass_label', +'oldpass', +'newpass_label', +'newpass', +'confirm_label', +'confirm' ), +'footer' => array( 'changepwd_button', +'changepwd_back' ) ), +'formXtTags' => array( 'supertop' => array( ) ), +'itemForms' => array( 'changepwd_message' => 'above-grid', +'changepwd_header' => 'top', +'oldpass_label' => 'grid', +'oldpass' => 'grid', +'newpass_label' => 'grid', +'newpass' => 'grid', +'confirm_label' => 'grid', +'confirm' => 'grid', +'changepwd_button' => 'footer', +'changepwd_back' => 'footer' ), +'itemLocations' => array( ), +'itemVisiblity' => array( ) ), +'itemsByType' => array( 'oldpass_label' => array( 'oldpass_label' ), +'newpass_label' => array( 'newpass_label' ), +'confirm_label' => array( 'confirm_label' ), +'oldpass' => array( 'oldpass' ), +'newpass' => array( 'newpass' ), +'confirm' => array( 'confirm' ), +'changepwd_message' => array( 'changepwd_message' ), +'changepwd_button' => array( 'changepwd_button' ), +'changepwd_back' => array( 'changepwd_back' ), +'changepwd_header' => array( 'changepwd_header' ) ), +'cellMaps' => array( ) ), +'page' => array( 'verticalBar' => false, +'labeledButtons' => array( 'update_records' => array( ), +'print_pages' => array( ), +'register_activate_message' => array( ), +'details_found' => array( ) ), +'hasCustomButtons' => false, +'customButtons' => array( ), +'hasNotifications' => false, +'menus' => array( ), +'calcTotalsFor' => 1 ), +'events' => array( 'maps' => array( ), +'mapsData' => array( ), +'buttons' => array( ) ), +'changepwd' => array( 'oldPassFieldOnPage' => true ) ); + $pageArray = array( 'id' => 'changepwd_Chat1', +'type' => 'changepwd', +'layoutId' => 'first', +'disabled' => 0, +'default' => 44, +'forms' => array( 'above-grid' => array( 'modelId' => 'changepwd-above-grid', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( 'changepwd_message' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'supertop' => array( 'modelId' => 'panel-top', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'top' => array( 'modelId' => 'changepwd-header', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( 'changepwd_header' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'grid' => array( 'modelId' => 'changepwd-grid', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ), +array( 'cell' => 'c2' ) ), +'section' => '' ), +array( 'cells' => array( array( 'cell' => 'c3' ), +array( 'cell' => 'c4' ) ), +'section' => '' ), +array( 'cells' => array( array( 'cell' => 'c5' ), +array( 'cell' => 'c6' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( 'oldpass_label' ) ), +'c2' => array( 'model' => 'c2', +'items' => array( 'oldpass' ) ), +'c3' => array( 'model' => 'c3', +'items' => array( 'newpass_label' ) ), +'c4' => array( 'model' => 'c4', +'items' => array( 'newpass' ) ), +'c5' => array( 'model' => 'c5', +'items' => array( 'confirm_label' ) ), +'c6' => array( 'model' => 'c6', +'items' => array( 'confirm' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'footer' => array( 'modelId' => 'changepwd-footer', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( 'changepwd_button', +'changepwd_back' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ) ), +'items' => array( 'oldpass_label' => array( 'type' => 'oldpass_label' ), +'newpass_label' => array( 'type' => 'newpass_label' ), +'confirm_label' => array( 'type' => 'confirm_label' ), +'oldpass' => array( 'type' => 'oldpass' ), +'newpass' => array( 'type' => 'newpass' ), +'confirm' => array( 'type' => 'confirm' ), +'changepwd_message' => array( 'type' => 'changepwd_message' ), +'changepwd_button' => array( 'type' => 'changepwd_button' ), +'changepwd_back' => array( 'type' => 'changepwd_back' ), +'changepwd_header' => array( 'type' => 'changepwd_header' ) ), +'dbProps' => array( ), +'version' => 14, +'businessTemplate' => 'Chat', +'businessTemplatePageId' => 'changepwd_Chat', +'imageItem' => array( 'type' => 'page_image' ), +'imageBgColor' => '#f2f2f2', +'controlsBgColor' => 'white', +'imagePosition' => 'right', +'listTotals' => 1 ); + ?> \ No newline at end of file diff --git a/php/include/pages/_global_changepwd_success_Chat1.php b/php/include/pages/_global_changepwd_success_Chat1.php new file mode 100644 index 0000000000000000000000000000000000000000..a5ed9a5944ab23a616a69f2520f225a7478d48e4 --- /dev/null +++ b/php/include/pages/_global_changepwd_success_Chat1.php @@ -0,0 +1,78 @@ + array( 'gridFields' => array( ), +'searchRequiredFields' => array( ), +'searchPanelFields' => array( ), +'fieldItems' => array( ) ), +'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'supertop' => array( ), +'top' => array( 'changepwd_success_header' ), +'grid' => array( 'changepwd_success_message' ), +'footer' => array( 'changepwd_success_back' ) ), +'formXtTags' => array( 'supertop' => array( ) ), +'itemForms' => array( 'changepwd_success_header' => 'top', +'changepwd_success_message' => 'grid', +'changepwd_success_back' => 'footer' ), +'itemLocations' => array( ), +'itemVisiblity' => array( ) ), +'itemsByType' => array( 'changepwd_success_message' => array( 'changepwd_success_message' ), +'changepwd_success_back' => array( 'changepwd_success_back' ), +'changepwd_success_header' => array( 'changepwd_success_header' ) ), +'cellMaps' => array( ) ), +'page' => array( 'verticalBar' => false, +'labeledButtons' => array( 'update_records' => array( ), +'print_pages' => array( ), +'register_activate_message' => array( ), +'details_found' => array( ) ), +'hasCustomButtons' => false, +'customButtons' => array( ), +'hasNotifications' => false, +'menus' => array( ), +'calcTotalsFor' => 1 ), +'events' => array( 'maps' => array( ), +'mapsData' => array( ), +'buttons' => array( ) ) ); + $pageArray = array( 'id' => 'changepwd_success_Chat1', +'type' => 'changepwd_success', +'layoutId' => 'first', +'disabled' => 0, +'default' => 44, +'forms' => array( 'supertop' => array( 'modelId' => 'panel-top', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'top' => array( 'modelId' => 'changepwd-success-header', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( 'changepwd_success_header' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'grid' => array( 'modelId' => 'changepwd-success-grid', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( 'changepwd_success_message' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'footer' => array( 'modelId' => 'changepwd-success-footer', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( 'changepwd_success_back' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ) ), +'items' => array( 'changepwd_success_message' => array( 'type' => 'changepwd_success_message' ), +'changepwd_success_back' => array( 'type' => 'changepwd_success_back' ), +'changepwd_success_header' => array( 'type' => 'changepwd_success_header' ) ), +'dbProps' => array( ), +'version' => 14, +'businessTemplate' => 'Chat', +'businessTemplatePageId' => 'changepwd_success_Chat', +'imageItem' => array( 'type' => 'page_image' ), +'imageBgColor' => '#f2f2f2', +'controlsBgColor' => 'white', +'imagePosition' => 'right', +'listTotals' => 1 ); + ?> \ No newline at end of file diff --git a/php/include/pages/_global_login_Chat1.php b/php/include/pages/_global_login_Chat1.php new file mode 100644 index 0000000000000000000000000000000000000000..80f69ed1cb09dcb3e2bf44578a5866e1542dbe05 --- /dev/null +++ b/php/include/pages/_global_login_Chat1.php @@ -0,0 +1,147 @@ + array( 'captcha' => false ), +'fields' => array( 'gridFields' => array( ), +'searchRequiredFields' => array( ), +'searchPanelFields' => array( ), +'fieldItems' => array( ) ), +'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( 'login_message' ), +'supertop' => array( ), +'top' => array( 'login_header' ), +'grid' => array( 'remember_password', +'username_label', +'username', +'password_label', +'password' ), +'footer' => array( 'login_button', +'guest_login' ), +'superbottom' => array( ) ), +'formXtTags' => array( 'supertop' => array( ), +'footer' => array( 'signin_button', +'guestlink_block' ), +'superbottom' => array( ) ), +'itemForms' => array( 'login_message' => 'above-grid', +'login_header' => 'top', +'remember_password' => 'grid', +'username_label' => 'grid', +'username' => 'grid', +'password_label' => 'grid', +'password' => 'grid', +'login_button' => 'footer', +'guest_login' => 'footer' ), +'itemLocations' => array( ), +'itemVisiblity' => array( ) ), +'itemsByType' => array( 'login_message' => array( 'login_message' ), +'guest_login' => array( 'guest_login' ), +'login_header' => array( 'login_header' ), +'username_label' => array( 'username_label' ), +'username' => array( 'username' ), +'password_label' => array( 'password_label' ), +'password' => array( 'password' ), +'remember_password' => array( 'remember_password' ), +'login_button' => array( 'login_button' ) ), +'cellMaps' => array( ) ), +'page' => array( 'verticalBar' => false, +'labeledButtons' => array( 'update_records' => array( ), +'print_pages' => array( ), +'register_activate_message' => array( ), +'details_found' => array( ) ), +'hasCustomButtons' => false, +'customButtons' => array( ), +'hasNotifications' => false, +'menus' => array( ), +'calcTotalsFor' => 1 ), +'events' => array( 'maps' => array( ), +'mapsData' => array( ), +'buttons' => array( ) ) ); + $pageArray = array( 'id' => 'login_Chat1', +'type' => 'login', +'layoutId' => 'first', +'disabled' => 0, +'default' => 44, +'forms' => array( 'above-grid' => array( 'modelId' => 'login-above-grid', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c2' ) ), +'section' => '' ), +array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c2' => array( 'model' => 'c2', +'items' => array( ) ), +'c1' => array( 'model' => 'c1', +'items' => array( 'login_message' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'supertop' => array( 'modelId' => 'panel-top', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'top' => array( 'modelId' => 'login-header', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ), +array( 'cell' => 'c2' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( 'login_header' ) ), +'c2' => array( 'model' => 'c2', +'items' => array( ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'grid' => array( 'modelId' => 'login-labels', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ), +array( 'cell' => 'c2' ) ), +'section' => '' ), +array( 'cells' => array( array( 'cell' => 'c3' ), +array( 'cell' => 'c4' ) ), +'section' => '' ), +array( 'cells' => array( array( 'cell' => 'c9' ), +array( 'cell' => 'c10' ) ), +'section' => '' ) ), +'cells' => array( 'c9' => array( 'model' => 'c9', +'items' => array( ) ), +'c10' => array( 'model' => 'c10', +'items' => array( 'remember_password' ) ), +'c1' => array( 'model' => 'c1', +'items' => array( 'username_label' ) ), +'c2' => array( 'model' => 'c2', +'items' => array( 'username' ) ), +'c3' => array( 'model' => 'c3', +'items' => array( 'password_label' ) ), +'c4' => array( 'model' => 'c4', +'items' => array( 'password' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'footer' => array( 'modelId' => 'login-footer', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ), +array( 'cell' => 'c2' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( ) ), +'c2' => array( 'model' => 'c2', +'items' => array( 'login_button', +'guest_login' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'superbottom' => array( 'modelId' => 'login-superbottom', +'grid' => array( ), +'cells' => array( ), +'deferredItems' => array( ), +'recsPerRow' => 1 ) ), +'items' => array( 'login_message' => array( 'type' => 'login_message' ), +'guest_login' => array( 'type' => 'guest_login' ), +'login_header' => array( 'type' => 'login_header' ), +'username_label' => array( 'type' => 'username_label' ), +'username' => array( 'type' => 'username' ), +'password_label' => array( 'type' => 'password_label' ), +'password' => array( 'type' => 'password' ), +'remember_password' => array( 'type' => 'remember_password' ), +'login_button' => array( 'type' => 'login_button' ) ), +'dbProps' => array( ), +'version' => 14, +'businessTemplate' => 'Chat', +'businessTemplatePageId' => 'login_Chat', +'imageItem' => array( 'type' => 'page_image' ), +'imageBgColor' => '#f2f2f2', +'controlsBgColor' => 'white', +'imagePosition' => 'right', +'listTotals' => 1 ); + ?> \ No newline at end of file diff --git a/php/include/pages/_global_menu_Chat1.php b/php/include/pages/_global_menu_Chat1.php new file mode 100644 index 0000000000000000000000000000000000000000..31c70aa621e4918eb47ac225f36260c810d593b5 --- /dev/null +++ b/php/include/pages/_global_menu_Chat1.php @@ -0,0 +1,124 @@ + array( 'welcomePageSkip' => true, +'welcomeItems' => array( 'logo' => array( 'menutItem' => false ), +'menu' => array( 'menutItem' => false ), +'list_options' => array( 'menutItem' => false ), +'loginform_login' => array( 'menutItem' => false ), +'username_button' => array( 'menutItem' => false ), +'welcome_item' => array( 'menutItem' => true, +'group' => false, +'linkType' => 0, +'items' => null, +'table' => 'chat_history', +'page' => 'add' ) ) ), +'fields' => array( 'gridFields' => array( ), +'searchRequiredFields' => array( ), +'searchPanelFields' => array( ), +'fieldItems' => array( ) ), +'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( ), +'supertop' => array( 'logo', +'menu', +'list_options', +'loginform_login', +'username_button' ), +'grid' => array( 'welcome_item' ) ), +'formXtTags' => array( 'above-grid' => array( ) ), +'itemForms' => array( 'logo' => 'supertop', +'menu' => 'supertop', +'list_options' => 'supertop', +'loginform_login' => 'supertop', +'username_button' => 'supertop', +'welcome_item' => 'grid' ), +'itemLocations' => array( ), +'itemVisiblity' => array( 'menu' => 3, +'list_options' => 3, +'username_button' => 3, +'loginform_login' => 3 ) ), +'itemsByType' => array( 'logo' => array( 'logo' ), +'menu' => array( 'menu' ), +'welcome_item' => array( 'welcome_item' ), +'list_options' => array( 'list_options' ), +'username_button' => array( 'username_button' ), +'loginform_login' => array( 'loginform_login' ), +'userinfo_link' => array( 'userinfo_link' ), +'logout_link' => array( 'logout_link' ) ), +'cellMaps' => array( ) ), +'loginForm' => array( 'loginForm' => 0 ), +'page' => array( 'verticalBar' => false, +'labeledButtons' => array( 'update_records' => array( ), +'print_pages' => array( ), +'register_activate_message' => array( ), +'details_found' => array( ) ), +'hasCustomButtons' => false, +'customButtons' => array( ), +'hasNotifications' => false, +'menus' => array( array( 'id' => 'main', +'horizontal' => true ) ), +'calcTotalsFor' => 1 ), +'events' => array( 'maps' => array( ), +'mapsData' => array( ), +'buttons' => array( ) ) ); + $pageArray = array( 'id' => 'menu_Chat1', +'type' => 'menu', +'layoutId' => 'topbar', +'disabled' => 0, +'default' => 44, +'forms' => array( 'above-grid' => array( 'modelId' => 'empty-above-grid', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'supertop' => array( 'modelId' => 'menu-topbar-menu', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ), +array( 'cell' => 'c2' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( 'logo', +'menu' ) ), +'c2' => array( 'model' => 'c2', +'items' => array( 'list_options', +'loginform_login', +'username_button' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'grid' => array( 'modelId' => 'welcome', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( 'welcome_item' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ) ), +'items' => array( 'logo' => array( 'type' => 'logo' ), +'menu' => array( 'type' => 'menu' ), +'welcome_item' => array( 'type' => 'welcome_item', +'linkUrl' => '', +'linkTable' => 'chat_history', +'linkPage' => 'add', +'linkText' => array( 'type' => 0, +'text' => 'Chat' ), +'linkIcon' => array( 'glyph' => 'briefcase' ), +'linkComments' => array( 'text' => 'Chats History description', +'type' => 0 ), +'background' => '#CFAE83', +'linkType' => 0 ), +'list_options' => array( 'type' => 'list_options', +'items' => array( ) ), +'username_button' => array( 'type' => 'username_button', +'items' => array( 'userinfo_link', +'logout_link' ) ), +'loginform_login' => array( 'type' => 'loginform_login', +'popup' => false ), +'userinfo_link' => array( 'type' => 'userinfo_link' ), +'logout_link' => array( 'type' => 'logout_link' ) ), +'dbProps' => array( ), +'version' => 14, +'businessTemplate' => 'Chat', +'businessTemplatePageId' => 'menu_Chat', +'imageItem' => array( 'type' => 'page_image' ), +'imageBgColor' => '#f2f2f2', +'controlsBgColor' => 'white', +'imagePosition' => 'right', +'listTotals' => 1 ); + ?> \ No newline at end of file diff --git a/php/include/pages/_global_userinfo_Chat1.php b/php/include/pages/_global_userinfo_Chat1.php new file mode 100644 index 0000000000000000000000000000000000000000..4908f31b7a70e5d73462833a903a70da5ea333f0 --- /dev/null +++ b/php/include/pages/_global_userinfo_Chat1.php @@ -0,0 +1,224 @@ + array( 'gridFields' => array( 'username', +'fullname', +'email' ), +'searchRequiredFields' => array( ), +'searchPanelFields' => array( ), +'fieldItems' => array( 'username' => array( 'integrated_edit_field' ), +'fullname' => array( 'integrated_edit_field1' ), +'email' => array( 'integrated_edit_field2' ) ) ), +'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( ), +'below-grid' => array( ), +'supertop' => array( 'expand_menu_button', +'collapse_button', +'breadcrumb', +'loginform_login', +'username_button' ), +'left' => array( 'logo', +'expand_button', +'menu' ), +'top' => array( ), +'grid' => array( 'user_fields_title', +'fields_message', +'user_fields_reset', +'user_fields_save', +'integrated_edit_field', +'integrated_edit_field1', +'integrated_edit_field2' ) ), +'formXtTags' => array( 'above-grid' => array( ), +'below-grid' => array( ), +'top' => array( ) ), +'itemForms' => array( 'expand_menu_button' => 'supertop', +'collapse_button' => 'supertop', +'breadcrumb' => 'supertop', +'loginform_login' => 'supertop', +'username_button' => 'supertop', +'logo' => 'left', +'expand_button' => 'left', +'menu' => 'left', +'user_fields_title' => 'grid', +'fields_message' => 'grid', +'user_fields_reset' => 'grid', +'user_fields_save' => 'grid', +'integrated_edit_field' => 'grid', +'integrated_edit_field1' => 'grid', +'integrated_edit_field2' => 'grid' ), +'itemLocations' => array( 'user_fields_title' => array( 'location' => 'grid', +'cellId' => 'fields_message' ), +'fields_message' => array( 'location' => 'grid', +'cellId' => 'fields_message' ), +'user_fields_reset' => array( 'location' => 'grid', +'cellId' => 'buttons' ), +'user_fields_save' => array( 'location' => 'grid', +'cellId' => 'buttons' ), +'integrated_edit_field' => array( 'location' => 'grid', +'cellId' => 'fields' ), +'integrated_edit_field1' => array( 'location' => 'grid', +'cellId' => 'fields' ), +'integrated_edit_field2' => array( 'location' => 'grid', +'cellId' => 'fields' ) ), +'itemVisiblity' => array( 'breadcrumb' => 5, +'expand_menu_button' => 2, +'expand_button' => 5 ) ), +'itemsByType' => array( 'fields_message' => array( 'fields_message' ), +'user_fields_reset' => array( 'user_fields_reset' ), +'user_fields_save' => array( 'user_fields_save' ), +'user_fields_title' => array( 'user_fields_title' ), +'breadcrumb' => array( 'breadcrumb' ), +'logo' => array( 'logo' ), +'menu' => array( 'menu' ), +'expand_menu_button' => array( 'expand_menu_button' ), +'collapse_button' => array( 'collapse_button' ), +'username_button' => array( 'username_button' ), +'loginform_login' => array( 'loginform_login' ), +'userinfo_link' => array( 'userinfo_link' ), +'logout_link' => array( 'logout_link' ), +'integrated_edit_field' => array( 'integrated_edit_field', +'integrated_edit_field1', +'integrated_edit_field2' ), +'expand_button' => array( 'expand_button' ) ), +'cellMaps' => array( 'grid' => array( 'cells' => array( 'fields_message' => array( 'cols' => array( 0 ), +'rows' => array( 0 ), +'tags' => array( ), +'items' => array( 'user_fields_title', +'fields_message' ), +'fixedAtServer' => true, +'fixedAtClient' => false ), +'fields' => array( 'cols' => array( 0 ), +'rows' => array( 1 ), +'tags' => array( ), +'items' => array( 'integrated_edit_field', +'integrated_edit_field1', +'integrated_edit_field2' ), +'fixedAtServer' => true, +'fixedAtClient' => false ), +'buttons' => array( 'cols' => array( 0 ), +'rows' => array( 2 ), +'tags' => array( ), +'items' => array( 'user_fields_reset', +'user_fields_save' ), +'fixedAtServer' => true, +'fixedAtClient' => false ) ), +'width' => 1, +'height' => 3 ) ) ), +'page' => array( 'verticalBar' => true, +'labeledButtons' => array( 'update_records' => array( ), +'print_pages' => array( ), +'register_activate_message' => array( ), +'details_found' => array( ) ), +'hasCustomButtons' => false, +'customButtons' => array( ), +'hasNotifications' => false, +'menus' => array( array( 'id' => 'main', +'horizontal' => false ) ), +'calcTotalsFor' => 1 ), +'events' => array( 'maps' => array( ), +'mapsData' => array( ), +'buttons' => array( ) ) ); + $pageArray = array( 'id' => 'userinfo_Chat1', +'type' => 'userinfo', +'layoutId' => 'leftbar', +'disabled' => 0, +'default' => 44, +'forms' => array( 'above-grid' => array( 'modelId' => 'empty-above-grid', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'below-grid' => array( 'modelId' => 'empty-above-grid', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'supertop' => array( 'modelId' => 'leftbar-top-edit', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ), +array( 'cell' => 'c2' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( 'expand_menu_button', +'collapse_button', +'breadcrumb' ) ), +'c2' => array( 'model' => 'c2', +'items' => array( 'loginform_login', +'username_button' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'left' => array( 'modelId' => 'leftbar-menu', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ), +'section' => '' ), +array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c0' => array( 'model' => 'c0', +'items' => array( 'logo', +'expand_button' ) ), +'c1' => array( 'model' => 'c1', +'items' => array( 'menu' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'top' => array( 'modelId' => 'empty-above-grid', +'grid' => array( ), +'cells' => array( ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'grid' => array( 'modelId' => 'userinfo-grid', +'grid' => array( array( 'cells' => array( array( 'cell' => 'fields_message' ) ), +'section' => '' ), +array( 'cells' => array( array( 'cell' => 'fields' ) ), +'section' => '' ), +array( 'cells' => array( array( 'cell' => 'buttons' ) ), +'section' => '' ) ), +'cells' => array( 'fields_message' => array( 'model' => 'fields_message', +'items' => array( 'user_fields_title', +'fields_message' ) ), +'buttons' => array( 'model' => 'buttons', +'items' => array( 'user_fields_reset', +'user_fields_save' ) ), +'fields' => array( 'model' => 'fields', +'items' => array( 'integrated_edit_field', +'integrated_edit_field1', +'integrated_edit_field2' ) ) ), +'deferredItems' => array( ), +'columnCount' => 1, +'inlineLabels' => false, +'separateLabels' => false ) ), +'items' => array( 'fields_message' => array( 'type' => 'fields_message' ), +'user_fields_reset' => array( 'type' => 'user_fields_reset' ), +'user_fields_save' => array( 'type' => 'user_fields_save' ), +'user_fields_title' => array( 'type' => 'user_fields_title', +'font-size' => '24px' ), +'breadcrumb' => array( 'type' => 'breadcrumb' ), +'logo' => array( 'type' => 'logo' ), +'menu' => array( 'type' => 'menu' ), +'expand_menu_button' => array( 'type' => 'expand_menu_button' ), +'collapse_button' => array( 'type' => 'collapse_button' ), +'username_button' => array( 'type' => 'username_button', +'items' => array( 'userinfo_link', +'logout_link' ) ), +'loginform_login' => array( 'type' => 'loginform_login', +'popup' => false ), +'userinfo_link' => array( 'type' => 'userinfo_link' ), +'logout_link' => array( 'type' => 'logout_link' ), +'integrated_edit_field' => array( 'field' => 'username', +'type' => 'integrated_edit_field', +'orientation' => 0 ), +'integrated_edit_field1' => array( 'field' => 'fullname', +'type' => 'integrated_edit_field', +'orientation' => 0 ), +'integrated_edit_field2' => array( 'field' => 'email', +'type' => 'integrated_edit_field', +'orientation' => 0 ), +'expand_button' => array( 'type' => 'expand_button' ) ), +'dbProps' => array( ), +'version' => 14, +'businessTemplate' => 'Chat', +'businessTemplatePageId' => 'userinfo_Chat', +'imageItem' => array( 'type' => 'page_image' ), +'imageBgColor' => '#f2f2f2', +'controlsBgColor' => 'white', +'imagePosition' => 'right', +'listTotals' => 1 ); + ?> \ No newline at end of file diff --git a/php/include/pages/chat126_users1_search.php b/php/include/pages/chat126_users1_search.php new file mode 100644 index 0000000000000000000000000000000000000000..7e7c622a285095f3a5d599200aeb5615b200acff --- /dev/null +++ b/php/include/pages/chat126_users1_search.php @@ -0,0 +1,201 @@ + array( 'gridFields' => array( 'ID', +'username', +'password', +'email', +'fullname', +'groupid', +'active', +'ext_security_id' ), +'searchRequiredFields' => array( ), +'searchPanelFields' => array( ), +'fieldItems' => array( 'ID' => array( 'integrated_search_field' ), +'username' => array( 'integrated_search_field1' ), +'password' => array( 'integrated_search_field2' ), +'email' => array( 'integrated_search_field3' ), +'fullname' => array( 'integrated_search_field4' ), +'groupid' => array( 'integrated_search_field5' ), +'active' => array( 'integrated_search_field6' ), +'ext_security_id' => array( 'integrated_search_field7' ) ) ), +'pageLinks' => array( 'edit' => false, +'add' => false, +'view' => false, +'print' => false ), +'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( ), +'below-grid' => array( 'search_search', +'search_reset', +'search_back_list', +'search_cancel' ), +'top' => array( 'search_header' ), +'grid' => array( 'integrated_search_field', +'integrated_search_field1', +'integrated_search_field2', +'integrated_search_field3', +'integrated_search_field4', +'integrated_search_field5', +'integrated_search_field6', +'integrated_search_field7' ) ), +'formXtTags' => array( 'above-grid' => array( ) ), +'itemForms' => array( 'search_search' => 'below-grid', +'search_reset' => 'below-grid', +'search_back_list' => 'below-grid', +'search_cancel' => 'below-grid', +'search_header' => 'top', +'integrated_search_field' => 'grid', +'integrated_search_field1' => 'grid', +'integrated_search_field2' => 'grid', +'integrated_search_field3' => 'grid', +'integrated_search_field4' => 'grid', +'integrated_search_field5' => 'grid', +'integrated_search_field6' => 'grid', +'integrated_search_field7' => 'grid' ), +'itemLocations' => array( 'integrated_search_field' => array( 'location' => 'grid', +'cellId' => 'c3' ), +'integrated_search_field1' => array( 'location' => 'grid', +'cellId' => 'c3' ), +'integrated_search_field2' => array( 'location' => 'grid', +'cellId' => 'c3' ), +'integrated_search_field3' => array( 'location' => 'grid', +'cellId' => 'c3' ), +'integrated_search_field4' => array( 'location' => 'grid', +'cellId' => 'c3' ), +'integrated_search_field5' => array( 'location' => 'grid', +'cellId' => 'c3' ), +'integrated_search_field6' => array( 'location' => 'grid', +'cellId' => 'c3' ), +'integrated_search_field7' => array( 'location' => 'grid', +'cellId' => 'c3' ) ), +'itemVisiblity' => array( ) ), +'itemsByType' => array( 'search_header' => array( 'search_header' ), +'search_reset' => array( 'search_reset' ), +'search_back_list' => array( 'search_back_list' ), +'search_search' => array( 'search_search' ), +'search_cancel' => array( 'search_cancel' ), +'integrated_search_field' => array( 'integrated_search_field', +'integrated_search_field1', +'integrated_search_field2', +'integrated_search_field3', +'integrated_search_field4', +'integrated_search_field5', +'integrated_search_field6', +'integrated_search_field7' ) ), +'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ), +'rows' => array( 0 ), +'tags' => array( ), +'items' => array( 'integrated_search_field', +'integrated_search_field1', +'integrated_search_field2', +'integrated_search_field3', +'integrated_search_field4', +'integrated_search_field5', +'integrated_search_field6', +'integrated_search_field7' ), +'fixedAtServer' => true, +'fixedAtClient' => false ) ), +'width' => 1, +'height' => 1 ) ) ), +'loginForm' => array( 'loginForm' => 3 ), +'page' => array( 'verticalBar' => false, +'labeledButtons' => array( 'update_records' => array( ), +'print_pages' => array( ), +'register_activate_message' => array( ), +'details_found' => array( ) ), +'hasCustomButtons' => false, +'customButtons' => array( ), +'hasNotifications' => false, +'menus' => array( ), +'calcTotalsFor' => 1 ), +'misc' => array( 'type' => 'search', +'breadcrumb' => false ), +'events' => array( 'maps' => array( ), +'mapsData' => array( ), +'buttons' => array( ) ) ); + $pageArray = array( 'id' => 'search', +'type' => 'search', +'layoutId' => 'nomenu', +'disabled' => 0, +'default' => 0, +'forms' => array( 'above-grid' => array( 'modelId' => 'search-above-grid', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1', +'colspan' => 2 ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'below-grid' => array( 'modelId' => 'search-below-grid', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( 'search_search', +'search_reset', +'search_back_list', +'search_cancel' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'top' => array( 'modelId' => 'search-header', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ), +'section' => '' ) ), +'cells' => array( 'c1' => array( 'model' => 'c1', +'items' => array( 'search_header' ) ) ), +'deferredItems' => array( ), +'recsPerRow' => 1 ), +'grid' => array( 'modelId' => 'simple-search', +'grid' => array( array( 'cells' => array( array( 'cell' => 'c3' ) ), +'section' => '' ) ), +'cells' => array( 'c3' => array( 'model' => 'c3', +'items' => array( 'integrated_search_field', +'integrated_search_field1', +'integrated_search_field2', +'integrated_search_field3', +'integrated_search_field4', +'integrated_search_field5', +'integrated_search_field6', +'integrated_search_field7' ) ) ), +'deferredItems' => array( ), +'separateLabels' => false ) ), +'items' => array( 'search_header' => array( 'type' => 'search_header' ), +'search_reset' => array( 'type' => 'search_reset' ), +'search_back_list' => array( 'type' => 'search_back_list' ), +'search_search' => array( 'type' => 'search_search' ), +'search_cancel' => array( 'type' => 'search_cancel' ), +'integrated_search_field' => array( 'field' => 'ID', +'type' => 'integrated_search_field', +'orientation' => 0, +'required' => false ), +'integrated_search_field1' => array( 'field' => 'username', +'type' => 'integrated_search_field', +'orientation' => 0, +'required' => false ), +'integrated_search_field2' => array( 'field' => 'password', +'type' => 'integrated_search_field', +'orientation' => 0, +'required' => false ), +'integrated_search_field3' => array( 'field' => 'email', +'type' => 'integrated_search_field', +'orientation' => 0, +'required' => false ), +'integrated_search_field4' => array( 'field' => 'fullname', +'type' => 'integrated_search_field', +'orientation' => 0, +'required' => false ), +'integrated_search_field5' => array( 'field' => 'groupid', +'type' => 'integrated_search_field', +'orientation' => 0, +'required' => false ), +'integrated_search_field6' => array( 'field' => 'active', +'type' => 'integrated_search_field', +'orientation' => 0, +'required' => false ), +'integrated_search_field7' => array( 'field' => 'ext_security_id', +'type' => 'integrated_search_field', +'orientation' => 0, +'required' => false ) ), +'dbProps' => array( ), +'version' => 14, +'imageItem' => array( 'type' => 'page_image' ), +'imageBgColor' => '#f2f2f2', +'controlsBgColor' => 'white', +'imagePosition' => 'right', +'listTotals' => 1 ); + ?> \ No newline at end of file diff --git a/php/include/pages/chat_files_list.php b/php/include/pages/chat_files_list.php index d2c36e5c7596dcb69b342eb15e1e3740935b4b6e..3dcaee1e5872e11ea17778fe8658c13cc5cd6293 100644 --- a/php/include/pages/chat_files_list.php +++ b/php/include/pages/chat_files_list.php @@ -48,6 +48,7 @@ 'breadcrumb', 'simple_search', 'list_options', +'loginform_login', 'username_button' ), 'top' => array( ), 'grid' => array( 'simple_grid_field', @@ -67,6 +68,7 @@ 'breadcrumb' => 'supertop', 'simple_search' => 'supertop', 'list_options' => 'supertop', +'loginform_login' => 'supertop', 'username_button' => 'supertop', 'simple_grid_field' => 'grid', 'simple_grid_field2' => 'grid' ), @@ -94,7 +96,9 @@ '-4' ), 'advsearch_link' => array( 'advsearch_link' ), 'username_button' => array( 'username_button' ), -'adminarea_link' => array( 'adminarea_link' ), +'loginform_login' => array( 'loginform_login' ), +'userinfo_link' => array( 'userinfo_link' ), +'logout_link' => array( 'logout_link' ), 'grid_field' => array( 'simple_grid_field2' ), 'grid_field_label' => array( 'simple_grid_field' ), 'expand_button' => array( 'expand_button' ) ), @@ -118,7 +122,7 @@ 'fixedAtClient' => false ) ), 'width' => 1, 'height' => 3 ) ) ), -'loginForm' => array( 'loginForm' => 3 ), +'loginForm' => array( 'loginForm' => 0 ), 'page' => array( 'verticalBar' => true, 'labeledButtons' => array( 'update_records' => array( ), 'print_pages' => array( ), @@ -185,6 +189,7 @@ array( 'cell' => 'c2' ) ), 'c2' => array( 'model' => 'c2', 'items' => array( 'simple_search', 'list_options', +'loginform_login', 'username_button' ) ) ), 'deferredItems' => array( ), 'recsPerRow' => 1 ), @@ -231,8 +236,12 @@ array( 'section' => 'foot', '-3' => array( 'type' => '-' ), '-4' => array( 'type' => '-' ), 'username_button' => array( 'type' => 'username_button', -'items' => array( 'adminarea_link' ) ), -'adminarea_link' => array( 'type' => 'adminarea_link' ), +'items' => array( 'userinfo_link', +'logout_link' ) ), +'loginform_login' => array( 'type' => 'loginform_login', +'popup' => false ), +'userinfo_link' => array( 'type' => 'userinfo_link' ), +'logout_link' => array( 'type' => 'logout_link' ), 'simple_grid_field2' => array( 'field' => 'files', 'type' => 'grid_field', 'inlineAdd' => false, @@ -243,8 +252,6 @@ array( 'section' => 'foot', 'dbProps' => array( ), 'spreadsheetGrid' => false, 'version' => 14, -'businessTemplate' => 'Chat', -'businessTemplatePageId' => 'list', 'imageItem' => array( 'type' => 'page_image' ), 'imageBgColor' => '#f2f2f2', 'controlsBgColor' => 'white', diff --git a/php/include/pages/chat_files_search.php b/php/include/pages/chat_files_search.php index a7fa9be886f83857c26b17a8808fe2a9da5b0491..89ed28c5520de8fdf76e53934adc3d0b1deda0f3 100644 --- a/php/include/pages/chat_files_search.php +++ b/php/include/pages/chat_files_search.php @@ -128,8 +128,6 @@ 'required' => false ) ), 'dbProps' => array( ), 'version' => 14, -'businessTemplate' => 'Chat', -'businessTemplatePageId' => 'search', 'imageItem' => array( 'type' => 'page_image' ), 'imageBgColor' => '#f2f2f2', 'controlsBgColor' => 'white', diff --git a/php/include/pages/chat_groups_add.php b/php/include/pages/chat_groups_add.php index 5a98598d9bfea5d800e3917bd1efafcdc3e0e3ed..1aa64a4522ffab408a23b4c9931f3b00fb641156 100644 --- a/php/include/pages/chat_groups_add.php +++ b/php/include/pages/chat_groups_add.php @@ -15,17 +15,20 @@ 'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( ), 'below-grid' => array( 'add_save', 'add_reset' ), -'supertop' => array( 'username_button' ), +'supertop' => array( 'loginform_login', +'username_button' ), 'left' => array( 'expand_button' ), 'top' => array( ), 'grid' => array( 'integrated_edit_field', 'integrated_edit_field2', 'integrated_edit_field1' ) ), 'formXtTags' => array( 'above-grid' => array( ), -'supertop' => array( 'loggedas_message' ), +'supertop' => array( 'guestloginbutton', +'loggedas_message' ), 'top' => array( ) ), 'itemForms' => array( 'add_save' => 'below-grid', 'add_reset' => 'below-grid', +'loginform_login' => 'supertop', 'username_button' => 'supertop', 'expand_button' => 'left', 'integrated_edit_field' => 'grid', @@ -44,7 +47,9 @@ 'integrated_edit_field1', 'integrated_edit_field2' ), 'username_button' => array( 'username_button' ), -'adminarea_link' => array( 'adminarea_link' ), +'loginform_login' => array( 'loginform_login' ), +'userinfo_link' => array( 'userinfo_link' ), +'logout_link' => array( 'logout_link' ), 'expand_button' => array( 'expand_button' ) ), 'cellMaps' => array( 'grid' => array( 'cells' => array( 'c4' => array( 'cols' => array( 0 ), 'rows' => array( 0 ), @@ -56,7 +61,7 @@ 'fixedAtClient' => false ) ), 'width' => 1, 'height' => 1 ) ) ), -'loginForm' => array( 'loginForm' => 3 ), +'loginForm' => array( 'loginForm' => 0 ), 'page' => array( 'verticalBar' => true, 'labeledButtons' => array( 'update_records' => array( ), 'print_pages' => array( ), @@ -96,7 +101,8 @@ 'grid' => array( array( 'cells' => array( array( 'cell' => 'c2' ) ), 'section' => '' ) ), 'cells' => array( 'c2' => array( 'model' => 'c2', -'items' => array( 'username_button' ) ) ), +'items' => array( 'loginform_login', +'username_button' ) ) ), 'deferredItems' => array( ), 'recsPerRow' => 1 ), 'left' => array( 'modelId' => 'leftbar-menu', @@ -140,13 +146,15 @@ array( 'cells' => array( array( 'cell' => 'c1' ) ), 'type' => 'integrated_edit_field', 'orientation' => 0 ), 'username_button' => array( 'type' => 'username_button', -'items' => array( 'adminarea_link' ) ), -'adminarea_link' => array( 'type' => 'adminarea_link' ), +'items' => array( 'userinfo_link', +'logout_link' ) ), +'loginform_login' => array( 'type' => 'loginform_login', +'popup' => false ), +'userinfo_link' => array( 'type' => 'userinfo_link' ), +'logout_link' => array( 'type' => 'logout_link' ), 'expand_button' => array( 'type' => 'expand_button' ) ), 'dbProps' => array( ), 'version' => 14, -'businessTemplate' => 'Chat', -'businessTemplatePageId' => 'add', 'imageItem' => array( 'type' => 'page_image' ), 'imageBgColor' => '#f2f2f2', 'controlsBgColor' => 'white', diff --git a/php/include/pages/chat_groups_edit.php b/php/include/pages/chat_groups_edit.php index 2e7a03fe76c7046e05aab4da5cc4fab6753aaba2..4e8ed87fbf04fc3b447cd1be25de08aad2d32193 100644 --- a/php/include/pages/chat_groups_edit.php +++ b/php/include/pages/chat_groups_edit.php @@ -15,7 +15,8 @@ 'print' => false ), 'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'above-grid' => array( ), 'below-grid' => array( 'edit_save' ), -'supertop' => array( 'username_button' ), +'supertop' => array( 'loginform_login', +'username_button' ), 'left' => array( 'expand_button' ), 'top' => array( ), 'grid' => array( 'integrated_edit_field1', @@ -23,9 +24,11 @@ 'integrated_edit_field2' ) ), 'formXtTags' => array( 'above-grid' => array( ), 'below-grid' => array( 'save_edit' ), -'supertop' => array( 'loggedas_message' ), +'supertop' => array( 'guestloginbutton', +'loggedas_message' ), 'top' => array( ) ), 'itemForms' => array( 'edit_save' => 'below-grid', +'loginform_login' => 'supertop', 'username_button' => 'supertop', 'expand_button' => 'left', 'integrated_edit_field1' => 'grid', @@ -43,7 +46,9 @@ 'integrated_edit_field2', 'integrated_edit_field3' ), 'username_button' => array( 'username_button' ), -'adminarea_link' => array( 'adminarea_link' ), +'loginform_login' => array( 'loginform_login' ), +'userinfo_link' => array( 'userinfo_link' ), +'logout_link' => array( 'logout_link' ), 'expand_button' => array( 'expand_button' ) ), 'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ), 'rows' => array( 0 ), @@ -55,7 +60,7 @@ 'fixedAtClient' => false ) ), 'width' => 1, 'height' => 1 ) ) ), -'loginForm' => array( 'loginForm' => 3 ), +'loginForm' => array( 'loginForm' => 0 ), 'page' => array( 'verticalBar' => true, 'labeledButtons' => array( 'update_records' => array( ), 'print_pages' => array( ), @@ -102,7 +107,8 @@ array( 'cell' => 'c2' ) ), 'cells' => array( 'c1' => array( 'model' => 'c1', 'items' => array( ) ), 'c2' => array( 'model' => 'c2', -'items' => array( 'username_button' ) ) ), +'items' => array( 'loginform_login', +'username_button' ) ) ), 'deferredItems' => array( ), 'recsPerRow' => 1 ), 'left' => array( 'modelId' => 'leftbar-menu', @@ -152,13 +158,15 @@ array( 'cells' => array( array( 'cell' => 'c1' ) ), 'type' => 'integrated_edit_field', 'orientation' => 0 ), 'username_button' => array( 'type' => 'username_button', -'items' => array( 'adminarea_link' ) ), -'adminarea_link' => array( 'type' => 'adminarea_link' ), +'items' => array( 'userinfo_link', +'logout_link' ) ), +'loginform_login' => array( 'type' => 'loginform_login', +'popup' => false ), +'userinfo_link' => array( 'type' => 'userinfo_link' ), +'logout_link' => array( 'type' => 'logout_link' ), 'expand_button' => array( 'type' => 'expand_button' ) ), 'dbProps' => array( ), 'version' => 14, -'businessTemplate' => 'Chat', -'businessTemplatePageId' => 'edit', 'imageItem' => array( 'type' => 'page_image' ), 'imageBgColor' => '#f2f2f2', 'controlsBgColor' => 'white', diff --git a/php/include/pages/chat_groups_list.php b/php/include/pages/chat_groups_list.php index 44ceb40197a04ff75fef3ba45a65b812c6e1ecac..e8907d47d1e97a04d300b5aeaed532445075274d 100644 --- a/php/include/pages/chat_groups_list.php +++ b/php/include/pages/chat_groups_list.php @@ -62,6 +62,7 @@ 'breadcrumb', 'simple_search', 'list_options', +'loginform_login', 'username_button' ), 'top' => array( ), 'grid' => array( 'simple_grid_field5', @@ -92,6 +93,7 @@ 'breadcrumb' => 'supertop', 'simple_search' => 'supertop', 'list_options' => 'supertop', +'loginform_login' => 'supertop', 'username_button' => 'supertop', 'simple_grid_field5' => 'grid', 'simple_grid_field' => 'grid', @@ -146,7 +148,9 @@ 'advsearch_link' => array( 'advsearch_link' ), 'add' => array( 'add' ), 'username_button' => array( 'username_button' ), -'adminarea_link' => array( 'adminarea_link' ), +'loginform_login' => array( 'loginform_login' ), +'userinfo_link' => array( 'userinfo_link' ), +'logout_link' => array( 'logout_link' ), 'grid_field' => array( 'simple_grid_field', 'simple_grid_field1', 'simple_grid_field2', @@ -269,7 +273,7 @@ 'fixedAtClient' => false ) ), 'width' => 6, 'height' => 3 ) ) ), -'loginForm' => array( 'loginForm' => 3 ), +'loginForm' => array( 'loginForm' => 0 ), 'page' => array( 'verticalBar' => true, 'labeledButtons' => array( 'update_records' => array( ), 'print_pages' => array( ), @@ -336,6 +340,7 @@ array( 'cell' => 'c2' ) ), 'c2' => array( 'model' => 'c2', 'items' => array( 'simple_search', 'list_options', +'loginform_login', 'username_button' ) ) ), 'deferredItems' => array( ), 'recsPerRow' => 1 ), @@ -442,8 +447,12 @@ array( 'cell' => 'footcell_field4' ) ) ) ), '-3' => array( 'type' => '-' ), 'add' => array( 'type' => 'add' ), 'username_button' => array( 'type' => 'username_button', -'items' => array( 'adminarea_link' ) ), -'adminarea_link' => array( 'type' => 'adminarea_link' ), +'items' => array( 'userinfo_link', +'logout_link' ) ), +'loginform_login' => array( 'type' => 'loginform_login', +'popup' => false ), +'userinfo_link' => array( 'type' => 'userinfo_link' ), +'logout_link' => array( 'type' => 'logout_link' ), 'simple_grid_field' => array( 'field' => 'id', 'type' => 'grid_field' ), 'simple_grid_field5' => array( 'type' => 'grid_field_label', @@ -473,8 +482,6 @@ array( 'cell' => 'footcell_field4' ) ) ) ), 'dbProps' => array( ), 'spreadsheetGrid' => false, 'version' => 14, -'businessTemplate' => 'Chat', -'businessTemplatePageId' => 'list', 'reorderRows' => false, 'reorderRowsField' => '', 'imageItem' => array( 'type' => 'page_image' ), diff --git a/php/include/pages/chat_groups_search.php b/php/include/pages/chat_groups_search.php index f929bf1cfc9a8b14e53c24b61947b6ee6c918201..8f2760261c6551239a7abe059cae96c5637c1cc5 100644 --- a/php/include/pages/chat_groups_search.php +++ b/php/include/pages/chat_groups_search.php @@ -154,8 +154,6 @@ 'required' => false ) ), 'dbProps' => array( ), 'version' => 14, -'businessTemplate' => 'Chat', -'businessTemplatePageId' => 'search', 'imageItem' => array( 'type' => 'page_image' ), 'imageBgColor' => '#f2f2f2', 'controlsBgColor' => 'white', diff --git a/php/include/pages/chat_history_add.php b/php/include/pages/chat_history_add.php index fec9dc6fca1d293dc3e5aceaa5df86cdb906ad71..276191bcb745c08df3d00f072df3be09626f23e9 100644 --- a/php/include/pages/chat_history_add.php +++ b/php/include/pages/chat_history_add.php @@ -1,15 +1,9 @@ array( 'captcha' => false ), -'fields' => array( 'gridFields' => array( 'tmp_file', -'question', -'answer', -'category' ), +'fields' => array( 'gridFields' => array( 'tmp_file' ), 'searchRequiredFields' => array( ), 'searchPanelFields' => array( ), -'fieldItems' => array( 'tmp_file' => array( 'chat_files' ), -'question' => array( 'integrated_edit_field' ), -'answer' => array( 'integrated_edit_field1' ), -'category' => array( 'integrated_edit_field2' ) ) ), +'fieldItems' => array( 'tmp_file' => array( 'chat_files' ) ) ), 'pageLinks' => array( 'edit' => false, 'add' => false, 'view' => false, @@ -18,6 +12,7 @@ 'below-grid' => array( ), 'supertop' => array( 'expand_menu_button', 'collapse_button', +'loginform_login', 'username_button' ), 'left' => array( 'logo1', 'expand_button', @@ -26,9 +21,6 @@ 'grid' => array( 'find_user', 'group_menu', 'chat_users', -'integrated_edit_field', -'integrated_edit_field1', -'integrated_edit_field2', 'select_users', 'current_username', 'search_result', @@ -47,6 +39,7 @@ 'top' => array( ) ), 'itemForms' => array( 'expand_menu_button' => 'supertop', 'collapse_button' => 'supertop', +'loginform_login' => 'supertop', 'username_button' => 'supertop', 'logo1' => 'left', 'expand_button' => 'left', @@ -54,9 +47,6 @@ 'find_user' => 'grid', 'group_menu' => 'grid', 'chat_users' => 'grid', -'integrated_edit_field' => 'grid', -'integrated_edit_field1' => 'grid', -'integrated_edit_field2' => 'grid', 'select_users' => 'grid', 'current_username' => 'grid', 'search_result' => 'grid', @@ -76,12 +66,6 @@ 'cellId' => 'c1' ), 'chat_users' => array( 'location' => 'grid', 'cellId' => 'c1' ), -'integrated_edit_field' => array( 'location' => 'grid', -'cellId' => 'c1' ), -'integrated_edit_field1' => array( 'location' => 'grid', -'cellId' => 'c1' ), -'integrated_edit_field2' => array( 'location' => 'grid', -'cellId' => 'c1' ), 'select_users' => array( 'location' => 'grid', 'cellId' => 'c' ), 'current_username' => array( 'location' => 'grid', @@ -131,10 +115,9 @@ 'logo' => array( 'logo1' ), 'edit_field' => array( 'chat_files' ), 'username_button' => array( 'username_button' ), -'adminarea_link' => array( 'adminarea_link' ), -'integrated_edit_field' => array( 'integrated_edit_field', -'integrated_edit_field1', -'integrated_edit_field2' ), +'loginform_login' => array( 'loginform_login' ), +'userinfo_link' => array( 'userinfo_link' ), +'logout_link' => array( 'logout_link' ), 'expand_button' => array( 'expand_button' ) ), 'cellMaps' => array( 'grid' => array( 'cells' => array( 'c1' => array( 'cols' => array( 0 ), 'rows' => array( 0, @@ -144,10 +127,7 @@ 'tags' => array( ), 'items' => array( 'find_user', 'group_menu', -'chat_users', -'integrated_edit_field', -'integrated_edit_field1', -'integrated_edit_field2' ), +'chat_users' ), 'fixedAtServer' => true, 'fixedAtClient' => false ), 'c' => array( 'cols' => array( 1 ), @@ -186,7 +166,7 @@ 'fixedAtClient' => false ) ), 'width' => 3, 'height' => 4 ) ) ), -'loginForm' => array( 'loginForm' => 3 ), +'loginForm' => array( 'loginForm' => 0 ), 'page' => array( 'verticalBar' => true, 'labeledButtons' => array( 'update_records' => array( ), 'print_pages' => array( ), @@ -240,7 +220,8 @@ array( 'cell' => 'c2' ) ), 'items' => array( 'expand_menu_button', 'collapse_button' ) ), 'c2' => array( 'model' => 'c2', -'items' => array( 'username_button' ) ) ), +'items' => array( 'loginform_login', +'username_button' ) ) ), 'deferredItems' => array( ), 'recsPerRow' => 1 ), 'left' => array( 'modelId' => 'leftbar-menu', @@ -280,10 +261,7 @@ array( 'section' => '', 'cells' => array( 'c1' => array( 'model' => 'c1', 'items' => array( 'find_user', 'group_menu', -'chat_users', -'integrated_edit_field', -'integrated_edit_field1', -'integrated_edit_field2' ), +'chat_users' ), 'width' => '15%', 'customCSS' => '/* Put your custom CSS code here */ @@ -496,23 +474,16 @@ array( 'section' => '', 'tooltip' => array( 'text' => 'Video call', 'type' => 0 ) ), 'username_button' => array( 'type' => 'username_button', -'items' => array( 'adminarea_link' ) ), -'adminarea_link' => array( 'type' => 'adminarea_link' ), -'integrated_edit_field' => array( 'field' => 'question', -'type' => 'integrated_edit_field', -'orientation' => 0 ), -'integrated_edit_field1' => array( 'field' => 'answer', -'type' => 'integrated_edit_field', -'orientation' => 0 ), -'integrated_edit_field2' => array( 'field' => 'category', -'type' => 'integrated_edit_field', -'orientation' => 0 ), +'items' => array( 'userinfo_link', +'logout_link' ) ), +'loginform_login' => array( 'type' => 'loginform_login', +'popup' => false ), +'userinfo_link' => array( 'type' => 'userinfo_link' ), +'logout_link' => array( 'type' => 'logout_link' ), 'expand_button' => array( 'type' => 'expand_button' ) ), 'dbProps' => array( ), 'version' => 14, 'pageWidth' => 'full', -'businessTemplate' => 'Chat', -'businessTemplatePageId' => 'add', 'imageItem' => array( 'type' => 'page_image' ), 'imageBgColor' => '#f2f2f2', 'controlsBgColor' => 'white', diff --git a/php/include/pages/chat_history_search.php b/php/include/pages/chat_history_search.php index b249c9734156e95632bfbbc8cd88bff8d3700dc9..b61e967489d67f6717c7a2575563b63eb352b080 100644 --- a/php/include/pages/chat_history_search.php +++ b/php/include/pages/chat_history_search.php @@ -8,10 +8,7 @@ 'tmp_file', 'status', 'status_created', -'isVideo', -'question', -'answer', -'category' ), +'isVideo' ), 'searchRequiredFields' => array( ), 'searchPanelFields' => array( ), 'fieldItems' => array( 'id' => array( 'integrated_search_field' ), @@ -23,10 +20,7 @@ 'tmp_file' => array( 'integrated_search_field6' ), 'status' => array( 'integrated_search_field7' ), 'status_created' => array( 'integrated_search_field8' ), -'isVideo' => array( 'integrated_search_field9' ), -'question' => array( 'integrated_search_field10' ), -'answer' => array( 'integrated_search_field11' ), -'category' => array( 'integrated_search_field12' ) ) ), +'isVideo' => array( 'integrated_search_field9' ) ) ), 'pageLinks' => array( 'edit' => false, 'add' => false, 'view' => false, @@ -46,10 +40,7 @@ 'integrated_search_field6', 'integrated_search_field7', 'integrated_search_field8', -'integrated_search_field9', -'integrated_search_field10', -'integrated_search_field11', -'integrated_search_field12' ) ), +'integrated_search_field9' ) ), 'formXtTags' => array( 'above-grid' => array( ) ), 'itemForms' => array( 'search_search' => 'below-grid', 'search_reset' => 'below-grid', @@ -65,10 +56,7 @@ 'integrated_search_field6' => 'grid', 'integrated_search_field7' => 'grid', 'integrated_search_field8' => 'grid', -'integrated_search_field9' => 'grid', -'integrated_search_field10' => 'grid', -'integrated_search_field11' => 'grid', -'integrated_search_field12' => 'grid' ), +'integrated_search_field9' => 'grid' ), 'itemLocations' => array( 'integrated_search_field' => array( 'location' => 'grid', 'cellId' => 'c3' ), 'integrated_search_field3' => array( 'location' => 'grid', @@ -88,12 +76,6 @@ 'integrated_search_field8' => array( 'location' => 'grid', 'cellId' => 'c3' ), 'integrated_search_field9' => array( 'location' => 'grid', -'cellId' => 'c3' ), -'integrated_search_field10' => array( 'location' => 'grid', -'cellId' => 'c3' ), -'integrated_search_field11' => array( 'location' => 'grid', -'cellId' => 'c3' ), -'integrated_search_field12' => array( 'location' => 'grid', 'cellId' => 'c3' ) ), 'itemVisiblity' => array( ) ), 'itemsByType' => array( 'search_header' => array( 'search_header' ), @@ -110,10 +92,7 @@ 'integrated_search_field6', 'integrated_search_field7', 'integrated_search_field8', -'integrated_search_field9', -'integrated_search_field10', -'integrated_search_field11', -'integrated_search_field12' ) ), +'integrated_search_field9' ) ), 'cellMaps' => array( 'grid' => array( 'cells' => array( 'c3' => array( 'cols' => array( 0 ), 'rows' => array( 0 ), 'tags' => array( ), @@ -126,10 +105,7 @@ 'integrated_search_field6', 'integrated_search_field7', 'integrated_search_field8', -'integrated_search_field9', -'integrated_search_field10', -'integrated_search_field11', -'integrated_search_field12' ), +'integrated_search_field9' ), 'fixedAtServer' => true, 'fixedAtClient' => false ) ), 'width' => 1, @@ -193,10 +169,7 @@ 'integrated_search_field6', 'integrated_search_field7', 'integrated_search_field8', -'integrated_search_field9', -'integrated_search_field10', -'integrated_search_field11', -'integrated_search_field12' ) ) ), +'integrated_search_field9' ) ) ), 'deferredItems' => array( ), 'separateLabels' => false ) ), 'items' => array( 'search_header' => array( 'type' => 'search_header' ), @@ -239,20 +212,9 @@ 'orientation' => 0 ), 'integrated_search_field9' => array( 'field' => 'isVideo', 'type' => 'integrated_search_field', -'orientation' => 0 ), -'integrated_search_field10' => array( 'field' => 'question', -'type' => 'integrated_search_field', -'orientation' => 0 ), -'integrated_search_field11' => array( 'field' => 'answer', -'type' => 'integrated_search_field', -'orientation' => 0 ), -'integrated_search_field12' => array( 'field' => 'category', -'type' => 'integrated_search_field', 'orientation' => 0 ) ), 'dbProps' => array( ), 'version' => 14, -'businessTemplate' => 'Chat', -'businessTemplatePageId' => 'search', 'imageItem' => array( 'type' => 'page_image' ), 'imageBgColor' => '#f2f2f2', 'controlsBgColor' => 'white', diff --git a/php/include/pages/chat_peopletype_search.php b/php/include/pages/chat_peopletype_search.php index 93a343f4f5dbfe68ee1567a6e91b6e7a13fded8e..c9c58c68256157a709e5b854b0970806c58903d4 100644 --- a/php/include/pages/chat_peopletype_search.php +++ b/php/include/pages/chat_peopletype_search.php @@ -115,8 +115,6 @@ 'required' => false ) ), 'dbProps' => array( ), 'version' => 14, -'businessTemplate' => 'Chat', -'businessTemplatePageId' => 'search', 'imageItem' => array( 'type' => 'page_image' ), 'imageBgColor' => '#f2f2f2', 'controlsBgColor' => 'white', diff --git a/php/include/pages/chat_settings_edit.php b/php/include/pages/chat_settings_edit.php index bc067b8bef41cff11d93fddf2b233b80d0f9b406..b7bf9a28d6d8481f28d7e7f21abef1300351d5e8 100644 --- a/php/include/pages/chat_settings_edit.php +++ b/php/include/pages/chat_settings_edit.php @@ -177,7 +177,6 @@ 'loginform_login' => array( 'loginform_login' ), 'userinfo_link' => array( 'userinfo_link' ), 'logout_link' => array( 'logout_link' ), -'adminarea_link' => array( 'adminarea_link' ), 'expand_button' => array( 'expand_button' ) ), 'cellMaps' => array( 'grid' => array( 'cells' => array( 'c6' => array( 'cols' => array( 0 ), 'rows' => array( 0 ), @@ -589,18 +588,14 @@ array( 'text' => 'Video', 'type' => 3 ) ), 'username_button' => array( 'type' => 'username_button', 'items' => array( 'userinfo_link', -'logout_link', -'adminarea_link' ) ), +'logout_link' ) ), 'loginform_login' => array( 'type' => 'loginform_login', 'popup' => false ), 'userinfo_link' => array( 'type' => 'userinfo_link' ), 'logout_link' => array( 'type' => 'logout_link' ), -'adminarea_link' => array( 'type' => 'adminarea_link' ), 'expand_button' => array( 'type' => 'expand_button' ) ), 'dbProps' => array( ), 'version' => 14, -'businessTemplate' => 'Chat', -'businessTemplatePageId' => 'edit', 'imageItem' => array( 'type' => 'page_image' ), 'imageBgColor' => '#f2f2f2', 'controlsBgColor' => 'white', diff --git a/php/include/pages/chat_settings_search.php b/php/include/pages/chat_settings_search.php index 2ad2b061a23f38a345db5ea86c13c8f0bdb4499c..23c0b3d1a1e43c8c55387059ca6284ac618de13b 100644 --- a/php/include/pages/chat_settings_search.php +++ b/php/include/pages/chat_settings_search.php @@ -391,8 +391,6 @@ 'orientation' => 0 ) ), 'dbProps' => array( ), 'version' => 14, -'businessTemplate' => 'Chat', -'businessTemplatePageId' => 'search', 'imageItem' => array( 'type' => 'page_image' ), 'imageBgColor' => '#f2f2f2', 'controlsBgColor' => 'white', diff --git a/php/include/pages/chat_users_search.php b/php/include/pages/chat_users_search.php index 307f00c738f4d67d827beba4bebf69672e6308f2..bb1d8eaeac673da0dfa6d316726960a704094610 100644 --- a/php/include/pages/chat_users_search.php +++ b/php/include/pages/chat_users_search.php @@ -141,8 +141,6 @@ 'required' => false ) ), 'dbProps' => array( ), 'version' => 14, -'businessTemplate' => 'Chat', -'businessTemplatePageId' => 'search', 'imageItem' => array( 'type' => 'page_image' ), 'imageBgColor' => '#f2f2f2', 'controlsBgColor' => 'white', diff --git a/php/include/pages/pages.json b/php/include/pages/pages.json index b546a36037e915112fce5d02c3f24222260f9915..247813a7d9dddddecd4673ec804a45ee16bb9637 100644 --- a/php/include/pages/pages.json +++ b/php/include/pages/pages.json @@ -1 +1 @@ -{"":{"admin_members_list":["admin_members_list"],"admin_rights_list":["admin_rights_list"],"login":["login"],"userinfo":["userinfo"]}} \ No newline at end of file +{"":{"changepwd":["changepwd_Chat1"],"changepwd_success":["changepwd_success_Chat1"],"login":["login_Chat1"],"menu":["menu_Chat1"],"userinfo":["userinfo_Chat1"]},"chat126_users1":{"search":["search"]},"chat_files":{"list":["list"],"search":["search"]},"chat_groups":{"add":["add"],"edit":["edit"],"list":["list"],"search":["search"]},"chat_history":{"add":["add"],"search":["search"]},"chat_peopletype":{"search":["search"]},"chat_settings":{"edit":["edit"],"search":["search"]},"chat_users":{"search":["search"]}} \ No newline at end of file diff --git a/php/include/phpfunctions.php b/php/include/phpfunctions.php index aa960e639dbdd32b78aa55f1a5bff352b93141e5..eb461472343bcf865d6186c47cae2b1ced683918 100644 --- a/php/include/phpfunctions.php +++ b/php/include/phpfunctions.php @@ -1023,152 +1023,6 @@ function CustomExpression($value, $data, $field, $ptype, $table="") global $strTableName; if(!$table) $table = $strTableName; - if($table=="kbarticles" && $field=="ArticleID") - { - $value = "Export article";; - return $value; - } - if($table=="kbarticles" && $field=="ArticleID2") - { - $value = "Printer-friendly version";; - return $value; - } - if($table=="kbarticles" && $field=="ArticleIDedit") - { - $value = "Edit"; -; - return $value; - } - if($table=="kbarticles" && $field=="Title" && $ptype=="view") - { - ; - return $value; - } - if($table=="kbarticles" && $field=="Title" && $ptype=="list") - { - $value = "".$value."";; - return $value; - } - if($table=="kbarticles" && $field=="Title" && $ptype=="export") - { - $value = "".$value."";; - return $value; - } - if($table=="kbarticles" && $field=="Title" && $ptype=="masterlist") - { - $value = "".$value."";; - return $value; - } - if($table=="kbarticles" && $field=="Title" && $ptype=="masterprint") - { - $value = "".$value."";; - return $value; - } - if($table=="kbcategories" && $field=="faicon") - { - $value = ""; - return $value; - } - if($table=="main" && $field=="ArticleID") - { - $value = "Export article";; - return $value; - } - if($table=="main" && $field=="ArticleID2") - { - $value = "Printer-friendly version";; - return $value; - } - if($table=="main" && $field=="ArticleIDedit") - { - $value = "Edit"; -; - return $value; - } - if($table=="main" && $field=="Category" && $ptype=="view") - { - $value="".$value."";; - return $value; - } - if($table=="main" && $field=="Category" && $ptype=="list") - { - $value="".$value."";; - return $value; - } - if($table=="main" && $field=="Category" && $ptype=="print") - { - ; - return $value; - } - if($table=="main" && $field=="Category" && $ptype=="export") - { - ; - return $value; - } - if($table=="main" && $field=="Category" && $ptype=="masterlist") - { - $value="".$value."";; - return $value; - } - if($table=="main" && $field=="Category" && $ptype=="masterprint") - { - $value="".$value."";; - return $value; - } - if($table=="main" && $field=="Title" && $ptype=="view") - { - ; - return $value; - } - if($table=="main" && $field=="Title" && $ptype=="list") - { - //$value = "".$value.""; - -$value = "".$value."";; - return $value; - } - if($table=="main" && $field=="Views" && $ptype=="view") - { - ; - return $value; - } - if($table=="main" && $field=="Views" && $ptype=="list") - { - $value = "(Views: ".$value.")";; - return $value; - } - if($table=="main" && $field=="Views" && $ptype=="print") - { - $value = "(View: ".$value.")";; - return $value; - } - if($table=="main" && $field=="Views" && $ptype=="export") - { - $value = "(View: ".$value.")";; - return $value; - } - if($table=="main" && $field=="helpfullblock") - { - -$value = "Was this article helpful?"; -$value.=""; -$value.="Yes (".$data["likecount"].")"; -$value.="No (".$data["dislikecount"].")"; -$value.=""; -$value.=""; -$value.="Thank you for your feedback!";; - return $value; - } - if($table=="faicons" && $field=="id") - { - $value = $data["icon"];; - return $value; - } - if($table=="faicons" && $field=="icon") - { - $value = "";; - return $value; - } return $value; } @@ -1219,14 +1073,6 @@ function GetDefaultValue($field, $ptype, $table="") global $strTableName; if(!$table) $table=$strTableName; - if($table=="kbcomments" && $field=="moderated") - { - return 0; - } - if($table=="admin_comments" && $field=="moderated") - { - return 0; - } if($table=="chat_settings" && $field=="provider") { return "Zoom"; diff --git a/php/include/securitySettings.php b/php/include/securitySettings.php index f18aca7643566923b3b7491c39420bbe49dec241..7c5398d1f29d8a46bbecc7edddc8e7c0a652e19e 100644 --- a/php/include/securitySettings.php +++ b/php/include/securitySettings.php @@ -12,25 +12,23 @@ $securitySettings_var = array( 'providers' => array( array( 'type' => '%db', 'name' => 'db', 'passwordField' => 'password', 'phoneField' => '', -'resetDateField' => '˂Create new˃', -'resetTokenField' => '˂Create new˃', -'table' => array( 'connId' => 'KnowledgeBase2_at_localhost', -'table' => 'public.kbusers' ), +'resetDateField' => 'reset_date', +'resetTokenField' => 'reset_token', +'table' => array( 'connId' => 'chats_at_localhost', +'table' => 'chat126_users1' ), 'twoFactorField' => '', -'userGroupField' => 'group', +'userGroupField' => 'username', 'usernameField' => 'username', 'userpicField' => '' ) ), 'sessionControl' => array( 'lifeTime' => 15, -'sessionName' => 'D1lszvk6ratOZhmmgvkp', -'JWTSecret' => 'AePSql8YQwJMZA2upYMI', -'forceExpire' => false, -'keepAlive' => true ), +'sessionName' => 'D0VlErj2qNENyHIqOXR6', +'JWTSecret' => 'cFIydWRfSpojgr9LUVYT' ), 'registration' => array( 'passwordValidation' => array( 'strong' => false, 'minimumLength' => 8, 'uniqueCharacters' => 4, 'digitsAndSymbols' => 2, 'upperAndLowerCase' => false ), -'remindMethod' => 0, +'remindMethod' => 1, 'hashAlgorithm' => 0, 'adminEmail' => '', 'caseInsensitiveLogin' => false, @@ -48,141 +46,40 @@ $securitySettings_var = array( 'providers' => array( array( 'type' => '%db', 'secretKey' => '', 'passesCount' => 5 ), 'emailSettings' => array( 'fromEmail' => '', -'usePHPDefinedSMTP' => true, +'usePHPDefinedSMTP' => false, 'useBuiltInMailer' => false, 'SMTPServer' => 'localhost', 'SMTPPort' => 25, 'SMTPUser' => '', 'SMTPPassword' => '', 'securityProtocol' => 0 ), -'advancedSecurity' => array( 'allowGuestLogin' => true ), -'auditAndLocking' => array( 'loggingTable' => array( 'connId' => 'KnowledgeBase2_at_localhost', -'table' => 'public.knowledgebase1_audit' ), -'lockingTable' => array( 'connId' => 'KnowledgeBase2_at_localhost', -'table' => '˂Create new˃' ), -'tables' => array( 'admin_comments' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'admin_members' => array( 'logFieldValues' => false, -'logModifications' => false, -'recordLocking' => false ), -'admin_rights' => array( 'logFieldValues' => false, -'logModifications' => false, -'recordLocking' => false ), -'admin_users' => array( 'logFieldValues' => false, -'logModifications' => false, -'recordLocking' => false ), -'chat_files' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'chat_groups' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'chat_history' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'chat_peopletype' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'chat_settings' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'chat_timezone' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'chat_users' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'faicons' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'kbarticles' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'kbcategories' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'kbcomments' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'main' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'public.appointments' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'public.chat_files' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'public.chat_groups' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'public.chat_history' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'public.chat_peopletype' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'public.chat_settings' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'public.dataset_info' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'public.fasis_chat_history' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'public.history' => array( 'logFieldValues' => false, -'logModifications' => false, -'recordLocking' => false ), -'public.identity' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'public.items' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'public.kbusers' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'public.products' => array( 'logFieldValues' => true, -'logModifications' => true, -'recordLocking' => false ), -'public.prompts' => array( 'logFieldValues' => false, -'logModifications' => false, -'recordLocking' => false ), -'public.server_setting' => array( 'logFieldValues' => false, -'logModifications' => false, -'recordLocking' => false ), -'public.view_faisis_chat_history' => array( 'logFieldValues' => false, -'logModifications' => false, -'recordLocking' => false ), -'public.view_zendesk' => array( 'logFieldValues' => false, -'logModifications' => false, -'recordLocking' => false ), -'public.zendesk__dataszz' => array( 'logFieldValues' => false, -'logModifications' => false, -'recordLocking' => false ) ), -'loggingMode' => 1, +'advancedSecurity' => array( 'allowGuestLogin' => false ), +'auditAndLocking' => array( 'loggingTable' => array( 'connId' => 'chats_at_localhost', +'table' => '' ), +'lockingTable' => array( 'connId' => 'chats_at_localhost', +'table' => '' ), +'tables' => array( ), +'loggingMode' => 0, 'loggingFile' => 'audit.log', -'logSecurityActions' => true, +'logSecurityActions' => false, 'lockAfterUnsuccessfulLogin' => false, 'enableLocking' => false ), 'twoFactorSettings' => array( 'available' => false, 'required' => false, 'enable' => true, 'remember' => true, -'types' => array( ), +'types' => array( 'totp' => true ), 'twoFactorField' => '', 'emailField' => '', 'phoneField' => '', 'codeField' => '', -'projectName' => '' ), -'projectName' => 'KnowledgeBase1', -'loginDataSource' => 'public.kbusers', +'projectName' => 'Chat' ), +'projectName' => 'Chat2', +'loginDataSource' => 'chat126_users1', 'loginForm' => 0, -'dynamicPermissions' => true, -'dpTablePrefix' => 'public.KnowledgeBase1', -'dpTableConnId' => 'KnowledgeBase2_at_localhost', +'dynamicPermissions' => false, +'dpTablePrefix' => '', +'dpTableConnId' => 'chats_at_localhost', 'hardcodedLogin' => false, 'enabled' => true, 'advancedSecurityAvailable' => true, @@ -202,18 +99,16 @@ $securitySettings_var = array( 'providers' => array( array( 'type' => '%db', 'name' => 'db', 'passwordField' => 'password', 'phoneField' => '', -'resetDateField' => '˂Create new˃', -'resetTokenField' => '˂Create new˃', -'table' => array( 'connId' => 'KnowledgeBase2_at_localhost', -'table' => 'public.kbusers' ), +'resetDateField' => 'reset_date', +'resetTokenField' => 'reset_token', +'table' => array( 'connId' => 'chats_at_localhost', +'table' => 'chat126_users1' ), 'twoFactorField' => '', -'userGroupField' => 'group', +'userGroupField' => 'username', 'usernameField' => 'username', 'userpicField' => '' ), 'adAdminGroups' => array( ), 'showUserSource' => false, 'dbProviderCodes' => array( '00' ), -'notifications' => array( 'enabled' => true, -'table' => array( 'connId' => 'KnowledgeBase2_at_localhost', -'table' => 'public.noti' ) ) ); +'notifications' => array( ) ); ?> \ No newline at end of file diff --git a/php/index.htm b/php/index.htm index 2bf24ba55791cb1176836b66ed3bbcd2c0939e45..a11de3ab217eadd64040a3ccefc09d8495aa43f9 100644 --- a/php/index.htm +++ b/php/index.htm @@ -1,12 +1,15 @@ - + + + + - + diff --git a/php/styles/bootstrap/cerulean/normal/style.css b/php/styles/bootstrap/cerulean/normal/style.css index a98bfffa17a5401e939916d58e8bf53bae9e5d84..5dbc8368c3c2e060af6d0e71d67bf46a01da4ed1 100644 --- a/php/styles/bootstrap/cerulean/normal/style.css +++ b/php/styles/bootstrap/cerulean/normal/style.css @@ -4563,8 +4563,8 @@ select[multiple].input-group-sm > .input-group-btn > .btn { } } .navbar-default { - background-color: #2FA4E7; - border-color: #1995dc; + background-color: #3c8dbc; + border-color: #347aa3; } .navbar-default .navbar-brand { color: rgba(255, 255, 255, 0.75); @@ -4583,13 +4583,13 @@ select[multiple].input-group-sm > .input-group-btn > .btn { .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #fff; - background-color: #178acc; + background-color: #307095; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { color: #fff; - background-color: #178acc; + background-color: #307095; } .navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, @@ -4598,23 +4598,23 @@ select[multiple].input-group-sm > .input-group-btn > .btn { background-color: transparent; } .navbar-default .navbar-toggle { - border-color: #178acc; + border-color: #307095; } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { - background-color: #178acc; + background-color: #307095; } .navbar-default .navbar-toggle .icon-bar { background-color: #fff; } .navbar-default .navbar-collapse, .navbar-default .navbar-form { - border-color: #1995dc; + border-color: #347aa3; } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { - background-color: #178acc; + background-color: #307095; color: #fff; } @media (max-width: 767px) { @@ -4624,13 +4624,13 @@ select[multiple].input-group-sm > .input-group-btn > .btn { .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #fff; - background-color: #178acc; + background-color: #307095; } .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #fff; - background-color: #178acc; + background-color: #307095; } .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, @@ -6823,19 +6823,19 @@ button.close { } } .navbar-default { - background-image: -webkit-linear-gradient(#54b4eb, #2FA4E7 60%, #1d9ce5); - background-image: -o-linear-gradient(#54b4eb, #2FA4E7 60%, #1d9ce5); - background-image: linear-gradient(#54b4eb, #2FA4E7 60%, #1d9ce5); + background-image: -webkit-linear-gradient(#57a0c9, #3c8dbc 60%, #3781ad); + background-image: -o-linear-gradient(#57a0c9, #3c8dbc 60%, #3781ad); + background-image: linear-gradient(#57a0c9, #3c8dbc 60%, #3781ad); background-repeat: no-repeat; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff54b4eb', endColorstr='#ff1d9ce5', GradientType=0); - border-bottom: 1px solid #178acc; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff57a0c9', endColorstr='#ff3781ad', GradientType=0); + border-bottom: 1px solid #307095; filter: none; -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); } .navbar-default .badge { background-color: #fff; - color: #2FA4E7; + color: #3c8dbc; } .navbar-inverse { background-image: -webkit-linear-gradient(#04519b, #044687 60%, #033769); @@ -7113,16 +7113,16 @@ table.indenttables > * > .rightsindent5 > td.rightscell.rightscell.rightscell.ri background-color: #fff; } .sidebar.sidebar { - background-color: #343a40; + background-color: #ffffff; border-right-color: #a0a0a0; } .sidebar-menu.sidebar-menu a { - color: #c2c7d0; + color: #777777; border-bottom: none; } .sidebar-menu.sidebar-menu a:hover { - color: white; - background: transparent; + color: #212529; + background: rgba(0, 0, 0, 0.1); } /* ????? @@ -7573,12 +7573,12 @@ table.indenttables > * > .rightsindent5 > td.rightscell.rightscell.rightscell.ri font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } .r-vbar-page .r-left { - background-color: #343a40; + background-color: #ffffff; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); padding-bottom: 15px; - width: 0px; + width: 250px; min-height: calc(100vh - 20px); - flex: 0 0 0px; + flex: 0 0 250px; } .r-vbar-page .r-left .panel { margin-bottom: 0; @@ -7594,26 +7594,27 @@ table.indenttables > * > .rightsindent5 > td.rightscell.rightscell.rightscell.ri border-radius: 0; } .r-vbar-page .r-left .panel { - background-color: #4c545d; - color: #c2c7d0; + background-color: #fcfcfc; + color: #777777; } .r-vbar-page .r-left .panel .panel-heading { - border-bottom-color: #4c545d; - background-color: #2FA4E7; + border-bottom-color: #fdfeff; + background-color: rgba(47, 164, 231, 0.6); } .r-vbar-page .r-left .panel .panel-footer { border: none; - background-color: #5c6670; + background-color: #f2f2f0; } .r-vbar-page .r-left .navbar-brand { color: #2FA4E7; font-size: 22px; } .r-vbar-page .r-left [data-logo-cell][data-logo-cell] { - background-color: #3c8dbc; + background-color: #17a2b8; color: rgba(255, 255, 255, 0.75); - height: 52px; + height: 53px; border: none; + border-bottom: solid 1px #dee2e6; display: flex; align-items: stretch; align-self: stretch; @@ -7673,7 +7674,7 @@ table.indenttables > * > .rightsindent5 > td.rightscell.rightscell.rightscell.ri } @media print, (min-width: 768px) { .r-vbar-page .r-left[data-fixed] + .r-content-col { - margin-left: 0px; + margin-left: 250px; } .r-vbar-page .r-left[data-fixed].r-left-collapsed + .r-content-col { margin-left: 60px; @@ -7698,14 +7699,14 @@ table.indenttables > * > .rightsindent5 > td.rightscell.rightscell.rightscell.ri } @media print, (min-width: 768px) { .r-vbar-page .r-content-col { - max-width: calc(100vw - 0px); + max-width: calc(100vw - 250px); } .r-vbar-page .r-content-col .r-body { padding-left: 22.5px; padding-right: 15px; } .r-vbar-page .r-content-col .r-body > * { - max-width: calc(100vw - 0px - 20px - (30px * 0.75) - 10px); + max-width: calc(100vw - 250px - 20px - (30px * 0.75) - 10px); } .r-vbar-page .r-content-col .r-body > *.r-grid { max-width: none; @@ -7720,7 +7721,7 @@ table.indenttables > * > .rightsindent5 > td.rightscell.rightscell.rightscell.ri display: table; } .r-vbar-page .r-content-col .r-body[data-body-width="compact"] > * { - max-width: calc(100vw - 0px - 15px); + max-width: calc(100vw - 250px - 15px); } .r-vbar-page .r-content-col .r-body[data-body-width="compact"] .r-grid > table { width: auto; @@ -7755,7 +7756,7 @@ table.indenttables > * > .rightsindent5 > td.rightscell.rightscell.rightscell.ri left: 0; right: 0; z-index: 100; - margin-left: 0px; + margin-left: 250px; } .r-vbar-page .r-topheader[data-fixed] + .r-body { margin-top: 50px; @@ -7887,12 +7888,12 @@ table.indenttables > * > .rightsindent5 > td.rightscell.rightscell.rightscell.ri font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } .r-leftbar-top-page > .r-under .r-left { - background-color: #343a40; + background-color: #ffffff; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); padding-bottom: 15px; - width: 0px; + width: 250px; min-height: calc(100vh - 20px); - flex: 0 0 0px; + flex: 0 0 250px; } .r-leftbar-top-page > .r-under .r-left .panel { margin-bottom: 0; @@ -7908,26 +7909,27 @@ table.indenttables > * > .rightsindent5 > td.rightscell.rightscell.rightscell.ri border-radius: 0; } .r-leftbar-top-page > .r-under .r-left .panel { - background-color: #4c545d; - color: #c2c7d0; + background-color: #fcfcfc; + color: #777777; } .r-leftbar-top-page > .r-under .r-left .panel .panel-heading { - border-bottom-color: #4c545d; - background-color: #2FA4E7; + border-bottom-color: #fdfeff; + background-color: rgba(47, 164, 231, 0.6); } .r-leftbar-top-page > .r-under .r-left .panel .panel-footer { border: none; - background-color: #5c6670; + background-color: #f2f2f0; } .r-leftbar-top-page > .r-under .r-left .navbar-brand { color: #2FA4E7; font-size: 22px; } .r-leftbar-top-page > .r-under .r-left [data-logo-cell][data-logo-cell] { - background-color: #3c8dbc; + background-color: #17a2b8; color: rgba(255, 255, 255, 0.75); - height: 52px; + height: 53px; border: none; + border-bottom: solid 1px #dee2e6; display: flex; align-items: stretch; align-self: stretch; @@ -7994,7 +7996,7 @@ table.indenttables > * > .rightsindent5 > td.rightscell.rightscell.rightscell.ri } @media print, (min-width: 768px) and print, (min-width: 768px) { .r-leftbar-top-page > .r-under .r-left[data-fixed] + .r-content-col { - margin-left: 0px; + margin-left: 250px; } .r-leftbar-top-page > .r-under .r-left[data-fixed].r-left-collapsed + .r-content-col { margin-left: 60px; @@ -8013,14 +8015,14 @@ table.indenttables > * > .rightsindent5 > td.rightscell.rightscell.rightscell.ri } @media print, (min-width: 768px) and print, (min-width: 768px) { .r-leftbar-top-page > .r-under .r-content-col { - max-width: calc(100vw - 0px); + max-width: calc(100vw - 250px); } .r-leftbar-top-page > .r-under .r-content-col .r-body { padding-left: 22.5px; padding-right: 15px; } .r-leftbar-top-page > .r-under .r-content-col .r-body > * { - max-width: calc(100vw - 0px - 20px - (30px * 0.75) - 10px); + max-width: calc(100vw - 250px - 20px - (30px * 0.75) - 10px); } .r-leftbar-top-page > .r-under .r-content-col .r-body > *.r-grid { max-width: none; @@ -8035,7 +8037,7 @@ table.indenttables > * > .rightsindent5 > td.rightscell.rightscell.rightscell.ri display: table; } .r-leftbar-top-page > .r-under .r-content-col .r-body[data-body-width="compact"] > * { - max-width: calc(100vw - 0px - 15px); + max-width: calc(100vw - 250px - 15px); } .r-leftbar-top-page > .r-under .r-content-col .r-body[data-body-width="compact"] .r-grid > table { width: auto; @@ -8064,7 +8066,7 @@ table.indenttables > * > .rightsindent5 > td.rightscell.rightscell.rightscell.ri } @media screen and (max-width: 767px) { .r-leftbar-top-page [data-logo-cell] { - background: #2FA4E7; + background: #3c8dbc; } .r-leftbar-top-page [data-logo-cell] > .navbar-header { display: block; @@ -9743,13 +9745,13 @@ td.bs-details-opened.bs-details-opened.bs-details-opened { border-top-color: rgba(255, 255, 255, 0.75); } .navbar .input-group { - background: #41ace9; + background: #4897c5; border-radius: 4px; border: none; color: rgba(255, 255, 255, 0.75); } .navbar .input-group:focus-within { - background: #46aeea; + background: #4c99c6; } .navbar .input-group:focus-within .btn.btn { color: #ffffff; @@ -9833,15 +9835,15 @@ td.bs-details-opened.bs-details-opened.bs-details-opened { /* removed as for #14263 */ } .r-topbar-page .r-body .r-content .r-left { - flex: 0 0 0px; - width: 0px; + flex: 0 0 250px; + width: 250px; padding-right: 15px; } .r-topbar-page .r-body .r-content .r-left > .r-form { width: 100%; } .r-topbar-page .r-body .r-content .r-left:not( [data-hidden] ) + .r-data-block { - max-width: calc(100vw - 0px - 15px - 15px); + max-width: calc(100vw - 250px - 15px - 15px); } .r-topbar-page .r-body .r-content .r-left:not( [data-hidden] ) + .r-data-block[data-body-width="standard"] > .r-grid { width: 100%; @@ -9901,17 +9903,17 @@ td.bs-details-opened.bs-details-opened.bs-details-opened { } @media print, (min-width: 768px) and (min-width: 1200px) { .r-topbar-page .r-body .r-content .r-left:not( [data-hidden] ) + .r-data-block[data-body-width="standard"] > .r-grid { - min-width: 1100px; + min-width: 850px; } } @media print, (min-width: 768px) and (min-width: 1400px) { .r-topbar-page .r-body .r-content .r-left:not( [data-hidden] ) + .r-data-block[data-body-width="standard"] > .r-grid { - min-width: 1170px; + min-width: 920px; } } @media print, (min-width: 768px) and (min-width: 1800px) { .r-topbar-page .r-body .r-content .r-left:not( [data-hidden] ) + .r-data-block[data-body-width="standard"] > .r-grid { - min-width: 1270px; + min-width: 1020px; } } @media print, (min-width: 768px) and (max-width: 1199px) { @@ -11622,10 +11624,10 @@ However there might have been the case where dropdown showed up where it shouldn } /* filter panel in left bar */ .r-vbar-page .r-left [data-itemtype="filter_panel"] .panel { - color: #c2c7d0; + color: #777777; } .r-vbar-page .r-left [data-itemtype="filter_panel"] .panel .panel-heading { - background-color: #2FA4E7; + background-color: rgba(47, 164, 231, 0.6); color: white; font-size: 15px; } @@ -11641,16 +11643,17 @@ However there might have been the case where dropdown showed up where it shouldn color: inherit; } .r-vbar-page .r-left [data-itemtype="filter_panel"] .panel ul > li a:hover { - color: white; + color: #212529; } .r-vbar-page .r-left [data-itemtype="filter_panel"] .panel ul > li a:hover, .r-vbar-page .r-left [data-itemtype="filter_panel"] .panel ul > li a:focus { - color: white; + color: #212529; + background: rgba(0, 0, 0, 0.1); text-decoration: none; } .r-vbar-page .r-left [data-itemtype="filter_panel"] .panel .filter-show-more, .r-vbar-page .r-left [data-itemtype="filter_panel"] .panel .filter-multiselect { - background: #5c6670; + background: #f2f2f0; } /* horizontal filter panel tweaks */ .filterPanelContainer[data-horizontal] .filter-field { @@ -11708,12 +11711,7 @@ However there might have been the case where dropdown showed up where it shouldn } [data-menu-top][data-menu-v][aria-expanded="true"], [data-menu-v][data-menu-inline][aria-expanded="true"] { - background-color: rgba(255, 255, 255, 0.1); - color: white; - } - [data-menu-top][data-menu-v][aria-expanded="true"]:hover, - [data-menu-v][data-menu-inline][aria-expanded="true"]:hover { - background-color: rgba(255, 255, 255, 0.1); + color: #212529; } [data-menu-top][data-menu-v] > :not( .r-menu-collapsed ), [data-menu-v][data-menu-inline] > :not( .r-menu-collapsed ) { @@ -11767,12 +11765,7 @@ However there might have been the case where dropdown showed up where it shouldn } .r-vbar-page [data-menu-top][data-menu-v][aria-expanded="true"], .r-vbar-page [data-menu-v][data-menu-inline][aria-expanded="true"] { - background-color: rgba(255, 255, 255, 0.1); - color: white; -} -.r-vbar-page [data-menu-top][data-menu-v][aria-expanded="true"]:hover, -.r-vbar-page [data-menu-v][data-menu-inline][aria-expanded="true"]:hover { - background-color: rgba(255, 255, 255, 0.1); + color: #212529; } .r-vbar-page [data-menu-top][data-menu-v] > :not( .r-menu-collapsed ), .r-vbar-page [data-menu-v][data-menu-inline] > :not( .r-menu-collapsed ) { @@ -11834,7 +11827,7 @@ However there might have been the case where dropdown showed up where it shouldn transform: rotate(-0.25turn); } [data-location="supertop"] .open > .dropdown-menu { - background-color: #46aeea; + background-color: #4c99c6; padding-top: 0; padding-bottom: 0; } @@ -11883,7 +11876,10 @@ However there might have been the case where dropdown showed up where it shouldn .r-left:not(.r-left-collapsed) .r-menu [data-menu-inline] { padding: 0; font-size: 16px; - padding: 8px 15px; + padding: 8px 16px; + margin: 0px 8px; + margin-bottom: 3px; + border-radius: 4px; } .r-left:not(.r-left-collapsed) .r-menu [data-menu-top] .menu-icon, .r-left:not(.r-left-collapsed) .r-menu [data-menu-inline] .menu-icon { @@ -11943,6 +11939,9 @@ However there might have been the case where dropdown showed up where it shouldn text-align: center; padding: 8px 16px; font-size: 16px; + margin: 0 6px; + margin-bottom: 3px; + border-radius: 4px; } } @media screen and (max-width: 767px) { @@ -11997,28 +11996,29 @@ However there might have been the case where dropdown showed up where it shouldn margin: 0; } .r-left .r-menu [data-menu-link] { - color: #c2c7d0; + color: #777777; border-bottom: none; } .r-left .r-menu [data-menu-link]:hover { - color: white; - background: transparent; + color: #212529; + background: rgba(0, 0, 0, 0.1); } .r-left .r-menu li.active.active.active > [data-menu-link] { background: #2FA4E7; + box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px 0px, rgba(0, 0, 0, 0.24) 0px 1px 2px 0px; color: white; } .r-left:not(.r-left-collapsed) .r-menu.menu-treelike [data-menulevel="2"] > li > a { - padding-left: 24px; + margin-left: 24px; } .r-left:not(.r-left-collapsed) .r-menu.menu-treelike [data-menulevel="3"] > li > a { - padding-left: 40px; + margin-left: 40px; } .r-left:not(.r-left-collapsed) .r-menu.menu-treelike [data-menulevel="4"] > li > a { - padding-left: 56px; + margin-left: 56px; } .r-left:not(.r-left-collapsed) .r-menu.menu-treelike [data-menulevel="5"] > li > a { - padding-left: 72px; + margin-left: 72px; } .r-left .r-menu { padding-top: 12px; @@ -12217,13 +12217,13 @@ However there might have been the case where dropdown showed up where it shouldn /* above and below forms width with wide grid */ @media print, (min-width: 768px) { .r-vbar-page .r-content-col .r-body > .r-grid > .panel > * > .r-form { - max-width: calc(100vw - 0px - 20px - (30px * 0.75) - 10px - (10px * 2)); + max-width: calc(100vw - 250px - 20px - (30px * 0.75) - 10px - (10px * 2)); } .r-left-collapsed + .r-content-col .r-body > .r-grid > .panel > * > .r-form { max-width: calc(100vw - 60px - 20px - (30px * 0.75) - 10px - (10px * 2)); } .r-topbar-page .r-body .r-content .r-left:not( [data-hidden] ) + .r-data-block > .r-grid > .panel > * > .r-form { - max-width: calc(100vw - 0px - 15px - (30px * 0.75) - 10px - (10px * 2)); + max-width: calc(100vw - 250px - 15px - (30px * 0.75) - 10px - (10px * 2)); } .r-data-block > .r-grid > .panel > * > .r-form { max-width: calc(100vw - 15px - (30px * 0.75) - 10px - (10px * 2)); diff --git a/php/styles/pages/_global_changepwd_Chat1.css b/php/styles/pages/_global_changepwd_Chat1.css new file mode 100644 index 0000000000000000000000000000000000000000..b959861f4a1986aa649959cdb158f43755839d5b --- /dev/null +++ b/php/styles/pages/_global_changepwd_Chat1.css @@ -0,0 +1,5 @@ +[data-page="_global_changepwd_Chat1"][data-itemid="page_image_ash8f23hr"] { + width: 400px; +} + + diff --git a/php/styles/pages/_global_changepwd_success_Chat1.css b/php/styles/pages/_global_changepwd_success_Chat1.css new file mode 100644 index 0000000000000000000000000000000000000000..b21ef356dd97792333ad6d7b66dcd66706d45ebb --- /dev/null +++ b/php/styles/pages/_global_changepwd_success_Chat1.css @@ -0,0 +1,5 @@ +[data-page="_global_changepwd_success_Chat1"][data-itemid="page_image_ash8f23hr"] { + width: 400px; +} + + diff --git a/php/styles/pages/_global_login_Chat1.css b/php/styles/pages/_global_login_Chat1.css new file mode 100644 index 0000000000000000000000000000000000000000..84396ae7ea7e748ab5de51b371378e6bd5fe518f --- /dev/null +++ b/php/styles/pages/_global_login_Chat1.css @@ -0,0 +1,11 @@ +[data-cellid="footer_c1"][data-page="_global_login_Chat1"][data-cellid="footer_c1"][data-page="_global_login_Chat1"][data-cellid="footer_c1"][data-page="_global_login_Chat1"] { + width: 33.33333333%; +} +[data-cellid="footer_c2"][data-page="_global_login_Chat1"][data-cellid="footer_c2"][data-page="_global_login_Chat1"][data-cellid="footer_c2"][data-page="_global_login_Chat1"] { + width: 66.66666667%; +} +[data-page="_global_login_Chat1"][data-itemid="page_image_ash8f23hr"] { + width: 400px; +} + + diff --git a/php/styles/pages/_global_menu_Chat1.css b/php/styles/pages/_global_menu_Chat1.css new file mode 100644 index 0000000000000000000000000000000000000000..fe6177485e651e25ca2bf1d8a3bbc54c4ebe5465 --- /dev/null +++ b/php/styles/pages/_global_menu_Chat1.css @@ -0,0 +1,8 @@ +[data-page="_global_menu_Chat1"][data-itemid="welcome_item"] > .bs-welcome-header { + background-color: #CFAE83; +} +[data-page="_global_menu_Chat1"][data-itemid="page_image_ash8f23hr"] { + width: 400px; +} + + diff --git a/php/styles/pages/_global_userinfo_Chat1.css b/php/styles/pages/_global_userinfo_Chat1.css new file mode 100644 index 0000000000000000000000000000000000000000..50478afdf7af55616b6b1bd570839dcb675e7d6c --- /dev/null +++ b/php/styles/pages/_global_userinfo_Chat1.css @@ -0,0 +1,11 @@ +[data-cellid="grid_buttons"][data-page="_global_userinfo_Chat1"][data-cellid="grid_buttons"][data-page="_global_userinfo_Chat1"][data-cellid="grid_buttons"][data-page="_global_userinfo_Chat1"] { + padding: 15px; +} +[data-page="_global_userinfo_Chat1"][data-itemid="user_fields_title"] { + font-size: 24px; +} +[data-page="_global_userinfo_Chat1"][data-itemid="page_image_ash8f23hr"] { + width: 400px; +} + + diff --git a/php/styles/pages/chat126_users1_search.css b/php/styles/pages/chat126_users1_search.css new file mode 100644 index 0000000000000000000000000000000000000000..9311f2b27089d2e3158d4b514b7d3ca8cfcb34b5 --- /dev/null +++ b/php/styles/pages/chat126_users1_search.css @@ -0,0 +1,5 @@ +[data-page="chat126_users1_search"][data-itemid="page_image_ash8f23hr"] { + width: 400px; +} + + diff --git a/php/templates/_global_changepwd_Chat1.htm b/php/templates/_global_changepwd_Chat1.htm new file mode 100644 index 0000000000000000000000000000000000000000..0f36c9e457f956a4b066951e000097e80e13a29d --- /dev/null +++ b/php/templates/_global_changepwd_Chat1.htm @@ -0,0 +1,198 @@ + + + + + + {$pagetitle} + + + + {BEGIN rtlCSS} + + {END rtlCSS} + {BEGIN styleCSSFiles} + + {END styleCSSFiles} + + + + + {BEGIN body} + {$header} + +
+ {BEGIN supertop_block} +
+ +
+ +
+
+
+{END supertop_block} +
+
+ {BEGIN top_block} +
+ + +
+ +

{$pagetitlelabel changepwd_Chat1}

+
+{END top_block} +
+
+ {BEGIN above-grid_block} +
+ +
+ +
+ {BEGIN firstAboveGridCell} + + {BEGIN message_block} + +{END message_block} {END firstAboveGridCell} +
+
+{END above-grid_block} + {BEGIN grid_block} + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+ {$oldpass_editcontrol} +
+
+
+
+
+
+
+ {$newpass_editcontrol} +
+
+
+
+
+
+
+ {$confirm_editcontrol} +
+
+{END grid_block} + {BEGIN footer_block} + +{END footer_block} +
+
+ +
+ {$footer} + {END body} + + diff --git a/php/templates/_global_changepwd_success_Chat1.htm b/php/templates/_global_changepwd_success_Chat1.htm new file mode 100644 index 0000000000000000000000000000000000000000..2326bb1bc17e5c093315ae36091b4e800d7588f2 --- /dev/null +++ b/php/templates/_global_changepwd_success_Chat1.htm @@ -0,0 +1,103 @@ + + + + + + {$pagetitle} + + + + {BEGIN rtlCSS} + + {END rtlCSS} + {BEGIN styleCSSFiles} + + {END styleCSSFiles} + + + + + {BEGIN body} + {$header} + +
+ {BEGIN supertop_block} +
+ +
+ +
+
+
+{END supertop_block} +
+
+ {BEGIN top_block} +
+ + +
+ +

{$pagetitlelabel changepwd_success_Chat1}

+
+{END top_block} +
+
+ {BEGIN grid_block} + + + + + + + + +
+
+
+ Password was changed
+
+
+{END grid_block} + {BEGIN footer_block} + +{END footer_block} +
+
+ +
+ {$footer} + {END body} + + diff --git a/php/templates/_global_login_Chat1.htm b/php/templates/_global_login_Chat1.htm new file mode 100644 index 0000000000000000000000000000000000000000..9d65ba76ab27adcf79d79eb2eea1a761bfa435f3 --- /dev/null +++ b/php/templates/_global_login_Chat1.htm @@ -0,0 +1,226 @@ + + + + + + {$pagetitle} + + + + {BEGIN rtlCSS} + + {END rtlCSS} + {BEGIN styleCSSFiles} + + {END styleCSSFiles} + + + + + {BEGIN body} + {$header} + +
+ {BEGIN supertop_block} +
+ +
+ +
+
+
+{END supertop_block} +
+
+ {BEGIN top_block} +
+ + +
+ +

{$pagetitlelabel login_Chat1}

+
+
+
+{END top_block} +
+
+ {BEGIN above-grid_block} +
+ +
+ +
+ {BEGIN firstAboveGridCell} + {END firstAboveGridCell} +
+ +
+ +
+ + {BEGIN message_block} + +{END message_block}
+
+{END above-grid_block} + {BEGIN grid_block} + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+{END grid_block} + {BEGIN footer_block} + +{END footer_block} +
+
+ {BEGIN superbottom_block} +
+
+{END superbottom_block} + +
+ {$footer} + {END body} + + diff --git a/php/templates/_global_menu_Chat1.htm b/php/templates/_global_menu_Chat1.htm new file mode 100644 index 0000000000000000000000000000000000000000..e96c3e83457743f7f38f96ce0c2ed3e27369aec9 --- /dev/null +++ b/php/templates/_global_menu_Chat1.htm @@ -0,0 +1,322 @@ + + + + + + {$pagetitle} + + + + {BEGIN rtlCSS} + + {END rtlCSS} + {BEGIN styleCSSFiles} + + {END styleCSSFiles} + + + + {BEGIN body} + {$header} + +
+
+ {BEGIN supertop_block} + +{END supertop_block} + {$locking} +
+
+
+
+
+
+ +
+ {BEGIN above-grid_block} +
+ +
+ +
+ {BEGIN firstAboveGridCell} + {END firstAboveGridCell} +
+
+{END above-grid_block} +
+
+ {BEGIN grid_tabs} + +{END grid_tabs} + {BEGIN grid_block} + + + + + + + + +
+
+ + +
+ + + +
+ Chats History description
+
+ +
+
+{END grid_block} +
+
+
+ + + + + +
+
+
+
+ {$footer} + {END body} + + diff --git a/php/templates/_global_userinfo_Chat1.htm b/php/templates/_global_userinfo_Chat1.htm new file mode 100644 index 0000000000000000000000000000000000000000..f6a3109f1f07498d6860936452737b64fe822bb4 --- /dev/null +++ b/php/templates/_global_userinfo_Chat1.htm @@ -0,0 +1,514 @@ + + + + + + {$pagetitle} + + + + {BEGIN rtlCSS} + + {END rtlCSS} + {BEGIN styleCSSFiles} + + {END styleCSSFiles} + + + + + {BEGIN body} + +
+
+
+{BEGIN left_block} + + + + +
+ {BEGIN logo_block} + + {$logo} + +{END logo_block} + +
+ + + +
+ + + + + +
+ + + + + +
+ {BEGIN menuitems_main} + +{END menuitems_main} +
+ + {END left_block} +
+
+
+ {BEGIN supertop_block} + +{END supertop_block} + {$locking} +
+
+ {$header} +
+ {BEGIN top_block} +
+
+{END top_block} +
+
+ {BEGIN above-grid_block} +
+ +
+ +
+ {BEGIN firstAboveGridCell} + {END firstAboveGridCell} +
+
+{END above-grid_block} +
+
+ {BEGIN grid_tabs} + +{END grid_tabs} + {BEGIN grid_block} + + + + + + + + + + + +{BEGIN cellblock_grid_fields_message} + + {END cellblock_grid_fields_message} + + + + + + +{BEGIN cellblock_grid_fields} + + {END cellblock_grid_fields} + + + + + + +{BEGIN cellblock_grid_buttons} + + {END cellblock_grid_buttons} + +
+
+ +Profile + {BEGIN message_block} + +{END message_block} +
+
+ +{BEGIN username_fieldblock} + + +
+ + +
+ {$username_editcontrol}
+
+
+ {$tooltip chat126_users1 username }
+
+
+ + +{END username_fieldblock} + +{BEGIN fullname_fieldblock} + + +
+ + +
+ {$fullname_editcontrol}
+
+
+ {$tooltip chat126_users1 fullname }
+
+
+ + +{END fullname_fieldblock} + +{BEGIN email_fieldblock} + + +
+ + +
+ {$email_editcontrol}
+
+
+ {$tooltip chat126_users1 email }
+
+
+ + +{END email_fieldblock} + +
+
+ + + Reset + + + + Save + + +
+{END grid_block} +
+
+ {BEGIN below-grid_block} +
+ +
+ +
+
+
+{END below-grid_block} +
+ + + + + {$footer} +
+
+
+
+
+ {END body} + + diff --git a/php/templates/chat126_users1_search.htm b/php/templates/chat126_users1_search.htm new file mode 100644 index 0000000000000000000000000000000000000000..d34b6b339b339bae862331ea08e24cf4a2240a55 --- /dev/null +++ b/php/templates/chat126_users1_search.htm @@ -0,0 +1,326 @@ + + + + + + {$pagetitle} + + + + {BEGIN rtlCSS} + + {END rtlCSS} + {BEGIN styleCSSFiles} + + {END styleCSSFiles} + + + + + {BEGIN body} + {$header} + + {$locking} +
+ {BEGIN top_block} +
+ +
+ +
+ +

{$pagetitlelabel chat126_users1 search}

+
+
+{END top_block} + {BEGIN above-grid_block} +
+ +
+ +
+
+
+{END above-grid_block} + {BEGIN grid_block} + + + + + + + + + + + +{BEGIN cellblock_grid_c3} + + {END cellblock_grid_c3} + +
+
+ +{BEGIN ID_fieldblock} + +
+ + + +
+ {$searchtype_ID} +
+
+ {$ID_editcontrol}
+
+ {$ID_editcontrol1} +
+ +
+ +{END ID_fieldblock} + +{BEGIN username_fieldblock} + +
+ + + +
+ {$searchtype_username} +
+
+ {$username_editcontrol}
+
+ {$username_editcontrol1} +
+ +
+ +{END username_fieldblock} + +{BEGIN password_fieldblock} + +
+ + + +
+ {$searchtype_password} +
+
+ {$password_editcontrol}
+
+ {$password_editcontrol1} +
+ +
+ +{END password_fieldblock} + +{BEGIN email_fieldblock} + +
+ + + +
+ {$searchtype_email} +
+
+ {$email_editcontrol}
+
+ {$email_editcontrol1} +
+ +
+ +{END email_fieldblock} + +{BEGIN fullname_fieldblock} + +
+ + + +
+ {$searchtype_fullname} +
+
+ {$fullname_editcontrol}
+
+ {$fullname_editcontrol1} +
+ +
+ +{END fullname_fieldblock} + +{BEGIN groupid_fieldblock} + +
+ + + +
+ {$searchtype_groupid} +
+
+ {$groupid_editcontrol}
+
+ {$groupid_editcontrol1} +
+ +
+ +{END groupid_fieldblock} + +{BEGIN active_fieldblock} + +
+ + + +
+ {$searchtype_active} +
+
+ {$active_editcontrol}
+
+ {$active_editcontrol1} +
+ +
+ +{END active_fieldblock} + +{BEGIN ext_security_id_fieldblock} + +
+ + + +
+ {$searchtype_ext_security_id} +
+
+ {$ext_security_id_editcontrol}
+
+ {$ext_security_id_editcontrol1} +
+ +
+ +{END ext_security_id_fieldblock} + +
+{END grid_block} + {BEGIN below-grid_block} +
+ +
+ +
+ + + + Search + + + + + Reset + + + {BEGIN back_button} + + + Back to list + +{END back_button} + + {BEGIN cancel_button} + + + Cancel + +{END cancel_button} +
+
+{END below-grid_block} +
+ {$footer} + {END body} + + diff --git a/php/templates/chat_files_list.htm b/php/templates/chat_files_list.htm index da917b0a442dab714c43d261ed97ce40c95c3c02..e15aa010be06cff98d5d51fad0ec84cd52480928 100644 --- a/php/templates/chat_files_list.htm +++ b/php/templates/chat_files_list.htm @@ -17,14 +17,13 @@ {BEGIN body}
-
+
{BEGIN left_block} @@ -291,6 +290,16 @@ + + + + {BEGIN guestloginbutton} + + + Login + +{END guestloginbutton} @@ -302,14 +311,22 @@ {END userbutton_icon}{$userbutton_image} {$username} @@ -327,18 +344,8 @@
{END top_block}
-
- {BEGIN grid_tabs} - -{END grid_tabs} -
-
- {BEGIN above-grid_block} +
+ {BEGIN above-grid_block}
@@ -364,8 +371,13 @@
{END above-grid_block} -
- +
+
+ {BEGIN grid_tabs} + +{END grid_tabs} {BEGIN grid_block} {BEGIN message_block} @@ -376,7 +388,7 @@ } } - @@ -485,10 +497,9 @@
{END grid_block} - - {BEGIN below-grid_outerblock} - +
+ {BEGIN below-grid_block}
@@ -507,11 +518,7 @@
{END below-grid_block} -
- {END below-grid_outerblock} -
- -
+
diff --git a/php/templates/chat_groups_add.htm b/php/templates/chat_groups_add.htm index 22c5fcf25f0c08319096cf7b0281d0b71e68bbdd..920223be71527f5305a0af3f4fc9457e986d71f8 100644 --- a/php/templates/chat_groups_add.htm +++ b/php/templates/chat_groups_add.htm @@ -23,7 +23,7 @@ {$containerCss}
-
+
{BEGIN left_block} @@ -50,7 +50,17 @@ data-location="supertop" id="form_supertop_{$pageid}" data-makeup="leftbar" {$form_supertop} data-pageid="{$pageid}" > - + + {BEGIN guestloginbutton} + + + Login + +{END guestloginbutton} + + + {BEGIN loggedas_message} @@ -59,14 +69,22 @@ {END userbutton_icon}{$userbutton_image} {$username} diff --git a/php/templates/chat_groups_edit.htm b/php/templates/chat_groups_edit.htm index 51ec4b08618b6e4026a876bf8435765b524f6cfc..80768a40d7ce0f2e381740c9f97139f1924f76de 100644 --- a/php/templates/chat_groups_edit.htm +++ b/php/templates/chat_groups_edit.htm @@ -23,7 +23,7 @@ {$containerCss}
-
+
{BEGIN left_block} @@ -51,7 +51,17 @@ - + + {BEGIN guestloginbutton} + + + Login + +{END guestloginbutton} + + + {BEGIN loggedas_message} @@ -60,14 +70,22 @@ {END userbutton_icon}{$userbutton_image} {$username} diff --git a/php/templates/chat_groups_list.htm b/php/templates/chat_groups_list.htm index b8594aaece2ba53c2d5f3487d6811cdf1cc7fbfa..25fdc6dc49238b16513555e3cf85e4658a9c06a8 100644 --- a/php/templates/chat_groups_list.htm +++ b/php/templates/chat_groups_list.htm @@ -17,14 +17,13 @@ {BEGIN body}
-
+
{BEGIN left_block} @@ -291,6 +290,16 @@ + + + + {BEGIN guestloginbutton} + + + Login + +{END guestloginbutton} @@ -302,14 +311,22 @@ {END userbutton_icon}{$userbutton_image} {$username} @@ -327,18 +344,8 @@
{END top_block}
-
- {BEGIN grid_tabs} - -{END grid_tabs} -
-
- {BEGIN above-grid_block} +
+ {BEGIN above-grid_block}
@@ -372,8 +379,13 @@
{END above-grid_block} -
- +
+
+ {BEGIN grid_tabs} + +{END grid_tabs} {BEGIN grid_block} {BEGIN message_block} @@ -396,7 +408,7 @@ } } - @@ -843,10 +855,9 @@
{END grid_block} - - {BEGIN below-grid_outerblock} - +
+ {BEGIN below-grid_block}
@@ -865,11 +876,7 @@
{END below-grid_block} -
- {END below-grid_outerblock} -
- -
+
diff --git a/php/templates/chat_history_add.htm b/php/templates/chat_history_add.htm index c364297dc184053c2859d3b043a0973c5d6ed3b4..c50adcbade73318b662e797c3b189e2a9677fb7b 100644 --- a/php/templates/chat_history_add.htm +++ b/php/templates/chat_history_add.htm @@ -231,7 +231,17 @@
- + + {BEGIN guestloginbutton} + + + Login + +{END guestloginbutton} + + + {BEGIN loggedas_message} @@ -240,14 +250,22 @@ {END userbutton_icon}{$userbutton_image} {$username} @@ -311,7 +329,7 @@ {$grid_hiddenattr} data-form-width="3" - data-v-width="5" + data-v-width="4" > @@ -324,7 +342,7 @@ orowspan="4" data-cellId="grid_c1" data-pageid="{$pageid}" data-page="chat_history_add" - data-v-cell="2" + data-v-cell="1" >
@@ -334,73 +352,7 @@ {$event group_menu} {$event chat_users} - -{BEGIN question_fieldblock} - - -
- - -
- {$question_editcontrol}
-
-
- {$tooltip chat_history question }
-
-
- - -{END question_fieldblock} - -{BEGIN answer_fieldblock} - - -
- - -
- {$answer_editcontrol}
-
-
- {$tooltip chat_history answer }
-
-
- - -{END answer_fieldblock} - -{BEGIN category_fieldblock} - - -
- - -
- {$category_editcontrol}
-
-
- {$tooltip chat_history category }
-
-
- - -{END category_fieldblock} - + {END cellblock_grid_c1} diff --git a/php/templates/chat_history_search.htm b/php/templates/chat_history_search.htm index 4d827a0fef37c2084a5503c28d7fc317aa31fe59..4c948ca301c504317a5e85c856791ca5e6b98719 100644 --- a/php/templates/chat_history_search.htm +++ b/php/templates/chat_history_search.htm @@ -313,72 +313,6 @@
{END isVideo_fieldblock} - -{BEGIN question_fieldblock} - -
- - - -
- {$searchtype_question} -
-
- {$question_editcontrol}
-
- {$question_editcontrol1} -
- -
- -{END question_fieldblock} - -{BEGIN answer_fieldblock} - -
- - - -
- {$searchtype_answer} -
-
- {$answer_editcontrol}
-
- {$answer_editcontrol1} -
- -
- -{END answer_fieldblock} - -{BEGIN category_fieldblock} - -
- - - -
- {$searchtype_category} -
-
- {$category_editcontrol}
-
- {$category_editcontrol1} -
- -
- -{END category_fieldblock} {END cellblock_grid_c3} diff --git a/php/templates/chat_settings_edit.htm b/php/templates/chat_settings_edit.htm index 6b391848e7e6b746e3359f45ab7d371d72b4d934..edb2ba3bcb6a5cec8f6c03fb9ca8b4756dc54474 100644 --- a/php/templates/chat_settings_edit.htm +++ b/php/templates/chat_settings_edit.htm @@ -23,7 +23,7 @@ {$containerCss}
-
+
{BEGIN left_block} @@ -275,14 +275,6 @@ {END logoutbutton} - {BEGIN adminarea_link} -
  • - - - Admin Area - -
  • -{END adminarea_link}