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


PHP Misc::logMotiomera方法代码示例

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


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

示例1: truncateFeedItems

 public static function truncateFeedItems()
 {
     Misc::logMotiomera("Start Feed::truncateFeedItems() ", 'info');
     $days = 7;
     if (defined('TRUNCATE_OLDER_THAN')) {
         $days = TRUNCATE_OLDER_THAN;
     }
     global $db;
     $sql = "DELETE FROM " . self::RELATION_TABLE . " WHERE datum < '" . date("Y-m-d", strtotime("-" . $days . "days")) . "%'";
     //string like "strtotime("-7 days"))"
     $db->query($sql);
     Misc::logMotiomera($sql, 'info');
     Misc::logMotiomera("End Feed::truncateFeedItems() ", 'info');
 }
开发者ID:krillo,项目名称:motiomera,代码行数:14,代码来源:Feed.php

示例2: define

#!/bin/php
<?php 
/**
 * Run this script to fix medals week by week
 * Pass two parameters -  year and week
 * php medal_from_cmd.php 2010 37
 */
define('ROOT', dirname(__FILE__) . "/../public_html");
chdir(ROOT);
require_once ROOT . "/php/init.php";
$year = $_SERVER["argv"][1];
$week = $_SERVER["argv"][2];
echo date('Y-m-d h:i:s') . " [INFO] Start medal from command line year: {$year}, week {$week} \n";
Misc::logMotiomera("Start medal from command line year: {$year}, week {$week} ", 'INFO');
Sammanstallning::sammanstallMedaljer($year, $week);
Misc::logMotiomera("End medal from command line \n", 'INFO');
开发者ID:krillo,项目名称:motiomera,代码行数:16,代码来源:medal_from_cmd.php

示例3: define

#!/usr/bin/php
<?php 
define('ROOT', dirname(__FILE__) . "/../public_html");
chdir(ROOT);
require_once ROOT . "/php/init.php";
echo date('Y-m-d h:i:s') . " [INFO] Start:  Cache Rss fedd from mabra.com cron script. \n";
Misc::logMotiomera("Start:  Cache Rss fedd from mabra.com cron script ", 'INFO');
$rss = new RSS();
$rss->getFeed();
Misc::logMotiomera("End Cache Rss fedd from mabra.com cron script \n", 'INFO');
开发者ID:krillo,项目名称:motiomera,代码行数:10,代码来源:cron_cacherss.php

示例4: date

<?php

require $_SERVER["DOCUMENT_ROOT"] . "/php/init.php";
Security::demand(ADMIN);
if (!empty($_GET['memberid']) && !empty($_GET['pokal'])) {
    $medlem = Medlem::loadById($_GET['memberid']);
    echo "Manual " . $_GET['pokal'] . "-pokal to " . $medlem->getANamn() . ", id = " . $_GET['memberid'] . " added to from Admin by " . $ADMIN->getANamn() . ", Sammanstallning:::nyPokal()";
    echo "\nSee also the logfile, /usr/local/motiomera/log/motiomera_xxx.log \n\n";
    Misc::logMotiomera($_GET['pokal'] . "-pokal to " . $medlem->getANamn() . ", id = " . $_GET['memberid'] . " added to from Admin by " . $ADMIN->getANamn(), 'INFO');
    Sammanstallning::nyPokal($medlem, $_GET['pokal'], date("Y-m-d"), 0, 1);
} else {
    echo '<h3>Det saknas paramatrar!</h3>';
}
开发者ID:krillo,项目名称:motiomera,代码行数:13,代码来源:manuell_pokal.php

示例5: define

#!/usr/bin/php
<?php 
define('ROOT', dirname(__FILE__) . "/../public_html");
chdir(ROOT);
require_once ROOT . "/php/init.php";
echo date('Y-m-d h:i:s') . " [INFO] Start medal cron script. \n";
Misc::logMotiomera("Start medal cron script ", 'INFO');
Sammanstallning::sammanstallMedaljer();
Misc::logMotiomera("End medal cron script \n", 'INFO');
开发者ID:krillo,项目名称:motiomera,代码行数:9,代码来源:cron_medalj.php

示例6: define

#!/usr/bin/php
<?php 
define('ROOT', dirname(__FILE__) . "/../public_html");
chdir(ROOT);
require_once ROOT . "/php/init.php";
echo date('Y-m-d h:i:s') . " [INFO] krillo start. \n";
Misc::logMotiomera("Start krillo cron script ", 'INFO');
//Sammanstallning::sammanstallPokaler();
Misc::logMotiomera("End krillo cron script \n", 'INFO');
echo date('Y-m-d h:i:s') . " [INFO] krillo stop. \n";
开发者ID:krillo,项目名称:motiomera,代码行数:10,代码来源:krillo.php

