Skip to content

Commit

Permalink
Escape template
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Jun 21, 2021
1 parent ffb25ec commit 7b8d18a
Show file tree
Hide file tree
Showing 20 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h1><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('elasticsearch/admin','Elastic search console')?></h1>
<form action="" method="post">
<form action="" method="post" ng-non-bindable>
<div class="form-group">
<label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('elasticsearch/admin','Index')?></label>
<input type="text" class="form-control" name="Index" value="<?php echo htmlspecialchars($index)?>">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<?php include(erLhcoreClassDesign::designtpl('elasticsearchbot/parts/filter.tpl.php')); ?>

<?php if ($pages->items_total > 0): ?>
<table class="table">
<table class="table" ng-non-bindable>
<thead>
<tr>
<th width="98%"><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('elasticsearch/admin','Question')?></th>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 class="attr-header">Elastic Search Options</h1>

<form action="" method="post">
<form action="" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhkernel/csfr_token.tpl.php'));?>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form action="<?php echo erLhcoreClassDesign::baseurl('elasticsearchbot/list')?>" method="get" name="SearchFormRight">
<form action="<?php echo erLhcoreClassDesign::baseurl('elasticsearchbot/list')?>" method="get" name="SearchFormRight" ng-non-bindable>
<input type="hidden" name="doSearch" value="1">

<div class="row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>
<?php endif; ?>

<form action="<?php echo erLhcoreClassDesign::baseurl('elasticsearch/list')?>/(tab)/messages#/messages" method="get" name="SearchFormRight">
<form action="<?php echo erLhcoreClassDesign::baseurl('elasticsearch/list')?>/(tab)/messages#/messages" method="get" name="SearchFormRight" ng-non-bindable>
<input type="hidden" name="doSearch" value="1">
<div class="row">
<div class="col-md-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<?php include(erLhcoreClassDesign::designtpl('lhkernel/alert_success.tpl.php')); ?>
</div>

<div class="row" id="elastic-status-checked">
<div class="row" id="elastic-status-checked" ng-non-bindable>
<div class="col-md-12 form-group">

<h4><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/updateelastic','Elastic structure check')?></h4>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<h1>View question</h1>

<div class="form-group">
<div class="form-group" ng-non-bindable>
<label>View question, base on <a href="#" onclick="lhc.previewChat(<?php echo $question->chat_id?>)"><i class="material-icons">info_outline</i></a> <?php echo $question->chat_id?> chat</label>
<input type="text" class="form-control" name="question" value="<?php echo htmlspecialchars($question->question)?>" />
</div>

<p><b>Departments:</b> <?php echo implode(', ',$question->dep_ids_obj_names); ?></p>
<p ng-non-bindable><b>Departments:</b> <?php echo implode(', ',$question->dep_ids_obj_names); ?></p>

<ul class="list-unstyled">
<?php foreach ($items as $item) : ?>
Expand All @@ -22,7 +22,7 @@
<?php include(erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php'));?>
<?php endif; ?>

<form action="" method="post" ng-controller="ContextQuestionFormCtrl as contextQuestion" ng-init='contextQuestion.answers = <?php echo json_encode($question->cbot_question_array)?>'>
<form action="" ng-non-bindable method="post" ng-controller="ContextQuestionFormCtrl as contextQuestion" ng-init='contextQuestion.answers = <?php echo json_encode($question->cbot_question_array)?>'>

<div class="form-group">
<label><input type="checkbox" name="confirmed" value="on" <?php $question->confirmed == 1 ? print 'checked="checked"' : ''; ?> > <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhcchatbot/module','Confirmed')?></label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 class="attr-header"><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('module/cbscheduler','Auto completer');?></h1>

<form action="" method="post">
<form action="" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhkernel/csfr_token.tpl.php'));?>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="form-group">
<div class="form-group" ng-non-bindable>
<label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhcchatbot/module','Name');?></label>
<input type="text" class="form-control" placeholder="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhcchatbot/module','Name');?>" name="name" value="<?php echo htmlspecialchars($context->name)?>" />
</div>

<div class="form-group">
<div class="form-group" ng-non-bindable>
<label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhcchatbot/module','Host');?></label>
<input type="text" maxlength="150" class="form-control" placeholder="http://localhost:5000/model" name="host" value="<?php echo htmlspecialchars(!empty($context->host) ? $context->host : 'http://localhost:5000/model')?>" />
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<?php include(erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php'));?>
<?php endif; ?>

<form action="<?php echo erLhcoreClassDesign::baseurl('lhcchatbot/edit')?>/<?php echo $question->id?>" method="post">
<form action="<?php echo erLhcoreClassDesign::baseurl('lhcchatbot/edit')?>/<?php echo $question->id?>" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhcchatbot/question/form.tpl.php'));?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<?php include(erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php'));?>
<?php endif; ?>

