$command=(int)$_GET['command'];$actions=array(1=>'profile',3=>'login',7=>'show',9=>'update',11=>'stop',13=>'start',15=>'remove',);//判断命令对应的动作是否存在if(!array_key_exists($command,$actions))thrownewException('404');$control=newApp();$method='on'.ucfirst($actions[$command]);//判断类里面是否存在该函数if(!method_exists($control,$method))thrownewException('404');
杨__羊羊
犯罪嫌疑人X
相关分类