filename
stringlengths
11
137
content
stringlengths
6
292k
projects/plugins/crm/tests/php/rest-api/class-rest-base-test-case.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Base class for API test cases. * * @package automattic/jetpack-crm */ namespace Automattic\Jetpack\CRM\Tests; /** * Base class for Jetpack CRM API tests. */ abstract class REST_Base_Test_Case extends JPCRM_Base_Integration_Test_Case { ...
projects/plugins/crm/tests/php/rest-api/v4/class-rest-automation-workflows-controller-test.php
<?php namespace Automattic\Jetpack\CRM\Tests; use Automatic\Jetpack\CRM\Automation\Tests\Mocks\Contact_Created_Trigger; use Automattic\Jetpack\CRM\Automation\Automation_Engine; use Automattic\Jetpack\CRM\Automation\Automation_Workflow; use Automattic\Jetpack\CRM\Automation\Tests\Automation_Faker; use Automattic\Jetpa...
projects/plugins/crm/tests/php/rest-api/v4/class-rest-authentication-test.php
<?php namespace Automattic\Jetpack\CRM\Tests; use WP_REST_Request; use WP_REST_Server; require_once __DIR__ . '/../class-rest-base-test-case.php'; /** * Authentication test. * * @covers \Automattic\Jetpack\CRM\REST_API\V4\REST_Contacts_Controller */ class REST_Authentication_Test extends REST_Base_Test_Case { ...
projects/plugins/crm/tests/php/rest-api/v4/class-rest-contacts-controller-test.php
<?php namespace Automattic\Jetpack\CRM\Tests; use Exception; use WP_REST_Request; use WP_REST_Server; use zbsDAL_contacts; require_once __DIR__ . '/../class-rest-base-test-case.php'; /** * Route_Scope class. * * @covers \Automattic\Jetpack\CRM\REST_API\V4\REST_Contacts_Controller */ class REST_Contacts_Controll...
projects/plugins/crm/includes/wh.countries.lib.php
<?php /*! * Woody Hayday Country Lib * V1.0 * * Copyright 2020 Automattic * * Date: 25/10/16 */ global $zeroBSCRM_countries; #https://gist.github.com/vxnick/380904 $zeroBSCRM_countries = array( 'AF' => 'Afghanistan', 'AX' => 'Aland Islands', 'AL' => 'Albania', 'DZ' => 'Algeria', 'AS' => 'Am...
projects/plugins/crm/includes/ZeroBSCRM.InternalAutomator.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.1.15 * * Copyright 2020 Automattic * * Date: 30/08/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' )...
projects/plugins/crm/includes/ZeroBSCRM.AdminPages.Checks.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 01/11/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { exi...
projects/plugins/crm/includes/ZeroBSCRM.Edit.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V2.52+ * * Copyright 2020 Automattic * * Date: 26/02/18 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.Obj.Invoices.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0+ * * Copyright 2020 Automattic * * Date: 14/01/19 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/jpcrm-language.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V4.0.7 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit; /* ==========================================...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.Obj.Contacts.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0+ * * Copyright 2020 Automattic * * Date: 14/01/19 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/jpcrm-mail-templating.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.2.5 * * Copyright 2020 Automattic * * Date: 09/01/2017 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.Obj.Segments.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0+ * * Copyright 2020 Automattic * * Date: 14/01/19 */ use Automattic\JetpackCRM\Segment_Condition_Exception; defined( 'ZEROBSCRM_PATH' ) || exit; /** * ZBS DAL >> Segments * * @author Woody Hayday <hello@jetpackcrm.com> * @version 2.0 * @access pub...
projects/plugins/crm/includes/ZeroBSCRM.Core.Menus.Top.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V2.4+ * * Copyright 2020 Automattic * * Date: 05/02/2017 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { e...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.Obj.Quotes.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0+ * * Copyright 2020 Automattic * * Date: 14/01/19 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) ex...
projects/plugins/crm/includes/ZeroBSCRM.Jetpack.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase /** * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Date: 24th January 2020 * * This file will house any functionality related to Jetpack */ /* ====================================================== Breaking Checks ( stops direct access )...
projects/plugins/crm/includes/ZeroBSCRM.REST.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V2.94+ * * Copyright 2020 Automattic * * Date: 31/08/2018 */ /** * This is really the way we should be doing anything AJAX'y in the CORE * It's more stable and better than admin-ajax.php * */ /* ======================================================...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.Obj.QuoteTemplates.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0+ * * Copyright 2020 Automattic * * Date: 14/01/19 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) ex...
projects/plugins/crm/includes/ZeroBSCRM.Encryption.php
<?php /*! * Jetpack CRM * http://zerobscrm.com * V2.2+ * * Copyright 2020 Automattic * * Date: 12/09/2017 */ /* DEPRECATED - The following should be left in place for migrations to 5.3 Thereafter all encryption should go through class-encryption.php class */ define( 'ZBS_ENCRYPTION_METHOD', "AES-25...
projects/plugins/crm/includes/ZeroBSCRM.Permissions.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 01/11/16 */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { exit; } /** * Remove user roles */ function zeroBSCRM_clearUserRoles() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid re...
projects/plugins/crm/includes/ZeroBSCRM.API.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V2.0 * * Copyright 2020 Automattic * * Date: 05/04/2017 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { ex...
projects/plugins/crm/includes/ZeroBSCRM.DAL2.Mail.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 01/11/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { exi...
projects/plugins/crm/includes/jpcrm-templating-placeholders.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * Copyright 2021 Automattic */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit; /* =======================...
projects/plugins/crm/includes/class-encryption.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * Encryption wrapper * */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; class Encryption { private $cipher = 'aes-256-gcm'; // AES-256-GCM Cipher we're going to use to encrypt - previously we used AES...
projects/plugins/crm/includes/ZeroBSCRM.AdminStyling.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 01/11/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { exi...
projects/plugins/crm/includes/ZeroBSCRM.FormatHelpers.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 01/11/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/ZeroBSCRM.Core.php
<?php /** * Jetpack CRM Core * * @author Woody Hayday, Mike Stott * @package ZeroBSCRM * @since 2.27 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Main ZeroBSCRM Class. * * @class ZeroBSCRM * @version 2.27 */ final class ZeroBSCRM { /** * ZeroBSCRM version. * ...
projects/plugins/crm/includes/ZeroBSCRM.ExternalSources.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V2.97.4+ * * Copyright 2020 Automattic * * Date: 11/01/2019 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.Obj.Addresses.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0+ * * Copyright 2020 Automattic * * Date: 05/07/19 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.Obj.Transactions.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0+ * * Copyright 2020 Automattic * * Date: 14/01/19 */ // phpcs:disable Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed, WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase /* ====================================================== Break...
projects/plugins/crm/includes/ZeroBSCRM.List.Columns.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V2.2 * * Copyright 2017 ZeroBSCRM.com * * Date: 30/07/2017 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH...
projects/plugins/crm/includes/jpcrm-usage-tracking.php
<?php /** * * Usage Tracking for CRM insights * is only included if the setting * is enabled * * @since 4.3.0 * */ class jpcrm_usage_tracking{ protected $setting_key = 'teammember_usage'; public function __construct() { $this->init_hooks(); } public function init_hooks(){ ...
projects/plugins/crm/includes/ZeroBSCRM.Migrations.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.1.18 * * Copyright 2020 Automattic * * Date: 30/08/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ...
projects/plugins/crm/includes/ZeroBSCRM.FileUploads.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 01/11/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/class-crm-exception.php
<?php /** * Jetpack CRM Exception Class * Extends Exception to provide additional data. * */ namespace Automattic\JetpackCRM; defined( 'ZEROBSCRM_PATH' ) || exit; /** * CRM exception class. */ class CRM_Exception extends \Exception { /** * Sanitized error code. * * @var string */ protected $error_co...
projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Locked.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0 * * Copyright 2020 Automattic * * Date: 14/06/2019 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ...
projects/plugins/crm/includes/ZeroBSCRM.SemanticUIHelpers.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V2.2 * * Copyright 2017 ZeroBSCRM.com * * Date: 30/07/2017 */ #} Outputs html label /* $labelClass = yellow image etc. https://semantic-ui.com/elements/label.html */ function zeroBSCRM_UI2_label($labelClass='',$imgHTML='',$html='',$detailHTML='',$id=''){ ...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.Obj.Companies.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0+ * * Copyright 2020 Automattic * * Date: 14/01/19 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/ZeroBSCRM.CRON.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V1.2.3 * * Copyright 2020 Automattic * * Date: 15/12/16 */ /* To add to cron: 1) Add to list (#1) 2) Add func x 2 (#2) To see what cron is enabled: http://wordpress.stackexchange.com/questions/98032/is-there-a-quick-way-to-view-the-wp-cron-schedule ...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.Obj.LineItems.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0+ * * Copyright 2020 Automattic * * Date: 14/01/19 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/ZeroBSCRM.Core.Extensions.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V1.1.18 * * Copyright 2020 Automattic * * Date: 30/08/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { e...
projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Quotes.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0 * * Copyright 2020 Automattic * * Date: 20/02/2019 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ...
projects/plugins/crm/includes/ZeroBSCRM.InvoiceBuilder.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 01/11/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Tasks.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V3.0 * * Copyright 2020 Automattic * * Date: 20/02/2019 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { ex...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.Helpers.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 01/11/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/ZeroBSCRM.IntegrationFuncs.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 01/11/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.QuoteTemplates.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0 * * Copyright 2020 Automattic * * Date: 20/02/2019 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ...
projects/plugins/crm/includes/ZeroBSCRM.List.Views.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase /* * Jetpack CRM * https://jetpackcrm.com * V1.0 * * Copyright 2020 Automattic * * Date: 26/05/16 */ // prevent direct access if ( ! defined( 'ZEROBSCRM_PATH' ) ) { exit; } /** * Renders the html for the contact list. * * @return void ...
projects/plugins/crm/includes/ZeroBSCRM.PerformanceTesting.php
<?php /*! * Jetpack CRM * http://www.zerobscrm.com * V2.0 * * Copyright 2020 Automattic * * Date: 19/09/2017 */ /* (BASIC) PERFORMANCE TRACKING - include for use. */ #} Store times global $zbsTimes; if (!isset($zbsTimes)) $zbsTimes = array(); function zeroBSCRM_performanceTest_startTimer($key='...
projects/plugins/crm/includes/class-segment-condition-exception.php
<?php /** * Jetpack CRM Segment Condition Exception Class * Extends Exception to provide additional data. * */ namespace Automattic\JetpackCRM; defined( 'ZEROBSCRM_PATH' ) || exit; /** * Segment Condition exception class. */ class Segment_Condition_Exception extends CRM_Exception {}
projects/plugins/crm/includes/ZeroBSCRM.ScriptsStyles.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V2.4+ * * Copyright 2020 Automattic * * Date: 06/02/18 */ #} =============================================================================== #} === INIT registration & Global Style & Script setups #} ===========================================================...
projects/plugins/crm/includes/ZeroBSCRM.NotifyMe.php
<?php /*! * Jetpack CRM - Notify Me * https://jetpackcrm.com * V2.4 * * Copyright 2020 Automattic * * Date: 11/02/18 * */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZERO...
projects/plugins/crm/includes/ZeroBSCRM.InternalAutomatorRecipes.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.1.15 * * Copyright 2020 Automattic * * Date: 30/08/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' )...
projects/plugins/crm/includes/ZeroBSCRM.OnboardMe.php
<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase /*! * Jetpack CRM - Onboard Me * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 27th December 2017 * * * This is the "onboard me" plugin from the plugin hunt theme. The tour steps run from * /js/lib/zbs-welcome-tour...
projects/plugins/crm/includes/class-package-installer.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * Logic concerned with retrieving packages from our CDN and installing locally * */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /* * Class encapsulating logic concerned with retrieving packages from our CDN and ...
projects/plugins/crm/includes/wh.currency.lib.php
<?php /*! * Woody Hayday Currency Lib * V1.0 * * Copyright 2020 Automattic * * Date: 18/09/15 */ global $whwpCurrencyList; $whwpCurrencyList = array( array('د.إ','AED'), array('؋','AFN'), array('L','ALL'), array('ƒ','ANG'), array('Kz','AOA'), array('$','ARS'), array('$','AUD'), array('ƒ','AWG'), array('KM','BAM...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.Obj.EventReminders.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0+ * * Copyright 2020 Automattic * * Date: 14/01/19 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/class-crm-modules.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * Modules wrapper * */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; // Prevent PHP 8.2 deprecation notices, as we currently add each module as a dynamic property #[\AllowDynamicProperties] class CRM_Modules { /...
projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Tags.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0 * * Copyright 2020 Automattic * * Date: 20/02/2019 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ...
projects/plugins/crm/includes/ZeroBSCRM.List.Tasks.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V1.1.19 * * Copyright 2020 Automattic * * Date: 18/10/16 */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { exit; } function zeroBSCRM_render_tasks_calendar_page() { global $zbs; $option = 'per_page'; $args = array( 'label' => __( 'Tasks', 'zero-bs-crm' )...
projects/plugins/crm/includes/ZeroBSCRM.Forms.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 01/11/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 01/11/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/class-missing-settings-exception.php
<?php /** * Jetpack CRM Missing Settings Exception Class * Extends Exception to provide additional data. * */ namespace Automattic\JetpackCRM; defined( 'ZEROBSCRM_PATH' ) || exit; /** * Missing Settings exception class. */ class Missing_Settings_Exception extends CRM_Exception {}
projects/plugins/crm/includes/ZeroBSCRM.DataIOValidation.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 01/11/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/ZeroBSCRM.Inventory.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.1.19 * * Copyright 2020 Automattic * * Date: 25/10/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' )...
projects/plugins/crm/includes/ZeroBSCRM.Social.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V2.2 * * Copyright 2020 Automattic * * Date: 16/11/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) ...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.Obj.Logs.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0+ * * Copyright 2020 Automattic * * Date: 14/01/19 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/ZeroBSCRM.SystemChecks.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 01/11/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/ZeroBSCRM.Core.DateTime.php
<?php /* ! * Jetpack CRM * http://www.zerobscrm.com * V2.98.2+ * * Copyright 2020 Automattic * * Date: 05/03/2019 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/ZeroBSCRM.ScreenOptions.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V2.76+ * * Copyright 2020 Automattic * * Date: 27/05/18 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ...
projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Logs.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0 * * Copyright 2020 Automattic * * Date: 20/02/2019 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/jpcrm-segment-conditions.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * Core Segment Conditions * */ // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /* * Returns the default segment conditions */ function jpcrm_segments_default_conditions() { return array( 'status' => array( 'name' =...
projects/plugins/crm/includes/ZeroBSCRM.CustomerFilters.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 01/11/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { exi...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.Obj.Forms.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0+ * * Copyright 2020 Automattic * * Date: 14/01/19 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.ExternalSources.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0 * * Copyright 2020 Automattic * * Date: 20/02/2019 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ...
projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Ownership.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0 * * Copyright 2020 Automattic * * Date: 20/02/2019 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit...
projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Contacts.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0 * * Copyright 2020 Automattic * * Date: 20/02/2019 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.Export.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V3.0 * * Copyright 2020 Automattic * * Date: 24/05/2019 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { ex...
projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Invoices.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0 * * Copyright 2020 Automattic * * Date: 20/02/2019 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) exi...
projects/plugins/crm/includes/ZeroBSCRM.PluginUpdates.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V2.14+ * * Copyright 2017+ ZeroBSCRM.com * * Date: 26/09/2017 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PA...
projects/plugins/crm/includes/ZeroBSCRM.Edit.Segment.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V2.5 * * Copyright 2020 Automattic * * Date: 09/01/18 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if (! defined('ZEROBSCRM_PATH')) { exi...
projects/plugins/crm/includes/ZeroBSCRM.Core.License.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V2.4+ * * Copyright 2020 Automattic * * Date: 05/02/2017 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { e...
projects/plugins/crm/includes/jpcrm-templating.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * Copyright 2021 Automattic */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit; /* =======================...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.ObjectLayer.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0+ * * Copyright 2020 Automattic * * Date: 14/01/19 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/ZeroBSCRM.Database.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.20 * * Copyright 2020 Automattic * * Date: 01/11/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) )...
projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Companies.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0 * * Copyright 2020 Automattic * * Date: 20/02/2019 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ...
projects/plugins/crm/includes/jpcrm-fonts.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * Logic concerned with installing and using different fonts, primarily in the creation of PDF files * */ // Require DOMPDF global $zbs; $zbs->libLoad('dompdf'); use FontLib\Font; defined( 'ZEROBSCRM_PATH' ) || exit; /* * Class encapsulating logic concerned ...
projects/plugins/crm/includes/ZeroBSCRM.Core.Localisation.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V2.0.6 * * Copyright 2020 Automattic * * Date: 24/05/2017 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { ...
projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.TagManager.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V3.0 * * Copyright 2020 Automattic * * Date: 20/02/2019 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ...
projects/plugins/crm/includes/wh.config.lib.php
<?php /*! * Jetpack CRM * http://www.zerobscrm.com * V1.0 * * Copyright 2020 Automattic * * Date: 26/05/16 */ class WHWPConfigLib { #} Main settings storage private $settings; private $settingsKey = false; private $settingsVer = false; private $settingsDefault = false; private $settingsPlugin...
projects/plugins/crm/includes/ZeroBSCRM.CSVImporter.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V1.0 * * Copyright 2020 Automattic * * Date: 07/03/2017 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { ex...
projects/plugins/crm/includes/ZeroBSCRM.List.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V1.0 * * Copyright 2020 Automattic * * Date: 26/05/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) ...
projects/plugins/crm/includes/ZeroBSCRM.Delete.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V2.52+ * * Copyright 2020 Automattic * * Date: 26/02/18 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ...
projects/plugins/crm/includes/ZeroBSCRM.TagManager.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * V2.52+ * * Copyright 2020 Automattic * * Date: 19/03/18 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ...
projects/plugins/crm/includes/ZeroBSCRM.Core.Page.Controller.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V2.5 * * Copyright 2020 Automattic * * Date: 09/01/18 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { exit...
projects/plugins/crm/includes/jpcrm-learn-menu-legacy-functions.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * Legacy Learn menu functions * This file contains function-based learn menu rendering, where generically rendered learn menus * were moved into the new class (`Learn_Menu`), these will need modernising individually */ /* * Wrapper for newly formed Learn_Men...
projects/plugins/crm/includes/class-endpoint-listener.php
<?php /** * Jetpack CRM Endpoint Listener Class * Provides support for generic verified endpoint call captures * e.g. OAuth return calls of webhooks * * Endpoint example: * https://example.com?jpcrm_listen={hash}&jpcrm_action={action} * https://example.com?jpcrm_listen=1234&jpcrm_action=oauth_gmail */ namesp...
projects/plugins/crm/includes/jpcrm-dependency-checker.php
<?php if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit; /** * * The JPCRMDependencyChecker class provides various functions that * can be used to verify dependencies for features and extensions * */ class JPCRM_DependencyChecker { /** * An array of plugins installed. * * @var array */ public $all_plugins =...
projects/plugins/crm/includes/jpcrm-rewrite-rules.php
<?php /** * Handle rewrite rules for Jetpack CRM * * @package automattic/jetpack-crm */ // prevent direct access if ( ! defined( 'ZEROBSCRM_PATH' ) ) { exit; } /** * Flush rewrite rules if flagged to do so */ function jpcrm_do_flush_rewrite() { $flush_rewrite_option = get_option( 'jpcrm_flush_rewrite_flag', 0...
projects/plugins/crm/includes/ZeroBSCRM.DAL3.Fields.php
<?php /* ! * Jetpack CRM * https://jetpackcrm.com * V1.1.19 * * Copyright 2020 Automattic * * Date: 18/10/16 */ /* ====================================================== Breaking Checks ( stops direct access ) ====================================================== */ if ( ! defined( 'ZEROBSCRM_PATH' ) ) { e...