Exemple #1
0
     if ($fbConfig->fb_profile == 'cb') {
         $forumtab_url = CKunenaCBProfile::getForumTabURL();
         $app->redirect(JRoute::_($forumtab_url));
     } else {
         $app->redirect(JRoute::_(KUNENA_LIVEURLREL . '&func=myprofile&do=showfav'));
     }
     break;
 case "unfavoriteitem":
     $kunena_db->setQuery("DELETE from #__fb_favorites where userid={$kunena_my->id} and thread={$thread}");
     if (!$kunena_db->query()) {
         $app->enqueueMessage(_USER_UNFAVORITE_A . _USER_UNFAVORITE_B . _USER_UNFAVORITE_C, 'notice');
     } else {
         $app->enqueueMessage(_USER_UNFAVORITE_YES);
     }
     if ($fbConfig->fb_profile == 'cb') {
         $forumtab_url = CKunenaCBProfile::getForumTabURL();
         $app->redirect(JRoute::_($forumtab_url));
     } else {
         $app->redirect(JRoute::_(KUNENA_LIVEURLREL . '&func=myprofile&do=showfav'));
     }
     break;
     //
 //
 case "userdetails":
     /* We don't need
     					// security check to see if link exists in a menu
                         $link = 'index.php?option=com_user&task=UserDetails';
     
                         $query = "SELECT id" . "\n FROM #__menu" . "\n WHERE link LIKE '%$link%'" . "\n AND published = 1";
                         $kunena_db->setQuery($query);
                         $exists = $kunena_db->loadResult();
Exemple #2
0
                } else {
                    echo _USER_RETURN_A . " <a href=\"" . JRoute::_(KUNENA_LIVEURLREL . '&amp;func=userprofile&amp;do=show') . "\">" . _USER_RETURN_B . "</a><br /><br />";
                    echo CKunenaLink::GetAutoRedirectHTML(JRoute::_(KUNENA_LIVEURLREL . '&amp;func=userprofile&amp;do=show'), 3500);
                }
            } else {
                if ($do == "unfavorite") {
                    //ergo, ergo delete
                    $kunena_db->setQuery("DELETE from #__fb_favorites where userid={$kunena_my->id} and thread={$thread}");
                    if (!$kunena_db->query()) {
                        echo _USER_UNFAVORITE_A . " <strong><font color=\"red\">" . _USER_UNFAVORITE_B . "</font></strong> " . _USER_UNFAVORITE_C . ".<br /><br />";
                    } else {
                        echo _USER_UNFAVORITE_YES . ".<br /><br />";
                    }
                    if ($fbConfig->fb_profile == 'cb') {
                        echo _USER_RETURN_A . ' <a href="' . CKunenaCBProfile::getForumTabURL() . '">' . _USER_RETURN_B . "</a><br /><br />";
                        echo CKunenaLink::GetAutoRedirectHTML(CKunenaCBProfile::getForumTabURL(), 3500);
                    } else {
                        echo _USER_RETURN_A . " <a href=\"index.php?option=com_kunena&amp;Itemid={$Itemid}&amp;func=userprofile&amp;do=show\">" . _USER_RETURN_B . "</a><br /><br />";
                        echo CKunenaLink::GetAutoRedirectHTML(JRoute::_(KUNENA_LIVEURLREL . '&amp;func=userprofile&amp;do=show'), 3500);
                    }
                } else {
                    //you got me there... don't know what to $do
                    echo _USER_ERROR_A;
                    echo _USER_ERROR_B . "<br /><br />";
                    echo _USER_ERROR_C . "<br /><br />" . _USER_ERROR_D . ": <code>fb001-up-02NoDO</code><br /><br />";
                }
            }
        }
    }
} else {
    //get outa here, you fraud!