function popmake_get_license($key = null) { $license = popmake_get_option(POPMAKE_SLUG . '-license'); if (!$license) { $license = array('valid' => false, 'key' => '', 'status' => array('code' => null, 'message' => null, 'expires' => null, 'domains' => null)); popmake_update_option(POPMAKE_SLUG . '-license', $license); } return $license && $key ? emresolve($license, $key) : $license; }
function emodal_get_license($key = NULL) { $license = emodal_get_option(EMCORE_SLUG . '-license'); if (!$license) { $license = array('valid' => false, 'key' => '', 'status' => array('code' => NULL, 'message' => NULL, 'expires' => NULL, 'domains' => NULL)); emodal_update_option(EMCORE_SLUG . '-license', $license); } return $license && $key ? emresolve($license, $key) : $license; }
function get_current_modal($key = null) { global $current_modal; if (!$key) { return $current_modal; } else { $values = $current_modal->as_array(); return emresolve($values, $key, false); } }
function get_current_modal_theme($key = NULL) { global $current_theme; if (!$key) { return $current_theme; } else { $values = $current_theme->as_array(); return emresolve($values, $key, false); } }
function empost($name, $do_stripslashes = true) { $value = emresolve($_POST, $name, false); return $do_stripslashes ? stripslashes_deep($value) : $value; }