예제 #1
0
파일: index.php 프로젝트: huynp/Critical
 public function __construct()
 {
     // check if the plugin has been upgraded to a new major version and if so, run the installer
     if (!isset($_GET["release"])) {
         $crntMajorVersion = self::getPluginVersion();
         $lastMajorVersion = MM_OptionUtils::getOption(MM_OptionUtils::$OPTION_KEY_MAJOR_VERSION);
         if (!empty($lastMajorVersion) && version_compare($lastMajorVersion, $crntMajorVersion) < 0) {
             $this->install();
         }
     }
     if (class_exists("MM_MemberMouseService") && class_exists("MM_License")) {
         $license = new MM_License();
         if (strpos($_SERVER["PHP_SELF"], "plugins.php") === false) {
             MM_MemberMouseService::validateLicense($license);
         }
         if ($license->isValid()) {
             if (MM_MemberMouseService::hasPermission(MM_MemberMouseService::$FEATURE_PHP_INTERFACE)) {
                 require_once "includes/php_interface.php";
             }
         }
     }
     $this->addActions();
     $this->addFilters();
 }
예제 #2
0
파일: view.php 프로젝트: huynp/Critical
<?php

/**
 * 
 * MemberMouse(TM) (http://www.membermouse.com)
 * (c) MemberMouse, LLC. All rights reserved.
 */
MM_MemberMouseService::validateLicense(new MM_License());
$crntPage = MM_ModuleUtils::getPage();
$primaryTab = MM_ModuleUtils::getPrimaryTab();
$module = MM_ModuleUtils::getModule();
if (isset($_REQUEST[MM_Session::$PARAM_USER_ID])) {
    $user = new MM_User($_REQUEST[MM_Session::$PARAM_USER_ID]);
} else {
    $user = new MM_User();
}
$resourceUrl = MM_RESOURCES_URL;
if (MM_Utils::isSSL()) {
    $resourceUrl = preg_replace("/(http\\:)/", "https:", MM_RESOURCES_URL);
}
if (version_compare(get_bloginfo('version'), "3.8", ">=")) {
    ?>
<!-- override WordPress 3.8 styles -->
<style>
#wpwrap
{
	background-color: #fff;
}
.ui-widget 
{
	font-size:1em;