filename stringlengths 11 137 | content stringlengths 6 292k |
|---|---|
projects/plugins/crm/includes/class-oauth-handler.php | <?php
/*!
* Jetpack CRM
* https://jetpackcrm.com
*
* OAuth connection handler. Requires PHP 7.3+
*
*/
namespace Automattic\JetpackCRM;
use League\OAuth2\Client\Provider\Google;
use League\OAuth2\Client\Grant\RefreshToken;
use Google\Client;
use Google\Service\Gmail;
// block direct access
defined( 'ZEROBSCRM_PA... |
projects/plugins/crm/includes/ZeroBSCRM.PluginUpdates.ImminentRelease.php | <?php
/*!
* Jetpack CRM
* https://jetpackcrm.com
* V2.98+
*
* Copyright 2019+ ZeroBSCRM.com
*
* Date: 17/04/2019
*/
// This file provides ample warning for users who may be updating to v3.0
// ... should have been introduced way earlier than 2.98+, but better late than never
// notes: https://wisdomplugin.co... |
projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes.SubmitBoxes.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.DAL.Fields.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V1.1.19
*
* Copyright 2020 Automattic
*
* Date: 18/10/16
*/
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
/*
14 October 1922
This file was removed in v5.0.1, but was added back for the sole purpose of capturing some missing translation strings.
See gh-249... |
projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Transactions.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.Core.Menus.WP.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V2.4+
*
* Copyright 2020 Automattic
*
* Date: 05/02/2017
*/
// block access to this file
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
/*
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! THIS FILE IS FOR WordPress Menu related changes - later to be unified... |
projects/plugins/crm/includes/ZeroBSCRM.MetaBox.php | <?php
/*!
* Jetpack CRM
* https://jetpackcrm.com
* V2.52+
*
* Copyright 2020 Automattic
*
* Date: 27/02/18
*/
/* ======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZEROBSCRM_PATH' ) ... |
projects/plugins/crm/includes/ZeroBSCRM.GeneralFuncs.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-segment-condition.php | <?php
/*!
* Jetpack CRM
* https://jetpackcrm.com
* V4.5
*/
/* ======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit;
/* ============================================... |
projects/plugins/crm/includes/ZeroBSCRM.ErrorCodes.php | <?php
/*!
* Jetpack CRM
* https://jetpackcrm.com
* V3.0
*
* Copyright 2019, Jetpack CRM Software Ltd.
*
* Date: 12/07/2019
*/
/* ======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZE... |
projects/plugins/crm/includes/ZeroBSCRM.QuoteBuilder.php | <?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
/*
* Jetpack CRM
* https://jetpackcrm.com
* V1.20
*
* Copyright 2020 Automattic
*
* Date: 01/11/16
*/
// block direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
// This fires post CRM init
add_action( 'zerobscrm_post_init', 'jp... |
projects/plugins/crm/includes/ZeroBSCRM.AdminPages.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V1.20
*
* Copyright 2020 Automattic
*
* Date: 16th June 2020
*/
/*
======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZEROBSCRM_PATH' ) ) ... |
projects/plugins/crm/includes/ZeroBSCRM.MailTracking.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/class-learn-menu.php | <?php
/*!
* Jetpack CRM
* https://jetpackcrm.com
*
* Learn menus
*/
namespace Automattic\JetpackCRM;
// block direct access
defined( 'ZEROBSCRM_PATH' ) || exit;
/**
* Learn menu class
* This is a bit of a misnomer, as it really refers to the page titlebar (under the top menu).
*/
class Learn_Menu {
/**
*... |
projects/plugins/crm/includes/ZeroBSCRM.PluginAdminNotices.php | <?php
/*!
* Jetpack CRM
* https://jetpackcrm.com
*
* Date: 31 March 2021
*/
/*
* This function blocks display of admin_notices on pages specified in `$zbs->hide_admin_pages`
*/
function jpcrm_autohide_admin_notices_for_specific_pages(){
global $zbs;
if ( isset( $zbs->hide_admin_pages ) && is_array( $zb... |
projects/plugins/crm/includes/jpcrm-localisation.php | <?php
/**
* Herein lie various functions designed to make localisation easier.
* // phpcs:ignore Squiz.Commenting.FileComment.MissingPackageTag
*/
// prevent direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
/**
* Creates a timezone-aware datetime string
*
* @param int $timestamp Unix timestamp.
*... |
projects/plugins/crm/includes/class-wordpress-user-integration.php | <?php
/*!
* Jetpack CRM
* https://jetpackcrm.com
*
* WordPress User related integrations
*
*/
namespace Automattic\JetpackCRM;
// block direct access
defined( 'ZEROBSCRM_PATH' ) || exit;
class Wordpress_User_Integration {
/**
* Init
*/
public function __construct() {
// register hooks
$this->init_h... |
projects/plugins/crm/includes/ZeroBSCRM.Mail.php | <?php
/*!
* Jetpack CRM
* http://zerobscrm.com
* V2.2+
*
* Copyright 2020 Automattic
*
* Date: 14/09/2017
*/
use Google\Client;
use Google\Service\Gmail;
/* ======================================================
Integration funcs (e.g. drop down lists of smtpaccs)
======================================... |
projects/plugins/crm/includes/ZeroBSCRM.WYSIWYGButtons.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' ) ) exit... |
projects/plugins/crm/includes/ZeroBSCRM.MetaBoxes3.Forms.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.Actions.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.Events.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.AJAX.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V1.20
*
* Copyright 2020 Automattic
*
* Date: 01/11/16
*/
use Automattic\JetpackCRM\Segment_Condition_Exception;
/*
======================================================
Breaking Checks ( stops direct access )
==============================================... |
projects/plugins/crm/includes/ZeroBSCRM.Config.Init.php | <?php
/*
!
* Jetpack CRM
* http://www.zerobscrm.com
* V1.0
*
* Copyright 2020 Automattic
*
* Date: 26/05/16
*/
/*
======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
ex... |
projects/plugins/crm/includes/ZeroBSCRM.DashboardBoxes.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/jpcrm-feature-sniffer.php | <?php
if ( !defined( 'ZEROBSCRM_PATH' ) ) exit;
/**
*
* The JPCRM_FeatureSniffer class lets core detect installed
* plugins for which we already have integrations
*
*/
class JPCRM_FeatureSniffer {
/**
* An array of plugins installed.
*
* @var array
*/
public $all_plugins = array();
/**
* An array o... |
projects/plugins/crm/admin/settings/mail-delivery.page.php | <?php
/*
!
* Admin Page: Settings: Mail delivery setup
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $zbs; // } Req
// check if running locally (Then smtp may not work, e.g. firewalls + pain)
$runningLocally = zeroBSCRM_isLocal( true );
?><div id="zbs-mail-delivery-wrap">
<?php
... |
projects/plugins/crm/admin/settings/field-sorts.page.php | <?php
/*
!
* Admin Page: Settings: Field sorts
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs; // } Req
// $settings = $zbs->settings->getAll();
$fieldTypes = array(
'address' => array(
'name' => 'Address Fields',
'obj' => 'zbsAddressFields',
),
'customer' =... |
projects/plugins/crm/admin/settings/forms.page.php | <?php
/*
!
* Admin Page: Settings: Forms settings
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs; // } Req
$settings = $zbs->settings->getAll();
// } Act on any edits!
if ( isset( $_POST['editwplf'] ) && zeroBSCRM_isZBSAdminOrAdmin() ) {
// check nonce
check_admin_... |
projects/plugins/crm/admin/settings/list-view.page.php | <?php
/*
!
* Admin Page: Settings: List view settings
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs; // } Req
// } Act on any edits!
if ( zeroBSCRM_isZBSAdminOrAdmin() && isset( $_POST['editwplflistview'] ) ) {
// check nonce
check_admin_referer( 'zbs-update-settin... |
projects/plugins/crm/admin/settings/main.page.php | <?php
/*
!
* Main Settings Page file: This is the main file which controls the different pages in the setting section and render the layout
* Jetpack CRM - https://jetpackcrm.com
*/
/*
======================================================
Breaking Checks ( stops direct access )
==================================... |
projects/plugins/crm/admin/settings/oauth-connections-edit.page.php | <?php
/*
!
* Admin Page: Settings: OAuth Connection: edit
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $zbs;
// Load OAuth
$zbs->load_oauth_handler();
// edits?
if ( isset( $_GET['edit-provider'] ) && $zbs->oauth->legitimate_provider( $_GET['edit-provider'] ) ) {
// which prov... |
projects/plugins/crm/admin/settings/custom-fields.page.php | <?php
/*
!
* Admin Page: Settings: Custom field settings
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs;
// Default custom fields
$custom_fields = array(
'customers' => array(),
'customersfiles' => array(),
'companies' => array(),
'quotes' => array... |
projects/plugins/crm/admin/settings/companies.page.php | <?php
/*
!
* Admin Page: Settings: Company settings
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs; // } Req
// } Act on any edits!
if ( zeroBSCRM_isZBSAdminOrAdmin() && isset( $_POST['editcompanysettings'] ) ) {
// check nonce
check_admin_referer( 'jpcrm-update-set... |
projects/plugins/crm/admin/settings/locale.page.php | <?php
/*
!
* Admin Page: Settings: Localisation settings
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs; // } Req
// Retrieve all settings
$settings = $zbs->settings->getAll();
// Load currency list
global $whwpCurrencyList;
if ( ! isset( $whwpCurrencyList ) ) {
requ... |
projects/plugins/crm/admin/settings/api-settings.page.php | <?php
/*
!
* Admin Page: Settings: API settings
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $zbs;
$unconfirmed = false;
if ( isset( $_POST['generate-api-creds'] ) && $_POST['generate-api-creds'] == 1 ) {
if (
isset( $_POST['_wpnonce'] ) && wp_verify_nonce( $_POST['_wpnonce'... |
projects/plugins/crm/admin/settings/license.page.php | <?php
/*
!
* Admin Page: Settings: Licensing settings
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs; // } Req
// } Act on any edits!
if ( isset( $_POST['editwplflicense'] ) && zeroBSCRM_isZBSAdminOrAdmin() ) {
// check nonce
check_admin_referer( 'zbs-update-setting... |
projects/plugins/crm/admin/settings/field-options.page.php | <?php
/*
!
* Admin Page: Settings: Field options
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs; // } Req
$settings = $zbs->settings->getAll();
// } Act on any edits!
if ( isset( $_POST['editwplf'] ) ) {
// check nonce
check_admin_referer( 'jpcrm-update-settings-fie... |
projects/plugins/crm/admin/settings/mail.page.php | <?php
/*
!
* Admin Page: Settings: Mail settings
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs; // } Req
$settings = $zbs->settings->getAll();
// } Act on any edits!
if ( isset( $_POST['editzbsmail'] ) && zeroBSCRM_isZBSAdminOrAdmin() ) {
// check nonce
check_admi... |
projects/plugins/crm/admin/settings/general.page.php | <?php
/*
!
* Admin Page: Settings: General settings
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs; // } Req
$confirmAct = false;
// } Retrieve all settings
$settings = $zbs->settings->getAll();
// } #WH OR - need these lists?
// } Autologgers:
$autoLoggers = array(
... |
projects/plugins/crm/admin/settings/oauth-connections.page.php | <?php
/*
!
* Admin Page: Settings: OAuth Connection
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $zbs;
// Load OAuth
$zbs->load_oauth_handler();
// Catch disconnect an OAuth:
if ( isset( $_GET['disconnect'] ) ) {
$nonce_str = ( isset( $_GET['_wpnonce'] ) ? $_GET['_wpnonce'... |
projects/plugins/crm/admin/settings/transactions.page.php | <?php
/*
!
* Admin Page: Settings: Transaction settings
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs; // } Req
$confirmAct = false;
$settings = $zbs->settings->getAll();
// } Act on any edits!
if ( isset( $_POST['editwplf'] ) && zeroBSCRM_isZBSAdminOrAdmin() ) {
... |
projects/plugins/crm/admin/settings/client-portal.page.php | <?php
/*
!
* Admin Page: Settings: Client Portal settings
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs; // } Req
if ( ! zeroBSCRM_isExtensionInstalled( 'portal' ) ) {
global $zbs;
?>
<div class="ui grid client-styles-pro" style="margin-top:20px;">
<div class="c... |
projects/plugins/crm/admin/settings/business-info.page.php | <?php
/*
!
* Admin Page: Settings: Business Info Settings
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs; // } Req
$settings = $zbs->settings->getAll();
// } Act on any edits!
if ( isset( $_POST['editwplf'] ) && zeroBSCRM_isZBSAdminOrAdmin() ) {
// check nonce
chec... |
projects/plugins/crm/admin/settings/quotes.page.php | <?php
/*
!
* Admin Page: Settings: Quotes settings
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs; // } Req
$settings = $zbs->settings->getAll();
// } Act on any edits!
if ( isset( $_POST['editwplf'] ) && zeroBSCRM_isZBSAdminOrAdmin() ) {
// check nonce
check_admin... |
projects/plugins/crm/admin/settings/mail-delivery.ajax.php | <?php
/*
!
* Admin Page: Settings: Mail Delivery method wizard AJAX
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
function jpcrm_maildelivery_common_SMTP_settings() {
global $zbs;
return array(
// auth: tls, ssl, none
'aws_ses' => array(
'name' => 'Amazon AWS/SES... |
projects/plugins/crm/admin/settings/tax.page.php | <?php
/*
!
* Admin Page: Settings: Tax settings
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs; // } Req
$confirmAct = false;
$taxTables = zeroBSCRM_getTaxTableArr();
// } Act on any edits!
if ( isset( $_POST['editzbstax'] ) ) {
// check nonce
check_admin_referer(... |
projects/plugins/crm/admin/settings/invoicing.page.php | <?php
/*
!
* Admin Page: Settings: Invoicing settings
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $wpdb, $zbs; // } Req
$settings = $zbs->settings->getAll();
// } #WH OR - need these lists?
// } load currency list
global $whwpCurrencyList;
if ( ! isset( $whwpCurrencyList ) ) ... |
projects/plugins/crm/admin/settings/partials/menu.block.php | <?php
/*
!
* Admin Page Partial: Settings: Menu Block
* This outputs the left hand menu for settings pages
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $zbs;
// } Default
$tabs = array( 'settings' => 'General' );
$tabsNew = array(); // slugs included in here will get a ne... |
projects/plugins/crm/admin/settings/partials/template-variant-setting.block.php | <?php
/*
!
* Admin Page Partial: Settings: Template variant block
*
* This block outputs a <select> for a template variant selector setting (e.g. invoice pdf template)
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
global $zbs;
// retrieve any extra templates, e.g. if 'invoices/inv... |
projects/plugins/crm/admin/settings/partials/title.block.php | <?php
/*
!
* Admin Page Partial: Settings: Title Block
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
?>
<?php
// optional right-floated notice
if ( is_array( $settings_rightfloated_notice ) ) {
?>
<div class="ui <?php echo esc_attr( $settings_rightfloated_notice['colour'] ); ?> right fl... |
projects/plugins/crm/admin/contact/contact.ajax.php | <?php // phpcs:ignore Squiz.Commenting.FileComment.Missing
/**
* Update user meta via AJAX
*/
function jpcrm_update_meta_ajax() {
// check nonce
check_ajax_referer( 'jpcrm-update-meta-ajax' );
// check perms
if ( ! zeroBSCRM_permsCustomers() ) {
wp_send_json_error();
}
// check for params; note that we may... |
projects/plugins/crm/admin/contact/view.page.php | <?php
/*
!
* Single contact view page
*/
defined( 'ZEROBSCRM_PATH' ) || exit;
global $zbs;
/**
* Render the page
*/
function jpcrm_render_contact_view_page( $id = -1 ) {
if ( ! empty( $id ) && $id > 0 ) {
global $zbs;
$useQuotes = zeroBSCRM_getSetting( 'feat_quotes' );
$useInvoices =... |
projects/plugins/crm/admin/contact/add-file.page.php | <?php
/*
!
* Single contact view page
*/
defined( 'ZEROBSCRM_PATH' ) || exit;
/**
* Render the page
*/
function zeroBSCRM_render_add_or_edit_file() {
global $zbs;
$customer = -1;
if ( isset( $_GET['customer'] ) ) {
$customer = (int) sanitize_text_field( $_GET['customer'] );
}
// or company...
$company = ... |
projects/plugins/crm/admin/activation/welcome-to-jpcrm.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V2.99.12+
*
* Copyright 2019+ ZeroBSCRM.com
*
* Date: 29/10/2019
*/
/*
======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZEROBSCRM_PATH' ... |
projects/plugins/crm/admin/activation/wizard.ajax.php | <?php // phpcs:ignore Squiz.Commenting.FileComment.Missing
##WLREMOVE
/**
* Save welcome wizard settings
*/
function zbs_wizard_fin() {
// nonce to bounce out if not from right page
check_ajax_referer( 'zbswf-ajax-nonce', 'security' );
// only admin can do this too (extra security layer)
$r = array();
if ( c... |
projects/plugins/crm/admin/activation/before-you-go.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V2.99.12+
*
* Copyright 2019+ ZeroBSCRM.com
*
* Date: 29/10/2019
*/
/*
======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZEROBSCRM_PATH' ... |
projects/plugins/crm/admin/tags/tag-manager.page.php | <?php
// Tag Manager Page
// Split from ZeroBSCRM.AdminPages.php; at some point this should be merged into ZeroBSCRM.TagManager.php
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
function zeroBSCRM_pages_admin_tags() {
global $zbs;
// default to no upsell
$upsell_html = '';
if ( ! zeroBSCRM_hasPaidExtensionAc... |
projects/plugins/crm/admin/dashboard/main.page.php | <?php
/*
!
* Main Dashboard Page file: This is the main file which renders the dashboard view
* Jetpack CRM - https://jetpackcrm.com
*/
/*
======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZEROB... |
projects/plugins/crm/admin/dashboard/dashboard.ajax.php | <?php // phpcs:ignore Squiz.Commenting.FileComment.Missing
// phpcs:disable WordPress.DB.PreparedSQL.NotPrepared,WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching
/**
* Generate and return dashboard data
*/
function jetpackcrm_dash_refresh() {
check_ajax_referer( 'zbs_dash_cou... |
projects/plugins/crm/admin/dashboard/partials/first-use-dashboard.block.php | <?php
/*
!
* Admin Page Partial: Dashboard: First use dashboard
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
##WLREMOVE
global $zbs;
// Define videos to show
$learn_from_mike_videos = array(
'youtube-preview-1' => array(
'url' => $zbs->urls['youtube_intro_to_crm'],
'img' ... |
projects/plugins/crm/admin/dashboard/partials/first-use-dashboard-woo.block.php | <?php
/**
* Admin Page Partial: Dashboard: First use dashboard (Woo variant)
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
##WLREMOVE
global $zbs;
// Define videos to show
$learn_from_mike_videos = array(
/*
'youtube-preview-1' => array(
'url' => $zbs->urls['youtube_intro_to_woo... |
projects/plugins/crm/admin/system/system-status.page.php | <?php
/*
!
* System Assistant: System status page
*/
global $zbs;
jpcrm_render_system_title( __( 'System Status', 'zero-bs-crm' ) );
zeroBSCRM_render_systemstatus_page();
/**
* Render v3 migration logs section
*/
function jpcrm_render_system_v3migration_log() {
global $zbs;
if ( $zbs->isDAL3() ) {
// che... |
projects/plugins/crm/admin/system/main.page.php | <?php
/*
!
* Main System Page file: This is the main file which controls the different pages in the System section and renders the layout
* Jetpack CRM - https://jetpackcrm.com
*/
/*
======================================================
Breaking Checks ( stops direct access )
====================================... |
projects/plugins/crm/admin/system/placeholder-map.page.php | <?php
/*
!
* System Assistant: Placeholder map page
*/
global $zbs;
$placeholders_class = $zbs->get_templating();
$placeholders = $placeholders_class->get_placeholders();
jpcrm_render_system_title( __( 'Placeholders', 'zero-bs-crm' ) );
/**
* Render a single placeholder
*/
function jpcrm_render_placeholde... |
projects/plugins/crm/admin/system/assistant.page.php | <?php
/*
!
* System Assistant: Assistant page
*/
global $zbs;
// render title
jpcrm_render_system_title( __( 'System Assistant', 'zero-bs-crm' ) );
// render page
jpcrm_render_system_assistant_page();
/**
* Render the page
*
* Example job:
*
* 'my_job' => array(
* 'title' => '', // set a job tit... |
projects/plugins/crm/admin/system/partials/title.block.php | <?php
/*
!
* Admin Page Partial: System: Title Block
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
// optional right-floated notice
if ( is_array( $settings_rightfloated_notice ) ) {
?><div class="ui <?php echo esc_attr( $settings_rightfloated_notice['colour'] ); ?> right floated label">... |
projects/plugins/crm/admin/user-profile/main.page.php | <?php
/*
!
* Main Page file for User Profile: This file renders views associated with the CRM user profile
* Jetpack CRM - https://jetpackcrm.com
*/
defined( 'ZEROBSCRM_PATH' ) || exit;
// permissions check
if ( ! zeroBSCRM_permsIsZBSBackendUser() ) {
wp_die( esc_html__( 'You do not have sufficient permissions to ... |
projects/plugins/crm/admin/user-profile/reminders.page.php | <?php
/*
!
* User Profile -> Reminders page
*/
defined( 'ZEROBSCRM_PATH' ) || exit;
global $zbs;
// Display promo box
// Don't display atm - calendars pro not available as at 7/12/21:
// add_action( 'zbs_reminders_promo', 'zeroBSCRM_reminders_promo' );
// render page
jpcrm_render_reminders_page();
/**
* Render t... |
projects/plugins/crm/admin/user-profile/user-profile.page.php | <?php
/*
!
* User Profile page (admin.php?page=your-crm-profile)
*/
defined( 'ZEROBSCRM_PATH' ) || exit;
global $zbs;
// render page
jpcrm_render_userprofile_page();
/**
* Render the page
*/
function jpcrm_render_userprofile_page() {
$user_wp_id = get_current_user_id();
$user_name = jpcrm_wp_user_name( $user... |
projects/plugins/crm/admin/support/main.page.php | <?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
/**
* Support Contact Page file: This is Support Contact Page file.
*
* @package Jetpack CRM
*
* Jetpack CRM - https://jetpackcrm.com
*/
// stop direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
if ( ! zeroBSCRM_isZBSAdminOrAdmin(... |
projects/plugins/crm/admin/automations/main.page.php | <?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
/**
* Jetpack CRM
* https://jetpackcrm.com
*
* Automation UI main page
*
* @package automattic/jetpack-crm
*/
namespace Automattic\Jetpack_CRM\Automations;
defined( 'ZEROBSCRM_PATH' ) || exit;
/**
* Render the Automations page, which is si... |
projects/plugins/crm/admin/crm-resources/main.page.php | <?php
/*
!
* Main Hub Page file: This is the main file which renders the Resources view
* Jetpack CRM - https://jetpackcrm.com
*/
/*
======================================================
Breaking Checks ( stops direct access )
======================================================= */
if ( ! defined( 'ZEROBSCRM_... |
projects/plugins/crm/admin/export/main.page.php | <?php
/*
!
* Export Page
* Jetpack CRM - https://jetpackcrm.com
*/
defined( 'ZEROBSCRM_PATH' ) || exit;
// permissions check
if ( ! zeroBSCRM_permsExport() ) {
wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'zero-bs-crm' ) );
}
/**
* Export UI Preflight error
**/
functi... |
projects/plugins/crm/admin/email/main.page.php | <?php
/*
!
* Main Email page: This is the main file which renders the (single-send) email layout
* Jetpack CRM - https://jetpackcrm.com
*
* Requires that 'admin/email/ajax.php' is loaded on core init
*
*/
/*
======================================================
Breaking Checks ( stops direct access )
========... |
projects/plugins/crm/admin/email/email.ajax.php | <?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
/**
* Email AJAX
* Jetpack CRM - https://jetpackcrm.com
* // phpcs:ignore Squiz.Commenting.FileComment.MissingPackageTag
*/
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
// phpcs:disable WordPress.DB.PreparedSQL.NotPrepared,WordPress.DB.Direc... |
projects/plugins/crm/admin/company/view.page.php | <?php
/*
!
* Single company view page
*/
defined( 'ZEROBSCRM_PATH' ) || exit;
global $zbs;
/**
* Render the page
*/
function jpcrm_render_company_view_page( $id = -1 ) {
if ( ! empty( $id ) && $id > 0 ) {
global $zbs;
$useQuotes = false; // not yet $useQuotes = zeroBSCRM_getSetting('feat_quote... |
projects/plugins/crm/public/forms/form-content.php | <?php
/**
* Contains wrapper for "naked" CRM form
*
* @package automattic/jetpack-crm
*/
// prevent direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
if ( isset( $_GET['fid'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
// Load assets we need
zeroBSCRM_forms_scriptsStylesR... |
projects/plugins/crm/public/forms/form-simple.php | <?php
/**
* Contains wrapper for "simple" CRM form
*
* @package automattic/jetpack-crm
*/
// prevent direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
if ( isset( $_GET['fid'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
// Load assets we need
zeroBSCRM_forms_scriptsStyles... |
projects/plugins/crm/public/forms/form-naked.php | <?php
/**
* Contains wrapper for "naked" CRM form
*
* @package automattic/jetpack-crm
*/
// prevent direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
if ( isset( $_GET['fid'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
// Load assets we need
zeroBSCRM_forms_scriptsStylesR... |
projects/plugins/crm/api/transactions.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V3.0
*
* Copyright 2020 Automattic
*
* Date: 04/06/2019
*/
/*
======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
ex... |
projects/plugins/crm/api/events.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V3.0
*
* Copyright 2020 Automattic
*
* Date: 04/06/2019
*/
/*
======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
ex... |
projects/plugins/crm/api/quotes.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V3.0
*
* Copyright 2020 Automattic
*
* Date: 04/06/2019
*/
/*
======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
ex... |
projects/plugins/crm/api/create_transaction.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V3.0
*
* Copyright 2020 Automattic
*
* Date: 04/06/2019
*/
// V3.0 version of API
// Breaking Checks ( stops direct access )
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
// Breaking Checks
$json_params = file_get_contents( 'php://input' );
$new_trans =... |
projects/plugins/crm/api/create_customer.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V3.0
*
* Copyright 2020 Automattic
*
* Date: 04/06/2019
*/
// V3.0 version of API
/*
======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( '... |
projects/plugins/crm/api/webhook.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V3.0
*
* Copyright 2022 Automattic
*
* Date: 1922-08-30
*/
/*
======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
e... |
projects/plugins/crm/api/status.php | <?php
// block direct access
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
jpcrm_api_check_http_method( array( 'GET' ) );
global $zbs;
$reply = array(
'status' => __( 'Successful Connection', 'zero-bs-crm' ),
'message' => __( 'Your API Connection with Jetpack CRM is functioning correctly.', 'zero-bs-cr... |
projects/plugins/crm/api/companies.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V3.0
*
* Copyright 2020 Automattic
*
* Date: 04/06/2019
*/
/*
======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
ex... |
projects/plugins/crm/api/create_company.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V3.0
*
* Copyright 2020 Automattic
*
* Date: 04/06/2019
*/
// V3.0 version of API
/*
======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( '... |
projects/plugins/crm/api/customers.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V3.0
*
* Copyright 2020 Automattic
*
* Date: 04/06/2019
*/
/*
======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
ex... |
projects/plugins/crm/api/invoices.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V3.0
*
* Copyright 2020 Automattic
*
* Date: 04/06/2019
*/
/*
======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
ex... |
projects/plugins/crm/api/create_event.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V3.0
*
* Copyright 2020 Automattic
*
* Date: 04/06/2019
*/
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
exit;
}
$json_params = file_get_contents( 'php://input' );
$potential_task = json_decode( $json_params, true );
// define
$task_fields = array();
$task_... |
projects/plugins/crm/api/customer_search.php | <?php
/*
!
* Jetpack CRM
* https://jetpackcrm.com
* V3.0
*
* Copyright 2020 Automattic
*
* Date: 04/06/2019
*/
/*
======================================================
Breaking Checks ( stops direct access )
====================================================== */
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
ex... |
projects/plugins/crm/modules/mailpoet/jpcrm-mailpoet-init.php | <?php
/*!
* Jetpack CRM
* https://jetpackcrm.com
*
* MailPoet Module initialisation
*
*/
// block direct access
defined( 'ZEROBSCRM_PATH' ) || exit;
// Add to $zeroBSCRM_extensionsCompleteList global
// (Legacy way of maintaining an extensions list)
global $zbs, $zeroBSCRM_extensionsCompleteList;
$zeroBSCRM_e... |
projects/plugins/crm/modules/mailpoet/includes/jpcrm-mailpoet-contact-tabs.php | <?php
/*!
* Jetpack CRM
* https://jetpackcrm.com
*
* MailPoet Sync: Contact Tabs
* Adds extra tab(s) to contact single view: vitals tab set
*/
namespace Automattic\JetpackCRM;
// block direct access
defined( 'ZEROBSCRM_PATH' ) || exit;
/**
* MailPoet Contact Tabs class
*/
class MailPoet_Contact_Tabs {
/*... |
projects/plugins/crm/modules/mailpoet/includes/class-mailpoet-export-segment-to-mailpoet.php | <?php
/*!
* Jetpack CRM
* https://jetpackcrm.com
*
* MailPoet Sync: Export CRM segment to MailPoet list class
*/
namespace Automattic\JetpackCRM;
// block direct access
defined( 'ZEROBSCRM_PATH' ) || exit;
/**
* Export CRM segment to MailPoet list class
*/
class Mailpoet_Export_Segment_To_MailPoet {
/**
*... |
projects/plugins/crm/modules/mailpoet/includes/class-mailpoet.php | <?php
/*!
* Jetpack CRM
* https://jetpackcrm.com
*
* MailPoet Sync
*
*/
namespace Automattic\JetpackCRM;
// block direct access
defined( 'ZEROBSCRM_PATH' ) || exit;
use MailPoet\Config\Changelog;
use MailPoet\DI\ContainerWrapper;
use MailPoet\Models\Segment;
use MailPoet\Models\Subscriber;
use MailPoet\Models\... |
projects/plugins/crm/modules/mailpoet/includes/class-mailpoet-background-sync-job.php | <?php
/*!
* Jetpack CRM
* https://jetpackcrm.com
*
* MailPoet Sync: Background Sync Job (per run, site connection, currently only 1 local site)
*
*/
namespace Automattic\JetpackCRM;
// block direct access
defined( 'ZEROBSCRM_PATH' ) || exit;
/**
* MailPoet Background Sync Job class
*/
class Mailpoet_Backgrou... |
projects/plugins/crm/modules/mailpoet/includes/class-mailpoet-admin-integration.php | <?php
/*!
* Jetpack CRM
* https://jetpackcrm.com
*
* MailPoet Sync: MailPoet Admin class
* Collects CRM additions to the MailPoet wp-admin UI
*/
namespace Automattic\JetpackCRM;
// block direct access
defined( 'ZEROBSCRM_PATH' ) || exit;
/**
* MailPoet Admin UI class
*/
class Mailpoet_Admin_Integration {
/... |
projects/plugins/crm/modules/mailpoet/includes/jpcrm-mailpoet-default-settings.php | <?php
/*!
* Jetpack CRM
* https://jetpackcrm.com
*
* MailPoet Sync: Default Settings
*
*/
return array(
'import_lists' => 'all',
'tag_with_list' => '1', // tag contact with mailpoet list(s)
'tag_with_tags' => '1', // tag contact with mailpoet tag(s)
'tag_list_prefix' => 'MailP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.