<ul class="li-full-width"> <?php pb_my_notifications(pb_user()->user_id); ?> </ul>
?> " data-theme="purple"></span> <span class="transition-200 themeOption <?php if (pb_user()->theme == 'blue') { print 'active'; } ?> " data-theme="blue"></span> <span class="transition-200 themeOption <?php if (pb_user()->theme == 'darkblue') { print 'active'; } ?> " data-theme="darkblue"></span> <span class="transition-200 themeOption <?php if (pb_user()->theme == 'dark') { print 'active'; } ?> " data-theme="dark"></span> </div> <input type="submit" name="account_submit" class="btn btn-default" value="Save"> </div> </form> </div> <script> // Sets theme value and show the user a live preview $('body').on('click', '.themeOption', function(){ $('.themeOption.active').removeClass('active');
<?php header("Content-Type: application/json"); //Start User Session session_name('com_pccbay_user'); session_start(''); date_default_timezone_set('America/Chicago'); include 'commonFunctions.php'; print_r(pb_user());
$user_data = '[{"ID":"' . $user_id . '","username":"******","name":"' . $user['first_name'] . ' ' . $user['last_name'] . '","avatar":"' . $user['picture']['url'] . '","registered":"' . $today . '","permissions":"25","theme":"darkblue","interest":""}]'; $sql = pb_db("INSERT INTO pb_users (user_id, username, num_of_ratings, total_ratings, permissions, id_card_key, contact_info, user_data, steps)\n\t\t\tVALUES ('{$user_id}', '{$username}', '0', '0', '25', '', '{$contact_info}', '{$user_data}', '')"); if ($sql) { $_SESSION['user_id'] = $user_id; header('Location: ' . $_GET['redirect_on_login']); } else { print 'No sql'; } } else { $_SESSION['user_id'] = $user_id->user_id; $user_id = $user_id->user_id; $contact_info = array(); array_push($contact_info, array("resident" => pb_user()->resident, "building" => pb_user()->building, "room" => pb_user()->room, "phone" => pb_user()->phone, "email" => $user['email'], "notify_d" => pb_user()->notify_d, "notify_m" => pb_user()->notify_m)); $contact_info = json_encode($contact_info); $user_data = array(); array_push($user_data, array("ID" => $user_id, "username" => pb_user()->username, "name" => $user['first_name'] . ' ' . $user['last_name'], "avatar" => $user['picture']['url'], "registered" => pb_user()->registered, "permissions" => pb_user()->permissions, "theme" => pb_user()->theme, "interest" => pb_user()->interest)); $user_data = json_encode($user_data); pb_db("UPDATE pb_users SET contact_info='{$contact_info}', user_data='{$user_data}' WHERE user_id='{$user_id}'"); header('Location: ' . $_GET['redirect_on_login']); } } else { print 'No user'; } } catch (Facebook\Exceptions\FacebookResponseException $e) { // When Graph returns an error echo 'Graph returned an error: ' . $e->getMessage(); exit; } catch (Facebook\Exceptions\FacebookSDKException $e) { // When validation fails or other local issues echo 'Facebook SDK returned an error: ' . $e->getMessage(); exit;
function pb_delete_this() { if (isset($_GET['edit'])) { if (pb_is_mine('pb_post', $_GET['id'], 'product_id', pb_user()->user_id)) { print '<a href="/graph/edit.php?id=' . $_GET['id'] . '&action=delete" style="float: left;margin: 5px;color: #e74c3c">Permanently delete this item </a>'; } } }
<!-- <span style="font-size: 14px;" class="pb-theme-black"><?php print $pb_user['registered']; ?> </span> --> </h3> <?php print '<strong><i class="zmdi zmdi-home"></i> ' . $home . '</strong><br />' . pb_user()->phone . '<br />' . pb_user()->email . ''; ?> <hr /> </div> <div class="pb-sidebar-overflow" style="padding-bottom: 20px;"> <?php $user_feed = pb_switch(json_decode(pb_og('feed', pb_user()->user_id))); if (!is_array($user_feed)) { foreach ($user_feed as $post) { if ($post->status == 'open' || $post->status == 1) { if ($post->type == 'product') { ?> <a href="/item?id=<?php print $post->id; ?> "> <div class="col-md-12 pb-post pb-rule-below-thick"> <div class="pb-post-block"> <div class="pb-post-content"> <?php if (!empty($post->images->featured) && pb_is_image($post->images->featured)) { print '<img src="' . $post->images->featured . '" class="pb-post-product lazy">';
<?php if (pb_is_allowed(50)) { ?> <li> <a href="/admin/pb/tasks" class="pb-admin-link"><i class="icon zmdi zmdi-assignment"></i> Tasks <div class="pb-nav-bub">3</div></a> </li><?php } ?> <?php if (pb_is_allowed(50)) { ?> <li> <a href="/admin/pb/feedback" class="pb-admin-link"><i class="icon zmdi zmdi-mood"></i> Feedback</a> </li><?php } ?> </ul> <ul class="nav nav-right"> <li> <a href="#" class="pb-admin-link"> <?php print '<img src="' . pb_user()->avatar . '" />'; print pb_user()->name; ?> </a> </li> </ul> </div> <?php } }
pb_ad(["style" => "width:130px;margin:0px 5px", "id" => "paid", "caption" => false, "type" => "square"], 1, 'item_gallery'); pb_ad(["style" => "width:130px;margin:0px 5px", "id" => "free", "caption" => false, "type" => "square"], 3, 'item_gallery'); } ?> </div> </div> <div class="pb-item-info col-md-4"> <div class="pb-item-box"> <div class="col-md-12"> <h2 style="margin:0px"><?php print $pi->title; ?> </h2> <span>From: <b><?php print pb_user('object', $product['user_id'])->name; ?> </b></span> </div> <div class="col-md-12"> <div class="pb-full-rule"></div> <p><?php print $pi->desc; ?> </p> <a href="<?php echo pb_addtocart($product_id);