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


PHP Logging::SecurityLog方法代码示例

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


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

示例1: GetTranslationData

 static function GetTranslationData($translation = "")
 {
     global $LZLANG;
     if (OperatorRequest::IsValidated() && Is::Defined("VALIDATED_FULL_LOGIN") && OperatorRequest::IsAdministrator(true)) {
         Logging::SecurityLog("ServerManager::GetTranslationData", serialize($_POST), CALLER_SYSTEM_ID);
         $langid = $_POST["p_int_trans_iso"];
         if (strpos($langid, "..") === false && strlen($langid) <= 6) {
             $mobile = !empty($_POST["p_int_trans_m"]);
             $mobileOriginal = !empty($_POST["p_int_trans_mo"]);
             $path = !$mobileOriginal ? "_language/" : "mobile/php/translation/";
             IOStruct::RequireDynamic(LocalizationManager::GetLocalizationFileString($langid, true, $mobile, $mobileOriginal), LIVEZILLA_PATH . $path);
             $translation .= "<language key=\"" . base64_encode($langid) . "\">\r\n";
             foreach ($LZLANG as $key => $value) {
                 $translation .= "<val key=\"" . base64_encode($key) . "\">" . base64_encode($value) . "</val>\r\n";
             }
             $translation .= "</language>\r\n";
             Server::$Response->SetStandardResponse(1, $translation);
         } else {
             Server::$Response->SetStandardResponse(0, $translation);
         }
     }
 }
开发者ID:sgh1986915,项目名称:laravel-eyerideonline,代码行数:22,代码来源:functions.internal.man.inc.php

示例2: SendEmail

 static function SendEmail($_account, $_receiver, $_replyto, $_bodyText, $_bodyHTML, $_subject = "", $_test = false, $_attachments = null, $_fakeSender = "")
 {
     if ($_account == null) {
         $_account = Mailbox::GetDefaultOutgoing();
     }
     if ($_account == null) {
         return null;
     }
     $_bodyText = correctLineBreaks($_bodyText);
     require_once LIVEZILLA_PATH . "_lib/objects.mail.inc.php";
     Logging::SecurityLog("Communication::SendMail", $_bodyText);
     $mailer = new MailSystem($_account, $_receiver, $_replyto, trim($_bodyText), trim($_bodyHTML), $_subject, $_test, $_attachments);
     $mailer->SendEmail($_fakeSender);
     return $mailer->Result;
 }
开发者ID:sgh1986915,项目名称:laravel-eyerideonline,代码行数:15,代码来源:objects.global.inc.php

示例3: SetPasswordChangeNeeded

 function SetPasswordChangeNeeded()
 {
     if (OperatorRequest::IsValidated() && Is::Defined("VALIDATED_FULL_LOGIN")) {
         Logging::SecurityLog("Operator->SetPasswordChangeNeeded", "", Is::Defined("CALLER_SYSTEM_ID"));
         $this->PasswordChangeRequest = true;
         DBManager::Execute(true, "UPDATE `" . DB_PREFIX . DATABASE_OPERATORS . "` SET `password_change_request`=1 WHERE `system_id`='" . DBManager::RealEscape($this->SystemId) . "' LIMIT 1;");
     }
 }
开发者ID:sgh1986915,项目名称:laravel-eyerideonline,代码行数:8,代码来源:objects.global.users.inc.php


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