Ejemplo n.º 1
0
        echo '<input type="checkbox" name="network" value="twitter"  ' . ($userSettings->isDefaultTwitter() ? "checked" : null) . '/>';
        $url = $userSettings->getTwitterProfileImageUrl();
        if (!empty($url)) {
            echo '<img src="' . $url . '" height="25px" width="25px"  />';
        }
    } else {
        echo '<a href="goauthorizetwitter.php" >Authorize Twitter</a>';
    }
    ?>
   
   <br />
   FourSquare:
   <?php 
    if ($userSettings->hasFoursquare()) {
        echo '<input type="checkbox" name="network" value="foursquare" ' . ($userSettings->isDefaultFoursquare() ? "checked" : null) . '/>';
        $url = $userSettings->getFoursquareProfileImageUrl();
        if (!empty($url)) {
            echo '<img src="' . $url . '" height="25px" width="25px"/>';
        }
    } else {
        echo '<a href="goauthorizefoursquare.php?query=fbauthorize" >Authorize Foursquare</a>';
    }
    ?>
   
   <br />
   </div>
<input type="submit" value="Submit" />
<input type="hidden" value="<?php 
    echo $userID;
    ?>
" name="createdbyuserid" />
Ejemplo n.º 2
0
    header("location: " . Config::getErrorPage() . "/" . "user_not_found");
    exit;
}
echo '<form name="input" action="' . $_SERVER['PHP_SELF'] . '" method="POST">';
echo '<div id="personal">';
echo "<h2>User {$userName} - you have ID of {$userID}</h2>";
echo 'First Name: <input type="textbox" name="bsfirstname" value="' . $userSettings->getFirstName() . '" />';
echo 'Last Name: <input type="textbox" name="bslastname" value="' . $userSettings->getLastName() . '" />';
echo 'Email: <input type="textbox" name="bsemail" value="' . $userSettings->getEmail() . '" />';
echo '<input type="submit" name="bsupdateuser" value="Update" />';
echo "</div></br>";
echo "</form>";
echo '<div id="socialnetwork">';
echo "<h3>Facebook:";
echo 'ID: <input type="textbox" name="facebookid" value="' . $userSettings->getFacebookUserID() . '" />';
echo '<input type="textbox" name="facebookoauthtoken" value="' . $userSettings->getFacebookOAuthToken() . '" />';
echo '<input type="textbox" name="facebookoauthtokensecret" value="' . $userSettings->getFacebookOAuthTokenSecret() . '" />';
echo 'Image URL: <input type="textbox" name="facebookimageurl" value="' . $userSettings->getFacebookProfileImageUrl() . '"/></h3>';
echo '<h3>Twitter:';
echo 'ID: <input type="textbox" name="twitterid" value="' . $userSettings->getTwitterUserID() . '" />';
echo '<input type="textbox" name="twitteroauthtoken" value="' . $userSettings->getTwitterOAuthToken() . '" />';
echo '<input type="textbox" name="twitteroauthtokensecret" value="' . $userSettings->getTwitterOAuthTokenSecret() . '" /';
echo 'Image Url: <input type="textbox" name="twittermageurl" value="' . $userSettings->getTwitterProfileImageUrl() . '" /></h3>';
echo '<h3>FourSquare:';
echo 'ID: <input type="textbox" name="foursquareid" value="' . $userSettings->getFoursquareUserID() . '" />';
echo '<input type="textbox" name="foursquareoauthtoken" value="' . $userSettings->getFoursquareOAuthToken() . '" />';
echo '<input type="textbox" name="foursquareoauthtokensecret" value="' . $userSettings->getFoursquareOAuthTokenSecret() . '" />';
echo 'Image Url: <input type="textbox" name="foursquareimageurl" value="' . $userSettings->getFoursquareProfileImageUrl() . '" /></h3>';
echo "</div></br>";
include 'gofooter.php';
ob_end_flush();