:::
實戰PHP7+MySQL

請輸入標題

discuss pic 2018-02-22 20:41:26
老師您好:
關於14.4章中落實權限機制,若$_SESSION['user_name']不存在則轉向index.php,但$op在index.html中被判斷
{if $op=="goods_form"}
{include file="goods_form.html"}
{elseif $op=="goods_display"}
{include ile='goods_display.html'}
{elseif $op=="user_form"}
{include file='user_form.html'}
{elseif $op=="display_user"}
{include file='display_user.html'}
{else}
{include file='goods_list.html'}
{/if}
所以在index.php?op=goods_form就能帶出goods_form,那不就不用登入就能編
輯了,有測試過喔!
:::

快速登入


https%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_discuss%2Fdiscuss.php%3FBoardID%3D55%26DiscussID%3D4182%26g2p%3D1

計數器

今天: 4752475247524752
昨天: 8625862586258625
總計: 8035359803535980353598035359803535980353598035359