示例7:

<?php

require $_SERVER["DOCUMENT_ROOT"] . "/php/init.php";
Security::demand(ADMIN);
if (!empty($_GET['date'])) {
    $date = $_GET['date'];
    if (is_numeric($date) && strlen($date) == 8) {
        echo "This is executed via Foretag::saveAndEndForetagsTavling(" . $date . ") \nSee also the logfile, /usr/local/motiomera/log/motiomera.log \n\n";
        Misc::logMotiomera("Manual start of 'End and save competition data' started from Admin by " . $ADMIN->getANamn() . ", Date: " . $date, 'INFO');
        Foretag::saveAndEndForetagsTavling($date);
    } else {
        echo '<h3>Det verkar vara fel format på datumet!</h3>';
    }
} else {
    echo '<h3>Det saknas paramatrar!</h3>';
}
?>

开发者ID:krillo,项目名称:motiomera,代码行数:17,代码来源:manuell_foretagstavling_slut2.php

示例8: liftTillaggOrderStatus

 /**
  * Find all foretag_tillagg orders in status 20. 
  * If kundnummer is set for parent order then copy it and lift to status 30. 
  * The parent is found via the foretag_id 
  *
  * Added by krillo 100225
  */
 public static function liftTillaggOrderStatus()
 {
     Misc::logMotiomera("Start: Order::liftTillaggOrderStatus(), Copy customer numbers from parent orders to foretag_tillagg, status -> 30", 'info');
     global $db;
     $sql = "SELECT id, foretag_id FROM " . self::TABLE . " WHERE typ = 'foretag_tillagg' AND (kundnummer IS NULL OR kundnummer=1) AND orderId <> '' AND orderStatus = 20";
     $ordrar = Order::listByIds($db->valuesAsArray($sql));
     foreach ($ordrar as $order) {
         try {
             $foretag_id = $order->getForetagId();
             $sql = "SELECT kundnummer FROM " . self::TABLE . " WHERE typ = 'foretag' AND orderStatus >= 30 AND foretag_id = {$foretag_id}";
             $kundnummer = $db->value($sql);
             if (!empty($kundnummer)) {
                 $order->setKundnummer($kundnummer);
                 $order->setOrderStatus(self::ORDERSTATUS_CUST_NO);
                 $order->commit();
                 Misc::logMotiomera("Tillaggsorder -> status 30, foretag: " . $order->getForetag()->getNamn() . ", order_id: " . $order->getOrderId() . ",  CustomerId: " . $kundnummer, 'ok');
             } else {
                 Misc::logMotiomera("Customer nbr missing for: " . $order->getForetag()->getNamn() . ", order_id: " . $order->getOrderId(), 'WARNING');
             }
         } catch (Exception $e) {
             Misc::logMotiomera("Problems with order_id: " . $order->getOrderId(), 'error');
         }
     }
     Misc::logMotiomera("End: Order::liftTillaggOrderStatus()", 'info');
 }
开发者ID:krillo,项目名称:motiomera,代码行数:32,代码来源:Order.php

示例9: define

#!/usr/bin/php
<?php 
define('ROOT', dirname(__FILE__) . "/../public_html");
chdir(ROOT);
require_once ROOT . "/php/init.php";
echo date('Y-m-d h:i:s') . " [INFO] Start:  send result email on tuesday cron script. \n";
Misc::logMotiomera("Start:  send result email on tuesday cron script ", 'INFO');
Foretag::foretagsTavlingEndSendEmail();
Misc::logMotiomera("End send result email on tuesday cron script \n", 'INFO');
开发者ID:krillo,项目名称:motiomera,代码行数:9,代码来源:cron_foretagstavlings_slut3_email.php

示例10: define

#!/usr/bin/php
<?php 
define('ROOT', dirname(__FILE__) . "/../public_html");
chdir(ROOT);
require_once ROOT . "/php/init.php";
echo date('Y-m-d h:i:s') . " [INFO] Start put Faktura-files on FTP cron script. \n";
Misc::logMotiomera("Start put Faktura-files on FTP cron script ", 'INFO');
Foretag::uploadOrderFakturaFilesFTP();
Misc::logMotiomera("End put Faktura-files on FTP cron script \n", 'INFO');
开发者ID:krillo,项目名称:motiomera,代码行数:9,代码来源:cron_foretagsfiler_faktura_ftp.php

示例11: define

