| Server IP : 141.193.213.11 / Your IP : 216.73.216.101 Web Server : nginx System : Linux pod-400555 6.8.0-1055-gke #61-Ubuntu SMP Tue May 26 22:57:42 UTC 2026 x86_64 User : fpm200079 ( 200079) PHP Version : 8.2.36 Disable Function : apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,disk_total_space,diskfreespace,dl,exec,fastcgi_finish_request,link,opcache_compile_file,opcache_get_configuration,opcache_invalidate,opcache_is_script_cached,opcache_reset,passthru,pclose,pcntl_exec,popen,posix_getpid,posix_getppid,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,realpath_cache_get,shell_exec,show_source,symlink,system MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nas/content/live/bartislaw/wp-content/plugins/speak-api/inc/ |
Upload File : |
<?php
global $wpdb, $table_prefix;
include_once SPEAKAPI_PLUGIN_DIR . 'inc/config.php';
include_once 'SpeakApiCheck.php';
$table_name = $wpdb->prefix . "speak_api";
$Get_Results = $wpdb->get_row("SELECT * FROM $table_name WHERE speak_api_id = 1");
$Option_Array = explode(',', $Get_Results->speak_api_options);
$data_Api['speak_api_key'] = $Get_Results->speak_api_key;
$CheckApiKey = SpeakApiCheck::CheckAPIKey($data_Api);
?>
<div class="wrap">
<h2>Speakeasy API</h2>
<br />
<div class="postbox-container" style="width:70%;">
<div id="breadcrumbssupport" class="postbox">
<div class="inside">
<h2>How to Setup?</h2>
<ol>
<li>Get API key from SpeakEasyMarketing Inc.</li>
<li>Insert the API key and click save.</li>
<li>If your API key is valid red icon will turn green.</li>
<li>You done it. Enjoy</li>
</ol>
<form id="spk-api-form">
<table class="speak_api">
<tbody>
<tr>
<td align="center" colspan="2"><h1>API Setting</h1><div id="check-api-form-msg"></div></td>
</tr>
<tr>
<td class="sp-first"><label>Api Key : </label><div id="loader-form"></div>
<?php if ($CheckApiKey) { ?>
<?php if ($Get_Results->speak_api_status == '1') { ?>
<div id="active-icon"></div>
<?php } else { ?>
<div id="deactive-icon"></div>
<?php } ?>
<?php } else { ?>
<div id="deactive-icon"></div>
<?php } ?>
</td>
<td class="sp-second"><input type="text" name="speak_api_key" class="txt-long" value="<?php echo $Get_Results->speak_api_key; ?>" /></td>
</tr>
<tr><td colspan="2"> </td></tr>
<tr>
<td class="sp-first"><label>Select Options</label></td>
<td class="sp-second">
<?php if ($Option_Array[0] == 'PY') { ?>
<label><input type="checkbox" name="phone_email" checked="checked"/> Phone Email</label>
<?php } else { ?>
<label><input type="checkbox" name="phone_email"/> Phone Email</label>
<?php } ?>
<?php if ($Option_Array[1] == 'BY') { ?>
<label><input type="checkbox" name="book_download_email" checked="checked"/> Book Download Email</label>
<?php } else { ?>
<label><input type="checkbox" name="book_download_email" /> Book Download Email</label>
<?php } ?>
<?php if ($Option_Array[2] == 'CY') { ?>
<label><input type="checkbox" name="contact_form_email" checked="checked"/> Contact Form Email</label>
<?php } else { ?>
<label><input type="checkbox" name="contact_form_email"/> Contact Form Email</label>
<?php } ?>
<?php if ($Option_Array[3] == 'RY') { ?>
<label><input type="checkbox" name="robots_txt" checked="checked"/> Robots TXT File</label>
<?php } else { ?>
<label><input type="checkbox" name="robots_txt"/> Robots TXT File</label>
<?php } ?>
</td>
</tr>
<tr><td colspan="2"> </td></tr>
<tr>
<td colspan="2"><input type="button" value="Save" id="speak_api_submit"/></td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
</div>
<?php include 'about-authors.php'; ?>
</div>