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


PHP FSS_Settings::set方法代码示例

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


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

示例1: resend_password

 function resend_password()
 {
     $this->loadTicket();
     FSS_Settings::set('support_email_on_create', 1);
     FSS_EMail::User_Create_Unreg($this->ticket, $this->ticket->title, JText::_('RESENDING_TICKET_PASSWORD'));
     $link = FSSRoute::_("index.php?option=com_fss&view=admin_support&layout=ticket&ticketid=" . $this->ticket->id, false);
     JFactory::getApplication()->redirect($link, JText::_("PASSWORD_FOR_TICKET_HAS_BEEN_RESENT_TO_THE_USER"));
     return false;
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:9,代码来源:task.ticket.php

示例2: sortCaptchaType

 function sortCaptchaType()
 {
     if ($this->admin_create > 0) {
         FSS_Settings::set('support_captcha_type', 'none');
     }
     $capset = FSS_Settings::get('support_captcha_type');
     if (substr($capset, 0, 3) == "ur-") {
         if (JFactory::getUser()->id == 0) {
             $capset = substr($capset, 3);
         } else {
             $capset = "";
         }
         FSS_Settings::set('support_captcha_type', $capset);
     }
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:15,代码来源:view.html.php

示例3: Send

 function Send()
 {
     $emails = $this->getAllTo();
     // limit to max 15 email target addresses
     if (count($emails) > 15) {
         $emails = array_slice($emails, 0, 15);
     }
     if (strpos($this->body, "{login_code}") !== false) {
         FSS_Settings::set('email_send_multiple', "multi");
     }
     if (FSS_Settings::Get('email_send_multiple') == "to" || FSS_Settings::Get('email_send_multiple') == "bcc") {
         $mailer = $this->getMailer();
         $mailer->isHTML($this->ishtml);
         $mailer->setSubject($this->subject);
         $mailer->setBody($this->body);
         foreach ($emails as $email => $name) {
             if (trim($email) == "") {
                 continue;
             }
             if (FSS_Settings::Get('email_send_multiple') == "bcc") {
                 $mailer->addBCC(array($email));
             } else {
                 $mailer->addRecipient(array($email));
             }
         }
         foreach ($this->files as $filename => $display) {
             $mailer->addAttachment($display, $filename);
         }
         $this->debug_data['mailer'] = $mailer;
         //SupportActions::DoAction("beforeEMailSend", $this->debug_data['Ticket'], $this->debug_data);
         unset($this->debug_data['mailer']);
         $mailer->Send();
     } else {
         foreach ($emails as $email => $name) {
             if (trim($email) == "") {
                 continue;
             }
             $mailer = $this->getMailer();
             $mailer->isHTML($this->ishtml);
             $body = $this->body;
             // strip and replace login code if its in the email
             if (strpos($body, "{login_code}") !== false) {
                 // lookup user_id from email
                 $db = JFactory::getDBO();
                 $sql = "SELECT id FROM #__users WHERE email = '" . $db->escape($email) . "'";
                 $db->setQuery($sql);
                 $user_id = $db->loadResult();
                 if ($user_id > 1) {
                     $body = str_replace("{login_code}", FSS_Helper::AutoLoginCreate($user_id), $body);
                 } else {
                     $body = str_replace("{login_code}", "", $body);
                 }
             }
             $mailer->setSubject($this->subject);
             $mailer->setBody($body);
             $mailer->addRecipient(array($email));
             foreach ($this->files as $filename => $display) {
                 $mailer->addAttachment($filename, $display);
             }
             $this->debug_data['mailer'] = $mailer;
             //SupportActions::DoAction("beforeEMailSend", $this->debug_data['Ticket'], $this->debug_data);
             unset($this->debug_data['mailer']);
             $mailer->Send();
         }
     }
     $this->doLog();
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:67,代码来源:mailer.php

示例4: testdates

 function testdates()
 {
     // test the 4 date formats
     $date = time();
     $result = array();
     $offset = (int) JRequest::GetVar('offset');
     FSS_Settings::set('timezone_offset', $offset);
     $date_dt_short = JRequest::GetVar('date_dt_short');
     if ($date_dt_short == "") {
         $date_dt_short = JText::_('DATE_FORMAT_LC4') . ', H:i';
     }
     $result['date_dt_short'] = $this->testdate($date, $date_dt_short);
     $date_dt_long = JRequest::GetVar('date_dt_long');
     if ($date_dt_long == "") {
         $date_dt_long = JText::_('DATE_FORMAT_LC3') . ', H:i';
     }
     $result['date_dt_long'] = $this->testdate($date, $date_dt_long);
     $date_d_short = JRequest::GetVar('date_d_short');
     if ($date_d_short == "") {
         $date_d_short = JText::_('DATE_FORMAT_LC4');
     }
     $result['date_d_short'] = $this->testdate($date, $date_d_short);
     $date_d_long = JRequest::GetVar('date_d_long');
     if ($date_d_long == "") {
         $date_d_long = JText::_('DATE_FORMAT_LC3');
     }
     $result['date_d_long'] = $this->testdate($date, $date_d_long);
     $result['timezone_offset'] = $this->testdate($date, 'Y-m-d H:i:s');
     echo json_encode($result);
     exit;
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:31,代码来源:view.html.php


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