PHP notice

Undefined index: HTTP_USER_AGENT

/websites/html/themes/basic/views/layouts/main.php(189)

177                                 版权所有:
178                                 <br/>
179                                 <a target="_blank" href="http://www.miibeian.gov.cn">
180                                     备案号:冀ICP备14024044号-1
181                                 </a>
182                                 <br/>
183 <script>
184  document.write(unescape("<span id='szgs_stat_icon_1026750864779378688'></span><script src='http://61.155.26.218/sendMark?siteid=1026750864779378688&type=1' />"));
185 </script>
186                             </div>
187                             
188                             <?php
189                             $agent = strtolower($_SERVER['HTTP_USER_AGENT']);
190                             $iphone = (strpos($agent, 'iphone')) ? true : false;
191                             if ($iphone) {
192                                 ?>
193                                 <style>
194                                     .footerbottom .copyright a{font-size:18px;}
195                                 </style>
196                             <?php } ?>
197 
198                             <!--                            <div id="mailform">
199                             
200                             
201                                                         </div>

Stack Trace

#3
+
 /websites/html/protected/modules/wfbase/wftactions/WFTAction.php(121): CController->render("responsibility_new", array("model" => Nodecatalog, "criteria" => WfCriteria, "forms" => array(), "data" => null))
116         {
117       if ($this->layout===false)
118       {
119         $controller->renderPartial($viewFile,$viewData);       
120       }else{
121             $controller->render($viewFile,$viewData); 
122           }
123         }
124         $this->onAfterRender(new CEvent($this)); 
125     } 
126 
#4
+
 /websites/html/protected/modules/wfbase/wftactions/WFTAction.php(68): WFTAction->render(array("model" => Nodecatalog, "criteria" => WfCriteria, "forms" => array(), "data" => null))
63   }
64   public function run()
65   {
66     $this->validateForms();
67     $this->runAction();
68     $this->render($this->viewData);
69   }
70   protected function prepar()
71   {
72       $preparer=WFHelper::createComponent($this->pagePreparer);
73       if (isset($preparer))
#9
+
 /websites/html/protected/modules/wfbase/components/WfThemeController.php(38): CFilter->filter(CFilterChain)
33         }
34         public function filterAccessControl($filterChain)
35         {
36             $filter=new WfAccessControlFilter;
37             $filter->setRules($this->accessRules());
38             $filter->filter($filterChain);
39         }        
40         public function getNodeHelper()
41         {
42           if (!isset($this->_nodeHelper))
43           {
2020-12-03 20:24:26 Apache Yii Framework/1.1.12