コード例 #1
0
ファイル: my.extend.php プロジェクト: bigmsg/massagemania
<?php

if (!defined('_GNUBOARD_')) {
    exit;
}
include_once G5_LIB_PATH . '/my.lib.php';
/* 유령회원 로그인 */
$ghost = new Ghost("timetable", $ghost_timetable, GHOST_INTERVAL);
// 현재접속자 배수늘리기, 3배, 15분간격체크
$ghost->set_ghost_login();
/*
	문자알림:
	작성: 2016.02.05
	기능: 관리자에게 문자알림
		- 게시판 글, 댓글(수정은 sms알림 끔)
		- 1:1 문의(글등록, 답변등록시 멤버에게 알림)
		- 강좌(후기, 질문, 댓글 알림)
		
	답변등록시 질문에게 답변등록알림
		- 1:1 문의후 답변등록시 알림
		- 강좌 문의후 답변등록시 알림
*/
sms_notice();
/*  주석추가 */
/* 주석 2번째 추가 */
/**/
/*****/
コード例 #2
0
 /**
  * Return an instance of this class.
  *
  * @since	 1.0.0
  *
  * @return	object						A single instance of this class.
  */
 public static function get_instance()
 {
     // If the single instance hasn't been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
コード例 #3
0
ファイル: ghost.php プロジェクト: frontend-labs/post-template
 * WordPress to Ghost exporter
 *
 * @package   Ghost
 * @author    Ghost Foundation
 * @license   GPL-2.0+
 * @link      http://ghost.org
 * @copyright 2014 Ghost Foundation
 *
 * @ghost
 * Plugin Name: Ghost
 * Plugin URI:  http://ghost.org
 * Description: Plugin to export your WordPress blog so you can import it into your Ghost installation
 * Version:     0.5.3
 * Author:      Ghost Foundation
 * Author URI:  http://ghost.org
 * Text Domain: wp2ghost
 * License:     GPL-2.0+
 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
 * Domain Path: /lang
 */
// If this file is called directly, abort.
if (!defined('WPINC')) {
    die;
}
require_once plugin_dir_path(__FILE__) . 'lib/html-to-markdown/HTML-To-Markdown.php';
require_once plugin_dir_path(__FILE__) . 'class-ghost.php';
// Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.
register_activation_hook(__FILE__, array('Ghost', 'activate'));
register_deactivation_hook(__FILE__, array('Ghost', 'deactivate'));
Ghost::get_instance();