Ejemplo n.º 1
0
function mimport($path)
{
    return MLoader::import($path);
}
Ejemplo n.º 2
0
MLoader::import('framework.factory');
MLoader::import('framework.error.exception');
/*
 * If the HTTP_HOST environment variable is set we assume a Web request and
 * thus we import the request library and most likely clean the request input.
 */
if (isset($_SERVER['HTTP_HOST'])) {
    MLoader::register('MRequest', MPATH_MIWI . '/framework/environment/request.php');
    // If an application flags it doesn't want this, adhere to that.
    if (!defined('_MREQUEST_NO_CLEAN') && (bool) ini_get('register_globals')) {
        //MRequest::clean();  // miwisoft ticket 110
    }
}
MLoader::import('framework.object.object');
MLoader::import('framework.text.text');
MLoader::import('framework.route.route');
// Register the library base path for CMS libraries.
MLoader::registerPrefix('M', MPATH_MIWI . '/framework');
// Define the Miwi version if not already defined.
if (!defined('MVERSION')) {
    $Mversion = new MVersion();
    define('MVERSION', $Mversion->getShortVersion());
}
mimport('framework.application.menu');
mimport('framework.environment.uri');
mimport('framework.utilities.utility');
mimport('framework.event.dispatcher');
mimport('framework.utilities.arrayhelper');
mimport('framework.access.access');
mimport('framework.user.user');
mimport('framework.document.document');
Ejemplo n.º 3
0
<?php

/*
* @package		Miwi Framework
* @copyright	Copyright (C) 2009-2014 Miwisoft, LLC. All rights reserved.
* @copyright	Copyright (C) 2005-2012 Open Source Matters, Inc. All rights reserved.
* @license		GNU General Public License version 2 or later
*/
defined('MIWI') or die('MIWI');
MLoader::import('framework.user.helper');
if (!function_exists('wp_get_current_user')) {
    require_once ABSPATH . 'wp-includes/pluggable.php';
}
class MUser extends MObject
{
    protected $isRoot = null;
    public $id = null;
    public $name = null;
    public $username = null;
    public $email = null;
    public $password = null;
    public $password_clear = '';
    public $usertype = null;
    public $block = null;
    public $sendEmail = null;
    public $registerDate = null;
    public $lastvisitDate = null;
    public $activation = null;
    public $params = null;
    public $groups = array();
    public $guest = null;