-
Notifications
You must be signed in to change notification settings - Fork 44
/
HRAIMiniGui.php
36 lines (33 loc) · 1.52 KB
/
HRAIMiniGui.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="/HRProprietary/HRCloud2/Applications/jquery-3.1.0.min.js"></script>
<script type="text/javascript" src="/HRProprietary/HRCloud2/Applications/meSpeak/mespeak.js"></script>
<?php
if (!file_exists('../commonCore.php')) {
echo nl2br('ERROR!!! HRC2HMG35, Cannot process the HRCloud2 Common Core file (commonCore.php).'."\n");
die (); }
else {
require_once ('../commonCore.php'); }
// / This file serves as the mini GUI for the HRAI module of HRCloud2. It was not intended to be used outside of
// / HRCloud2, although this file provides an example of a simple HTML API call to an HRAI node.
if (!isset($noMINICore)) {
$noMINICore = '0'; }
if ($noMINICore == '0') {
require($InstLoc.'/Applications/HRAI/core.php'); } ?>
<div align="center" id='HRAIButtons2' name='HRAIButtons2'>
<hr />
<form action="HRAIMiniGui.php" id="Corefile Input" method="post">
<input type="hidden" name="HRAIMiniGUIPost" value="1">
<input type="hidden" name="display_name" value="<?php echo $display_name;?>">
<?php if (!isset($input)) {
$input = ''; } ?>
<input type="text" name="input" id="input" value="">
<input id='submitHRAI' type="submit" value="Hello HRAI"></form>
</div>
</div><?php
if ($HRAIAudio == '1') { ?>
<script type="text/javascript">
meSpeak.speak('<?php echo $cleanOutput; ?>');
meSpeak.loadConfig('Applications/meSpeak/mespeak_config.json');
meSpeak.loadVoice('Applications/meSpeak/voices/en/en-us.json');
</script>
<?php } ?>