• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Log类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: __construct

 public function __construct(Autoload $objAutoload)
 {
     $_SESSION['POST'] = serialize($_POST);
     $_SESSION['GET'] = serialize($_GET);
     parent::__construct($objAutoload);
     /* @var $objContent  Content */
     $objContent = unserialize($_SESSION['objContent']);
     $arrayFiles = $objAutoload->getClassName();
     $module = ucfirst($this->getModule());
     $action = ucfirst($this->getAction());
     if (empty($module) && empty($action)) {
         $this->redirectIndex(MODULE_DEFAULT, ACTION_DEFAULT, array());
         exit;
     }
     $module = empty($module) ? MODULE_DEFAULT : $module;
     $action = empty($action) ? ACTION_DEFAULT : $action;
     $className = "Action" . $module;
     if (!in_array($className . ".php", $arrayFiles)) {
         echo ERRO_404;
         $log = new Log();
         $log->setLog(__FILE__, $className . ' It was found in line ' . __LINE__ . ' - Module [' . $module . '] does not exist');
         return false;
     }
     $_SESSION['objContent'] = serialize($objContent);
     $preActionClass = new ActionGeneral();
     $preLoad = new PreLoad($preActionClass);
     $actionClass = new $className();
     $load = new Load($actionClass, $action, $module);
 }
开发者ID:suga,项目名称:Megiddo,代码行数:29,代码来源:View.php


示例2: log

 /**
  * 
  * Faz log de uma ação do usuário
  * @param string $message
  */
 public static function log($message)
 {
     $log = new Log();
     $log->cod_pessoa = Yii::app()->user->getId();
     $log->mensagem = $message;
     $log->save();
 }
开发者ID:elikristina,项目名称:portalcegov,代码行数:12,代码来源:Sipesq.php


示例3: ShowChatConfigPage

function ShowChatConfigPage()
{
    global $LNG, $USER;
    $CONF = Config::getAll(NULL, 1);
    if (!empty($_POST)) {
        $config_before = array('chat_closed' => $CONF['chat_closed'], 'chat_allowchan' => $CONF['chat_allowchan'], 'chat_allowmes' => $CONF['chat_allowmes'], 'chat_allowdelmes' => $CONF['chat_allowdelmes'], 'chat_logmessage' => $CONF['chat_logmessage'], 'chat_nickchange' => $CONF['chat_nickchange'], 'chat_botname' => $CONF['chat_botname'], 'chat_channelname' => $CONF['chat_channelname']);
        $chat_allowchan = isset($_POST['chat_allowchan']) && $_POST['chat_allowchan'] == 'on' ? 1 : 0;
        $chat_allowmes = isset($_POST['chat_allowmes']) && $_POST['chat_allowmes'] == 'on' ? 1 : 0;
        $chat_allowdelmes = isset($_POST['chat_allowdelmes']) && $_POST['chat_allowdelmes'] == 'on' ? 1 : 0;
        $chat_logmessage = isset($_POST['chat_logmessage']) && $_POST['chat_logmessage'] == 'on' ? 1 : 0;
        $chat_nickchange = isset($_POST['chat_nickchange']) && $_POST['chat_nickchange'] == 'on' ? 1 : 0;
        $chat_closed = isset($_POST['chat_closed']) && $_POST['chat_closed'] == 'on' ? 1 : 0;
        $chat_channelname = HTTP::_GP('chat_channelname', '', true);
        $chat_botname = HTTP::_GP('chat_botname', '', true);
        $config_after = array('chat_closed' => $chat_closed, 'chat_allowchan' => $chat_allowchan, 'chat_allowmes' => $chat_allowmes, 'chat_allowdelmes' => $chat_allowdelmes, 'chat_logmessage' => $chat_logmessage, 'chat_nickchange' => $chat_nickchange, 'chat_botname' => $chat_botname, 'chat_channelname' => $chat_channelname);
        Config::update($config_after);
        $CONF = Config::getAll(NULL, 1);
        $LOG = new Log(3);
        $LOG->target = 3;
        $LOG->old = $config_before;
        $LOG->new = $config_after;
        $LOG->save();
    }
    $template = new template();
    $template->assign_vars(array('chat_closed' => $CONF['chat_closed'], 'chat_allowchan' => $CONF['chat_allowchan'], 'chat_allowmes' => $CONF['chat_allowmes'], 'chat_logmessage' => $CONF['chat_logmessage'], 'chat_nickchange' => $CONF['chat_nickchange'], 'chat_botname' => $CONF['chat_botname'], 'chat_channelname' => $CONF['chat_channelname'], 'se_server_parameters' => $LNG['se_server_parameters'], 'se_save_parameters' => $LNG['se_save_parameters'], 'ch_closed' => $LNG['ch_closed'], 'ch_allowchan' => $LNG['ch_allowchan'], 'ch_allowmes' => $LNG['ch_allowmes'], 'ch_allowdelmes' => $LNG['ch_allowdelmes'], 'ch_logmessage' => $LNG['ch_logmessage'], 'ch_nickchange' => $LNG['ch_nickchange'], 'ch_botname' => $LNG['ch_botname'], 'ch_channelname' => $LNG['ch_channelname']));
    $template->show('ChatConfigBody.tpl');
}
开发者ID:Decoder1978,项目名称:Xterium,代码行数:27,代码来源:ShowChatConfigPage.php


