当前位置: 首页>>代码示例>>PHP>>正文


PHP FSS_Helper::AutoLogin方法代码示例

本文整理汇总了PHP中FSS_Helper::AutoLogin方法的典型用法代码示例。如果您正苦于以下问题:PHP FSS_Helper::AutoLogin方法的具体用法?PHP FSS_Helper::AutoLogin怎么用?PHP FSS_Helper::AutoLogin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FSS_Helper的用法示例。


在下文中一共展示了FSS_Helper::AutoLogin方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

 function display($tpl = null)
 {
     $autologin = FSS_Input::getCmd('login');
     if ($autologin != "") {
         FSS_Helper::AutoLogin($autologin);
     }
     if (!FSS_Permission::auth("fss.ticket.view", "com_fss.support_user") && !FSS_Permission::auth("fss.ticket.open", "com_fss.support_user")) {
         return FSS_Helper::NoPerm();
     }
     $session = JFactory::getSession();
     $user = JFactory::getUser();
     $this->userid = $user->get('id');
     $this->ticket = null;
     $this->assign('tmpl', '');
     $what = FSS_Input::getCmd('what');
     $layout = FSS_Input::getCmd('layout');
     $this->ticket_view = FSS_Input::getCmd('tickets');
     if (!$this->ticket_view && FSS_Settings::get('support_simple_userlist_tabs')) {
         $this->ticket_view = "all";
     }
     // reset the login and password
     if ($what == "reset") {
         $session->clear('ticket_email');
         $session->clear('ticket_reference');
         $session->clear('ticket_name');
         $session->clear('ticket_pass');
     }
     if ($what == "unreg_passlist") {
         return $this->Unreg_Passlist();
     }
     if ($what == "addccuser") {
         return $this->AddCCUser();
     }
     if ($what == "removeccuser") {
         return $this->RemoveCCUser();
     }
     if ($what == "pickccuser") {
         return $this->PickCCUser();
     }
     // should we display the edit field screen
     if ($what == 'editfield') {
         return $this->EditField();
     }
     // save an edited field and continue what we were doing afterwards
     if ($what == 'savefield') {
         if ($this->SaveField()) {
             return;
         }
     }
     FSS_Helper::AddSCEditor();
     // check for product search ajax display
     if (FSS_Input::getString('prodsearch') != "") {
         return $this->searchProducts();
     }
     if (FSS_Input::getString('deptsearch') != "") {
         return $this->searchDepartments();
     }
     // page to hunt for unregistered ticket
     if ($what == "find") {
         return $this->findTicket();
     }
     // save status changes
     if ($what == "statuschange") {
         return $this->saveStatusChanges();
     }
     // save any replys
     if ($what == 'savereply') {
         return $this->saveReply();
     }
     // save any replys
     if ($what == 'messages') {
         return $this->showMessages();
     }
     // process any file downloads
     $fileid = FSS_Input::getInt('fileid');
     if ($fileid > 0) {
         $ticketid = FSS_Input::GetInt('ticketid');
         if ($what == 'attach_thumb') {
             return SupportHelper::attachThumbnail($ticketid, $fileid, true);
         } else {
             return SupportHelper::attachDownload($ticketid, $fileid, true);
         }
     }
     $this->count = $this->get('TicketCount');
     // handle opening ticket
     if ($layout == "open") {
         return $this->doOpenTicket();
     }
     // handel ticket reply
     if ($layout == "reply") {
         return $this->doUserReply();
     }
     // display ticket list / ticket
     return $this->doDisplayTicket();
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:95,代码来源:view.html.php


注:本文中的FSS_Helper::AutoLogin方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。