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 Street, Fifth Floor, Boston, MA 02110-1301, USA. */ if (!defined('ABSPATH')) { exit; } // we depend on this... require 'lib/facebook.php'; // we don't care about certificate verification SpBaseFacebook::$CURL_OPTS = SpBaseFacebook::$CURL_OPTS + array(CURLOPT_SSL_VERIFYPEER => false); // override this in functions.php @define('SHAREPRESS_DEBUG', false); class Sharepress { const VERSION = '2.2.31'; const MISSED_SCHEDULE_DELAY = 5; const MISSED_SCHEDULE_OPTION = 'sharepress_missed_schedule'; const MAX_RETRIES = 3; const OPTION_API_KEY = 'sharepress_api_key'; const OPTION_APP_SECRET = 'sharepress_app_secret'; const OPTION_PUBLISHING_TARGETS = 'sharepress_publishing_targets'; const OPTION_NOTIFICATIONS = 'sharepress_notifications'; const OPTION_DEFAULT_PICTURE = 'sharepress_default_picture'; const OPTION_SETTINGS = 'sharepress_settings'; const OPTION_SESSION_ARG = 'sharepress_%s';