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;
}
示例#2
0
 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;
 }
示例#3
0
 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);
     }
 }
示例#4
0
文件: theme.php 项目: maesson/lyft
 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);
     }
 }
示例#5
0
 function empost($name, $do_stripslashes = true)
 {
     $value = emresolve($_POST, $name, false);
     return $do_stripslashes ? stripslashes_deep($value) : $value;
 }