Example #1
0
// handle request type
if (array_key_exists(APPLY_FOR_GROUP, $_GET)) {
    $request = json_decode($_GET[APPLY_FOR_GROUP]);
    $user->applyForGroup($request->user_email, $request->group_id);
} else {
    if (array_key_exists(CANCEL_GROUP_APPLICATION, $_GET)) {
        $request = json_decode($_GET[CANCEL_GROUP_APPLICATION]);
        $user->cancelGroupApplication($request->user_email, $request->group_id);
    } else {
        if (array_key_exists(GET_APPLIED_GROUPS, $_GET)) {
            $user->getAppliedGroups($_GET[GET_APPLIED_GROUPS]);
        } else {
            if (array_key_exists(GET_JOINED_GROUPS, $_GET)) {
                $user->getJoinedGroups($_GET[GET_JOINED_GROUPS]);
            } else {
                if (array_key_exists(GET_CREATED_GROUPS, $_GET)) {
                    $user->getCreatedGroups($_GET[GET_CREATED_GROUPS]);
                } else {
                    if (array_key_exists(LEAVE_GROUP, $_GET)) {
                        $request = json_decode($_GET[LEAVE_GROUP]);
                        $user->leaveGroup($request->user_email, $request->group_id);
                    } else {
                        if (array_key_exists(GET_USER_PROFILE, $_GET)) {
                            $user->getUserProfile($_GET[GET_USER_PROFILE]);
                        }
                    }
                }
            }
        }
    }
}
Example #2
0
$InvalidAttempts = 0;
//Temperory Code	SS 5-6-2013
$User_ChannelType = '';
//End
/* $insertLogin= "******";

if (!@ mysqli_query($insertLogin, $con)) 
{
	$msg="Admin Error Logging -: insertLogin ". mysqli_error();
	GOTO ErrorProcessing;
} */
$User_Id = $chkUser["User_Id"];
$User_Id = $chkUser["User_Id"];
$User_Type = $chkUser["User_Type"];
$User = new User();
$User->getUserProfile($User_Id);
if ($User->Error_Msg != '') {
    $msg = $User->Error_Msg;
    goto ErrorProcessing;
}
$User_Data = $User->User_Data;
$User_Id = $User_Data["User_Id"];
$_SESSION["User"] = clone $User;
$_SESSION["S"]["Authenticated"] = $Yes;
$_SESSION["S"]["LogInTime"] = $CurTime;
$_SESSION["S"][$User_Id]["Welcome"] = $Yes;
$s_id = session_id();
$_SESSION["V"]["S"] = $s_id;
$_SESSION["V"]["P"] = $User_PublicIP;
$_SESSION["V"]["I"] = $User_ProxyIP;
$_SESSION["V"]["C"] = $User_ChannelType;
	<div class="row">
		<div class="col-md-4 col-md-offset-4 col-lg-4 col-lg-offset-4">
			<h2>Archives</h2>
		</div>
		<div class="col-md-12 col-lg-12">
			<div class="row">
				<div class="col-lg-9">
					<div class="archive-list scrollable" data-height="500px">
						<ul class="list-unstyled">
					        @foreach ($show_questions as $q) 
							<?php 
$t_bants = Post::getTopBants($q->id);
if ($t_bants) {
    foreach ($t_bants as $top_bant) {
        if (is_numeric($top_bant->id)) {
            $user = User::getUserProfile($top_bant->user_id);
            $votes = Vote::getPostVotes($top_bant->id);
            $post_date = CDateTime::createFromTimeStamp(strtotime($top_bant->created_at));
            $display_post_date = $post_date->formatLocalized('%b %d, %Y');
            ?>
									<li>
									<div class="row">
										<div class="col-lg-3">
											<div class="avatar">
												<a href="#">
													<img src="{{ Avatar::display('default_avatar.jpg') }}" alt="...">
													<?php 
            echo '<span class="user-name">' . $user[0]->full_name . '</span>';
            echo '@' . $top_bant->username;
            echo '<div class="profile-info">';
            echo '<span class="address"><i class="fa fa-map-marker"></i>' . $user[0]->city . ', ' . $user[0]->state . '</span>';