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


PHP FSS_Settings::get方法代码示例

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


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

示例1: displayUnRegistered

 function displayUnRegistered()
 {
     if (FSS_Settings::get('support_no_admin_for_user_open')) {
         JFactory::getApplication()->redirect("index.php?option=com_fss&view=admin_support");
     }
     $this->_display("unregistered");
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:7,代码来源:layout.new.php

示例2: SaveLog

 function SaveLog()
 {
     $db = JFactory::getDBO();
     $class = get_class($this);
     $class = str_ireplace("FSSCron", "", $class);
     $now = FSS_Helper::CurDate();
     $qry = "INSERT INTO #__fss_cron_log (cron, `when`, log) VALUES ('" . FSSJ3Helper::getEscaped($db, $class) . "', '{$now}', '" . FSSJ3Helper::getEscaped($db, $this->_log) . "')";
     $db->SetQuery($qry);
     $db->Query();
     //echo $qry."<br>";
     $qry = "DELETE FROM #__fss_cron_log WHERE `when` < DATE_SUB('{$now}', INTERVAL " . (int) FSS_Settings::get('support_cronlog_keep') . " DAY)";
     $db->SetQuery($qry);
     $db->Query();
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:14,代码来源:cron.php

示例3: __construct

 function __construct($parent)
 {
     $this->comments = $parent;
     $this->comments->use_comments = FSS_Settings::get('announce_comments_allow');
     $this->comments->opt_display = 1;
     $this->short_thanks = 1;
     $this->email_title = "An Announcement comment";
     $this->email_article_type = JText::_('ANNOUNCEMENT');
     $this->description = JText::_('ANNOUNCEMENT');
     $this->descriptions = JText::_('ANNOUNCEMENTS');
     $this->long_desc = JText::_('COMMENTS_ANNOUNCEMENTS');
     $this->article_link = "index.php?option=com_fss&view=announce&announceid={id}";
     $this->table = "#__fss_announce";
     $this->has_published = 1;
     $this->field_title = "title";
     $this->field_id = "id";
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:17,代码来源:announce.php

示例4: display

 function display($tpl = null)
 {
     $fileid = FSS_Input::getInt('fileid');
     $key = FSS_Input::getCmd('key');
     $decoded = FSS_Helper::decrypt(FSS_Helper::base64url_decode($key), FSS_Helper::getEncKey("file"));
     if ($fileid != $decoded) {
         exit;
     }
     $db = JFactory::getDBO();
     $sql = "SELECT * FROM #__fss_ticket_attach WHERE id = " . $fileid;
     $db->setQuery($sql);
     $attach = $db->loadObject();
     $image = in_array(strtolower(pathinfo($attach->filename, PATHINFO_EXTENSION)), array('jpg', 'jpeg', 'png', 'gif'));
     $image_file = JPATH_SITE . DS . FSS_Settings::get('attach_location') . DS . "support" . DS . $attach->diskfile;
     require_once JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'helper' . DS . 'files.php';
     FSS_File_Helper::OutputImage($image_file, pathinfo($attach->filename, PATHINFO_EXTENSION));
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:17,代码来源:view.html.php

示例5: ValidateCaptcha

 function ValidateCaptcha($setting = 'captcha_type', $direct = '')
 {
     $usecaptcha = FSS_Settings::get($setting);
     if ($direct != "") {
         $usecaptcha = $direct;
     }
     if ($usecaptcha == "") {
         return true;
     }
     if ($usecaptcha == "fsj") {
         if ($_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'])) {
             return true;
         }
         return false;
     }
     if ($usecaptcha == "recaptcha") {
         if (!class_exists("ReCaptcha\\ReCaptcha")) {
             require JPATH_ROOT . DS . 'components' . DS . 'com_fss' . DS . 'helper' . DS . 'third' . DS . 'ReCaptcha' . DS . 'ReCaptcha.php';
             require JPATH_ROOT . DS . 'components' . DS . 'com_fss' . DS . 'helper' . DS . 'third' . DS . 'ReCaptcha' . DS . 'RequestMethod.php';
             require JPATH_ROOT . DS . 'components' . DS . 'com_fss' . DS . 'helper' . DS . 'third' . DS . 'ReCaptcha' . DS . 'RequestParameters.php';
             require JPATH_ROOT . DS . 'components' . DS . 'com_fss' . DS . 'helper' . DS . 'third' . DS . 'ReCaptcha' . DS . 'Response.php';
             require JPATH_ROOT . DS . 'components' . DS . 'com_fss' . DS . 'helper' . DS . 'third' . DS . 'ReCaptcha' . DS . 'RequestMethod' . DS . 'Post.php';
         }
         $secret = FSS_Settings::get('recaptcha_private');
         if (!$secret) {
             $secret = "12345";
         }
         $recaptcha = new \ReCaptcha\ReCaptcha($secret);
         $resp = $recaptcha->verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']);
         if ($resp->isSuccess()) {
             return true;
         } else {
             return false;
         }
     }
     return true;
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:37,代码来源:captcha.php

示例6:

?>
<div class="media faq_faq faq_<?php 
echo $cat['id'] . "_" . $faq['id'];
?>
_cont faq_<?php 
echo $faq['id'];
?>
_cont"">
	<div class="pull-right">
		<?php 
echo $this->content->EditPanel($faq);
?>
	</div>
	<div class="media-body">
		<h5 class="media-heading">
			<a class="show_modal_iframe" href='<?php 
echo FSSRoute::_('index.php?option=com_fss&view=faq&tmpl=component&faqid=' . $faq['id']);
?>
' data_modal_width="<?php 
echo FSS_Settings::get('faq_popup_width');
?>
">
				<?php 
echo $faq['question'];
?>
			</a>
		</h5>
			
	</div>
</div>	
开发者ID:vstorm83,项目名称:propertease,代码行数:30,代码来源:_faq_questionwithpopup.php

示例7:

_cont faq_<?php 
echo $faq['id'];
?>
_cont"">
	<div class="pull-right">
		<?php 
echo $this->content->EditPanel($faq);
?>
	</div>
	<div class="media-body">
		<h5 class="media-heading">
			<a href='<?php 
echo FSSRoute::_('index.php?option=com_fss&view=faq&tmpl=component&window=1&faqid=' . $faq['id']);
?>
' 
					onclick="window.open(jQuery(this).attr('href'),'','width=<?php 
echo FSS_Settings::get('faq_popup_width');
?>
,height=<?php 
echo FSS_Settings::get('faq_popup_height');
?>
');return false;"
					>
				<?php 
echo $faq['question'];
?>
			</a>
		</h5>		
	</div>
</div>	
开发者ID:vstorm83,项目名称:propertease,代码行数:30,代码来源:_faq_questionnewwindow.php

示例8:

        }
        ?>
	<?php 
    }
    ?>
	
	<?php 
    FSS_Helper::HelpText("support_user_view_end_details");
    ?>

<?php 
}
?>

<?php 
if (FSS_Settings::get("messages_at_top") == 0 || FSS_Settings::get("messages_at_top") == 2) {
    include $this->snippet(JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'views' . DS . 'ticket' . DS . 'snippet' . DS . '_messages_cont.php');
}
?>


<?php 
if (count($this->attach) > 0) {
    ?>

	<?php 
    echo FSS_Helper::PageSubTitle("ATTACHEMNTS");
    ?>

	<?php 
    FSS_Helper::HelpText("support_user_view_attach_header");
开发者ID:vstorm83,项目名称:propertease,代码行数:31,代码来源:view.php

示例9:

        ?>
	<div class="center margin-small">
			<a class="btn btn-default" href="<?php 
        echo FSSRoute::_('index.php?option=com_fss&view=ticket&layout=open');
        ?>
"><?php 
        echo JText::_('OPEN_NEW_TICKET');
        ?>
</a>
		</div>
	<?php 
    }
    ?>

	<?php 
    if (($params->get('tickets_open_ticket_reg') || $params->get('tickets_open_ticket_unreg')) && !FSS_Settings::get('support_no_admin_for_user_open')) {
        ?>
		<div>
			<?php 
        echo JText::_("CREATE_TICKET_FOR");
        ?>
:
		</div>

		<div>
			<?php 
        if ($params->get('tickets_open_ticket_reg')) {
            ?>
				<a class="btn btn-default btn-small margin-small" href="<?php 
            echo FSSRoute::_('index.php?option=com_fss&view=admin_support&layout=new&type=registered');
            ?>
开发者ID:vstorm83,项目名称:propertease,代码行数:31,代码来源:default.php

示例10: VerifyDisk

 function VerifyDisk()
 {
     $db = JFactory::getDBO();
     $qry = "SELECT * FROM #__fss_ticket_attach";
     $db->setQuery($qry);
     $this->files = $db->loadObjectList("diskfile");
     $count = 0;
     foreach ($this->files as &$file) {
         if (file_exists(JPATH_SITE . DS . FSS_Settings::get('attach_location') . DS . 'support' . DS . $file->diskfile)) {
             $ticket = new SupportTicket();
             $ticket->load($file->ticket_ticket_id);
             $destpath = JPATH_SITE . DS . FSS_Settings::get('attach_location') . DS . 'support' . DS;
             $destname = FSS_File_Helper::makeAttachFilename("support", $file->filename, $file->added, $ticket, $file->user_id);
             if (rename($destpath . $file->diskfile, $destpath . $destname)) {
                 $qry = "UPDATE #__fss_ticket_attach SET diskfile = '" . $db->escape($destname) . "' WHERE id = " . $file->id;
                 $db->setQuery($qry);
                 $db->Query();
                 $count++;
             }
         }
     }
     JFactory::getApplication()->redirect("index.php?option=com_fss&view=attachclean", "{$count} files verified.", "message");
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:23,代码来源:view.html.php

示例11: foreach

<?php 
if (count($this->products) > 0) {
    ?>
	<?php 
    foreach ($this->products as &$product) {
        ?>
		
		<?php 
        if (!array_key_exists("id", $product)) {
            continue;
        }
        ?>
		
		<?php 
        if ($this->comments->GetCountOnly($product['id']) == 0 && FSS_Settings::get('test_hide_empty_prod')) {
            continue;
        }
        ?>
		
		<?php 
        include "components/com_fss/views/test/snippet/_prod.php";
        ?>

	<?php 
    }
}
?>

<?php 
if ($testcount == 0) {
开发者ID:vstorm83,项目名称:propertease,代码行数:30,代码来源:default.php

示例12: Footer

 static function Footer()
 {
     FSS_Glossary::GetGlossary();
     if (count(FSS_Glossary::$glossary) == 0) {
         return "";
     }
     $tail = "<div id='glossary_words' style='display:none;'>";
     $temp = "";
     $count = 0;
     foreach (FSS_Glossary::$glossary as $data) {
         if (empty($data->inuse) || !$data->inuse) {
             continue;
         }
         //if (!empty($data->is_clone) && $data->is_clone)
         //	continue;
         $count++;
         $footer = "";
         if ($data->longdesc && FSS_Settings::get('glossary_show_read_more')) {
             $footer = "<p class='right fss_glossary_read_more' style='text-align: right'>" . JText::_(FSS_Settings::get('glossary_read_more_text')) . "</p>";
         }
         if (FSS_Settings::get('glossary_title')) {
             $tail .= "<div id='glossary_" . $data->ref . "'><h4>" . $data->linkword . "</h4><div class='fsj_gt_inner'>" . $data->description . " {$footer}</div></div>";
         } else {
             $tail .= "<div id='glossary_" . $data->ref . "'><div class='fsj_gt_inner'>" . $data->description . " {$footer}</div></div>";
         }
     }
     $tail .= "</div>";
     if (!$count) {
         return "";
     }
     return $tail;
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:32,代码来源:glossary.php

示例13: getAttachFormatRegex

 static function getAttachFormatRegex()
 {
     if (substr(FSS_Input::GetCmd('view'), 0, 5) == "admin") {
         $formats = trim(FSS_Settings::get('support_attach_types_admins'));
     } else {
         $formats = trim(FSS_Settings::get('support_attach_types'));
     }
     if (substr($formats, 0, 1) == "/") {
         return $formats;
     }
     $parsed = array();
     if ($formats != "") {
         $formats = explode(",", $formats);
         foreach ($formats as $fm) {
             $fm = trim($fm);
             if (!$fm) {
                 continue;
             }
             $parsed[] = $fm;
         }
     }
     if (count($parsed) > 0) {
         return "/.(" . implode("|", $parsed) . ")\$/i";
     }
     return "null";
 }
开发者ID:vstorm83,项目名称:propertease,代码行数:26,代码来源:helper.php

示例14: echo

    // include JPATH_SITE.DS.'components'.DS.'com_fss'.DS.'tmpl'.DS.'attach.php';
    ?>
	<?php 
}
?>
	
	<input type="hidden" name="ticketid" value="<?php 
echo (int) $this->ticket['id'];
?>
" />
	<button class="btn btn-primary" id='addcomment'><i class="icon-redo"></i> <?php 
echo JText::_("POST_REPLY");
?>
</button>
	<?php 
if (FSS_Settings::get('support_user_can_close') && FSS_Settings::get('support_user_show_close_reply')) {
    ?>
		<input type="hidden" id="should_close" name="should_close" value="" />
		<button class="btn btn-default" id='replyclose'><i class="icon-ban-circle"></i> <?php 
    echo JText::_("REPLY_AND_CLOSE");
    ?>
</button>
	<?php 
}
?>
	<button class="btn btn-default" id='replycancel'><i class="icon-cancel"></i> <?php 
echo JText::_("CANCEL");
?>
</button>
</form>
<iframe name="form_results" id="form_results" style="display: none;"></iframe>
开发者ID:vstorm83,项目名称:propertease,代码行数:31,代码来源:_reply.php

示例15: defined

**/
defined('_JEXEC') or die;
?>
		
		<div class="control-group">
			<label class="control-label"><?php 
echo JText::_("COMMENT");
?>
</label>
			<div class="controls">
				<?php 
echo SupportCanned::CannedDropdown("body2");
?>
			</div>
		</div>

		<p>
			<textarea style='width:95%;height:<?php 
echo (int) (FSS_Settings::get('support_admin_reply_height') * 15 + 80);
?>
px' name='body2' id='body2' class="sceditor" rows='<?php 
echo (int) FSS_Settings::get('support_admin_reply_height');
?>
' cols='<?php 
echo (int) FSS_Settings::get('support_admin_reply_width');
?>
'></textarea>
		</p>

		<input name="hidefromuser" value="1" type="hidden" />
	
开发者ID:vstorm83,项目名称:propertease,代码行数:30,代码来源:_reply_private.php


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