示例4: ShowDisclamerPage

function ShowDisclamerPage()
{
    global $LNG, $USER;
    $CONF = Config::getAll(NULL, $_SESSION['adminuni']);
    if (!empty($_POST)) {
        $config_before = array('disclamerAddress' => $CONF['disclamerAddress'], 'disclamerPhone' => $CONF['disclamerPhone'], 'disclamerMail' => $CONF['disclamerMail'], 'disclamerNotice' => $CONF['disclamerNotice']);
        $disclamerAddress = HTTP::_GP('disclamerAddress', '', true);
        $disclamerPhone = HTTP::_GP('disclamerPhone', '', true);
        $disclamerMail = HTTP::_GP('disclamerMail', '', true);
        $disclamerNotice = HTTP::_GP('disclamerNotice', '', true);
        $config_after = array('disclamerAddress' => $disclamerAddress, 'disclamerPhone' => $disclamerPhone, 'disclamerMail' => $disclamerMail, 'disclamerNotice' => $disclamerNotice);
        Config::update($config_after);
        $CONF = Config::getAll(NULL, $_SESSION['adminuni']);
        $LOG = new Log(3);
        $LOG->target = 5;
        $LOG->old = $config_before;
        $LOG->new = $config_after;
        $LOG->save();
    }
    $template = new template();
    $template->loadscript('../base/jquery.autosize-min.js');
    $template->execscript('$(\'textarea\').autosize();');
    $template->assign_vars(array('disclamerAddress' => $CONF['disclamerAddress'], 'disclamerPhone' => $CONF['disclamerPhone'], 'disclamerMail' => $CONF['disclamerMail'], 'disclamerNotice' => $CONF['disclamerNotice'], 'se_server_parameters' => $LNG['mu_disclamer'], 'se_save_parameters' => $LNG['se_save_parameters'], 'se_disclamerAddress' => $LNG['se_disclamerAddress'], 'se_disclamerPhone' => $LNG['se_disclamerPhone'], 'se_disclamerMail' => $LNG['se_disclamerMail'], 'se_disclamerNotice' => $LNG['se_disclamerNotice']));
    $template->show('DisclamerConfigBody.tpl');
}
开发者ID:fuding,项目名称:Antaris,代码行数:25,代码来源:ShowDisclamerPage.php


示例5: ShowChatConfigPage

