} else { $login = site_url() . 'login'; header("location: {$login}"); } }); // The author page get('/admin/mine', function () { if (login()) { config('views.root', 'system/admin/views'); $profile = $_SESSION[config("site.url")]['user']; $page = from($_GET, 'page'); $page = $page ? (int) $page : 1; $perpage = config('profile.perpage'); $posts = get_profile($profile, $page, $perpage); $total = get_count($profile, 'dirname'); $bio = get_bio($profile); if (isset($bio[0])) { $bio = $bio[0]; } else { $bio = default_profile($profile); } if (empty($posts) || $page < 1) { render('user-posts', array('head_contents' => head_contents('My blog posts - ' . blog_title(), blog_description(), site_url()), 'page' => $page, 'heading' => 'My posts', 'posts' => null, 'bio' => $bio->body, 'name' => $bio->title, 'bodyclass' => 'userposts', 'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Profile for: ' . $bio->title, 'pagination' => has_pagination($total, $perpage, $page))); die; } render('user-posts', array('head_contents' => head_contents('My blog posts - ' . blog_title(), blog_description(), site_url()), 'heading' => 'My posts', 'page' => $page, 'posts' => $posts, 'bio' => $bio->body, 'name' => $bio->title, 'bodyclass' => 'userposts', 'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Profile for: ' . $bio->title, 'pagination' => has_pagination($total, $perpage, $page))); } else { $login = site_url() . 'login'; header("location: {$login}"); } });
if (get_avatar($username, '', FALSE, TRUE) == 'twavatar') { echo " checked"; } ?> > <label for="avatarfield_t">Get Your Twitter Avatar</label> </div> <div class="clear"></div> </div> <?php } else { ?> <div class="right"> <?php if ($id == 1 && $setting_type == 'profile') { $bio = get_bio($username, FALSE, FALSE); ?> <textarea class="input bioinput" rows="5" id="biofield" name="bio"><?php echo $bio; ?> </textarea> <?php } elseif ($id == 3 && $setting_type == 'account' || $setting_type == 'twitter') { if ($setting_type == 'twitter') { if ($twitter_status['status'] != 2) { ?> <a href="/connect"> <img src="/extras/sign-in-with-twitter.png" /> </a> <?php } else {
?> <div class="left">Twitter</div> <div class="right"> <?php echo get_twitter($userid); ?> </div> <div class="clear"></div> <?php } if (get_bio($userid, FALSE) != "") { ?> <div class="left">Bio</div> <div class="right bio"> <?php echo get_bio($userid, FALSE, FALSE); ?> </div> <div class="clear"></div> <?php } ?> </div> <div class="bottom"></div> </div> <div class="sidebar"> <div class="top"></div> <div class="title first" title="Earn 'Promotion Ambassador' badge if 3 friends sign up!">Invite friends</div> <div class="share_panel"> <a href="http://twitter.com/?status=I think @OneExtraLap is a really fun and addictive social quzzing community. Sign up now! <?php echo base_url() . 'refer/' . $username;