* Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. ******************************************************************************/ $ringside = new RingsideApiClients(RingsideSocialConfig::$apiKey, RingsideSocialConfig::$secretKey); $ringside->setLocalClient(true); $uid = $ringside->require_login(); if (!isset($uid)) { return; } require_once "header.inc"; $appsCount = 0; $appProps = DeveloperAppUtils::getAppsForUser($uid); error_log(var_export($appProps, true)); $appListHtml = "<i>No developer apps added.</i>"; if (count($appProps) > 0) { $appListHtml = ""; $appListHtml .= "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" id=\"apps-list\">"; foreach ($appProps as $app) { $name = $app["application_name"]; $appId = $app['application_id']; $apiKey = $app["api_key"]; $icon_url = $app["icon_url"]; $appClassAttr = ''; $appClassAttr .= $appsCount == 0 ? ' first' : ''; $appClassAttr .= $appsCount == count($appProps) - 1 ? ' last' : ''; $appListHtml .= "<tr>"; $appListHtml .= "<td class=\"app-name " . $appClassAttr . "\" width=\"240\">";