function submit_profile_settings($username) { $fullname = $this->input->post('fullname'); $bio = $this->input->post('bio'); $website = $this->input->post('website'); $avatar = $this->input->post('avatar'); $message = $this->validate('profile', $username, '', '', $fullname, $bio, $website); if (!empty($message)) { $this->session->set_flashdata('message', $message); } else { if ($avatar !== '') { $avatardata = array('avatar' => $this->avatar($avatar, get_twitter($username, FALSE, FALSE), get_email($username))); manipulate_database('update', 'user', $avatardata, array('username' => $username)); } if ($website == 'http://') { $website = ''; } $data = array('fullname' => make_it_safe($fullname), 'bio' => make_it_safe($bio), 'website' => $website); manipulate_database('update', 'user', $data, array('username' => $username)); $this->session->set_flashdata('message', array('Awesome! Your profile settings had been saved.')); } }
?> " id="hiddenusername"/> <input type="hidden" value="<?php echo $fullname; ?> " id="hiddenfullname"/> <?php } if ($content_type == 'settings') { ?> <input type="hidden" value="<?php echo get_email($username); ?> " id="hiddenemail"/> <input type="hidden" value="<?php echo get_twitter($username, FALSE, FALSE); ?> " id="hiddentwitter"/> <?php } if (isset($userid)) { ?> <input type="hidden" value="<?php echo $userid; ?> " id="hiddenuserid"/> <?php } if (isset($quizid)) { ?> <input type="hidden" value="<?php
} else { if ($source === 'twitter') { if (require_all($data, array('auth', 'locations'))) { if ($_REQUEST['auth'] === $AUTH['twitter']) { // parse the request $locations = extract_values($_REQUEST['locations'], 'str'); if (require_any($data, array('dates', 'epiweeks'))) { if (isset($_REQUEST['dates'])) { $resolution = 'daily'; $dates = extract_values($_REQUEST['dates'], 'int'); } else { $resolution = 'weekly'; $dates = extract_values($_REQUEST['epiweeks'], 'int'); } // get the data $epidata = get_twitter($locations, $dates, $resolution); store_result($data, $epidata); } } else { $data['message'] = 'unauthenticated'; } } } else { if ($source === 'wiki') { if (require_all($data, array('articles'))) { // parse the request $articles = extract_values($_REQUEST['articles'], 'str'); if (require_any($data, array('dates', 'epiweeks'))) { if (isset($_REQUEST['dates'])) { $resolution = 'daily'; $dates = extract_values($_REQUEST['dates'], 'int');
?> <div class="left">URL</div> <div class="right"> <?php echo get_website($userid); ?> </div> <div class="clear"></div> <?php } if (get_twitter($userid, FALSE) != "") { ?> <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
function extract_items($site, $content) { switch ($site) { case 'flickr': //ok $items = get_flickr($content); break; case 'ffffound': //ok $items = get_ffffound($content); break; case 'dribbble': //ok $items = get_dribbble($content); break; case 'imgur': //ok $items = get_imgur($content); break; case 'picplz': //ok $items = get_picplz($content); break; case 'instagram': //ok $items = get_instagram($content); break; case 'delicious': //ok $items = get_delicious($content); break; case 'hn': //ok $items = get_delicious($content); break; case 'reddit': //ok $items = get_delicious($content); break; case 'pinboard': //ok $items = get_pinboard($content); break; case 'digg': //ok $items = get_digg($content); break; case 'youtube': //ok $items = get_youtube($content); break; case 'hulu': //ok $items = get_hulu($content); break; case 'yahoovideos': //ok $items = get_yahoovideos($content); break; case 'yahoobuzz': //ok $items = get_yahoobuzz($content); break; case 'googletrends': //ok $items = get_googletrends($content); break; case 'amazon': //ok $items = get_amazon($content); break; case 'itunes': //ok $items = get_itunes($content); break; case 'wearehunted': //ok $items = get_wearehunted($content); break; case 'twitter': //ok $items = get_twitter($content); break; case 'wordpress': //ok $items = get_delicious($content); break; } return $items; }