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


PHP COMMONFUNC::IsMyRequest方法代码示例

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


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

示例1:

    case 'athlete':
        //AthleteID
        $UserID = $_SESSION['Athlete_id'];
        break;
    case 'coach':
        //HS Coach ID
        $UserID = $_SESSION['Coach_id'];
        break;
    case 'college':
        //College Coach ID
        $UserID = $_SESSION['College_Coach_id'];
        break;
}
if ($_REQUEST['mode'] == "del") {
    //Detect if requested rowID is user's
    $isMine = $func->IsMyRequest($_REQUEST['Id'], $UserID);
    $_REQUEST['msg'] = "Delete RowID: " . $_REQUEST['Id'] . " | IsMyRow: " . $isMine;
    if ($isMine == 1) {
        $delete_query_details = "delete from " . TBL_NETWORK . " where fldId='" . $_REQUEST['Id'] . "'";
        $delmsg = $db->query($delete_query_details);
        if (isset($delmsg)) {
            $_REQUEST['msg'] = "Network Request successfully deleted.";
        }
    }
    //end isMine test
}
if ($_REQUEST['mode'] == "active") {
    $Id = $_REQUEST['Id'];
    $active_query_details = "update " . TBL_NETWORK . " set fldStatus = 'Active' where fldId='" . $Id . "'";
    $activemsg = $db->query($active_query_details);
    if (isset($activemsg)) {
开发者ID:trungjc,项目名称:collegeprospectnetwork,代码行数:31,代码来源:Network-Requests.php

示例2:

    case 'athlete':
        $PageTitle = "My Athletes";
        $displayMessage = "You have not added any members to your network yet. <a href='athleteSearch_all.php?network_for=" . $network_for . "&mode=" . $ModeType . "'>Click here</a> to get started.";
        break;
    case 'coach':
        $PageTitle = "My HS/AAU Coach";
        $displayMessage = "You have not added any members to your network yet. <a href='ViewAllHsAau.php?network_for=" . $network_for . "&mode=" . $ModeType . "'>Click here</a> to get started.";
        break;
    case 'college':
        $PageTitle = "My College Coach";
        $displayMessage = "You have not added any members to your network yet. <a href='ViewCollegeCoach.php?network_for=" . $network_for . "&mode=" . $ModeType . "'>Click here</a> to get started.";
        break;
}
if ($mode_1 == "del") {
    //Detect if requested rowID is user's
    $isMine = $func->IsMyRequest($Id, $UserID);
    $_REQUEST['msg'] = "Delete RowID: " . $Id . " | IsMyRow: " . $isMine;
    if ($isMine == 1) {
        $delete_query_details = "delete from " . TBL_NETWORK . " where fldId='" . $Id . "'";
        $delmsg = $db->query($delete_query_details);
        if (isset($delmsg)) {
            $_REQUEST['msg'] = "Network Request successfully deleted.";
        }
    }
    //end isMine test
}
if ($mode_1 == "active") {
    $active_query_details = "update " . TBL_NETWORK . " set fldStatus = 'Active' where fldId='" . $Id . "'";
    $activemsg = $db->query($active_query_details);
    if (isset($activemsg)) {
        $_REQUEST['msg'] = "Network Request Aapproved. User has been sent a nofication.";
开发者ID:trungjc,项目名称:collegeprospectnetwork,代码行数:31,代码来源:my_network.php


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