function ShowChatConfigPage()
{
    global $LNG;
    $config = Config::get(Universe::getEmulated());
    if (!empty($_POST)) {
        $config_before = array('chat_closed' => $config->chat_closed, 'chat_allowchan' => $config->chat_allowchan, 'chat_allowmes' => $config->chat_allowmes, 'chat_allowdelmes' => $config->chat_allowdelmes, 'chat_logmessage' => $config->chat_logmessage, 'chat_nickchange' => $config->chat_nickchange, 'chat_botname' => $config->chat_botname, 'chat_channelname' => $config->chat_channelname);
        $chat_allowchan = isset($_POST['chat_allowchan']) && $_POST['chat_allowchan'] == 'on' ? 1 : 0;
        $chat_allowmes = isset($_POST['chat_allowmes']) && $_POST['chat_allowmes'] == 'on' ? 1 : 0;
        $chat_allowdelmes = isset($_POST['chat_allowdelmes']) && $_POST['chat_allowdelmes'] == 'on' ? 1 : 0;
        $chat_logmessage = isset($_POST['chat_logmessage']) && $_POST['chat_logmessage'] == 'on' ? 1 : 0;
        $chat_nickchange = isset($_POST['chat_nickchange']) && $_POST['chat_nickchange'] == 'on' ? 1 : 0;
        $chat_closed = isset($_POST['chat_closed']) && $_POST['chat_closed'] == 'on' ? 1 : 0;
        $chat_channelname = HTTP::_GP('chat_channelname', '', true);
        $chat_botname = HTTP::_GP('chat_botname', '', true);
        $config_after = array('chat_closed' => $chat_closed, 'chat_allowchan' => $chat_allowchan, 'chat_allowmes' => $chat_allowmes, 'chat_allowdelmes' => $chat_allowdelmes, 'chat_logmessage' => $chat_logmessage, 'chat_nickchange' => $chat_nickchange, 'chat_botname' => $chat_botname, 'chat_channelname' => $chat_channelname);
        foreach ($config_after as $key => $value) {
            $config->{$key} = $value;
        }
        $config->save();
        $LOG = new Log(3);
        $LOG->target = 3;
        $LOG->old = $config_before;
        $LOG->new = $config_after;
        $LOG->save();
    }
    $template = new template();
    $template->assign_vars(array('chat_closed' => $config->chat_closed, 'chat_allowchan' => $config->chat_allowchan, 'chat_allowmes' => $config->chat_allowmes, 'chat_logmessage' => $config->chat_logmessage, 'chat_nickchange' => $config->chat_nickchange, 'chat_botname' => $config->chat_botname, 'chat_channelname' => $config->chat_channelname, 'se_server_parameters' => $LNG['se_server_parameters'], 'se_save_parameters' => $LNG['se_save_parameters'], 'ch_closed' => $LNG['ch_closed'], 'ch_allowchan' => $LNG['ch_allowchan'], 'ch_allowmes' => $LNG['ch_allowmes'], 'ch_allowdelmes' => $LNG['ch_allowdelmes'], 'ch_logmessage' => $LNG['ch_logmessage'], 'ch_nickchange' => $LNG['ch_nickchange'], 'ch_botname' => $LNG['ch_botname'], 'ch_channelname' => $LNG['ch_channelname']));
    $template->show('ChatConfigBody.tpl');
}
开发者ID:tatarysh,项目名称:2Moons,代码行数:29,代码来源:ShowChatConfigPage.php


示例6: logger

 public function logger($message)
 {
     if ($this->config->get('bluepay_hosted_debug') == 1) {
         $log = new Log('bluepay_hosted.log');
         $log->write($message);
     }
 }
开发者ID:Andreyalex,项目名称:corsica,代码行数:7,代码来源:bluepay_hosted.php


示例7: insert

 public function insert($error)
 {
     $log = new Log();
     $log->error = $error;
     $log->type = $this->accType;
     $log->save();
 }
开发者ID:reg2005,项目名称:payassetslaravel,代码行数:7,代码来源:Log.php


示例8: getMethod

 public function getMethod($address, $total)
 {
     // Load dependencies
     $this->load->library('bitcoin');
     $this->load->language('payment/bitcoin');
     // Connect to the server
     $this->_bitcoin = new BitCoin($this->config->get('bitcoin_user'), $this->config->get('bitcoin_password'), $this->config->get('bitcoin_host'), $this->config->get('bitcoin_port'), $this->config->get('bitcoin_path'));
     // Check for errors
     if ($this->_bitcoin->error) {
         // Save errors to the log
         $log = new Log('bitcoin.log');
         $log->write($this->_bitcoin->error);
         // Block this payment gateway if connection failed
         return false;
     }
     // Get active Geo-Zones
     $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "zone_to_geo_zone WHERE geo_zone_id = '" . (int) $this->config->get('bitcoin_geo_zone_id') . "' AND country_id = '" . (int) $address['country_id'] . "' AND (zone_id = '" . (int) $address['zone_id'] . "' OR zone_id = '0')");
     // Check for order total
     if ($this->config->get('bitcoin_total') > 0 && $this->config->get('bitcoin_total') > $total) {
         $status = false;
         // Check for Geo-Zone
     } elseif (!$this->config->get('bitcoin_geo_zone_id')) {
         $status = true;
     } elseif ($query->num_rows) {
         $status = true;
     } else {
         $status = false;
     }
     // Add BitCoin Payment Option to the Order Form
     $method_data = array();
     if ($status) {
         $method_data = array('code' => 'bitcoin', 'title' => $this->language->get('text_title'), 'terms' => '', 'sort_order' => $this->config->get('bitcoin_sort_order'));
     }
     return $method_data;
 }
