.htaccess,收件箱问题,聪明的PHP

时间:2014-05-08 08:07:23

标签: php .htaccess smarty

INBOX系统
RewriteRule ^inbox/requests/friends inbox.php?friends=view [L]          # Friend Requests
RewriteRule ^inbox/requests/groups inbox.php?groups=view [L]            # Group Requests
RewriteRule ^inbox/comments/video inbox.php?vcomms=view [L]             # Video Comments
RewriteRule ^inbox/comments/profile inbox.php?comms=view [L]            # Profile Comments
RewriteRule ^inbox/compose/([^/]*)$ inbox.php?compose=new&to=$1 [L]     # Compose Message
RewriteRule ^inbox inbox.php?private=view [L]                           # Main Inbox

TPL AREA

{if $smarty.get.compose ne ""}<a href="{$site_url}/inbox/compose/"><li class="current_page_item"><b>New Message</b></li></a>
{else}<a href="{$site_url}/inbox/compose/"><li><b>New Message</b></li></a>{/if}

{if $smarty.get.private ne ""}<a href="{$site_url}/inbox"><li class="current_page_item">Inbox ({$total_notifications_inbox})</li></a>
{else}<a href="{$site_url}/inbox"><li>Inbox ({$total_notifications_inbox})</li></a>{/if}

{if $smarty.get.friends ne ""}<a href="{$site_url}/inbox/requests/friends"><li class="current_page_item">Friend Requests ({$total_notifications_friends})</li></a>
{else}<a href="{$site_url}/inbox/requests/friends"><li>Friend Requests ({$total_notifications_friends})</li></a>{/if}

{if $smarty.get.groups ne ""}<a href="{$site_url}/inbox/requests/groups"><li class="current_page_item">Group Requests ({$total_notifications_inbox})</li></a>
{else}<a href="{$site_url}/inbox/requests/groups"><li>Group Requests ({$total_notifications_groups})</li></a>{/if}

{if $smarty.get.vcomms ne ""}<a href="{$site_url}/inbox/comments/video"><li class="current_page_item">Video Comments ({$total_notifications_vcomms})</li></a>
{else}<a href="{$site_url}/inbox/comments/video"><li>Video Comments ({$total_notifications_vcomms})</li></a>{/if}

{if $smarty.get.comms ne ""}<a href="{$site_url}/inbox/comments/profile"><li class="current_page_item">Channel Comments ({$total_notifications_comms})</li></a>
{else}<a href="{$site_url}/inbox/comments/profile"><li>Channel Comments ({$total_notifications_comms})</li></a>{/if}

出于某种原因,当我点击"Friend Requests"的链接时,它会停留在/收件箱/区域,显示我的PM ......我不知道不幸的是,这个问题。

0 个答案:

没有答案