コード例 #1
0
ファイル: litle_config.html.php プロジェクト: huynp/Critical
<div id="litle-test-info" style="margin-bottom:10px; margin-left:10px;">
	<div style="margin-bottom:5px;">
		<?php 
echo MM_Utils::getIcon('credit-card', 'blue', '1.3em', '1px', "Test Credit Card Numbers", "margin-right:3px;");
?>
 
		<a href="javascript:showLitleTestCardNumbers()">Test Credit Card Numbers</a>
	</div>
	<div>
		<?php 
echo MM_Utils::getIcon('flask', 'blue', '1.3em', '1px', 'Setup Test Data', "margin-right:3px;");
?>
 
		<a href="<?php 
echo MM_ModuleUtils::getUrl(MM_ModuleUtils::getPage(), MM_MODULE_TEST_DATA);
?>
" target="_blank">Configure Test Data</a>
	</div>
</div>

<div id="litle-credentials-section">
<div style="margin-bottom:10px;">
	<span>Merchant ID</span>
	
	<p style="margin-left:10px; font-family:courier; font-size:11px;">
		<input type='text' value='<?php 
echo $p->getPreLiveMerchantId();
?>
' id='litle_prelive_merchant_id' name='payment_service[litle][prelive_merchant_id]' style='width: 275px;' />
	</p>
コード例 #2
0
ファイル: class.userhooks.php プロジェクト: huynp/Critical
 public function checkEmployeeAccess()
 {
     global $current_user;
     // determine is current employee has access to the current page
     if (class_exists("MM_Employee")) {
         $employee = MM_Employee::findByUserId($current_user->ID);
         if ($employee->isValid()) {
             $crntPage = MM_ModuleUtils::getPage();
             $crntModule = MM_ModuleUtils::getModule();
             if (empty($crntModule)) {
                 $crntModule = $crntPage;
             }
             if (MM_ModuleUtils::isMemberMousePage($crntPage) && !$employee->hasPermission(array("module" => $crntModule))) {
                 wp_redirect(MM_ModuleUtils::getUrl("mm_access_denied"));
                 exit;
             }
             return true;
         } else {
             return false;
         }
     } else {
         return false;
     }
 }
コード例 #3
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;
コード例 #4
0
ファイル: index.php プロジェクト: huynp/Critical
 public function buildAdminMenu()
 {
     if (!isset($_GET[MM_Session::$PARAM_COMMAND_DEACTIVATE])) {
         global $current_user;
         $crntModule = MM_ModuleUtils::getPage();
         if ($crntModule == MM_MODULE_GENERAL_SETTINGS) {
             add_thickbox();
         }
         if (class_exists("MM_Employee")) {
             $employee = MM_Employee::findByUserId($current_user->ID);
             $employee->buildMenu();
         }
     }
 }