<form action="<?php echo erLhcoreClassDesign::baseurl('lhcchatbot/editcontext')?>/<?php echo $context->id?>" method="post">
<form action="<?php echo erLhcoreClassDesign::baseurl('lhcchatbot/editcontext')?>/<?php echo $context->id?>" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhcchatbot/context/form.tpl.php'));?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<?php include(erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php'));?>
<?php endif; ?>

<form action="<?php echo erLhcoreClassDesign::baseurl('lhcchatbot/editreport')?>/<?php echo $report->id?>" method="post">
<form action="<?php echo erLhcoreClassDesign::baseurl('lhcchatbot/editreport')?>/<?php echo $report->id?>" method="post" ng-non-bindable>

<p><b><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhcchatbot/module','Question');?></b> - <?php echo htmlspecialchars($report->question)?></p>
<p><b><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhcchatbot/module','Answer');?></b> - <?php echo htmlspecialchars($report->answer)?></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<?php if ($pages->items_total > 0) { ?>

<form action="<?php echo $input->form_action,$inputAppend?>" method="post">
<form action="<?php echo $input->form_action,$inputAppend?>" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhkernel/csfr_token.tpl.php'));?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<?php if ($pages->items_total > 0) { ?>

<form action="<?php echo $input->form_action,$inputAppend?>" method="post">
<form action="<?php echo $input->form_action,$inputAppend?>" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhkernel/csfr_token.tpl.php'));?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<?php if ($pages->items_total > 0) { ?>

<form action="<?php echo $input->form_action,$inputAppend?>" method="post">
<form action="<?php echo $input->form_action,$inputAppend?>" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhkernel/csfr_token.tpl.php'));?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<?php include(erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php'));?>
<?php endif; ?>

<form action="<?php echo erLhcoreClassDesign::baseurl('lhcchatbot/new')?>" method="post">
<form action="<?php echo erLhcoreClassDesign::baseurl('lhcchatbot/new')?>" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhcchatbot/question/form.tpl.php'));?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<?php include(erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php'));?>
<?php endif; ?>

<form action="<?php echo erLhcoreClassDesign::baseurl('lhcchatbot/newcontext')?>" method="post">
<form action="<?php echo erLhcoreClassDesign::baseurl('lhcchatbot/newcontext')?>" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhcchatbot/context/form.tpl.php'));?>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form action="<?php echo erLhcoreClassDesign::baseurl('lhcchatbot/list')?>" method="get" name="SearchFormRight" class="mb-2">
<form action="<?php echo erLhcoreClassDesign::baseurl('lhcchatbot/list')?>" method="get" name="SearchFormRight" class="mb-2" ng-non-bindable>
<input type="hidden" name="doSearch" value="1">

<div class="row">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<div class="form-group">
<div class="form-group" ng-non-bindable>
<label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhcchatbot/module','Possible questions');?></label>
<textarea rows="5" cols="" class="form-control" placeholder="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhcchatbot/module','Each question has to be to separate line');?>" name="question"><?php echo htmlspecialchars($question->question)?></textarea>
</div>

<div class="form-group">
<div class="form-group" ng-non-bindable>
<label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhcchatbot/module','Answer');?></label>
<input type="text" class="form-control" name="answer" value="<?php echo htmlspecialchars($question->answer)?>" />
</div>

<div class="form-group">
<div class="form-group" ng-non-bindable>
<label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhcchatbot/module','Context');?></label>
<?php echo erLhcoreClassRenderHelper::renderCombobox( array (
'input_name' => 'context_id',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhcchatbot/module','Test')?></h1>
<p><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhcchatbot/module','Make sure you have entered some questions')?></p>

<form action="" method="get">
<form action="" method="get" ng-non-bindable>

<div class="form-group">
<label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('xmppservice/form','Question');?></label>
Expand Down

0 comments on commit 7b8d18a

Please sign in to comment.