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


PHP getUserStatus函数代码示例

本文整理汇总了PHP中getUserStatus函数的典型用法代码示例。如果您正苦于以下问题:PHP getUserStatus函数的具体用法?PHP getUserStatus怎么用?PHP getUserStatus使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: isUserAdmin

function isUserAdmin($username)
{
    $userStatus = getUserStatus($username);
    if (isset($userStatus)) {
        if ($userStatus == "ADMIN USER") {
            return true;
        } else {
            if ($userStatus == "NORMAL USER") {
                return false;
            }
        }
    } else {
        return null;
    }
}
开发者ID:smtsampath,项目名称:Online-Business-System,代码行数:15,代码来源:util.php

示例2: editUserData

function editUserData()
{
    $id = intval($_POST['id']);
    if ($id == 0) {
        die("error");
    }
    $origin = intval($_POST['origin']);
    $status = intval($_POST['status']);
    $getmail = $_POST['getmail'] === "true" ? 1 : 0;
    if (isset($_SESSION['superadmin']) || isset($_SESSION['admin']) && getUserStatus($id) < 2 && $status < 2) {
        echo editUser($id, $origin, $status, $_POST['username'], $_POST['password'], $_POST['email'], $_POST['fullname'], $getmail);
    } else {
        die("error");
    }
}
开发者ID:JannoEsko,项目名称:ServerPanel-2,代码行数:15,代码来源:ajax.php

示例3: getMaxFieldLength

        ?>
</td>
              <td class="left"><?php 
        echo getMaxFieldLength($row['EmailAddress'], 40);
        ?>
</td>
              <td class="left"><?php 
        echo getDateDisplay($row['CreatedDate']);
        ?>
</td>
			  <!--td class="center">07/06/2010</td-->
              <td class="center" id="status<?php 
        echo $row['EventAdminICode'];
        ?>
"><?php 
        echo getUserStatus($row['IsActive'], 'event_admin_master', $row['EventAdminICode'], 'user', 'EventAdminICode');
        ?>
</td>
			  
              <td class="center"><a href="<?php 
        echo base_url();
        ?>
admin/user/editeventadmin/<?php 
        echo $row['EventAdminICode'];
        ?>
/"><img src="<?php 
        echo base_url();
        ?>
images/edit.png" border="0" width="16" height="16" alt="Edit Event Admin" title="Edit Event Admin"/></a>&nbsp;&nbsp;&nbsp;&nbsp;
			  <img src="<?php 
        echo base_url();
开发者ID:nagbaba,项目名称:poledance,代码行数:31,代码来源:manageeventadmin.php

示例4: getMaxFieldLength

        ?>
</td>
              <td class="left"><?php 
        echo getMaxFieldLength($row['EmailAddress'], 38);
        ?>
</td>
              <td class="left"><?php 
        echo getDateDisplay($row['CreatedDate']);
        ?>
</td>
			  <!--td class="center">07/06/2010</td-->
              <td class="center" id="status<?php 
        echo $row['JudgesICode'];
        ?>
"><?php 
        echo getUserStatus($row['IsActive'], 'judges_master', $row['JudgesICode'], 'Judge', 'JudgesICode');
        ?>
</td>
			  
              <td class="center"><a href="<?php 
        echo base_url();
        ?>
admin/user/editjudges/<?php 
        echo $row['JudgesICode'];
        ?>
/"><img src="<?php 
        echo base_url();
        ?>
images/edit.png" border="0" width="16" height="16" alt="Edit Judge" title="Edit Judge"/></a>&nbsp;&nbsp;&nbsp;&nbsp;
			  <img src="<?php 
        echo base_url();
开发者ID:nagbaba,项目名称:poledance,代码行数:31,代码来源:managejudges.php

示例5: getMaxFieldLength

        echo getMaxFieldLength(ucwords($row['CompetitionName']), 25);
        ?>
</td>
              <td class="left"><?php 
        echo getDateDisplay($row['CompetitionDate']);
        ?>
</td>
              <td class="left"><?php 
        echo getDateDisplay($row['CreatedDate']);
        ?>
</td>
			  <td class="center" id="status<?php 
        echo $row['CompetitionICode'];
        ?>
"><?php 
        echo getUserStatus($row['IsActive'], 'competition_master', $row['CompetitionICode'], 'competition', 'CompetitionICode');
        ?>
