当前位置: 首页>>代码示例>>PHP>>正文


PHP permissions::verify方法代码示例

本文整理汇总了PHP中permissions::verify方法的典型用法代码示例。如果您正苦于以下问题:PHP permissions::verify方法的具体用法?PHP permissions::verify怎么用?PHP permissions::verify使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在permissions的用法示例。


在下文中一共展示了permissions::verify方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: checkUserDat

function checkUserDat()
{
    global $returnedDBdata;
    if (!empty($_GET['Char']) && !empty($_GET['Server'])) {
        // First run check for currently searched character
        $charTOfetch = $_GET['Char'];
        $fromWHATserver = $_GET['Server'];
        // Lookup character in local DB
        $resp = roster_db::lookup($charTOfetch, $fromWHATserver);
        $returnedDBdata = $resp->lookupData;
        // If <is || not> in local DB
        if ($resp->count == 1) {
            viewChar($charTOfetch, $fromWHATserver);
        } else {
            permissions::verify($functWanted = 'fetchCharDat', $functElse = 'recentlySyncd', $rankWanted = '0');
        }
    } else {
        // Else if no get data to use
        nochar();
    }
}
开发者ID:TheDoxMedia,项目名称:pgs,代码行数:21,代码来源:wowchar.php

示例2: raidOverview

								var parent = element.parentNode;
								parent.className = parent.className.replace(/\\bloading\\b/,"");
							}, 200);
						}
					});
				</script>
		';
    } else {
        echo 'Invalid Raid';
    }
}
//End of display functions
//
//
//Nav commands
if (isset($_GET['raid'])) {
    raidOverview();
} elseif (isset($_POST['mediaType'])) {
    permissions::verify($functWanted = 'mediaUpload', $functElse = 'generalView', $rankWanted = '1');
} elseif (isset($_GET['reviewmedia'])) {
    permissions::verify($functWanted = 'reviewmedia', $functElse = 'generalView', $rankWanted = '5');
} elseif (isset($_GET['approvemedia'])) {
    permissions::verify($functWanted = 'approveMedia', $functElse = 'generalView', $rankWanted = '5');
} elseif (isset($_GET['delmedia'])) {
    permissions::verify($functWanted = 'delMedia', $functElse = 'generalView', $rankWanted = '5');
} else {
    generalView();
}
//End of nav commands
//Footer section
require 'inc/footer.php';
开发者ID:TheDoxMedia,项目名称:pgs,代码行数:31,代码来源:progress.php


注:本文中的permissions::verify方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。