开发者ID:keramist,项目名称:opencart-bitcoin,代码行数:35,代码来源:bitcoin.php


示例9: testFirstLogMessageCreatesFileIfNonexistent

 function testFirstLogMessageCreatesFileIfNonexistent()
 {
     @unlink(dirname(__FILE__) . 'temp/test.log');
     $log = new Log(dirname(__FILE__) . 'temp/test.log');
     $log->message('Should write to this file');
     $this->assertTrue(file_exists(dirname(__FILE__) . 'temp/test.log'));
 }
开发者ID:Covert-Inferno,项目名称:eve,代码行数:7,代码来源:log_test.php


示例10: getLowestPaymentAccount

 private function getLowestPaymentAccount($country)
 {
     switch ($country) {
         case 'SWE':
             $amount = 50.0;
             break;
         case 'NOR':
             $amount = 95.0;
             break;
         case 'FIN':
             $amount = 8.949999999999999;
             break;
         case 'DNK':
             $amount = 89.0;
             break;
         case 'DEU':
         case 'NLD':
             $amount = 6.95;
             break;
         default:
             $log = new Log('billmate_account.log');
             $log->write('Unknown country ' . $country);
             $amount = NULL;
             break;
     }
     return $amount;
 }
开发者ID:ext,项目名称:magento,代码行数:27,代码来源:Data.php


示例11: deleteExpiredData

 /**
  * clear expired cached files
  * >> >php index.php "/cron/deleteExpiredCacheData"
  * @param \Base $f3
  */
 function deleteExpiredData(\Base $f3)
 {
     $time_start = microtime(true);
     // cache dir (dir is recursively searched...)
     $cacheDir = $f3->get('TEMP');
     $filterTime = (int) strtotime('-' . $f3->get('PATHFINDER.CACHE.EXPIRE_MAX') . ' seconds');
     $expiredFiles = Search::getFilesByMTime($cacheDir, $filterTime);
     $deletedFiles = 0;
     $deletedSize = 0;
     $notWritableFiles = 0;
     $deleteErrors = 0;
     foreach ($expiredFiles as $filename => $file) {
         /**
          * @var $file \SplFileInfo
          */
         if ($file->isWritable()) {
             $tmpSize = $file->getSize();
             if (unlink($file->getRealPath())) {
                 $deletedSize += $tmpSize;
                 $deletedFiles++;
             } else {
                 $deleteErrors++;
             }
         } else {
             $notWritableFiles++;
         }
     }
     $execTime = microtime(true) - $time_start;
     // Log ------------------------
     $log = new \Log('cron_' . __FUNCTION__ . '.log');
     $log->write(sprintf(self::LOG_TEXT, __FUNCTION__, $deletedFiles, $deletedSize, $notWritableFiles, $deleteErrors, $execTime));
 }
开发者ID:tysongg,项目名称:pathfinder,代码行数:37,代码来源:cache.php


示例12: ShowTeamspeakPage