</td>
			  <td class="center">
              <?php 
        if ($row['IsCompleted'] == 1) {
            ?>
               <a href="<?php 
            echo base_url();
            ?>
admin/user/editcompetition/<?php 
            echo $row['CompetitionICode'];
            ?>
/"><img src="<?php 
            echo base_url();
            ?>
开发者ID:nagbaba,项目名称:poledance,代码行数:31,代码来源:managecompetition.php

示例6: header

<?php

header('Content-type: application/json');
chdir("..");
chdir("database");
require_once "users.php";
if (isset($_GET["email"]) and isset($_GET["password"]) and userExists((string) $_GET["email"]) and getUserStatus((string) $_GET["email"]) == "active") {
    $email = (string) $_GET["email"];
    $password = (string) $_GET["password"];
    if (checkUserLogin($email, $password)) {
        echo json_encode(array("result" => "ok"));
    } else {
        echo json_encode(array("result" => "invalidLogin"));
    }
} else {
    echo json_encode(array("result" => "missingParams"));
}
开发者ID:hsdrose,项目名称:feup-sdis-budibox,代码行数:17,代码来源:login.php

示例7: getMaxFieldLength

        $SectionName = $this->home->getSingleFieldValue('section_master', 'SectionName', $SingleWhere);
        ?>
                <tr class="gradeC">
                  <td class="left"><?php 
        echo getMaxFieldLength(ucwords($SectionName), 22);
        ?>
</td>
                  <td class="left"><?php 
        echo $row['TotalPercentage'];
        ?>
</td>
				  <!--td class="center" id="status<?php 
        echo $row['CompetitonResultAnalysisICode'];
        ?>
"><?php 
        echo getUserStatus($row['IsActive'], 'competitionresult_analysis', $row['CompetitonResultAnalysisICode'], 'section', 'CompetitonResultAnalysisICode');
        ?>
</td-->
                  <td class="center"><img src="<?php 
        echo base_url();
        ?>
images/delete.png" border="0" width="16" height="16" alt="Delete" title="Delete" style="cursor:pointer;" onclick="deleteResultConfig('<?php 
        echo $row['CompetitonResultAnalysisICode'];
        ?>
','<?php 
        echo $row['ChampionshipICode'];
        ?>
','<?php 
        echo $row['DivisionICode'];
        ?>
');"/> </td>
开发者ID:nagbaba,项目名称:poledance,代码行数:31,代码来源:editresultconfiguration.php

示例8: getStatus

function getStatus()
{
    global $response;
    global $userid;
    global $status;
    global $startOffline;
    global $processFurther;
    $sql = getUserStatus($userid);
    $query = mysql_query($sql);
    if (defined('DEV_MODE') && DEV_MODE == '1') {
        echo mysql_error();
    }
    $chat = mysql_fetch_array($query);
    if (!empty($_REQUEST['callbackfn'])) {
        $_SESSION['cometchat']['startoffline'] = 1;
    }
    if ($startOffline == 1 && empty($_SESSION['cometchat']['startoffline'])) {
        $_SESSION['cometchat']['startoffline'] = 1;
        $chat['status'] = 'offline';
        setStatus('offline');
        $_SESSION['cometchat']['cometchat_sessionvars']['buddylist'] = 0;
        $processFurther = 0;
    } else {
        if (empty($chat['status'])) {
            $chat['status'] = 'available';
        } else {
            if ($chat['status'] == 'away') {
                $chat['status'] = 'available';
                setStatus('available');
            }
            if ($chat['status'] == 'offline') {
                $processFurther = 0;
                $_SESSION['cometchat']['cometchat_sessionvars']['buddylist'] = 0;
            }
        }
    }
    if (empty($chat['message'])) {
        $chat['message'] = $status[$chat['status']];
    }
    $chat['message'] = html_entity_decode($chat['message']);
    if ($userid > 10000000) {
        $sql = "select name from cometchat_guests where id='" . $userid . "'";
        $query = mysql_query($sql);
        if (defined('DEV_MODE') && DEV_MODE == '1') {
            echo mysql_error();
        }
        $guestname = mysql_fetch_array($query);
        $guestname = $guestname['name'];
        if (function_exists('processName')) {
            $guestname = processName($guestname);
        }
        $s = array('userid' => $userid, 'message' => $chat['message'], 'status' => $chat['status'], 'guestname' => $guestname);
    } else {
        $s = array('userid' => $userid, 'message' => $chat['message'], 'status' => $chat['status']);
    }
    $response['userstatus'] = $s;
}
开发者ID:quachvancam,项目名称:sugardating,代码行数:57,代码来源:cometchat_receive.php

示例9: getMaxFieldLength

        ?>
		<tr class="gradeC">
			<td class="left"><?php 
        echo getMaxFieldLength(ucwords($row['DivisionName']), 45);
        ?>
</td>
              <td class="center"><?php 
        echo getDateDisplay($row['CreatedDate']);
        ?>
</td>
			  <!--td class="center">07/06/2010</td-->
              <td class="center" id="status<?php 
        echo $row['DivisionICode'];
        ?>
"><?php 
        echo getUserStatus($row['IsActive'], 'division_master', $row['DivisionICode'], 'division', 'DivisionICode');
        ?>
</td>
			  
              <td class="center">
			  <!--<img src="<?php 
        echo base_url();
        ?>
images/add_image.png" onclick="openfaceboxfordivision('addsection', '<?php 
        echo $row['DivisionICode'];
        ?>
')" border="0" width="16" height="16" alt="Add Section" title="Add Section" style="cursor:pointer;"/>
			  &nbsp;&nbsp;&nbsp;&nbsp;--><img src="<?php 
        echo base_url();
        ?>
images/edit.png" onclick="openfaceboxfordivision('editdiv', '<?php 
开发者ID:nagbaba,项目名称:poledance,代码行数:31,代码来源:managedivision.php

示例10: doLoginProcess

function doLoginProcess()
{
    $JSONData = json_decode(file_get_contents('php://input'));
    $userFBID = $JSONData->user_fb_id;
    $userEmail = $JSONData->user_email;
    $userName = $JSONData->name;
    $lang = $JSONData->lang;
    $isUserAlreadyRegistered = getUserStatus($userFBID);
    if ($isUserAlreadyRegistered == true) {
        // checks if user already exists or not.
        if ($userFBID != "") {
            getUserDetailsAndSendToApp($userFBID);
        }
    } else {
        // if user not exists , to create new user profile breakers,breaks table
        if ($userFBID != "" && $userEmail != "" && $userName != "") {
            createNewUserProfile($userFBID, $userEmail, $userName, $lang);
        }
    }
}
开发者ID:dilvinriyo,项目名称:dilvinriyo-com,代码行数:20,代码来源:pr_app.php

示例11: getMaxFieldLength

</td>
              <td class="left"><?php 
        echo getMaxFieldLength($row['EmailAddress'], 40);
        ?>
</td>
              
              <td class="left"><?php 
        echo getDateDisplay($row['CreatedDate']);
        ?>
</td>
			  <!--td class="center">07/06/2010</td-->
              <td class="center" id="status<?php 
        echo $row['CompetitorICode'];
        ?>
"><?php 
        echo getUserStatus($row['IsActive'], 'competitor_master', $row['CompetitorICode'], 'Competitor', 'CompetitorICode');
        ?>
</td>
			  <td class="center"><a href="<?php 
        echo base_url();
        ?>
admin/user/editcompetitor/<?php 
        echo $row['CompetitorICode'];
        ?>
/"><img src="<?php 
        echo base_url();
        ?>
images/edit.png" border="0" width="16" height="16" alt="Edit Competitor" title="Edit Competitor"/></a>
			  <img src="<?php 
        echo base_url();
        ?>
开发者ID:nagbaba,项目名称:poledance,代码行数:31,代码来源:managecompetitor.php

示例12: substr

        ?>
</td>
              <td class="left"><?php 
        echo substr($row['EmailAddress'], 0, 30);
        ?>
</td>
              <td class="center"><?php 
        echo getDateDisplay($row['CreatedDate']);
        ?>
</td>
			  <!--td class="center">07/06/2010</td-->
              <td class="center" id="status<?php 
        echo $row['UserICode'];
        ?>
"><?php 
        echo getUserStatus($row['IsActive'], 'user_master', $row['UserICode'], 'user', 'UserICode');
        ?>
</td>
			  
              <td class="center"><a href="<?php 
        echo base_url();
        ?>
admin/user/edituser/<?php 
        echo $row['UserICode'];
        ?>
/"><img src="<?php 
        echo base_url();
        ?>
images/edit.png" border="0" width="16" height="16" alt="Edit User" title="Edit User"/></a>&nbsp;&nbsp;&nbsp;&nbsp;
			  <img src="<?php 
        echo base_url();
开发者ID:nagbaba,项目名称:poledance,代码行数:31,代码来源:manageevent.php

示例13:

			getHospitalLegaleseTimestamps("1");

		case '1.9.5':
			reportPerson($personXML, $eventShortname, $xmlFormat, $user, $pass);
			createPersonUuid($user, $pass);
			createPersonUuidBatch($number, $user, $pass);
			createNoteUuid($user, $pass);
			createNoteUuidBatch($number, $user, $pass);
			search("test", "t");
			searchWithAuth("test", "t", $user, $pass);
			getSessionTimeout();
			registerUser("testCaseUser", "testCase@email.com", "testPassword99", "testCaseGiven", "testCaseFamily");
			changeUserPassword($user, $pass, $pass);
			forgotUsername($email);
			checkUserAuth($user, $pass);
			getUserStatus($user);
			getUserGroup($user);
			getEventList();
			getEventListUser($user, $pass);
			getGroupList();
			getHospitalList();
			getHospitalData("1");
			getHospitalPolicy("1");
	}
	echo "</table><b>Note: deprecated functions are not listed/tested.</b></body>";
}




开发者ID:bobrock,项目名称:vesuvius,代码行数:26,代码来源:unitTest.php

示例14: getMaxFieldLength

        $SectionName = $this->home->getSingleFieldValue('section_master', 'SectionName', $SingleWhere);
        ?>
                <tr class="gradeC">
                  <td class="left"><?php 
        echo getMaxFieldLength(ucwords($SectionName), 22);
        ?>
</td>
                  <td class="left"><?php 
        echo $row['PercentageValue'];
        ?>
</td>
				  <!--td class="center" id="status<?php 
        echo $row['TempResultConfigICode'];
        ?>
"><?php 
        echo getUserStatus($row['IsActive'], 'temp_resultconfig', $row['TempResultConfigICode'], 'section', 'TempResultConfigICode');
        ?>
</td-->
                  <td class="center"><img src="<?php 
        echo base_url();
        ?>
images/delete.png" border="0" width="16" height="16" alt="Delete" title="Delete" style="cursor:pointer;" onclick="deleteResultConfig('<?php 
        echo $row['TempResultConfigICode'];
        ?>
');"/> </td>
                </tr>
                <?php 
    }
}
?>
              </tbody>
开发者ID:nagbaba,项目名称:poledance,代码行数:31,代码来源:addresultconfiguration.php

示例15: fopen

     $rHandle = fopen($sFileName, "rt");
     $sContents = fread($rHandle, filesize($sFileName));
     fclose($rHandle);
     $sContents = str_replace("#music#", getUserMusicLink(), $sContents);
     $sContents = str_replace("#video#", getUserVideoLink(), $sContents);
     $sContents = str_replace("#im#", getUserImLink($sId), $sContents);
     $sContents = str_replace("#chat#", getUserChatLink($sId), $sContents);
     $sContents = str_replace("#siteUrl#", $sRootURL, $sContents);
     $sContents = str_replace("#xmlUrl#", $sRayXmlUrl, $sContents);
     $sContents = str_replace("#desktopUrl#", $sModulesUrl . $sModule . "/", $sContents);
     break;
 case 'userAuthorize':
     $sResult = loginUser($sId, $sPassword);
     $sContents = parseXml($aXmlTemplates['result'], $sResult == TRUE_VAL ? TRUE_VAL : "msgUserAuthenticationFailure");
     if ($sResult == TRUE_VAL) {
         $sContents .= parseXml($aXmlTemplates['status'], getUserStatus($sId));
         $sContents .= getAvailableStatuses();
         saveUsers(array('online' => array(), 'offline' => array()));
     }
     break;
 case 'login':
     $sContents = parseXml($aXmlTemplates['result'], "msgUserAuthenticationFailure", FAILED_VAL);
     $sId = getIdByNick($sNick);
     $sPassword = encryptPassword($sId, $sPassword);
     if (loginUser($sNick, $sPassword, true) == TRUE_VAL) {
         $aUserInfo = getUserInfo($sId);
         login($sId, $sPassword);
         $sContents = parseXml($aXmlTemplates['result'], $sId, SUCCESS_VAL, $sPassword);
     }
     break;
 case 'logout':
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:31,代码来源:actions.inc.php


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