2013-03-26 23:29:55 -07:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
Plugin Name: WP-Discourse
|
2015-01-05 00:04:31 -06:00
|
|
|
Description: Use Discourse as a community engine for your WordPress blog
|
2015-07-30 19:18:29 -05:00
|
|
|
Version: 0.6.6
|
2013-08-16 11:50:40 -07:00
|
|
|
Author: Sam Saffron, Robin Ward
|
2014-06-23 03:09:10 +05:30
|
|
|
Author URI: https://github.com/discourse/wp-discourse
|
2015-01-05 00:04:31 -06:00
|
|
|
Plugin URI: https://github.com/discourse/wp-discourse
|
2015-01-31 20:44:03 -06:00
|
|
|
GitHub Plugin URI: https://github.com/discourse/wp-discourse
|
2013-03-26 23:29:55 -07:00
|
|
|
*/
|
2014-06-19 18:13:49 +05:30
|
|
|
/* Copyright 2014 Civilized Discourse Construction Kit, Inc (team@discourse.org)
|
2013-03-26 23:29:55 -07:00
|
|
|
|
2014-09-19 01:52:53 +00:00
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2013-03-26 23:29:55 -07:00
|
|
|
*/
|
2014-12-22 12:10:40 +08:00
|
|
|
|
2015-01-06 11:46:02 -06:00
|
|
|
define( 'WPDISCOURSE_PATH', plugin_dir_path( __FILE__ ) );
|
2016-02-20 13:10:38 -05:00
|
|
|
define( 'WPDISCOURSE_URL', plugins_url( '', __FILE__ ) );
|
2015-01-06 11:46:02 -06:00
|
|
|
|
2015-01-05 10:37:43 -06:00
|
|
|
require_once( __DIR__ . '/lib/discourse.php' );
|
|
|
|
require_once( __DIR__ . '/lib/admin.php' );
|
|
|
|
require_once( __DIR__ . '/lib/sso.php' );
|
2015-01-05 10:50:15 -06:00
|
|
|
|
|
|
|
$discourse = new Discourse();
|
|
|
|
$discourse_admin = new DiscourseAdmin();
|
2015-01-06 11:38:08 -06:00
|
|
|
|
|
|
|
register_activation_hook( __FILE__, array( $discourse, 'install' ) );
|