function ShowTeamspeakPage()
{
    global $LNG;
    $config = Config::get(Universe::getEmulated());
    if ($_POST) {
        $config_before = array('ts_timeout' => $config->ts_timeout, 'ts_modon' => $config->ts_modon, 'ts_server' => $config->ts_server, 'ts_tcpport' => $config->ts_tcpport, 'ts_udpport' => $config->ts_udpport, 'ts_version' => $config->ts_version, 'ts_login' => $config->ts_login, 'ts_password' => $config->ts_password, 'ts_cron_interval' => $config->ts_cron_interval);
        $ts_modon = isset($_POST['ts_on']) && $_POST['ts_on'] == 'on' ? 1 : 0;
        $ts_server = HTTP::_GP('ts_ip', '');
        $ts_tcpport = HTTP::_GP('ts_tcp', 0);
        $ts_udpport = HTTP::_GP('ts_udp', 0);
        $ts_timeout = HTTP::_GP('ts_to', 0);
        $ts_version = HTTP::_GP('ts_v', 0);
        $ts_login = HTTP::_GP('ts_login', '');
        $ts_password = HTTP::_GP('ts_password', '', true);
        $ts_cron_interval = HTTP::_GP('ts_cron', 0);
        $config_after = array('ts_timeout' => $ts_timeout, 'ts_modon' => $ts_modon, 'ts_server' => $ts_server, 'ts_tcpport' => $ts_tcpport, 'ts_udpport' => $ts_udpport, 'ts_version' => $ts_version, 'ts_login' => $ts_login, 'ts_password' => $ts_password, 'ts_cron_interval' => $ts_cron_interval);
        foreach ($config_after as $key => $value) {
            $config->{$key} = $value;
        }
        $config->save();
        $sql = "UPDATE %%CRONJOBS%%\n\t\tSET isActive = :isActive, `lock` = NULL, nextTime = 0\n\t\tWHERE name = 'teamspeak';";
        Database::get()->update($sql, array(':isActive' => $ts_modon));
        $LOG = new Log(3);
        $LOG->target = 4;
        $LOG->old = $config_before;
        $LOG->new = $config_after;
        $LOG->save();
    }
    $template = new template();
    $template->assign_vars(array('se_save_parameters' => $LNG['se_save_parameters'], 'ts_tcpport' => $LNG['ts_tcpport'], 'ts_serverip' => $LNG['ts_serverip'], 'ts_version' => $LNG['ts_version'], 'ts_active' => $LNG['ts_active'], 'ts_settings' => $LNG['ts_settings'], 'ts_udpport' => $LNG['ts_udpport'], 'ts_timeout' => $LNG['ts_timeout'], 'ts_server_query' => $LNG['ts_server_query'], 'ts_sq_login' => $LNG['ts_login'], 'ts_sq_pass' => $LNG['ts_pass'], 'ts_lng_cron' => $LNG['ts_cron'], 'ts_to' => $config->ts_timeout, 'ts_on' => $config->ts_modon, 'ts_ip' => $config->ts_server, 'ts_tcp' => $config->ts_tcpport, 'ts_udp' => $config->ts_udpport, 'ts_v' => $config->ts_version, 'ts_login' => $config->ts_login, 'ts_password' => $config->ts_password, 'ts_cron' => $config->ts_cron_interval));
    $template->show('TeamspeakPage.tpl');
}
开发者ID:bergi9,项目名称:2Moons,代码行数:32,代码来源:ShowTeamspeakPage.php


示例13: error

 function error($f3)
 {
     $log = new Log('error.log');
     $log->write($f3->get('ERROR.text'));
     foreach ($f3->get('ERROR.trace') as $frame) {
         if (isset($frame['file'])) {
             // Parse each backtrace stack frame
             $line = '';
             $addr = $f3->fixslashes($frame['file']) . ':' . $frame['line'];
             if (isset($frame['class'])) {
                 $line .= $frame['class'] . $frame['type'];
             }
             if (isset($frame['function'])) {
                 $line .= $frame['function'];
                 if (!preg_match('/{.+}/', $frame['function'])) {
                     $line .= '(';
                     if (isset($frame['args']) && $frame['args']) {
                         $line .= $f3->csv($frame['args']);
                     }
                     $line .= ')';
                 }
             }
             // Write to custom log
             $log->write($addr . ' ' . $line);
         }
     }
     Template::instance()->render('error.html');
 }
开发者ID:paspo,项目名称:installinux,代码行数:28,代码来源:misc.php


