-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.php
61 lines (33 loc) · 1023 Bytes
/
init.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/*
Plugin Name: Facebook Publish
Plugin URI: http://codeholic.in/
Description: Automatically posts new articles to Facebook. Simple one click Integration.
Version: 1.4.5
Author: Pramod Jodhani
Author URI: http://codeholic.in/
*/
define('FP_SETTINGS_SLUG' , "facebook-publish");
define('FP_PLUGIN_NAME' , "Facebook Publish");
require_once("fp-constants.php");
$fp_settings = get_option("fp_settings");
$fp_facebook = "";
$fp_session_data = "";
require_once( "lib/class/cAuth/index.php" );
//$fp_hybridauth = new cAuth( );
$fp_cauth = new cAuth( );
$fp_session_data = $fp_settings['session_data'];
if($fp_session_data) {
$fp_session_data = unserialize($fp_session_data);
if( count($fp_session_data) > 0 ) {
//$fp_cauth->load_session_data( serialize($fp_session_data) );
}
}
function fp_activate() {
require "fp_activate_plugin.php";
}
register_activation_hook( __FILE__, 'fp_activate' );
require_once("lib/functions.php");
require_once("lib/admin/init.php");
//pre($_SESSION);
?>