當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CKunenaLink::GetLatestPageAutoRedirectURL方法代碼示例

本文整理匯總了PHP中CKunenaLink::GetLatestPageAutoRedirectURL方法的典型用法代碼示例。如果您正苦於以下問題:PHP CKunenaLink::GetLatestPageAutoRedirectURL方法的具體用法?PHP CKunenaLink::GetLatestPageAutoRedirectURL怎麽用?PHP CKunenaLink::GetLatestPageAutoRedirectURL使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CKunenaLink的用法示例。


在下文中一共展示了CKunenaLink::GetLatestPageAutoRedirectURL方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

                                                         if ($id && $kunena_db->query() && $kunena_db->getAffectedRows() == 1) {
                                                             $success_msg = _POST_LOCK_SET;
                                                         }
                                                         $app->redirect(CKunenaLink::GetLatestPageAutoRedirectURL($fbConfig, $id, $fbConfig->messages_per_page), $success_msg);
                                                     } else {
                                                         if ($do == "unlock") {
                                                             if (!$is_Moderator) {
                                                                 $app->redirect(htmlspecialchars_decode(JRoute::_(KUNENA_LIVEURLREL)), _POST_NOT_MODERATOR);
                                                             }
                                                             $id = (int) $id;
                                                             $success_msg = _POST_LOCK_NOT_UNSET;
                                                             $kunena_db->setQuery("update #__fb_messages set locked=0 where id={$id}");
                                                             if ($id && $kunena_db->query() && $kunena_db->getAffectedRows() == 1) {
                                                                 $success_msg = _POST_LOCK_UNSET;
                                                             }
                                                             $app->redirect(CKunenaLink::GetLatestPageAutoRedirectURL($fbConfig, $id, $fbConfig->messages_per_page), $success_msg);
                                                         }
                                                     }
                                                 }
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }
開發者ID:kaantunc,項目名稱:MYK-BOR,代碼行數:31,代碼來源:post.php

示例2: while

                $kunena_db->query();
                if (KunenaError::checkDatabaseError()) {
                    return;
                }
                if ($pid) {
                    $kunena_app->enqueueMessage(JText::_('COM_KUNENA_KARMA_SELF_DECREASE'));
                    while (@ob_end_clean()) {
                    }
                    $kunena_app->redirect(CKunenaLink::GetMessageURL($pid, $catid, 0, false));
                } else {
                    $kunena_app->enqueueMessage(JText::_('COM_KUNENA_KARMA_SELF_DECREASE'));
                    while (@ob_end_clean()) {
                    }
                    $kunena_app->redirect(CKunenaLink::GetMyProfileURL($userid));
                }
            }
        }
    }
} else {
    //get outa here, you fraud!
    $kunena_app->enqueueMessage(JText::_('COM_KUNENA_USER_ERROR_KARMA'));
    while (@ob_end_clean()) {
    }
    $kunena_app->redirect(CKunenaLink::GetLatestPageAutoRedirectURL($pid, $kunena_config->messages_per_page));
}
?>
            </center>
        </td>
    </tr>
</table>
開發者ID:vuchannguyen,項目名稱:hoctap,代碼行數:30,代碼來源:kunena.karma.php

示例3: unlock

 protected function unlock()
 {
     if ($this->tokenProtection('get')) {
         return false;
     }
     if (!$this->load()) {
         return false;
     }
     if ($this->moderatorProtection()) {
         return false;
     }
     if ($this->isUserBanned()) {
         return false;
     }
     if ($this->isIPBanned()) {
         return false;
     }
     $success_msg = JText::_('COM_KUNENA_POST_LOCK_NOT_UNSET');
     $this->_db->setQuery("update #__kunena_messages set locked=0 where id={$this->_db->Quote($this->id)}");
     if ($this->id && $this->_db->query() && $this->_db->getAffectedRows() == 1) {
         $success_msg = JText::_('COM_KUNENA_POST_LOCK_UNSET');
         // Activity integration
         $activity = KunenaFactory::getActivityIntegration();
         $activity->onAfterLock($this->id, 0);
     }
     while (@ob_end_clean()) {
     }
     $this->_app->redirect(CKunenaLink::GetLatestPageAutoRedirectURL($this->id, $this->config->messages_per_page), $success_msg);
 }
開發者ID:redigy,項目名稱:Kunena-1.6,代碼行數:29,代碼來源:post.php


注:本文中的CKunenaLink::GetLatestPageAutoRedirectURL方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。