示例14: create

 /**
  * @param \String $image
  * @return resource
  * @throws Exception
  */
 private function create($image)
 {
     $mime = $this->info['mime'];
     $image = trim($image);
     try {
         if (!file_exists($image)) {
             throw new InvalidArgumentException("Image file '{$image}' doesn't exist");
         }
         if ($mime == 'image/gif') {
             $image = imagecreatefromgif($image);
         } elseif ($mime == 'image/png') {
             $image = @imagecreatefrompng($image);
         } elseif ($mime == 'image/jpeg') {
             $image = imagecreatefromjpeg($image);
         }
         return $image;
     } catch (Exception $exc) {
         $logger = new Log('error.log');
         $tmpExc = $exc;
         while ($tmpExc != null) {
             $logger->write($exc->getMessage());
             $tmpExc = $tmpExc->getPrevious();
         }
         throw $exc;
     }
 }
开发者ID:ralfeus,项目名称:moomi-daeri.com,代码行数:31,代码来源:image.php


示例15: error_handler

/**
 * Error handler, called when an error occurs
 *
 * @param int $errno	Error code
 * @param int $errstr	Error message
 * @param int $errfile	File in which the error occured
 * @param int $errline	Line of the file where the error occured
 */
function error_handler($errno, $errstr, $errfile, $errline)
{
    $log = new Log('php_errors.log');
    $msg = '';
    $exception = true;
    // cf. http://www.php.net/manual/en/function.set-error-handler.php
    switch ($errno) {
        case E_ERROR:
        case E_USER_ERROR:
            $msg = 'Fatal error: ' . $errstr . ' in ' . $errfile . ':' . $errline;
            $log->write($msg);
            if (Config::DEBUG) {
                return $msg;
            } else {
                return 'An error occured, please try again later.';
            }
            break;
        case E_WARNING:
        case E_USER_WARNING:
            $msg = 'Warning: ' . $errstr . ' in ' . $errfile . ':' . $errline;
            break;
        case E_NOTICE:
        case E_USER_NOTICE:
            $msg = 'Notice: ' . $errstr . ' in ' . $errfile . ':' . $errline;
            $exception = false;
            break;
        default:
            $msg = 'Unknown error [' . $errno . ']: ' . $errstr . ' in ' . $errfile . ':' . $errline;
            break;
    }
    $log->write($msg);
    if ($exception) {
        throw new Exception($msg, $errno);
    }
}
开发者ID:Godefroy,项目名称:confeature,代码行数:43,代码来源:init.php


示例16: ShowDisclamerPage

function ShowDisclamerPage()
{
    global $LNG;
    $config = Config::get(Universe::getEmulated());
    if (!empty($_POST)) {
        $config_before = array('disclamerAddress' => $config->disclamerAddress, 'disclamerPhone' => $config->disclamerPhone, 'disclamerMail' => $config->disclamerMail, 'disclamerNotice' => $config->disclamerNotice);
        $disclaimerAddress = HTTP::_GP('disclaimerAddress', '', true);
        $disclaimerPhone = HTTP::_GP('disclaimerPhone', '', true);
        $disclaimerMail = HTTP::_GP('disclaimerMail', '', true);
        $disclaimerNotice = HTTP::_GP('disclaimerNotice', '', true);
        $config_after = array('disclamerAddress' => $disclaimerAddress, 'disclamerPhone' => $disclaimerPhone, 'disclamerMail' => $disclaimerMail, 'disclamerNotice' => $disclaimerNotice);
        foreach ($config_after as $key => $value) {
            $config->{$key} = $value;
        }
        $config->save();
        $LOG = new Log(3);
        $LOG->target = 5;
        $LOG->old = $config_before;
        $LOG->new = $config_after;
        $LOG->save();
    }
    $template = new template();
    $template->loadscript('../base/jquery.autosize-min.js');
    $template->execscript('$(\'textarea\').autosize();');
    $template->assign_vars(array('disclaimerAddress' => $config->disclamerAddress, 'disclaimerPhone' => $config->disclamerPhone, 'disclaimerMail' => $config->disclamerMail, 'disclaimerNotice' => $config->disclamerNotice, 'se_server_parameters' => $LNG['mu_disclaimer'], 'se_save_parameters' => $LNG['se_save_parameters'], 'se_disclaimerAddress' => $LNG['se_disclaimerAddress'], 'se_disclaimerPhone' => $LNG['se_disclaimerPhone'], 'se_disclaimerMail' => $LNG['se_disclaimerMail'], 'se_disclaimerNotice' => $LNG['se_disclaimerNotice']));
    $template->show('DisclamerConfigBody.tpl');
}
开发者ID:bergi9,项目名称:2Moons,代码行数:27,代码来源:ShowDisclamerPage.php


