Esempio n. 1
0
<?php

/** no direct access **/
defined('_WPLEXEC') or die('Restricted access');
/** Import WordPress pluggable functions **/
_wp_import('wp-includes.pluggable');
/** Import WPL libraries **/
_wpl_import('libraries.items');
_wpl_import('libraries.flex');
/**
 * Users Library
 * @author Howard R <*****@*****.**>
 * @since WPL1.0.0
 * @package WPL
 * @date 03/01/2013
 */
class wpl_users
{
    /**
     * Returns plisting fields of profiles
     * @author Howard R <*****@*****.**>
     * @static
     * @param type $category
     * @param type $kind
     * @param type $enabled
     * @return type
     */
    public static function get_plisting_fields($category = '', $kind = 2, $enabled = 1)
    {
        return wpl_flex::get_fields($category, $enabled, $kind, 'plisting', '1');
    }
Esempio n. 2
0
 /**
  * Creates a hash of a plain text password
  * @author Chris <*****@*****.**>
  * @param int $iteration_count
  * @param string $key
  * @return string hashed key
  */
 public static function wpl_hasher($iteration_count, $key)
 {
     _wp_import('wp-includes.class-phpass');
     $wpl_hasher = new PasswordHash($iteration_count, true);
     return $wpl_hasher->HashPassword($key);
 }