#!/usr/bin/php
<?php 
define('ROOT', dirname(__FILE__) . "/../public_html");
chdir(ROOT);
require_once ROOT . "/php/init.php";
echo date('Y-m-d h:i:s') . " [INFO] Start put PDF-files on FTP cron script. \n";
Misc::logMotiomera("Start put PDF-files on FTP cron script ", 'INFO');
Foretag::uploadOrderFilesFTP();
Misc::logMotiomera("End put PDF-files on FTP cron script \n", 'INFO');
开发者ID:krillo,项目名称:motiomera,代码行数:9,代码来源:cron_foretagsfiler_ftp.php

示例12: define

#!/usr/bin/php
<?php 
define('ROOT', dirname(__FILE__) . "/../public_html");
chdir(ROOT);
require_once ROOT . "/php/init.php";
echo date('Y-m-d h:i:s') . " [INFO] Start create PDF-files cron script. \n";
Misc::logMotiomera("Start create PDF-files cron script ", 'INFO');
Foretag::skapaFiler();
Misc::logMotiomera("End create PDF-files cron script \n", 'INFO');
开发者ID:krillo,项目名称:motiomera,代码行数:9,代码来源:cron_foretagsfiler.php

示例13: define

#!/usr/bin/php
<?php 
define('ROOT', dirname(__FILE__) . "/../public_html");
chdir(ROOT);
require_once ROOT . "/php/init.php";
echo date('Y-m-d h:i:s') . " [INFO] Start friday email reminder cron script. \n";
Misc::logMotiomera("Start friday email reminder cron script ", 'INFO');
Foretag::sendRemindAboutSteg();
Misc::logMotiomera("End friday email reminder cron script \n", 'INFO');
开发者ID:krillo,项目名称:motiomera,代码行数:9,代码来源:cron_foretagstavlings_slut1.php

示例14: str_replace

                    $title = str_replace('#' . $field . '#', $value, $title);
                }
                ob_start();
                eval($yttre_mall_code);
                $resultat[$data['epost']]['text'] = ob_get_clean();
                $resultat[$data['epost']]['subject'] = $title;
            }
        }
        if (count($resultat)) {
            if (DEBUG) {
                echo "- Sending emails about reminder '" . $paminnelse->getNamn() . "': ";
                echo count($resultat) . " email(s).\n";
            }
            foreach ($resultat as $to => $email) {
                if (mail($to, $email['subject'], $email['text'])) {
                    if (DEBUG) {
                        echo "- Sent!\n";
                        echo "--------------------------\n";
                    }
                }
            }
        }
    }
}
if (DEBUG) {
    echo "\n\n";
}
// End code block
// krillo
Misc::logMotiomera("End paminnelse cron script \n", 'INFO');
开发者ID:krillo,项目名称:motiomera,代码行数:30,代码来源:cron_paminnelser.php

示例15: UserException

    $paysonMsg = $order->total . ' ' . $paysonMsg;
} else {
    $sumToPay = $order->total;
}
$data = Order::setupPaysonConnection($order->email, $order->fname, $order->lname, $sumToPay, $paysonMsg);
$payResponse = $data['payResponse'];
Misc::logMotiomera(print_r($order, true), 'INFO', 'payson');
$api = $data['api'];
if ($payResponse->getResponseEnvelope()->wasSuccessful()) {
    // Payson Step 3: verify that it suceeded
    Misc::logMotiomera(print_r($payResponse, true), 'INFO', 'payson');
    $token = $payResponse->getToken();
    echo $token;
    //header("Location: " . $api->getForwardPayUrl($payResponse)); //do the redirection to payson
} else {
    Misc::logMotiomera(print_r($payResponse, true), 'ERROR', 'payson');
    throw new UserException("Problem med Payson.se", "Det är något problem med betaltjänsten Payson.se. Prova igen senare.");
}
$paymenttype = 'payson';
$ip = $_SERVER['REMOTE_ADDR'];
$orderPRIV3 = null;
$orderPRIV12 = null;
$orderFRAKT02 = null;
$orderId = '';
if ($order->PRIV3 > 0) {
    echo "inne priv3";
    $orderPRIV3 = Order::__constructOrderWithSameRefId($ordertyp, $medlem, 'PRIV3', 1, $order->channel, $order->campcode, 0, false, $token);
    $orderPRIV3->setCompanyName($order->fname . ' ' . $order->lname);
    $orderPRIV3->setPrice(Order::$campaignCodes['PRIV3']['pris']);
    $orderPRIV3->setQuantity($order->PRIV3);
    $orderPRIV3->setAntal($order->PRIV3);
开发者ID:krillo,项目名称:motiomera,代码行数:31,代码来源:payson_privat.php


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