示例17: ShowFleetsConfPage

function ShowFleetsConfPage()
{
    global $LNG;
    $CONF = Config::getAll(NULL, 1);
    if (!empty($_POST)) {
        $pay_before = array('fleetconf' => $CONF['fleetconf']);
        $fleetconf = TIMESTAMP + $_POST['days'] * 24 * 60 * 60;
        $pay_after = array('fleetconf' => $fleetconf);
        Config::update($pay_after, 1);
        $CONF = Config::getAll(NULL, 1);
        $LOG = new Log(3);
        $LOG->target = 1;
        $LOG->old = $pay_before;
        $LOG->new = $pay_after;
        $LOG->save();
        require_once 'includes/functions/BBCode.php';
        $Time = TIMESTAMP;
        $Message = '<span class="admin">All promotional fleets and defence have been unlocked until ' . date("d.m.Y - H:i:s", $CONF['fleetconf']) . '. - <a href="?page=shipyard&mode=fleet">Fleet</a> - <a href="?page=shipyard&mode=defence">Defence</a>';
        $From = '<span class="admin">"Antimatter"</span>';
        $pmSubject = '<span class="admin">"Purchase Bonus"</span>';
        $pmMessage = '<span class="admin">' . bbcode($Message) . '</span>';
        $USERS = $GLOBALS['DATABASE']->query("SELECT `id`, `username` FROM " . USERS . " WHERE `universe` = '1';");
        while ($UserData = $GLOBALS['DATABASE']->fetch_array($USERS)) {
            $sendMessage = str_replace('{USERNAME}', $UserData['username'], $pmMessage);
            SendSimpleMessage($UserData['id'], $USER['id'], TIMESTAMP, 50, $From, $pmSubject, $sendMessage);
        }
    }
    $template = new template();
    $template->assign_vars(array('fleetconf' => $CONF['fleetconf'], 'bonus_next_active' => $CONF['fleetconf'] > TIMESTAMP ? $CONF['fleetconf'] - TIMESTAMP : 0, 'bonus_next_active_timer' => $CONF['fleetconf'] > TIMESTAMP ? date("d.m.Y H:i:s", $CONF['fleetconf']) : 0));
    $template->show('fleetconf.tpl');
}
开发者ID:Decoder1978,项目名称:Xterium,代码行数:31,代码来源:ShowFleetsConfPage.php


示例18: userCheck

function userCheck($username, $password)
{
    $log = new Log("log");
    $array = fileOpen();
    print_r($array);
    $true = false;
    $_SESSION['is-logged-in'] = $true;
    for ($i = 0; $i < count($array); $i++) {
        if (Auth::attempt($username, $password, $array[$i]["password"])) {
            $true = true;
            $log->logMessage("SWEET", "That password for {$username} was correct!, Logging {$username} in!");
            $sessionuname = $array[$i]["username"];
            $_SESSION["username"] = $sessionuname;
            break;
        } else {
            $true = false;
            $log->logMessage("HEY!", "That password for {$username} was incorrect!");
            $sessionuname = "Guest";
            $_SESSION["username"] = $sessionuname;
        }
    }
    if ($true == true) {
        return "You did it {$sessionuname}!";
    } else {
        return "You didn't say the magic word!";
    }
}
开发者ID:Yeasayer,项目名称:codeup_web_exercises,代码行数:27,代码来源:authorized.php


示例19: log

 public function log($message)
 {
     if ($this->config->get('pp_pro_iframe_debug')) {
         $log = new Log('pp_pro_iframe.log');
         $log->write($message);
     }
 }
开发者ID:ahmedkato,项目名称:openshift-opencart,代码行数:7,代码来源:pp_pro_iframe.php


示例20: delete

 public function delete()
 {
     $Log = new Log($this->data->id);
     $Log->delete();
     $go = '>auth/Log/formFind';
     $this->renderPrompt('information', "Log [{$this->data->idLog}] removido.", $go);
 }
开发者ID:elymatos,项目名称:expressive_fnbr,代码行数:7,代码来源:LogController.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP LogActions类代码示例发布时间:2022-05-23
下一篇:
PHP Lock类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap